autofiles.diff 2.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593
  1. Index: sid/Makefile.in
  2. ===================================================================
  3. --- sid.orig/Makefile.in
  4. +++ sid/Makefile.in
  5. @@ -52,7 +52,10 @@
  6. elisp-comp install-sh ltmain.sh mdate-sh missing texinfo.tex
  7. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  8. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  9. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  10. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  11. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  12. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  13. + $(top_srcdir)/configure.in
  14. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  15. $(ACLOCAL_M4)
  16. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  17. @@ -249,6 +252,7 @@
  18. PACKAGE_NAME = @PACKAGE_NAME@
  19. PACKAGE_STRING = @PACKAGE_STRING@
  20. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  21. +PACKAGE_URL = @PACKAGE_URL@
  22. PACKAGE_VERSION = @PACKAGE_VERSION@
  23. PATH_SEPARATOR = @PATH_SEPARATOR@
  24. POSUB = @POSUB@
  25. Index: sid/aclocal.m4
  26. ===================================================================
  27. --- sid.orig/aclocal.m4
  28. +++ sid/aclocal.m4
  29. @@ -13,11170 +13,3229 @@
  30. m4_ifndef([AC_AUTOCONF_VERSION],
  31. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  32. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  33. -[m4_warning([this file was generated for autoconf 2.63.
  34. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
  35. +[m4_warning([this file was generated for autoconf 2.64.
  36. You have another version of autoconf. It may work, but is not guaranteed to.
  37. If you have problems, you may need to regenerate the build system entirely.
  38. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  39. -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  40. -#
  41. -# This file is free software; the Free Software Foundation
  42. -# gives unlimited permission to copy and/or distribute it,
  43. -# with or without modifications, as long as this notice is preserved.
  44. -
  45. -# AM_AUTOMAKE_VERSION(VERSION)
  46. -# ----------------------------
  47. -# Automake X.Y traces this macro to ensure aclocal.m4 has been
  48. -# generated from the m4 files accompanying Automake X.Y.
  49. -# (This private macro should not be called outside this file.)
  50. -AC_DEFUN([AM_AUTOMAKE_VERSION],
  51. -[am__api_version='1.11'
  52. -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  53. -dnl require some minimum version. Point them to the right macro.
  54. -m4_if([$1], [1.11], [],
  55. - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  56. -])
  57. -
  58. -# _AM_AUTOCONF_VERSION(VERSION)
  59. -# -----------------------------
  60. -# aclocal traces this macro to find the Autoconf version.
  61. -# This is a private macro too. Using m4_define simplifies
  62. -# the logic in aclocal, which can simply ignore this definition.
  63. -m4_define([_AM_AUTOCONF_VERSION], [])
  64. -
  65. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  66. -# -------------------------------
  67. -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  68. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  69. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  70. -[AM_AUTOMAKE_VERSION([1.11])dnl
  71. -m4_ifndef([AC_AUTOCONF_VERSION],
  72. - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  73. -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  74. +# gettext.m4 serial 60 (gettext-0.17)
  75. +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  76. +dnl This file is free software; the Free Software Foundation
  77. +dnl gives unlimited permission to copy and/or distribute it,
  78. +dnl with or without modifications, as long as this notice is preserved.
  79. +dnl
  80. +dnl This file can can be used in projects which are not available under
  81. +dnl the GNU General Public License or the GNU Library General Public
  82. +dnl License but which still want to provide support for the GNU gettext
  83. +dnl functionality.
  84. +dnl Please note that the actual code of the GNU gettext library is covered
  85. +dnl by the GNU Library General Public License, and the rest of the GNU
  86. +dnl gettext package package is covered by the GNU General Public License.
  87. +dnl They are *not* in the public domain.
  88. -# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  89. +dnl Authors:
  90. +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  91. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
  92. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  93. -#
  94. -# This file is free software; the Free Software Foundation
  95. -# gives unlimited permission to copy and/or distribute it,
  96. -# with or without modifications, as long as this notice is preserved.
  97. +dnl Macro to add for using GNU gettext.
  98. -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  99. -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  100. -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  101. -#
  102. -# Of course, Automake must honor this variable whenever it calls a
  103. -# tool from the auxiliary directory. The problem is that $srcdir (and
  104. -# therefore $ac_aux_dir as well) can be either absolute or relative,
  105. -# depending on how configure is run. This is pretty annoying, since
  106. -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  107. -# source directory, any form will work fine, but in subdirectories a
  108. -# relative path needs to be adjusted first.
  109. -#
  110. -# $ac_aux_dir/missing
  111. -# fails when called from a subdirectory if $ac_aux_dir is relative
  112. -# $top_srcdir/$ac_aux_dir/missing
  113. -# fails if $ac_aux_dir is absolute,
  114. -# fails when called from a subdirectory in a VPATH build with
  115. -# a relative $ac_aux_dir
  116. -#
  117. -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  118. -# are both prefixed by $srcdir. In an in-source build this is usually
  119. -# harmless because $srcdir is `.', but things will broke when you
  120. -# start a VPATH build or use an absolute $srcdir.
  121. -#
  122. -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  123. -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  124. -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  125. -# and then we would define $MISSING as
  126. -# MISSING="\${SHELL} $am_aux_dir/missing"
  127. -# This will work as long as MISSING is not called from configure, because
  128. -# unfortunately $(top_srcdir) has no meaning in configure.
  129. -# However there are other variables, like CC, which are often used in
  130. -# configure, and could therefore not use this "fixed" $ac_aux_dir.
  131. -#
  132. -# Another solution, used here, is to always expand $ac_aux_dir to an
  133. -# absolute PATH. The drawback is that using absolute paths prevent a
  134. -# configured tree to be moved without reconfiguration.
  135. +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
  136. +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
  137. +dnl default (if it is not specified or empty) is 'no-libtool'.
  138. +dnl INTLSYMBOL should be 'external' for packages with no intl directory,
  139. +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
  140. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library
  141. +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
  142. +dnl depending on --{enable,disable}-{shared,static} and on the presence of
  143. +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
  144. +dnl $(top_builddir)/intl/libintl.a will be created.
  145. +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
  146. +dnl implementations (in libc or libintl) without the ngettext() function
  147. +dnl will be ignored. If NEEDSYMBOL is specified and is
  148. +dnl 'need-formatstring-macros', then GNU gettext implementations that don't
  149. +dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
  150. +dnl INTLDIR is used to find the intl libraries. If empty,
  151. +dnl the value `$(top_builddir)/intl/' is used.
  152. +dnl
  153. +dnl The result of the configuration is one of three cases:
  154. +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
  155. +dnl and used.
  156. +dnl Catalog format: GNU --> install in $(datadir)
  157. +dnl Catalog extension: .mo after installation, .gmo in source tree
  158. +dnl 2) GNU gettext has been found in the system's C library.
  159. +dnl Catalog format: GNU --> install in $(datadir)
  160. +dnl Catalog extension: .mo after installation, .gmo in source tree
  161. +dnl 3) No internationalization, always use English msgid.
  162. +dnl Catalog format: none
  163. +dnl Catalog extension: none
  164. +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
  165. +dnl The use of .gmo is historical (it was needed to avoid overwriting the
  166. +dnl GNU format catalogs when building on a platform with an X/Open gettext),
  167. +dnl but we keep it in order not to force irrelevant filename changes on the
  168. +dnl maintainers.
  169. +dnl
  170. +AC_DEFUN([AM_GNU_GETTEXT],
  171. +[
  172. + dnl Argument checking.
  173. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
  174. + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
  175. +])])])])])
  176. + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
  177. + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
  178. +])])])])
  179. + define([gt_included_intl],
  180. + ifelse([$1], [external],
  181. + ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
  182. + [yes]))
  183. + define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
  184. + gt_NEEDS_INIT
  185. + AM_GNU_GETTEXT_NEED([$2])
  186. -AC_DEFUN([AM_AUX_DIR_EXPAND],
  187. -[dnl Rely on autoconf to set up CDPATH properly.
  188. -AC_PREREQ([2.50])dnl
  189. -# expand $ac_aux_dir to an absolute path
  190. -am_aux_dir=`cd $ac_aux_dir && pwd`
  191. -])
  192. + AC_REQUIRE([AM_PO_SUBDIRS])dnl
  193. + ifelse(gt_included_intl, yes, [
  194. + AC_REQUIRE([AM_INTL_SUBDIR])dnl
  195. + ])
  196. -# AM_CONDITIONAL -*- Autoconf -*-
  197. + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  198. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  199. + AC_REQUIRE([AC_LIB_RPATH])
  200. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  201. -# Free Software Foundation, Inc.
  202. -#
  203. -# This file is free software; the Free Software Foundation
  204. -# gives unlimited permission to copy and/or distribute it,
  205. -# with or without modifications, as long as this notice is preserved.
  206. + dnl Sometimes libintl requires libiconv, so first search for libiconv.
  207. + dnl Ideally we would do this search only after the
  208. + dnl if test "$USE_NLS" = "yes"; then
  209. + dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  210. + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
  211. + dnl the configure script would need to contain the same shell code
  212. + dnl again, outside any 'if'. There are two solutions:
  213. + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
  214. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
  215. + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
  216. + dnl documented, we avoid it.
  217. + ifelse(gt_included_intl, yes, , [
  218. + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  219. + ])
  220. -# serial 9
  221. + dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
  222. + gt_INTL_MACOSX
  223. -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  224. -# -------------------------------------
  225. -# Define a conditional.
  226. -AC_DEFUN([AM_CONDITIONAL],
  227. -[AC_PREREQ(2.52)dnl
  228. - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  229. - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  230. -AC_SUBST([$1_TRUE])dnl
  231. -AC_SUBST([$1_FALSE])dnl
  232. -_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  233. -_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  234. -m4_define([_AM_COND_VALUE_$1], [$2])dnl
  235. -if $2; then
  236. - $1_TRUE=
  237. - $1_FALSE='#'
  238. -else
  239. - $1_TRUE='#'
  240. - $1_FALSE=
  241. -fi
  242. -AC_CONFIG_COMMANDS_PRE(
  243. -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  244. - AC_MSG_ERROR([[conditional "$1" was never defined.
  245. -Usually this means the macro was only invoked conditionally.]])
  246. -fi])])
  247. + dnl Set USE_NLS.
  248. + AC_REQUIRE([AM_NLS])
  249. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  250. -# Free Software Foundation, Inc.
  251. -#
  252. -# This file is free software; the Free Software Foundation
  253. -# gives unlimited permission to copy and/or distribute it,
  254. -# with or without modifications, as long as this notice is preserved.
  255. + ifelse(gt_included_intl, yes, [
  256. + BUILD_INCLUDED_LIBINTL=no
  257. + USE_INCLUDED_LIBINTL=no
  258. + ])
  259. + LIBINTL=
  260. + LTLIBINTL=
  261. + POSUB=
  262. -# serial 10
  263. + dnl Add a version number to the cache macros.
  264. + case " $gt_needs " in
  265. + *" need-formatstring-macros "*) gt_api_version=3 ;;
  266. + *" need-ngettext "*) gt_api_version=2 ;;
  267. + *) gt_api_version=1 ;;
  268. + esac
  269. + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  270. + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  271. -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  272. -# written in clear, in which case automake, when reading aclocal.m4,
  273. -# will think it sees a *use*, and therefore will trigger all it's
  274. -# C support machinery. Also note that it means that autoscan, seeing
  275. -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  276. + dnl If we use NLS figure out what method
  277. + if test "$USE_NLS" = "yes"; then
  278. + gt_use_preinstalled_gnugettext=no
  279. + ifelse(gt_included_intl, yes, [
  280. + AC_MSG_CHECKING([whether included gettext is requested])
  281. + AC_ARG_WITH(included-gettext,
  282. + [ --with-included-gettext use the GNU gettext library included here],
  283. + nls_cv_force_use_gnu_gettext=$withval,
  284. + nls_cv_force_use_gnu_gettext=no)
  285. + AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
  286. + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  287. + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  288. + ])
  289. + dnl User does not insist on using GNU NLS library. Figure out what
  290. + dnl to use. If GNU gettext is available we use this. Else we have
  291. + dnl to fall back to GNU NLS library.
  292. -# _AM_DEPENDENCIES(NAME)
  293. -# ----------------------
  294. -# See how the compiler implements dependency checking.
  295. -# NAME is "CC", "CXX", "GCJ", or "OBJC".
  296. -# We try a few techniques and use that to set a single cache variable.
  297. -#
  298. -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  299. -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  300. -# dependency, and given that the user is not expected to run this macro,
  301. -# just rely on AC_PROG_CC.
  302. -AC_DEFUN([_AM_DEPENDENCIES],
  303. -[AC_REQUIRE([AM_SET_DEPDIR])dnl
  304. -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  305. -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  306. -AC_REQUIRE([AM_DEP_TRACK])dnl
  307. + if test $gt_api_version -ge 3; then
  308. + gt_revision_test_code='
  309. +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  310. +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  311. +#endif
  312. +changequote(,)dnl
  313. +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  314. +changequote([,])dnl
  315. +'
  316. + else
  317. + gt_revision_test_code=
  318. + fi
  319. + if test $gt_api_version -ge 2; then
  320. + gt_expression_test_code=' + * ngettext ("", "", 0)'
  321. + else
  322. + gt_expression_test_code=
  323. + fi
  324. -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  325. - [$1], CXX, [depcc="$CXX" am_compiler_list=],
  326. - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  327. - [$1], UPC, [depcc="$UPC" am_compiler_list=],
  328. - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  329. - [depcc="$$1" am_compiler_list=])
  330. + AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
  331. + [AC_TRY_LINK([#include <libintl.h>
  332. +$gt_revision_test_code
  333. +extern int _nl_msg_cat_cntr;
  334. +extern int *_nl_domain_bindings;],
  335. + [bindtextdomain ("", "");
  336. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
  337. + [eval "$gt_func_gnugettext_libc=yes"],
  338. + [eval "$gt_func_gnugettext_libc=no"])])
  339. -AC_CACHE_CHECK([dependency style of $depcc],
  340. - [am_cv_$1_dependencies_compiler_type],
  341. -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  342. - # We make a subdir and do the tests there. Otherwise we can end up
  343. - # making bogus files that we don't know about and never remove. For
  344. - # instance it was reported that on HP-UX the gcc test will end up
  345. - # making a dummy file named `D' -- because `-MD' means `put the output
  346. - # in D'.
  347. - mkdir conftest.dir
  348. - # Copy depcomp to subdir because otherwise we won't find it if we're
  349. - # using a relative directory.
  350. - cp "$am_depcomp" conftest.dir
  351. - cd conftest.dir
  352. - # We will build objects and dependencies in a subdirectory because
  353. - # it helps to detect inapplicable dependency modes. For instance
  354. - # both Tru64's cc and ICC support -MD to output dependencies as a
  355. - # side effect of compilation, but ICC will put the dependencies in
  356. - # the current directory while Tru64 will put them in the object
  357. - # directory.
  358. - mkdir sub
  359. + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  360. + dnl Sometimes libintl requires libiconv, so first search for libiconv.
  361. + ifelse(gt_included_intl, yes, , [
  362. + AM_ICONV_LINK
  363. + ])
  364. + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
  365. + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
  366. + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
  367. + dnl even if libiconv doesn't exist.
  368. + AC_LIB_LINKFLAGS_BODY([intl])
  369. + AC_CACHE_CHECK([for GNU gettext in libintl],
  370. + [$gt_func_gnugettext_libintl],
  371. + [gt_save_CPPFLAGS="$CPPFLAGS"
  372. + CPPFLAGS="$CPPFLAGS $INCINTL"
  373. + gt_save_LIBS="$LIBS"
  374. + LIBS="$LIBS $LIBINTL"
  375. + dnl Now see whether libintl exists and does not depend on libiconv.
  376. + AC_TRY_LINK([#include <libintl.h>
  377. +$gt_revision_test_code
  378. +extern int _nl_msg_cat_cntr;
  379. +extern
  380. +#ifdef __cplusplus
  381. +"C"
  382. +#endif
  383. +const char *_nl_expand_alias (const char *);],
  384. + [bindtextdomain ("", "");
  385. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  386. + [eval "$gt_func_gnugettext_libintl=yes"],
  387. + [eval "$gt_func_gnugettext_libintl=no"])
  388. + dnl Now see whether libintl exists and depends on libiconv.
  389. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  390. + LIBS="$LIBS $LIBICONV"
  391. + AC_TRY_LINK([#include <libintl.h>
  392. +$gt_revision_test_code
  393. +extern int _nl_msg_cat_cntr;
  394. +extern
  395. +#ifdef __cplusplus
  396. +"C"
  397. +#endif
  398. +const char *_nl_expand_alias (const char *);],
  399. + [bindtextdomain ("", "");
  400. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  401. + [LIBINTL="$LIBINTL $LIBICONV"
  402. + LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  403. + eval "$gt_func_gnugettext_libintl=yes"
  404. + ])
  405. + fi
  406. + CPPFLAGS="$gt_save_CPPFLAGS"
  407. + LIBS="$gt_save_LIBS"])
  408. + fi
  409. - am_cv_$1_dependencies_compiler_type=none
  410. - if test "$am_compiler_list" = ""; then
  411. - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  412. - fi
  413. - am__universal=false
  414. - m4_case([$1], [CC],
  415. - [case " $depcc " in #(
  416. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  417. - esac],
  418. - [CXX],
  419. - [case " $depcc " in #(
  420. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  421. - esac])
  422. + dnl If an already present or preinstalled GNU gettext() is found,
  423. + dnl use it. But if this macro is used in GNU gettext, and GNU
  424. + dnl gettext is already preinstalled in libintl, we update this
  425. + dnl libintl. (Cf. the install rule in intl/Makefile.in.)
  426. + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  427. + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  428. + && test "$PACKAGE" != gettext-runtime \
  429. + && test "$PACKAGE" != gettext-tools; }; then
  430. + gt_use_preinstalled_gnugettext=yes
  431. + else
  432. + dnl Reset the values set by searching for libintl.
  433. + LIBINTL=
  434. + LTLIBINTL=
  435. + INCINTL=
  436. + fi
  437. - for depmode in $am_compiler_list; do
  438. - # Setup a source with many dependencies, because some compilers
  439. - # like to wrap large dependency lists on column 80 (with \), and
  440. - # we should not choose a depcomp mode which is confused by this.
  441. - #
  442. - # We need to recreate these files for each test, as the compiler may
  443. - # overwrite some of them when testing with obscure command lines.
  444. - # This happens at least with the AIX C compiler.
  445. - : > sub/conftest.c
  446. - for i in 1 2 3 4 5 6; do
  447. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  448. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  449. - # Solaris 8's {/usr,}/bin/sh.
  450. - touch sub/conftst$i.h
  451. - done
  452. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  453. + ifelse(gt_included_intl, yes, [
  454. + if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  455. + dnl GNU gettext is not found in the C library.
  456. + dnl Fall back on included GNU gettext library.
  457. + nls_cv_use_gnu_gettext=yes
  458. + fi
  459. + fi
  460. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  461. - # mode. It turns out that the SunPro C++ compiler does not properly
  462. - # handle `-M -o', and we need to detect this. Also, some Intel
  463. - # versions had trouble with output in subdirs
  464. - am__obj=sub/conftest.${OBJEXT-o}
  465. - am__minus_obj="-o $am__obj"
  466. - case $depmode in
  467. - gcc)
  468. - # This depmode causes a compiler race in universal mode.
  469. - test "$am__universal" = false || continue
  470. - ;;
  471. - nosideeffect)
  472. - # after this tag, mechanisms are not by side-effect, so they'll
  473. - # only be used when explicitly requested
  474. - if test "x$enable_dependency_tracking" = xyes; then
  475. - continue
  476. - else
  477. - break
  478. + if test "$nls_cv_use_gnu_gettext" = "yes"; then
  479. + dnl Mark actions used to generate GNU NLS library.
  480. + BUILD_INCLUDED_LIBINTL=yes
  481. + USE_INCLUDED_LIBINTL=yes
  482. + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
  483. + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
  484. + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  485. fi
  486. - ;;
  487. - msvisualcpp | msvcmsys)
  488. - # This compiler won't grok `-c -o', but also, the minuso test has
  489. - # not run yet. These depmodes are late enough in the game, and
  490. - # so weak that their functioning should not be impacted.
  491. - am__obj=conftest.${OBJEXT-o}
  492. - am__minus_obj=
  493. - ;;
  494. - none) break ;;
  495. - esac
  496. - if depmode=$depmode \
  497. - source=sub/conftest.c object=$am__obj \
  498. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  499. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  500. - >/dev/null 2>conftest.err &&
  501. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  502. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  503. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  504. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  505. - # icc doesn't choke on unknown options, it will just issue warnings
  506. - # or remarks (even with -Werror). So we grep stderr for any message
  507. - # that says an option was ignored or not supported.
  508. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  509. - # icc: Command line warning: ignoring option '-M'; no argument required
  510. - # The diagnosis changed in icc 8.0:
  511. - # icc: Command line remark: option '-MP' not supported
  512. - if (grep 'ignoring option' conftest.err ||
  513. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  514. - am_cv_$1_dependencies_compiler_type=$depmode
  515. - break
  516. +
  517. + CATOBJEXT=
  518. + if test "$gt_use_preinstalled_gnugettext" = "yes" \
  519. + || test "$nls_cv_use_gnu_gettext" = "yes"; then
  520. + dnl Mark actions to use GNU gettext tools.
  521. + CATOBJEXT=.gmo
  522. + fi
  523. + ])
  524. +
  525. + if test -n "$INTL_MACOSX_LIBS"; then
  526. + if test "$gt_use_preinstalled_gnugettext" = "yes" \
  527. + || test "$nls_cv_use_gnu_gettext" = "yes"; then
  528. + dnl Some extra flags are needed during linking.
  529. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  530. + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  531. fi
  532. fi
  533. - done
  534. - cd ..
  535. - rm -rf conftest.dir
  536. -else
  537. - am_cv_$1_dependencies_compiler_type=none
  538. -fi
  539. -])
  540. -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  541. -AM_CONDITIONAL([am__fastdep$1], [
  542. - test "x$enable_dependency_tracking" != xno \
  543. - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  544. -])
  545. + if test "$gt_use_preinstalled_gnugettext" = "yes" \
  546. + || test "$nls_cv_use_gnu_gettext" = "yes"; then
  547. + AC_DEFINE(ENABLE_NLS, 1,
  548. + [Define to 1 if translation of program messages to the user's native language
  549. + is requested.])
  550. + else
  551. + USE_NLS=no
  552. + fi
  553. + fi
  554. + AC_MSG_CHECKING([whether to use NLS])
  555. + AC_MSG_RESULT([$USE_NLS])
  556. + if test "$USE_NLS" = "yes"; then
  557. + AC_MSG_CHECKING([where the gettext function comes from])
  558. + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  559. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  560. + gt_source="external libintl"
  561. + else
  562. + gt_source="libc"
  563. + fi
  564. + else
  565. + gt_source="included intl directory"
  566. + fi
  567. + AC_MSG_RESULT([$gt_source])
  568. + fi
  569. -# AM_SET_DEPDIR
  570. -# -------------
  571. -# Choose a directory name for dependency files.
  572. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  573. -AC_DEFUN([AM_SET_DEPDIR],
  574. -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  575. -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  576. -])
  577. + if test "$USE_NLS" = "yes"; then
  578. + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  579. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  580. + AC_MSG_CHECKING([how to link with libintl])
  581. + AC_MSG_RESULT([$LIBINTL])
  582. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  583. + fi
  584. -# AM_DEP_TRACK
  585. -# ------------
  586. -AC_DEFUN([AM_DEP_TRACK],
  587. -[AC_ARG_ENABLE(dependency-tracking,
  588. -[ --disable-dependency-tracking speeds up one-time build
  589. - --enable-dependency-tracking do not reject slow dependency extractors])
  590. -if test "x$enable_dependency_tracking" != xno; then
  591. - am_depcomp="$ac_aux_dir/depcomp"
  592. - AMDEPBACKSLASH='\'
  593. -fi
  594. -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  595. -AC_SUBST([AMDEPBACKSLASH])dnl
  596. -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  597. -])
  598. + dnl For backward compatibility. Some packages may be using this.
  599. + AC_DEFINE(HAVE_GETTEXT, 1,
  600. + [Define if the GNU gettext() function is already present or preinstalled.])
  601. + AC_DEFINE(HAVE_DCGETTEXT, 1,
  602. + [Define if the GNU dcgettext() function is already present or preinstalled.])
  603. + fi
  604. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  605. + dnl We need to process the po/ directory.
  606. + POSUB=po
  607. + fi
  608. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  609. -# Free Software Foundation, Inc.
  610. -#
  611. -# This file is free software; the Free Software Foundation
  612. -# gives unlimited permission to copy and/or distribute it,
  613. -# with or without modifications, as long as this notice is preserved.
  614. + ifelse(gt_included_intl, yes, [
  615. + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
  616. + dnl to 'yes' because some of the testsuite requires it.
  617. + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  618. + BUILD_INCLUDED_LIBINTL=yes
  619. + fi
  620. -#serial 5
  621. + dnl Make all variables we use known to autoconf.
  622. + AC_SUBST(BUILD_INCLUDED_LIBINTL)
  623. + AC_SUBST(USE_INCLUDED_LIBINTL)
  624. + AC_SUBST(CATOBJEXT)
  625. -# _AM_OUTPUT_DEPENDENCY_COMMANDS
  626. -# ------------------------------
  627. -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  628. -[{
  629. - # Autoconf 2.62 quotes --file arguments for eval, but not when files
  630. - # are listed without --file. Let's play safe and only enable the eval
  631. - # if we detect the quoting.
  632. - case $CONFIG_FILES in
  633. - *\'*) eval set x "$CONFIG_FILES" ;;
  634. - *) set x $CONFIG_FILES ;;
  635. - esac
  636. - shift
  637. - for mf
  638. - do
  639. - # Strip MF so we end up with the name of the file.
  640. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  641. - # Check whether this is an Automake generated Makefile or not.
  642. - # We used to match only the files named `Makefile.in', but
  643. - # some people rename them; so instead we look at the file content.
  644. - # Grep'ing the first line is not enough: some people post-process
  645. - # each Makefile.in and add a new line on top of each file to say so.
  646. - # Grep'ing the whole file is not good either: AIX grep has a line
  647. - # limit of 2048, but all sed's we know have understand at least 4000.
  648. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  649. - dirpart=`AS_DIRNAME("$mf")`
  650. - else
  651. - continue
  652. + dnl For backward compatibility. Some configure.ins may be using this.
  653. + nls_cv_header_intl=
  654. + nls_cv_header_libgt=
  655. +
  656. + dnl For backward compatibility. Some Makefiles may be using this.
  657. + DATADIRNAME=share
  658. + AC_SUBST(DATADIRNAME)
  659. +
  660. + dnl For backward compatibility. Some Makefiles may be using this.
  661. + INSTOBJEXT=.mo
  662. + AC_SUBST(INSTOBJEXT)
  663. +
  664. + dnl For backward compatibility. Some Makefiles may be using this.
  665. + GENCAT=gencat
  666. + AC_SUBST(GENCAT)
  667. +
  668. + dnl For backward compatibility. Some Makefiles may be using this.
  669. + INTLOBJS=
  670. + if test "$USE_INCLUDED_LIBINTL" = yes; then
  671. + INTLOBJS="\$(GETTOBJS)"
  672. fi
  673. - # Extract the definition of DEPDIR, am__include, and am__quote
  674. - # from the Makefile without running `make'.
  675. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  676. - test -z "$DEPDIR" && continue
  677. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  678. - test -z "am__include" && continue
  679. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  680. - # When using ansi2knr, U may be empty or an underscore; expand it
  681. - U=`sed -n 's/^U = //p' < "$mf"`
  682. - # Find all dependency output files, they are included files with
  683. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  684. - # simplest approach to changing $(DEPDIR) to its actual value in the
  685. - # expansion.
  686. - for file in `sed -n "
  687. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  688. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  689. - # Make sure the directory exists.
  690. - test -f "$dirpart/$file" && continue
  691. - fdir=`AS_DIRNAME(["$file"])`
  692. - AS_MKDIR_P([$dirpart/$fdir])
  693. - # echo "creating $dirpart/$file"
  694. - echo '# dummy' > "$dirpart/$file"
  695. - done
  696. - done
  697. -}
  698. -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  699. + AC_SUBST(INTLOBJS)
  700. + dnl Enable libtool support if the surrounding package wishes it.
  701. + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
  702. + AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
  703. + ])
  704. -# AM_OUTPUT_DEPENDENCY_COMMANDS
  705. -# -----------------------------
  706. -# This macro should only be invoked once -- use via AC_REQUIRE.
  707. -#
  708. -# This code is only required when automatic dependency tracking
  709. -# is enabled. FIXME. This creates each `.P' file that we will
  710. -# need in order to bootstrap the dependency handling code.
  711. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  712. -[AC_CONFIG_COMMANDS([depfiles],
  713. - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  714. - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  715. + dnl For backward compatibility. Some Makefiles may be using this.
  716. + INTLLIBS="$LIBINTL"
  717. + AC_SUBST(INTLLIBS)
  718. +
  719. + dnl Make all documented variables known to autoconf.
  720. + AC_SUBST(LIBINTL)
  721. + AC_SUBST(LTLIBINTL)
  722. + AC_SUBST(POSUB)
  723. ])
  724. -# Do all the work for Automake. -*- Autoconf -*-
  725. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  726. -# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  727. -#
  728. -# This file is free software; the Free Software Foundation
  729. -# gives unlimited permission to copy and/or distribute it,
  730. -# with or without modifications, as long as this notice is preserved.
  731. +dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
  732. +m4_define([gt_NEEDS_INIT],
  733. +[
  734. + m4_divert_text([DEFAULTS], [gt_needs=])
  735. + m4_define([gt_NEEDS_INIT], [])
  736. +])
  737. -# serial 16
  738. -# This macro actually does too much. Some checks are only needed if
  739. -# your package does certain things. But this isn't really a big deal.
  740. +dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
  741. +AC_DEFUN([AM_GNU_GETTEXT_NEED],
  742. +[
  743. + m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
  744. +])
  745. -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  746. -# AM_INIT_AUTOMAKE([OPTIONS])
  747. -# -----------------------------------------------
  748. -# The call with PACKAGE and VERSION arguments is the old style
  749. -# call (pre autoconf-2.50), which is being phased out. PACKAGE
  750. -# and VERSION should now be passed to AC_INIT and removed from
  751. -# the call to AM_INIT_AUTOMAKE.
  752. -# We support both call styles for the transition. After
  753. -# the next Automake release, Autoconf can make the AC_INIT
  754. -# arguments mandatory, and then we can depend on a new Autoconf
  755. -# release and drop the old call support.
  756. -AC_DEFUN([AM_INIT_AUTOMAKE],
  757. -[AC_PREREQ([2.62])dnl
  758. -dnl Autoconf wants to disallow AM_ names. We explicitly allow
  759. -dnl the ones we care about.
  760. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  761. -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  762. -AC_REQUIRE([AC_PROG_INSTALL])dnl
  763. -if test "`cd $srcdir && pwd`" != "`pwd`"; then
  764. - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  765. - # is not polluted with repeated "-I."
  766. - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  767. - # test to see if srcdir already configured
  768. - if test -f $srcdir/config.status; then
  769. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  770. - fi
  771. -fi
  772. -# test whether we have cygpath
  773. -if test -z "$CYGPATH_W"; then
  774. - if (cygpath --version) >/dev/null 2>/dev/null; then
  775. - CYGPATH_W='cygpath -w'
  776. - else
  777. - CYGPATH_W=echo
  778. - fi
  779. -fi
  780. -AC_SUBST([CYGPATH_W])
  781. +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
  782. +AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
  783. -# Define the identity of the package.
  784. -dnl Distinguish between old-style and new-style calls.
  785. -m4_ifval([$2],
  786. -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  787. - AC_SUBST([PACKAGE], [$1])dnl
  788. - AC_SUBST([VERSION], [$2])],
  789. -[_AM_SET_OPTIONS([$1])dnl
  790. -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  791. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  792. - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  793. - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  794. - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  795. +# iconv.m4 serial AM6 (gettext-0.17)
  796. +dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
  797. +dnl This file is free software; the Free Software Foundation
  798. +dnl gives unlimited permission to copy and/or distribute it,
  799. +dnl with or without modifications, as long as this notice is preserved.
  800. -_AM_IF_OPTION([no-define],,
  801. -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  802. - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  803. +dnl From Bruno Haible.
  804. -# Some tools Automake needs.
  805. -AC_REQUIRE([AM_SANITY_CHECK])dnl
  806. -AC_REQUIRE([AC_ARG_PROGRAM])dnl
  807. -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  808. -AM_MISSING_PROG(AUTOCONF, autoconf)
  809. -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  810. -AM_MISSING_PROG(AUTOHEADER, autoheader)
  811. -AM_MISSING_PROG(MAKEINFO, makeinfo)
  812. -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  813. -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  814. -AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  815. -# We need awk for the "check" target. The system "awk" is bad on
  816. -# some platforms.
  817. -AC_REQUIRE([AC_PROG_AWK])dnl
  818. -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  819. -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  820. -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  821. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  822. - [_AM_PROG_TAR([v7])])])
  823. -_AM_IF_OPTION([no-dependencies],,
  824. -[AC_PROVIDE_IFELSE([AC_PROG_CC],
  825. - [_AM_DEPENDENCIES(CC)],
  826. - [define([AC_PROG_CC],
  827. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  828. -AC_PROVIDE_IFELSE([AC_PROG_CXX],
  829. - [_AM_DEPENDENCIES(CXX)],
  830. - [define([AC_PROG_CXX],
  831. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  832. -AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  833. - [_AM_DEPENDENCIES(OBJC)],
  834. - [define([AC_PROG_OBJC],
  835. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  836. -])
  837. -_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  838. -dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  839. -dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  840. -dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  841. -AC_CONFIG_COMMANDS_PRE(dnl
  842. -[m4_provide_if([_AM_COMPILER_EXEEXT],
  843. - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  844. +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
  845. +[
  846. + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  847. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  848. + AC_REQUIRE([AC_LIB_RPATH])
  849. +
  850. + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  851. + dnl accordingly.
  852. + AC_LIB_LINKFLAGS_BODY([iconv])
  853. ])
  854. -dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  855. -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  856. -dnl mangled by Autoconf and run in a shell conditional statement.
  857. -m4_define([_AC_COMPILER_EXEEXT],
  858. -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  859. +AC_DEFUN([AM_ICONV_LINK],
  860. +[
  861. + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  862. + dnl those with the standalone portable GNU libiconv installed).
  863. + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
  864. + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  865. + dnl accordingly.
  866. + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  867. -# When config.status generates a header, we must update the stamp-h file.
  868. -# This file resides in the same directory as the config header
  869. -# that is generated. The stamp files are numbered to have different names.
  870. + dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  871. + dnl because if the user has installed libiconv and not disabled its use
  872. + dnl via --without-libiconv-prefix, he wants to use it. The first
  873. + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
  874. + am_save_CPPFLAGS="$CPPFLAGS"
  875. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  876. -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  877. -# loop where config.status creates the headers, so we can generate
  878. -# our stamp files there.
  879. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  880. -[# Compute $1's index in $config_headers.
  881. -_am_arg=$1
  882. -_am_stamp_count=1
  883. -for _am_header in $config_headers :; do
  884. - case $_am_header in
  885. - $_am_arg | $_am_arg:* )
  886. - break ;;
  887. - * )
  888. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  889. - esac
  890. -done
  891. -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  892. + AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
  893. + am_cv_func_iconv="no, consider installing GNU libiconv"
  894. + am_cv_lib_iconv=no
  895. + AC_TRY_LINK([#include <stdlib.h>
  896. +#include <iconv.h>],
  897. + [iconv_t cd = iconv_open("","");
  898. + iconv(cd,NULL,NULL,NULL,NULL);
  899. + iconv_close(cd);],
  900. + am_cv_func_iconv=yes)
  901. + if test "$am_cv_func_iconv" != yes; then
  902. + am_save_LIBS="$LIBS"
  903. + LIBS="$LIBS $LIBICONV"
  904. + AC_TRY_LINK([#include <stdlib.h>
  905. +#include <iconv.h>],
  906. + [iconv_t cd = iconv_open("","");
  907. + iconv(cd,NULL,NULL,NULL,NULL);
  908. + iconv_close(cd);],
  909. + am_cv_lib_iconv=yes
  910. + am_cv_func_iconv=yes)
  911. + LIBS="$am_save_LIBS"
  912. + fi
  913. + ])
  914. + if test "$am_cv_func_iconv" = yes; then
  915. + AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
  916. + dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
  917. + am_save_LIBS="$LIBS"
  918. + if test $am_cv_lib_iconv = yes; then
  919. + LIBS="$LIBS $LIBICONV"
  920. + fi
  921. + AC_TRY_RUN([
  922. +#include <iconv.h>
  923. +#include <string.h>
  924. +int main ()
  925. +{
  926. + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  927. + returns. */
  928. + {
  929. + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  930. + if (cd_utf8_to_88591 != (iconv_t)(-1))
  931. + {
  932. + static const char input[] = "\342\202\254"; /* EURO SIGN */
  933. + char buf[10];
  934. + const char *inptr = input;
  935. + size_t inbytesleft = strlen (input);
  936. + char *outptr = buf;
  937. + size_t outbytesleft = sizeof (buf);
  938. + size_t res = iconv (cd_utf8_to_88591,
  939. + (char **) &inptr, &inbytesleft,
  940. + &outptr, &outbytesleft);
  941. + if (res == 0)
  942. + return 1;
  943. + }
  944. + }
  945. +#if 0 /* This bug could be worked around by the caller. */
  946. + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  947. + {
  948. + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  949. + if (cd_88591_to_utf8 != (iconv_t)(-1))
  950. + {
  951. + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  952. + char buf[50];
  953. + const char *inptr = input;
  954. + size_t inbytesleft = strlen (input);
  955. + char *outptr = buf;
  956. + size_t outbytesleft = sizeof (buf);
  957. + size_t res = iconv (cd_88591_to_utf8,
  958. + (char **) &inptr, &inbytesleft,
  959. + &outptr, &outbytesleft);
  960. + if ((int)res > 0)
  961. + return 1;
  962. + }
  963. + }
  964. +#endif
  965. + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  966. + provided. */
  967. + if (/* Try standardized names. */
  968. + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  969. + /* Try IRIX, OSF/1 names. */
  970. + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  971. + /* Try AIX names. */
  972. + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  973. + /* Try HP-UX names. */
  974. + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  975. + return 1;
  976. + return 0;
  977. +}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
  978. + [case "$host_os" in
  979. + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  980. + *) am_cv_func_iconv_works="guessing yes" ;;
  981. + esac])
  982. + LIBS="$am_save_LIBS"
  983. + ])
  984. + case "$am_cv_func_iconv_works" in
  985. + *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  986. + *) am_func_iconv=yes ;;
  987. + esac
  988. + else
  989. + am_func_iconv=no am_cv_lib_iconv=no
  990. + fi
  991. + if test "$am_func_iconv" = yes; then
  992. + AC_DEFINE(HAVE_ICONV, 1,
  993. + [Define if you have the iconv() function and it works.])
  994. + fi
  995. + if test "$am_cv_lib_iconv" = yes; then
  996. + AC_MSG_CHECKING([how to link with libiconv])
  997. + AC_MSG_RESULT([$LIBICONV])
  998. + else
  999. + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  1000. + dnl either.
  1001. + CPPFLAGS="$am_save_CPPFLAGS"
  1002. + LIBICONV=
  1003. + LTLIBICONV=
  1004. + fi
  1005. + AC_SUBST(LIBICONV)
  1006. + AC_SUBST(LTLIBICONV)
  1007. +])
  1008. -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  1009. -#
  1010. -# This file is free software; the Free Software Foundation
  1011. -# gives unlimited permission to copy and/or distribute it,
  1012. -# with or without modifications, as long as this notice is preserved.
  1013. +AC_DEFUN([AM_ICONV],
  1014. +[
  1015. + AM_ICONV_LINK
  1016. + if test "$am_cv_func_iconv" = yes; then
  1017. + AC_MSG_CHECKING([for iconv declaration])
  1018. + AC_CACHE_VAL(am_cv_proto_iconv, [
  1019. + AC_TRY_COMPILE([
  1020. +#include <stdlib.h>
  1021. +#include <iconv.h>
  1022. +extern
  1023. +#ifdef __cplusplus
  1024. +"C"
  1025. +#endif
  1026. +#if defined(__STDC__) || defined(__cplusplus)
  1027. +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  1028. +#else
  1029. +size_t iconv();
  1030. +#endif
  1031. +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
  1032. + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  1033. + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  1034. + AC_MSG_RESULT([$]{ac_t:-
  1035. + }[$]am_cv_proto_iconv)
  1036. + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
  1037. + [Define as const if the declaration of iconv() needs const.])
  1038. + fi
  1039. +])
  1040. -# AM_PROG_INSTALL_SH
  1041. -# ------------------
  1042. -# Define $install_sh.
  1043. -AC_DEFUN([AM_PROG_INSTALL_SH],
  1044. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1045. -if test x"${install_sh}" != xset; then
  1046. - case $am_aux_dir in
  1047. - *\ * | *\ *)
  1048. - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1049. - *)
  1050. - install_sh="\${SHELL} $am_aux_dir/install-sh"
  1051. - esac
  1052. -fi
  1053. -AC_SUBST(install_sh)])
  1054. +# intlmacosx.m4 serial 1 (gettext-0.17)
  1055. +dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
  1056. +dnl This file is free software; the Free Software Foundation
  1057. +dnl gives unlimited permission to copy and/or distribute it,
  1058. +dnl with or without modifications, as long as this notice is preserved.
  1059. +dnl
  1060. +dnl This file can can be used in projects which are not available under
  1061. +dnl the GNU General Public License or the GNU Library General Public
  1062. +dnl License but which still want to provide support for the GNU gettext
  1063. +dnl functionality.
  1064. +dnl Please note that the actual code of the GNU gettext library is covered
  1065. +dnl by the GNU Library General Public License, and the rest of the GNU
  1066. +dnl gettext package package is covered by the GNU General Public License.
  1067. +dnl They are *not* in the public domain.
  1068. -# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  1069. -#
  1070. -# This file is free software; the Free Software Foundation
  1071. -# gives unlimited permission to copy and/or distribute it,
  1072. -# with or without modifications, as long as this notice is preserved.
  1073. -
  1074. -# serial 2
  1075. +dnl Checks for special options needed on MacOS X.
  1076. +dnl Defines INTL_MACOSX_LIBS.
  1077. +AC_DEFUN([gt_INTL_MACOSX],
  1078. +[
  1079. + dnl Check for API introduced in MacOS X 10.2.
  1080. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  1081. + gt_cv_func_CFPreferencesCopyAppValue,
  1082. + [gt_save_LIBS="$LIBS"
  1083. + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1084. + AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
  1085. + [CFPreferencesCopyAppValue(NULL, NULL)],
  1086. + [gt_cv_func_CFPreferencesCopyAppValue=yes],
  1087. + [gt_cv_func_CFPreferencesCopyAppValue=no])
  1088. + LIBS="$gt_save_LIBS"])
  1089. + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  1090. + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
  1091. + [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  1092. + fi
  1093. + dnl Check for API introduced in MacOS X 10.3.
  1094. + AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
  1095. + [gt_save_LIBS="$LIBS"
  1096. + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1097. + AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
  1098. + [gt_cv_func_CFLocaleCopyCurrent=yes],
  1099. + [gt_cv_func_CFLocaleCopyCurrent=no])
  1100. + LIBS="$gt_save_LIBS"])
  1101. + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1102. + AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
  1103. + [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  1104. + fi
  1105. + INTL_MACOSX_LIBS=
  1106. + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1107. + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  1108. + fi
  1109. + AC_SUBST([INTL_MACOSX_LIBS])
  1110. +])
  1111. -# Check whether the underlying file-system supports filenames
  1112. -# with a leading dot. For instance MS-DOS doesn't.
  1113. -AC_DEFUN([AM_SET_LEADING_DOT],
  1114. -[rm -rf .tst 2>/dev/null
  1115. -mkdir .tst 2>/dev/null
  1116. -if test -d .tst; then
  1117. - am__leading_dot=.
  1118. -else
  1119. - am__leading_dot=_
  1120. -fi
  1121. -rmdir .tst 2>/dev/null
  1122. -AC_SUBST([am__leading_dot])])
  1123. +# lib-ld.m4 serial 3 (gettext-0.13)
  1124. +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  1125. +dnl This file is free software; the Free Software Foundation
  1126. +dnl gives unlimited permission to copy and/or distribute it,
  1127. +dnl with or without modifications, as long as this notice is preserved.
  1128. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  1129. -# 2006 Free Software Foundation, Inc.
  1130. -#
  1131. -# This file is free software; the Free Software Foundation
  1132. -# gives unlimited permission to copy and/or distribute it,
  1133. -# with or without modifications, as long as this notice is preserved.
  1134. +dnl Subroutines of libtool.m4,
  1135. +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  1136. +dnl with libtool.m4.
  1137. -# serial 10
  1138. +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  1139. +AC_DEFUN([AC_LIB_PROG_LD_GNU],
  1140. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  1141. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1142. +case `$LD -v 2>&1 </dev/null` in
  1143. +*GNU* | *'with BFD'*)
  1144. + acl_cv_prog_gnu_ld=yes ;;
  1145. +*)
  1146. + acl_cv_prog_gnu_ld=no ;;
  1147. +esac])
  1148. +with_gnu_ld=$acl_cv_prog_gnu_ld
  1149. +])
  1150. -# AM_PATH_LISPDIR
  1151. -# ---------------
  1152. -AC_DEFUN([AM_PATH_LISPDIR],
  1153. -[AC_PREREQ([2.60])dnl
  1154. - # If set to t, that means we are running in a shell under Emacs.
  1155. - # If you have an Emacs named "t", then use the full path.
  1156. - test x"$EMACS" = xt && EMACS=
  1157. - AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
  1158. - AC_ARG_VAR([EMACS], [the Emacs editor command])
  1159. - AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
  1160. - AC_ARG_WITH([lispdir],
  1161. - [ --with-lispdir override the default lisp directory],
  1162. - [ lispdir="$withval"
  1163. - AC_MSG_CHECKING([where .elc files should go])
  1164. - AC_MSG_RESULT([$lispdir])],
  1165. - [
  1166. - AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
  1167. - if test $EMACS != "no"; then
  1168. - if test x${lispdir+set} != xset; then
  1169. - # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
  1170. - # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
  1171. - # which is non-obvious for non-emacs users.
  1172. - # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  1173. - # emacsen earlier and avoid running this altogether.
  1174. - AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
  1175. - am_cv_lispdir=`sed -n \
  1176. - -e 's,/$,,' \
  1177. - -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
  1178. - -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
  1179. - conftest.out`
  1180. - rm conftest.out
  1181. - fi
  1182. - fi
  1183. - test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
  1184. - ])
  1185. - lispdir="$am_cv_lispdir"
  1186. +dnl From libtool-1.4. Sets the variable LD.
  1187. +AC_DEFUN([AC_LIB_PROG_LD],
  1188. +[AC_ARG_WITH(gnu-ld,
  1189. +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  1190. +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  1191. +AC_REQUIRE([AC_PROG_CC])dnl
  1192. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1193. +# Prepare PATH_SEPARATOR.
  1194. +# The user is always right.
  1195. +if test "${PATH_SEPARATOR+set}" != set; then
  1196. + echo "#! /bin/sh" >conf$$.sh
  1197. + echo "exit 0" >>conf$$.sh
  1198. + chmod +x conf$$.sh
  1199. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1200. + PATH_SEPARATOR=';'
  1201. + else
  1202. + PATH_SEPARATOR=:
  1203. + fi
  1204. + rm -f conf$$.sh
  1205. +fi
  1206. +ac_prog=ld
  1207. +if test "$GCC" = yes; then
  1208. + # Check if gcc -print-prog-name=ld gives a path.
  1209. + AC_MSG_CHECKING([for ld used by GCC])
  1210. + case $host in
  1211. + *-*-mingw*)
  1212. + # gcc leaves a trailing carriage return which upsets mingw
  1213. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1214. + *)
  1215. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1216. + esac
  1217. + case $ac_prog in
  1218. + # Accept absolute paths.
  1219. + [[\\/]* | [A-Za-z]:[\\/]*)]
  1220. + [re_direlt='/[^/][^/]*/\.\./']
  1221. + # Canonicalize the path of ld
  1222. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1223. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1224. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1225. + done
  1226. + test -z "$LD" && LD="$ac_prog"
  1227. + ;;
  1228. + "")
  1229. + # If it fails, then pretend we aren't using GCC.
  1230. + ac_prog=ld
  1231. + ;;
  1232. + *)
  1233. + # If it is relative, then search for the first ld in PATH.
  1234. + with_gnu_ld=unknown
  1235. + ;;
  1236. + esac
  1237. +elif test "$with_gnu_ld" = yes; then
  1238. + AC_MSG_CHECKING([for GNU ld])
  1239. +else
  1240. + AC_MSG_CHECKING([for non-GNU ld])
  1241. +fi
  1242. +AC_CACHE_VAL(acl_cv_path_LD,
  1243. +[if test -z "$LD"; then
  1244. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1245. + for ac_dir in $PATH; do
  1246. + test -z "$ac_dir" && ac_dir=.
  1247. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1248. + acl_cv_path_LD="$ac_dir/$ac_prog"
  1249. + # Check to see if the program is GNU ld. I'd rather use --version,
  1250. + # but apparently some GNU ld's only accept -v.
  1251. + # Break only if it was the GNU/non-GNU ld that we prefer.
  1252. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  1253. + *GNU* | *'with BFD'*)
  1254. + test "$with_gnu_ld" != no && break ;;
  1255. + *)
  1256. + test "$with_gnu_ld" != yes && break ;;
  1257. + esac
  1258. + fi
  1259. + done
  1260. + IFS="$ac_save_ifs"
  1261. +else
  1262. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  1263. +fi])
  1264. +LD="$acl_cv_path_LD"
  1265. +if test -n "$LD"; then
  1266. + AC_MSG_RESULT($LD)
  1267. +else
  1268. + AC_MSG_RESULT(no)
  1269. +fi
  1270. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1271. +AC_LIB_PROG_LD_GNU
  1272. ])
  1273. -AC_SUBST([lispdir])
  1274. -])# AM_PATH_LISPDIR
  1275. -AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
  1276. +# lib-link.m4 serial 13 (gettext-0.17)
  1277. +dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
  1278. +dnl This file is free software; the Free Software Foundation
  1279. +dnl gives unlimited permission to copy and/or distribute it,
  1280. +dnl with or without modifications, as long as this notice is preserved.
  1281. -# Check to see how 'make' treats includes. -*- Autoconf -*-
  1282. +dnl From Bruno Haible.
  1283. -# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  1284. -#
  1285. -# This file is free software; the Free Software Foundation
  1286. -# gives unlimited permission to copy and/or distribute it,
  1287. -# with or without modifications, as long as this notice is preserved.
  1288. +AC_PREREQ(2.54)
  1289. -# serial 4
  1290. +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  1291. +dnl the libraries corresponding to explicit and implicit dependencies.
  1292. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  1293. +dnl augments the CPPFLAGS variable.
  1294. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  1295. +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1296. +AC_DEFUN([AC_LIB_LINKFLAGS],
  1297. +[
  1298. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1299. + AC_REQUIRE([AC_LIB_RPATH])
  1300. + define([Name],[translit([$1],[./-], [___])])
  1301. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1302. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1303. + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  1304. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1305. + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  1306. + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  1307. + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  1308. + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
  1309. + ])
  1310. + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  1311. + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  1312. + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  1313. + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
  1314. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1315. + AC_SUBST([LIB]NAME)
  1316. + AC_SUBST([LTLIB]NAME)
  1317. + AC_SUBST([LIB]NAME[_PREFIX])
  1318. + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  1319. + dnl results of this search when this library appears as a dependency.
  1320. + HAVE_LIB[]NAME=yes
  1321. + undefine([Name])
  1322. + undefine([NAME])
  1323. +])
  1324. -# AM_MAKE_INCLUDE()
  1325. -# -----------------
  1326. -# Check to see how make treats includes.
  1327. -AC_DEFUN([AM_MAKE_INCLUDE],
  1328. -[am_make=${MAKE-make}
  1329. -cat > confinc << 'END'
  1330. -am__doit:
  1331. - @echo this is the am__doit target
  1332. -.PHONY: am__doit
  1333. -END
  1334. -# If we don't find an include directive, just comment out the code.
  1335. -AC_MSG_CHECKING([for style of include used by $am_make])
  1336. -am__include="#"
  1337. -am__quote=
  1338. -_am_result=none
  1339. -# First try GNU make style include.
  1340. -echo "include confinc" > confmf
  1341. -# Ignore all kinds of additional output from `make'.
  1342. -case `$am_make -s -f confmf 2> /dev/null` in #(
  1343. -*the\ am__doit\ target*)
  1344. - am__include=include
  1345. - am__quote=
  1346. - _am_result=GNU
  1347. - ;;
  1348. -esac
  1349. -# Now try BSD make style include.
  1350. -if test "$am__include" = "#"; then
  1351. - echo '.include "confinc"' > confmf
  1352. - case `$am_make -s -f confmf 2> /dev/null` in #(
  1353. - *the\ am__doit\ target*)
  1354. - am__include=.include
  1355. - am__quote="\""
  1356. - _am_result=BSD
  1357. - ;;
  1358. - esac
  1359. -fi
  1360. -AC_SUBST([am__include])
  1361. -AC_SUBST([am__quote])
  1362. -AC_MSG_RESULT([$_am_result])
  1363. -rm -f confinc confmf
  1364. -])
  1365. +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  1366. +dnl searches for libname and the libraries corresponding to explicit and
  1367. +dnl implicit dependencies, together with the specified include files and
  1368. +dnl the ability to compile and link the specified testcode. If found, it
  1369. +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  1370. +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  1371. +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  1372. +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  1373. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  1374. +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1375. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  1376. +[
  1377. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1378. + AC_REQUIRE([AC_LIB_RPATH])
  1379. + define([Name],[translit([$1],[./-], [___])])
  1380. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1381. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1382. -# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1383. -# Free Software Foundation, Inc.
  1384. -#
  1385. -# This file is free software; the Free Software Foundation
  1386. -# gives unlimited permission to copy and/or distribute it,
  1387. -# with or without modifications, as long as this notice is preserved.
  1388. + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  1389. + dnl accordingly.
  1390. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1391. -# serial 6
  1392. + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  1393. + dnl because if the user has installed lib[]Name and not disabled its use
  1394. + dnl via --without-lib[]Name-prefix, he wants to use it.
  1395. + ac_save_CPPFLAGS="$CPPFLAGS"
  1396. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1397. -# AM_PROG_CC_C_O
  1398. -# --------------
  1399. -# Like AC_PROG_CC_C_O, but changed for automake.
  1400. -AC_DEFUN([AM_PROG_CC_C_O],
  1401. -[AC_REQUIRE([AC_PROG_CC_C_O])dnl
  1402. -AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1403. -AC_REQUIRE_AUX_FILE([compile])dnl
  1404. -# FIXME: we rely on the cache variable name because
  1405. -# there is no other way.
  1406. -set dummy $CC
  1407. -am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  1408. -eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  1409. -if test "$am_t" != yes; then
  1410. - # Losing compiler, so override with the script.
  1411. - # FIXME: It is wrong to rewrite CC.
  1412. - # But if we don't then we get into trouble of one sort or another.
  1413. - # A longer-term fix would be to have automake use am__CC in this case,
  1414. - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  1415. - CC="$am_aux_dir/compile $CC"
  1416. -fi
  1417. -dnl Make sure AC_PROG_CC is never called again, or it will override our
  1418. -dnl setting of CC.
  1419. -m4_define([AC_PROG_CC],
  1420. - [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  1421. + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  1422. + ac_save_LIBS="$LIBS"
  1423. + LIBS="$LIBS $LIB[]NAME"
  1424. + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  1425. + LIBS="$ac_save_LIBS"
  1426. + ])
  1427. + if test "$ac_cv_lib[]Name" = yes; then
  1428. + HAVE_LIB[]NAME=yes
  1429. + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  1430. + AC_MSG_CHECKING([how to link with lib[]$1])
  1431. + AC_MSG_RESULT([$LIB[]NAME])
  1432. + else
  1433. + HAVE_LIB[]NAME=no
  1434. + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  1435. + dnl $INC[]NAME either.
  1436. + CPPFLAGS="$ac_save_CPPFLAGS"
  1437. + LIB[]NAME=
  1438. + LTLIB[]NAME=
  1439. + LIB[]NAME[]_PREFIX=
  1440. + fi
  1441. + AC_SUBST([HAVE_LIB]NAME)
  1442. + AC_SUBST([LIB]NAME)
  1443. + AC_SUBST([LTLIB]NAME)
  1444. + AC_SUBST([LIB]NAME[_PREFIX])
  1445. + undefine([Name])
  1446. + undefine([NAME])
  1447. ])
  1448. -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1449. -
  1450. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1451. -# Free Software Foundation, Inc.
  1452. -#
  1453. -# This file is free software; the Free Software Foundation
  1454. -# gives unlimited permission to copy and/or distribute it,
  1455. -# with or without modifications, as long as this notice is preserved.
  1456. -
  1457. -# serial 6
  1458. -
  1459. -# AM_MISSING_PROG(NAME, PROGRAM)
  1460. -# ------------------------------
  1461. -AC_DEFUN([AM_MISSING_PROG],
  1462. -[AC_REQUIRE([AM_MISSING_HAS_RUN])
  1463. -$1=${$1-"${am_missing_run}$2"}
  1464. -AC_SUBST($1)])
  1465. -
  1466. -
  1467. -# AM_MISSING_HAS_RUN
  1468. -# ------------------
  1469. -# Define MISSING if not defined so far and test if it supports --run.
  1470. -# If it does, set am_missing_run to use it, otherwise, to nothing.
  1471. -AC_DEFUN([AM_MISSING_HAS_RUN],
  1472. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1473. -AC_REQUIRE_AUX_FILE([missing])dnl
  1474. -if test x"${MISSING+set}" != xset; then
  1475. - case $am_aux_dir in
  1476. - *\ * | *\ *)
  1477. - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1478. - *)
  1479. - MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1480. - esac
  1481. -fi
  1482. -# Use eval to expand $SHELL
  1483. -if eval "$MISSING --run true"; then
  1484. - am_missing_run="$MISSING --run "
  1485. -else
  1486. - am_missing_run=
  1487. - AC_MSG_WARN([`missing' script is too old or missing])
  1488. -fi
  1489. +dnl Determine the platform dependent parameters needed to use rpath:
  1490. +dnl acl_libext,
  1491. +dnl acl_shlibext,
  1492. +dnl acl_hardcode_libdir_flag_spec,
  1493. +dnl acl_hardcode_libdir_separator,
  1494. +dnl acl_hardcode_direct,
  1495. +dnl acl_hardcode_minus_L.
  1496. +AC_DEFUN([AC_LIB_RPATH],
  1497. +[
  1498. + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  1499. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  1500. + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  1501. + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  1502. + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  1503. + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  1504. + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  1505. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  1506. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  1507. + . ./conftest.sh
  1508. + rm -f ./conftest.sh
  1509. + acl_cv_rpath=done
  1510. + ])
  1511. + wl="$acl_cv_wl"
  1512. + acl_libext="$acl_cv_libext"
  1513. + acl_shlibext="$acl_cv_shlibext"
  1514. + acl_libname_spec="$acl_cv_libname_spec"
  1515. + acl_library_names_spec="$acl_cv_library_names_spec"
  1516. + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  1517. + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  1518. + acl_hardcode_direct="$acl_cv_hardcode_direct"
  1519. + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  1520. + dnl Determine whether the user wants rpath handling at all.
  1521. + AC_ARG_ENABLE(rpath,
  1522. + [ --disable-rpath do not hardcode runtime library paths],
  1523. + :, enable_rpath=yes)
  1524. ])
  1525. -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1526. -#
  1527. -# This file is free software; the Free Software Foundation
  1528. -# gives unlimited permission to copy and/or distribute it,
  1529. -# with or without modifications, as long as this notice is preserved.
  1530. -
  1531. -# AM_PROG_MKDIR_P
  1532. -# ---------------
  1533. -# Check for `mkdir -p'.
  1534. -AC_DEFUN([AM_PROG_MKDIR_P],
  1535. -[AC_PREREQ([2.60])dnl
  1536. -AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1537. -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  1538. -dnl while keeping a definition of mkdir_p for backward compatibility.
  1539. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1540. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1541. -dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1542. -dnl adjustment using top_builddir (which is defined more often than
  1543. -dnl MKDIR_P).
  1544. -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1545. -case $mkdir_p in
  1546. - [[\\/$]]* | ?:[[\\/]]*) ;;
  1547. - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1548. -esac
  1549. +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  1550. +dnl the libraries corresponding to explicit and implicit dependencies.
  1551. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  1552. +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
  1553. +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1554. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  1555. +[
  1556. + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1557. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1558. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1559. + dnl Autoconf >= 2.61 supports dots in --with options.
  1560. + define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
  1561. + dnl By default, look in $includedir and $libdir.
  1562. + use_additional=yes
  1563. + AC_LIB_WITH_FINAL_PREFIX([
  1564. + eval additional_includedir=\"$includedir\"
  1565. + eval additional_libdir=\"$libdir\"
  1566. + ])
  1567. + AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
  1568. +[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  1569. + --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
  1570. +[
  1571. + if test "X$withval" = "Xno"; then
  1572. + use_additional=no
  1573. + else
  1574. + if test "X$withval" = "X"; then
  1575. + AC_LIB_WITH_FINAL_PREFIX([
  1576. + eval additional_includedir=\"$includedir\"
  1577. + eval additional_libdir=\"$libdir\"
  1578. + ])
  1579. + else
  1580. + additional_includedir="$withval/include"
  1581. + additional_libdir="$withval/$acl_libdirstem"
  1582. + fi
  1583. + fi
  1584. ])
  1585. -
  1586. -# Helper functions for option handling. -*- Autoconf -*-
  1587. -
  1588. -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  1589. -#
  1590. -# This file is free software; the Free Software Foundation
  1591. -# gives unlimited permission to copy and/or distribute it,
  1592. -# with or without modifications, as long as this notice is preserved.
  1593. -
  1594. -# serial 4
  1595. -
  1596. -# _AM_MANGLE_OPTION(NAME)
  1597. -# -----------------------
  1598. -AC_DEFUN([_AM_MANGLE_OPTION],
  1599. -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1600. -
  1601. -# _AM_SET_OPTION(NAME)
  1602. -# ------------------------------
  1603. -# Set option NAME. Presently that only means defining a flag for this option.
  1604. -AC_DEFUN([_AM_SET_OPTION],
  1605. -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1606. -
  1607. -# _AM_SET_OPTIONS(OPTIONS)
  1608. -# ----------------------------------
  1609. -# OPTIONS is a space-separated list of Automake options.
  1610. -AC_DEFUN([_AM_SET_OPTIONS],
  1611. -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1612. -
  1613. -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1614. -# -------------------------------------------
  1615. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1616. -AC_DEFUN([_AM_IF_OPTION],
  1617. -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1618. -
  1619. -# Check to make sure that the build environment is sane. -*- Autoconf -*-
  1620. -
  1621. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  1622. -# Free Software Foundation, Inc.
  1623. -#
  1624. -# This file is free software; the Free Software Foundation
  1625. -# gives unlimited permission to copy and/or distribute it,
  1626. -# with or without modifications, as long as this notice is preserved.
  1627. -
  1628. -# serial 5
  1629. -
  1630. -# AM_SANITY_CHECK
  1631. -# ---------------
  1632. -AC_DEFUN([AM_SANITY_CHECK],
  1633. -[AC_MSG_CHECKING([whether build environment is sane])
  1634. -# Just in case
  1635. -sleep 1
  1636. -echo timestamp > conftest.file
  1637. -# Reject unsafe characters in $srcdir or the absolute working directory
  1638. -# name. Accept space and tab only in the latter.
  1639. -am_lf='
  1640. -'
  1641. -case `pwd` in
  1642. - *[[\\\"\#\$\&\'\`$am_lf]]*)
  1643. - AC_MSG_ERROR([unsafe absolute working directory name]);;
  1644. -esac
  1645. -case $srcdir in
  1646. - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1647. - AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  1648. -esac
  1649. -
  1650. -# Do `set' in a subshell so we don't clobber the current shell's
  1651. -# arguments. Must try -L first in case configure is actually a
  1652. -# symlink; some systems play weird games with the mod time of symlinks
  1653. -# (eg FreeBSD returns the mod time of the symlink's containing
  1654. -# directory).
  1655. -if (
  1656. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1657. - if test "$[*]" = "X"; then
  1658. - # -L didn't work.
  1659. - set X `ls -t "$srcdir/configure" conftest.file`
  1660. - fi
  1661. - rm -f conftest.file
  1662. - if test "$[*]" != "X $srcdir/configure conftest.file" \
  1663. - && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1664. -
  1665. - # If neither matched, then we have a broken ls. This can happen
  1666. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  1667. - # broken ls alias from the environment. This has actually
  1668. - # happened. Such a system could not be considered "sane".
  1669. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1670. -alias in your environment])
  1671. - fi
  1672. -
  1673. - test "$[2]" = conftest.file
  1674. - )
  1675. -then
  1676. - # Ok.
  1677. - :
  1678. -else
  1679. - AC_MSG_ERROR([newly created file is older than distributed files!
  1680. -Check your system clock])
  1681. -fi
  1682. -AC_MSG_RESULT(yes)])
  1683. -
  1684. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1685. -#
  1686. -# This file is free software; the Free Software Foundation
  1687. -# gives unlimited permission to copy and/or distribute it,
  1688. -# with or without modifications, as long as this notice is preserved.
  1689. -
  1690. -# AM_PROG_INSTALL_STRIP
  1691. -# ---------------------
  1692. -# One issue with vendor `install' (even GNU) is that you can't
  1693. -# specify the program used to strip binaries. This is especially
  1694. -# annoying in cross-compiling environments, where the build's strip
  1695. -# is unlikely to handle the host's binaries.
  1696. -# Fortunately install-sh will honor a STRIPPROG variable, so we
  1697. -# always use install-sh in `make install-strip', and initialize
  1698. -# STRIPPROG with the value of the STRIP variable (set by the user).
  1699. -AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1700. -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1701. -# Installed binaries are usually stripped using `strip' when the user
  1702. -# run `make install-strip'. However `strip' might not be the right
  1703. -# tool to use in cross-compilation environments, therefore Automake
  1704. -# will honor the `STRIP' environment variable to overrule this program.
  1705. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1706. -if test "$cross_compiling" != no; then
  1707. - AC_CHECK_TOOL([STRIP], [strip], :)
  1708. -fi
  1709. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1710. -AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1711. -
  1712. -# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  1713. -#
  1714. -# This file is free software; the Free Software Foundation
  1715. -# gives unlimited permission to copy and/or distribute it,
  1716. -# with or without modifications, as long as this notice is preserved.
  1717. -
  1718. -# serial 2
  1719. -
  1720. -# _AM_SUBST_NOTMAKE(VARIABLE)
  1721. -# ---------------------------
  1722. -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1723. -# This macro is traced by Automake.
  1724. -AC_DEFUN([_AM_SUBST_NOTMAKE])
  1725. -
  1726. -# AM_SUBST_NOTMAKE(VARIABLE)
  1727. -# ---------------------------
  1728. -# Public sister of _AM_SUBST_NOTMAKE.
  1729. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1730. -
  1731. -# Check how to create a tarball. -*- Autoconf -*-
  1732. -
  1733. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  1734. -#
  1735. -# This file is free software; the Free Software Foundation
  1736. -# gives unlimited permission to copy and/or distribute it,
  1737. -# with or without modifications, as long as this notice is preserved.
  1738. -
  1739. -# serial 2
  1740. -
  1741. -# _AM_PROG_TAR(FORMAT)
  1742. -# --------------------
  1743. -# Check how to create a tarball in format FORMAT.
  1744. -# FORMAT should be one of `v7', `ustar', or `pax'.
  1745. -#
  1746. -# Substitute a variable $(am__tar) that is a command
  1747. -# writing to stdout a FORMAT-tarball containing the directory
  1748. -# $tardir.
  1749. -# tardir=directory && $(am__tar) > result.tar
  1750. -#
  1751. -# Substitute a variable $(am__untar) that extract such
  1752. -# a tarball read from stdin.
  1753. -# $(am__untar) < result.tar
  1754. -AC_DEFUN([_AM_PROG_TAR],
  1755. -[# Always define AMTAR for backward compatibility.
  1756. -AM_MISSING_PROG([AMTAR], [tar])
  1757. -m4_if([$1], [v7],
  1758. - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1759. - [m4_case([$1], [ustar],, [pax],,
  1760. - [m4_fatal([Unknown tar format])])
  1761. -AC_MSG_CHECKING([how to create a $1 tar archive])
  1762. -# Loop over all known methods to create a tar archive until one works.
  1763. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1764. -_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1765. -# Do not fold the above two line into one, because Tru64 sh and
  1766. -# Solaris sh will not grok spaces in the rhs of `-'.
  1767. -for _am_tool in $_am_tools
  1768. -do
  1769. - case $_am_tool in
  1770. - gnutar)
  1771. - for _am_tar in tar gnutar gtar;
  1772. - do
  1773. - AM_RUN_LOG([$_am_tar --version]) && break
  1774. - done
  1775. - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1776. - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1777. - am__untar="$_am_tar -xf -"
  1778. - ;;
  1779. - plaintar)
  1780. - # Must skip GNU tar: if it does not support --format= it doesn't create
  1781. - # ustar tarball either.
  1782. - (tar --version) >/dev/null 2>&1 && continue
  1783. - am__tar='tar chf - "$$tardir"'
  1784. - am__tar_='tar chf - "$tardir"'
  1785. - am__untar='tar xf -'
  1786. - ;;
  1787. - pax)
  1788. - am__tar='pax -L -x $1 -w "$$tardir"'
  1789. - am__tar_='pax -L -x $1 -w "$tardir"'
  1790. - am__untar='pax -r'
  1791. - ;;
  1792. - cpio)
  1793. - am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1794. - am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1795. - am__untar='cpio -i -H $1 -d'
  1796. - ;;
  1797. - none)
  1798. - am__tar=false
  1799. - am__tar_=false
  1800. - am__untar=false
  1801. - ;;
  1802. - esac
  1803. -
  1804. - # If the value was cached, stop now. We just wanted to have am__tar
  1805. - # and am__untar set.
  1806. - test -n "${am_cv_prog_tar_$1}" && break
  1807. -
  1808. - # tar/untar a dummy directory, and stop if the command works
  1809. - rm -rf conftest.dir
  1810. - mkdir conftest.dir
  1811. - echo GrepMe > conftest.dir/file
  1812. - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1813. - rm -rf conftest.dir
  1814. - if test -s conftest.tar; then
  1815. - AM_RUN_LOG([$am__untar <conftest.tar])
  1816. - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1817. - fi
  1818. -done
  1819. -rm -rf conftest.dir
  1820. -
  1821. -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1822. -AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1823. -AC_SUBST([am__tar])
  1824. -AC_SUBST([am__untar])
  1825. -]) # _AM_PROG_TAR
  1826. -
  1827. -m4_include([m4/autobuild.m4])
  1828. -# gettext.m4 serial 60 (gettext-0.17)
  1829. -dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  1830. -dnl This file is free software; the Free Software Foundation
  1831. -dnl gives unlimited permission to copy and/or distribute it,
  1832. -dnl with or without modifications, as long as this notice is preserved.
  1833. -dnl
  1834. -dnl This file can can be used in projects which are not available under
  1835. -dnl the GNU General Public License or the GNU Library General Public
  1836. -dnl License but which still want to provide support for the GNU gettext
  1837. -dnl functionality.
  1838. -dnl Please note that the actual code of the GNU gettext library is covered
  1839. -dnl by the GNU Library General Public License, and the rest of the GNU
  1840. -dnl gettext package package is covered by the GNU General Public License.
  1841. -dnl They are *not* in the public domain.
  1842. -
  1843. -dnl Authors:
  1844. -dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  1845. -dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
  1846. -
  1847. -dnl Macro to add for using GNU gettext.
  1848. -
  1849. -dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
  1850. -dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
  1851. -dnl default (if it is not specified or empty) is 'no-libtool'.
  1852. -dnl INTLSYMBOL should be 'external' for packages with no intl directory,
  1853. -dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
  1854. -dnl If INTLSYMBOL is 'use-libtool', then a libtool library
  1855. -dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
  1856. -dnl depending on --{enable,disable}-{shared,static} and on the presence of
  1857. -dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
  1858. -dnl $(top_builddir)/intl/libintl.a will be created.
  1859. -dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
  1860. -dnl implementations (in libc or libintl) without the ngettext() function
  1861. -dnl will be ignored. If NEEDSYMBOL is specified and is
  1862. -dnl 'need-formatstring-macros', then GNU gettext implementations that don't
  1863. -dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
  1864. -dnl INTLDIR is used to find the intl libraries. If empty,
  1865. -dnl the value `$(top_builddir)/intl/' is used.
  1866. -dnl
  1867. -dnl The result of the configuration is one of three cases:
  1868. -dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
  1869. -dnl and used.
  1870. -dnl Catalog format: GNU --> install in $(datadir)
  1871. -dnl Catalog extension: .mo after installation, .gmo in source tree
  1872. -dnl 2) GNU gettext has been found in the system's C library.
  1873. -dnl Catalog format: GNU --> install in $(datadir)
  1874. -dnl Catalog extension: .mo after installation, .gmo in source tree
  1875. -dnl 3) No internationalization, always use English msgid.
  1876. -dnl Catalog format: none
  1877. -dnl Catalog extension: none
  1878. -dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
  1879. -dnl The use of .gmo is historical (it was needed to avoid overwriting the
  1880. -dnl GNU format catalogs when building on a platform with an X/Open gettext),
  1881. -dnl but we keep it in order not to force irrelevant filename changes on the
  1882. -dnl maintainers.
  1883. -dnl
  1884. -AC_DEFUN([AM_GNU_GETTEXT],
  1885. -[
  1886. - dnl Argument checking.
  1887. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
  1888. - [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
  1889. -])])])])])
  1890. - ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
  1891. - [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
  1892. -])])])])
  1893. - define([gt_included_intl],
  1894. - ifelse([$1], [external],
  1895. - ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
  1896. - [yes]))
  1897. - define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
  1898. - gt_NEEDS_INIT
  1899. - AM_GNU_GETTEXT_NEED([$2])
  1900. -
  1901. - AC_REQUIRE([AM_PO_SUBDIRS])dnl
  1902. - ifelse(gt_included_intl, yes, [
  1903. - AC_REQUIRE([AM_INTL_SUBDIR])dnl
  1904. - ])
  1905. -
  1906. - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  1907. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1908. - AC_REQUIRE([AC_LIB_RPATH])
  1909. -
  1910. - dnl Sometimes libintl requires libiconv, so first search for libiconv.
  1911. - dnl Ideally we would do this search only after the
  1912. - dnl if test "$USE_NLS" = "yes"; then
  1913. - dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  1914. - dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
  1915. - dnl the configure script would need to contain the same shell code
  1916. - dnl again, outside any 'if'. There are two solutions:
  1917. - dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
  1918. - dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
  1919. - dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
  1920. - dnl documented, we avoid it.
  1921. - ifelse(gt_included_intl, yes, , [
  1922. - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  1923. - ])
  1924. -
  1925. - dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
  1926. - gt_INTL_MACOSX
  1927. -
  1928. - dnl Set USE_NLS.
  1929. - AC_REQUIRE([AM_NLS])
  1930. -
  1931. - ifelse(gt_included_intl, yes, [
  1932. - BUILD_INCLUDED_LIBINTL=no
  1933. - USE_INCLUDED_LIBINTL=no
  1934. - ])
  1935. - LIBINTL=
  1936. - LTLIBINTL=
  1937. - POSUB=
  1938. -
  1939. - dnl Add a version number to the cache macros.
  1940. - case " $gt_needs " in
  1941. - *" need-formatstring-macros "*) gt_api_version=3 ;;
  1942. - *" need-ngettext "*) gt_api_version=2 ;;
  1943. - *) gt_api_version=1 ;;
  1944. - esac
  1945. - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  1946. - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  1947. -
  1948. - dnl If we use NLS figure out what method
  1949. - if test "$USE_NLS" = "yes"; then
  1950. - gt_use_preinstalled_gnugettext=no
  1951. - ifelse(gt_included_intl, yes, [
  1952. - AC_MSG_CHECKING([whether included gettext is requested])
  1953. - AC_ARG_WITH(included-gettext,
  1954. - [ --with-included-gettext use the GNU gettext library included here],
  1955. - nls_cv_force_use_gnu_gettext=$withval,
  1956. - nls_cv_force_use_gnu_gettext=no)
  1957. - AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
  1958. -
  1959. - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  1960. - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  1961. - ])
  1962. - dnl User does not insist on using GNU NLS library. Figure out what
  1963. - dnl to use. If GNU gettext is available we use this. Else we have
  1964. - dnl to fall back to GNU NLS library.
  1965. -
  1966. - if test $gt_api_version -ge 3; then
  1967. - gt_revision_test_code='
  1968. -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  1969. -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  1970. -#endif
  1971. -changequote(,)dnl
  1972. -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  1973. -changequote([,])dnl
  1974. -'
  1975. - else
  1976. - gt_revision_test_code=
  1977. - fi
  1978. - if test $gt_api_version -ge 2; then
  1979. - gt_expression_test_code=' + * ngettext ("", "", 0)'
  1980. - else
  1981. - gt_expression_test_code=
  1982. - fi
  1983. -
  1984. - AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
  1985. - [AC_TRY_LINK([#include <libintl.h>
  1986. -$gt_revision_test_code
  1987. -extern int _nl_msg_cat_cntr;
  1988. -extern int *_nl_domain_bindings;],
  1989. - [bindtextdomain ("", "");
  1990. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
  1991. - [eval "$gt_func_gnugettext_libc=yes"],
  1992. - [eval "$gt_func_gnugettext_libc=no"])])
  1993. -
  1994. - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  1995. - dnl Sometimes libintl requires libiconv, so first search for libiconv.
  1996. - ifelse(gt_included_intl, yes, , [
  1997. - AM_ICONV_LINK
  1998. - ])
  1999. - dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
  2000. - dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
  2001. - dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
  2002. - dnl even if libiconv doesn't exist.
  2003. - AC_LIB_LINKFLAGS_BODY([intl])
  2004. - AC_CACHE_CHECK([for GNU gettext in libintl],
  2005. - [$gt_func_gnugettext_libintl],
  2006. - [gt_save_CPPFLAGS="$CPPFLAGS"
  2007. - CPPFLAGS="$CPPFLAGS $INCINTL"
  2008. - gt_save_LIBS="$LIBS"
  2009. - LIBS="$LIBS $LIBINTL"
  2010. - dnl Now see whether libintl exists and does not depend on libiconv.
  2011. - AC_TRY_LINK([#include <libintl.h>
  2012. -$gt_revision_test_code
  2013. -extern int _nl_msg_cat_cntr;
  2014. -extern
  2015. -#ifdef __cplusplus
  2016. -"C"
  2017. -#endif
  2018. -const char *_nl_expand_alias (const char *);],
  2019. - [bindtextdomain ("", "");
  2020. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  2021. - [eval "$gt_func_gnugettext_libintl=yes"],
  2022. - [eval "$gt_func_gnugettext_libintl=no"])
  2023. - dnl Now see whether libintl exists and depends on libiconv.
  2024. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  2025. - LIBS="$LIBS $LIBICONV"
  2026. - AC_TRY_LINK([#include <libintl.h>
  2027. -$gt_revision_test_code
  2028. -extern int _nl_msg_cat_cntr;
  2029. -extern
  2030. -#ifdef __cplusplus
  2031. -"C"
  2032. -#endif
  2033. -const char *_nl_expand_alias (const char *);],
  2034. - [bindtextdomain ("", "");
  2035. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  2036. - [LIBINTL="$LIBINTL $LIBICONV"
  2037. - LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  2038. - eval "$gt_func_gnugettext_libintl=yes"
  2039. - ])
  2040. - fi
  2041. - CPPFLAGS="$gt_save_CPPFLAGS"
  2042. - LIBS="$gt_save_LIBS"])
  2043. - fi
  2044. -
  2045. - dnl If an already present or preinstalled GNU gettext() is found,
  2046. - dnl use it. But if this macro is used in GNU gettext, and GNU
  2047. - dnl gettext is already preinstalled in libintl, we update this
  2048. - dnl libintl. (Cf. the install rule in intl/Makefile.in.)
  2049. - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  2050. - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  2051. - && test "$PACKAGE" != gettext-runtime \
  2052. - && test "$PACKAGE" != gettext-tools; }; then
  2053. - gt_use_preinstalled_gnugettext=yes
  2054. - else
  2055. - dnl Reset the values set by searching for libintl.
  2056. - LIBINTL=
  2057. - LTLIBINTL=
  2058. - INCINTL=
  2059. - fi
  2060. -
  2061. - ifelse(gt_included_intl, yes, [
  2062. - if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  2063. - dnl GNU gettext is not found in the C library.
  2064. - dnl Fall back on included GNU gettext library.
  2065. - nls_cv_use_gnu_gettext=yes
  2066. - fi
  2067. - fi
  2068. -
  2069. - if test "$nls_cv_use_gnu_gettext" = "yes"; then
  2070. - dnl Mark actions used to generate GNU NLS library.
  2071. - BUILD_INCLUDED_LIBINTL=yes
  2072. - USE_INCLUDED_LIBINTL=yes
  2073. - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
  2074. - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
  2075. - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  2076. - fi
  2077. -
  2078. - CATOBJEXT=
  2079. - if test "$gt_use_preinstalled_gnugettext" = "yes" \
  2080. - || test "$nls_cv_use_gnu_gettext" = "yes"; then
  2081. - dnl Mark actions to use GNU gettext tools.
  2082. - CATOBJEXT=.gmo
  2083. - fi
  2084. - ])
  2085. -
  2086. - if test -n "$INTL_MACOSX_LIBS"; then
  2087. - if test "$gt_use_preinstalled_gnugettext" = "yes" \
  2088. - || test "$nls_cv_use_gnu_gettext" = "yes"; then
  2089. - dnl Some extra flags are needed during linking.
  2090. - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  2091. - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  2092. - fi
  2093. - fi
  2094. -
  2095. - if test "$gt_use_preinstalled_gnugettext" = "yes" \
  2096. - || test "$nls_cv_use_gnu_gettext" = "yes"; then
  2097. - AC_DEFINE(ENABLE_NLS, 1,
  2098. - [Define to 1 if translation of program messages to the user's native language
  2099. - is requested.])
  2100. - else
  2101. - USE_NLS=no
  2102. - fi
  2103. - fi
  2104. -
  2105. - AC_MSG_CHECKING([whether to use NLS])
  2106. - AC_MSG_RESULT([$USE_NLS])
  2107. - if test "$USE_NLS" = "yes"; then
  2108. - AC_MSG_CHECKING([where the gettext function comes from])
  2109. - if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  2110. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  2111. - gt_source="external libintl"
  2112. - else
  2113. - gt_source="libc"
  2114. - fi
  2115. - else
  2116. - gt_source="included intl directory"
  2117. - fi
  2118. - AC_MSG_RESULT([$gt_source])
  2119. - fi
  2120. -
  2121. - if test "$USE_NLS" = "yes"; then
  2122. -
  2123. - if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  2124. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  2125. - AC_MSG_CHECKING([how to link with libintl])
  2126. - AC_MSG_RESULT([$LIBINTL])
  2127. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  2128. - fi
  2129. -
  2130. - dnl For backward compatibility. Some packages may be using this.
  2131. - AC_DEFINE(HAVE_GETTEXT, 1,
  2132. - [Define if the GNU gettext() function is already present or preinstalled.])
  2133. - AC_DEFINE(HAVE_DCGETTEXT, 1,
  2134. - [Define if the GNU dcgettext() function is already present or preinstalled.])
  2135. - fi
  2136. -
  2137. - dnl We need to process the po/ directory.
  2138. - POSUB=po
  2139. - fi
  2140. -
  2141. - ifelse(gt_included_intl, yes, [
  2142. - dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
  2143. - dnl to 'yes' because some of the testsuite requires it.
  2144. - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  2145. - BUILD_INCLUDED_LIBINTL=yes
  2146. - fi
  2147. -
  2148. - dnl Make all variables we use known to autoconf.
  2149. - AC_SUBST(BUILD_INCLUDED_LIBINTL)
  2150. - AC_SUBST(USE_INCLUDED_LIBINTL)
  2151. - AC_SUBST(CATOBJEXT)
  2152. -
  2153. - dnl For backward compatibility. Some configure.ins may be using this.
  2154. - nls_cv_header_intl=
  2155. - nls_cv_header_libgt=
  2156. -
  2157. - dnl For backward compatibility. Some Makefiles may be using this.
  2158. - DATADIRNAME=share
  2159. - AC_SUBST(DATADIRNAME)
  2160. -
  2161. - dnl For backward compatibility. Some Makefiles may be using this.
  2162. - INSTOBJEXT=.mo
  2163. - AC_SUBST(INSTOBJEXT)
  2164. -
  2165. - dnl For backward compatibility. Some Makefiles may be using this.
  2166. - GENCAT=gencat
  2167. - AC_SUBST(GENCAT)
  2168. -
  2169. - dnl For backward compatibility. Some Makefiles may be using this.
  2170. - INTLOBJS=
  2171. - if test "$USE_INCLUDED_LIBINTL" = yes; then
  2172. - INTLOBJS="\$(GETTOBJS)"
  2173. - fi
  2174. - AC_SUBST(INTLOBJS)
  2175. -
  2176. - dnl Enable libtool support if the surrounding package wishes it.
  2177. - INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
  2178. - AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
  2179. - ])
  2180. -
  2181. - dnl For backward compatibility. Some Makefiles may be using this.
  2182. - INTLLIBS="$LIBINTL"
  2183. - AC_SUBST(INTLLIBS)
  2184. -
  2185. - dnl Make all documented variables known to autoconf.
  2186. - AC_SUBST(LIBINTL)
  2187. - AC_SUBST(LTLIBINTL)
  2188. - AC_SUBST(POSUB)
  2189. -])
  2190. -
  2191. -
  2192. -dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
  2193. -m4_define([gt_NEEDS_INIT],
  2194. -[
  2195. - m4_divert_text([DEFAULTS], [gt_needs=])
  2196. - m4_define([gt_NEEDS_INIT], [])
  2197. -])
  2198. -
  2199. -
  2200. -dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
  2201. -AC_DEFUN([AM_GNU_GETTEXT_NEED],
  2202. -[
  2203. - m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
  2204. -])
  2205. -
  2206. -
  2207. -dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
  2208. -AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
  2209. -
  2210. -# iconv.m4 serial AM6 (gettext-0.17)
  2211. -dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
  2212. -dnl This file is free software; the Free Software Foundation
  2213. -dnl gives unlimited permission to copy and/or distribute it,
  2214. -dnl with or without modifications, as long as this notice is preserved.
  2215. -
  2216. -dnl From Bruno Haible.
  2217. -
  2218. -AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
  2219. -[
  2220. - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  2221. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  2222. - AC_REQUIRE([AC_LIB_RPATH])
  2223. -
  2224. - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  2225. - dnl accordingly.
  2226. - AC_LIB_LINKFLAGS_BODY([iconv])
  2227. -])
  2228. -
  2229. -AC_DEFUN([AM_ICONV_LINK],
  2230. -[
  2231. - dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  2232. - dnl those with the standalone portable GNU libiconv installed).
  2233. - AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
  2234. -
  2235. - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  2236. - dnl accordingly.
  2237. - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  2238. -
  2239. - dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  2240. - dnl because if the user has installed libiconv and not disabled its use
  2241. - dnl via --without-libiconv-prefix, he wants to use it. The first
  2242. - dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
  2243. - am_save_CPPFLAGS="$CPPFLAGS"
  2244. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  2245. -
  2246. - AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
  2247. - am_cv_func_iconv="no, consider installing GNU libiconv"
  2248. - am_cv_lib_iconv=no
  2249. - AC_TRY_LINK([#include <stdlib.h>
  2250. -#include <iconv.h>],
  2251. - [iconv_t cd = iconv_open("","");
  2252. - iconv(cd,NULL,NULL,NULL,NULL);
  2253. - iconv_close(cd);],
  2254. - am_cv_func_iconv=yes)
  2255. - if test "$am_cv_func_iconv" != yes; then
  2256. - am_save_LIBS="$LIBS"
  2257. - LIBS="$LIBS $LIBICONV"
  2258. - AC_TRY_LINK([#include <stdlib.h>
  2259. -#include <iconv.h>],
  2260. - [iconv_t cd = iconv_open("","");
  2261. - iconv(cd,NULL,NULL,NULL,NULL);
  2262. - iconv_close(cd);],
  2263. - am_cv_lib_iconv=yes
  2264. - am_cv_func_iconv=yes)
  2265. - LIBS="$am_save_LIBS"
  2266. - fi
  2267. - ])
  2268. - if test "$am_cv_func_iconv" = yes; then
  2269. - AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
  2270. - dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
  2271. - am_save_LIBS="$LIBS"
  2272. - if test $am_cv_lib_iconv = yes; then
  2273. - LIBS="$LIBS $LIBICONV"
  2274. - fi
  2275. - AC_TRY_RUN([
  2276. -#include <iconv.h>
  2277. -#include <string.h>
  2278. -int main ()
  2279. -{
  2280. - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  2281. - returns. */
  2282. - {
  2283. - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  2284. - if (cd_utf8_to_88591 != (iconv_t)(-1))
  2285. - {
  2286. - static const char input[] = "\342\202\254"; /* EURO SIGN */
  2287. - char buf[10];
  2288. - const char *inptr = input;
  2289. - size_t inbytesleft = strlen (input);
  2290. - char *outptr = buf;
  2291. - size_t outbytesleft = sizeof (buf);
  2292. - size_t res = iconv (cd_utf8_to_88591,
  2293. - (char **) &inptr, &inbytesleft,
  2294. - &outptr, &outbytesleft);
  2295. - if (res == 0)
  2296. - return 1;
  2297. - }
  2298. - }
  2299. -#if 0 /* This bug could be worked around by the caller. */
  2300. - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  2301. - {
  2302. - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  2303. - if (cd_88591_to_utf8 != (iconv_t)(-1))
  2304. - {
  2305. - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  2306. - char buf[50];
  2307. - const char *inptr = input;
  2308. - size_t inbytesleft = strlen (input);
  2309. - char *outptr = buf;
  2310. - size_t outbytesleft = sizeof (buf);
  2311. - size_t res = iconv (cd_88591_to_utf8,
  2312. - (char **) &inptr, &inbytesleft,
  2313. - &outptr, &outbytesleft);
  2314. - if ((int)res > 0)
  2315. - return 1;
  2316. - }
  2317. - }
  2318. -#endif
  2319. - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  2320. - provided. */
  2321. - if (/* Try standardized names. */
  2322. - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  2323. - /* Try IRIX, OSF/1 names. */
  2324. - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  2325. - /* Try AIX names. */
  2326. - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  2327. - /* Try HP-UX names. */
  2328. - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  2329. - return 1;
  2330. - return 0;
  2331. -}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
  2332. - [case "$host_os" in
  2333. - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  2334. - *) am_cv_func_iconv_works="guessing yes" ;;
  2335. - esac])
  2336. - LIBS="$am_save_LIBS"
  2337. - ])
  2338. - case "$am_cv_func_iconv_works" in
  2339. - *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  2340. - *) am_func_iconv=yes ;;
  2341. - esac
  2342. - else
  2343. - am_func_iconv=no am_cv_lib_iconv=no
  2344. - fi
  2345. - if test "$am_func_iconv" = yes; then
  2346. - AC_DEFINE(HAVE_ICONV, 1,
  2347. - [Define if you have the iconv() function and it works.])
  2348. - fi
  2349. - if test "$am_cv_lib_iconv" = yes; then
  2350. - AC_MSG_CHECKING([how to link with libiconv])
  2351. - AC_MSG_RESULT([$LIBICONV])
  2352. - else
  2353. - dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  2354. - dnl either.
  2355. - CPPFLAGS="$am_save_CPPFLAGS"
  2356. - LIBICONV=
  2357. - LTLIBICONV=
  2358. - fi
  2359. - AC_SUBST(LIBICONV)
  2360. - AC_SUBST(LTLIBICONV)
  2361. -])
  2362. -
  2363. -AC_DEFUN([AM_ICONV],
  2364. -[
  2365. - AM_ICONV_LINK
  2366. - if test "$am_cv_func_iconv" = yes; then
  2367. - AC_MSG_CHECKING([for iconv declaration])
  2368. - AC_CACHE_VAL(am_cv_proto_iconv, [
  2369. - AC_TRY_COMPILE([
  2370. -#include <stdlib.h>
  2371. -#include <iconv.h>
  2372. -extern
  2373. -#ifdef __cplusplus
  2374. -"C"
  2375. -#endif
  2376. -#if defined(__STDC__) || defined(__cplusplus)
  2377. -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  2378. -#else
  2379. -size_t iconv();
  2380. -#endif
  2381. -], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
  2382. - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  2383. - am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  2384. - AC_MSG_RESULT([$]{ac_t:-
  2385. - }[$]am_cv_proto_iconv)
  2386. - AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
  2387. - [Define as const if the declaration of iconv() needs const.])
  2388. - fi
  2389. -])
  2390. -
  2391. -# intlmacosx.m4 serial 1 (gettext-0.17)
  2392. -dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
  2393. -dnl This file is free software; the Free Software Foundation
  2394. -dnl gives unlimited permission to copy and/or distribute it,
  2395. -dnl with or without modifications, as long as this notice is preserved.
  2396. -dnl
  2397. -dnl This file can can be used in projects which are not available under
  2398. -dnl the GNU General Public License or the GNU Library General Public
  2399. -dnl License but which still want to provide support for the GNU gettext
  2400. -dnl functionality.
  2401. -dnl Please note that the actual code of the GNU gettext library is covered
  2402. -dnl by the GNU Library General Public License, and the rest of the GNU
  2403. -dnl gettext package package is covered by the GNU General Public License.
  2404. -dnl They are *not* in the public domain.
  2405. -
  2406. -dnl Checks for special options needed on MacOS X.
  2407. -dnl Defines INTL_MACOSX_LIBS.
  2408. -AC_DEFUN([gt_INTL_MACOSX],
  2409. -[
  2410. - dnl Check for API introduced in MacOS X 10.2.
  2411. - AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  2412. - gt_cv_func_CFPreferencesCopyAppValue,
  2413. - [gt_save_LIBS="$LIBS"
  2414. - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  2415. - AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
  2416. - [CFPreferencesCopyAppValue(NULL, NULL)],
  2417. - [gt_cv_func_CFPreferencesCopyAppValue=yes],
  2418. - [gt_cv_func_CFPreferencesCopyAppValue=no])
  2419. - LIBS="$gt_save_LIBS"])
  2420. - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  2421. - AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
  2422. - [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  2423. - fi
  2424. - dnl Check for API introduced in MacOS X 10.3.
  2425. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
  2426. - [gt_save_LIBS="$LIBS"
  2427. - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  2428. - AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
  2429. - [gt_cv_func_CFLocaleCopyCurrent=yes],
  2430. - [gt_cv_func_CFLocaleCopyCurrent=no])
  2431. - LIBS="$gt_save_LIBS"])
  2432. - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  2433. - AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
  2434. - [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  2435. - fi
  2436. - INTL_MACOSX_LIBS=
  2437. - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  2438. - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  2439. - fi
  2440. - AC_SUBST([INTL_MACOSX_LIBS])
  2441. -])
  2442. -
  2443. -# lib-ld.m4 serial 3 (gettext-0.13)
  2444. -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  2445. -dnl This file is free software; the Free Software Foundation
  2446. -dnl gives unlimited permission to copy and/or distribute it,
  2447. -dnl with or without modifications, as long as this notice is preserved.
  2448. -
  2449. -dnl Subroutines of libtool.m4,
  2450. -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  2451. -dnl with libtool.m4.
  2452. -
  2453. -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  2454. -AC_DEFUN([AC_LIB_PROG_LD_GNU],
  2455. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  2456. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2457. -case `$LD -v 2>&1 </dev/null` in
  2458. -*GNU* | *'with BFD'*)
  2459. - acl_cv_prog_gnu_ld=yes ;;
  2460. -*)
  2461. - acl_cv_prog_gnu_ld=no ;;
  2462. -esac])
  2463. -with_gnu_ld=$acl_cv_prog_gnu_ld
  2464. -])
  2465. -
  2466. -dnl From libtool-1.4. Sets the variable LD.
  2467. -AC_DEFUN([AC_LIB_PROG_LD],
  2468. -[AC_ARG_WITH(gnu-ld,
  2469. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  2470. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  2471. -AC_REQUIRE([AC_PROG_CC])dnl
  2472. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2473. -# Prepare PATH_SEPARATOR.
  2474. -# The user is always right.
  2475. -if test "${PATH_SEPARATOR+set}" != set; then
  2476. - echo "#! /bin/sh" >conf$$.sh
  2477. - echo "exit 0" >>conf$$.sh
  2478. - chmod +x conf$$.sh
  2479. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  2480. - PATH_SEPARATOR=';'
  2481. - else
  2482. - PATH_SEPARATOR=:
  2483. - fi
  2484. - rm -f conf$$.sh
  2485. -fi
  2486. -ac_prog=ld
  2487. -if test "$GCC" = yes; then
  2488. - # Check if gcc -print-prog-name=ld gives a path.
  2489. - AC_MSG_CHECKING([for ld used by GCC])
  2490. - case $host in
  2491. - *-*-mingw*)
  2492. - # gcc leaves a trailing carriage return which upsets mingw
  2493. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2494. - *)
  2495. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2496. - esac
  2497. - case $ac_prog in
  2498. - # Accept absolute paths.
  2499. - [[\\/]* | [A-Za-z]:[\\/]*)]
  2500. - [re_direlt='/[^/][^/]*/\.\./']
  2501. - # Canonicalize the path of ld
  2502. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2503. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2504. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2505. - done
  2506. - test -z "$LD" && LD="$ac_prog"
  2507. - ;;
  2508. - "")
  2509. - # If it fails, then pretend we aren't using GCC.
  2510. - ac_prog=ld
  2511. - ;;
  2512. - *)
  2513. - # If it is relative, then search for the first ld in PATH.
  2514. - with_gnu_ld=unknown
  2515. - ;;
  2516. - esac
  2517. -elif test "$with_gnu_ld" = yes; then
  2518. - AC_MSG_CHECKING([for GNU ld])
  2519. -else
  2520. - AC_MSG_CHECKING([for non-GNU ld])
  2521. -fi
  2522. -AC_CACHE_VAL(acl_cv_path_LD,
  2523. -[if test -z "$LD"; then
  2524. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  2525. - for ac_dir in $PATH; do
  2526. - test -z "$ac_dir" && ac_dir=.
  2527. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2528. - acl_cv_path_LD="$ac_dir/$ac_prog"
  2529. - # Check to see if the program is GNU ld. I'd rather use --version,
  2530. - # but apparently some GNU ld's only accept -v.
  2531. - # Break only if it was the GNU/non-GNU ld that we prefer.
  2532. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  2533. - *GNU* | *'with BFD'*)
  2534. - test "$with_gnu_ld" != no && break ;;
  2535. - *)
  2536. - test "$with_gnu_ld" != yes && break ;;
  2537. - esac
  2538. - fi
  2539. - done
  2540. - IFS="$ac_save_ifs"
  2541. -else
  2542. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  2543. -fi])
  2544. -LD="$acl_cv_path_LD"
  2545. -if test -n "$LD"; then
  2546. - AC_MSG_RESULT($LD)
  2547. -else
  2548. - AC_MSG_RESULT(no)
  2549. -fi
  2550. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2551. -AC_LIB_PROG_LD_GNU
  2552. -])
  2553. -
  2554. -# lib-link.m4 serial 13 (gettext-0.17)
  2555. -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
  2556. -dnl This file is free software; the Free Software Foundation
  2557. -dnl gives unlimited permission to copy and/or distribute it,
  2558. -dnl with or without modifications, as long as this notice is preserved.
  2559. -
  2560. -dnl From Bruno Haible.
  2561. -
  2562. -AC_PREREQ(2.54)
  2563. -
  2564. -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  2565. -dnl the libraries corresponding to explicit and implicit dependencies.
  2566. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  2567. -dnl augments the CPPFLAGS variable.
  2568. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  2569. -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  2570. -AC_DEFUN([AC_LIB_LINKFLAGS],
  2571. -[
  2572. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  2573. - AC_REQUIRE([AC_LIB_RPATH])
  2574. - define([Name],[translit([$1],[./-], [___])])
  2575. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  2576. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  2577. - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  2578. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  2579. - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  2580. - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  2581. - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  2582. - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
  2583. - ])
  2584. - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  2585. - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  2586. - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  2587. - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
  2588. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  2589. - AC_SUBST([LIB]NAME)
  2590. - AC_SUBST([LTLIB]NAME)
  2591. - AC_SUBST([LIB]NAME[_PREFIX])
  2592. - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  2593. - dnl results of this search when this library appears as a dependency.
  2594. - HAVE_LIB[]NAME=yes
  2595. - undefine([Name])
  2596. - undefine([NAME])
  2597. -])
  2598. -
  2599. -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  2600. -dnl searches for libname and the libraries corresponding to explicit and
  2601. -dnl implicit dependencies, together with the specified include files and
  2602. -dnl the ability to compile and link the specified testcode. If found, it
  2603. -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  2604. -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  2605. -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  2606. -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  2607. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  2608. -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  2609. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  2610. -[
  2611. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  2612. - AC_REQUIRE([AC_LIB_RPATH])
  2613. - define([Name],[translit([$1],[./-], [___])])
  2614. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  2615. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  2616. -
  2617. - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  2618. - dnl accordingly.
  2619. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  2620. -
  2621. - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  2622. - dnl because if the user has installed lib[]Name and not disabled its use
  2623. - dnl via --without-lib[]Name-prefix, he wants to use it.
  2624. - ac_save_CPPFLAGS="$CPPFLAGS"
  2625. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  2626. -
  2627. - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  2628. - ac_save_LIBS="$LIBS"
  2629. - LIBS="$LIBS $LIB[]NAME"
  2630. - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  2631. - LIBS="$ac_save_LIBS"
  2632. - ])
  2633. - if test "$ac_cv_lib[]Name" = yes; then
  2634. - HAVE_LIB[]NAME=yes
  2635. - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  2636. - AC_MSG_CHECKING([how to link with lib[]$1])
  2637. - AC_MSG_RESULT([$LIB[]NAME])
  2638. - else
  2639. - HAVE_LIB[]NAME=no
  2640. - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  2641. - dnl $INC[]NAME either.
  2642. - CPPFLAGS="$ac_save_CPPFLAGS"
  2643. - LIB[]NAME=
  2644. - LTLIB[]NAME=
  2645. - LIB[]NAME[]_PREFIX=
  2646. - fi
  2647. - AC_SUBST([HAVE_LIB]NAME)
  2648. - AC_SUBST([LIB]NAME)
  2649. - AC_SUBST([LTLIB]NAME)
  2650. - AC_SUBST([LIB]NAME[_PREFIX])
  2651. - undefine([Name])
  2652. - undefine([NAME])
  2653. -])
  2654. -
  2655. -dnl Determine the platform dependent parameters needed to use rpath:
  2656. -dnl acl_libext,
  2657. -dnl acl_shlibext,
  2658. -dnl acl_hardcode_libdir_flag_spec,
  2659. -dnl acl_hardcode_libdir_separator,
  2660. -dnl acl_hardcode_direct,
  2661. -dnl acl_hardcode_minus_L.
  2662. -AC_DEFUN([AC_LIB_RPATH],
  2663. -[
  2664. - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  2665. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  2666. - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  2667. - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  2668. - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  2669. - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  2670. - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  2671. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  2672. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  2673. - . ./conftest.sh
  2674. - rm -f ./conftest.sh
  2675. - acl_cv_rpath=done
  2676. - ])
  2677. - wl="$acl_cv_wl"
  2678. - acl_libext="$acl_cv_libext"
  2679. - acl_shlibext="$acl_cv_shlibext"
  2680. - acl_libname_spec="$acl_cv_libname_spec"
  2681. - acl_library_names_spec="$acl_cv_library_names_spec"
  2682. - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  2683. - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  2684. - acl_hardcode_direct="$acl_cv_hardcode_direct"
  2685. - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  2686. - dnl Determine whether the user wants rpath handling at all.
  2687. - AC_ARG_ENABLE(rpath,
  2688. - [ --disable-rpath do not hardcode runtime library paths],
  2689. - :, enable_rpath=yes)
  2690. -])
  2691. -
  2692. -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  2693. -dnl the libraries corresponding to explicit and implicit dependencies.
  2694. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  2695. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
  2696. -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  2697. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  2698. -[
  2699. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  2700. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  2701. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  2702. - dnl Autoconf >= 2.61 supports dots in --with options.
  2703. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
  2704. - dnl By default, look in $includedir and $libdir.
  2705. - use_additional=yes
  2706. - AC_LIB_WITH_FINAL_PREFIX([
  2707. - eval additional_includedir=\"$includedir\"
  2708. - eval additional_libdir=\"$libdir\"
  2709. - ])
  2710. - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
  2711. -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  2712. - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
  2713. -[
  2714. - if test "X$withval" = "Xno"; then
  2715. - use_additional=no
  2716. - else
  2717. - if test "X$withval" = "X"; then
  2718. - AC_LIB_WITH_FINAL_PREFIX([
  2719. - eval additional_includedir=\"$includedir\"
  2720. - eval additional_libdir=\"$libdir\"
  2721. - ])
  2722. - else
  2723. - additional_includedir="$withval/include"
  2724. - additional_libdir="$withval/$acl_libdirstem"
  2725. - fi
  2726. - fi
  2727. -])
  2728. - dnl Search the library and its dependencies in $additional_libdir and
  2729. - dnl $LDFLAGS. Using breadth-first-seach.
  2730. - LIB[]NAME=
  2731. - LTLIB[]NAME=
  2732. - INC[]NAME=
  2733. - LIB[]NAME[]_PREFIX=
  2734. - rpathdirs=
  2735. - ltrpathdirs=
  2736. - names_already_handled=
  2737. - names_next_round='$1 $2'
  2738. - while test -n "$names_next_round"; do
  2739. - names_this_round="$names_next_round"
  2740. - names_next_round=
  2741. - for name in $names_this_round; do
  2742. - already_handled=
  2743. - for n in $names_already_handled; do
  2744. - if test "$n" = "$name"; then
  2745. - already_handled=yes
  2746. - break
  2747. - fi
  2748. - done
  2749. - if test -z "$already_handled"; then
  2750. - names_already_handled="$names_already_handled $name"
  2751. - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  2752. - dnl or AC_LIB_HAVE_LINKFLAGS call.
  2753. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  2754. - eval value=\"\$HAVE_LIB$uppername\"
  2755. - if test -n "$value"; then
  2756. - if test "$value" = yes; then
  2757. - eval value=\"\$LIB$uppername\"
  2758. - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  2759. - eval value=\"\$LTLIB$uppername\"
  2760. - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  2761. - else
  2762. - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  2763. - dnl that this library doesn't exist. So just drop it.
  2764. - :
  2765. - fi
  2766. - else
  2767. - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  2768. - dnl and the already constructed $LIBNAME/$LTLIBNAME.
  2769. - found_dir=
  2770. - found_la=
  2771. - found_so=
  2772. - found_a=
  2773. - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  2774. - if test -n "$acl_shlibext"; then
  2775. - shrext=".$acl_shlibext" # typically: shrext=.so
  2776. - else
  2777. - shrext=
  2778. - fi
  2779. - if test $use_additional = yes; then
  2780. - dir="$additional_libdir"
  2781. - dnl The same code as in the loop below:
  2782. - dnl First look for a shared library.
  2783. - if test -n "$acl_shlibext"; then
  2784. - if test -f "$dir/$libname$shrext"; then
  2785. - found_dir="$dir"
  2786. - found_so="$dir/$libname$shrext"
  2787. - else
  2788. - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  2789. - ver=`(cd "$dir" && \
  2790. - for f in "$libname$shrext".*; do echo "$f"; done \
  2791. - | sed -e "s,^$libname$shrext\\\\.,," \
  2792. - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  2793. - | sed 1q ) 2>/dev/null`
  2794. - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  2795. - found_dir="$dir"
  2796. - found_so="$dir/$libname$shrext.$ver"
  2797. - fi
  2798. - else
  2799. - eval library_names=\"$acl_library_names_spec\"
  2800. - for f in $library_names; do
  2801. - if test -f "$dir/$f"; then
  2802. - found_dir="$dir"
  2803. - found_so="$dir/$f"
  2804. - break
  2805. - fi
  2806. - done
  2807. - fi
  2808. - fi
  2809. - fi
  2810. - dnl Then look for a static library.
  2811. - if test "X$found_dir" = "X"; then
  2812. - if test -f "$dir/$libname.$acl_libext"; then
  2813. - found_dir="$dir"
  2814. - found_a="$dir/$libname.$acl_libext"
  2815. - fi
  2816. - fi
  2817. - if test "X$found_dir" != "X"; then
  2818. - if test -f "$dir/$libname.la"; then
  2819. - found_la="$dir/$libname.la"
  2820. - fi
  2821. - fi
  2822. - fi
  2823. - if test "X$found_dir" = "X"; then
  2824. - for x in $LDFLAGS $LTLIB[]NAME; do
  2825. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2826. - case "$x" in
  2827. - -L*)
  2828. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  2829. - dnl First look for a shared library.
  2830. - if test -n "$acl_shlibext"; then
  2831. - if test -f "$dir/$libname$shrext"; then
  2832. - found_dir="$dir"
  2833. - found_so="$dir/$libname$shrext"
  2834. - else
  2835. - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  2836. - ver=`(cd "$dir" && \
  2837. - for f in "$libname$shrext".*; do echo "$f"; done \
  2838. - | sed -e "s,^$libname$shrext\\\\.,," \
  2839. - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  2840. - | sed 1q ) 2>/dev/null`
  2841. - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  2842. - found_dir="$dir"
  2843. - found_so="$dir/$libname$shrext.$ver"
  2844. - fi
  2845. - else
  2846. - eval library_names=\"$acl_library_names_spec\"
  2847. - for f in $library_names; do
  2848. - if test -f "$dir/$f"; then
  2849. - found_dir="$dir"
  2850. - found_so="$dir/$f"
  2851. - break
  2852. - fi
  2853. - done
  2854. - fi
  2855. - fi
  2856. - fi
  2857. - dnl Then look for a static library.
  2858. - if test "X$found_dir" = "X"; then
  2859. - if test -f "$dir/$libname.$acl_libext"; then
  2860. - found_dir="$dir"
  2861. - found_a="$dir/$libname.$acl_libext"
  2862. - fi
  2863. - fi
  2864. - if test "X$found_dir" != "X"; then
  2865. - if test -f "$dir/$libname.la"; then
  2866. - found_la="$dir/$libname.la"
  2867. - fi
  2868. - fi
  2869. - ;;
  2870. - esac
  2871. - if test "X$found_dir" != "X"; then
  2872. - break
  2873. - fi
  2874. - done
  2875. - fi
  2876. - if test "X$found_dir" != "X"; then
  2877. - dnl Found the library.
  2878. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  2879. - if test "X$found_so" != "X"; then
  2880. - dnl Linking with a shared library. We attempt to hardcode its
  2881. - dnl directory into the executable's runpath, unless it's the
  2882. - dnl standard /usr/lib.
  2883. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  2884. - dnl No hardcoding is needed.
  2885. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  2886. - else
  2887. - dnl Use an explicit option to hardcode DIR into the resulting
  2888. - dnl binary.
  2889. - dnl Potentially add DIR to ltrpathdirs.
  2890. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  2891. - haveit=
  2892. - for x in $ltrpathdirs; do
  2893. - if test "X$x" = "X$found_dir"; then
  2894. - haveit=yes
  2895. - break
  2896. - fi
  2897. - done
  2898. - if test -z "$haveit"; then
  2899. - ltrpathdirs="$ltrpathdirs $found_dir"
  2900. - fi
  2901. - dnl The hardcoding into $LIBNAME is system dependent.
  2902. - if test "$acl_hardcode_direct" = yes; then
  2903. - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  2904. - dnl resulting binary.
  2905. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  2906. - else
  2907. - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  2908. - dnl Use an explicit option to hardcode DIR into the resulting
  2909. - dnl binary.
  2910. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  2911. - dnl Potentially add DIR to rpathdirs.
  2912. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  2913. - haveit=
  2914. - for x in $rpathdirs; do
  2915. - if test "X$x" = "X$found_dir"; then
  2916. - haveit=yes
  2917. - break
  2918. - fi
  2919. - done
  2920. - if test -z "$haveit"; then
  2921. - rpathdirs="$rpathdirs $found_dir"
  2922. - fi
  2923. - else
  2924. - dnl Rely on "-L$found_dir".
  2925. - dnl But don't add it if it's already contained in the LDFLAGS
  2926. - dnl or the already constructed $LIBNAME
  2927. - haveit=
  2928. - for x in $LDFLAGS $LIB[]NAME; do
  2929. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2930. - if test "X$x" = "X-L$found_dir"; then
  2931. - haveit=yes
  2932. - break
  2933. - fi
  2934. - done
  2935. - if test -z "$haveit"; then
  2936. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  2937. - fi
  2938. - if test "$acl_hardcode_minus_L" != no; then
  2939. - dnl FIXME: Not sure whether we should use
  2940. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  2941. - dnl here.
  2942. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  2943. - else
  2944. - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
  2945. - dnl here, because this doesn't fit in flags passed to the
  2946. - dnl compiler. So give up. No hardcoding. This affects only
  2947. - dnl very old systems.
  2948. - dnl FIXME: Not sure whether we should use
  2949. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  2950. - dnl here.
  2951. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  2952. - fi
  2953. - fi
  2954. - fi
  2955. - fi
  2956. - else
  2957. - if test "X$found_a" != "X"; then
  2958. - dnl Linking with a static library.
  2959. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  2960. - else
  2961. - dnl We shouldn't come here, but anyway it's good to have a
  2962. - dnl fallback.
  2963. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  2964. - fi
  2965. - fi
  2966. - dnl Assume the include files are nearby.
  2967. - additional_includedir=
  2968. - case "$found_dir" in
  2969. - */$acl_libdirstem | */$acl_libdirstem/)
  2970. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  2971. - LIB[]NAME[]_PREFIX="$basedir"
  2972. - additional_includedir="$basedir/include"
  2973. - ;;
  2974. - esac
  2975. - if test "X$additional_includedir" != "X"; then
  2976. - dnl Potentially add $additional_includedir to $INCNAME.
  2977. - dnl But don't add it
  2978. - dnl 1. if it's the standard /usr/include,
  2979. - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  2980. - dnl 3. if it's already present in $CPPFLAGS or the already
  2981. - dnl constructed $INCNAME,
  2982. - dnl 4. if it doesn't exist as a directory.
  2983. - if test "X$additional_includedir" != "X/usr/include"; then
  2984. - haveit=
  2985. - if test "X$additional_includedir" = "X/usr/local/include"; then
  2986. - if test -n "$GCC"; then
  2987. - case $host_os in
  2988. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2989. - esac
  2990. - fi
  2991. - fi
  2992. - if test -z "$haveit"; then
  2993. - for x in $CPPFLAGS $INC[]NAME; do
  2994. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2995. - if test "X$x" = "X-I$additional_includedir"; then
  2996. - haveit=yes
  2997. - break
  2998. - fi
  2999. - done
  3000. - if test -z "$haveit"; then
  3001. - if test -d "$additional_includedir"; then
  3002. - dnl Really add $additional_includedir to $INCNAME.
  3003. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  3004. - fi
  3005. - fi
  3006. - fi
  3007. - fi
  3008. - fi
  3009. - dnl Look for dependencies.
  3010. - if test -n "$found_la"; then
  3011. - dnl Read the .la file. It defines the variables
  3012. - dnl dlname, library_names, old_library, dependency_libs, current,
  3013. - dnl age, revision, installed, dlopen, dlpreopen, libdir.
  3014. - save_libdir="$libdir"
  3015. - case "$found_la" in
  3016. - */* | *\\*) . "$found_la" ;;
  3017. - *) . "./$found_la" ;;
  3018. - esac
  3019. - libdir="$save_libdir"
  3020. - dnl We use only dependency_libs.
  3021. - for dep in $dependency_libs; do
  3022. - case "$dep" in
  3023. - -L*)
  3024. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  3025. - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  3026. - dnl But don't add it
  3027. - dnl 1. if it's the standard /usr/lib,
  3028. - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  3029. - dnl 3. if it's already present in $LDFLAGS or the already
  3030. - dnl constructed $LIBNAME,
  3031. - dnl 4. if it doesn't exist as a directory.
  3032. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  3033. - haveit=
  3034. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  3035. - if test -n "$GCC"; then
  3036. - case $host_os in
  3037. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  3038. - esac
  3039. - fi
  3040. - fi
  3041. - if test -z "$haveit"; then
  3042. - haveit=
  3043. - for x in $LDFLAGS $LIB[]NAME; do
  3044. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3045. - if test "X$x" = "X-L$additional_libdir"; then
  3046. - haveit=yes
  3047. - break
  3048. - fi
  3049. - done
  3050. - if test -z "$haveit"; then
  3051. - if test -d "$additional_libdir"; then
  3052. - dnl Really add $additional_libdir to $LIBNAME.
  3053. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  3054. - fi
  3055. - fi
  3056. - haveit=
  3057. - for x in $LDFLAGS $LTLIB[]NAME; do
  3058. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3059. - if test "X$x" = "X-L$additional_libdir"; then
  3060. - haveit=yes
  3061. - break
  3062. - fi
  3063. - done
  3064. - if test -z "$haveit"; then
  3065. - if test -d "$additional_libdir"; then
  3066. - dnl Really add $additional_libdir to $LTLIBNAME.
  3067. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  3068. - fi
  3069. - fi
  3070. - fi
  3071. - fi
  3072. - ;;
  3073. - -R*)
  3074. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  3075. - if test "$enable_rpath" != no; then
  3076. - dnl Potentially add DIR to rpathdirs.
  3077. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  3078. - haveit=
  3079. - for x in $rpathdirs; do
  3080. - if test "X$x" = "X$dir"; then
  3081. - haveit=yes
  3082. - break
  3083. - fi
  3084. - done
  3085. - if test -z "$haveit"; then
  3086. - rpathdirs="$rpathdirs $dir"
  3087. - fi
  3088. - dnl Potentially add DIR to ltrpathdirs.
  3089. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  3090. - haveit=
  3091. - for x in $ltrpathdirs; do
  3092. - if test "X$x" = "X$dir"; then
  3093. - haveit=yes
  3094. - break
  3095. - fi
  3096. - done
  3097. - if test -z "$haveit"; then
  3098. - ltrpathdirs="$ltrpathdirs $dir"
  3099. - fi
  3100. - fi
  3101. - ;;
  3102. - -l*)
  3103. - dnl Handle this in the next round.
  3104. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  3105. - ;;
  3106. - *.la)
  3107. - dnl Handle this in the next round. Throw away the .la's
  3108. - dnl directory; it is already contained in a preceding -L
  3109. - dnl option.
  3110. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  3111. - ;;
  3112. - *)
  3113. - dnl Most likely an immediate library name.
  3114. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  3115. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  3116. - ;;
  3117. - esac
  3118. - done
  3119. - fi
  3120. - else
  3121. - dnl Didn't find the library; assume it is in the system directories
  3122. - dnl known to the linker and runtime loader. (All the system
  3123. - dnl directories known to the linker should also be known to the
  3124. - dnl runtime loader, otherwise the system is severely misconfigured.)
  3125. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  3126. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  3127. - fi
  3128. - fi
  3129. - fi
  3130. - done
  3131. - done
  3132. - if test "X$rpathdirs" != "X"; then
  3133. - if test -n "$acl_hardcode_libdir_separator"; then
  3134. - dnl Weird platform: only the last -rpath option counts, the user must
  3135. - dnl pass all path elements in one option. We can arrange that for a
  3136. - dnl single library, but not when more than one $LIBNAMEs are used.
  3137. - alldirs=
  3138. - for found_dir in $rpathdirs; do
  3139. - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  3140. - done
  3141. - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
  3142. - acl_save_libdir="$libdir"
  3143. - libdir="$alldirs"
  3144. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  3145. - libdir="$acl_save_libdir"
  3146. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  3147. - else
  3148. - dnl The -rpath options are cumulative.
  3149. - for found_dir in $rpathdirs; do
  3150. - acl_save_libdir="$libdir"
  3151. - libdir="$found_dir"
  3152. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  3153. - libdir="$acl_save_libdir"
  3154. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  3155. - done
  3156. - fi
  3157. - fi
  3158. - if test "X$ltrpathdirs" != "X"; then
  3159. - dnl When using libtool, the option that works for both libraries and
  3160. - dnl executables is -R. The -R options are cumulative.
  3161. - for found_dir in $ltrpathdirs; do
  3162. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  3163. - done
  3164. - fi
  3165. -])
  3166. -
  3167. -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  3168. -dnl unless already present in VAR.
  3169. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  3170. -dnl contains two or three consecutive elements that belong together.
  3171. -AC_DEFUN([AC_LIB_APPENDTOVAR],
  3172. -[
  3173. - for element in [$2]; do
  3174. - haveit=
  3175. - for x in $[$1]; do
  3176. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3177. - if test "X$x" = "X$element"; then
  3178. - haveit=yes
  3179. - break
  3180. - fi
  3181. - done
  3182. - if test -z "$haveit"; then
  3183. - [$1]="${[$1]}${[$1]:+ }$element"
  3184. - fi
  3185. - done
  3186. -])
  3187. -
  3188. -dnl For those cases where a variable contains several -L and -l options
  3189. -dnl referring to unknown libraries and directories, this macro determines the
  3190. -dnl necessary additional linker options for the runtime path.
  3191. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
  3192. -dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
  3193. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
  3194. -dnl otherwise linking without libtool is assumed.
  3195. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
  3196. -[
  3197. - AC_REQUIRE([AC_LIB_RPATH])
  3198. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  3199. - $1=
  3200. - if test "$enable_rpath" != no; then
  3201. - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  3202. - dnl Use an explicit option to hardcode directories into the resulting
  3203. - dnl binary.
  3204. - rpathdirs=
  3205. - next=
  3206. - for opt in $2; do
  3207. - if test -n "$next"; then
  3208. - dir="$next"
  3209. - dnl No need to hardcode the standard /usr/lib.
  3210. - if test "X$dir" != "X/usr/$acl_libdirstem"; then
  3211. - rpathdirs="$rpathdirs $dir"
  3212. - fi
  3213. - next=
  3214. - else
  3215. - case $opt in
  3216. - -L) next=yes ;;
  3217. - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
  3218. - dnl No need to hardcode the standard /usr/lib.
  3219. - if test "X$dir" != "X/usr/$acl_libdirstem"; then
  3220. - rpathdirs="$rpathdirs $dir"
  3221. - fi
  3222. - next= ;;
  3223. - *) next= ;;
  3224. - esac
  3225. - fi
  3226. - done
  3227. - if test "X$rpathdirs" != "X"; then
  3228. - if test -n ""$3""; then
  3229. - dnl libtool is used for linking. Use -R options.
  3230. - for dir in $rpathdirs; do
  3231. - $1="${$1}${$1:+ }-R$dir"
  3232. - done
  3233. - else
  3234. - dnl The linker is used for linking directly.
  3235. - if test -n "$acl_hardcode_libdir_separator"; then
  3236. - dnl Weird platform: only the last -rpath option counts, the user
  3237. - dnl must pass all path elements in one option.
  3238. - alldirs=
  3239. - for dir in $rpathdirs; do
  3240. - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
  3241. - done
  3242. - acl_save_libdir="$libdir"
  3243. - libdir="$alldirs"
  3244. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  3245. - libdir="$acl_save_libdir"
  3246. - $1="$flag"
  3247. - else
  3248. - dnl The -rpath options are cumulative.
  3249. - for dir in $rpathdirs; do
  3250. - acl_save_libdir="$libdir"
  3251. - libdir="$dir"
  3252. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  3253. - libdir="$acl_save_libdir"
  3254. - $1="${$1}${$1:+ }$flag"
  3255. - done
  3256. - fi
  3257. - fi
  3258. - fi
  3259. - fi
  3260. - fi
  3261. - AC_SUBST([$1])
  3262. -])
  3263. -
  3264. -# lib-prefix.m4 serial 5 (gettext-0.15)
  3265. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  3266. -dnl This file is free software; the Free Software Foundation
  3267. -dnl gives unlimited permission to copy and/or distribute it,
  3268. -dnl with or without modifications, as long as this notice is preserved.
  3269. -
  3270. -dnl From Bruno Haible.
  3271. -
  3272. -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  3273. -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  3274. -dnl require excessive bracketing.
  3275. -ifdef([AC_HELP_STRING],
  3276. -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  3277. -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  3278. -
  3279. -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  3280. -dnl to access previously installed libraries. The basic assumption is that
  3281. -dnl a user will want packages to use other packages he previously installed
  3282. -dnl with the same --prefix option.
  3283. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  3284. -dnl libraries, but is otherwise very convenient.
  3285. -AC_DEFUN([AC_LIB_PREFIX],
  3286. -[
  3287. - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  3288. - AC_REQUIRE([AC_PROG_CC])
  3289. - AC_REQUIRE([AC_CANONICAL_HOST])
  3290. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  3291. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  3292. - dnl By default, look in $includedir and $libdir.
  3293. - use_additional=yes
  3294. - AC_LIB_WITH_FINAL_PREFIX([
  3295. - eval additional_includedir=\"$includedir\"
  3296. - eval additional_libdir=\"$libdir\"
  3297. - ])
  3298. - AC_LIB_ARG_WITH([lib-prefix],
  3299. -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  3300. - --without-lib-prefix don't search for libraries in includedir and libdir],
  3301. -[
  3302. - if test "X$withval" = "Xno"; then
  3303. - use_additional=no
  3304. - else
  3305. - if test "X$withval" = "X"; then
  3306. - AC_LIB_WITH_FINAL_PREFIX([
  3307. - eval additional_includedir=\"$includedir\"
  3308. - eval additional_libdir=\"$libdir\"
  3309. - ])
  3310. - else
  3311. - additional_includedir="$withval/include"
  3312. - additional_libdir="$withval/$acl_libdirstem"
  3313. - fi
  3314. - fi
  3315. -])
  3316. - if test $use_additional = yes; then
  3317. - dnl Potentially add $additional_includedir to $CPPFLAGS.
  3318. - dnl But don't add it
  3319. - dnl 1. if it's the standard /usr/include,
  3320. - dnl 2. if it's already present in $CPPFLAGS,
  3321. - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  3322. - dnl 4. if it doesn't exist as a directory.
  3323. - if test "X$additional_includedir" != "X/usr/include"; then
  3324. - haveit=
  3325. - for x in $CPPFLAGS; do
  3326. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3327. - if test "X$x" = "X-I$additional_includedir"; then
  3328. - haveit=yes
  3329. - break
  3330. - fi
  3331. - done
  3332. - if test -z "$haveit"; then
  3333. - if test "X$additional_includedir" = "X/usr/local/include"; then
  3334. - if test -n "$GCC"; then
  3335. - case $host_os in
  3336. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  3337. - esac
  3338. - fi
  3339. - fi
  3340. - if test -z "$haveit"; then
  3341. - if test -d "$additional_includedir"; then
  3342. - dnl Really add $additional_includedir to $CPPFLAGS.
  3343. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  3344. - fi
  3345. - fi
  3346. - fi
  3347. - fi
  3348. - dnl Potentially add $additional_libdir to $LDFLAGS.
  3349. - dnl But don't add it
  3350. - dnl 1. if it's the standard /usr/lib,
  3351. - dnl 2. if it's already present in $LDFLAGS,
  3352. - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  3353. - dnl 4. if it doesn't exist as a directory.
  3354. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  3355. - haveit=
  3356. - for x in $LDFLAGS; do
  3357. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3358. - if test "X$x" = "X-L$additional_libdir"; then
  3359. - haveit=yes
  3360. - break
  3361. - fi
  3362. - done
  3363. - if test -z "$haveit"; then
  3364. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  3365. - if test -n "$GCC"; then
  3366. - case $host_os in
  3367. - linux*) haveit=yes;;
  3368. - esac
  3369. - fi
  3370. - fi
  3371. - if test -z "$haveit"; then
  3372. - if test -d "$additional_libdir"; then
  3373. - dnl Really add $additional_libdir to $LDFLAGS.
  3374. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  3375. - fi
  3376. - fi
  3377. - fi
  3378. - fi
  3379. - fi
  3380. -])
  3381. -
  3382. -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  3383. -dnl acl_final_exec_prefix, containing the values to which $prefix and
  3384. -dnl $exec_prefix will expand at the end of the configure script.
  3385. -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  3386. -[
  3387. - dnl Unfortunately, prefix and exec_prefix get only finally determined
  3388. - dnl at the end of configure.
  3389. - if test "X$prefix" = "XNONE"; then
  3390. - acl_final_prefix="$ac_default_prefix"
  3391. - else
  3392. - acl_final_prefix="$prefix"
  3393. - fi
  3394. - if test "X$exec_prefix" = "XNONE"; then
  3395. - acl_final_exec_prefix='${prefix}'
  3396. - else
  3397. - acl_final_exec_prefix="$exec_prefix"
  3398. - fi
  3399. - acl_save_prefix="$prefix"
  3400. - prefix="$acl_final_prefix"
  3401. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  3402. - prefix="$acl_save_prefix"
  3403. -])
  3404. -
  3405. -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  3406. -dnl variables prefix and exec_prefix bound to the values they will have
  3407. -dnl at the end of the configure script.
  3408. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  3409. -[
  3410. - acl_save_prefix="$prefix"
  3411. - prefix="$acl_final_prefix"
  3412. - acl_save_exec_prefix="$exec_prefix"
  3413. - exec_prefix="$acl_final_exec_prefix"
  3414. - $1
  3415. - exec_prefix="$acl_save_exec_prefix"
  3416. - prefix="$acl_save_prefix"
  3417. -])
  3418. -
  3419. -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
  3420. -dnl the basename of the libdir, either "lib" or "lib64".
  3421. -AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
  3422. -[
  3423. - dnl There is no formal standard regarding lib and lib64. The current
  3424. - dnl practice is that on a system supporting 32-bit and 64-bit instruction
  3425. - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
  3426. - dnl libraries go under $prefix/lib. We determine the compiler's default
  3427. - dnl mode by looking at the compiler's library search path. If at least
  3428. - dnl of its elements ends in /lib64 or points to a directory whose absolute
  3429. - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
  3430. - dnl default, namely "lib".
  3431. - acl_libdirstem=lib
  3432. - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  3433. - if test -n "$searchpath"; then
  3434. - acl_save_IFS="${IFS= }"; IFS=":"
  3435. - for searchdir in $searchpath; do
  3436. - if test -d "$searchdir"; then
  3437. - case "$searchdir" in
  3438. - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  3439. - *) searchdir=`cd "$searchdir" && pwd`
  3440. - case "$searchdir" in
  3441. - */lib64 ) acl_libdirstem=lib64 ;;
  3442. - esac ;;
  3443. - esac
  3444. - fi
  3445. - done
  3446. - IFS="$acl_save_IFS"
  3447. - fi
  3448. -])
  3449. -
  3450. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  3451. -#
  3452. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  3453. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  3454. -# Written by Gordon Matzigkeit, 1996
  3455. -#
  3456. -# This file is free software; the Free Software Foundation gives
  3457. -# unlimited permission to copy and/or distribute it, with or without
  3458. -# modifications, as long as this notice is preserved.
  3459. -
  3460. -m4_define([_LT_COPYING], [dnl
  3461. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  3462. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  3463. -# Written by Gordon Matzigkeit, 1996
  3464. -#
  3465. -# This file is part of GNU Libtool.
  3466. -#
  3467. -# GNU Libtool is free software; you can redistribute it and/or
  3468. -# modify it under the terms of the GNU General Public License as
  3469. -# published by the Free Software Foundation; either version 2 of
  3470. -# the License, or (at your option) any later version.
  3471. -#
  3472. -# As a special exception to the GNU General Public License,
  3473. -# if you distribute this file as part of a program or library that
  3474. -# is built using GNU Libtool, you may include this file under the
  3475. -# same distribution terms that you use for the rest of that program.
  3476. -#
  3477. -# GNU Libtool is distributed in the hope that it will be useful,
  3478. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  3479. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3480. -# GNU General Public License for more details.
  3481. -#
  3482. -# You should have received a copy of the GNU General Public License
  3483. -# along with GNU Libtool; see the file COPYING. If not, a copy
  3484. -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  3485. -# obtained by writing to the Free Software Foundation, Inc.,
  3486. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  3487. -])
  3488. -
  3489. -# serial 56 LT_INIT
  3490. -
  3491. -
  3492. -# LT_PREREQ(VERSION)
  3493. -# ------------------
  3494. -# Complain and exit if this libtool version is less that VERSION.
  3495. -m4_defun([LT_PREREQ],
  3496. -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  3497. - [m4_default([$3],
  3498. - [m4_fatal([Libtool version $1 or higher is required],
  3499. - 63)])],
  3500. - [$2])])
  3501. -
  3502. -
  3503. -# _LT_CHECK_BUILDDIR
  3504. -# ------------------
  3505. -# Complain if the absolute build directory name contains unusual characters
  3506. -m4_defun([_LT_CHECK_BUILDDIR],
  3507. -[case `pwd` in
  3508. - *\ * | *\ *)
  3509. - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  3510. -esac
  3511. -])
  3512. -
  3513. -
  3514. -# LT_INIT([OPTIONS])
  3515. -# ------------------
  3516. -AC_DEFUN([LT_INIT],
  3517. -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  3518. -AC_BEFORE([$0], [LT_LANG])dnl
  3519. -AC_BEFORE([$0], [LT_OUTPUT])dnl
  3520. -AC_BEFORE([$0], [LTDL_INIT])dnl
  3521. -m4_require([_LT_CHECK_BUILDDIR])dnl
  3522. -
  3523. -dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  3524. -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  3525. -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  3526. -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  3527. -dnl unless we require an AC_DEFUNed macro:
  3528. -AC_REQUIRE([LTOPTIONS_VERSION])dnl
  3529. -AC_REQUIRE([LTSUGAR_VERSION])dnl
  3530. -AC_REQUIRE([LTVERSION_VERSION])dnl
  3531. -AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  3532. -m4_require([_LT_PROG_LTMAIN])dnl
  3533. -
  3534. -dnl Parse OPTIONS
  3535. -_LT_SET_OPTIONS([$0], [$1])
  3536. -
  3537. -# This can be used to rebuild libtool when needed
  3538. -LIBTOOL_DEPS="$ltmain"
  3539. -
  3540. -# Always use our own libtool.
  3541. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  3542. -AC_SUBST(LIBTOOL)dnl
  3543. -
  3544. -_LT_SETUP
  3545. -
  3546. -# Only expand once:
  3547. -m4_define([LT_INIT])
  3548. -])# LT_INIT
  3549. -
  3550. -# Old names:
  3551. -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  3552. -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  3553. -dnl aclocal-1.4 backwards compatibility:
  3554. -dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  3555. -dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  3556. -
  3557. -
  3558. -# _LT_CC_BASENAME(CC)
  3559. -# -------------------
  3560. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  3561. -m4_defun([_LT_CC_BASENAME],
  3562. -[for cc_temp in $1""; do
  3563. - case $cc_temp in
  3564. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  3565. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  3566. - \-*) ;;
  3567. - *) break;;
  3568. - esac
  3569. -done
  3570. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  3571. -])
  3572. -
  3573. -
  3574. -# _LT_FILEUTILS_DEFAULTS
  3575. -# ----------------------
  3576. -# It is okay to use these file commands and assume they have been set
  3577. -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  3578. -m4_defun([_LT_FILEUTILS_DEFAULTS],
  3579. -[: ${CP="cp -f"}
  3580. -: ${MV="mv -f"}
  3581. -: ${RM="rm -f"}
  3582. -])# _LT_FILEUTILS_DEFAULTS
  3583. -
  3584. -
  3585. -# _LT_SETUP
  3586. -# ---------
  3587. -m4_defun([_LT_SETUP],
  3588. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3589. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3590. -_LT_DECL([], [host_alias], [0], [The host system])dnl
  3591. -_LT_DECL([], [host], [0])dnl
  3592. -_LT_DECL([], [host_os], [0])dnl
  3593. -dnl
  3594. -_LT_DECL([], [build_alias], [0], [The build system])dnl
  3595. -_LT_DECL([], [build], [0])dnl
  3596. -_LT_DECL([], [build_os], [0])dnl
  3597. -dnl
  3598. -AC_REQUIRE([AC_PROG_CC])dnl
  3599. -AC_REQUIRE([LT_PATH_LD])dnl
  3600. -AC_REQUIRE([LT_PATH_NM])dnl
  3601. -dnl
  3602. -AC_REQUIRE([AC_PROG_LN_S])dnl
  3603. -test -z "$LN_S" && LN_S="ln -s"
  3604. -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  3605. -dnl
  3606. -AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  3607. -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  3608. -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  3609. -dnl
  3610. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3611. -m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  3612. -m4_require([_LT_CMD_RELOAD])dnl
  3613. -m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  3614. -m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  3615. -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  3616. -
  3617. -_LT_CONFIG_LIBTOOL_INIT([
  3618. -# See if we are running on zsh, and set the options which allow our
  3619. -# commands through without removal of \ escapes INIT.
  3620. -if test -n "\${ZSH_VERSION+set}" ; then
  3621. - setopt NO_GLOB_SUBST
  3622. -fi
  3623. -])
  3624. -if test -n "${ZSH_VERSION+set}" ; then
  3625. - setopt NO_GLOB_SUBST
  3626. -fi
  3627. -
  3628. -_LT_CHECK_OBJDIR
  3629. -
  3630. -m4_require([_LT_TAG_COMPILER])dnl
  3631. -_LT_PROG_ECHO_BACKSLASH
  3632. -
  3633. -case $host_os in
  3634. -aix3*)
  3635. - # AIX sometimes has problems with the GCC collect2 program. For some
  3636. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  3637. - # vanish in a puff of smoke.
  3638. - if test "X${COLLECT_NAMES+set}" != Xset; then
  3639. - COLLECT_NAMES=
  3640. - export COLLECT_NAMES
  3641. - fi
  3642. - ;;
  3643. -esac
  3644. -
  3645. -# Sed substitution that helps us do robust quoting. It backslashifies
  3646. -# metacharacters that are still active within double-quoted strings.
  3647. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  3648. -
  3649. -# Same as above, but do not quote variable references.
  3650. -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  3651. -
  3652. -# Sed substitution to delay expansion of an escaped shell variable in a
  3653. -# double_quote_subst'ed string.
  3654. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3655. -
  3656. -# Sed substitution to delay expansion of an escaped single quote.
  3657. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3658. -
  3659. -# Sed substitution to avoid accidental globbing in evaled expressions
  3660. -no_glob_subst='s/\*/\\\*/g'
  3661. -
  3662. -# Global variables:
  3663. -ofile=libtool
  3664. -can_build_shared=yes
  3665. -
  3666. -# All known linkers require a `.a' archive for static linking (except MSVC,
  3667. -# which needs '.lib').
  3668. -libext=a
  3669. -
  3670. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  3671. -
  3672. -old_CC="$CC"
  3673. -old_CFLAGS="$CFLAGS"
  3674. -
  3675. -# Set sane defaults for various variables
  3676. -test -z "$CC" && CC=cc
  3677. -test -z "$LTCC" && LTCC=$CC
  3678. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  3679. -test -z "$LD" && LD=ld
  3680. -test -z "$ac_objext" && ac_objext=o
  3681. -
  3682. -_LT_CC_BASENAME([$compiler])
  3683. -
  3684. -# Only perform the check for file, if the check method requires it
  3685. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  3686. -case $deplibs_check_method in
  3687. -file_magic*)
  3688. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3689. - _LT_PATH_MAGIC
  3690. - fi
  3691. - ;;
  3692. -esac
  3693. -
  3694. -# Use C for the default configuration in the libtool script
  3695. -LT_SUPPORTED_TAG([CC])
  3696. -_LT_LANG_C_CONFIG
  3697. -_LT_LANG_DEFAULT_CONFIG
  3698. -_LT_CONFIG_COMMANDS
  3699. -])# _LT_SETUP
  3700. -
  3701. -
  3702. -# _LT_PROG_LTMAIN
  3703. -# ---------------
  3704. -# Note that this code is called both from `configure', and `config.status'
  3705. -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  3706. -# `config.status' has no value for ac_aux_dir unless we are using Automake,
  3707. -# so we pass a copy along to make sure it has a sensible value anyway.
  3708. -m4_defun([_LT_PROG_LTMAIN],
  3709. -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  3710. -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  3711. -ltmain="$ac_aux_dir/ltmain.sh"
  3712. -])# _LT_PROG_LTMAIN
  3713. -
  3714. -
  3715. -
  3716. -# So that we can recreate a full libtool script including additional
  3717. -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  3718. -# in macros and then make a single call at the end using the `libtool'
  3719. -# label.
  3720. -
  3721. -
  3722. -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  3723. -# ----------------------------------------
  3724. -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  3725. -m4_define([_LT_CONFIG_LIBTOOL_INIT],
  3726. -[m4_ifval([$1],
  3727. - [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  3728. - [$1
  3729. -])])])
  3730. -
  3731. -# Initialize.
  3732. -m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  3733. -
  3734. -
  3735. -# _LT_CONFIG_LIBTOOL([COMMANDS])
  3736. -# ------------------------------
  3737. -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  3738. -m4_define([_LT_CONFIG_LIBTOOL],
  3739. -[m4_ifval([$1],
  3740. - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  3741. - [$1
  3742. -])])])
  3743. -
  3744. -# Initialize.
  3745. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  3746. -
  3747. -
  3748. -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  3749. -# -----------------------------------------------------
  3750. -m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  3751. -[_LT_CONFIG_LIBTOOL([$1])
  3752. -_LT_CONFIG_LIBTOOL_INIT([$2])
  3753. -])
  3754. -
  3755. -
  3756. -# _LT_FORMAT_COMMENT([COMMENT])
  3757. -# -----------------------------
  3758. -# Add leading comment marks to the start of each line, and a trailing
  3759. -# full-stop to the whole comment if one is not present already.
  3760. -m4_define([_LT_FORMAT_COMMENT],
  3761. -[m4_ifval([$1], [
  3762. -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  3763. - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  3764. -)])
  3765. -
  3766. -
  3767. -
  3768. -
  3769. -
  3770. -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  3771. -# -------------------------------------------------------------------
  3772. -# CONFIGNAME is the name given to the value in the libtool script.
  3773. -# VARNAME is the (base) name used in the configure script.
  3774. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  3775. -# VARNAME. Any other value will be used directly.
  3776. -m4_define([_LT_DECL],
  3777. -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  3778. - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  3779. - [m4_ifval([$1], [$1], [$2])])
  3780. - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  3781. - m4_ifval([$4],
  3782. - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  3783. - lt_dict_add_subkey([lt_decl_dict], [$2],
  3784. - [tagged?], [m4_ifval([$5], [yes], [no])])])
  3785. -])
  3786. -
  3787. -
  3788. -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  3789. -# --------------------------------------------------------
  3790. -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  3791. -
  3792. -
  3793. -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  3794. -# ------------------------------------------------
  3795. -m4_define([lt_decl_tag_varnames],
  3796. -[_lt_decl_filter([tagged?], [yes], $@)])
  3797. -
  3798. -
  3799. -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  3800. -# ---------------------------------------------------------
  3801. -m4_define([_lt_decl_filter],
  3802. -[m4_case([$#],
  3803. - [0], [m4_fatal([$0: too few arguments: $#])],
  3804. - [1], [m4_fatal([$0: too few arguments: $#: $1])],
  3805. - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  3806. - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  3807. - [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  3808. -])
  3809. -
  3810. -
  3811. -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  3812. -# --------------------------------------------------
  3813. -m4_define([lt_decl_quote_varnames],
  3814. -[_lt_decl_filter([value], [1], $@)])
  3815. -
  3816. -
  3817. -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  3818. -# ---------------------------------------------------
  3819. -m4_define([lt_decl_dquote_varnames],
  3820. -[_lt_decl_filter([value], [2], $@)])
  3821. -
  3822. -
  3823. -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  3824. -# ---------------------------------------------------
  3825. -m4_define([lt_decl_varnames_tagged],
  3826. -[m4_assert([$# <= 2])dnl
  3827. -_$0(m4_quote(m4_default([$1], [[, ]])),
  3828. - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  3829. - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  3830. -m4_define([_lt_decl_varnames_tagged],
  3831. -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  3832. -
  3833. -
  3834. -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  3835. -# ------------------------------------------------
  3836. -m4_define([lt_decl_all_varnames],
  3837. -[_$0(m4_quote(m4_default([$1], [[, ]])),
  3838. - m4_if([$2], [],
  3839. - m4_quote(lt_decl_varnames),
  3840. - m4_quote(m4_shift($@))))[]dnl
  3841. -])
  3842. -m4_define([_lt_decl_all_varnames],
  3843. -[lt_join($@, lt_decl_varnames_tagged([$1],
  3844. - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  3845. -])
  3846. -
  3847. -
  3848. -# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  3849. -# ------------------------------------
  3850. -# Quote a variable value, and forward it to `config.status' so that its
  3851. -# declaration there will have the same value as in `configure'. VARNAME
  3852. -# must have a single quote delimited value for this to work.
  3853. -m4_define([_LT_CONFIG_STATUS_DECLARE],
  3854. -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  3855. -
  3856. -
  3857. -# _LT_CONFIG_STATUS_DECLARATIONS
  3858. -# ------------------------------
  3859. -# We delimit libtool config variables with single quotes, so when
  3860. -# we write them to config.status, we have to be sure to quote all
  3861. -# embedded single quotes properly. In configure, this macro expands
  3862. -# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  3863. -#
  3864. -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  3865. -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  3866. -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  3867. - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  3868. -
  3869. -
  3870. -# _LT_LIBTOOL_TAGS
  3871. -# ----------------
  3872. -# Output comment and list of tags supported by the script
  3873. -m4_defun([_LT_LIBTOOL_TAGS],
  3874. -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  3875. -available_tags="_LT_TAGS"dnl
  3876. -])
  3877. -
  3878. -
  3879. -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  3880. -# -----------------------------------
  3881. -# Extract the dictionary values for VARNAME (optionally with TAG) and
  3882. -# expand to a commented shell variable setting:
  3883. -#
  3884. -# # Some comment about what VAR is for.
  3885. -# visible_name=$lt_internal_name
  3886. -m4_define([_LT_LIBTOOL_DECLARE],
  3887. -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  3888. - [description])))[]dnl
  3889. -m4_pushdef([_libtool_name],
  3890. - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  3891. -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  3892. - [0], [_libtool_name=[$]$1],
  3893. - [1], [_libtool_name=$lt_[]$1],
  3894. - [2], [_libtool_name=$lt_[]$1],
  3895. - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  3896. -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  3897. -])
  3898. -
  3899. -
  3900. -# _LT_LIBTOOL_CONFIG_VARS
  3901. -# -----------------------
  3902. -# Produce commented declarations of non-tagged libtool config variables
  3903. -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  3904. -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  3905. -# section) are produced by _LT_LIBTOOL_TAG_VARS.
  3906. -m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  3907. -[m4_foreach([_lt_var],
  3908. - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  3909. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  3910. -
  3911. -
  3912. -# _LT_LIBTOOL_TAG_VARS(TAG)
  3913. -# -------------------------
  3914. -m4_define([_LT_LIBTOOL_TAG_VARS],
  3915. -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  3916. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  3917. -
  3918. -
  3919. -# _LT_TAGVAR(VARNAME, [TAGNAME])
  3920. -# ------------------------------
  3921. -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  3922. -
  3923. -
  3924. -# _LT_CONFIG_COMMANDS
  3925. -# -------------------
  3926. -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  3927. -# variables for single and double quote escaping we saved from calls
  3928. -# to _LT_DECL, we can put quote escaped variables declarations
  3929. -# into `config.status', and then the shell code to quote escape them in
  3930. -# for loops in `config.status'. Finally, any additional code accumulated
  3931. -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  3932. -m4_defun([_LT_CONFIG_COMMANDS],
  3933. -[AC_PROVIDE_IFELSE([LT_OUTPUT],
  3934. - dnl If the libtool generation code has been placed in $CONFIG_LT,
  3935. - dnl instead of duplicating it all over again into config.status,
  3936. - dnl then we will have config.status run $CONFIG_LT later, so it
  3937. - dnl needs to know what name is stored there:
  3938. - [AC_CONFIG_COMMANDS([libtool],
  3939. - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  3940. - dnl If the libtool generation code is destined for config.status,
  3941. - dnl expand the accumulated commands and init code now:
  3942. - [AC_CONFIG_COMMANDS([libtool],
  3943. - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  3944. -])#_LT_CONFIG_COMMANDS
  3945. -
  3946. -
  3947. -# Initialize.
  3948. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  3949. -[
  3950. -
  3951. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  3952. -# if CDPATH is set.
  3953. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3954. -
  3955. -sed_quote_subst='$sed_quote_subst'
  3956. -double_quote_subst='$double_quote_subst'
  3957. -delay_variable_subst='$delay_variable_subst'
  3958. -_LT_CONFIG_STATUS_DECLARATIONS
  3959. -LTCC='$LTCC'
  3960. -LTCFLAGS='$LTCFLAGS'
  3961. -compiler='$compiler_DEFAULT'
  3962. -
  3963. -# Quote evaled strings.
  3964. -for var in lt_decl_all_varnames([[ \
  3965. -]], lt_decl_quote_varnames); do
  3966. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  3967. - *[[\\\\\\\`\\"\\\$]]*)
  3968. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  3969. - ;;
  3970. - *)
  3971. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  3972. - ;;
  3973. - esac
  3974. -done
  3975. -
  3976. -# Double-quote double-evaled strings.
  3977. -for var in lt_decl_all_varnames([[ \
  3978. -]], lt_decl_dquote_varnames); do
  3979. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  3980. - *[[\\\\\\\`\\"\\\$]]*)
  3981. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  3982. - ;;
  3983. - *)
  3984. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  3985. - ;;
  3986. - esac
  3987. -done
  3988. -
  3989. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  3990. -case \$lt_ECHO in
  3991. -*'\\\[$]0 --fallback-echo"')dnl "
  3992. - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  3993. - ;;
  3994. -esac
  3995. -
  3996. -_LT_OUTPUT_LIBTOOL_INIT
  3997. -])
  3998. -
  3999. -
  4000. -# LT_OUTPUT
  4001. -# ---------
  4002. -# This macro allows early generation of the libtool script (before
  4003. -# AC_OUTPUT is called), incase it is used in configure for compilation
  4004. -# tests.
  4005. -AC_DEFUN([LT_OUTPUT],
  4006. -[: ${CONFIG_LT=./config.lt}
  4007. -AC_MSG_NOTICE([creating $CONFIG_LT])
  4008. -cat >"$CONFIG_LT" <<_LTEOF
  4009. -#! $SHELL
  4010. -# Generated by $as_me.
  4011. -# Run this file to recreate a libtool stub with the current configuration.
  4012. -
  4013. -lt_cl_silent=false
  4014. -SHELL=\${CONFIG_SHELL-$SHELL}
  4015. -_LTEOF
  4016. -
  4017. -cat >>"$CONFIG_LT" <<\_LTEOF
  4018. -AS_SHELL_SANITIZE
  4019. -_AS_PREPARE
  4020. -
  4021. -exec AS_MESSAGE_FD>&1
  4022. -exec AS_MESSAGE_LOG_FD>>config.log
  4023. -{
  4024. - echo
  4025. - AS_BOX([Running $as_me.])
  4026. -} >&AS_MESSAGE_LOG_FD
  4027. -
  4028. -lt_cl_help="\
  4029. -\`$as_me' creates a local libtool stub from the current configuration,
  4030. -for use in further configure time tests before the real libtool is
  4031. -generated.
  4032. -
  4033. -Usage: $[0] [[OPTIONS]]
  4034. -
  4035. - -h, --help print this help, then exit
  4036. - -V, --version print version number, then exit
  4037. - -q, --quiet do not print progress messages
  4038. - -d, --debug don't remove temporary files
  4039. -
  4040. -Report bugs to <bug-libtool@gnu.org>."
  4041. -
  4042. -lt_cl_version="\
  4043. -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  4044. -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  4045. -configured by $[0], generated by m4_PACKAGE_STRING.
  4046. -
  4047. -Copyright (C) 2008 Free Software Foundation, Inc.
  4048. -This config.lt script is free software; the Free Software Foundation
  4049. -gives unlimited permision to copy, distribute and modify it."
  4050. -
  4051. -while test $[#] != 0
  4052. -do
  4053. - case $[1] in
  4054. - --version | --v* | -V )
  4055. - echo "$lt_cl_version"; exit 0 ;;
  4056. - --help | --h* | -h )
  4057. - echo "$lt_cl_help"; exit 0 ;;
  4058. - --debug | --d* | -d )
  4059. - debug=: ;;
  4060. - --quiet | --q* | --silent | --s* | -q )
  4061. - lt_cl_silent=: ;;
  4062. -
  4063. - -*) AC_MSG_ERROR([unrecognized option: $[1]
  4064. -Try \`$[0] --help' for more information.]) ;;
  4065. -
  4066. - *) AC_MSG_ERROR([unrecognized argument: $[1]
  4067. -Try \`$[0] --help' for more information.]) ;;
  4068. - esac
  4069. - shift
  4070. -done
  4071. -
  4072. -if $lt_cl_silent; then
  4073. - exec AS_MESSAGE_FD>/dev/null
  4074. -fi
  4075. -_LTEOF
  4076. -
  4077. -cat >>"$CONFIG_LT" <<_LTEOF
  4078. -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  4079. -_LTEOF
  4080. -
  4081. -cat >>"$CONFIG_LT" <<\_LTEOF
  4082. -AC_MSG_NOTICE([creating $ofile])
  4083. -_LT_OUTPUT_LIBTOOL_COMMANDS
  4084. -AS_EXIT(0)
  4085. -_LTEOF
  4086. -chmod +x "$CONFIG_LT"
  4087. -
  4088. -# configure is writing to config.log, but config.lt does its own redirection,
  4089. -# appending to config.log, which fails on DOS, as config.log is still kept
  4090. -# open by configure. Here we exec the FD to /dev/null, effectively closing
  4091. -# config.log, so it can be properly (re)opened and appended to by config.lt.
  4092. -if test "$no_create" != yes; then
  4093. - lt_cl_success=:
  4094. - test "$silent" = yes &&
  4095. - lt_config_lt_args="$lt_config_lt_args --quiet"
  4096. - exec AS_MESSAGE_LOG_FD>/dev/null
  4097. - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  4098. - exec AS_MESSAGE_LOG_FD>>config.log
  4099. - $lt_cl_success || AS_EXIT(1)
  4100. -fi
  4101. -])# LT_OUTPUT
  4102. -
  4103. -
  4104. -# _LT_CONFIG(TAG)
  4105. -# ---------------
  4106. -# If TAG is the built-in tag, create an initial libtool script with a
  4107. -# default configuration from the untagged config vars. Otherwise add code
  4108. -# to config.status for appending the configuration named by TAG from the
  4109. -# matching tagged config vars.
  4110. -m4_defun([_LT_CONFIG],
  4111. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4112. -_LT_CONFIG_SAVE_COMMANDS([
  4113. - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  4114. - m4_if(_LT_TAG, [C], [
  4115. - # See if we are running on zsh, and set the options which allow our
  4116. - # commands through without removal of \ escapes.
  4117. - if test -n "${ZSH_VERSION+set}" ; then
  4118. - setopt NO_GLOB_SUBST
  4119. - fi
  4120. -
  4121. - cfgfile="${ofile}T"
  4122. - trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  4123. - $RM "$cfgfile"
  4124. -
  4125. - cat <<_LT_EOF >> "$cfgfile"
  4126. -#! $SHELL
  4127. -
  4128. -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4129. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  4130. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4131. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4132. -#
  4133. -_LT_COPYING
  4134. -_LT_LIBTOOL_TAGS
  4135. -
  4136. -# ### BEGIN LIBTOOL CONFIG
  4137. -_LT_LIBTOOL_CONFIG_VARS
  4138. -_LT_LIBTOOL_TAG_VARS
  4139. -# ### END LIBTOOL CONFIG
  4140. -
  4141. -_LT_EOF
  4142. -
  4143. - case $host_os in
  4144. - aix3*)
  4145. - cat <<\_LT_EOF >> "$cfgfile"
  4146. -# AIX sometimes has problems with the GCC collect2 program. For some
  4147. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  4148. -# vanish in a puff of smoke.
  4149. -if test "X${COLLECT_NAMES+set}" != Xset; then
  4150. - COLLECT_NAMES=
  4151. - export COLLECT_NAMES
  4152. -fi
  4153. -_LT_EOF
  4154. - ;;
  4155. - esac
  4156. -
  4157. - _LT_PROG_LTMAIN
  4158. -
  4159. - # We use sed instead of cat because bash on DJGPP gets confused if
  4160. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4161. - # text mode, it properly converts lines to CR/LF. This bash problem
  4162. - # is reportedly fixed, but why not run on old versions too?
  4163. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  4164. - || (rm -f "$cfgfile"; exit 1)
  4165. -
  4166. - _LT_PROG_XSI_SHELLFNS
  4167. -
  4168. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  4169. - || (rm -f "$cfgfile"; exit 1)
  4170. -
  4171. - mv -f "$cfgfile" "$ofile" ||
  4172. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4173. - chmod +x "$ofile"
  4174. -],
  4175. -[cat <<_LT_EOF >> "$ofile"
  4176. -
  4177. -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  4178. -dnl in a comment (ie after a #).
  4179. -# ### BEGIN LIBTOOL TAG CONFIG: $1
  4180. -_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  4181. -# ### END LIBTOOL TAG CONFIG: $1
  4182. -_LT_EOF
  4183. -])dnl /m4_if
  4184. -],
  4185. -[m4_if([$1], [], [
  4186. - PACKAGE='$PACKAGE'
  4187. - VERSION='$VERSION'
  4188. - TIMESTAMP='$TIMESTAMP'
  4189. - RM='$RM'
  4190. - ofile='$ofile'], [])
  4191. -])dnl /_LT_CONFIG_SAVE_COMMANDS
  4192. -])# _LT_CONFIG
  4193. -
  4194. -
  4195. -# LT_SUPPORTED_TAG(TAG)
  4196. -# ---------------------
  4197. -# Trace this macro to discover what tags are supported by the libtool
  4198. -# --tag option, using:
  4199. -# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  4200. -AC_DEFUN([LT_SUPPORTED_TAG], [])
  4201. -
  4202. -
  4203. -# C support is built-in for now
  4204. -m4_define([_LT_LANG_C_enabled], [])
  4205. -m4_define([_LT_TAGS], [])
  4206. -
  4207. -
  4208. -# LT_LANG(LANG)
  4209. -# -------------
  4210. -# Enable libtool support for the given language if not already enabled.
  4211. -AC_DEFUN([LT_LANG],
  4212. -[AC_BEFORE([$0], [LT_OUTPUT])dnl
  4213. -m4_case([$1],
  4214. - [C], [_LT_LANG(C)],
  4215. - [C++], [_LT_LANG(CXX)],
  4216. - [Java], [_LT_LANG(GCJ)],
  4217. - [Fortran 77], [_LT_LANG(F77)],
  4218. - [Fortran], [_LT_LANG(FC)],
  4219. - [Windows Resource], [_LT_LANG(RC)],
  4220. - [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  4221. - [_LT_LANG($1)],
  4222. - [m4_fatal([$0: unsupported language: "$1"])])])dnl
  4223. -])# LT_LANG
  4224. -
  4225. -
  4226. -# _LT_LANG(LANGNAME)
  4227. -# ------------------
  4228. -m4_defun([_LT_LANG],
  4229. -[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  4230. - [LT_SUPPORTED_TAG([$1])dnl
  4231. - m4_append([_LT_TAGS], [$1 ])dnl
  4232. - m4_define([_LT_LANG_]$1[_enabled], [])dnl
  4233. - _LT_LANG_$1_CONFIG($1)])dnl
  4234. -])# _LT_LANG
  4235. -
  4236. -
  4237. -# _LT_LANG_DEFAULT_CONFIG
  4238. -# -----------------------
  4239. -m4_defun([_LT_LANG_DEFAULT_CONFIG],
  4240. -[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  4241. - [LT_LANG(CXX)],
  4242. - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  4243. -
  4244. -AC_PROVIDE_IFELSE([AC_PROG_F77],
  4245. - [LT_LANG(F77)],
  4246. - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  4247. -
  4248. -AC_PROVIDE_IFELSE([AC_PROG_FC],
  4249. - [LT_LANG(FC)],
  4250. - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  4251. -
  4252. -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  4253. -dnl pulling things in needlessly.
  4254. -AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  4255. - [LT_LANG(GCJ)],
  4256. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  4257. - [LT_LANG(GCJ)],
  4258. - [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  4259. - [LT_LANG(GCJ)],
  4260. - [m4_ifdef([AC_PROG_GCJ],
  4261. - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  4262. - m4_ifdef([A][M_PROG_GCJ],
  4263. - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  4264. - m4_ifdef([LT_PROG_GCJ],
  4265. - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  4266. -
  4267. -AC_PROVIDE_IFELSE([LT_PROG_RC],
  4268. - [LT_LANG(RC)],
  4269. - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  4270. -])# _LT_LANG_DEFAULT_CONFIG
  4271. -
  4272. -# Obsolete macros:
  4273. -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  4274. -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  4275. -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  4276. -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  4277. -dnl aclocal-1.4 backwards compatibility:
  4278. -dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  4279. -dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  4280. -dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  4281. -dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  4282. -
  4283. -
  4284. -# _LT_TAG_COMPILER
  4285. -# ----------------
  4286. -m4_defun([_LT_TAG_COMPILER],
  4287. -[AC_REQUIRE([AC_PROG_CC])dnl
  4288. -
  4289. -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  4290. -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  4291. -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  4292. -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  4293. -
  4294. -# If no C compiler was specified, use CC.
  4295. -LTCC=${LTCC-"$CC"}
  4296. -
  4297. -# If no C compiler flags were specified, use CFLAGS.
  4298. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4299. -
  4300. -# Allow CC to be a program name with arguments.
  4301. -compiler=$CC
  4302. -])# _LT_TAG_COMPILER
  4303. -
  4304. -
  4305. -# _LT_COMPILER_BOILERPLATE
  4306. -# ------------------------
  4307. -# Check for compiler boilerplate output or warnings with
  4308. -# the simple compiler test code.
  4309. -m4_defun([_LT_COMPILER_BOILERPLATE],
  4310. -[m4_require([_LT_DECL_SED])dnl
  4311. -ac_outfile=conftest.$ac_objext
  4312. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  4313. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  4314. -_lt_compiler_boilerplate=`cat conftest.err`
  4315. -$RM conftest*
  4316. -])# _LT_COMPILER_BOILERPLATE
  4317. -
  4318. -
  4319. -# _LT_LINKER_BOILERPLATE
  4320. -# ----------------------
  4321. -# Check for linker boilerplate output or warnings with
  4322. -# the simple link test code.
  4323. -m4_defun([_LT_LINKER_BOILERPLATE],
  4324. -[m4_require([_LT_DECL_SED])dnl
  4325. -ac_outfile=conftest.$ac_objext
  4326. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  4327. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  4328. -_lt_linker_boilerplate=`cat conftest.err`
  4329. -$RM -r conftest*
  4330. -])# _LT_LINKER_BOILERPLATE
  4331. -
  4332. -# _LT_REQUIRED_DARWIN_CHECKS
  4333. -# -------------------------
  4334. -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  4335. - case $host_os in
  4336. - rhapsody* | darwin*)
  4337. - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  4338. - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  4339. - AC_CHECK_TOOL([LIPO], [lipo], [:])
  4340. - AC_CHECK_TOOL([OTOOL], [otool], [:])
  4341. - AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  4342. - _LT_DECL([], [DSYMUTIL], [1],
  4343. - [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  4344. - _LT_DECL([], [NMEDIT], [1],
  4345. - [Tool to change global to local symbols on Mac OS X])
  4346. - _LT_DECL([], [LIPO], [1],
  4347. - [Tool to manipulate fat objects and archives on Mac OS X])
  4348. - _LT_DECL([], [OTOOL], [1],
  4349. - [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  4350. - _LT_DECL([], [OTOOL64], [1],
  4351. - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  4352. -
  4353. - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  4354. - [lt_cv_apple_cc_single_mod=no
  4355. - if test -z "${LT_MULTI_MODULE}"; then
  4356. - # By default we will add the -single_module flag. You can override
  4357. - # by either setting the environment variable LT_MULTI_MODULE
  4358. - # non-empty at configure time, or by adding -multi_module to the
  4359. - # link flags.
  4360. - rm -rf libconftest.dylib*
  4361. - echo "int foo(void){return 1;}" > conftest.c
  4362. - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4363. --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  4364. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4365. - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  4366. - _lt_result=$?
  4367. - if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  4368. - lt_cv_apple_cc_single_mod=yes
  4369. - else
  4370. - cat conftest.err >&AS_MESSAGE_LOG_FD
  4371. - fi
  4372. - rm -rf libconftest.dylib*
  4373. - rm -f conftest.*
  4374. - fi])
  4375. - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  4376. - [lt_cv_ld_exported_symbols_list],
  4377. - [lt_cv_ld_exported_symbols_list=no
  4378. - save_LDFLAGS=$LDFLAGS
  4379. - echo "_main" > conftest.sym
  4380. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  4381. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4382. - [lt_cv_ld_exported_symbols_list=yes],
  4383. - [lt_cv_ld_exported_symbols_list=no])
  4384. - LDFLAGS="$save_LDFLAGS"
  4385. - ])
  4386. - case $host_os in
  4387. - rhapsody* | darwin1.[[012]])
  4388. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  4389. - darwin1.*)
  4390. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  4391. - darwin*) # darwin 5.x on
  4392. - # if running on 10.5 or later, the deployment target defaults
  4393. - # to the OS version, if on x86, and 10.4, the deployment
  4394. - # target defaults to 10.4. Don't you love it?
  4395. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  4396. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  4397. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  4398. - 10.[[012]]*)
  4399. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  4400. - 10.*)
  4401. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  4402. - esac
  4403. - ;;
  4404. - esac
  4405. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  4406. - _lt_dar_single_mod='$single_module'
  4407. - fi
  4408. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  4409. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  4410. - else
  4411. - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4412. - fi
  4413. - if test "$DSYMUTIL" != ":"; then
  4414. - _lt_dsymutil='~$DSYMUTIL $lib || :'
  4415. - else
  4416. - _lt_dsymutil=
  4417. - fi
  4418. - ;;
  4419. - esac
  4420. -])
  4421. -
  4422. -
  4423. -# _LT_DARWIN_LINKER_FEATURES
  4424. -# --------------------------
  4425. -# Checks for linker and compiler features on darwin
  4426. -m4_defun([_LT_DARWIN_LINKER_FEATURES],
  4427. -[
  4428. - m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  4429. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4430. - _LT_TAGVAR(hardcode_direct, $1)=no
  4431. - _LT_TAGVAR(hardcode_automatic, $1)=yes
  4432. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4433. - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  4434. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  4435. - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  4436. - case $cc_basename in
  4437. - ifort*) _lt_dar_can_shared=yes ;;
  4438. - *) _lt_dar_can_shared=$GCC ;;
  4439. - esac
  4440. - if test "$_lt_dar_can_shared" = "yes"; then
  4441. - output_verbose_link_cmd=echo
  4442. - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  4443. - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  4444. - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  4445. - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  4446. - m4_if([$1], [CXX],
  4447. -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  4448. - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  4449. - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  4450. - fi
  4451. -],[])
  4452. - else
  4453. - _LT_TAGVAR(ld_shlibs, $1)=no
  4454. - fi
  4455. -])
  4456. -
  4457. -# _LT_SYS_MODULE_PATH_AIX
  4458. -# -----------------------
  4459. -# Links a minimal program and checks the executable
  4460. -# for the system default hardcoded library path. In most cases,
  4461. -# this is /usr/lib:/lib, but when the MPI compilers are used
  4462. -# the location of the communication and MPI libs are included too.
  4463. -# If we don't find anything, use the default library path according
  4464. -# to the aix ld manual.
  4465. -m4_defun([_LT_SYS_MODULE_PATH_AIX],
  4466. -[m4_require([_LT_DECL_SED])dnl
  4467. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  4468. -lt_aix_libpath_sed='
  4469. - /Import File Strings/,/^$/ {
  4470. - /^0/ {
  4471. - s/^0 *\(.*\)$/\1/
  4472. - p
  4473. - }
  4474. - }'
  4475. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4476. -# Check for a 64-bit object if we didn't find anything.
  4477. -if test -z "$aix_libpath"; then
  4478. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  4479. -fi],[])
  4480. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  4481. -])# _LT_SYS_MODULE_PATH_AIX
  4482. -
  4483. -
  4484. -# _LT_SHELL_INIT(ARG)
  4485. -# -------------------
  4486. -m4_define([_LT_SHELL_INIT],
  4487. -[ifdef([AC_DIVERSION_NOTICE],
  4488. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  4489. - [AC_DIVERT_PUSH(NOTICE)])
  4490. -$1
  4491. -AC_DIVERT_POP
  4492. -])# _LT_SHELL_INIT
  4493. -
  4494. -
  4495. -# _LT_PROG_ECHO_BACKSLASH
  4496. -# -----------------------
  4497. -# Add some code to the start of the generated configure script which
  4498. -# will find an echo command which doesn't interpret backslashes.
  4499. -m4_defun([_LT_PROG_ECHO_BACKSLASH],
  4500. -[_LT_SHELL_INIT([
  4501. -# Check that we are running under the correct shell.
  4502. -SHELL=${CONFIG_SHELL-/bin/sh}
  4503. -
  4504. -case X$lt_ECHO in
  4505. -X*--fallback-echo)
  4506. - # Remove one level of quotation (which was required for Make).
  4507. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  4508. - ;;
  4509. -esac
  4510. -
  4511. -ECHO=${lt_ECHO-echo}
  4512. -if test "X[$]1" = X--no-reexec; then
  4513. - # Discard the --no-reexec flag, and continue.
  4514. - shift
  4515. -elif test "X[$]1" = X--fallback-echo; then
  4516. - # Avoid inline document here, it may be left over
  4517. - :
  4518. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  4519. - # Yippee, $ECHO works!
  4520. - :
  4521. -else
  4522. - # Restart under the correct shell.
  4523. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  4524. -fi
  4525. -
  4526. -if test "X[$]1" = X--fallback-echo; then
  4527. - # used as fallback echo
  4528. - shift
  4529. - cat <<_LT_EOF
  4530. -[$]*
  4531. -_LT_EOF
  4532. - exit 0
  4533. -fi
  4534. -
  4535. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4536. -# if CDPATH is set.
  4537. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4538. -
  4539. -if test -z "$lt_ECHO"; then
  4540. - if test "X${echo_test_string+set}" != Xset; then
  4541. - # find a string as large as possible, as long as the shell can cope with it
  4542. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  4543. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  4544. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  4545. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  4546. - then
  4547. - break
  4548. - fi
  4549. - done
  4550. - fi
  4551. -
  4552. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  4553. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  4554. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4555. - :
  4556. - else
  4557. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  4558. - # backslashes. This makes it impossible to quote backslashes using
  4559. - # echo "$something" | sed 's/\\/\\\\/g'
  4560. - #
  4561. - # So, first we look for a working echo in the user's PATH.
  4562. -
  4563. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4564. - for dir in $PATH /usr/ucb; do
  4565. - IFS="$lt_save_ifs"
  4566. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  4567. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  4568. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  4569. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4570. - ECHO="$dir/echo"
  4571. - break
  4572. - fi
  4573. - done
  4574. - IFS="$lt_save_ifs"
  4575. -
  4576. - if test "X$ECHO" = Xecho; then
  4577. - # We didn't find a better echo, so look for alternatives.
  4578. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  4579. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  4580. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4581. - # This shell has a builtin print -r that does the trick.
  4582. - ECHO='print -r'
  4583. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  4584. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  4585. - # If we have ksh, try running configure again with it.
  4586. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  4587. - export ORIGINAL_CONFIG_SHELL
  4588. - CONFIG_SHELL=/bin/ksh
  4589. - export CONFIG_SHELL
  4590. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  4591. - else
  4592. - # Try using printf.
  4593. - ECHO='printf %s\n'
  4594. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  4595. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  4596. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4597. - # Cool, printf works
  4598. - :
  4599. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  4600. - test "X$echo_testing_string" = 'X\t' &&
  4601. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  4602. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4603. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  4604. - export CONFIG_SHELL
  4605. - SHELL="$CONFIG_SHELL"
  4606. - export SHELL
  4607. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  4608. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  4609. - test "X$echo_testing_string" = 'X\t' &&
  4610. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  4611. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4612. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  4613. - else
  4614. - # maybe with a smaller string...
  4615. - prev=:
  4616. -
  4617. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  4618. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  4619. - then
  4620. - break
  4621. - fi
  4622. - prev="$cmd"
  4623. - done
  4624. -
  4625. - if test "$prev" != 'sed 50q "[$]0"'; then
  4626. - echo_test_string=`eval $prev`
  4627. - export echo_test_string
  4628. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  4629. - else
  4630. - # Oops. We lost completely, so just stick with echo.
  4631. - ECHO=echo
  4632. - fi
  4633. - fi
  4634. - fi
  4635. - fi
  4636. - fi
  4637. -fi
  4638. -
  4639. -# Copy echo and quote the copy suitably for passing to libtool from
  4640. -# the Makefile, instead of quoting the original, which is used later.
  4641. -lt_ECHO=$ECHO
  4642. -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  4643. - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  4644. -fi
  4645. -
  4646. -AC_SUBST(lt_ECHO)
  4647. -])
  4648. -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  4649. -_LT_DECL([], [ECHO], [1],
  4650. - [An echo program that does not interpret backslashes])
  4651. -])# _LT_PROG_ECHO_BACKSLASH
  4652. -
  4653. -
  4654. -# _LT_ENABLE_LOCK
  4655. -# ---------------
  4656. -m4_defun([_LT_ENABLE_LOCK],
  4657. -[AC_ARG_ENABLE([libtool-lock],
  4658. - [AS_HELP_STRING([--disable-libtool-lock],
  4659. - [avoid locking (might break parallel builds)])])
  4660. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4661. -
  4662. -# Some flags need to be propagated to the compiler or linker for good
  4663. -# libtool support.
  4664. -case $host in
  4665. -ia64-*-hpux*)
  4666. - # Find out which ABI we are using.
  4667. - echo 'int i;' > conftest.$ac_ext
  4668. - if AC_TRY_EVAL(ac_compile); then
  4669. - case `/usr/bin/file conftest.$ac_objext` in
  4670. - *ELF-32*)
  4671. - HPUX_IA64_MODE="32"
  4672. - ;;
  4673. - *ELF-64*)
  4674. - HPUX_IA64_MODE="64"
  4675. - ;;
  4676. - esac
  4677. - fi
  4678. - rm -rf conftest*
  4679. - ;;
  4680. -*-*-irix6*)
  4681. - # Find out which ABI we are using.
  4682. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  4683. - if AC_TRY_EVAL(ac_compile); then
  4684. - if test "$lt_cv_prog_gnu_ld" = yes; then
  4685. - case `/usr/bin/file conftest.$ac_objext` in
  4686. - *32-bit*)
  4687. - LD="${LD-ld} -melf32bsmip"
  4688. - ;;
  4689. - *N32*)
  4690. - LD="${LD-ld} -melf32bmipn32"
  4691. - ;;
  4692. - *64-bit*)
  4693. - LD="${LD-ld} -melf64bmip"
  4694. - ;;
  4695. - esac
  4696. - else
  4697. - case `/usr/bin/file conftest.$ac_objext` in
  4698. - *32-bit*)
  4699. - LD="${LD-ld} -32"
  4700. - ;;
  4701. - *N32*)
  4702. - LD="${LD-ld} -n32"
  4703. - ;;
  4704. - *64-bit*)
  4705. - LD="${LD-ld} -64"
  4706. - ;;
  4707. - esac
  4708. - fi
  4709. - fi
  4710. - rm -rf conftest*
  4711. - ;;
  4712. -
  4713. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4714. -s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4715. - # Find out which ABI we are using.
  4716. - echo 'int i;' > conftest.$ac_ext
  4717. - if AC_TRY_EVAL(ac_compile); then
  4718. - case `/usr/bin/file conftest.o` in
  4719. - *32-bit*)
  4720. - case $host in
  4721. - x86_64-*kfreebsd*-gnu)
  4722. - LD="${LD-ld} -m elf_i386_fbsd"
  4723. - ;;
  4724. - x86_64-*linux*)
  4725. - LD="${LD-ld} -m elf_i386"
  4726. - ;;
  4727. - ppc64-*linux*|powerpc64-*linux*)
  4728. - LD="${LD-ld} -m elf32ppclinux"
  4729. - ;;
  4730. - s390x-*linux*)
  4731. - LD="${LD-ld} -m elf_s390"
  4732. - ;;
  4733. - sparc64-*linux*)
  4734. - LD="${LD-ld} -m elf32_sparc"
  4735. - ;;
  4736. - esac
  4737. - ;;
  4738. - *64-bit*)
  4739. - case $host in
  4740. - x86_64-*kfreebsd*-gnu)
  4741. - LD="${LD-ld} -m elf_x86_64_fbsd"
  4742. - ;;
  4743. - x86_64-*linux*)
  4744. - LD="${LD-ld} -m elf_x86_64"
  4745. - ;;
  4746. - ppc*-*linux*|powerpc*-*linux*)
  4747. - LD="${LD-ld} -m elf64ppc"
  4748. - ;;
  4749. - s390*-*linux*|s390*-*tpf*)
  4750. - LD="${LD-ld} -m elf64_s390"
  4751. - ;;
  4752. - sparc*-*linux*)
  4753. - LD="${LD-ld} -m elf64_sparc"
  4754. - ;;
  4755. - esac
  4756. - ;;
  4757. - esac
  4758. - fi
  4759. - rm -rf conftest*
  4760. - ;;
  4761. -
  4762. -*-*-sco3.2v5*)
  4763. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4764. - SAVE_CFLAGS="$CFLAGS"
  4765. - CFLAGS="$CFLAGS -belf"
  4766. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  4767. - [AC_LANG_PUSH(C)
  4768. - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  4769. - AC_LANG_POP])
  4770. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4771. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4772. - CFLAGS="$SAVE_CFLAGS"
  4773. - fi
  4774. - ;;
  4775. -sparc*-*solaris*)
  4776. - # Find out which ABI we are using.
  4777. - echo 'int i;' > conftest.$ac_ext
  4778. - if AC_TRY_EVAL(ac_compile); then
  4779. - case `/usr/bin/file conftest.o` in
  4780. - *64-bit*)
  4781. - case $lt_cv_prog_gnu_ld in
  4782. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4783. - *)
  4784. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4785. - LD="${LD-ld} -64"
  4786. - fi
  4787. - ;;
  4788. - esac
  4789. - ;;
  4790. - esac
  4791. - fi
  4792. - rm -rf conftest*
  4793. - ;;
  4794. -esac
  4795. -
  4796. -need_locks="$enable_libtool_lock"
  4797. -])# _LT_ENABLE_LOCK
  4798. -
  4799. -
  4800. -# _LT_CMD_OLD_ARCHIVE
  4801. -# -------------------
  4802. -m4_defun([_LT_CMD_OLD_ARCHIVE],
  4803. -[AC_CHECK_TOOL(AR, ar, false)
  4804. -test -z "$AR" && AR=ar
  4805. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  4806. -_LT_DECL([], [AR], [1], [The archiver])
  4807. -_LT_DECL([], [AR_FLAGS], [1])
  4808. -
  4809. -AC_CHECK_TOOL(STRIP, strip, :)
  4810. -test -z "$STRIP" && STRIP=:
  4811. -_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  4812. -
  4813. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  4814. -test -z "$RANLIB" && RANLIB=:
  4815. -_LT_DECL([], [RANLIB], [1],
  4816. - [Commands used to install an old-style archive])
  4817. -
  4818. -# Determine commands to create old-style static archives.
  4819. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4820. -old_postinstall_cmds='chmod 644 $oldlib'
  4821. -old_postuninstall_cmds=
  4822. -
  4823. -if test -n "$RANLIB"; then
  4824. - case $host_os in
  4825. - openbsd*)
  4826. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4827. - ;;
  4828. - *)
  4829. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4830. - ;;
  4831. - esac
  4832. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4833. -fi
  4834. -_LT_DECL([], [old_postinstall_cmds], [2])
  4835. -_LT_DECL([], [old_postuninstall_cmds], [2])
  4836. -_LT_TAGDECL([], [old_archive_cmds], [2],
  4837. - [Commands used to build an old-style archive])
  4838. -])# _LT_CMD_OLD_ARCHIVE
  4839. -
  4840. -
  4841. -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  4842. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  4843. -# ----------------------------------------------------------------
  4844. -# Check whether the given compiler option works
  4845. -AC_DEFUN([_LT_COMPILER_OPTION],
  4846. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4847. -m4_require([_LT_DECL_SED])dnl
  4848. -AC_CACHE_CHECK([$1], [$2],
  4849. - [$2=no
  4850. - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  4851. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4852. - lt_compiler_flag="$3"
  4853. - # Insert the option either (1) after the last *FLAGS variable, or
  4854. - # (2) before a word containing "conftest.", or (3) at the end.
  4855. - # Note that $ac_compile itself does not contain backslashes and begins
  4856. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  4857. - # The option is referenced via a variable to avoid confusing sed.
  4858. - lt_compile=`echo "$ac_compile" | $SED \
  4859. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4860. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  4861. - -e 's:$: $lt_compiler_flag:'`
  4862. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  4863. - (eval "$lt_compile" 2>conftest.err)
  4864. - ac_status=$?
  4865. - cat conftest.err >&AS_MESSAGE_LOG_FD
  4866. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  4867. - if (exit $ac_status) && test -s "$ac_outfile"; then
  4868. - # The compiler can only warn and ignore the option if not recognized
  4869. - # So say no if there are warnings other than the usual output.
  4870. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  4871. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4872. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  4873. - $2=yes
  4874. - fi
  4875. - fi
  4876. - $RM conftest*
  4877. -])
  4878. -
  4879. -if test x"[$]$2" = xyes; then
  4880. - m4_if([$5], , :, [$5])
  4881. -else
  4882. - m4_if([$6], , :, [$6])
  4883. -fi
  4884. -])# _LT_COMPILER_OPTION
  4885. -
  4886. -# Old name:
  4887. -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  4888. -dnl aclocal-1.4 backwards compatibility:
  4889. -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  4890. -
  4891. -
  4892. -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  4893. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  4894. -# ----------------------------------------------------
  4895. -# Check whether the given linker option works
  4896. -AC_DEFUN([_LT_LINKER_OPTION],
  4897. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4898. -m4_require([_LT_DECL_SED])dnl
  4899. -AC_CACHE_CHECK([$1], [$2],
  4900. - [$2=no
  4901. - save_LDFLAGS="$LDFLAGS"
  4902. - LDFLAGS="$LDFLAGS $3"
  4903. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  4904. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  4905. - # The linker can only warn and ignore the option if not recognized
  4906. - # So say no if there are warnings
  4907. - if test -s conftest.err; then
  4908. - # Append any errors to the config.log.
  4909. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  4910. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  4911. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4912. - if diff conftest.exp conftest.er2 >/dev/null; then
  4913. - $2=yes
  4914. - fi
  4915. - else
  4916. - $2=yes
  4917. - fi
  4918. - fi
  4919. - $RM -r conftest*
  4920. - LDFLAGS="$save_LDFLAGS"
  4921. -])
  4922. -
  4923. -if test x"[$]$2" = xyes; then
  4924. - m4_if([$4], , :, [$4])
  4925. -else
  4926. - m4_if([$5], , :, [$5])
  4927. -fi
  4928. -])# _LT_LINKER_OPTION
  4929. -
  4930. -# Old name:
  4931. -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  4932. -dnl aclocal-1.4 backwards compatibility:
  4933. -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  4934. -
  4935. -
  4936. -# LT_CMD_MAX_LEN
  4937. -#---------------
  4938. -AC_DEFUN([LT_CMD_MAX_LEN],
  4939. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4940. -# find the maximum length of command line arguments
  4941. -AC_MSG_CHECKING([the maximum length of command line arguments])
  4942. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  4943. - i=0
  4944. - teststring="ABCD"
  4945. -
  4946. - case $build_os in
  4947. - msdosdjgpp*)
  4948. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  4949. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  4950. - # during glob expansion). Even if it were fixed, the result of this
  4951. - # check would be larger than it should be.
  4952. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4953. - ;;
  4954. -
  4955. - gnu*)
  4956. - # Under GNU Hurd, this test is not required because there is
  4957. - # no limit to the length of command line arguments.
  4958. - # Libtool will interpret -1 as no limit whatsoever
  4959. - lt_cv_sys_max_cmd_len=-1;
  4960. - ;;
  4961. -
  4962. - cygwin* | mingw* | cegcc*)
  4963. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  4964. - # about 5 minutes as the teststring grows exponentially.
  4965. - # Worse, since 9x/ME are not pre-emptively multitasking,
  4966. - # you end up with a "frozen" computer, even though with patience
  4967. - # the test eventually succeeds (with a max line length of 256k).
  4968. - # Instead, let's just punt: use the minimum linelength reported by
  4969. - # all of the supported platforms: 8192 (on NT/2K/XP).
  4970. - lt_cv_sys_max_cmd_len=8192;
  4971. - ;;
  4972. -
  4973. - amigaos*)
  4974. - # On AmigaOS with pdksh, this test takes hours, literally.
  4975. - # So we just punt and use a minimum line length of 8192.
  4976. - lt_cv_sys_max_cmd_len=8192;
  4977. - ;;
  4978. -
  4979. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4980. - # This has been around since 386BSD, at least. Likely further.
  4981. - if test -x /sbin/sysctl; then
  4982. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4983. - elif test -x /usr/sbin/sysctl; then
  4984. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4985. - else
  4986. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4987. - fi
  4988. - # And add a safety zone
  4989. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4990. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4991. - ;;
  4992. -
  4993. - interix*)
  4994. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4995. - lt_cv_sys_max_cmd_len=196608
  4996. - ;;
  4997. -
  4998. - osf*)
  4999. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5000. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5001. - # nice to cause kernel panics so lets avoid the loop below.
  5002. - # First set a reasonable default.
  5003. - lt_cv_sys_max_cmd_len=16384
  5004. - #
  5005. - if test -x /sbin/sysconfig; then
  5006. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5007. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5008. - esac
  5009. - fi
  5010. - ;;
  5011. - sco3.2v5*)
  5012. - lt_cv_sys_max_cmd_len=102400
  5013. - ;;
  5014. - sysv5* | sco5v6* | sysv4.2uw2*)
  5015. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5016. - if test -n "$kargmax"; then
  5017. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  5018. - else
  5019. - lt_cv_sys_max_cmd_len=32768
  5020. - fi
  5021. - ;;
  5022. - *)
  5023. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5024. - if test -n "$lt_cv_sys_max_cmd_len"; then
  5025. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5026. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5027. - else
  5028. - # Make teststring a little bigger before we do anything with it.
  5029. - # a 1K string should be a reasonable start.
  5030. - for i in 1 2 3 4 5 6 7 8 ; do
  5031. - teststring=$teststring$teststring
  5032. - done
  5033. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5034. - # If test is not a shell built-in, we'll probably end up computing a
  5035. - # maximum length that is only half of the actual maximum length, but
  5036. - # we can't tell.
  5037. - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5038. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5039. - test $i != 17 # 1/2 MB should be enough
  5040. - do
  5041. - i=`expr $i + 1`
  5042. - teststring=$teststring$teststring
  5043. - done
  5044. - # Only check the string length outside the loop.
  5045. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5046. - teststring=
  5047. - # Add a significant safety factor because C++ compilers can tack on
  5048. - # massive amounts of additional arguments before passing them to the
  5049. - # linker. It appears as though 1/2 is a usable value.
  5050. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5051. - fi
  5052. - ;;
  5053. - esac
  5054. -])
  5055. -if test -n $lt_cv_sys_max_cmd_len ; then
  5056. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  5057. -else
  5058. - AC_MSG_RESULT(none)
  5059. -fi
  5060. -max_cmd_len=$lt_cv_sys_max_cmd_len
  5061. -_LT_DECL([], [max_cmd_len], [0],
  5062. - [What is the maximum length of a command?])
  5063. -])# LT_CMD_MAX_LEN
  5064. -
  5065. -# Old name:
  5066. -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  5067. -dnl aclocal-1.4 backwards compatibility:
  5068. -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  5069. -
  5070. -
  5071. -# _LT_HEADER_DLFCN
  5072. -# ----------------
  5073. -m4_defun([_LT_HEADER_DLFCN],
  5074. -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  5075. -])# _LT_HEADER_DLFCN
  5076. -
  5077. -
  5078. -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  5079. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  5080. -# ----------------------------------------------------------------
  5081. -m4_defun([_LT_TRY_DLOPEN_SELF],
  5082. -[m4_require([_LT_HEADER_DLFCN])dnl
  5083. -if test "$cross_compiling" = yes; then :
  5084. - [$4]
  5085. -else
  5086. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5087. - lt_status=$lt_dlunknown
  5088. - cat > conftest.$ac_ext <<_LT_EOF
  5089. -[#line __oline__ "configure"
  5090. -#include "confdefs.h"
  5091. -
  5092. -#if HAVE_DLFCN_H
  5093. -#include <dlfcn.h>
  5094. -#endif
  5095. -
  5096. -#include <stdio.h>
  5097. -
  5098. -#ifdef RTLD_GLOBAL
  5099. -# define LT_DLGLOBAL RTLD_GLOBAL
  5100. -#else
  5101. -# ifdef DL_GLOBAL
  5102. -# define LT_DLGLOBAL DL_GLOBAL
  5103. -# else
  5104. -# define LT_DLGLOBAL 0
  5105. -# endif
  5106. -#endif
  5107. -
  5108. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  5109. - find out it does not work in some platform. */
  5110. -#ifndef LT_DLLAZY_OR_NOW
  5111. -# ifdef RTLD_LAZY
  5112. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  5113. -# else
  5114. -# ifdef DL_LAZY
  5115. -# define LT_DLLAZY_OR_NOW DL_LAZY
  5116. -# else
  5117. -# ifdef RTLD_NOW
  5118. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  5119. -# else
  5120. -# ifdef DL_NOW
  5121. -# define LT_DLLAZY_OR_NOW DL_NOW
  5122. -# else
  5123. -# define LT_DLLAZY_OR_NOW 0
  5124. -# endif
  5125. -# endif
  5126. -# endif
  5127. -# endif
  5128. -#endif
  5129. -
  5130. -void fnord() { int i=42;}
  5131. -int main ()
  5132. -{
  5133. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5134. - int status = $lt_dlunknown;
  5135. -
  5136. - if (self)
  5137. - {
  5138. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5139. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5140. - /* dlclose (self); */
  5141. - }
  5142. - else
  5143. - puts (dlerror ());
  5144. -
  5145. - return status;
  5146. -}]
  5147. -_LT_EOF
  5148. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  5149. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  5150. - lt_status=$?
  5151. - case x$lt_status in
  5152. - x$lt_dlno_uscore) $1 ;;
  5153. - x$lt_dlneed_uscore) $2 ;;
  5154. - x$lt_dlunknown|x*) $3 ;;
  5155. - esac
  5156. - else :
  5157. - # compilation failed
  5158. - $3
  5159. - fi
  5160. -fi
  5161. -rm -fr conftest*
  5162. -])# _LT_TRY_DLOPEN_SELF
  5163. -
  5164. -
  5165. -# LT_SYS_DLOPEN_SELF
  5166. -# ------------------
  5167. -AC_DEFUN([LT_SYS_DLOPEN_SELF],
  5168. -[m4_require([_LT_HEADER_DLFCN])dnl
  5169. -if test "x$enable_dlopen" != xyes; then
  5170. - enable_dlopen=unknown
  5171. - enable_dlopen_self=unknown
  5172. - enable_dlopen_self_static=unknown
  5173. -else
  5174. - lt_cv_dlopen=no
  5175. - lt_cv_dlopen_libs=
  5176. -
  5177. - case $host_os in
  5178. - beos*)
  5179. - lt_cv_dlopen="load_add_on"
  5180. - lt_cv_dlopen_libs=
  5181. - lt_cv_dlopen_self=yes
  5182. - ;;
  5183. -
  5184. - mingw* | pw32* | cegcc*)
  5185. - lt_cv_dlopen="LoadLibrary"
  5186. - lt_cv_dlopen_libs=
  5187. - ;;
  5188. -
  5189. - cygwin*)
  5190. - lt_cv_dlopen="dlopen"
  5191. - lt_cv_dlopen_libs=
  5192. - ;;
  5193. -
  5194. - darwin*)
  5195. - # if libdl is installed we need to link against it
  5196. - AC_CHECK_LIB([dl], [dlopen],
  5197. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  5198. - lt_cv_dlopen="dyld"
  5199. - lt_cv_dlopen_libs=
  5200. - lt_cv_dlopen_self=yes
  5201. - ])
  5202. - ;;
  5203. -
  5204. - *)
  5205. - AC_CHECK_FUNC([shl_load],
  5206. - [lt_cv_dlopen="shl_load"],
  5207. - [AC_CHECK_LIB([dld], [shl_load],
  5208. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  5209. - [AC_CHECK_FUNC([dlopen],
  5210. - [lt_cv_dlopen="dlopen"],
  5211. - [AC_CHECK_LIB([dl], [dlopen],
  5212. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  5213. - [AC_CHECK_LIB([svld], [dlopen],
  5214. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  5215. - [AC_CHECK_LIB([dld], [dld_link],
  5216. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  5217. - ])
  5218. - ])
  5219. - ])
  5220. - ])
  5221. - ])
  5222. - ;;
  5223. - esac
  5224. -
  5225. - if test "x$lt_cv_dlopen" != xno; then
  5226. - enable_dlopen=yes
  5227. - else
  5228. - enable_dlopen=no
  5229. - fi
  5230. -
  5231. - case $lt_cv_dlopen in
  5232. - dlopen)
  5233. - save_CPPFLAGS="$CPPFLAGS"
  5234. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  5235. -
  5236. - save_LDFLAGS="$LDFLAGS"
  5237. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  5238. -
  5239. - save_LIBS="$LIBS"
  5240. - LIBS="$lt_cv_dlopen_libs $LIBS"
  5241. -
  5242. - AC_CACHE_CHECK([whether a program can dlopen itself],
  5243. - lt_cv_dlopen_self, [dnl
  5244. - _LT_TRY_DLOPEN_SELF(
  5245. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  5246. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  5247. - ])
  5248. -
  5249. - if test "x$lt_cv_dlopen_self" = xyes; then
  5250. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  5251. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  5252. - lt_cv_dlopen_self_static, [dnl
  5253. - _LT_TRY_DLOPEN_SELF(
  5254. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  5255. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  5256. - ])
  5257. - fi
  5258. -
  5259. - CPPFLAGS="$save_CPPFLAGS"
  5260. - LDFLAGS="$save_LDFLAGS"
  5261. - LIBS="$save_LIBS"
  5262. - ;;
  5263. - esac
  5264. -
  5265. - case $lt_cv_dlopen_self in
  5266. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  5267. - *) enable_dlopen_self=unknown ;;
  5268. - esac
  5269. -
  5270. - case $lt_cv_dlopen_self_static in
  5271. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  5272. - *) enable_dlopen_self_static=unknown ;;
  5273. - esac
  5274. -fi
  5275. -_LT_DECL([dlopen_support], [enable_dlopen], [0],
  5276. - [Whether dlopen is supported])
  5277. -_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  5278. - [Whether dlopen of programs is supported])
  5279. -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  5280. - [Whether dlopen of statically linked programs is supported])
  5281. -])# LT_SYS_DLOPEN_SELF
  5282. -
  5283. -# Old name:
  5284. -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  5285. -dnl aclocal-1.4 backwards compatibility:
  5286. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  5287. -
  5288. -
  5289. -# _LT_COMPILER_C_O([TAGNAME])
  5290. -# ---------------------------
  5291. -# Check to see if options -c and -o are simultaneously supported by compiler.
  5292. -# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  5293. -m4_defun([_LT_COMPILER_C_O],
  5294. -[m4_require([_LT_DECL_SED])dnl
  5295. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5296. -m4_require([_LT_TAG_COMPILER])dnl
  5297. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  5298. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  5299. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  5300. - $RM -r conftest 2>/dev/null
  5301. - mkdir conftest
  5302. - cd conftest
  5303. - mkdir out
  5304. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5305. -
  5306. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  5307. - # Insert the option either (1) after the last *FLAGS variable, or
  5308. - # (2) before a word containing "conftest.", or (3) at the end.
  5309. - # Note that $ac_compile itself does not contain backslashes and begins
  5310. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  5311. - lt_compile=`echo "$ac_compile" | $SED \
  5312. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5313. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  5314. - -e 's:$: $lt_compiler_flag:'`
  5315. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  5316. - (eval "$lt_compile" 2>out/conftest.err)
  5317. - ac_status=$?
  5318. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  5319. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  5320. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5321. - then
  5322. - # The compiler can only warn and ignore the option if not recognized
  5323. - # So say no if there are warnings
  5324. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5325. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5326. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5327. - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5328. - fi
  5329. - fi
  5330. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  5331. - $RM conftest*
  5332. - # SGI C++ compiler will create directory out/ii_files/ for
  5333. - # template instantiation
  5334. - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  5335. - $RM out/* && rmdir out
  5336. - cd ..
  5337. - $RM -r conftest
  5338. - $RM conftest*
  5339. -])
  5340. -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  5341. - [Does compiler simultaneously support -c and -o options?])
  5342. -])# _LT_COMPILER_C_O
  5343. -
  5344. -
  5345. -# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  5346. -# ----------------------------------
  5347. -# Check to see if we can do hard links to lock some files if needed
  5348. -m4_defun([_LT_COMPILER_FILE_LOCKS],
  5349. -[m4_require([_LT_ENABLE_LOCK])dnl
  5350. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5351. -_LT_COMPILER_C_O([$1])
  5352. -
  5353. -hard_links="nottested"
  5354. -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  5355. - # do not overwrite the value of need_locks provided by the user
  5356. - AC_MSG_CHECKING([if we can lock with hard links])
  5357. - hard_links=yes
  5358. - $RM conftest*
  5359. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5360. - touch conftest.a
  5361. - ln conftest.a conftest.b 2>&5 || hard_links=no
  5362. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5363. - AC_MSG_RESULT([$hard_links])
  5364. - if test "$hard_links" = no; then
  5365. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  5366. - need_locks=warn
  5367. - fi
  5368. -else
  5369. - need_locks=no
  5370. -fi
  5371. -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  5372. -])# _LT_COMPILER_FILE_LOCKS
  5373. -
  5374. -
  5375. -# _LT_CHECK_OBJDIR
  5376. -# ----------------
  5377. -m4_defun([_LT_CHECK_OBJDIR],
  5378. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  5379. -[rm -f .libs 2>/dev/null
  5380. -mkdir .libs 2>/dev/null
  5381. -if test -d .libs; then
  5382. - lt_cv_objdir=.libs
  5383. -else
  5384. - # MS-DOS does not allow filenames that begin with a dot.
  5385. - lt_cv_objdir=_libs
  5386. -fi
  5387. -rmdir .libs 2>/dev/null])
  5388. -objdir=$lt_cv_objdir
  5389. -_LT_DECL([], [objdir], [0],
  5390. - [The name of the directory that contains temporary libtool files])dnl
  5391. -m4_pattern_allow([LT_OBJDIR])dnl
  5392. -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  5393. - [Define to the sub-directory in which libtool stores uninstalled libraries.])
  5394. -])# _LT_CHECK_OBJDIR
  5395. -
  5396. -
  5397. -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  5398. -# --------------------------------------
  5399. -# Check hardcoding attributes.
  5400. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  5401. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  5402. -_LT_TAGVAR(hardcode_action, $1)=
  5403. -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  5404. - test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  5405. - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  5406. -
  5407. - # We can hardcode non-existent directories.
  5408. - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  5409. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5410. - # have to relink, otherwise we might link with an installed library
  5411. - # when we should be linking with a yet-to-be-installed one
  5412. - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  5413. - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  5414. - # Linking always hardcodes the temporary library directory.
  5415. - _LT_TAGVAR(hardcode_action, $1)=relink
  5416. - else
  5417. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5418. - _LT_TAGVAR(hardcode_action, $1)=immediate
  5419. - fi
  5420. -else
  5421. - # We cannot hardcode anything, or else we can only hardcode existing
  5422. - # directories.
  5423. - _LT_TAGVAR(hardcode_action, $1)=unsupported
  5424. -fi
  5425. -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  5426. -
  5427. -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  5428. - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  5429. - # Fast installation is not supported
  5430. - enable_fast_install=no
  5431. -elif test "$shlibpath_overrides_runpath" = yes ||
  5432. - test "$enable_shared" = no; then
  5433. - # Fast installation is not necessary
  5434. - enable_fast_install=needless
  5435. -fi
  5436. -_LT_TAGDECL([], [hardcode_action], [0],
  5437. - [How to hardcode a shared library path into an executable])
  5438. -])# _LT_LINKER_HARDCODE_LIBPATH
  5439. -
  5440. -
  5441. -# _LT_CMD_STRIPLIB
  5442. -# ----------------
  5443. -m4_defun([_LT_CMD_STRIPLIB],
  5444. -[m4_require([_LT_DECL_EGREP])
  5445. -striplib=
  5446. -old_striplib=
  5447. -AC_MSG_CHECKING([whether stripping libraries is possible])
  5448. -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  5449. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5450. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5451. - AC_MSG_RESULT([yes])
  5452. -else
  5453. -# FIXME - insert some real tests, host_os isn't really good enough
  5454. - case $host_os in
  5455. - darwin*)
  5456. - if test -n "$STRIP" ; then
  5457. - striplib="$STRIP -x"
  5458. - old_striplib="$STRIP -S"
  5459. - AC_MSG_RESULT([yes])
  5460. - else
  5461. - AC_MSG_RESULT([no])
  5462. - fi
  5463. - ;;
  5464. - *)
  5465. - AC_MSG_RESULT([no])
  5466. - ;;
  5467. - esac
  5468. -fi
  5469. -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  5470. -_LT_DECL([], [striplib], [1])
  5471. -])# _LT_CMD_STRIPLIB
  5472. -
  5473. -
  5474. -# _LT_SYS_DYNAMIC_LINKER([TAG])
  5475. -# -----------------------------
  5476. -# PORTME Fill in your ld.so characteristics
  5477. -m4_defun([_LT_SYS_DYNAMIC_LINKER],
  5478. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5479. -m4_require([_LT_DECL_EGREP])dnl
  5480. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5481. -m4_require([_LT_DECL_OBJDUMP])dnl
  5482. -m4_require([_LT_DECL_SED])dnl
  5483. -AC_MSG_CHECKING([dynamic linker characteristics])
  5484. -m4_if([$1],
  5485. - [], [
  5486. -if test "$GCC" = yes; then
  5487. - case $host_os in
  5488. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  5489. - *) lt_awk_arg="/^libraries:/" ;;
  5490. - esac
  5491. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  5492. - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  5493. - # if the path contains ";" then we assume it to be the separator
  5494. - # otherwise default to the standard path separator (i.e. ":") - it is
  5495. - # assumed that no part of a normal pathname contains ";" but that should
  5496. - # okay in the real world where ";" in dirpaths is itself problematic.
  5497. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  5498. - else
  5499. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  5500. - fi
  5501. - # Ok, now we have the path, separated by spaces, we can step through it
  5502. - # and add multilib dir if necessary.
  5503. - lt_tmp_lt_search_path_spec=
  5504. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  5505. - for lt_sys_path in $lt_search_path_spec; do
  5506. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  5507. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  5508. - else
  5509. - test -d "$lt_sys_path" && \
  5510. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  5511. - fi
  5512. - done
  5513. - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  5514. -BEGIN {RS=" "; FS="/|\n";} {
  5515. - lt_foo="";
  5516. - lt_count=0;
  5517. - for (lt_i = NF; lt_i > 0; lt_i--) {
  5518. - if ($lt_i != "" && $lt_i != ".") {
  5519. - if ($lt_i == "..") {
  5520. - lt_count++;
  5521. - } else {
  5522. - if (lt_count == 0) {
  5523. - lt_foo="/" $lt_i lt_foo;
  5524. - } else {
  5525. - lt_count--;
  5526. - }
  5527. - }
  5528. - }
  5529. - }
  5530. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  5531. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  5532. -}'`
  5533. - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  5534. -else
  5535. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5536. -fi])
  5537. -library_names_spec=
  5538. -libname_spec='lib$name'
  5539. -soname_spec=
  5540. -shrext_cmds=".so"
  5541. -postinstall_cmds=
  5542. -postuninstall_cmds=
  5543. -finish_cmds=
  5544. -finish_eval=
  5545. -shlibpath_var=
  5546. -shlibpath_overrides_runpath=unknown
  5547. -version_type=none
  5548. -dynamic_linker="$host_os ld.so"
  5549. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5550. -need_lib_prefix=unknown
  5551. -hardcode_into_libs=no
  5552. -
  5553. -# when you set need_version to no, make sure it does not cause -set_version
  5554. -# flags to be left without arguments
  5555. -need_version=unknown
  5556. -
  5557. -case $host_os in
  5558. -aix3*)
  5559. - version_type=linux
  5560. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  5561. - shlibpath_var=LIBPATH
  5562. -
  5563. - # AIX 3 has no versioning support, so we append a major version to the name.
  5564. - soname_spec='${libname}${release}${shared_ext}$major'
  5565. - ;;
  5566. -
  5567. -aix[[4-9]]*)
  5568. - version_type=linux
  5569. - need_lib_prefix=no
  5570. - need_version=no
  5571. - hardcode_into_libs=yes
  5572. - if test "$host_cpu" = ia64; then
  5573. - # AIX 5 supports IA64
  5574. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  5575. - shlibpath_var=LD_LIBRARY_PATH
  5576. - else
  5577. - # With GCC up to 2.95.x, collect2 would create an import file
  5578. - # for dependence libraries. The import file would start with
  5579. - # the line `#! .'. This would cause the generated library to
  5580. - # depend on `.', always an invalid library. This was fixed in
  5581. - # development snapshots of GCC prior to 3.0.
  5582. - case $host_os in
  5583. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  5584. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5585. - echo ' yes '
  5586. - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  5587. - :
  5588. - else
  5589. - can_build_shared=no
  5590. - fi
  5591. - ;;
  5592. - esac
  5593. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  5594. - # soname into executable. Probably we can add versioning support to
  5595. - # collect2, so additional links can be useful in future.
  5596. - if test "$aix_use_runtimelinking" = yes; then
  5597. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5598. - # instead of lib<name>.a to let people know that these are not
  5599. - # typical AIX shared libraries.
  5600. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5601. - else
  5602. - # We preserve .a as extension for shared libraries through AIX4.2
  5603. - # and later when we are not doing run time linking.
  5604. - library_names_spec='${libname}${release}.a $libname.a'
  5605. - soname_spec='${libname}${release}${shared_ext}$major'
  5606. - fi
  5607. - shlibpath_var=LIBPATH
  5608. - fi
  5609. - ;;
  5610. -
  5611. -amigaos*)
  5612. - case $host_cpu in
  5613. - powerpc)
  5614. - # Since July 2007 AmigaOS4 officially supports .so libraries.
  5615. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  5616. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5617. - ;;
  5618. - m68k)
  5619. - library_names_spec='$libname.ixlibrary $libname.a'
  5620. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5621. - 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'
  5622. - ;;
  5623. - esac
  5624. - ;;
  5625. -
  5626. -beos*)
  5627. - library_names_spec='${libname}${shared_ext}'
  5628. - dynamic_linker="$host_os ld.so"
  5629. - shlibpath_var=LIBRARY_PATH
  5630. - ;;
  5631. -
  5632. -bsdi[[45]]*)
  5633. - version_type=linux
  5634. - need_version=no
  5635. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5636. - soname_spec='${libname}${release}${shared_ext}$major'
  5637. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5638. - shlibpath_var=LD_LIBRARY_PATH
  5639. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5640. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5641. - # the default ld.so.conf also contains /usr/contrib/lib and
  5642. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5643. - # libtool to hard-code these into programs
  5644. - ;;
  5645. -
  5646. -cygwin* | mingw* | pw32* | cegcc*)
  5647. - version_type=windows
  5648. - shrext_cmds=".dll"
  5649. - need_version=no
  5650. - need_lib_prefix=no
  5651. -
  5652. - case $GCC,$host_os in
  5653. - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  5654. - library_names_spec='$libname.dll.a'
  5655. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  5656. - postinstall_cmds='base_file=`basename \${file}`~
  5657. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  5658. - dldir=$destdir/`dirname \$dlpath`~
  5659. - test -d \$dldir || mkdir -p \$dldir~
  5660. - $install_prog $dir/$dlname \$dldir/$dlname~
  5661. - chmod a+x \$dldir/$dlname~
  5662. - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  5663. - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  5664. - fi'
  5665. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5666. - dlpath=$dir/\$dldll~
  5667. - $RM \$dlpath'
  5668. - shlibpath_overrides_runpath=yes
  5669. -
  5670. - case $host_os in
  5671. - cygwin*)
  5672. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  5673. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5674. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  5675. - ;;
  5676. - mingw* | cegcc*)
  5677. - # MinGW DLLs use traditional 'lib' prefix
  5678. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5679. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  5680. - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  5681. - # It is most probably a Windows format PATH printed by
  5682. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  5683. - # path with ; separators, and with drive letters. We can handle the
  5684. - # drive letters (cygwin fileutils understands them), so leave them,
  5685. - # especially as we might pass files found there to a mingw objdump,
  5686. - # which wouldn't understand a cygwinified path. Ahh.
  5687. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  5688. - else
  5689. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  5690. - fi
  5691. - ;;
  5692. - pw32*)
  5693. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  5694. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5695. - ;;
  5696. - esac
  5697. - ;;
  5698. -
  5699. - *)
  5700. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  5701. - ;;
  5702. - esac
  5703. - dynamic_linker='Win32 ld.exe'
  5704. - # FIXME: first we should search . and the directory the executable is in
  5705. - shlibpath_var=PATH
  5706. - ;;
  5707. -
  5708. -darwin* | rhapsody*)
  5709. - dynamic_linker="$host_os dyld"
  5710. - version_type=darwin
  5711. - need_lib_prefix=no
  5712. - need_version=no
  5713. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  5714. - soname_spec='${libname}${release}${major}$shared_ext'
  5715. - shlibpath_overrides_runpath=yes
  5716. - shlibpath_var=DYLD_LIBRARY_PATH
  5717. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  5718. -m4_if([$1], [],[
  5719. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  5720. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  5721. - ;;
  5722. -
  5723. -dgux*)
  5724. - version_type=linux
  5725. - need_lib_prefix=no
  5726. - need_version=no
  5727. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  5728. - soname_spec='${libname}${release}${shared_ext}$major'
  5729. - shlibpath_var=LD_LIBRARY_PATH
  5730. - ;;
  5731. -
  5732. -freebsd1*)
  5733. - dynamic_linker=no
  5734. - ;;
  5735. -
  5736. -freebsd* | dragonfly*)
  5737. - # DragonFly does not have aout. When/if they implement a new
  5738. - # versioning mechanism, adjust this.
  5739. - if test -x /usr/bin/objformat; then
  5740. - objformat=`/usr/bin/objformat`
  5741. - else
  5742. - case $host_os in
  5743. - freebsd[[123]]*) objformat=aout ;;
  5744. - *) objformat=elf ;;
  5745. - esac
  5746. - fi
  5747. - version_type=freebsd-$objformat
  5748. - case $version_type in
  5749. - freebsd-elf*)
  5750. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  5751. - need_version=no
  5752. - need_lib_prefix=no
  5753. - ;;
  5754. - freebsd-*)
  5755. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  5756. - need_version=yes
  5757. - ;;
  5758. - esac
  5759. - shlibpath_var=LD_LIBRARY_PATH
  5760. - case $host_os in
  5761. - freebsd2*)
  5762. - shlibpath_overrides_runpath=yes
  5763. - ;;
  5764. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  5765. - shlibpath_overrides_runpath=yes
  5766. - hardcode_into_libs=yes
  5767. - ;;
  5768. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  5769. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  5770. - shlibpath_overrides_runpath=no
  5771. - hardcode_into_libs=yes
  5772. - ;;
  5773. - *) # from 4.6 on, and DragonFly
  5774. - shlibpath_overrides_runpath=yes
  5775. - hardcode_into_libs=yes
  5776. - ;;
  5777. - esac
  5778. - ;;
  5779. -
  5780. -gnu*)
  5781. - version_type=linux
  5782. - need_lib_prefix=no
  5783. - need_version=no
  5784. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  5785. - soname_spec='${libname}${release}${shared_ext}$major'
  5786. - shlibpath_var=LD_LIBRARY_PATH
  5787. - hardcode_into_libs=yes
  5788. - ;;
  5789. -
  5790. -hpux9* | hpux10* | hpux11*)
  5791. - # Give a soname corresponding to the major version so that dld.sl refuses to
  5792. - # link against other versions.
  5793. - version_type=sunos
  5794. - need_lib_prefix=no
  5795. - need_version=no
  5796. - case $host_cpu in
  5797. - ia64*)
  5798. - shrext_cmds='.so'
  5799. - hardcode_into_libs=yes
  5800. - dynamic_linker="$host_os dld.so"
  5801. - shlibpath_var=LD_LIBRARY_PATH
  5802. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  5803. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5804. - soname_spec='${libname}${release}${shared_ext}$major'
  5805. - if test "X$HPUX_IA64_MODE" = X32; then
  5806. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  5807. - else
  5808. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  5809. - fi
  5810. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  5811. - ;;
  5812. - hppa*64*)
  5813. - shrext_cmds='.sl'
  5814. - hardcode_into_libs=yes
  5815. - dynamic_linker="$host_os dld.sl"
  5816. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  5817. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  5818. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5819. - soname_spec='${libname}${release}${shared_ext}$major'
  5820. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  5821. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  5822. - ;;
  5823. - *)
  5824. - shrext_cmds='.sl'
  5825. - dynamic_linker="$host_os dld.sl"
  5826. - shlibpath_var=SHLIB_PATH
  5827. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5828. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5829. - soname_spec='${libname}${release}${shared_ext}$major'
  5830. - ;;
  5831. - esac
  5832. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5833. - postinstall_cmds='chmod 555 $lib'
  5834. - ;;
  5835. -
  5836. -interix[[3-9]]*)
  5837. - version_type=linux
  5838. - need_lib_prefix=no
  5839. - need_version=no
  5840. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  5841. - soname_spec='${libname}${release}${shared_ext}$major'
  5842. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  5843. - shlibpath_var=LD_LIBRARY_PATH
  5844. - shlibpath_overrides_runpath=no
  5845. - hardcode_into_libs=yes
  5846. - ;;
  5847. -
  5848. -irix5* | irix6* | nonstopux*)
  5849. - case $host_os in
  5850. - nonstopux*) version_type=nonstopux ;;
  5851. - *)
  5852. - if test "$lt_cv_prog_gnu_ld" = yes; then
  5853. - version_type=linux
  5854. - else
  5855. - version_type=irix
  5856. - fi ;;
  5857. - esac
  5858. - need_lib_prefix=no
  5859. - need_version=no
  5860. - soname_spec='${libname}${release}${shared_ext}$major'
  5861. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  5862. - case $host_os in
  5863. - irix5* | nonstopux*)
  5864. - libsuff= shlibsuff=
  5865. - ;;
  5866. - *)
  5867. - case $LD in # libtool.m4 will add one of these switches to LD
  5868. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  5869. - libsuff= shlibsuff= libmagic=32-bit;;
  5870. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  5871. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  5872. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  5873. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5874. - *) libsuff= shlibsuff= libmagic=never-match;;
  5875. - esac
  5876. - ;;
  5877. - esac
  5878. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5879. - shlibpath_overrides_runpath=no
  5880. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5881. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5882. - hardcode_into_libs=yes
  5883. - ;;
  5884. -
  5885. -# No shared lib support for Linux oldld, aout, or coff.
  5886. -linux*oldld* | linux*aout* | linux*coff*)
  5887. - dynamic_linker=no
  5888. - ;;
  5889. -
  5890. -# This must be Linux ELF.
  5891. -linux* | k*bsd*-gnu)
  5892. - version_type=linux
  5893. - need_lib_prefix=no
  5894. - need_version=no
  5895. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5896. - soname_spec='${libname}${release}${shared_ext}$major'
  5897. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5898. - shlibpath_var=LD_LIBRARY_PATH
  5899. - shlibpath_overrides_runpath=no
  5900. - # Some binutils ld are patched to set DT_RUNPATH
  5901. - save_LDFLAGS=$LDFLAGS
  5902. - save_libdir=$libdir
  5903. - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  5904. - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  5905. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  5906. - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  5907. - [shlibpath_overrides_runpath=yes])])
  5908. - LDFLAGS=$save_LDFLAGS
  5909. - libdir=$save_libdir
  5910. -
  5911. - # This implies no fast_install, which is unacceptable.
  5912. - # Some rework will be needed to allow for fast_install
  5913. - # before this can be enabled.
  5914. - hardcode_into_libs=yes
  5915. -
  5916. - # Append ld.so.conf contents to the search path
  5917. - if test -f /etc/ld.so.conf; then
  5918. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  5919. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  5920. - fi
  5921. -
  5922. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  5923. - # powerpc, because MkLinux only supported shared libraries with the
  5924. - # GNU dynamic linker. Since this was broken with cross compilers,
  5925. - # most powerpc-linux boxes support dynamic linking these days and
  5926. - # people can always --disable-shared, the test was removed, and we
  5927. - # assume the GNU/Linux dynamic linker is in use.
  5928. - dynamic_linker='GNU/Linux ld.so'
  5929. - ;;
  5930. -
  5931. -netbsd*)
  5932. - version_type=sunos
  5933. - need_lib_prefix=no
  5934. - need_version=no
  5935. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5936. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  5937. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5938. - dynamic_linker='NetBSD (a.out) ld.so'
  5939. - else
  5940. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  5941. - soname_spec='${libname}${release}${shared_ext}$major'
  5942. - dynamic_linker='NetBSD ld.elf_so'
  5943. - fi
  5944. - shlibpath_var=LD_LIBRARY_PATH
  5945. - shlibpath_overrides_runpath=yes
  5946. - hardcode_into_libs=yes
  5947. - ;;
  5948. -
  5949. -newsos6)
  5950. - version_type=linux
  5951. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5952. - shlibpath_var=LD_LIBRARY_PATH
  5953. - shlibpath_overrides_runpath=yes
  5954. - ;;
  5955. -
  5956. -*nto* | *qnx*)
  5957. - version_type=qnx
  5958. - need_lib_prefix=no
  5959. - need_version=no
  5960. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5961. - soname_spec='${libname}${release}${shared_ext}$major'
  5962. - shlibpath_var=LD_LIBRARY_PATH
  5963. - shlibpath_overrides_runpath=no
  5964. - hardcode_into_libs=yes
  5965. - dynamic_linker='ldqnx.so'
  5966. - ;;
  5967. -
  5968. -openbsd*)
  5969. - version_type=sunos
  5970. - sys_lib_dlsearch_path_spec="/usr/lib"
  5971. - need_lib_prefix=no
  5972. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  5973. - case $host_os in
  5974. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  5975. - *) need_version=no ;;
  5976. - esac
  5977. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  5978. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5979. - shlibpath_var=LD_LIBRARY_PATH
  5980. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5981. - case $host_os in
  5982. - openbsd2.[[89]] | openbsd2.[[89]].*)
  5983. - shlibpath_overrides_runpath=no
  5984. - ;;
  5985. - *)
  5986. - shlibpath_overrides_runpath=yes
  5987. - ;;
  5988. - esac
  5989. - else
  5990. - shlibpath_overrides_runpath=yes
  5991. - fi
  5992. - ;;
  5993. -
  5994. -os2*)
  5995. - libname_spec='$name'
  5996. - shrext_cmds=".dll"
  5997. - need_lib_prefix=no
  5998. - library_names_spec='$libname${shared_ext} $libname.a'
  5999. - dynamic_linker='OS/2 ld.exe'
  6000. - shlibpath_var=LIBPATH
  6001. - ;;
  6002. -
  6003. -osf3* | osf4* | osf5*)
  6004. - version_type=osf
  6005. - need_lib_prefix=no
  6006. - need_version=no
  6007. - soname_spec='${libname}${release}${shared_ext}$major'
  6008. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6009. - shlibpath_var=LD_LIBRARY_PATH
  6010. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6011. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6012. - ;;
  6013. -
  6014. -rdos*)
  6015. - dynamic_linker=no
  6016. - ;;
  6017. -
  6018. -solaris*)
  6019. - version_type=linux
  6020. - need_lib_prefix=no
  6021. - need_version=no
  6022. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6023. - soname_spec='${libname}${release}${shared_ext}$major'
  6024. - shlibpath_var=LD_LIBRARY_PATH
  6025. - shlibpath_overrides_runpath=yes
  6026. - hardcode_into_libs=yes
  6027. - # ldd complains unless libraries are executable
  6028. - postinstall_cmds='chmod +x $lib'
  6029. - ;;
  6030. -
  6031. -sunos4*)
  6032. - version_type=sunos
  6033. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6034. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6035. - shlibpath_var=LD_LIBRARY_PATH
  6036. - shlibpath_overrides_runpath=yes
  6037. - if test "$with_gnu_ld" = yes; then
  6038. - need_lib_prefix=no
  6039. - fi
  6040. - need_version=yes
  6041. - ;;
  6042. -
  6043. -sysv4 | sysv4.3*)
  6044. - version_type=linux
  6045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6046. - soname_spec='${libname}${release}${shared_ext}$major'
  6047. - shlibpath_var=LD_LIBRARY_PATH
  6048. - case $host_vendor in
  6049. - sni)
  6050. - shlibpath_overrides_runpath=no
  6051. - need_lib_prefix=no
  6052. - runpath_var=LD_RUN_PATH
  6053. - ;;
  6054. - siemens)
  6055. - need_lib_prefix=no
  6056. - ;;
  6057. - motorola)
  6058. - need_lib_prefix=no
  6059. - need_version=no
  6060. - shlibpath_overrides_runpath=no
  6061. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6062. - ;;
  6063. - esac
  6064. - ;;
  6065. -
  6066. -sysv4*MP*)
  6067. - if test -d /usr/nec ;then
  6068. - version_type=linux
  6069. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6070. - soname_spec='$libname${shared_ext}.$major'
  6071. - shlibpath_var=LD_LIBRARY_PATH
  6072. - fi
  6073. - ;;
  6074. -
  6075. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6076. - version_type=freebsd-elf
  6077. - need_lib_prefix=no
  6078. - need_version=no
  6079. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6080. - soname_spec='${libname}${release}${shared_ext}$major'
  6081. - shlibpath_var=LD_LIBRARY_PATH
  6082. - shlibpath_overrides_runpath=yes
  6083. - hardcode_into_libs=yes
  6084. - if test "$with_gnu_ld" = yes; then
  6085. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  6086. - else
  6087. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  6088. - case $host_os in
  6089. - sco3.2v5*)
  6090. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  6091. - ;;
  6092. - esac
  6093. - fi
  6094. - sys_lib_dlsearch_path_spec='/usr/lib'
  6095. - ;;
  6096. -
  6097. -tpf*)
  6098. - # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  6099. - version_type=linux
  6100. - need_lib_prefix=no
  6101. - need_version=no
  6102. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6103. - shlibpath_var=LD_LIBRARY_PATH
  6104. - shlibpath_overrides_runpath=no
  6105. - hardcode_into_libs=yes
  6106. - ;;
  6107. -
  6108. -uts4*)
  6109. - version_type=linux
  6110. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6111. - soname_spec='${libname}${release}${shared_ext}$major'
  6112. - shlibpath_var=LD_LIBRARY_PATH
  6113. - ;;
  6114. -
  6115. -*)
  6116. - dynamic_linker=no
  6117. - ;;
  6118. -esac
  6119. -AC_MSG_RESULT([$dynamic_linker])
  6120. -test "$dynamic_linker" = no && can_build_shared=no
  6121. -
  6122. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6123. -if test "$GCC" = yes; then
  6124. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6125. -fi
  6126. -
  6127. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  6128. - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  6129. -fi
  6130. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  6131. - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  6132. -fi
  6133. -
  6134. -_LT_DECL([], [variables_saved_for_relink], [1],
  6135. - [Variables whose values should be saved in libtool wrapper scripts and
  6136. - restored at link time])
  6137. -_LT_DECL([], [need_lib_prefix], [0],
  6138. - [Do we need the "lib" prefix for modules?])
  6139. -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  6140. -_LT_DECL([], [version_type], [0], [Library versioning type])
  6141. -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  6142. -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  6143. -_LT_DECL([], [shlibpath_overrides_runpath], [0],
  6144. - [Is shlibpath searched before the hard-coded library search path?])
  6145. -_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  6146. -_LT_DECL([], [library_names_spec], [1],
  6147. - [[List of archive names. First name is the real one, the rest are links.
  6148. - The last name is the one that the linker finds with -lNAME]])
  6149. -_LT_DECL([], [soname_spec], [1],
  6150. - [[The coded name of the library, if different from the real name]])
  6151. -_LT_DECL([], [postinstall_cmds], [2],
  6152. - [Command to use after installation of a shared archive])
  6153. -_LT_DECL([], [postuninstall_cmds], [2],
  6154. - [Command to use after uninstallation of a shared archive])
  6155. -_LT_DECL([], [finish_cmds], [2],
  6156. - [Commands used to finish a libtool library installation in a directory])
  6157. -_LT_DECL([], [finish_eval], [1],
  6158. - [[As "finish_cmds", except a single script fragment to be evaled but
  6159. - not shown]])
  6160. -_LT_DECL([], [hardcode_into_libs], [0],
  6161. - [Whether we should hardcode library paths into libraries])
  6162. -_LT_DECL([], [sys_lib_search_path_spec], [2],
  6163. - [Compile-time system search path for libraries])
  6164. -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  6165. - [Run-time system search path for libraries])
  6166. -])# _LT_SYS_DYNAMIC_LINKER
  6167. -
  6168. -
  6169. -# _LT_PATH_TOOL_PREFIX(TOOL)
  6170. -# --------------------------
  6171. -# find a file program which can recognize shared library
  6172. -AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  6173. -[m4_require([_LT_DECL_EGREP])dnl
  6174. -AC_MSG_CHECKING([for $1])
  6175. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  6176. -[case $MAGIC_CMD in
  6177. -[[\\/*] | ?:[\\/]*])
  6178. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6179. - ;;
  6180. -*)
  6181. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  6182. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6183. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  6184. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  6185. -dnl not every word. This closes a longstanding sh security hole.
  6186. - ac_dummy="m4_if([$2], , $PATH, [$2])"
  6187. - for ac_dir in $ac_dummy; do
  6188. - IFS="$lt_save_ifs"
  6189. - test -z "$ac_dir" && ac_dir=.
  6190. - if test -f $ac_dir/$1; then
  6191. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  6192. - if test -n "$file_magic_test_file"; then
  6193. - case $deplibs_check_method in
  6194. - "file_magic "*)
  6195. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6196. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6197. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6198. - $EGREP "$file_magic_regex" > /dev/null; then
  6199. - :
  6200. - else
  6201. - cat <<_LT_EOF 1>&2
  6202. -
  6203. -*** Warning: the command libtool uses to detect shared libraries,
  6204. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  6205. -*** The result is that libtool may fail to recognize shared libraries
  6206. -*** as such. This will affect the creation of libtool libraries that
  6207. -*** depend on shared libraries, but programs linked with such libtool
  6208. -*** libraries will work regardless of this problem. Nevertheless, you
  6209. -*** may want to report the problem to your system manager and/or to
  6210. -*** bug-libtool@gnu.org
  6211. -
  6212. -_LT_EOF
  6213. - fi ;;
  6214. - esac
  6215. - fi
  6216. - break
  6217. - fi
  6218. - done
  6219. - IFS="$lt_save_ifs"
  6220. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  6221. - ;;
  6222. -esac])
  6223. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6224. -if test -n "$MAGIC_CMD"; then
  6225. - AC_MSG_RESULT($MAGIC_CMD)
  6226. -else
  6227. - AC_MSG_RESULT(no)
  6228. -fi
  6229. -_LT_DECL([], [MAGIC_CMD], [0],
  6230. - [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  6231. -])# _LT_PATH_TOOL_PREFIX
  6232. -
  6233. -# Old name:
  6234. -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  6235. -dnl aclocal-1.4 backwards compatibility:
  6236. -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  6237. -
  6238. -
  6239. -# _LT_PATH_MAGIC
  6240. -# --------------
  6241. -# find a file program which can recognize a shared library
  6242. -m4_defun([_LT_PATH_MAGIC],
  6243. -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  6244. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  6245. - if test -n "$ac_tool_prefix"; then
  6246. - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  6247. - else
  6248. - MAGIC_CMD=:
  6249. - fi
  6250. -fi
  6251. -])# _LT_PATH_MAGIC
  6252. -
  6253. -
  6254. -# LT_PATH_LD
  6255. -# ----------
  6256. -# find the pathname to the GNU or non-GNU linker
  6257. -AC_DEFUN([LT_PATH_LD],
  6258. -[AC_REQUIRE([AC_PROG_CC])dnl
  6259. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6260. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  6261. -m4_require([_LT_DECL_SED])dnl
  6262. -m4_require([_LT_DECL_EGREP])dnl
  6263. -
  6264. -AC_ARG_WITH([gnu-ld],
  6265. - [AS_HELP_STRING([--with-gnu-ld],
  6266. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  6267. - [test "$withval" = no || with_gnu_ld=yes],
  6268. - [with_gnu_ld=no])dnl
  6269. -
  6270. -ac_prog=ld
  6271. -if test "$GCC" = yes; then
  6272. - # Check if gcc -print-prog-name=ld gives a path.
  6273. - AC_MSG_CHECKING([for ld used by $CC])
  6274. - case $host in
  6275. - *-*-mingw*)
  6276. - # gcc leaves a trailing carriage return which upsets mingw
  6277. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6278. - *)
  6279. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6280. - esac
  6281. - case $ac_prog in
  6282. - # Accept absolute paths.
  6283. - [[\\/]]* | ?:[[\\/]]*)
  6284. - re_direlt='/[[^/]][[^/]]*/\.\./'
  6285. - # Canonicalize the pathname of ld
  6286. - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6287. - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6288. - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6289. - done
  6290. - test -z "$LD" && LD="$ac_prog"
  6291. - ;;
  6292. - "")
  6293. - # If it fails, then pretend we aren't using GCC.
  6294. - ac_prog=ld
  6295. - ;;
  6296. - *)
  6297. - # If it is relative, then search for the first ld in PATH.
  6298. - with_gnu_ld=unknown
  6299. - ;;
  6300. - esac
  6301. -elif test "$with_gnu_ld" = yes; then
  6302. - AC_MSG_CHECKING([for GNU ld])
  6303. -else
  6304. - AC_MSG_CHECKING([for non-GNU ld])
  6305. -fi
  6306. -AC_CACHE_VAL(lt_cv_path_LD,
  6307. -[if test -z "$LD"; then
  6308. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6309. - for ac_dir in $PATH; do
  6310. - IFS="$lt_save_ifs"
  6311. - test -z "$ac_dir" && ac_dir=.
  6312. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6313. - lt_cv_path_LD="$ac_dir/$ac_prog"
  6314. - # Check to see if the program is GNU ld. I'd rather use --version,
  6315. - # but apparently some variants of GNU ld only accept -v.
  6316. - # Break only if it was the GNU/non-GNU ld that we prefer.
  6317. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6318. - *GNU* | *'with BFD'*)
  6319. - test "$with_gnu_ld" != no && break
  6320. - ;;
  6321. - *)
  6322. - test "$with_gnu_ld" != yes && break
  6323. - ;;
  6324. - esac
  6325. - fi
  6326. - done
  6327. - IFS="$lt_save_ifs"
  6328. -else
  6329. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6330. -fi])
  6331. -LD="$lt_cv_path_LD"
  6332. -if test -n "$LD"; then
  6333. - AC_MSG_RESULT($LD)
  6334. -else
  6335. - AC_MSG_RESULT(no)
  6336. -fi
  6337. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  6338. -_LT_PATH_LD_GNU
  6339. -AC_SUBST([LD])
  6340. -
  6341. -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  6342. -])# LT_PATH_LD
  6343. -
  6344. -# Old names:
  6345. -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  6346. -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  6347. -dnl aclocal-1.4 backwards compatibility:
  6348. -dnl AC_DEFUN([AM_PROG_LD], [])
  6349. -dnl AC_DEFUN([AC_PROG_LD], [])
  6350. -
  6351. -
  6352. -# _LT_PATH_LD_GNU
  6353. -#- --------------
  6354. -m4_defun([_LT_PATH_LD_GNU],
  6355. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  6356. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  6357. -case `$LD -v 2>&1 </dev/null` in
  6358. -*GNU* | *'with BFD'*)
  6359. - lt_cv_prog_gnu_ld=yes
  6360. - ;;
  6361. -*)
  6362. - lt_cv_prog_gnu_ld=no
  6363. - ;;
  6364. -esac])
  6365. -with_gnu_ld=$lt_cv_prog_gnu_ld
  6366. -])# _LT_PATH_LD_GNU
  6367. -
  6368. -
  6369. -# _LT_CMD_RELOAD
  6370. -# --------------
  6371. -# find reload flag for linker
  6372. -# -- PORTME Some linkers may need a different reload flag.
  6373. -m4_defun([_LT_CMD_RELOAD],
  6374. -[AC_CACHE_CHECK([for $LD option to reload object files],
  6375. - lt_cv_ld_reload_flag,
  6376. - [lt_cv_ld_reload_flag='-r'])
  6377. -reload_flag=$lt_cv_ld_reload_flag
  6378. -case $reload_flag in
  6379. -"" | " "*) ;;
  6380. -*) reload_flag=" $reload_flag" ;;
  6381. -esac
  6382. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6383. -case $host_os in
  6384. - darwin*)
  6385. - if test "$GCC" = yes; then
  6386. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6387. - else
  6388. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6389. - fi
  6390. - ;;
  6391. -esac
  6392. -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  6393. -_LT_DECL([], [reload_cmds], [2])dnl
  6394. -])# _LT_CMD_RELOAD
  6395. -
  6396. -
  6397. -# _LT_CHECK_MAGIC_METHOD
  6398. -# ----------------------
  6399. -# how to check for library dependencies
  6400. -# -- PORTME fill in with the dynamic library characteristics
  6401. -m4_defun([_LT_CHECK_MAGIC_METHOD],
  6402. -[m4_require([_LT_DECL_EGREP])
  6403. -m4_require([_LT_DECL_OBJDUMP])
  6404. -AC_CACHE_CHECK([how to recognize dependent libraries],
  6405. -lt_cv_deplibs_check_method,
  6406. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  6407. -lt_cv_file_magic_test_file=
  6408. -lt_cv_deplibs_check_method='unknown'
  6409. -# Need to set the preceding variable on all platforms that support
  6410. -# interlibrary dependencies.
  6411. -# 'none' -- dependencies not supported.
  6412. -# `unknown' -- same as none, but documents that we really don't know.
  6413. -# 'pass_all' -- all dependencies passed with no checks.
  6414. -# 'test_compile' -- check by making test program.
  6415. -# 'file_magic [[regex]]' -- check by looking for files in library path
  6416. -# which responds to the $file_magic_cmd with a given extended regex.
  6417. -# If you have `file' or equivalent on your system and you're not sure
  6418. -# whether `pass_all' will *always* work, you probably want this one.
  6419. -
  6420. -case $host_os in
  6421. -aix[[4-9]]*)
  6422. - lt_cv_deplibs_check_method=pass_all
  6423. - ;;
  6424. -
  6425. -beos*)
  6426. - lt_cv_deplibs_check_method=pass_all
  6427. - ;;
  6428. -
  6429. -bsdi[[45]]*)
  6430. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  6431. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  6432. - lt_cv_file_magic_test_file=/shlib/libc.so
  6433. - ;;
  6434. -
  6435. -cygwin*)
  6436. - # func_win32_libid is a shell function defined in ltmain.sh
  6437. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6438. - lt_cv_file_magic_cmd='func_win32_libid'
  6439. - ;;
  6440. -
  6441. -mingw* | pw32*)
  6442. - # Base MSYS/MinGW do not provide the 'file' command needed by
  6443. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6444. - # unless we find 'file', for example because we are cross-compiling.
  6445. - if ( file / ) >/dev/null 2>&1; then
  6446. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6447. - lt_cv_file_magic_cmd='func_win32_libid'
  6448. - else
  6449. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6450. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  6451. - fi
  6452. - ;;
  6453. -
  6454. -cegcc)
  6455. - # use the weaker test based on 'objdump'. See mingw*.
  6456. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6457. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  6458. - ;;
  6459. -
  6460. -darwin* | rhapsody*)
  6461. - lt_cv_deplibs_check_method=pass_all
  6462. - ;;
  6463. -
  6464. -freebsd* | dragonfly*)
  6465. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6466. - case $host_cpu in
  6467. - i*86 )
  6468. - # Not sure whether the presence of OpenBSD here was a mistake.
  6469. - # Let's accept both of them until this is cleared up.
  6470. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  6471. - lt_cv_file_magic_cmd=/usr/bin/file
  6472. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6473. - ;;
  6474. - esac
  6475. - else
  6476. - lt_cv_deplibs_check_method=pass_all
  6477. - fi
  6478. - ;;
  6479. -
  6480. -gnu*)
  6481. - lt_cv_deplibs_check_method=pass_all
  6482. - ;;
  6483. -
  6484. -hpux10.20* | hpux11*)
  6485. - lt_cv_file_magic_cmd=/usr/bin/file
  6486. - case $host_cpu in
  6487. - ia64*)
  6488. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  6489. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6490. - ;;
  6491. - hppa*64*)
  6492. - [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]']
  6493. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6494. - ;;
  6495. - *)
  6496. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  6497. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6498. - ;;
  6499. - esac
  6500. - ;;
  6501. -
  6502. -interix[[3-9]]*)
  6503. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6504. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  6505. - ;;
  6506. -
  6507. -irix5* | irix6* | nonstopux*)
  6508. - case $LD in
  6509. - *-32|*"-32 ") libmagic=32-bit;;
  6510. - *-n32|*"-n32 ") libmagic=N32;;
  6511. - *-64|*"-64 ") libmagic=64-bit;;
  6512. - *) libmagic=never-match;;
  6513. - esac
  6514. - lt_cv_deplibs_check_method=pass_all
  6515. - ;;
  6516. -
  6517. -# This must be Linux ELF.
  6518. -linux* | k*bsd*-gnu)
  6519. - lt_cv_deplibs_check_method=pass_all
  6520. - ;;
  6521. -
  6522. -netbsd*)
  6523. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6524. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6525. - else
  6526. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  6527. - fi
  6528. - ;;
  6529. -
  6530. -newos6*)
  6531. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6532. - lt_cv_file_magic_cmd=/usr/bin/file
  6533. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6534. - ;;
  6535. -
  6536. -*nto* | *qnx*)
  6537. - lt_cv_deplibs_check_method=pass_all
  6538. - ;;
  6539. -
  6540. -openbsd*)
  6541. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6542. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6543. - else
  6544. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6545. - fi
  6546. - ;;
  6547. -
  6548. -osf3* | osf4* | osf5*)
  6549. - lt_cv_deplibs_check_method=pass_all
  6550. - ;;
  6551. -
  6552. -rdos*)
  6553. - lt_cv_deplibs_check_method=pass_all
  6554. - ;;
  6555. -
  6556. -solaris*)
  6557. - lt_cv_deplibs_check_method=pass_all
  6558. - ;;
  6559. -
  6560. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6561. - lt_cv_deplibs_check_method=pass_all
  6562. - ;;
  6563. -
  6564. -sysv4 | sysv4.3*)
  6565. - case $host_vendor in
  6566. - motorola)
  6567. - 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]]'
  6568. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6569. - ;;
  6570. - ncr)
  6571. - lt_cv_deplibs_check_method=pass_all
  6572. - ;;
  6573. - sequent)
  6574. - lt_cv_file_magic_cmd='/bin/file'
  6575. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6576. - ;;
  6577. - sni)
  6578. - lt_cv_file_magic_cmd='/bin/file'
  6579. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6580. - lt_cv_file_magic_test_file=/lib/libc.so
  6581. - ;;
  6582. - siemens)
  6583. - lt_cv_deplibs_check_method=pass_all
  6584. - ;;
  6585. - pc)
  6586. - lt_cv_deplibs_check_method=pass_all
  6587. - ;;
  6588. - esac
  6589. - ;;
  6590. -
  6591. -tpf*)
  6592. - lt_cv_deplibs_check_method=pass_all
  6593. - ;;
  6594. -esac
  6595. -])
  6596. -file_magic_cmd=$lt_cv_file_magic_cmd
  6597. -deplibs_check_method=$lt_cv_deplibs_check_method
  6598. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6599. -
  6600. -_LT_DECL([], [deplibs_check_method], [1],
  6601. - [Method to check whether dependent libraries are shared objects])
  6602. -_LT_DECL([], [file_magic_cmd], [1],
  6603. - [Command to use when deplibs_check_method == "file_magic"])
  6604. -])# _LT_CHECK_MAGIC_METHOD
  6605. -
  6606. -
  6607. -# LT_PATH_NM
  6608. -# ----------
  6609. -# find the pathname to a BSD- or MS-compatible name lister
  6610. -AC_DEFUN([LT_PATH_NM],
  6611. -[AC_REQUIRE([AC_PROG_CC])dnl
  6612. -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6613. -[if test -n "$NM"; then
  6614. - # Let the user override the test.
  6615. - lt_cv_path_NM="$NM"
  6616. -else
  6617. - lt_nm_to_check="${ac_tool_prefix}nm"
  6618. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6619. - lt_nm_to_check="$lt_nm_to_check nm"
  6620. - fi
  6621. - for lt_tmp_nm in $lt_nm_to_check; do
  6622. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6623. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6624. - IFS="$lt_save_ifs"
  6625. - test -z "$ac_dir" && ac_dir=.
  6626. - tmp_nm="$ac_dir/$lt_tmp_nm"
  6627. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6628. - # Check to see if the nm accepts a BSD-compat flag.
  6629. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6630. - # nm: unknown option "B" ignored
  6631. - # Tru64's nm complains that /dev/null is an invalid object file
  6632. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6633. - */dev/null* | *'Invalid file or object type'*)
  6634. - lt_cv_path_NM="$tmp_nm -B"
  6635. - break
  6636. - ;;
  6637. - *)
  6638. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6639. - */dev/null*)
  6640. - lt_cv_path_NM="$tmp_nm -p"
  6641. - break
  6642. - ;;
  6643. - *)
  6644. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6645. - continue # so that we can try to find one that supports BSD flags
  6646. - ;;
  6647. - esac
  6648. - ;;
  6649. - esac
  6650. - fi
  6651. - done
  6652. - IFS="$lt_save_ifs"
  6653. - done
  6654. - : ${lt_cv_path_NM=no}
  6655. -fi])
  6656. -if test "$lt_cv_path_NM" != "no"; then
  6657. - NM="$lt_cv_path_NM"
  6658. -else
  6659. - # Didn't find any BSD compatible name lister, look for dumpbin.
  6660. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6661. - AC_SUBST([DUMPBIN])
  6662. - if test "$DUMPBIN" != ":"; then
  6663. - NM="$DUMPBIN"
  6664. - fi
  6665. -fi
  6666. -test -z "$NM" && NM=nm
  6667. -AC_SUBST([NM])
  6668. -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6669. -
  6670. -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6671. - [lt_cv_nm_interface="BSD nm"
  6672. - echo "int some_variable = 0;" > conftest.$ac_ext
  6673. - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6674. - (eval "$ac_compile" 2>conftest.err)
  6675. - cat conftest.err >&AS_MESSAGE_LOG_FD
  6676. - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6677. - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6678. - cat conftest.err >&AS_MESSAGE_LOG_FD
  6679. - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6680. - cat conftest.out >&AS_MESSAGE_LOG_FD
  6681. - if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6682. - lt_cv_nm_interface="MS dumpbin"
  6683. - fi
  6684. - rm -f conftest*])
  6685. -])# LT_PATH_NM
  6686. -
  6687. -# Old names:
  6688. -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6689. -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6690. -dnl aclocal-1.4 backwards compatibility:
  6691. -dnl AC_DEFUN([AM_PROG_NM], [])
  6692. -dnl AC_DEFUN([AC_PROG_NM], [])
  6693. -
  6694. -
  6695. -# LT_LIB_M
  6696. -# --------
  6697. -# check for math library
  6698. -AC_DEFUN([LT_LIB_M],
  6699. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6700. -LIBM=
  6701. -case $host in
  6702. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6703. - # These system don't have libm, or don't need it
  6704. - ;;
  6705. -*-ncr-sysv4.3*)
  6706. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6707. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6708. - ;;
  6709. -*)
  6710. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  6711. - ;;
  6712. -esac
  6713. -AC_SUBST([LIBM])
  6714. -])# LT_LIB_M
  6715. -
  6716. -# Old name:
  6717. -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6718. -dnl aclocal-1.4 backwards compatibility:
  6719. -dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6720. -
  6721. -
  6722. -# _LT_COMPILER_NO_RTTI([TAGNAME])
  6723. -# -------------------------------
  6724. -m4_defun([_LT_COMPILER_NO_RTTI],
  6725. -[m4_require([_LT_TAG_COMPILER])dnl
  6726. -
  6727. -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6728. -
  6729. -if test "$GCC" = yes; then
  6730. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6731. -
  6732. - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6733. - lt_cv_prog_compiler_rtti_exceptions,
  6734. - [-fno-rtti -fno-exceptions], [],
  6735. - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6736. -fi
  6737. -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6738. - [Compiler flag to turn off builtin functions])
  6739. -])# _LT_COMPILER_NO_RTTI
  6740. -
  6741. -
  6742. -# _LT_CMD_GLOBAL_SYMBOLS
  6743. -# ----------------------
  6744. -m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6745. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6746. -AC_REQUIRE([AC_PROG_CC])dnl
  6747. -AC_REQUIRE([LT_PATH_NM])dnl
  6748. -AC_REQUIRE([LT_PATH_LD])dnl
  6749. -m4_require([_LT_DECL_SED])dnl
  6750. -m4_require([_LT_DECL_EGREP])dnl
  6751. -m4_require([_LT_TAG_COMPILER])dnl
  6752. -
  6753. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  6754. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6755. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6756. -[
  6757. -# These are sane defaults that work on at least a few old systems.
  6758. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6759. -
  6760. -# Character class describing NM global symbol codes.
  6761. -symcode='[[BCDEGRST]]'
  6762. -
  6763. -# Regexp to match symbols that can be accessed directly from C.
  6764. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6765. -
  6766. -# Define system-specific variables.
  6767. -case $host_os in
  6768. -aix*)
  6769. - symcode='[[BCDT]]'
  6770. - ;;
  6771. -cygwin* | mingw* | pw32* | cegcc*)
  6772. - symcode='[[ABCDGISTW]]'
  6773. - ;;
  6774. -hpux*)
  6775. - if test "$host_cpu" = ia64; then
  6776. - symcode='[[ABCDEGRST]]'
  6777. - fi
  6778. - ;;
  6779. -irix* | nonstopux*)
  6780. - symcode='[[BCDEGRST]]'
  6781. - ;;
  6782. -osf*)
  6783. - symcode='[[BCDEGQRST]]'
  6784. - ;;
  6785. -solaris*)
  6786. - symcode='[[BDRT]]'
  6787. - ;;
  6788. -sco3.2v5*)
  6789. - symcode='[[DT]]'
  6790. - ;;
  6791. -sysv4.2uw2*)
  6792. - symcode='[[DT]]'
  6793. - ;;
  6794. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6795. - symcode='[[ABDT]]'
  6796. - ;;
  6797. -sysv4)
  6798. - symcode='[[DFNSTU]]'
  6799. - ;;
  6800. -esac
  6801. -
  6802. -# If we're using GNU nm, then use its standard symbol codes.
  6803. -case `$NM -V 2>&1` in
  6804. -*GNU* | *'with BFD'*)
  6805. - symcode='[[ABCDGIRSTW]]' ;;
  6806. -esac
  6807. -
  6808. -# Transform an extracted symbol line into a proper C declaration.
  6809. -# Some systems (esp. on ia64) link data and code symbols differently,
  6810. -# so use this general approach.
  6811. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6812. -
  6813. -# Transform an extracted symbol line into symbol name and symbol address
  6814. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6815. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6816. -
  6817. -# Handle CRLF in mingw tool chain
  6818. -opt_cr=
  6819. -case $build_os in
  6820. -mingw*)
  6821. - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6822. - ;;
  6823. -esac
  6824. -
  6825. -# Try without a prefix underscore, then with it.
  6826. -for ac_symprfx in "" "_"; do
  6827. -
  6828. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6829. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  6830. -
  6831. - # Write the raw and C identifiers.
  6832. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6833. - # Fake it for dumpbin and say T for any non-static function
  6834. - # and D for any global variable.
  6835. - # Also find C++ and __fastcall symbols from MSVC++,
  6836. - # which start with @ or ?.
  6837. - lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6838. -" {last_section=section; section=\$ 3};"\
  6839. -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6840. -" \$ 0!~/External *\|/{next};"\
  6841. -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6842. -" {if(hide[section]) next};"\
  6843. -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6844. -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6845. -" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6846. -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6847. -" ' prfx=^$ac_symprfx]"
  6848. - else
  6849. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6850. - fi
  6851. -
  6852. - # Check to see that the pipe works correctly.
  6853. - pipe_works=no
  6854. -
  6855. - rm -f conftest*
  6856. - cat > conftest.$ac_ext <<_LT_EOF
  6857. -#ifdef __cplusplus
  6858. -extern "C" {
  6859. -#endif
  6860. -char nm_test_var;
  6861. -void nm_test_func(void);
  6862. -void nm_test_func(void){}
  6863. -#ifdef __cplusplus
  6864. -}
  6865. -#endif
  6866. -int main(){nm_test_var='a';nm_test_func();return(0);}
  6867. -_LT_EOF
  6868. -
  6869. - if AC_TRY_EVAL(ac_compile); then
  6870. - # Now try to grab the symbols.
  6871. - nlist=conftest.nm
  6872. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6873. - # Try sorting and uniquifying the output.
  6874. - if sort "$nlist" | uniq > "$nlist"T; then
  6875. - mv -f "$nlist"T "$nlist"
  6876. - else
  6877. - rm -f "$nlist"T
  6878. - fi
  6879. -
  6880. - # Make sure that we snagged all the symbols we need.
  6881. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6882. - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6883. - cat <<_LT_EOF > conftest.$ac_ext
  6884. -#ifdef __cplusplus
  6885. -extern "C" {
  6886. -#endif
  6887. -
  6888. -_LT_EOF
  6889. - # Now generate the symbol file.
  6890. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6891. -
  6892. - cat <<_LT_EOF >> conftest.$ac_ext
  6893. -
  6894. -/* The mapping between symbol names and symbols. */
  6895. -const struct {
  6896. - const char *name;
  6897. - void *address;
  6898. -}
  6899. -lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6900. -{
  6901. - { "@PROGRAM@", (void *) 0 },
  6902. -_LT_EOF
  6903. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6904. - cat <<\_LT_EOF >> conftest.$ac_ext
  6905. - {0, (void *) 0}
  6906. -};
  6907. -
  6908. -/* This works around a problem in FreeBSD linker */
  6909. -#ifdef FREEBSD_WORKAROUND
  6910. -static const void *lt_preloaded_setup() {
  6911. - return lt__PROGRAM__LTX_preloaded_symbols;
  6912. -}
  6913. -#endif
  6914. -
  6915. -#ifdef __cplusplus
  6916. -}
  6917. -#endif
  6918. -_LT_EOF
  6919. - # Now try linking the two files.
  6920. - mv conftest.$ac_objext conftstm.$ac_objext
  6921. - lt_save_LIBS="$LIBS"
  6922. - lt_save_CFLAGS="$CFLAGS"
  6923. - LIBS="conftstm.$ac_objext"
  6924. - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6925. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6926. - pipe_works=yes
  6927. - fi
  6928. - LIBS="$lt_save_LIBS"
  6929. - CFLAGS="$lt_save_CFLAGS"
  6930. - else
  6931. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6932. - fi
  6933. - else
  6934. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6935. - fi
  6936. - else
  6937. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6938. - fi
  6939. - else
  6940. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6941. - cat conftest.$ac_ext >&5
  6942. - fi
  6943. - rm -rf conftest* conftst*
  6944. -
  6945. - # Do not use the global_symbol_pipe unless it works.
  6946. - if test "$pipe_works" = yes; then
  6947. - break
  6948. - else
  6949. - lt_cv_sys_global_symbol_pipe=
  6950. - fi
  6951. -done
  6952. -])
  6953. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6954. - lt_cv_sys_global_symbol_to_cdecl=
  6955. -fi
  6956. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6957. - AC_MSG_RESULT(failed)
  6958. -else
  6959. - AC_MSG_RESULT(ok)
  6960. -fi
  6961. -
  6962. -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6963. - [Take the output of nm and produce a listing of raw symbols and C names])
  6964. -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6965. - [Transform the output of nm in a proper C declaration])
  6966. -_LT_DECL([global_symbol_to_c_name_address],
  6967. - [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6968. - [Transform the output of nm in a C name address pair])
  6969. -_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6970. - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6971. - [Transform the output of nm in a C name address pair when lib prefix is needed])
  6972. -]) # _LT_CMD_GLOBAL_SYMBOLS
  6973. -
  6974. -
  6975. -# _LT_COMPILER_PIC([TAGNAME])
  6976. -# ---------------------------
  6977. -m4_defun([_LT_COMPILER_PIC],
  6978. -[m4_require([_LT_TAG_COMPILER])dnl
  6979. -_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6980. -_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6981. -_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6982. -
  6983. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  6984. -m4_if([$1], [CXX], [
  6985. - # C++ specific cases for pic, static, wl, etc.
  6986. - if test "$GXX" = yes; then
  6987. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6988. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6989. -
  6990. - case $host_os in
  6991. - aix*)
  6992. - # All AIX code is PIC.
  6993. - if test "$host_cpu" = ia64; then
  6994. - # AIX 5 now supports IA64 processor
  6995. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6996. - fi
  6997. - ;;
  6998. -
  6999. - amigaos*)
  7000. - case $host_cpu in
  7001. - powerpc)
  7002. - # see comment about AmigaOS4 .so support
  7003. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7004. - ;;
  7005. - m68k)
  7006. - # FIXME: we need at least 68020 code to build shared libraries, but
  7007. - # adding the `-m68020' flag to GCC prevents building anything better,
  7008. - # like `-m68040'.
  7009. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7010. - ;;
  7011. - esac
  7012. - ;;
  7013. -
  7014. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7015. - # PIC is the default for these OSes.
  7016. - ;;
  7017. - mingw* | cygwin* | os2* | pw32* | cegcc*)
  7018. - # This hack is so that the source file can tell whether it is being
  7019. - # built for inclusion in a dll (and should export symbols for example).
  7020. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7021. - # (--disable-auto-import) libraries
  7022. - m4_if([$1], [GCJ], [],
  7023. - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7024. - ;;
  7025. - darwin* | rhapsody*)
  7026. - # PIC is the default on this platform
  7027. - # Common symbols not allowed in MH_DYLIB files
  7028. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7029. - ;;
  7030. - *djgpp*)
  7031. - # DJGPP does not support shared libraries at all
  7032. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7033. - ;;
  7034. - interix[[3-9]]*)
  7035. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7036. - # Instead, we relocate shared libraries at runtime.
  7037. - ;;
  7038. - sysv4*MP*)
  7039. - if test -d /usr/nec; then
  7040. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7041. - fi
  7042. - ;;
  7043. - hpux*)
  7044. - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7045. - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7046. - # sets the default TLS model and affects inlining.
  7047. - case $host_cpu in
  7048. - hppa*64*)
  7049. - ;;
  7050. - *)
  7051. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7052. - ;;
  7053. - esac
  7054. - ;;
  7055. - *qnx* | *nto*)
  7056. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7057. - # it will coredump.
  7058. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7059. - ;;
  7060. - *)
  7061. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7062. - ;;
  7063. - esac
  7064. - else
  7065. - case $host_os in
  7066. - aix[[4-9]]*)
  7067. - # All AIX code is PIC.
  7068. - if test "$host_cpu" = ia64; then
  7069. - # AIX 5 now supports IA64 processor
  7070. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7071. - else
  7072. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7073. - fi
  7074. - ;;
  7075. - chorus*)
  7076. - case $cc_basename in
  7077. - cxch68*)
  7078. - # Green Hills C++ Compiler
  7079. - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  7080. - ;;
  7081. - esac
  7082. - ;;
  7083. - dgux*)
  7084. - case $cc_basename in
  7085. - ec++*)
  7086. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7087. - ;;
  7088. - ghcx*)
  7089. - # Green Hills C++ Compiler
  7090. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7091. - ;;
  7092. - *)
  7093. - ;;
  7094. - esac
  7095. - ;;
  7096. - freebsd* | dragonfly*)
  7097. - # FreeBSD uses GNU C++
  7098. - ;;
  7099. - hpux9* | hpux10* | hpux11*)
  7100. - case $cc_basename in
  7101. - CC*)
  7102. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7103. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7104. - if test "$host_cpu" != ia64; then
  7105. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7106. - fi
  7107. - ;;
  7108. - aCC*)
  7109. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7110. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7111. - case $host_cpu in
  7112. - hppa*64*|ia64*)
  7113. - # +Z the default
  7114. - ;;
  7115. - *)
  7116. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7117. - ;;
  7118. - esac
  7119. - ;;
  7120. - *)
  7121. - ;;
  7122. - esac
  7123. - ;;
  7124. - interix*)
  7125. - # This is c89, which is MS Visual C++ (no shared libs)
  7126. - # Anyone wants to do a port?
  7127. - ;;
  7128. - irix5* | irix6* | nonstopux*)
  7129. - case $cc_basename in
  7130. - CC*)
  7131. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7132. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7133. - # CC pic flag -KPIC is the default.
  7134. - ;;
  7135. - *)
  7136. - ;;
  7137. - esac
  7138. - ;;
  7139. - linux* | k*bsd*-gnu)
  7140. - case $cc_basename in
  7141. - KCC*)
  7142. - # KAI C++ Compiler
  7143. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7144. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7145. - ;;
  7146. - ecpc* )
  7147. - # old Intel C++ for x86_64 which still supported -KPIC.
  7148. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7149. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7150. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7151. - ;;
  7152. - icpc* )
  7153. - # Intel C++, used to be incompatible with GCC.
  7154. - # ICC 10 doesn't accept -KPIC any more.
  7155. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7156. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7157. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7158. - ;;
  7159. - pgCC* | pgcpp*)
  7160. - # Portland Group C++ compiler
  7161. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7162. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7163. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7164. - ;;
  7165. - cxx*)
  7166. - # Compaq C++
  7167. - # Make sure the PIC flag is empty. It appears that all Alpha
  7168. - # Linux and Compaq Tru64 Unix objects are PIC.
  7169. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7170. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7171. - ;;
  7172. - xlc* | xlC*)
  7173. - # IBM XL 8.0 on PPC
  7174. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7175. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7176. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7177. - ;;
  7178. - *)
  7179. - case `$CC -V 2>&1 | sed 5q` in
  7180. - *Sun\ C*)
  7181. - # Sun C++ 5.9
  7182. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7183. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7184. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7185. - ;;
  7186. - esac
  7187. - ;;
  7188. - esac
  7189. - ;;
  7190. - lynxos*)
  7191. - ;;
  7192. - m88k*)
  7193. - ;;
  7194. - mvs*)
  7195. - case $cc_basename in
  7196. - cxx*)
  7197. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7198. - ;;
  7199. - *)
  7200. - ;;
  7201. - esac
  7202. - ;;
  7203. - netbsd*)
  7204. - ;;
  7205. - *qnx* | *nto*)
  7206. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7207. - # it will coredump.
  7208. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7209. - ;;
  7210. - osf3* | osf4* | osf5*)
  7211. - case $cc_basename in
  7212. - KCC*)
  7213. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7214. - ;;
  7215. - RCC*)
  7216. - # Rational C++ 2.4.1
  7217. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7218. - ;;
  7219. - cxx*)
  7220. - # Digital/Compaq C++
  7221. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7222. - # Make sure the PIC flag is empty. It appears that all Alpha
  7223. - # Linux and Compaq Tru64 Unix objects are PIC.
  7224. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7225. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7226. - ;;
  7227. - *)
  7228. - ;;
  7229. - esac
  7230. - ;;
  7231. - psos*)
  7232. - ;;
  7233. - solaris*)
  7234. - case $cc_basename in
  7235. - CC*)
  7236. - # Sun C++ 4.2, 5.x and Centerline C++
  7237. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7238. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7239. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7240. - ;;
  7241. - gcx*)
  7242. - # Green Hills C++ Compiler
  7243. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7244. - ;;
  7245. - *)
  7246. - ;;
  7247. - esac
  7248. - ;;
  7249. - sunos4*)
  7250. - case $cc_basename in
  7251. - CC*)
  7252. - # Sun C++ 4.x
  7253. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7254. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7255. - ;;
  7256. - lcc*)
  7257. - # Lucid
  7258. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7259. - ;;
  7260. - *)
  7261. - ;;
  7262. - esac
  7263. - ;;
  7264. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7265. - case $cc_basename in
  7266. - CC*)
  7267. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7268. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7269. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7270. - ;;
  7271. - esac
  7272. - ;;
  7273. - tandem*)
  7274. - case $cc_basename in
  7275. - NCC*)
  7276. - # NonStop-UX NCC 3.20
  7277. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7278. - ;;
  7279. - *)
  7280. - ;;
  7281. - esac
  7282. - ;;
  7283. - vxworks*)
  7284. - ;;
  7285. - *)
  7286. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7287. - ;;
  7288. - esac
  7289. - fi
  7290. -],
  7291. -[
  7292. - if test "$GCC" = yes; then
  7293. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7294. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7295. -
  7296. - case $host_os in
  7297. - aix*)
  7298. - # All AIX code is PIC.
  7299. - if test "$host_cpu" = ia64; then
  7300. - # AIX 5 now supports IA64 processor
  7301. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7302. - fi
  7303. - ;;
  7304. -
  7305. - amigaos*)
  7306. - case $host_cpu in
  7307. - powerpc)
  7308. - # see comment about AmigaOS4 .so support
  7309. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7310. - ;;
  7311. - m68k)
  7312. - # FIXME: we need at least 68020 code to build shared libraries, but
  7313. - # adding the `-m68020' flag to GCC prevents building anything better,
  7314. - # like `-m68040'.
  7315. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7316. - ;;
  7317. - esac
  7318. - ;;
  7319. -
  7320. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7321. - # PIC is the default for these OSes.
  7322. - ;;
  7323. -
  7324. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  7325. - # This hack is so that the source file can tell whether it is being
  7326. - # built for inclusion in a dll (and should export symbols for example).
  7327. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7328. - # (--disable-auto-import) libraries
  7329. - m4_if([$1], [GCJ], [],
  7330. - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7331. - ;;
  7332. -
  7333. - darwin* | rhapsody*)
  7334. - # PIC is the default on this platform
  7335. - # Common symbols not allowed in MH_DYLIB files
  7336. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7337. - ;;
  7338. -
  7339. - hpux*)
  7340. - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7341. - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7342. - # sets the default TLS model and affects inlining.
  7343. - case $host_cpu in
  7344. - hppa*64*)
  7345. - # +Z the default
  7346. - ;;
  7347. - *)
  7348. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7349. - ;;
  7350. - esac
  7351. - ;;
  7352. -
  7353. - interix[[3-9]]*)
  7354. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7355. - # Instead, we relocate shared libraries at runtime.
  7356. - ;;
  7357. -
  7358. - msdosdjgpp*)
  7359. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  7360. - # on systems that don't support them.
  7361. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7362. - enable_shared=no
  7363. - ;;
  7364. -
  7365. - *nto* | *qnx*)
  7366. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7367. - # it will coredump.
  7368. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7369. - ;;
  7370. -
  7371. - sysv4*MP*)
  7372. - if test -d /usr/nec; then
  7373. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7374. - fi
  7375. - ;;
  7376. -
  7377. - *)
  7378. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7379. - ;;
  7380. - esac
  7381. - else
  7382. - # PORTME Check for flag to pass linker flags through the system compiler.
  7383. - case $host_os in
  7384. - aix*)
  7385. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7386. - if test "$host_cpu" = ia64; then
  7387. - # AIX 5 now supports IA64 processor
  7388. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7389. - else
  7390. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7391. - fi
  7392. - ;;
  7393. -
  7394. - mingw* | cygwin* | pw32* | os2* | cegcc*)
  7395. - # This hack is so that the source file can tell whether it is being
  7396. - # built for inclusion in a dll (and should export symbols for example).
  7397. - m4_if([$1], [GCJ], [],
  7398. - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7399. - ;;
  7400. -
  7401. - hpux9* | hpux10* | hpux11*)
  7402. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7403. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7404. - # not for PA HP-UX.
  7405. - case $host_cpu in
  7406. - hppa*64*|ia64*)
  7407. - # +Z the default
  7408. - ;;
  7409. - *)
  7410. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7411. - ;;
  7412. - esac
  7413. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7414. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7415. - ;;
  7416. -
  7417. - irix5* | irix6* | nonstopux*)
  7418. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7419. - # PIC (with -KPIC) is the default.
  7420. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7421. - ;;
  7422. -
  7423. - linux* | k*bsd*-gnu)
  7424. - case $cc_basename in
  7425. - # old Intel for x86_64 which still supported -KPIC.
  7426. - ecc*)
  7427. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7428. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7429. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7430. - ;;
  7431. - # icc used to be incompatible with GCC.
  7432. - # ICC 10 doesn't accept -KPIC any more.
  7433. - icc* | ifort*)
  7434. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7435. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7436. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7437. - ;;
  7438. - # Lahey Fortran 8.1.
  7439. - lf95*)
  7440. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7441. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7442. - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7443. - ;;
  7444. - pgcc* | pgf77* | pgf90* | pgf95*)
  7445. - # Portland Group compilers (*not* the Pentium gcc compiler,
  7446. - # which looks to be a dead project)
  7447. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7448. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7449. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7450. - ;;
  7451. - ccc*)
  7452. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7453. - # All Alpha code is PIC.
  7454. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7455. - ;;
  7456. - xl*)
  7457. - # IBM XL C 8.0/Fortran 10.1 on PPC
  7458. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7459. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7460. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7461. - ;;
  7462. - *)
  7463. - case `$CC -V 2>&1 | sed 5q` in
  7464. - *Sun\ C*)
  7465. - # Sun C 5.9
  7466. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7467. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7468. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7469. - ;;
  7470. - *Sun\ F*)
  7471. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7472. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7473. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7474. - _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7475. - ;;
  7476. - esac
  7477. - ;;
  7478. - esac
  7479. - ;;
  7480. -
  7481. - newsos6)
  7482. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7483. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7484. - ;;
  7485. -
  7486. - *nto* | *qnx*)
  7487. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7488. - # it will coredump.
  7489. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7490. - ;;
  7491. -
  7492. - osf3* | osf4* | osf5*)
  7493. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7494. - # All OSF/1 code is PIC.
  7495. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7496. - ;;
  7497. -
  7498. - rdos*)
  7499. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7500. - ;;
  7501. -
  7502. - solaris*)
  7503. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7504. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7505. - case $cc_basename in
  7506. - f77* | f90* | f95*)
  7507. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7508. - *)
  7509. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7510. - esac
  7511. - ;;
  7512. -
  7513. - sunos4*)
  7514. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7515. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7516. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7517. - ;;
  7518. -
  7519. - sysv4 | sysv4.2uw2* | sysv4.3*)
  7520. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7521. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7522. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7523. - ;;
  7524. -
  7525. - sysv4*MP*)
  7526. - if test -d /usr/nec ;then
  7527. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7528. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7529. + dnl Search the library and its dependencies in $additional_libdir and
  7530. + dnl $LDFLAGS. Using breadth-first-seach.
  7531. + LIB[]NAME=
  7532. + LTLIB[]NAME=
  7533. + INC[]NAME=
  7534. + LIB[]NAME[]_PREFIX=
  7535. + rpathdirs=
  7536. + ltrpathdirs=
  7537. + names_already_handled=
  7538. + names_next_round='$1 $2'
  7539. + while test -n "$names_next_round"; do
  7540. + names_this_round="$names_next_round"
  7541. + names_next_round=
  7542. + for name in $names_this_round; do
  7543. + already_handled=
  7544. + for n in $names_already_handled; do
  7545. + if test "$n" = "$name"; then
  7546. + already_handled=yes
  7547. + break
  7548. + fi
  7549. + done
  7550. + if test -z "$already_handled"; then
  7551. + names_already_handled="$names_already_handled $name"
  7552. + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  7553. + dnl or AC_LIB_HAVE_LINKFLAGS call.
  7554. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7555. + eval value=\"\$HAVE_LIB$uppername\"
  7556. + if test -n "$value"; then
  7557. + if test "$value" = yes; then
  7558. + eval value=\"\$LIB$uppername\"
  7559. + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  7560. + eval value=\"\$LTLIB$uppername\"
  7561. + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  7562. + else
  7563. + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  7564. + dnl that this library doesn't exist. So just drop it.
  7565. + :
  7566. + fi
  7567. + else
  7568. + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  7569. + dnl and the already constructed $LIBNAME/$LTLIBNAME.
  7570. + found_dir=
  7571. + found_la=
  7572. + found_so=
  7573. + found_a=
  7574. + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  7575. + if test -n "$acl_shlibext"; then
  7576. + shrext=".$acl_shlibext" # typically: shrext=.so
  7577. + else
  7578. + shrext=
  7579. + fi
  7580. + if test $use_additional = yes; then
  7581. + dir="$additional_libdir"
  7582. + dnl The same code as in the loop below:
  7583. + dnl First look for a shared library.
  7584. + if test -n "$acl_shlibext"; then
  7585. + if test -f "$dir/$libname$shrext"; then
  7586. + found_dir="$dir"
  7587. + found_so="$dir/$libname$shrext"
  7588. + else
  7589. + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  7590. + ver=`(cd "$dir" && \
  7591. + for f in "$libname$shrext".*; do echo "$f"; done \
  7592. + | sed -e "s,^$libname$shrext\\\\.,," \
  7593. + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  7594. + | sed 1q ) 2>/dev/null`
  7595. + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  7596. + found_dir="$dir"
  7597. + found_so="$dir/$libname$shrext.$ver"
  7598. + fi
  7599. + else
  7600. + eval library_names=\"$acl_library_names_spec\"
  7601. + for f in $library_names; do
  7602. + if test -f "$dir/$f"; then
  7603. + found_dir="$dir"
  7604. + found_so="$dir/$f"
  7605. + break
  7606. + fi
  7607. + done
  7608. + fi
  7609. + fi
  7610. + fi
  7611. + dnl Then look for a static library.
  7612. + if test "X$found_dir" = "X"; then
  7613. + if test -f "$dir/$libname.$acl_libext"; then
  7614. + found_dir="$dir"
  7615. + found_a="$dir/$libname.$acl_libext"
  7616. + fi
  7617. + fi
  7618. + if test "X$found_dir" != "X"; then
  7619. + if test -f "$dir/$libname.la"; then
  7620. + found_la="$dir/$libname.la"
  7621. + fi
  7622. + fi
  7623. + fi
  7624. + if test "X$found_dir" = "X"; then
  7625. + for x in $LDFLAGS $LTLIB[]NAME; do
  7626. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  7627. + case "$x" in
  7628. + -L*)
  7629. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  7630. + dnl First look for a shared library.
  7631. + if test -n "$acl_shlibext"; then
  7632. + if test -f "$dir/$libname$shrext"; then
  7633. + found_dir="$dir"
  7634. + found_so="$dir/$libname$shrext"
  7635. + else
  7636. + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  7637. + ver=`(cd "$dir" && \
  7638. + for f in "$libname$shrext".*; do echo "$f"; done \
  7639. + | sed -e "s,^$libname$shrext\\\\.,," \
  7640. + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  7641. + | sed 1q ) 2>/dev/null`
  7642. + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  7643. + found_dir="$dir"
  7644. + found_so="$dir/$libname$shrext.$ver"
  7645. + fi
  7646. + else
  7647. + eval library_names=\"$acl_library_names_spec\"
  7648. + for f in $library_names; do
  7649. + if test -f "$dir/$f"; then
  7650. + found_dir="$dir"
  7651. + found_so="$dir/$f"
  7652. + break
  7653. + fi
  7654. + done
  7655. + fi
  7656. + fi
  7657. + fi
  7658. + dnl Then look for a static library.
  7659. + if test "X$found_dir" = "X"; then
  7660. + if test -f "$dir/$libname.$acl_libext"; then
  7661. + found_dir="$dir"
  7662. + found_a="$dir/$libname.$acl_libext"
  7663. + fi
  7664. + fi
  7665. + if test "X$found_dir" != "X"; then
  7666. + if test -f "$dir/$libname.la"; then
  7667. + found_la="$dir/$libname.la"
  7668. + fi
  7669. + fi
  7670. + ;;
  7671. + esac
  7672. + if test "X$found_dir" != "X"; then
  7673. + break
  7674. + fi
  7675. + done
  7676. + fi
  7677. + if test "X$found_dir" != "X"; then
  7678. + dnl Found the library.
  7679. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  7680. + if test "X$found_so" != "X"; then
  7681. + dnl Linking with a shared library. We attempt to hardcode its
  7682. + dnl directory into the executable's runpath, unless it's the
  7683. + dnl standard /usr/lib.
  7684. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  7685. + dnl No hardcoding is needed.
  7686. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  7687. + else
  7688. + dnl Use an explicit option to hardcode DIR into the resulting
  7689. + dnl binary.
  7690. + dnl Potentially add DIR to ltrpathdirs.
  7691. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  7692. + haveit=
  7693. + for x in $ltrpathdirs; do
  7694. + if test "X$x" = "X$found_dir"; then
  7695. + haveit=yes
  7696. + break
  7697. + fi
  7698. + done
  7699. + if test -z "$haveit"; then
  7700. + ltrpathdirs="$ltrpathdirs $found_dir"
  7701. + fi
  7702. + dnl The hardcoding into $LIBNAME is system dependent.
  7703. + if test "$acl_hardcode_direct" = yes; then
  7704. + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  7705. + dnl resulting binary.
  7706. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  7707. + else
  7708. + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  7709. + dnl Use an explicit option to hardcode DIR into the resulting
  7710. + dnl binary.
  7711. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  7712. + dnl Potentially add DIR to rpathdirs.
  7713. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  7714. + haveit=
  7715. + for x in $rpathdirs; do
  7716. + if test "X$x" = "X$found_dir"; then
  7717. + haveit=yes
  7718. + break
  7719. + fi
  7720. + done
  7721. + if test -z "$haveit"; then
  7722. + rpathdirs="$rpathdirs $found_dir"
  7723. + fi
  7724. + else
  7725. + dnl Rely on "-L$found_dir".
  7726. + dnl But don't add it if it's already contained in the LDFLAGS
  7727. + dnl or the already constructed $LIBNAME
  7728. + haveit=
  7729. + for x in $LDFLAGS $LIB[]NAME; do
  7730. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  7731. + if test "X$x" = "X-L$found_dir"; then
  7732. + haveit=yes
  7733. + break
  7734. + fi
  7735. + done
  7736. + if test -z "$haveit"; then
  7737. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  7738. + fi
  7739. + if test "$acl_hardcode_minus_L" != no; then
  7740. + dnl FIXME: Not sure whether we should use
  7741. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  7742. + dnl here.
  7743. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  7744. + else
  7745. + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
  7746. + dnl here, because this doesn't fit in flags passed to the
  7747. + dnl compiler. So give up. No hardcoding. This affects only
  7748. + dnl very old systems.
  7749. + dnl FIXME: Not sure whether we should use
  7750. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  7751. + dnl here.
  7752. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  7753. + fi
  7754. + fi
  7755. + fi
  7756. + fi
  7757. + else
  7758. + if test "X$found_a" != "X"; then
  7759. + dnl Linking with a static library.
  7760. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  7761. + else
  7762. + dnl We shouldn't come here, but anyway it's good to have a
  7763. + dnl fallback.
  7764. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  7765. + fi
  7766. + fi
  7767. + dnl Assume the include files are nearby.
  7768. + additional_includedir=
  7769. + case "$found_dir" in
  7770. + */$acl_libdirstem | */$acl_libdirstem/)
  7771. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  7772. + LIB[]NAME[]_PREFIX="$basedir"
  7773. + additional_includedir="$basedir/include"
  7774. + ;;
  7775. + esac
  7776. + if test "X$additional_includedir" != "X"; then
  7777. + dnl Potentially add $additional_includedir to $INCNAME.
  7778. + dnl But don't add it
  7779. + dnl 1. if it's the standard /usr/include,
  7780. + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  7781. + dnl 3. if it's already present in $CPPFLAGS or the already
  7782. + dnl constructed $INCNAME,
  7783. + dnl 4. if it doesn't exist as a directory.
  7784. + if test "X$additional_includedir" != "X/usr/include"; then
  7785. + haveit=
  7786. + if test "X$additional_includedir" = "X/usr/local/include"; then
  7787. + if test -n "$GCC"; then
  7788. + case $host_os in
  7789. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  7790. + esac
  7791. + fi
  7792. + fi
  7793. + if test -z "$haveit"; then
  7794. + for x in $CPPFLAGS $INC[]NAME; do
  7795. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  7796. + if test "X$x" = "X-I$additional_includedir"; then
  7797. + haveit=yes
  7798. + break
  7799. + fi
  7800. + done
  7801. + if test -z "$haveit"; then
  7802. + if test -d "$additional_includedir"; then
  7803. + dnl Really add $additional_includedir to $INCNAME.
  7804. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  7805. + fi
  7806. + fi
  7807. + fi
  7808. + fi
  7809. + fi
  7810. + dnl Look for dependencies.
  7811. + if test -n "$found_la"; then
  7812. + dnl Read the .la file. It defines the variables
  7813. + dnl dlname, library_names, old_library, dependency_libs, current,
  7814. + dnl age, revision, installed, dlopen, dlpreopen, libdir.
  7815. + save_libdir="$libdir"
  7816. + case "$found_la" in
  7817. + */* | *\\*) . "$found_la" ;;
  7818. + *) . "./$found_la" ;;
  7819. + esac
  7820. + libdir="$save_libdir"
  7821. + dnl We use only dependency_libs.
  7822. + for dep in $dependency_libs; do
  7823. + case "$dep" in
  7824. + -L*)
  7825. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7826. + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  7827. + dnl But don't add it
  7828. + dnl 1. if it's the standard /usr/lib,
  7829. + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  7830. + dnl 3. if it's already present in $LDFLAGS or the already
  7831. + dnl constructed $LIBNAME,
  7832. + dnl 4. if it doesn't exist as a directory.
  7833. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  7834. + haveit=
  7835. + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  7836. + if test -n "$GCC"; then
  7837. + case $host_os in
  7838. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  7839. + esac
  7840. + fi
  7841. + fi
  7842. + if test -z "$haveit"; then
  7843. + haveit=
  7844. + for x in $LDFLAGS $LIB[]NAME; do
  7845. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  7846. + if test "X$x" = "X-L$additional_libdir"; then
  7847. + haveit=yes
  7848. + break
  7849. + fi
  7850. + done
  7851. + if test -z "$haveit"; then
  7852. + if test -d "$additional_libdir"; then
  7853. + dnl Really add $additional_libdir to $LIBNAME.
  7854. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  7855. + fi
  7856. + fi
  7857. + haveit=
  7858. + for x in $LDFLAGS $LTLIB[]NAME; do
  7859. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  7860. + if test "X$x" = "X-L$additional_libdir"; then
  7861. + haveit=yes
  7862. + break
  7863. + fi
  7864. + done
  7865. + if test -z "$haveit"; then
  7866. + if test -d "$additional_libdir"; then
  7867. + dnl Really add $additional_libdir to $LTLIBNAME.
  7868. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  7869. + fi
  7870. + fi
  7871. + fi
  7872. + fi
  7873. + ;;
  7874. + -R*)
  7875. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7876. + if test "$enable_rpath" != no; then
  7877. + dnl Potentially add DIR to rpathdirs.
  7878. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  7879. + haveit=
  7880. + for x in $rpathdirs; do
  7881. + if test "X$x" = "X$dir"; then
  7882. + haveit=yes
  7883. + break
  7884. + fi
  7885. + done
  7886. + if test -z "$haveit"; then
  7887. + rpathdirs="$rpathdirs $dir"
  7888. + fi
  7889. + dnl Potentially add DIR to ltrpathdirs.
  7890. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  7891. + haveit=
  7892. + for x in $ltrpathdirs; do
  7893. + if test "X$x" = "X$dir"; then
  7894. + haveit=yes
  7895. + break
  7896. + fi
  7897. + done
  7898. + if test -z "$haveit"; then
  7899. + ltrpathdirs="$ltrpathdirs $dir"
  7900. + fi
  7901. + fi
  7902. + ;;
  7903. + -l*)
  7904. + dnl Handle this in the next round.
  7905. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7906. + ;;
  7907. + *.la)
  7908. + dnl Handle this in the next round. Throw away the .la's
  7909. + dnl directory; it is already contained in a preceding -L
  7910. + dnl option.
  7911. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7912. + ;;
  7913. + *)
  7914. + dnl Most likely an immediate library name.
  7915. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  7916. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  7917. + ;;
  7918. + esac
  7919. + done
  7920. + fi
  7921. + else
  7922. + dnl Didn't find the library; assume it is in the system directories
  7923. + dnl known to the linker and runtime loader. (All the system
  7924. + dnl directories known to the linker should also be known to the
  7925. + dnl runtime loader, otherwise the system is severely misconfigured.)
  7926. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  7927. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  7928. + fi
  7929. + fi
  7930. fi
  7931. - ;;
  7932. -
  7933. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7934. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7935. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7936. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7937. - ;;
  7938. -
  7939. - unicos*)
  7940. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7941. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7942. - ;;
  7943. -
  7944. - uts4*)
  7945. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7946. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7947. - ;;
  7948. -
  7949. - *)
  7950. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7951. - ;;
  7952. - esac
  7953. - fi
  7954. -])
  7955. -case $host_os in
  7956. - # For platforms which do not support PIC, -DPIC is meaningless:
  7957. - *djgpp*)
  7958. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7959. - ;;
  7960. - *)
  7961. - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7962. - ;;
  7963. -esac
  7964. -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7965. -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7966. - [How to pass a linker flag through the compiler])
  7967. -
  7968. -#
  7969. -# Check to make sure the PIC flag actually works.
  7970. -#
  7971. -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7972. - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7973. - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7974. - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7975. - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7976. - "" | " "*) ;;
  7977. - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7978. - esac],
  7979. - [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7980. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7981. -fi
  7982. -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7983. - [Additional compiler flags for building library objects])
  7984. -
  7985. -#
  7986. -# Check to make sure the static flag actually works.
  7987. -#
  7988. -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7989. -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7990. - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7991. - $lt_tmp_static_flag,
  7992. - [],
  7993. - [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7994. -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7995. - [Compiler flag to prevent dynamic linking])
  7996. -])# _LT_COMPILER_PIC
  7997. -
  7998. -
  7999. -# _LT_LINKER_SHLIBS([TAGNAME])
  8000. -# ----------------------------
  8001. -# See if the linker supports building shared libraries.
  8002. -m4_defun([_LT_LINKER_SHLIBS],
  8003. -[AC_REQUIRE([LT_PATH_LD])dnl
  8004. -AC_REQUIRE([LT_PATH_NM])dnl
  8005. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8006. -m4_require([_LT_DECL_EGREP])dnl
  8007. -m4_require([_LT_DECL_SED])dnl
  8008. -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  8009. -m4_require([_LT_TAG_COMPILER])dnl
  8010. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8011. -m4_if([$1], [CXX], [
  8012. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8013. - case $host_os in
  8014. - aix[[4-9]]*)
  8015. - # If we're using GNU nm, then we don't want the "-C" option.
  8016. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8017. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8018. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8019. - else
  8020. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8021. - fi
  8022. - ;;
  8023. - pw32*)
  8024. - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  8025. - ;;
  8026. - cygwin* | mingw* | cegcc*)
  8027. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  8028. - ;;
  8029. - *)
  8030. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8031. - ;;
  8032. - esac
  8033. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8034. -], [
  8035. - runpath_var=
  8036. - _LT_TAGVAR(allow_undefined_flag, $1)=
  8037. - _LT_TAGVAR(always_export_symbols, $1)=no
  8038. - _LT_TAGVAR(archive_cmds, $1)=
  8039. - _LT_TAGVAR(archive_expsym_cmds, $1)=
  8040. - _LT_TAGVAR(compiler_needs_object, $1)=no
  8041. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8042. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8043. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8044. - _LT_TAGVAR(hardcode_automatic, $1)=no
  8045. - _LT_TAGVAR(hardcode_direct, $1)=no
  8046. - _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8047. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8048. - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8049. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8050. - _LT_TAGVAR(hardcode_minus_L, $1)=no
  8051. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8052. - _LT_TAGVAR(inherit_rpath, $1)=no
  8053. - _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8054. - _LT_TAGVAR(module_cmds, $1)=
  8055. - _LT_TAGVAR(module_expsym_cmds, $1)=
  8056. - _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  8057. - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  8058. - _LT_TAGVAR(thread_safe_flag_spec, $1)=
  8059. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8060. - # include_expsyms should be a list of space-separated symbols to be *always*
  8061. - # included in the symbol list
  8062. - _LT_TAGVAR(include_expsyms, $1)=
  8063. - # exclude_expsyms can be an extended regexp of symbols to exclude
  8064. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8065. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8066. - # as well as any symbol that contains `d'.
  8067. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8068. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8069. - # platforms (ab)use it in PIC code, but their linkers get confused if
  8070. - # the symbol is explicitly referenced. Since portable code cannot
  8071. - # rely on this symbol name, it's probably fine to never include it in
  8072. - # preloaded symbol tables.
  8073. - # Exclude shared library initialization/finalization symbols.
  8074. -dnl Note also adjust exclude_expsyms for C++ above.
  8075. - extract_expsyms_cmds=
  8076. -
  8077. - case $host_os in
  8078. - cygwin* | mingw* | pw32* | cegcc*)
  8079. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8080. - # When not using gcc, we currently assume that we are using
  8081. - # Microsoft Visual C++.
  8082. - if test "$GCC" != yes; then
  8083. - with_gnu_ld=no
  8084. - fi
  8085. - ;;
  8086. - interix*)
  8087. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  8088. - with_gnu_ld=yes
  8089. - ;;
  8090. - openbsd*)
  8091. - with_gnu_ld=no
  8092. - ;;
  8093. - esac
  8094. -
  8095. - _LT_TAGVAR(ld_shlibs, $1)=yes
  8096. - if test "$with_gnu_ld" = yes; then
  8097. - # If archive_cmds runs LD, not CC, wlarc should be empty
  8098. - wlarc='${wl}'
  8099. -
  8100. - # Set some defaults for GNU ld with shared library support. These
  8101. - # are reset later if shared libraries are not supported. Putting them
  8102. - # here allows them to be overridden if necessary.
  8103. - runpath_var=LD_RUN_PATH
  8104. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8105. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8106. - # ancient GNU ld didn't support --whole-archive et. al.
  8107. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8108. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8109. + done
  8110. + done
  8111. + if test "X$rpathdirs" != "X"; then
  8112. + if test -n "$acl_hardcode_libdir_separator"; then
  8113. + dnl Weird platform: only the last -rpath option counts, the user must
  8114. + dnl pass all path elements in one option. We can arrange that for a
  8115. + dnl single library, but not when more than one $LIBNAMEs are used.
  8116. + alldirs=
  8117. + for found_dir in $rpathdirs; do
  8118. + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  8119. + done
  8120. + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
  8121. + acl_save_libdir="$libdir"
  8122. + libdir="$alldirs"
  8123. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  8124. + libdir="$acl_save_libdir"
  8125. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  8126. else
  8127. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8128. + dnl The -rpath options are cumulative.
  8129. + for found_dir in $rpathdirs; do
  8130. + acl_save_libdir="$libdir"
  8131. + libdir="$found_dir"
  8132. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  8133. + libdir="$acl_save_libdir"
  8134. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  8135. + done
  8136. fi
  8137. - supports_anon_versioning=no
  8138. - case `$LD -v 2>&1` in
  8139. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  8140. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8141. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8142. - *\ 2.11.*) ;; # other 2.11 versions
  8143. - *) supports_anon_versioning=yes ;;
  8144. - esac
  8145. -
  8146. - # See if GNU ld supports shared libraries.
  8147. - case $host_os in
  8148. - aix[[3-9]]*)
  8149. - # On AIX/PPC, the GNU linker is very broken
  8150. - if test "$host_cpu" != ia64; then
  8151. - _LT_TAGVAR(ld_shlibs, $1)=no
  8152. - cat <<_LT_EOF 1>&2
  8153. -
  8154. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8155. -*** to be unable to reliably create shared libraries on AIX.
  8156. -*** Therefore, libtool is disabling shared libraries support. If you
  8157. -*** really care for shared libraries, you may want to modify your PATH
  8158. -*** so that a non-GNU linker is found, and then restart.
  8159. -
  8160. -_LT_EOF
  8161. - fi
  8162. - ;;
  8163. -
  8164. - amigaos*)
  8165. - case $host_cpu in
  8166. - powerpc)
  8167. - # see comment about AmigaOS4 .so support
  8168. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8169. - _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8170. - ;;
  8171. - m68k)
  8172. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8173. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8174. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8175. - ;;
  8176. - esac
  8177. - ;;
  8178. -
  8179. - beos*)
  8180. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8181. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8182. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8183. - # support --undefined. This deserves some investigation. FIXME
  8184. - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8185. - else
  8186. - _LT_TAGVAR(ld_shlibs, $1)=no
  8187. - fi
  8188. - ;;
  8189. -
  8190. - cygwin* | mingw* | pw32* | cegcc*)
  8191. - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8192. - # as there is no search path for DLLs.
  8193. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8194. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8195. - _LT_TAGVAR(always_export_symbols, $1)=no
  8196. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8197. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  8198. -
  8199. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8200. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8201. - # If the export-symbols file already is a .def file (1st line
  8202. - # is EXPORTS), use it as is; otherwise, prepend...
  8203. - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8204. - cp $export_symbols $output_objdir/$soname.def;
  8205. - else
  8206. - echo EXPORTS > $output_objdir/$soname.def;
  8207. - cat $export_symbols >> $output_objdir/$soname.def;
  8208. - fi~
  8209. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8210. - else
  8211. - _LT_TAGVAR(ld_shlibs, $1)=no
  8212. - fi
  8213. - ;;
  8214. -
  8215. - interix[[3-9]]*)
  8216. - _LT_TAGVAR(hardcode_direct, $1)=no
  8217. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8218. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8219. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8220. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8221. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  8222. - # default) and relocated if they conflict, which is a slow very memory
  8223. - # consuming and fragmenting process. To avoid this, we pick a random,
  8224. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8225. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8226. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8227. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8228. - ;;
  8229. -
  8230. - gnu* | linux* | tpf* | k*bsd*-gnu)
  8231. - tmp_diet=no
  8232. - if test "$host_os" = linux-dietlibc; then
  8233. - case $cc_basename in
  8234. - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8235. - esac
  8236. - fi
  8237. - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8238. - && test "$tmp_diet" = no
  8239. - then
  8240. - tmp_addflag=
  8241. - tmp_sharedflag='-shared'
  8242. - case $cc_basename,$host_cpu in
  8243. - pgcc*) # Portland Group C compiler
  8244. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8245. - tmp_addflag=' $pic_flag'
  8246. - ;;
  8247. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8248. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8249. - tmp_addflag=' $pic_flag -Mnomain' ;;
  8250. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8251. - tmp_addflag=' -i_dynamic' ;;
  8252. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8253. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  8254. - ifc* | ifort*) # Intel Fortran compiler
  8255. - tmp_addflag=' -nofor_main' ;;
  8256. - lf95*) # Lahey Fortran 8.1
  8257. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8258. - tmp_sharedflag='--shared' ;;
  8259. - xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8260. - tmp_sharedflag='-qmkshrobj'
  8261. - tmp_addflag= ;;
  8262. - esac
  8263. - case `$CC -V 2>&1 | sed 5q` in
  8264. - *Sun\ C*) # Sun C 5.9
  8265. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8266. - _LT_TAGVAR(compiler_needs_object, $1)=yes
  8267. - tmp_sharedflag='-G' ;;
  8268. - *Sun\ F*) # Sun Fortran 8.3
  8269. - tmp_sharedflag='-G' ;;
  8270. - esac
  8271. - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8272. -
  8273. - if test "x$supports_anon_versioning" = xyes; then
  8274. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8275. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8276. - echo "local: *; };" >> $output_objdir/$libname.ver~
  8277. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8278. - fi
  8279. -
  8280. - case $cc_basename in
  8281. - xlf*)
  8282. - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8283. - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8284. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8285. - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8286. - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8287. - if test "x$supports_anon_versioning" = xyes; then
  8288. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8289. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8290. - echo "local: *; };" >> $output_objdir/$libname.ver~
  8291. - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8292. - fi
  8293. - ;;
  8294. - esac
  8295. - else
  8296. - _LT_TAGVAR(ld_shlibs, $1)=no
  8297. - fi
  8298. - ;;
  8299. -
  8300. - netbsd*)
  8301. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8302. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8303. - wlarc=
  8304. - else
  8305. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8306. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8307. - fi
  8308. - ;;
  8309. -
  8310. - solaris*)
  8311. - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8312. - _LT_TAGVAR(ld_shlibs, $1)=no
  8313. - cat <<_LT_EOF 1>&2
  8314. -
  8315. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8316. -*** create shared libraries on Solaris systems. Therefore, libtool
  8317. -*** is disabling shared libraries support. We urge you to upgrade GNU
  8318. -*** binutils to release 2.9.1 or newer. Another option is to modify
  8319. -*** your PATH or compiler configuration so that the native linker is
  8320. -*** used, and then restart.
  8321. -
  8322. -_LT_EOF
  8323. - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8324. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8325. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8326. - else
  8327. - _LT_TAGVAR(ld_shlibs, $1)=no
  8328. - fi
  8329. - ;;
  8330. -
  8331. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8332. - case `$LD -v 2>&1` in
  8333. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8334. - _LT_TAGVAR(ld_shlibs, $1)=no
  8335. - cat <<_LT_EOF 1>&2
  8336. -
  8337. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8338. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  8339. -*** is disabling shared libraries support. We urge you to upgrade GNU
  8340. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8341. -*** your PATH or compiler configuration so that the native linker is
  8342. -*** used, and then restart.
  8343. -
  8344. -_LT_EOF
  8345. - ;;
  8346. - *)
  8347. - # For security reasons, it is highly recommended that you always
  8348. - # use absolute paths for naming shared libraries, and exclude the
  8349. - # DT_RUNPATH tag from executables and libraries. But doing so
  8350. - # requires that you compile everything twice, which is a pain.
  8351. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8352. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8353. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8354. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8355. - else
  8356. - _LT_TAGVAR(ld_shlibs, $1)=no
  8357. - fi
  8358. - ;;
  8359. - esac
  8360. - ;;
  8361. -
  8362. - sunos4*)
  8363. - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8364. - wlarc=
  8365. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8366. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8367. - ;;
  8368. + fi
  8369. + if test "X$ltrpathdirs" != "X"; then
  8370. + dnl When using libtool, the option that works for both libraries and
  8371. + dnl executables is -R. The -R options are cumulative.
  8372. + for found_dir in $ltrpathdirs; do
  8373. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  8374. + done
  8375. + fi
  8376. +])
  8377. - *)
  8378. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8379. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8380. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8381. - else
  8382. - _LT_TAGVAR(ld_shlibs, $1)=no
  8383. +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  8384. +dnl unless already present in VAR.
  8385. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  8386. +dnl contains two or three consecutive elements that belong together.
  8387. +AC_DEFUN([AC_LIB_APPENDTOVAR],
  8388. +[
  8389. + for element in [$2]; do
  8390. + haveit=
  8391. + for x in $[$1]; do
  8392. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  8393. + if test "X$x" = "X$element"; then
  8394. + haveit=yes
  8395. + break
  8396. fi
  8397. - ;;
  8398. - esac
  8399. -
  8400. - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8401. - runpath_var=
  8402. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8403. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8404. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8405. + done
  8406. + if test -z "$haveit"; then
  8407. + [$1]="${[$1]}${[$1]:+ }$element"
  8408. fi
  8409. - else
  8410. - # PORTME fill in a description of your system's linker (not GNU ld)
  8411. - case $host_os in
  8412. - aix3*)
  8413. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8414. - _LT_TAGVAR(always_export_symbols, $1)=yes
  8415. - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8416. - # Note: this linker hardcodes the directories in LIBPATH if there
  8417. - # are no directories specified by -L.
  8418. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8419. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8420. - # Neither direct hardcoding nor static linking is supported with a
  8421. - # broken collect2.
  8422. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8423. - fi
  8424. - ;;
  8425. -
  8426. - aix[[4-9]]*)
  8427. - if test "$host_cpu" = ia64; then
  8428. - # On IA64, the linker does run time linking by default, so we don't
  8429. - # have to do anything special.
  8430. - aix_use_runtimelinking=no
  8431. - exp_sym_flag='-Bexport'
  8432. - no_entry_flag=""
  8433. - else
  8434. - # If we're using GNU nm, then we don't want the "-C" option.
  8435. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8436. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8437. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8438. - else
  8439. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8440. - fi
  8441. - aix_use_runtimelinking=no
  8442. -
  8443. - # Test if we are trying to use run time linking or normal
  8444. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8445. - # need to do runtime linking.
  8446. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8447. - for ld_flag in $LDFLAGS; do
  8448. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8449. - aix_use_runtimelinking=yes
  8450. - break
  8451. - fi
  8452. - done
  8453. - ;;
  8454. - esac
  8455. -
  8456. - exp_sym_flag='-bexport'
  8457. - no_entry_flag='-bnoentry'
  8458. - fi
  8459. -
  8460. - # When large executables or shared objects are built, AIX ld can
  8461. - # have problems creating the table of contents. If linking a library
  8462. - # or program results in "error TOC overflow" add -mminimal-toc to
  8463. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8464. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8465. -
  8466. - _LT_TAGVAR(archive_cmds, $1)=''
  8467. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8468. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8469. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8470. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8471. - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8472. -
  8473. - if test "$GCC" = yes; then
  8474. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8475. - # We only want to do this on AIX 4.2 and lower, the check
  8476. - # below for broken collect2 doesn't work under 4.3+
  8477. - collect2name=`${CC} -print-prog-name=collect2`
  8478. - if test -f "$collect2name" &&
  8479. - strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8480. - then
  8481. - # We have reworked collect2
  8482. - :
  8483. - else
  8484. - # We have old collect2
  8485. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8486. - # It fails to find uninstalled libraries when the uninstalled
  8487. - # path is not listed in the libpath. Setting hardcode_minus_L
  8488. - # to unsupported forces relinking
  8489. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8490. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8491. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8492. - fi
  8493. - ;;
  8494. - esac
  8495. - shared_flag='-shared'
  8496. - if test "$aix_use_runtimelinking" = yes; then
  8497. - shared_flag="$shared_flag "'${wl}-G'
  8498. - fi
  8499. - else
  8500. - # not using gcc
  8501. - if test "$host_cpu" = ia64; then
  8502. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8503. - # chokes on -Wl,-G. The following line is correct:
  8504. - shared_flag='-G'
  8505. - else
  8506. - if test "$aix_use_runtimelinking" = yes; then
  8507. - shared_flag='${wl}-G'
  8508. - else
  8509. - shared_flag='${wl}-bM:SRE'
  8510. - fi
  8511. - fi
  8512. - fi
  8513. -
  8514. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8515. - # It seems that -bexpall does not export symbols beginning with
  8516. - # underscore (_), so it is better to generate a list of symbols to export.
  8517. - _LT_TAGVAR(always_export_symbols, $1)=yes
  8518. - if test "$aix_use_runtimelinking" = yes; then
  8519. - # Warning - without using the other runtime loading flags (-brtl),
  8520. - # -berok will link without error, but may produce a broken library.
  8521. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8522. - # Determine the default libpath from the value encoded in an
  8523. - # empty executable.
  8524. - _LT_SYS_MODULE_PATH_AIX
  8525. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8526. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8527. - else
  8528. - if test "$host_cpu" = ia64; then
  8529. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8530. - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8531. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8532. - else
  8533. - # Determine the default libpath from the value encoded in an
  8534. - # empty executable.
  8535. - _LT_SYS_MODULE_PATH_AIX
  8536. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8537. - # Warning - without using the other run time loading flags,
  8538. - # -berok will link without error, but may produce a broken library.
  8539. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8540. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8541. - # Exported symbols can be pulled into shared objects from archives
  8542. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8543. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8544. - # This is similar to how AIX traditionally builds its shared libraries.
  8545. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8546. - fi
  8547. - fi
  8548. - ;;
  8549. -
  8550. - amigaos*)
  8551. - case $host_cpu in
  8552. - powerpc)
  8553. - # see comment about AmigaOS4 .so support
  8554. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8555. - _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8556. - ;;
  8557. - m68k)
  8558. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8559. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8560. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8561. - ;;
  8562. - esac
  8563. - ;;
  8564. -
  8565. - bsdi[[45]]*)
  8566. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8567. - ;;
  8568. -
  8569. - cygwin* | mingw* | pw32* | cegcc*)
  8570. - # When not using gcc, we currently assume that we are using
  8571. - # Microsoft Visual C++.
  8572. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  8573. - # no search path for DLLs.
  8574. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8575. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8576. - # Tell ltmain to make .lib files, not .a files.
  8577. - libext=lib
  8578. - # Tell ltmain to make .dll files, not .so files.
  8579. - shrext_cmds=".dll"
  8580. - # FIXME: Setting linknames here is a bad hack.
  8581. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8582. - # The linker will automatically build a .lib file if we build a DLL.
  8583. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8584. - # FIXME: Should let the user specify the lib program.
  8585. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8586. - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8587. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8588. - ;;
  8589. -
  8590. - darwin* | rhapsody*)
  8591. - _LT_DARWIN_LINKER_FEATURES($1)
  8592. - ;;
  8593. -
  8594. - dgux*)
  8595. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8596. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8597. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8598. - ;;
  8599. -
  8600. - freebsd1*)
  8601. - _LT_TAGVAR(ld_shlibs, $1)=no
  8602. - ;;
  8603. -
  8604. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8605. - # support. Future versions do this automatically, but an explicit c++rt0.o
  8606. - # does not break anything, and helps significantly (at the cost of a little
  8607. - # extra space).
  8608. - freebsd2.2*)
  8609. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8610. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8611. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8612. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8613. - ;;
  8614. -
  8615. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8616. - freebsd2*)
  8617. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8618. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8619. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8620. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8621. - ;;
  8622. -
  8623. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8624. - freebsd* | dragonfly*)
  8625. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8626. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8627. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8628. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8629. - ;;
  8630. -
  8631. - hpux9*)
  8632. - if test "$GCC" = yes; then
  8633. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8634. - else
  8635. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8636. - fi
  8637. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8638. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8639. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8640. -
  8641. - # hardcode_minus_L: Not really in the search PATH,
  8642. - # but as the default location of the library.
  8643. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8644. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8645. - ;;
  8646. -
  8647. - hpux10*)
  8648. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8649. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8650. - else
  8651. - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8652. - fi
  8653. - if test "$with_gnu_ld" = no; then
  8654. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8655. - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8656. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8657. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8658. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8659. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8660. - # hardcode_minus_L: Not really in the search PATH,
  8661. - # but as the default location of the library.
  8662. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8663. - fi
  8664. - ;;
  8665. -
  8666. - hpux11*)
  8667. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8668. - case $host_cpu in
  8669. - hppa*64*)
  8670. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8671. - ;;
  8672. - ia64*)
  8673. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8674. - ;;
  8675. - *)
  8676. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8677. - ;;
  8678. - esac
  8679. - else
  8680. - case $host_cpu in
  8681. - hppa*64*)
  8682. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8683. - ;;
  8684. - ia64*)
  8685. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8686. - ;;
  8687. - *)
  8688. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8689. - ;;
  8690. - esac
  8691. - fi
  8692. - if test "$with_gnu_ld" = no; then
  8693. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8694. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8695. -
  8696. - case $host_cpu in
  8697. - hppa*64*|ia64*)
  8698. - _LT_TAGVAR(hardcode_direct, $1)=no
  8699. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8700. - ;;
  8701. - *)
  8702. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8703. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8704. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8705. -
  8706. - # hardcode_minus_L: Not really in the search PATH,
  8707. - # but as the default location of the library.
  8708. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8709. - ;;
  8710. - esac
  8711. - fi
  8712. - ;;
  8713. -
  8714. - irix5* | irix6* | nonstopux*)
  8715. - if test "$GCC" = yes; then
  8716. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8717. - # Try to use the -exported_symbol ld option, if it does not
  8718. - # work, assume that -exports_file does not work either and
  8719. - # implicitly export all symbols.
  8720. - save_LDFLAGS="$LDFLAGS"
  8721. - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8722. - AC_LINK_IFELSE(int foo(void) {},
  8723. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8724. - )
  8725. - LDFLAGS="$save_LDFLAGS"
  8726. - else
  8727. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8728. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8729. - fi
  8730. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8731. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8732. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8733. - _LT_TAGVAR(inherit_rpath, $1)=yes
  8734. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8735. - ;;
  8736. + done
  8737. +])
  8738. - netbsd*)
  8739. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8740. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8741. - else
  8742. - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8743. +dnl For those cases where a variable contains several -L and -l options
  8744. +dnl referring to unknown libraries and directories, this macro determines the
  8745. +dnl necessary additional linker options for the runtime path.
  8746. +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
  8747. +dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
  8748. +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
  8749. +dnl otherwise linking without libtool is assumed.
  8750. +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
  8751. +[
  8752. + AC_REQUIRE([AC_LIB_RPATH])
  8753. + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  8754. + $1=
  8755. + if test "$enable_rpath" != no; then
  8756. + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  8757. + dnl Use an explicit option to hardcode directories into the resulting
  8758. + dnl binary.
  8759. + rpathdirs=
  8760. + next=
  8761. + for opt in $2; do
  8762. + if test -n "$next"; then
  8763. + dir="$next"
  8764. + dnl No need to hardcode the standard /usr/lib.
  8765. + if test "X$dir" != "X/usr/$acl_libdirstem"; then
  8766. + rpathdirs="$rpathdirs $dir"
  8767. + fi
  8768. + next=
  8769. + else
  8770. + case $opt in
  8771. + -L) next=yes ;;
  8772. + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
  8773. + dnl No need to hardcode the standard /usr/lib.
  8774. + if test "X$dir" != "X/usr/$acl_libdirstem"; then
  8775. + rpathdirs="$rpathdirs $dir"
  8776. + fi
  8777. + next= ;;
  8778. + *) next= ;;
  8779. + esac
  8780. + fi
  8781. + done
  8782. + if test "X$rpathdirs" != "X"; then
  8783. + if test -n ""$3""; then
  8784. + dnl libtool is used for linking. Use -R options.
  8785. + for dir in $rpathdirs; do
  8786. + $1="${$1}${$1:+ }-R$dir"
  8787. + done
  8788. + else
  8789. + dnl The linker is used for linking directly.
  8790. + if test -n "$acl_hardcode_libdir_separator"; then
  8791. + dnl Weird platform: only the last -rpath option counts, the user
  8792. + dnl must pass all path elements in one option.
  8793. + alldirs=
  8794. + for dir in $rpathdirs; do
  8795. + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
  8796. + done
  8797. + acl_save_libdir="$libdir"
  8798. + libdir="$alldirs"
  8799. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  8800. + libdir="$acl_save_libdir"
  8801. + $1="$flag"
  8802. + else
  8803. + dnl The -rpath options are cumulative.
  8804. + for dir in $rpathdirs; do
  8805. + acl_save_libdir="$libdir"
  8806. + libdir="$dir"
  8807. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  8808. + libdir="$acl_save_libdir"
  8809. + $1="${$1}${$1:+ }$flag"
  8810. + done
  8811. + fi
  8812. + fi
  8813. fi
  8814. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8815. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8816. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8817. - ;;
  8818. -
  8819. - newsos6)
  8820. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8821. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8822. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8823. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8824. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8825. - ;;
  8826. -
  8827. - *nto* | *qnx*)
  8828. - ;;
  8829. + fi
  8830. + fi
  8831. + AC_SUBST([$1])
  8832. +])
  8833. - openbsd*)
  8834. - if test -f /usr/libexec/ld.so; then
  8835. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8836. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8837. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8838. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8839. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8840. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8841. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8842. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8843. - else
  8844. - case $host_os in
  8845. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8846. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8847. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8848. - ;;
  8849. - *)
  8850. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8851. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8852. - ;;
  8853. - esac
  8854. - fi
  8855. - else
  8856. - _LT_TAGVAR(ld_shlibs, $1)=no
  8857. - fi
  8858. - ;;
  8859. +# lib-prefix.m4 serial 5 (gettext-0.15)
  8860. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  8861. +dnl This file is free software; the Free Software Foundation
  8862. +dnl gives unlimited permission to copy and/or distribute it,
  8863. +dnl with or without modifications, as long as this notice is preserved.
  8864. - os2*)
  8865. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8866. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8867. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8868. - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8869. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8870. - ;;
  8871. +dnl From Bruno Haible.
  8872. - osf3*)
  8873. - if test "$GCC" = yes; then
  8874. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8875. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8876. - else
  8877. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8878. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8879. - fi
  8880. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8881. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8882. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8883. - ;;
  8884. +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  8885. +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  8886. +dnl require excessive bracketing.
  8887. +ifdef([AC_HELP_STRING],
  8888. +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  8889. +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  8890. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  8891. - if test "$GCC" = yes; then
  8892. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8893. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8894. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8895. +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  8896. +dnl to access previously installed libraries. The basic assumption is that
  8897. +dnl a user will want packages to use other packages he previously installed
  8898. +dnl with the same --prefix option.
  8899. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  8900. +dnl libraries, but is otherwise very convenient.
  8901. +AC_DEFUN([AC_LIB_PREFIX],
  8902. +[
  8903. + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  8904. + AC_REQUIRE([AC_PROG_CC])
  8905. + AC_REQUIRE([AC_CANONICAL_HOST])
  8906. + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  8907. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  8908. + dnl By default, look in $includedir and $libdir.
  8909. + use_additional=yes
  8910. + AC_LIB_WITH_FINAL_PREFIX([
  8911. + eval additional_includedir=\"$includedir\"
  8912. + eval additional_libdir=\"$libdir\"
  8913. + ])
  8914. + AC_LIB_ARG_WITH([lib-prefix],
  8915. +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  8916. + --without-lib-prefix don't search for libraries in includedir and libdir],
  8917. +[
  8918. + if test "X$withval" = "Xno"; then
  8919. + use_additional=no
  8920. + else
  8921. + if test "X$withval" = "X"; then
  8922. + AC_LIB_WITH_FINAL_PREFIX([
  8923. + eval additional_includedir=\"$includedir\"
  8924. + eval additional_libdir=\"$libdir\"
  8925. + ])
  8926. else
  8927. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8928. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8929. - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8930. - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8931. -
  8932. - # Both c and cxx compiler support -rpath directly
  8933. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8934. + additional_includedir="$withval/include"
  8935. + additional_libdir="$withval/$acl_libdirstem"
  8936. fi
  8937. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8938. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8939. - ;;
  8940. -
  8941. - solaris*)
  8942. - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8943. - if test "$GCC" = yes; then
  8944. - wlarc='${wl}'
  8945. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8947. - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8948. - else
  8949. - case `$CC -V 2>&1` in
  8950. - *"Compilers 5.0"*)
  8951. - wlarc=''
  8952. - _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8953. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8954. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8955. - ;;
  8956. - *)
  8957. - wlarc='${wl}'
  8958. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8959. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8960. - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8961. - ;;
  8962. - esac
  8963. + fi
  8964. +])
  8965. + if test $use_additional = yes; then
  8966. + dnl Potentially add $additional_includedir to $CPPFLAGS.
  8967. + dnl But don't add it
  8968. + dnl 1. if it's the standard /usr/include,
  8969. + dnl 2. if it's already present in $CPPFLAGS,
  8970. + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  8971. + dnl 4. if it doesn't exist as a directory.
  8972. + if test "X$additional_includedir" != "X/usr/include"; then
  8973. + haveit=
  8974. + for x in $CPPFLAGS; do
  8975. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  8976. + if test "X$x" = "X-I$additional_includedir"; then
  8977. + haveit=yes
  8978. + break
  8979. + fi
  8980. + done
  8981. + if test -z "$haveit"; then
  8982. + if test "X$additional_includedir" = "X/usr/local/include"; then
  8983. + if test -n "$GCC"; then
  8984. + case $host_os in
  8985. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  8986. + esac
  8987. + fi
  8988. + fi
  8989. + if test -z "$haveit"; then
  8990. + if test -d "$additional_includedir"; then
  8991. + dnl Really add $additional_includedir to $CPPFLAGS.
  8992. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  8993. + fi
  8994. + fi
  8995. fi
  8996. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8997. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8998. - case $host_os in
  8999. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9000. - *)
  9001. - # The compiler driver will combine and reorder linker options,
  9002. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  9003. - # but is careful enough not to reorder.
  9004. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  9005. - if test "$GCC" = yes; then
  9006. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9007. - else
  9008. - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9009. - fi
  9010. - ;;
  9011. - esac
  9012. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9013. - ;;
  9014. -
  9015. - sunos4*)
  9016. - if test "x$host_vendor" = xsequent; then
  9017. - # Use $CC to link under sequent, because it throws in some extra .o
  9018. - # files that make .init and .fini sections work.
  9019. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9020. - else
  9021. - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9022. + fi
  9023. + dnl Potentially add $additional_libdir to $LDFLAGS.
  9024. + dnl But don't add it
  9025. + dnl 1. if it's the standard /usr/lib,
  9026. + dnl 2. if it's already present in $LDFLAGS,
  9027. + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  9028. + dnl 4. if it doesn't exist as a directory.
  9029. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9030. + haveit=
  9031. + for x in $LDFLAGS; do
  9032. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  9033. + if test "X$x" = "X-L$additional_libdir"; then
  9034. + haveit=yes
  9035. + break
  9036. + fi
  9037. + done
  9038. + if test -z "$haveit"; then
  9039. + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9040. + if test -n "$GCC"; then
  9041. + case $host_os in
  9042. + linux*) haveit=yes;;
  9043. + esac
  9044. + fi
  9045. + fi
  9046. + if test -z "$haveit"; then
  9047. + if test -d "$additional_libdir"; then
  9048. + dnl Really add $additional_libdir to $LDFLAGS.
  9049. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  9050. + fi
  9051. + fi
  9052. fi
  9053. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9054. - _LT_TAGVAR(hardcode_direct, $1)=yes
  9055. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9056. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9057. - ;;
  9058. -
  9059. - sysv4)
  9060. - case $host_vendor in
  9061. - sni)
  9062. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  9064. - ;;
  9065. - siemens)
  9066. - ## LD is ld it makes a PLAMLIB
  9067. - ## CC just makes a GrossModule.
  9068. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9069. - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  9070. - _LT_TAGVAR(hardcode_direct, $1)=no
  9071. - ;;
  9072. - motorola)
  9073. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9074. - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  9075. - ;;
  9076. - esac
  9077. - runpath_var='LD_RUN_PATH'
  9078. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9079. - ;;
  9080. -
  9081. - sysv4.3*)
  9082. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9083. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9084. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  9085. - ;;
  9086. + fi
  9087. + fi
  9088. +])
  9089. - sysv4*MP*)
  9090. - if test -d /usr/nec; then
  9091. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9092. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9093. - runpath_var=LD_RUN_PATH
  9094. - hardcode_runpath_var=yes
  9095. - _LT_TAGVAR(ld_shlibs, $1)=yes
  9096. - fi
  9097. - ;;
  9098. +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  9099. +dnl acl_final_exec_prefix, containing the values to which $prefix and
  9100. +dnl $exec_prefix will expand at the end of the configure script.
  9101. +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  9102. +[
  9103. + dnl Unfortunately, prefix and exec_prefix get only finally determined
  9104. + dnl at the end of configure.
  9105. + if test "X$prefix" = "XNONE"; then
  9106. + acl_final_prefix="$ac_default_prefix"
  9107. + else
  9108. + acl_final_prefix="$prefix"
  9109. + fi
  9110. + if test "X$exec_prefix" = "XNONE"; then
  9111. + acl_final_exec_prefix='${prefix}'
  9112. + else
  9113. + acl_final_exec_prefix="$exec_prefix"
  9114. + fi
  9115. + acl_save_prefix="$prefix"
  9116. + prefix="$acl_final_prefix"
  9117. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  9118. + prefix="$acl_save_prefix"
  9119. +])
  9120. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9121. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9122. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9123. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9124. - runpath_var='LD_RUN_PATH'
  9125. -
  9126. - if test "$GCC" = yes; then
  9127. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9128. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9129. - else
  9130. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9131. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. - fi
  9133. - ;;
  9134. +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  9135. +dnl variables prefix and exec_prefix bound to the values they will have
  9136. +dnl at the end of the configure script.
  9137. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  9138. +[
  9139. + acl_save_prefix="$prefix"
  9140. + prefix="$acl_final_prefix"
  9141. + acl_save_exec_prefix="$exec_prefix"
  9142. + exec_prefix="$acl_final_exec_prefix"
  9143. + $1
  9144. + exec_prefix="$acl_save_exec_prefix"
  9145. + prefix="$acl_save_prefix"
  9146. +])
  9147. - sysv5* | sco3.2v5* | sco5v6*)
  9148. - # Note: We can NOT use -z defs as we might desire, because we do not
  9149. - # link with -lc, and that would cause any symbols used from libc to
  9150. - # always be unresolved, which means just about no library would
  9151. - # ever link correctly. If we're not using GNU ld we use -z text
  9152. - # though, which does catch some bad symbols but isn't as heavy-handed
  9153. - # as -z defs.
  9154. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9155. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9156. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9157. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9158. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9159. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9160. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9161. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9162. - runpath_var='LD_RUN_PATH'
  9163. -
  9164. - if test "$GCC" = yes; then
  9165. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9166. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9167. - else
  9168. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9169. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9170. +dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
  9171. +dnl the basename of the libdir, either "lib" or "lib64".
  9172. +AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
  9173. +[
  9174. + dnl There is no formal standard regarding lib and lib64. The current
  9175. + dnl practice is that on a system supporting 32-bit and 64-bit instruction
  9176. + dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
  9177. + dnl libraries go under $prefix/lib. We determine the compiler's default
  9178. + dnl mode by looking at the compiler's library search path. If at least
  9179. + dnl of its elements ends in /lib64 or points to a directory whose absolute
  9180. + dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
  9181. + dnl default, namely "lib".
  9182. + acl_libdirstem=lib
  9183. + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  9184. + if test -n "$searchpath"; then
  9185. + acl_save_IFS="${IFS= }"; IFS=":"
  9186. + for searchdir in $searchpath; do
  9187. + if test -d "$searchdir"; then
  9188. + case "$searchdir" in
  9189. + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  9190. + *) searchdir=`cd "$searchdir" && pwd`
  9191. + case "$searchdir" in
  9192. + */lib64 ) acl_libdirstem=lib64 ;;
  9193. + esac ;;
  9194. + esac
  9195. fi
  9196. - ;;
  9197. -
  9198. - uts4*)
  9199. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9200. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9201. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9202. - ;;
  9203. -
  9204. - *)
  9205. - _LT_TAGVAR(ld_shlibs, $1)=no
  9206. - ;;
  9207. - esac
  9208. -
  9209. - if test x$host_vendor = xsni; then
  9210. - case $host in
  9211. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9212. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  9213. - ;;
  9214. - esac
  9215. - fi
  9216. + done
  9217. + IFS="$acl_save_IFS"
  9218. fi
  9219. ])
  9220. -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9221. -test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9222. -
  9223. -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  9224. -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  9225. -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  9226. -_LT_DECL([], [extract_expsyms_cmds], [2],
  9227. - [The commands to extract the exported symbol list from a shared archive])
  9228. +# nls.m4 serial 3 (gettext-0.15)
  9229. +dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
  9230. +dnl This file is free software; the Free Software Foundation
  9231. +dnl gives unlimited permission to copy and/or distribute it,
  9232. +dnl with or without modifications, as long as this notice is preserved.
  9233. +dnl
  9234. +dnl This file can can be used in projects which are not available under
  9235. +dnl the GNU General Public License or the GNU Library General Public
  9236. +dnl License but which still want to provide support for the GNU gettext
  9237. +dnl functionality.
  9238. +dnl Please note that the actual code of the GNU gettext library is covered
  9239. +dnl by the GNU Library General Public License, and the rest of the GNU
  9240. +dnl gettext package package is covered by the GNU General Public License.
  9241. +dnl They are *not* in the public domain.
  9242. -#
  9243. -# Do we need to explicitly link libc?
  9244. -#
  9245. -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  9246. -x|xyes)
  9247. - # Assume -lc should be added
  9248. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9249. -
  9250. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  9251. - case $_LT_TAGVAR(archive_cmds, $1) in
  9252. - *'~'*)
  9253. - # FIXME: we may have to deal with multi-command sequences.
  9254. - ;;
  9255. - '$CC '*)
  9256. - # Test whether the compiler implicitly links with -lc since on some
  9257. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9258. - # to ld, don't add -lc before -lgcc.
  9259. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  9260. - $RM conftest*
  9261. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9262. -
  9263. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  9264. - soname=conftest
  9265. - lib=conftest
  9266. - libobjs=conftest.$ac_objext
  9267. - deplibs=
  9268. - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  9269. - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  9270. - compiler_flags=-v
  9271. - linker_flags=-v
  9272. - verstring=
  9273. - output_objdir=.
  9274. - libname=conftest
  9275. - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  9276. - _LT_TAGVAR(allow_undefined_flag, $1)=
  9277. - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  9278. - then
  9279. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9280. - else
  9281. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9282. - fi
  9283. - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9284. - else
  9285. - cat conftest.err 1>&5
  9286. - fi
  9287. - $RM conftest*
  9288. - AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9289. - ;;
  9290. - esac
  9291. - fi
  9292. - ;;
  9293. -esac
  9294. +dnl Authors:
  9295. +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  9296. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  9297. -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9298. - [Whether or not to add -lc for building shared libraries])
  9299. -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9300. - [enable_shared_with_static_runtimes], [0],
  9301. - [Whether or not to disallow shared libs when runtime libs are static])
  9302. -_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9303. - [Compiler flag to allow reflexive dlopens])
  9304. -_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9305. - [Compiler flag to generate shared objects directly from archives])
  9306. -_LT_TAGDECL([], [compiler_needs_object], [1],
  9307. - [Whether the compiler copes with passing no objects directly])
  9308. -_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9309. - [Create an old-style archive from a shared archive])
  9310. -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9311. - [Create a temporary old-style archive to link instead of a shared archive])
  9312. -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9313. -_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9314. -_LT_TAGDECL([], [module_cmds], [2],
  9315. - [Commands used to build a loadable module if different from building
  9316. - a shared archive.])
  9317. -_LT_TAGDECL([], [module_expsym_cmds], [2])
  9318. -_LT_TAGDECL([], [with_gnu_ld], [1],
  9319. - [Whether we are building with GNU ld or not])
  9320. -_LT_TAGDECL([], [allow_undefined_flag], [1],
  9321. - [Flag that allows shared libraries with undefined symbols to be built])
  9322. -_LT_TAGDECL([], [no_undefined_flag], [1],
  9323. - [Flag that enforces no undefined symbols])
  9324. -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9325. - [Flag to hardcode $libdir into a binary during linking.
  9326. - This must work even if $libdir does not exist])
  9327. -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9328. - [[If ld is used when linking, flag to hardcode $libdir into a binary
  9329. - during linking. This must work even if $libdir does not exist]])
  9330. -_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9331. - [Whether we need a single "-rpath" flag with a separated argument])
  9332. -_LT_TAGDECL([], [hardcode_direct], [0],
  9333. - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9334. - DIR into the resulting binary])
  9335. -_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9336. - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9337. - DIR into the resulting binary and the resulting library dependency is
  9338. - "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9339. - library is relocated])
  9340. -_LT_TAGDECL([], [hardcode_minus_L], [0],
  9341. - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9342. - into the resulting binary])
  9343. -_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9344. - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9345. - into the resulting binary])
  9346. -_LT_TAGDECL([], [hardcode_automatic], [0],
  9347. - [Set to "yes" if building a shared library automatically hardcodes DIR
  9348. - into the library and all subsequent libraries and executables linked
  9349. - against it])
  9350. -_LT_TAGDECL([], [inherit_rpath], [0],
  9351. - [Set to yes if linker adds runtime paths of dependent libraries
  9352. - to runtime path list])
  9353. -_LT_TAGDECL([], [link_all_deplibs], [0],
  9354. - [Whether libtool must link a program against all its dependency libraries])
  9355. -_LT_TAGDECL([], [fix_srcfile_path], [1],
  9356. - [Fix the shell variable $srcfile for the compiler])
  9357. -_LT_TAGDECL([], [always_export_symbols], [0],
  9358. - [Set to "yes" if exported symbols are required])
  9359. -_LT_TAGDECL([], [export_symbols_cmds], [2],
  9360. - [The commands to list exported symbols])
  9361. -_LT_TAGDECL([], [exclude_expsyms], [1],
  9362. - [Symbols that should not be listed in the preloaded symbols])
  9363. -_LT_TAGDECL([], [include_expsyms], [1],
  9364. - [Symbols that must always be exported])
  9365. -_LT_TAGDECL([], [prelink_cmds], [2],
  9366. - [Commands necessary for linking programs (against libraries) with templates])
  9367. -_LT_TAGDECL([], [file_list_spec], [1],
  9368. - [Specify filename containing input files])
  9369. -dnl FIXME: Not yet implemented
  9370. -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9371. -dnl [Compiler flag to generate thread safe objects])
  9372. -])# _LT_LINKER_SHLIBS
  9373. -
  9374. -
  9375. -# _LT_LANG_C_CONFIG([TAG])
  9376. -# ------------------------
  9377. -# Ensure that the configuration variables for a C compiler are suitably
  9378. -# defined. These variables are subsequently used by _LT_CONFIG to write
  9379. -# the compiler configuration to `libtool'.
  9380. -m4_defun([_LT_LANG_C_CONFIG],
  9381. -[m4_require([_LT_DECL_EGREP])dnl
  9382. -lt_save_CC="$CC"
  9383. -AC_LANG_PUSH(C)
  9384. -
  9385. -# Source file extension for C test sources.
  9386. -ac_ext=c
  9387. -
  9388. -# Object file extension for compiled C test sources.
  9389. -objext=o
  9390. -_LT_TAGVAR(objext, $1)=$objext
  9391. -
  9392. -# Code to be used in simple compile tests
  9393. -lt_simple_compile_test_code="int some_variable = 0;"
  9394. -
  9395. -# Code to be used in simple link tests
  9396. -lt_simple_link_test_code='int main(){return(0);}'
  9397. -
  9398. -_LT_TAG_COMPILER
  9399. -# Save the default compiler, since it gets overwritten when the other
  9400. -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9401. -compiler_DEFAULT=$CC
  9402. -
  9403. -# save warnings/boilerplate of simple test code
  9404. -_LT_COMPILER_BOILERPLATE
  9405. -_LT_LINKER_BOILERPLATE
  9406. -
  9407. -if test -n "$compiler"; then
  9408. - _LT_COMPILER_NO_RTTI($1)
  9409. - _LT_COMPILER_PIC($1)
  9410. - _LT_COMPILER_C_O($1)
  9411. - _LT_COMPILER_FILE_LOCKS($1)
  9412. - _LT_LINKER_SHLIBS($1)
  9413. - _LT_SYS_DYNAMIC_LINKER($1)
  9414. - _LT_LINKER_HARDCODE_LIBPATH($1)
  9415. - LT_SYS_DLOPEN_SELF
  9416. - _LT_CMD_STRIPLIB
  9417. -
  9418. - # Report which library types will actually be built
  9419. - AC_MSG_CHECKING([if libtool supports shared libraries])
  9420. - AC_MSG_RESULT([$can_build_shared])
  9421. -
  9422. - AC_MSG_CHECKING([whether to build shared libraries])
  9423. - test "$can_build_shared" = "no" && enable_shared=no
  9424. -
  9425. - # On AIX, shared libraries and static libraries use the same namespace, and
  9426. - # are all built from PIC.
  9427. - case $host_os in
  9428. - aix3*)
  9429. - test "$enable_shared" = yes && enable_static=no
  9430. - if test -n "$RANLIB"; then
  9431. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9432. - postinstall_cmds='$RANLIB $lib'
  9433. - fi
  9434. - ;;
  9435. +AC_PREREQ(2.50)
  9436. - aix[[4-9]]*)
  9437. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9438. - test "$enable_shared" = yes && enable_static=no
  9439. - fi
  9440. - ;;
  9441. - esac
  9442. - AC_MSG_RESULT([$enable_shared])
  9443. +AC_DEFUN([AM_NLS],
  9444. +[
  9445. + AC_MSG_CHECKING([whether NLS is requested])
  9446. + dnl Default is enabled NLS
  9447. + AC_ARG_ENABLE(nls,
  9448. + [ --disable-nls do not use Native Language Support],
  9449. + USE_NLS=$enableval, USE_NLS=yes)
  9450. + AC_MSG_RESULT($USE_NLS)
  9451. + AC_SUBST(USE_NLS)
  9452. +])
  9453. - AC_MSG_CHECKING([whether to build static libraries])
  9454. - # Make sure either enable_shared or enable_static is yes.
  9455. - test "$enable_shared" = yes || enable_static=yes
  9456. - AC_MSG_RESULT([$enable_static])
  9457. +# po.m4 serial 15 (gettext-0.17)
  9458. +dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  9459. +dnl This file is free software; the Free Software Foundation
  9460. +dnl gives unlimited permission to copy and/or distribute it,
  9461. +dnl with or without modifications, as long as this notice is preserved.
  9462. +dnl
  9463. +dnl This file can can be used in projects which are not available under
  9464. +dnl the GNU General Public License or the GNU Library General Public
  9465. +dnl License but which still want to provide support for the GNU gettext
  9466. +dnl functionality.
  9467. +dnl Please note that the actual code of the GNU gettext library is covered
  9468. +dnl by the GNU Library General Public License, and the rest of the GNU
  9469. +dnl gettext package package is covered by the GNU General Public License.
  9470. +dnl They are *not* in the public domain.
  9471. - _LT_CONFIG($1)
  9472. -fi
  9473. -AC_LANG_POP
  9474. -CC="$lt_save_CC"
  9475. -])# _LT_LANG_C_CONFIG
  9476. +dnl Authors:
  9477. +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  9478. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  9479. +AC_PREREQ(2.50)
  9480. -# _LT_PROG_CXX
  9481. -# ------------
  9482. -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9483. -# compiler, we have our own version here.
  9484. -m4_defun([_LT_PROG_CXX],
  9485. +dnl Checks for all prerequisites of the po subdirectory.
  9486. +AC_DEFUN([AM_PO_SUBDIRS],
  9487. [
  9488. -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9489. -AC_PROG_CXX
  9490. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9491. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9492. - (test "X$CXX" != "Xg++"))) ; then
  9493. - AC_PROG_CXXCPP
  9494. -else
  9495. - _lt_caught_CXX_error=yes
  9496. -fi
  9497. -popdef([AC_MSG_ERROR])
  9498. -])# _LT_PROG_CXX
  9499. -
  9500. -dnl aclocal-1.4 backwards compatibility:
  9501. -dnl AC_DEFUN([_LT_PROG_CXX], [])
  9502. -
  9503. -
  9504. -# _LT_LANG_CXX_CONFIG([TAG])
  9505. -# --------------------------
  9506. -# Ensure that the configuration variables for a C++ compiler are suitably
  9507. -# defined. These variables are subsequently used by _LT_CONFIG to write
  9508. -# the compiler configuration to `libtool'.
  9509. -m4_defun([_LT_LANG_CXX_CONFIG],
  9510. -[AC_REQUIRE([_LT_PROG_CXX])dnl
  9511. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9512. -m4_require([_LT_DECL_EGREP])dnl
  9513. -
  9514. -AC_LANG_PUSH(C++)
  9515. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9516. -_LT_TAGVAR(allow_undefined_flag, $1)=
  9517. -_LT_TAGVAR(always_export_symbols, $1)=no
  9518. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  9519. -_LT_TAGVAR(compiler_needs_object, $1)=no
  9520. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9521. -_LT_TAGVAR(hardcode_direct, $1)=no
  9522. -_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9523. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9524. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9525. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9526. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  9527. -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9528. -_LT_TAGVAR(hardcode_automatic, $1)=no
  9529. -_LT_TAGVAR(inherit_rpath, $1)=no
  9530. -_LT_TAGVAR(module_cmds, $1)=
  9531. -_LT_TAGVAR(module_expsym_cmds, $1)=
  9532. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9533. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9534. -_LT_TAGVAR(no_undefined_flag, $1)=
  9535. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9536. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9537. -
  9538. -# Source file extension for C++ test sources.
  9539. -ac_ext=cpp
  9540. -
  9541. -# Object file extension for compiled C++ test sources.
  9542. -objext=o
  9543. -_LT_TAGVAR(objext, $1)=$objext
  9544. -
  9545. -# No sense in running all these tests if we already determined that
  9546. -# the CXX compiler isn't working. Some variables (like enable_shared)
  9547. -# are currently assumed to apply to all compilers on this platform,
  9548. -# and will be corrupted by setting them based on a non-working compiler.
  9549. -if test "$_lt_caught_CXX_error" != yes; then
  9550. - # Code to be used in simple compile tests
  9551. - lt_simple_compile_test_code="int some_variable = 0;"
  9552. -
  9553. - # Code to be used in simple link tests
  9554. - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9555. -
  9556. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9557. - _LT_TAG_COMPILER
  9558. -
  9559. - # save warnings/boilerplate of simple test code
  9560. - _LT_COMPILER_BOILERPLATE
  9561. - _LT_LINKER_BOILERPLATE
  9562. -
  9563. - # Allow CC to be a program name with arguments.
  9564. - lt_save_CC=$CC
  9565. - lt_save_LD=$LD
  9566. - lt_save_GCC=$GCC
  9567. - GCC=$GXX
  9568. - lt_save_with_gnu_ld=$with_gnu_ld
  9569. - lt_save_path_LD=$lt_cv_path_LD
  9570. - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9571. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9572. - else
  9573. - $as_unset lt_cv_prog_gnu_ld
  9574. - fi
  9575. - if test -n "${lt_cv_path_LDCXX+set}"; then
  9576. - lt_cv_path_LD=$lt_cv_path_LDCXX
  9577. - else
  9578. - $as_unset lt_cv_path_LD
  9579. - fi
  9580. - test -z "${LDCXX+set}" || LD=$LDCXX
  9581. - CC=${CXX-"c++"}
  9582. - compiler=$CC
  9583. - _LT_TAGVAR(compiler, $1)=$CC
  9584. - _LT_CC_BASENAME([$compiler])
  9585. -
  9586. - if test -n "$compiler"; then
  9587. - # We don't want -fno-exception when compiling C++ code, so set the
  9588. - # no_builtin_flag separately
  9589. - if test "$GXX" = yes; then
  9590. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9591. - else
  9592. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9593. - fi
  9594. + AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  9595. + AC_REQUIRE([AC_PROG_INSTALL])dnl
  9596. + AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
  9597. + AC_REQUIRE([AM_NLS])dnl
  9598. - if test "$GXX" = yes; then
  9599. - # Set up default GNU C++ configuration
  9600. + dnl Release version of the gettext macros. This is used to ensure that
  9601. + dnl the gettext macros and po/Makefile.in.in are in sync.
  9602. + AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
  9603. - LT_PATH_LD
  9604. + dnl Perform the following tests also if --disable-nls has been given,
  9605. + dnl because they are needed for "make dist" to work.
  9606. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9607. - # archiving commands below assume that GNU ld is being used.
  9608. - if test "$with_gnu_ld" = yes; then
  9609. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9610. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9611. -
  9612. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9613. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9614. -
  9615. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9616. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9617. - # investigate it a little bit more. (MM)
  9618. - wlarc='${wl}'
  9619. -
  9620. - # ancient GNU ld didn't support --whole-archive et. al.
  9621. - if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9622. - $GREP 'no-whole-archive' > /dev/null; then
  9623. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9624. - else
  9625. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9626. - fi
  9627. - else
  9628. - with_gnu_ld=no
  9629. - wlarc=
  9630. + dnl Search for GNU msgfmt in the PATH.
  9631. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
  9632. + dnl The second test excludes FreeBSD msgfmt.
  9633. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  9634. + [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  9635. + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  9636. + :)
  9637. + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  9638. - # A generic and very simple default shared library creation
  9639. - # command for GNU C++ for the case where it uses the native
  9640. - # linker, instead of GNU ld. If possible, this setting should
  9641. - # overridden to take advantage of the native linker features on
  9642. - # the platform it is being used on.
  9643. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9644. - fi
  9645. + dnl Test whether it is GNU msgfmt >= 0.15.
  9646. +changequote(,)dnl
  9647. + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9648. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9649. + *) MSGFMT_015=$MSGFMT ;;
  9650. + esac
  9651. +changequote([,])dnl
  9652. + AC_SUBST([MSGFMT_015])
  9653. +changequote(,)dnl
  9654. + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9655. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9656. + *) GMSGFMT_015=$GMSGFMT ;;
  9657. + esac
  9658. +changequote([,])dnl
  9659. + AC_SUBST([GMSGFMT_015])
  9660. - # Commands to make compiler produce verbose output that lists
  9661. - # what "hidden" libraries, object files and flags are used when
  9662. - # linking a shared library.
  9663. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9664. + dnl Search for GNU xgettext 0.12 or newer in the PATH.
  9665. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
  9666. + dnl The second test excludes FreeBSD xgettext.
  9667. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  9668. + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  9669. + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  9670. + :)
  9671. + dnl Remove leftover from FreeBSD xgettext call.
  9672. + rm -f messages.po
  9673. - else
  9674. - GXX=no
  9675. - with_gnu_ld=no
  9676. - wlarc=
  9677. - fi
  9678. + dnl Test whether it is GNU xgettext >= 0.15.
  9679. +changequote(,)dnl
  9680. + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9681. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9682. + *) XGETTEXT_015=$XGETTEXT ;;
  9683. + esac
  9684. +changequote([,])dnl
  9685. + AC_SUBST([XGETTEXT_015])
  9686. - # PORTME: fill in a description of your system's C++ link characteristics
  9687. - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9688. - _LT_TAGVAR(ld_shlibs, $1)=yes
  9689. - case $host_os in
  9690. - aix3*)
  9691. - # FIXME: insert proper C++ library support
  9692. - _LT_TAGVAR(ld_shlibs, $1)=no
  9693. - ;;
  9694. - aix[[4-9]]*)
  9695. - if test "$host_cpu" = ia64; then
  9696. - # On IA64, the linker does run time linking by default, so we don't
  9697. - # have to do anything special.
  9698. - aix_use_runtimelinking=no
  9699. - exp_sym_flag='-Bexport'
  9700. - no_entry_flag=""
  9701. - else
  9702. - aix_use_runtimelinking=no
  9703. + dnl Search for GNU msgmerge 0.11 or newer in the PATH.
  9704. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
  9705. + [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
  9706. - # Test if we are trying to use run time linking or normal
  9707. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9708. - # need to do runtime linking.
  9709. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9710. - for ld_flag in $LDFLAGS; do
  9711. - case $ld_flag in
  9712. - *-brtl*)
  9713. - aix_use_runtimelinking=yes
  9714. - break
  9715. - ;;
  9716. - esac
  9717. - done
  9718. - ;;
  9719. - esac
  9720. + dnl Installation directories.
  9721. + dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
  9722. + dnl have to define it here, so that it can be used in po/Makefile.
  9723. + test -n "$localedir" || localedir='${datadir}/locale'
  9724. + AC_SUBST([localedir])
  9725. - exp_sym_flag='-bexport'
  9726. - no_entry_flag='-bnoentry'
  9727. - fi
  9728. + dnl Support for AM_XGETTEXT_OPTION.
  9729. + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9730. + AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
  9731. - # When large executables or shared objects are built, AIX ld can
  9732. - # have problems creating the table of contents. If linking a library
  9733. - # or program results in "error TOC overflow" add -mminimal-toc to
  9734. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9735. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9736. -
  9737. - _LT_TAGVAR(archive_cmds, $1)=''
  9738. - _LT_TAGVAR(hardcode_direct, $1)=yes
  9739. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9740. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9741. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9742. - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9743. -
  9744. - if test "$GXX" = yes; then
  9745. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9746. - # We only want to do this on AIX 4.2 and lower, the check
  9747. - # below for broken collect2 doesn't work under 4.3+
  9748. - collect2name=`${CC} -print-prog-name=collect2`
  9749. - if test -f "$collect2name" &&
  9750. - strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9751. - then
  9752. - # We have reworked collect2
  9753. - :
  9754. - else
  9755. - # We have old collect2
  9756. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9757. - # It fails to find uninstalled libraries when the uninstalled
  9758. - # path is not listed in the libpath. Setting hardcode_minus_L
  9759. - # to unsupported forces relinking
  9760. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9761. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9762. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9763. - fi
  9764. - esac
  9765. - shared_flag='-shared'
  9766. - if test "$aix_use_runtimelinking" = yes; then
  9767. - shared_flag="$shared_flag "'${wl}-G'
  9768. - fi
  9769. - else
  9770. - # not using gcc
  9771. - if test "$host_cpu" = ia64; then
  9772. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9773. - # chokes on -Wl,-G. The following line is correct:
  9774. - shared_flag='-G'
  9775. + AC_CONFIG_COMMANDS([po-directories], [[
  9776. + for ac_file in $CONFIG_FILES; do
  9777. + # Support "outfile[:infile[:infile...]]"
  9778. + case "$ac_file" in
  9779. + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9780. + esac
  9781. + # PO directories have a Makefile.in generated from Makefile.in.in.
  9782. + case "$ac_file" in */Makefile.in)
  9783. + # Adjust a relative srcdir.
  9784. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  9785. + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  9786. + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  9787. + # In autoconf-2.13 it is called $ac_given_srcdir.
  9788. + # In autoconf-2.50 it is called $srcdir.
  9789. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  9790. + case "$ac_given_srcdir" in
  9791. + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  9792. + /*) top_srcdir="$ac_given_srcdir" ;;
  9793. + *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9794. + esac
  9795. + # Treat a directory as a PO directory if and only if it has a
  9796. + # POTFILES.in file. This allows packages to have multiple PO
  9797. + # directories under different names or in different locations.
  9798. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  9799. + rm -f "$ac_dir/POTFILES"
  9800. + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  9801. + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  9802. + POMAKEFILEDEPS="POTFILES.in"
  9803. + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  9804. + # on $ac_dir but don't depend on user-specified configuration
  9805. + # parameters.
  9806. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  9807. + # The LINGUAS file contains the set of available languages.
  9808. + if test -n "$OBSOLETE_ALL_LINGUAS"; then
  9809. + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  9810. + fi
  9811. + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  9812. + # Hide the ALL_LINGUAS assigment from automake < 1.5.
  9813. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  9814. + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  9815. else
  9816. - if test "$aix_use_runtimelinking" = yes; then
  9817. - shared_flag='${wl}-G'
  9818. - else
  9819. - shared_flag='${wl}-bM:SRE'
  9820. - fi
  9821. + # The set of available languages was given in configure.in.
  9822. + # Hide the ALL_LINGUAS assigment from automake < 1.5.
  9823. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  9824. fi
  9825. - fi
  9826. -
  9827. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9828. - # It seems that -bexpall does not export symbols beginning with
  9829. - # underscore (_), so it is better to generate a list of symbols to
  9830. - # export.
  9831. - _LT_TAGVAR(always_export_symbols, $1)=yes
  9832. - if test "$aix_use_runtimelinking" = yes; then
  9833. - # Warning - without using the other runtime loading flags (-brtl),
  9834. - # -berok will link without error, but may produce a broken library.
  9835. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9836. - # Determine the default libpath from the value encoded in an empty
  9837. - # executable.
  9838. - _LT_SYS_MODULE_PATH_AIX
  9839. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9840. -
  9841. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9842. - else
  9843. - if test "$host_cpu" = ia64; then
  9844. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9845. - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9846. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9847. - else
  9848. - # Determine the default libpath from the value encoded in an
  9849. - # empty executable.
  9850. - _LT_SYS_MODULE_PATH_AIX
  9851. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9852. - # Warning - without using the other run time loading flags,
  9853. - # -berok will link without error, but may produce a broken library.
  9854. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9855. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9856. - # Exported symbols can be pulled into shared objects from archives
  9857. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9858. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9859. - # This is similar to how AIX traditionally builds its shared
  9860. - # libraries.
  9861. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9862. + # Compute POFILES
  9863. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  9864. + # Compute UPDATEPOFILES
  9865. + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  9866. + # Compute DUMMYPOFILES
  9867. + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  9868. + # Compute GMOFILES
  9869. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  9870. + case "$ac_given_srcdir" in
  9871. + .) srcdirpre= ;;
  9872. + *) srcdirpre='$(srcdir)/' ;;
  9873. + esac
  9874. + POFILES=
  9875. + UPDATEPOFILES=
  9876. + DUMMYPOFILES=
  9877. + GMOFILES=
  9878. + for lang in $ALL_LINGUAS; do
  9879. + POFILES="$POFILES $srcdirpre$lang.po"
  9880. + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  9881. + DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  9882. + GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  9883. + done
  9884. + # CATALOGS depends on both $ac_dir and the user's LINGUAS
  9885. + # environment variable.
  9886. + INST_LINGUAS=
  9887. + if test -n "$ALL_LINGUAS"; then
  9888. + for presentlang in $ALL_LINGUAS; do
  9889. + useit=no
  9890. + if test "%UNSET%" != "$LINGUAS"; then
  9891. + desiredlanguages="$LINGUAS"
  9892. + else
  9893. + desiredlanguages="$ALL_LINGUAS"
  9894. + fi
  9895. + for desiredlang in $desiredlanguages; do
  9896. + # Use the presentlang catalog if desiredlang is
  9897. + # a. equal to presentlang, or
  9898. + # b. a variant of presentlang (because in this case,
  9899. + # presentlang can be used as a fallback for messages
  9900. + # which are not translated in the desiredlang catalog).
  9901. + case "$desiredlang" in
  9902. + "$presentlang"*) useit=yes;;
  9903. + esac
  9904. + done
  9905. + if test $useit = yes; then
  9906. + INST_LINGUAS="$INST_LINGUAS $presentlang"
  9907. + fi
  9908. + done
  9909. fi
  9910. - fi
  9911. - ;;
  9912. -
  9913. - beos*)
  9914. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9915. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9916. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9917. - # support --undefined. This deserves some investigation. FIXME
  9918. - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9919. - else
  9920. - _LT_TAGVAR(ld_shlibs, $1)=no
  9921. - fi
  9922. - ;;
  9923. -
  9924. - chorus*)
  9925. - case $cc_basename in
  9926. - *)
  9927. - # FIXME: insert proper C++ library support
  9928. - _LT_TAGVAR(ld_shlibs, $1)=no
  9929. - ;;
  9930. - esac
  9931. - ;;
  9932. -
  9933. - cygwin* | mingw* | pw32* | cegcc*)
  9934. - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9935. - # as there is no search path for DLLs.
  9936. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9937. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9938. - _LT_TAGVAR(always_export_symbols, $1)=no
  9939. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9940. -
  9941. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9942. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9943. - # If the export-symbols file already is a .def file (1st line
  9944. - # is EXPORTS), use it as is; otherwise, prepend...
  9945. - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9946. - cp $export_symbols $output_objdir/$soname.def;
  9947. - else
  9948. - echo EXPORTS > $output_objdir/$soname.def;
  9949. - cat $export_symbols >> $output_objdir/$soname.def;
  9950. - fi~
  9951. - $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'
  9952. - else
  9953. - _LT_TAGVAR(ld_shlibs, $1)=no
  9954. - fi
  9955. - ;;
  9956. - darwin* | rhapsody*)
  9957. - _LT_DARWIN_LINKER_FEATURES($1)
  9958. - ;;
  9959. -
  9960. - dgux*)
  9961. - case $cc_basename in
  9962. - ec++*)
  9963. - # FIXME: insert proper C++ library support
  9964. - _LT_TAGVAR(ld_shlibs, $1)=no
  9965. - ;;
  9966. - ghcx*)
  9967. - # Green Hills C++ Compiler
  9968. - # FIXME: insert proper C++ library support
  9969. - _LT_TAGVAR(ld_shlibs, $1)=no
  9970. - ;;
  9971. - *)
  9972. - # FIXME: insert proper C++ library support
  9973. - _LT_TAGVAR(ld_shlibs, $1)=no
  9974. - ;;
  9975. - esac
  9976. - ;;
  9977. -
  9978. - freebsd[[12]]*)
  9979. - # C++ shared libraries reported to be fairly broken before
  9980. - # switch to ELF
  9981. - _LT_TAGVAR(ld_shlibs, $1)=no
  9982. - ;;
  9983. -
  9984. - freebsd-elf*)
  9985. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9986. - ;;
  9987. -
  9988. - freebsd* | dragonfly*)
  9989. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9990. - # conventions
  9991. - _LT_TAGVAR(ld_shlibs, $1)=yes
  9992. - ;;
  9993. -
  9994. - gnu*)
  9995. - ;;
  9996. -
  9997. - hpux9*)
  9998. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9999. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10000. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10001. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10002. - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10003. - # but as the default
  10004. - # location of the library.
  10005. -
  10006. - case $cc_basename in
  10007. - CC*)
  10008. - # FIXME: insert proper C++ library support
  10009. - _LT_TAGVAR(ld_shlibs, $1)=no
  10010. - ;;
  10011. - aCC*)
  10012. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10013. - # Commands to make compiler produce verbose output that lists
  10014. - # what "hidden" libraries, object files and flags are used when
  10015. - # linking a shared library.
  10016. - #
  10017. - # There doesn't appear to be a way to prevent this compiler from
  10018. - # explicitly linking system object files so we need to strip them
  10019. - # from the output so that they don't get included in the library
  10020. - # dependencies.
  10021. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10022. - ;;
  10023. - *)
  10024. - if test "$GXX" = yes; then
  10025. - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10026. - else
  10027. - # FIXME: insert proper C++ library support
  10028. - _LT_TAGVAR(ld_shlibs, $1)=no
  10029. + CATALOGS=
  10030. + if test -n "$INST_LINGUAS"; then
  10031. + for lang in $INST_LINGUAS; do
  10032. + CATALOGS="$CATALOGS $lang.gmo"
  10033. + done
  10034. + fi
  10035. + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10036. + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  10037. + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10038. + if test -f "$f"; then
  10039. + case "$f" in
  10040. + *.orig | *.bak | *~) ;;
  10041. + *) cat "$f" >> "$ac_dir/Makefile" ;;
  10042. + esac
  10043. fi
  10044. - ;;
  10045. - esac
  10046. - ;;
  10047. -
  10048. - hpux10*|hpux11*)
  10049. - if test $with_gnu_ld = no; then
  10050. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10051. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10052. -
  10053. - case $host_cpu in
  10054. - hppa*64*|ia64*)
  10055. - ;;
  10056. - *)
  10057. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10058. - ;;
  10059. - esac
  10060. + done
  10061. fi
  10062. - case $host_cpu in
  10063. - hppa*64*|ia64*)
  10064. - _LT_TAGVAR(hardcode_direct, $1)=no
  10065. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10066. - ;;
  10067. - *)
  10068. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10069. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10070. - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10071. - # but as the default
  10072. - # location of the library.
  10073. - ;;
  10074. - esac
  10075. -
  10076. - case $cc_basename in
  10077. - CC*)
  10078. - # FIXME: insert proper C++ library support
  10079. - _LT_TAGVAR(ld_shlibs, $1)=no
  10080. - ;;
  10081. - aCC*)
  10082. - case $host_cpu in
  10083. - hppa*64*)
  10084. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10085. - ;;
  10086. - ia64*)
  10087. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10088. - ;;
  10089. - *)
  10090. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10091. - ;;
  10092. - esac
  10093. - # Commands to make compiler produce verbose output that lists
  10094. - # what "hidden" libraries, object files and flags are used when
  10095. - # linking a shared library.
  10096. - #
  10097. - # There doesn't appear to be a way to prevent this compiler from
  10098. - # explicitly linking system object files so we need to strip them
  10099. - # from the output so that they don't get included in the library
  10100. - # dependencies.
  10101. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10102. - ;;
  10103. - *)
  10104. - if test "$GXX" = yes; then
  10105. - if test $with_gnu_ld = no; then
  10106. - case $host_cpu in
  10107. - hppa*64*)
  10108. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10109. - ;;
  10110. - ia64*)
  10111. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10112. - ;;
  10113. - *)
  10114. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10115. - ;;
  10116. - esac
  10117. - fi
  10118. - else
  10119. - # FIXME: insert proper C++ library support
  10120. - _LT_TAGVAR(ld_shlibs, $1)=no
  10121. - fi
  10122. - ;;
  10123. - esac
  10124. - ;;
  10125. -
  10126. - interix[[3-9]]*)
  10127. - _LT_TAGVAR(hardcode_direct, $1)=no
  10128. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10129. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10130. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10131. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10132. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  10133. - # default) and relocated if they conflict, which is a slow very memory
  10134. - # consuming and fragmenting process. To avoid this, we pick a random,
  10135. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10136. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10137. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10138. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10139. - ;;
  10140. - irix5* | irix6*)
  10141. - case $cc_basename in
  10142. - CC*)
  10143. - # SGI C++
  10144. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10145. -
  10146. - # Archives containing C++ object files must be created using
  10147. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10148. - # necessary to make sure instantiated templates are included
  10149. - # in the archive.
  10150. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10151. - ;;
  10152. - *)
  10153. - if test "$GXX" = yes; then
  10154. - if test "$with_gnu_ld" = no; then
  10155. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10156. - else
  10157. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10158. - fi
  10159. - fi
  10160. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10161. - ;;
  10162. - esac
  10163. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10164. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10165. - _LT_TAGVAR(inherit_rpath, $1)=yes
  10166. - ;;
  10167. -
  10168. - linux* | k*bsd*-gnu)
  10169. - case $cc_basename in
  10170. - KCC*)
  10171. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10172. -
  10173. - # KCC will only create a shared library if the output file
  10174. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10175. - # to its proper name (with version) after linking.
  10176. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10177. - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10178. - # Commands to make compiler produce verbose output that lists
  10179. - # what "hidden" libraries, object files and flags are used when
  10180. - # linking a shared library.
  10181. - #
  10182. - # There doesn't appear to be a way to prevent this compiler from
  10183. - # explicitly linking system object files so we need to strip them
  10184. - # from the output so that they don't get included in the library
  10185. - # dependencies.
  10186. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10187. -
  10188. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10189. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10190. -
  10191. - # Archives containing C++ object files must be created using
  10192. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10193. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  10194. - ;;
  10195. - icpc* | ecpc* )
  10196. - # Intel C++
  10197. - with_gnu_ld=yes
  10198. - # version 8.0 and above of icpc choke on multiply defined symbols
  10199. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  10200. - # earlier do not add the objects themselves.
  10201. - case `$CC -V 2>&1` in
  10202. - *"Version 7."*)
  10203. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10204. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10205. - ;;
  10206. - *) # Version 8.0 or newer
  10207. - tmp_idyn=
  10208. - case $host_cpu in
  10209. - ia64*) tmp_idyn=' -i_dynamic';;
  10210. - esac
  10211. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10212. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10213. - ;;
  10214. - esac
  10215. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10216. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10217. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10218. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10219. - ;;
  10220. - pgCC* | pgcpp*)
  10221. - # Portland Group C++ compiler
  10222. - case `$CC -V` in
  10223. - *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  10224. - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  10225. - rm -rf $tpldir~
  10226. - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10227. - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10228. - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  10229. - rm -rf $tpldir~
  10230. - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10231. - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10232. - $RANLIB $oldlib'
  10233. - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  10234. - rm -rf $tpldir~
  10235. - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10236. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10237. - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  10238. - rm -rf $tpldir~
  10239. - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10240. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10241. - ;;
  10242. - *) # Version 6 will use weak symbols
  10243. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10244. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10245. - ;;
  10246. - esac
  10247. -
  10248. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10249. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10250. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10251. - ;;
  10252. - cxx*)
  10253. - # Compaq C++
  10254. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10255. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10256. -
  10257. - runpath_var=LD_RUN_PATH
  10258. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10259. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10260. -
  10261. - # Commands to make compiler produce verbose output that lists
  10262. - # what "hidden" libraries, object files and flags are used when
  10263. - # linking a shared library.
  10264. - #
  10265. - # There doesn't appear to be a way to prevent this compiler from
  10266. - # explicitly linking system object files so we need to strip them
  10267. - # from the output so that they don't get included in the library
  10268. - # dependencies.
  10269. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10270. - ;;
  10271. - xl*)
  10272. - # IBM XL 8.0 on PPC, with GNU ld
  10273. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10274. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10275. - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10276. - if test "x$supports_anon_versioning" = xyes; then
  10277. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  10278. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10279. - echo "local: *; };" >> $output_objdir/$libname.ver~
  10280. - $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10281. - fi
  10282. - ;;
  10283. - *)
  10284. - case `$CC -V 2>&1 | sed 5q` in
  10285. - *Sun\ C*)
  10286. - # Sun C++ 5.9
  10287. - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10288. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10289. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10290. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10291. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10292. - _LT_TAGVAR(compiler_needs_object, $1)=yes
  10293. -
  10294. - # Not sure whether something based on
  10295. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10296. - # would be better.
  10297. - output_verbose_link_cmd='echo'
  10298. -
  10299. - # Archives containing C++ object files must be created using
  10300. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10301. - # necessary to make sure instantiated templates are included
  10302. - # in the archive.
  10303. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10304. - ;;
  10305. - esac
  10306. - ;;
  10307. - esac
  10308. - ;;
  10309. -
  10310. - lynxos*)
  10311. - # FIXME: insert proper C++ library support
  10312. - _LT_TAGVAR(ld_shlibs, $1)=no
  10313. - ;;
  10314. -
  10315. - m88k*)
  10316. - # FIXME: insert proper C++ library support
  10317. - _LT_TAGVAR(ld_shlibs, $1)=no
  10318. - ;;
  10319. -
  10320. - mvs*)
  10321. - case $cc_basename in
  10322. - cxx*)
  10323. - # FIXME: insert proper C++ library support
  10324. - _LT_TAGVAR(ld_shlibs, $1)=no
  10325. - ;;
  10326. - *)
  10327. - # FIXME: insert proper C++ library support
  10328. - _LT_TAGVAR(ld_shlibs, $1)=no
  10329. - ;;
  10330. - esac
  10331. - ;;
  10332. -
  10333. - netbsd*)
  10334. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10335. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10336. - wlarc=
  10337. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10338. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10339. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10340. - fi
  10341. - # Workaround some broken pre-1.5 toolchains
  10342. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10343. - ;;
  10344. -
  10345. - *nto* | *qnx*)
  10346. - _LT_TAGVAR(ld_shlibs, $1)=yes
  10347. - ;;
  10348. -
  10349. - openbsd2*)
  10350. - # C++ shared libraries are fairly broken
  10351. - _LT_TAGVAR(ld_shlibs, $1)=no
  10352. - ;;
  10353. -
  10354. - openbsd*)
  10355. - if test -f /usr/libexec/ld.so; then
  10356. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10357. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10358. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10359. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10360. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10361. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10362. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10363. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10364. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10365. - fi
  10366. - output_verbose_link_cmd=echo
  10367. - else
  10368. - _LT_TAGVAR(ld_shlibs, $1)=no
  10369. - fi
  10370. - ;;
  10371. -
  10372. - osf3* | osf4* | osf5*)
  10373. - case $cc_basename in
  10374. - KCC*)
  10375. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10376. -
  10377. - # KCC will only create a shared library if the output file
  10378. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10379. - # to its proper name (with version) after linking.
  10380. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10381. -
  10382. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10383. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10384. -
  10385. - # Archives containing C++ object files must be created using
  10386. - # the KAI C++ compiler.
  10387. - case $host in
  10388. - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10389. - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10390. - esac
  10391. - ;;
  10392. - RCC*)
  10393. - # Rational C++ 2.4.1
  10394. - # FIXME: insert proper C++ library support
  10395. - _LT_TAGVAR(ld_shlibs, $1)=no
  10396. - ;;
  10397. - cxx*)
  10398. - case $host in
  10399. - osf3*)
  10400. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10401. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10402. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10403. - ;;
  10404. - *)
  10405. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10406. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10407. - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10408. - echo "-hidden">> $lib.exp~
  10409. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10410. - $RM $lib.exp'
  10411. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10412. - ;;
  10413. - esac
  10414. -
  10415. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10416. -
  10417. - # Commands to make compiler produce verbose output that lists
  10418. - # what "hidden" libraries, object files and flags are used when
  10419. - # linking a shared library.
  10420. - #
  10421. - # There doesn't appear to be a way to prevent this compiler from
  10422. - # explicitly linking system object files so we need to strip them
  10423. - # from the output so that they don't get included in the library
  10424. - # dependencies.
  10425. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10426. - ;;
  10427. - *)
  10428. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10429. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10430. - case $host in
  10431. - osf3*)
  10432. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10433. - ;;
  10434. - *)
  10435. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10436. - ;;
  10437. - esac
  10438. -
  10439. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10440. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10441. -
  10442. - # Commands to make compiler produce verbose output that lists
  10443. - # what "hidden" libraries, object files and flags are used when
  10444. - # linking a shared library.
  10445. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10446. -
  10447. - else
  10448. - # FIXME: insert proper C++ library support
  10449. - _LT_TAGVAR(ld_shlibs, $1)=no
  10450. - fi
  10451. - ;;
  10452. - esac
  10453. - ;;
  10454. -
  10455. - psos*)
  10456. - # FIXME: insert proper C++ library support
  10457. - _LT_TAGVAR(ld_shlibs, $1)=no
  10458. - ;;
  10459. -
  10460. - sunos4*)
  10461. - case $cc_basename in
  10462. - CC*)
  10463. - # Sun C++ 4.x
  10464. - # FIXME: insert proper C++ library support
  10465. - _LT_TAGVAR(ld_shlibs, $1)=no
  10466. - ;;
  10467. - lcc*)
  10468. - # Lucid
  10469. - # FIXME: insert proper C++ library support
  10470. - _LT_TAGVAR(ld_shlibs, $1)=no
  10471. - ;;
  10472. - *)
  10473. - # FIXME: insert proper C++ library support
  10474. - _LT_TAGVAR(ld_shlibs, $1)=no
  10475. - ;;
  10476. - esac
  10477. - ;;
  10478. -
  10479. - solaris*)
  10480. - case $cc_basename in
  10481. - CC*)
  10482. - # Sun C++ 4.2, 5.x and Centerline C++
  10483. - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10484. - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10485. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10486. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10487. - $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'
  10488. -
  10489. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10490. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10491. - case $host_os in
  10492. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10493. - *)
  10494. - # The compiler driver will combine and reorder linker options,
  10495. - # but understands `-z linker_flag'.
  10496. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10497. - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10498. - ;;
  10499. - esac
  10500. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10501. -
  10502. - output_verbose_link_cmd='echo'
  10503. -
  10504. - # Archives containing C++ object files must be created using
  10505. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10506. - # necessary to make sure instantiated templates are included
  10507. - # in the archive.
  10508. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10509. - ;;
  10510. - gcx*)
  10511. - # Green Hills C++ Compiler
  10512. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10513. -
  10514. - # The C++ compiler must be used to create the archive.
  10515. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10516. - ;;
  10517. - *)
  10518. - # GNU C++ compiler with Solaris linker
  10519. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10520. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10521. - if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10522. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10523. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10524. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10525. -
  10526. - # Commands to make compiler produce verbose output that lists
  10527. - # what "hidden" libraries, object files and flags are used when
  10528. - # linking a shared library.
  10529. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10530. - else
  10531. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10532. - # platform.
  10533. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10534. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10535. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10536. -
  10537. - # Commands to make compiler produce verbose output that lists
  10538. - # what "hidden" libraries, object files and flags are used when
  10539. - # linking a shared library.
  10540. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10541. - fi
  10542. -
  10543. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10544. - case $host_os in
  10545. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10546. - *)
  10547. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10548. - ;;
  10549. - esac
  10550. - fi
  10551. - ;;
  10552. - esac
  10553. ;;
  10554. -
  10555. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10556. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10557. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10558. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10559. - runpath_var='LD_RUN_PATH'
  10560. -
  10561. - case $cc_basename in
  10562. - CC*)
  10563. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10564. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10565. - ;;
  10566. - *)
  10567. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10568. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10569. - ;;
  10570. esac
  10571. - ;;
  10572. -
  10573. - sysv5* | sco3.2v5* | sco5v6*)
  10574. - # Note: We can NOT use -z defs as we might desire, because we do not
  10575. - # link with -lc, and that would cause any symbols used from libc to
  10576. - # always be unresolved, which means just about no library would
  10577. - # ever link correctly. If we're not using GNU ld we use -z text
  10578. - # though, which does catch some bad symbols but isn't as heavy-handed
  10579. - # as -z defs.
  10580. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10581. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10582. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10583. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10584. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10585. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10586. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10587. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10588. - runpath_var='LD_RUN_PATH'
  10589. -
  10590. - case $cc_basename in
  10591. - CC*)
  10592. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10593. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10594. - ;;
  10595. - *)
  10596. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10597. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10598. - ;;
  10599. - esac
  10600. - ;;
  10601. -
  10602. - tandem*)
  10603. - case $cc_basename in
  10604. - NCC*)
  10605. - # NonStop-UX NCC 3.20
  10606. - # FIXME: insert proper C++ library support
  10607. - _LT_TAGVAR(ld_shlibs, $1)=no
  10608. - ;;
  10609. - *)
  10610. - # FIXME: insert proper C++ library support
  10611. - _LT_TAGVAR(ld_shlibs, $1)=no
  10612. - ;;
  10613. - esac
  10614. - ;;
  10615. -
  10616. - vxworks*)
  10617. - # FIXME: insert proper C++ library support
  10618. - _LT_TAGVAR(ld_shlibs, $1)=no
  10619. - ;;
  10620. -
  10621. - *)
  10622. - # FIXME: insert proper C++ library support
  10623. - _LT_TAGVAR(ld_shlibs, $1)=no
  10624. - ;;
  10625. - esac
  10626. -
  10627. - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10628. - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10629. -
  10630. - _LT_TAGVAR(GCC, $1)="$GXX"
  10631. - _LT_TAGVAR(LD, $1)="$LD"
  10632. -
  10633. - ## CAVEAT EMPTOR:
  10634. - ## There is no encapsulation within the following macros, do not change
  10635. - ## the running order or otherwise move them around unless you know exactly
  10636. - ## what you are doing...
  10637. - _LT_SYS_HIDDEN_LIBDEPS($1)
  10638. - _LT_COMPILER_PIC($1)
  10639. - _LT_COMPILER_C_O($1)
  10640. - _LT_COMPILER_FILE_LOCKS($1)
  10641. - _LT_LINKER_SHLIBS($1)
  10642. - _LT_SYS_DYNAMIC_LINKER($1)
  10643. - _LT_LINKER_HARDCODE_LIBPATH($1)
  10644. -
  10645. - _LT_CONFIG($1)
  10646. - fi # test -n "$compiler"
  10647. -
  10648. - CC=$lt_save_CC
  10649. - LDCXX=$LD
  10650. - LD=$lt_save_LD
  10651. - GCC=$lt_save_GCC
  10652. - with_gnu_ld=$lt_save_with_gnu_ld
  10653. - lt_cv_path_LDCXX=$lt_cv_path_LD
  10654. - lt_cv_path_LD=$lt_save_path_LD
  10655. - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10656. - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10657. -fi # test "$_lt_caught_CXX_error" != yes
  10658. -
  10659. -AC_LANG_POP
  10660. -])# _LT_LANG_CXX_CONFIG
  10661. -
  10662. -
  10663. -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10664. -# ---------------------------------
  10665. -# Figure out "hidden" library dependencies from verbose
  10666. -# compiler output when linking a shared library.
  10667. -# Parse the compiler output and extract the necessary
  10668. -# objects, libraries and library flags.
  10669. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10670. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10671. -# Dependencies to place before and after the object being linked:
  10672. -_LT_TAGVAR(predep_objects, $1)=
  10673. -_LT_TAGVAR(postdep_objects, $1)=
  10674. -_LT_TAGVAR(predeps, $1)=
  10675. -_LT_TAGVAR(postdeps, $1)=
  10676. -_LT_TAGVAR(compiler_lib_search_path, $1)=
  10677. -
  10678. -dnl we can't use the lt_simple_compile_test_code here,
  10679. -dnl because it contains code intended for an executable,
  10680. -dnl not a library. It's possible we should let each
  10681. -dnl tag define a new lt_????_link_test_code variable,
  10682. -dnl but it's only used here...
  10683. -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10684. -int a;
  10685. -void foo (void) { a = 0; }
  10686. -_LT_EOF
  10687. -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10688. -class Foo
  10689. -{
  10690. -public:
  10691. - Foo (void) { a = 0; }
  10692. -private:
  10693. - int a;
  10694. -};
  10695. -_LT_EOF
  10696. -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10697. - subroutine foo
  10698. - implicit none
  10699. - integer*4 a
  10700. - a=0
  10701. - return
  10702. - end
  10703. -_LT_EOF
  10704. -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10705. - subroutine foo
  10706. - implicit none
  10707. - integer a
  10708. - a=0
  10709. - return
  10710. - end
  10711. -_LT_EOF
  10712. -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10713. -public class foo {
  10714. - private int a;
  10715. - public void bar (void) {
  10716. - a = 0;
  10717. - }
  10718. -};
  10719. -_LT_EOF
  10720. + done]],
  10721. + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10722. + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  10723. + # from automake < 1.5.
  10724. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10725. + # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10726. + LINGUAS="${LINGUAS-%UNSET%}"
  10727. + ])
  10728. ])
  10729. -dnl Parse the compiler output and extract the necessary
  10730. -dnl objects, libraries and library flags.
  10731. -if AC_TRY_EVAL(ac_compile); then
  10732. - # Parse the compiler output and extract the necessary
  10733. - # objects, libraries and library flags.
  10734. -
  10735. - # Sentinel used to keep track of whether or not we are before
  10736. - # the conftest object file.
  10737. - pre_test_object_deps_done=no
  10738. -
  10739. - for p in `eval "$output_verbose_link_cmd"`; do
  10740. - case $p in
  10741. -
  10742. - -L* | -R* | -l*)
  10743. - # Some compilers place space between "-{L,R}" and the path.
  10744. - # Remove the space.
  10745. - if test $p = "-L" ||
  10746. - test $p = "-R"; then
  10747. - prev=$p
  10748. - continue
  10749. - else
  10750. - prev=
  10751. - fi
  10752. -
  10753. - if test "$pre_test_object_deps_done" = no; then
  10754. - case $p in
  10755. - -L* | -R*)
  10756. - # Internal compiler library paths should come after those
  10757. - # provided the user. The postdeps already come after the
  10758. - # user supplied libs so there is no need to process them.
  10759. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10760. - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10761. - else
  10762. - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10763. - fi
  10764. - ;;
  10765. - # The "-l" case would never come before the object being
  10766. - # linked, so don't bother handling this case.
  10767. - esac
  10768. - else
  10769. - if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10770. - _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10771. - else
  10772. - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10773. - fi
  10774. - fi
  10775. - ;;
  10776. -
  10777. - *.$objext)
  10778. - # This assumes that the test object file only shows up
  10779. - # once in the compiler output.
  10780. - if test "$p" = "conftest.$objext"; then
  10781. - pre_test_object_deps_done=yes
  10782. - continue
  10783. - fi
  10784. -
  10785. - if test "$pre_test_object_deps_done" = no; then
  10786. - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10787. - _LT_TAGVAR(predep_objects, $1)="$p"
  10788. - else
  10789. - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10790. - fi
  10791. - else
  10792. - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10793. - _LT_TAGVAR(postdep_objects, $1)="$p"
  10794. - else
  10795. - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10796. - fi
  10797. - fi
  10798. - ;;
  10799. -
  10800. - *) ;; # Ignore the rest.
  10801. - esac
  10802. - done
  10803. +dnl Postprocesses a Makefile in a directory containing PO files.
  10804. +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
  10805. +[
  10806. + # When this code is run, in config.status, two variables have already been
  10807. + # set:
  10808. + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
  10809. + # - LINGUAS is the value of the environment variable LINGUAS at configure
  10810. + # time.
  10811. - # Clean up.
  10812. - rm -f a.out a.exe
  10813. -else
  10814. - echo "libtool.m4: error: problem compiling $1 test program"
  10815. -fi
  10816. +changequote(,)dnl
  10817. + # Adjust a relative srcdir.
  10818. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10819. + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  10820. + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10821. + # In autoconf-2.13 it is called $ac_given_srcdir.
  10822. + # In autoconf-2.50 it is called $srcdir.
  10823. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10824. + case "$ac_given_srcdir" in
  10825. + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10826. + /*) top_srcdir="$ac_given_srcdir" ;;
  10827. + *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10828. + esac
  10829. -$RM -f confest.$objext
  10830. + # Find a way to echo strings without interpreting backslash.
  10831. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
  10832. + gt_echo='echo'
  10833. + else
  10834. + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
  10835. + gt_echo='printf %s\n'
  10836. + else
  10837. + echo_func () {
  10838. + cat <<EOT
  10839. +$*
  10840. +EOT
  10841. + }
  10842. + gt_echo='echo_func'
  10843. + fi
  10844. + fi
  10845. -# PORTME: override above test on systems where it is broken
  10846. -m4_if([$1], [CXX],
  10847. -[case $host_os in
  10848. -interix[[3-9]]*)
  10849. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10850. - # hack all around it, let's just trust "g++" to DTRT.
  10851. - _LT_TAGVAR(predep_objects,$1)=
  10852. - _LT_TAGVAR(postdep_objects,$1)=
  10853. - _LT_TAGVAR(postdeps,$1)=
  10854. - ;;
  10855. + # A sed script that extracts the value of VARIABLE from a Makefile.
  10856. + sed_x_variable='
  10857. +# Test if the hold space is empty.
  10858. +x
  10859. +s/P/P/
  10860. +x
  10861. +ta
  10862. +# Yes it was empty. Look if we have the expected variable definition.
  10863. +/^[ ]*VARIABLE[ ]*=/{
  10864. + # Seen the first line of the variable definition.
  10865. + s/^[ ]*VARIABLE[ ]*=//
  10866. + ba
  10867. +}
  10868. +bd
  10869. +:a
  10870. +# Here we are processing a line from the variable definition.
  10871. +# Remove comment, more precisely replace it with a space.
  10872. +s/#.*$/ /
  10873. +# See if the line ends in a backslash.
  10874. +tb
  10875. +:b
  10876. +s/\\$//
  10877. +# Print the line, without the trailing backslash.
  10878. +p
  10879. +tc
  10880. +# There was no trailing backslash. The end of the variable definition is
  10881. +# reached. Clear the hold space.
  10882. +s/^.*$//
  10883. +x
  10884. +bd
  10885. +:c
  10886. +# A trailing backslash means that the variable definition continues in the
  10887. +# next line. Put a nonempty string into the hold space to indicate this.
  10888. +s/^.*$/P/
  10889. +x
  10890. +:d
  10891. +'
  10892. +changequote([,])dnl
  10893. -linux*)
  10894. - case `$CC -V 2>&1 | sed 5q` in
  10895. - *Sun\ C*)
  10896. - # Sun C++ 5.9
  10897. -
  10898. - # The more standards-conforming stlport4 library is
  10899. - # incompatible with the Cstd library. Avoid specifying
  10900. - # it if it's in CXXFLAGS. Ignore libCrun as
  10901. - # -library=stlport4 depends on it.
  10902. - case " $CXX $CXXFLAGS " in
  10903. - *" -library=stlport4 "*)
  10904. - solaris_use_stlport4=yes
  10905. - ;;
  10906. - esac
  10907. + # Set POTFILES to the value of the Makefile variable POTFILES.
  10908. + sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
  10909. + POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
  10910. + # Compute POTFILES_DEPS as
  10911. + # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
  10912. + POTFILES_DEPS=
  10913. + for file in $POTFILES; do
  10914. + POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
  10915. + done
  10916. + POMAKEFILEDEPS=""
  10917. - if test "$solaris_use_stlport4" != yes; then
  10918. - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10919. - fi
  10920. - ;;
  10921. + if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10922. + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  10923. + fi
  10924. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10925. + # The LINGUAS file contains the set of available languages.
  10926. + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10927. + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10928. + else
  10929. + # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
  10930. + sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
  10931. + ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
  10932. + fi
  10933. + # Hide the ALL_LINGUAS assigment from automake < 1.5.
  10934. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10935. + # Compute POFILES
  10936. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  10937. + # Compute UPDATEPOFILES
  10938. + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  10939. + # Compute DUMMYPOFILES
  10940. + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  10941. + # Compute GMOFILES
  10942. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  10943. + # Compute PROPERTIESFILES
  10944. + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
  10945. + # Compute CLASSFILES
  10946. + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
  10947. + # Compute QMFILES
  10948. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
  10949. + # Compute MSGFILES
  10950. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
  10951. + # Compute RESOURCESDLLFILES
  10952. + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
  10953. + case "$ac_given_srcdir" in
  10954. + .) srcdirpre= ;;
  10955. + *) srcdirpre='$(srcdir)/' ;;
  10956. esac
  10957. - ;;
  10958. -
  10959. -solaris*)
  10960. - case $cc_basename in
  10961. - CC*)
  10962. - # The more standards-conforming stlport4 library is
  10963. - # incompatible with the Cstd library. Avoid specifying
  10964. - # it if it's in CXXFLAGS. Ignore libCrun as
  10965. - # -library=stlport4 depends on it.
  10966. - case " $CXX $CXXFLAGS " in
  10967. - *" -library=stlport4 "*)
  10968. - solaris_use_stlport4=yes
  10969. - ;;
  10970. - esac
  10971. + POFILES=
  10972. + UPDATEPOFILES=
  10973. + DUMMYPOFILES=
  10974. + GMOFILES=
  10975. + PROPERTIESFILES=
  10976. + CLASSFILES=
  10977. + QMFILES=
  10978. + MSGFILES=
  10979. + RESOURCESDLLFILES=
  10980. + for lang in $ALL_LINGUAS; do
  10981. + POFILES="$POFILES $srcdirpre$lang.po"
  10982. + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10983. + DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10984. + GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10985. + PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
  10986. + CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
  10987. + QMFILES="$QMFILES $srcdirpre$lang.qm"
  10988. + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  10989. + MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
  10990. + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  10991. + RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
  10992. + done
  10993. + # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10994. + # environment variable.
  10995. + INST_LINGUAS=
  10996. + if test -n "$ALL_LINGUAS"; then
  10997. + for presentlang in $ALL_LINGUAS; do
  10998. + useit=no
  10999. + if test "%UNSET%" != "$LINGUAS"; then
  11000. + desiredlanguages="$LINGUAS"
  11001. + else
  11002. + desiredlanguages="$ALL_LINGUAS"
  11003. + fi
  11004. + for desiredlang in $desiredlanguages; do
  11005. + # Use the presentlang catalog if desiredlang is
  11006. + # a. equal to presentlang, or
  11007. + # b. a variant of presentlang (because in this case,
  11008. + # presentlang can be used as a fallback for messages
  11009. + # which are not translated in the desiredlang catalog).
  11010. + case "$desiredlang" in
  11011. + "$presentlang"*) useit=yes;;
  11012. + esac
  11013. + done
  11014. + if test $useit = yes; then
  11015. + INST_LINGUAS="$INST_LINGUAS $presentlang"
  11016. + fi
  11017. + done
  11018. + fi
  11019. + CATALOGS=
  11020. + JAVACATALOGS=
  11021. + QTCATALOGS=
  11022. + TCLCATALOGS=
  11023. + CSHARPCATALOGS=
  11024. + if test -n "$INST_LINGUAS"; then
  11025. + for lang in $INST_LINGUAS; do
  11026. + CATALOGS="$CATALOGS $lang.gmo"
  11027. + JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
  11028. + QTCATALOGS="$QTCATALOGS $lang.qm"
  11029. + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  11030. + TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
  11031. + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  11032. + CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
  11033. + done
  11034. + fi
  11035. - # Adding this requires a known-good setup of shared libraries for
  11036. - # Sun compiler versions before 5.6, else PIC objects from an old
  11037. - # archive will be linked into the output, leading to subtle bugs.
  11038. - if test "$solaris_use_stlport4" != yes; then
  11039. - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11040. - fi
  11041. - ;;
  11042. - esac
  11043. - ;;
  11044. -esac
  11045. + sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
  11046. + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
  11047. + # Add dependencies that cannot be formulated as a simple suffix rule.
  11048. + for lang in $ALL_LINGUAS; do
  11049. + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  11050. + cat >> "$ac_file.tmp" <<EOF
  11051. +$frobbedlang.msg: $lang.po
  11052. + @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
  11053. + \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  11054. +EOF
  11055. + done
  11056. + fi
  11057. + if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
  11058. + # Add dependencies that cannot be formulated as a simple suffix rule.
  11059. + for lang in $ALL_LINGUAS; do
  11060. + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  11061. + cat >> "$ac_file.tmp" <<EOF
  11062. +$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
  11063. + @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
  11064. + \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  11065. +EOF
  11066. + done
  11067. + fi
  11068. + if test -n "$POMAKEFILEDEPS"; then
  11069. + cat >> "$ac_file.tmp" <<EOF
  11070. +Makefile: $POMAKEFILEDEPS
  11071. +EOF
  11072. + fi
  11073. + mv "$ac_file.tmp" "$ac_file"
  11074. ])
  11075. -case " $_LT_TAGVAR(postdeps, $1) " in
  11076. -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  11077. -esac
  11078. - _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  11079. -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  11080. - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11081. -fi
  11082. -_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  11083. - [The directories searched by this compiler when creating a shared library])
  11084. -_LT_TAGDECL([], [predep_objects], [1],
  11085. - [Dependencies to place before and after the objects being linked to
  11086. - create a shared library])
  11087. -_LT_TAGDECL([], [postdep_objects], [1])
  11088. -_LT_TAGDECL([], [predeps], [1])
  11089. -_LT_TAGDECL([], [postdeps], [1])
  11090. -_LT_TAGDECL([], [compiler_lib_search_path], [1],
  11091. - [The library search path used internally by the compiler when linking
  11092. - a shared library])
  11093. -])# _LT_SYS_HIDDEN_LIBDEPS
  11094. -
  11095. -
  11096. -# _LT_PROG_F77
  11097. -# ------------
  11098. -# Since AC_PROG_F77 is broken, in that it returns the empty string
  11099. -# if there is no fortran compiler, we have our own version here.
  11100. -m4_defun([_LT_PROG_F77],
  11101. -[
  11102. -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  11103. -AC_PROG_F77
  11104. -if test -z "$F77" || test "X$F77" = "Xno"; then
  11105. - _lt_disable_F77=yes
  11106. -fi
  11107. -popdef([AC_MSG_ERROR])
  11108. -])# _LT_PROG_F77
  11109. -
  11110. -dnl aclocal-1.4 backwards compatibility:
  11111. -dnl AC_DEFUN([_LT_PROG_F77], [])
  11112. -
  11113. -
  11114. -# _LT_LANG_F77_CONFIG([TAG])
  11115. -# --------------------------
  11116. -# Ensure that the configuration variables for a Fortran 77 compiler are
  11117. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  11118. -# to write the compiler configuration to `libtool'.
  11119. -m4_defun([_LT_LANG_F77_CONFIG],
  11120. -[AC_REQUIRE([_LT_PROG_F77])dnl
  11121. -AC_LANG_PUSH(Fortran 77)
  11122. -
  11123. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11124. -_LT_TAGVAR(allow_undefined_flag, $1)=
  11125. -_LT_TAGVAR(always_export_symbols, $1)=no
  11126. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  11127. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11128. -_LT_TAGVAR(hardcode_direct, $1)=no
  11129. -_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11130. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11131. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11132. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11133. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  11134. -_LT_TAGVAR(hardcode_automatic, $1)=no
  11135. -_LT_TAGVAR(inherit_rpath, $1)=no
  11136. -_LT_TAGVAR(module_cmds, $1)=
  11137. -_LT_TAGVAR(module_expsym_cmds, $1)=
  11138. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11139. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11140. -_LT_TAGVAR(no_undefined_flag, $1)=
  11141. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11142. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11143. -
  11144. -# Source file extension for f77 test sources.
  11145. -ac_ext=f
  11146. -
  11147. -# Object file extension for compiled f77 test sources.
  11148. -objext=o
  11149. -_LT_TAGVAR(objext, $1)=$objext
  11150. -
  11151. -# No sense in running all these tests if we already determined that
  11152. -# the F77 compiler isn't working. Some variables (like enable_shared)
  11153. -# are currently assumed to apply to all compilers on this platform,
  11154. -# and will be corrupted by setting them based on a non-working compiler.
  11155. -if test "$_lt_disable_F77" != yes; then
  11156. - # Code to be used in simple compile tests
  11157. - lt_simple_compile_test_code="\
  11158. - subroutine t
  11159. - return
  11160. - end
  11161. -"
  11162. -
  11163. - # Code to be used in simple link tests
  11164. - lt_simple_link_test_code="\
  11165. - program t
  11166. - end
  11167. -"
  11168. -
  11169. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11170. - _LT_TAG_COMPILER
  11171. -
  11172. - # save warnings/boilerplate of simple test code
  11173. - _LT_COMPILER_BOILERPLATE
  11174. - _LT_LINKER_BOILERPLATE
  11175. -
  11176. - # Allow CC to be a program name with arguments.
  11177. - lt_save_CC="$CC"
  11178. - lt_save_GCC=$GCC
  11179. - CC=${F77-"f77"}
  11180. - compiler=$CC
  11181. - _LT_TAGVAR(compiler, $1)=$CC
  11182. - _LT_CC_BASENAME([$compiler])
  11183. - GCC=$G77
  11184. - if test -n "$compiler"; then
  11185. - AC_MSG_CHECKING([if libtool supports shared libraries])
  11186. - AC_MSG_RESULT([$can_build_shared])
  11187. -
  11188. - AC_MSG_CHECKING([whether to build shared libraries])
  11189. - test "$can_build_shared" = "no" && enable_shared=no
  11190. -
  11191. - # On AIX, shared libraries and static libraries use the same namespace, and
  11192. - # are all built from PIC.
  11193. - case $host_os in
  11194. - aix3*)
  11195. - test "$enable_shared" = yes && enable_static=no
  11196. - if test -n "$RANLIB"; then
  11197. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11198. - postinstall_cmds='$RANLIB $lib'
  11199. - fi
  11200. - ;;
  11201. - aix[[4-9]]*)
  11202. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11203. - test "$enable_shared" = yes && enable_static=no
  11204. - fi
  11205. - ;;
  11206. - esac
  11207. - AC_MSG_RESULT([$enable_shared])
  11208. -
  11209. - AC_MSG_CHECKING([whether to build static libraries])
  11210. - # Make sure either enable_shared or enable_static is yes.
  11211. - test "$enable_shared" = yes || enable_static=yes
  11212. - AC_MSG_RESULT([$enable_static])
  11213. -
  11214. - _LT_TAGVAR(GCC, $1)="$G77"
  11215. - _LT_TAGVAR(LD, $1)="$LD"
  11216. -
  11217. - ## CAVEAT EMPTOR:
  11218. - ## There is no encapsulation within the following macros, do not change
  11219. - ## the running order or otherwise move them around unless you know exactly
  11220. - ## what you are doing...
  11221. - _LT_COMPILER_PIC($1)
  11222. - _LT_COMPILER_C_O($1)
  11223. - _LT_COMPILER_FILE_LOCKS($1)
  11224. - _LT_LINKER_SHLIBS($1)
  11225. - _LT_SYS_DYNAMIC_LINKER($1)
  11226. - _LT_LINKER_HARDCODE_LIBPATH($1)
  11227. -
  11228. - _LT_CONFIG($1)
  11229. - fi # test -n "$compiler"
  11230. -
  11231. - GCC=$lt_save_GCC
  11232. - CC="$lt_save_CC"
  11233. -fi # test "$_lt_disable_F77" != yes
  11234. -
  11235. -AC_LANG_POP
  11236. -])# _LT_LANG_F77_CONFIG
  11237. -
  11238. -
  11239. -# _LT_PROG_FC
  11240. -# -----------
  11241. -# Since AC_PROG_FC is broken, in that it returns the empty string
  11242. -# if there is no fortran compiler, we have our own version here.
  11243. -m4_defun([_LT_PROG_FC],
  11244. +dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
  11245. +AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
  11246. [
  11247. -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  11248. -AC_PROG_FC
  11249. -if test -z "$FC" || test "X$FC" = "Xno"; then
  11250. - _lt_disable_FC=yes
  11251. -fi
  11252. -popdef([AC_MSG_ERROR])
  11253. -])# _LT_PROG_FC
  11254. -
  11255. -dnl aclocal-1.4 backwards compatibility:
  11256. -dnl AC_DEFUN([_LT_PROG_FC], [])
  11257. -
  11258. -
  11259. -# _LT_LANG_FC_CONFIG([TAG])
  11260. -# -------------------------
  11261. -# Ensure that the configuration variables for a Fortran compiler are
  11262. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  11263. -# to write the compiler configuration to `libtool'.
  11264. -m4_defun([_LT_LANG_FC_CONFIG],
  11265. -[AC_REQUIRE([_LT_PROG_FC])dnl
  11266. -AC_LANG_PUSH(Fortran)
  11267. -
  11268. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11269. -_LT_TAGVAR(allow_undefined_flag, $1)=
  11270. -_LT_TAGVAR(always_export_symbols, $1)=no
  11271. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  11272. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11273. -_LT_TAGVAR(hardcode_direct, $1)=no
  11274. -_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11275. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11276. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11277. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11278. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  11279. -_LT_TAGVAR(hardcode_automatic, $1)=no
  11280. -_LT_TAGVAR(inherit_rpath, $1)=no
  11281. -_LT_TAGVAR(module_cmds, $1)=
  11282. -_LT_TAGVAR(module_expsym_cmds, $1)=
  11283. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11284. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11285. -_LT_TAGVAR(no_undefined_flag, $1)=
  11286. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11287. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11288. -
  11289. -# Source file extension for fc test sources.
  11290. -ac_ext=${ac_fc_srcext-f}
  11291. -
  11292. -# Object file extension for compiled fc test sources.
  11293. -objext=o
  11294. -_LT_TAGVAR(objext, $1)=$objext
  11295. -
  11296. -# No sense in running all these tests if we already determined that
  11297. -# the FC compiler isn't working. Some variables (like enable_shared)
  11298. -# are currently assumed to apply to all compilers on this platform,
  11299. -# and will be corrupted by setting them based on a non-working compiler.
  11300. -if test "$_lt_disable_FC" != yes; then
  11301. - # Code to be used in simple compile tests
  11302. - lt_simple_compile_test_code="\
  11303. - subroutine t
  11304. - return
  11305. - end
  11306. -"
  11307. -
  11308. - # Code to be used in simple link tests
  11309. - lt_simple_link_test_code="\
  11310. - program t
  11311. - end
  11312. -"
  11313. -
  11314. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11315. - _LT_TAG_COMPILER
  11316. -
  11317. - # save warnings/boilerplate of simple test code
  11318. - _LT_COMPILER_BOILERPLATE
  11319. - _LT_LINKER_BOILERPLATE
  11320. -
  11321. - # Allow CC to be a program name with arguments.
  11322. - lt_save_CC="$CC"
  11323. - lt_save_GCC=$GCC
  11324. - CC=${FC-"f95"}
  11325. - compiler=$CC
  11326. - GCC=$ac_cv_fc_compiler_gnu
  11327. -
  11328. - _LT_TAGVAR(compiler, $1)=$CC
  11329. - _LT_CC_BASENAME([$compiler])
  11330. -
  11331. - if test -n "$compiler"; then
  11332. - AC_MSG_CHECKING([if libtool supports shared libraries])
  11333. - AC_MSG_RESULT([$can_build_shared])
  11334. -
  11335. - AC_MSG_CHECKING([whether to build shared libraries])
  11336. - test "$can_build_shared" = "no" && enable_shared=no
  11337. -
  11338. - # On AIX, shared libraries and static libraries use the same namespace, and
  11339. - # are all built from PIC.
  11340. - case $host_os in
  11341. - aix3*)
  11342. - test "$enable_shared" = yes && enable_static=no
  11343. - if test -n "$RANLIB"; then
  11344. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11345. - postinstall_cmds='$RANLIB $lib'
  11346. - fi
  11347. - ;;
  11348. - aix[[4-9]]*)
  11349. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11350. - test "$enable_shared" = yes && enable_static=no
  11351. - fi
  11352. - ;;
  11353. - esac
  11354. - AC_MSG_RESULT([$enable_shared])
  11355. -
  11356. - AC_MSG_CHECKING([whether to build static libraries])
  11357. - # Make sure either enable_shared or enable_static is yes.
  11358. - test "$enable_shared" = yes || enable_static=yes
  11359. - AC_MSG_RESULT([$enable_static])
  11360. -
  11361. - _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  11362. - _LT_TAGVAR(LD, $1)="$LD"
  11363. -
  11364. - ## CAVEAT EMPTOR:
  11365. - ## There is no encapsulation within the following macros, do not change
  11366. - ## the running order or otherwise move them around unless you know exactly
  11367. - ## what you are doing...
  11368. - _LT_SYS_HIDDEN_LIBDEPS($1)
  11369. - _LT_COMPILER_PIC($1)
  11370. - _LT_COMPILER_C_O($1)
  11371. - _LT_COMPILER_FILE_LOCKS($1)
  11372. - _LT_LINKER_SHLIBS($1)
  11373. - _LT_SYS_DYNAMIC_LINKER($1)
  11374. - _LT_LINKER_HARDCODE_LIBPATH($1)
  11375. -
  11376. - _LT_CONFIG($1)
  11377. - fi # test -n "$compiler"
  11378. -
  11379. - GCC=$lt_save_GCC
  11380. - CC="$lt_save_CC"
  11381. -fi # test "$_lt_disable_FC" != yes
  11382. -
  11383. -AC_LANG_POP
  11384. -])# _LT_LANG_FC_CONFIG
  11385. -
  11386. -
  11387. -# _LT_LANG_GCJ_CONFIG([TAG])
  11388. -# --------------------------
  11389. -# Ensure that the configuration variables for the GNU Java Compiler compiler
  11390. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11391. -# to write the compiler configuration to `libtool'.
  11392. -m4_defun([_LT_LANG_GCJ_CONFIG],
  11393. -[AC_REQUIRE([LT_PROG_GCJ])dnl
  11394. -AC_LANG_SAVE
  11395. -
  11396. -# Source file extension for Java test sources.
  11397. -ac_ext=java
  11398. -
  11399. -# Object file extension for compiled Java test sources.
  11400. -objext=o
  11401. -_LT_TAGVAR(objext, $1)=$objext
  11402. -
  11403. -# Code to be used in simple compile tests
  11404. -lt_simple_compile_test_code="class foo {}"
  11405. -
  11406. -# Code to be used in simple link tests
  11407. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  11408. -
  11409. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11410. -_LT_TAG_COMPILER
  11411. -
  11412. -# save warnings/boilerplate of simple test code
  11413. -_LT_COMPILER_BOILERPLATE
  11414. -_LT_LINKER_BOILERPLATE
  11415. -
  11416. -# Allow CC to be a program name with arguments.
  11417. -lt_save_CC="$CC"
  11418. -lt_save_GCC=$GCC
  11419. -GCC=yes
  11420. -CC=${GCJ-"gcj"}
  11421. -compiler=$CC
  11422. -_LT_TAGVAR(compiler, $1)=$CC
  11423. -_LT_TAGVAR(LD, $1)="$LD"
  11424. -_LT_CC_BASENAME([$compiler])
  11425. -
  11426. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  11427. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11428. -
  11429. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11430. -
  11431. -if test -n "$compiler"; then
  11432. - _LT_COMPILER_NO_RTTI($1)
  11433. - _LT_COMPILER_PIC($1)
  11434. - _LT_COMPILER_C_O($1)
  11435. - _LT_COMPILER_FILE_LOCKS($1)
  11436. - _LT_LINKER_SHLIBS($1)
  11437. - _LT_LINKER_HARDCODE_LIBPATH($1)
  11438. -
  11439. - _LT_CONFIG($1)
  11440. -fi
  11441. -
  11442. -AC_LANG_RESTORE
  11443. -
  11444. -GCC=$lt_save_GCC
  11445. -CC="$lt_save_CC"
  11446. -])# _LT_LANG_GCJ_CONFIG
  11447. -
  11448. -
  11449. -# _LT_LANG_RC_CONFIG([TAG])
  11450. -# -------------------------
  11451. -# Ensure that the configuration variables for the Windows resource compiler
  11452. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11453. -# to write the compiler configuration to `libtool'.
  11454. -m4_defun([_LT_LANG_RC_CONFIG],
  11455. -[AC_REQUIRE([LT_PROG_RC])dnl
  11456. -AC_LANG_SAVE
  11457. -
  11458. -# Source file extension for RC test sources.
  11459. -ac_ext=rc
  11460. -
  11461. -# Object file extension for compiled RC test sources.
  11462. -objext=o
  11463. -_LT_TAGVAR(objext, $1)=$objext
  11464. -
  11465. -# Code to be used in simple compile tests
  11466. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11467. -
  11468. -# Code to be used in simple link tests
  11469. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  11470. -
  11471. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11472. -_LT_TAG_COMPILER
  11473. -
  11474. -# save warnings/boilerplate of simple test code
  11475. -_LT_COMPILER_BOILERPLATE
  11476. -_LT_LINKER_BOILERPLATE
  11477. -
  11478. -# Allow CC to be a program name with arguments.
  11479. -lt_save_CC="$CC"
  11480. -lt_save_GCC=$GCC
  11481. -GCC=
  11482. -CC=${RC-"windres"}
  11483. -compiler=$CC
  11484. -_LT_TAGVAR(compiler, $1)=$CC
  11485. -_LT_CC_BASENAME([$compiler])
  11486. -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11487. -
  11488. -if test -n "$compiler"; then
  11489. - :
  11490. - _LT_CONFIG($1)
  11491. -fi
  11492. -
  11493. -GCC=$lt_save_GCC
  11494. -AC_LANG_RESTORE
  11495. -CC="$lt_save_CC"
  11496. -])# _LT_LANG_RC_CONFIG
  11497. -
  11498. -
  11499. -# LT_PROG_GCJ
  11500. -# -----------
  11501. -AC_DEFUN([LT_PROG_GCJ],
  11502. -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11503. - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11504. - [AC_CHECK_TOOL(GCJ, gcj,)
  11505. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11506. - AC_SUBST(GCJFLAGS)])])[]dnl
  11507. + XGETTEXT_EXTRA_OPTIONS=
  11508. ])
  11509. -# Old name:
  11510. -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11511. -dnl aclocal-1.4 backwards compatibility:
  11512. -dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11513. -
  11514. -
  11515. -# LT_PROG_RC
  11516. -# ----------
  11517. -AC_DEFUN([LT_PROG_RC],
  11518. -[AC_CHECK_TOOL(RC, windres,)
  11519. +dnl Registers an option to be passed to xgettext in the po subdirectory.
  11520. +AC_DEFUN([AM_XGETTEXT_OPTION],
  11521. +[
  11522. + AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
  11523. + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
  11524. ])
  11525. -# Old name:
  11526. -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11527. -dnl aclocal-1.4 backwards compatibility:
  11528. -dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11529. -
  11530. -
  11531. -# _LT_DECL_EGREP
  11532. -# --------------
  11533. -# If we don't have a new enough Autoconf to choose the best grep
  11534. -# available, choose the one first in the user's PATH.
  11535. -m4_defun([_LT_DECL_EGREP],
  11536. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  11537. -AC_REQUIRE([AC_PROG_FGREP])dnl
  11538. -test -z "$GREP" && GREP=grep
  11539. -_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11540. -_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11541. -_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11542. -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11543. -AC_SUBST([GREP])
  11544. -])
  11545. +# progtest.m4 serial 4 (gettext-0.14.2)
  11546. +dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
  11547. +dnl This file is free software; the Free Software Foundation
  11548. +dnl gives unlimited permission to copy and/or distribute it,
  11549. +dnl with or without modifications, as long as this notice is preserved.
  11550. +dnl
  11551. +dnl This file can can be used in projects which are not available under
  11552. +dnl the GNU General Public License or the GNU Library General Public
  11553. +dnl License but which still want to provide support for the GNU gettext
  11554. +dnl functionality.
  11555. +dnl Please note that the actual code of the GNU gettext library is covered
  11556. +dnl by the GNU Library General Public License, and the rest of the GNU
  11557. +dnl gettext package package is covered by the GNU General Public License.
  11558. +dnl They are *not* in the public domain.
  11559. +dnl Authors:
  11560. +dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
  11561. -# _LT_DECL_OBJDUMP
  11562. -# --------------
  11563. -# If we don't have a new enough Autoconf to choose the best objdump
  11564. -# available, choose the one first in the user's PATH.
  11565. -m4_defun([_LT_DECL_OBJDUMP],
  11566. -[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11567. -test -z "$OBJDUMP" && OBJDUMP=objdump
  11568. -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11569. -AC_SUBST([OBJDUMP])
  11570. -])
  11571. +AC_PREREQ(2.50)
  11572. +# Search path for a program which passes the given test.
  11573. -# _LT_DECL_SED
  11574. -# ------------
  11575. -# Check for a fully-functional sed program, that truncates
  11576. -# as few characters as possible. Prefer GNU sed if found.
  11577. -m4_defun([_LT_DECL_SED],
  11578. -[AC_PROG_SED
  11579. -test -z "$SED" && SED=sed
  11580. -Xsed="$SED -e 1s/^X//"
  11581. -_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11582. -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11583. - [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11584. -])# _LT_DECL_SED
  11585. -
  11586. -m4_ifndef([AC_PROG_SED], [
  11587. -# NOTE: This macro has been submitted for inclusion into #
  11588. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  11589. -# a released version of Autoconf we should remove this #
  11590. -# macro and use it instead. #
  11591. -
  11592. -m4_defun([AC_PROG_SED],
  11593. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  11594. -AC_CACHE_VAL(lt_cv_path_SED,
  11595. -[# Loop through the user's path and test for sed and gsed.
  11596. -# Then use that list of sed's as ones to test for truncation.
  11597. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11598. -for as_dir in $PATH
  11599. -do
  11600. - IFS=$as_save_IFS
  11601. - test -z "$as_dir" && as_dir=.
  11602. - for lt_ac_prog in sed gsed; do
  11603. - for ac_exec_ext in '' $ac_executable_extensions; do
  11604. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11605. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11606. - fi
  11607. - done
  11608. - done
  11609. -done
  11610. -IFS=$as_save_IFS
  11611. -lt_ac_max=0
  11612. -lt_ac_count=0
  11613. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11614. -# along with /bin/sed that truncates output.
  11615. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11616. - test ! -f $lt_ac_sed && continue
  11617. - cat /dev/null > conftest.in
  11618. - lt_ac_count=0
  11619. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11620. - # Check for GNU sed and select it if it is found.
  11621. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11622. - lt_cv_path_SED=$lt_ac_sed
  11623. - break
  11624. +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  11625. +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  11626. +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
  11627. +[
  11628. +# Prepare PATH_SEPARATOR.
  11629. +# The user is always right.
  11630. +if test "${PATH_SEPARATOR+set}" != set; then
  11631. + echo "#! /bin/sh" >conf$$.sh
  11632. + echo "exit 0" >>conf$$.sh
  11633. + chmod +x conf$$.sh
  11634. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11635. + PATH_SEPARATOR=';'
  11636. + else
  11637. + PATH_SEPARATOR=:
  11638. fi
  11639. - while true; do
  11640. - cat conftest.in conftest.in >conftest.tmp
  11641. - mv conftest.tmp conftest.in
  11642. - cp conftest.in conftest.nl
  11643. - echo >>conftest.nl
  11644. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11645. - cmp -s conftest.out conftest.nl || break
  11646. - # 10000 chars as input seems more than enough
  11647. - test $lt_ac_count -gt 10 && break
  11648. - lt_ac_count=`expr $lt_ac_count + 1`
  11649. - if test $lt_ac_count -gt $lt_ac_max; then
  11650. - lt_ac_max=$lt_ac_count
  11651. - lt_cv_path_SED=$lt_ac_sed
  11652. - fi
  11653. - done
  11654. -done
  11655. -])
  11656. -SED=$lt_cv_path_SED
  11657. -AC_SUBST([SED])
  11658. -AC_MSG_RESULT([$SED])
  11659. -])#AC_PROG_SED
  11660. -])#m4_ifndef
  11661. -
  11662. -# Old name:
  11663. -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11664. -dnl aclocal-1.4 backwards compatibility:
  11665. -dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11666. -
  11667. -
  11668. -# _LT_CHECK_SHELL_FEATURES
  11669. -# ------------------------
  11670. -# Find out whether the shell is Bourne or XSI compatible,
  11671. -# or has some other useful features.
  11672. -m4_defun([_LT_CHECK_SHELL_FEATURES],
  11673. -[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11674. -# Try some XSI features
  11675. -xsi_shell=no
  11676. -( _lt_dummy="a/b/c"
  11677. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11678. - = c,a/b,, \
  11679. - && eval 'test $(( 1 + 1 )) -eq 2 \
  11680. - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11681. - && xsi_shell=yes
  11682. -AC_MSG_RESULT([$xsi_shell])
  11683. -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11684. -
  11685. -AC_MSG_CHECKING([whether the shell understands "+="])
  11686. -lt_shell_append=no
  11687. -( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11688. - >/dev/null 2>&1 \
  11689. - && lt_shell_append=yes
  11690. -AC_MSG_RESULT([$lt_shell_append])
  11691. -_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11692. + rm -f conf$$.sh
  11693. +fi
  11694. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11695. - lt_unset=unset
  11696. +# Find out how to test for executable files. Don't use a zero-byte file,
  11697. +# as systems may use methods other than mode bits to determine executability.
  11698. +cat >conf$$.file <<_ASEOF
  11699. +#! /bin/sh
  11700. +exit 0
  11701. +_ASEOF
  11702. +chmod +x conf$$.file
  11703. +if test -x conf$$.file >/dev/null 2>&1; then
  11704. + ac_executable_p="test -x"
  11705. else
  11706. - lt_unset=false
  11707. + ac_executable_p="test -f"
  11708. fi
  11709. -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11710. -
  11711. -# test EBCDIC or ASCII
  11712. -case `echo X|tr X '\101'` in
  11713. - A) # ASCII based system
  11714. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11715. - lt_SP2NL='tr \040 \012'
  11716. - lt_NL2SP='tr \015\012 \040\040'
  11717. - ;;
  11718. - *) # EBCDIC based system
  11719. - lt_SP2NL='tr \100 \n'
  11720. - lt_NL2SP='tr \r\n \100\100'
  11721. - ;;
  11722. -esac
  11723. -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11724. -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11725. -])# _LT_CHECK_SHELL_FEATURES
  11726. -
  11727. -
  11728. -# _LT_PROG_XSI_SHELLFNS
  11729. -# ---------------------
  11730. -# Bourne and XSI compatible variants of some useful shell functions.
  11731. -m4_defun([_LT_PROG_XSI_SHELLFNS],
  11732. -[case $xsi_shell in
  11733. - yes)
  11734. - cat << \_LT_EOF >> "$cfgfile"
  11735. -
  11736. -# func_dirname file append nondir_replacement
  11737. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11738. -# otherwise set result to NONDIR_REPLACEMENT.
  11739. -func_dirname ()
  11740. -{
  11741. - case ${1} in
  11742. - */*) func_dirname_result="${1%/*}${2}" ;;
  11743. - * ) func_dirname_result="${3}" ;;
  11744. - esac
  11745. -}
  11746. -
  11747. -# func_basename file
  11748. -func_basename ()
  11749. -{
  11750. - func_basename_result="${1##*/}"
  11751. -}
  11752. -
  11753. -# func_dirname_and_basename file append nondir_replacement
  11754. -# perform func_basename and func_dirname in a single function
  11755. -# call:
  11756. -# dirname: Compute the dirname of FILE. If nonempty,
  11757. -# add APPEND to the result, otherwise set result
  11758. -# to NONDIR_REPLACEMENT.
  11759. -# value returned in "$func_dirname_result"
  11760. -# basename: Compute filename of FILE.
  11761. -# value retuned in "$func_basename_result"
  11762. -# Implementation must be kept synchronized with func_dirname
  11763. -# and func_basename. For efficiency, we do not delegate to
  11764. -# those functions but instead duplicate the functionality here.
  11765. -func_dirname_and_basename ()
  11766. -{
  11767. - case ${1} in
  11768. - */*) func_dirname_result="${1%/*}${2}" ;;
  11769. - * ) func_dirname_result="${3}" ;;
  11770. - esac
  11771. - func_basename_result="${1##*/}"
  11772. -}
  11773. -
  11774. -# func_stripname prefix suffix name
  11775. -# strip PREFIX and SUFFIX off of NAME.
  11776. -# PREFIX and SUFFIX must not contain globbing or regex special
  11777. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  11778. -# dot (in which case that matches only a dot).
  11779. -func_stripname ()
  11780. -{
  11781. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11782. - # positional parameters, so assign one to ordinary parameter first.
  11783. - func_stripname_result=${3}
  11784. - func_stripname_result=${func_stripname_result#"${1}"}
  11785. - func_stripname_result=${func_stripname_result%"${2}"}
  11786. -}
  11787. -
  11788. -# func_opt_split
  11789. -func_opt_split ()
  11790. -{
  11791. - func_opt_split_opt=${1%%=*}
  11792. - func_opt_split_arg=${1#*=}
  11793. -}
  11794. -
  11795. -# func_lo2o object
  11796. -func_lo2o ()
  11797. -{
  11798. - case ${1} in
  11799. - *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11800. - *) func_lo2o_result=${1} ;;
  11801. - esac
  11802. -}
  11803. -
  11804. -# func_xform libobj-or-source
  11805. -func_xform ()
  11806. -{
  11807. - func_xform_result=${1%.*}.lo
  11808. -}
  11809. -
  11810. -# func_arith arithmetic-term...
  11811. -func_arith ()
  11812. -{
  11813. - func_arith_result=$(( $[*] ))
  11814. -}
  11815. -
  11816. -# func_len string
  11817. -# STRING may not start with a hyphen.
  11818. -func_len ()
  11819. -{
  11820. - func_len_result=${#1}
  11821. -}
  11822. +rm -f conf$$.file
  11823. -_LT_EOF
  11824. +# Extract the first word of "$2", so it can be a program name with args.
  11825. +set dummy $2; ac_word=[$]2
  11826. +AC_MSG_CHECKING([for $ac_word])
  11827. +AC_CACHE_VAL(ac_cv_path_$1,
  11828. +[case "[$]$1" in
  11829. + [[\\/]]* | ?:[[\\/]]*)
  11830. + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  11831. ;;
  11832. - *) # Bourne compatible functions.
  11833. - cat << \_LT_EOF >> "$cfgfile"
  11834. -
  11835. -# func_dirname file append nondir_replacement
  11836. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11837. -# otherwise set result to NONDIR_REPLACEMENT.
  11838. -func_dirname ()
  11839. -{
  11840. - # Extract subdirectory from the argument.
  11841. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11842. - if test "X$func_dirname_result" = "X${1}"; then
  11843. - func_dirname_result="${3}"
  11844. - else
  11845. - func_dirname_result="$func_dirname_result${2}"
  11846. - fi
  11847. -}
  11848. -
  11849. -# func_basename file
  11850. -func_basename ()
  11851. -{
  11852. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11853. -}
  11854. -
  11855. -dnl func_dirname_and_basename
  11856. -dnl A portable version of this function is already defined in general.m4sh
  11857. -dnl so there is no need for it here.
  11858. -
  11859. -# func_stripname prefix suffix name
  11860. -# strip PREFIX and SUFFIX off of NAME.
  11861. -# PREFIX and SUFFIX must not contain globbing or regex special
  11862. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  11863. -# dot (in which case that matches only a dot).
  11864. -# func_strip_suffix prefix name
  11865. -func_stripname ()
  11866. -{
  11867. - case ${2} in
  11868. - .*) func_stripname_result=`$ECHO "X${3}" \
  11869. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11870. - *) func_stripname_result=`$ECHO "X${3}" \
  11871. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11872. - esac
  11873. -}
  11874. -
  11875. -# sed scripts:
  11876. -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11877. -my_sed_long_arg='1s/^-[[^=]]*=//'
  11878. -
  11879. -# func_opt_split
  11880. -func_opt_split ()
  11881. -{
  11882. - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11883. - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11884. -}
  11885. -
  11886. -# func_lo2o object
  11887. -func_lo2o ()
  11888. -{
  11889. - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11890. -}
  11891. -
  11892. -# func_xform libobj-or-source
  11893. -func_xform ()
  11894. -{
  11895. - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11896. -}
  11897. + *)
  11898. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11899. + for ac_dir in ifelse([$5], , $PATH, [$5]); do
  11900. + IFS="$ac_save_IFS"
  11901. + test -z "$ac_dir" && ac_dir=.
  11902. + for ac_exec_ext in '' $ac_executable_extensions; do
  11903. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11904. + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
  11905. + if [$3]; then
  11906. + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
  11907. + break 2
  11908. + fi
  11909. + fi
  11910. + done
  11911. + done
  11912. + IFS="$ac_save_IFS"
  11913. +dnl If no 4th arg is given, leave the cache variable unset,
  11914. +dnl so AC_PATH_PROGS will keep looking.
  11915. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  11916. +])dnl
  11917. + ;;
  11918. +esac])dnl
  11919. +$1="$ac_cv_path_$1"
  11920. +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  11921. + AC_MSG_RESULT([$]$1)
  11922. +else
  11923. + AC_MSG_RESULT(no)
  11924. +fi
  11925. +AC_SUBST($1)dnl
  11926. +])
  11927. -# func_arith arithmetic-term...
  11928. -func_arith ()
  11929. -{
  11930. - func_arith_result=`expr "$[@]"`
  11931. -}
  11932. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11933. +#
  11934. +# This file is free software; the Free Software Foundation
  11935. +# gives unlimited permission to copy and/or distribute it,
  11936. +# with or without modifications, as long as this notice is preserved.
  11937. -# func_len string
  11938. -# STRING may not start with a hyphen.
  11939. -func_len ()
  11940. -{
  11941. - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11942. -}
  11943. +# AM_AUTOMAKE_VERSION(VERSION)
  11944. +# ----------------------------
  11945. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  11946. +# generated from the m4 files accompanying Automake X.Y.
  11947. +# (This private macro should not be called outside this file.)
  11948. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  11949. +[am__api_version='1.11'
  11950. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11951. +dnl require some minimum version. Point them to the right macro.
  11952. +m4_if([$1], [1.11], [],
  11953. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11954. +])
  11955. -_LT_EOF
  11956. -esac
  11957. +# _AM_AUTOCONF_VERSION(VERSION)
  11958. +# -----------------------------
  11959. +# aclocal traces this macro to find the Autoconf version.
  11960. +# This is a private macro too. Using m4_define simplifies
  11961. +# the logic in aclocal, which can simply ignore this definition.
  11962. +m4_define([_AM_AUTOCONF_VERSION], [])
  11963. -case $lt_shell_append in
  11964. - yes)
  11965. - cat << \_LT_EOF >> "$cfgfile"
  11966. -
  11967. -# func_append var value
  11968. -# Append VALUE to the end of shell variable VAR.
  11969. -func_append ()
  11970. -{
  11971. - eval "$[1]+=\$[2]"
  11972. -}
  11973. -_LT_EOF
  11974. - ;;
  11975. - *)
  11976. - cat << \_LT_EOF >> "$cfgfile"
  11977. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  11978. +# -------------------------------
  11979. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11980. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11981. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11982. +[AM_AUTOMAKE_VERSION([1.11])dnl
  11983. +m4_ifndef([AC_AUTOCONF_VERSION],
  11984. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11985. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11986. -# func_append var value
  11987. -# Append VALUE to the end of shell variable VAR.
  11988. -func_append ()
  11989. -{
  11990. - eval "$[1]=\$$[1]\$[2]"
  11991. -}
  11992. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11993. -_LT_EOF
  11994. - ;;
  11995. - esac
  11996. -])
  11997. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11998. +#
  11999. +# This file is free software; the Free Software Foundation
  12000. +# gives unlimited permission to copy and/or distribute it,
  12001. +# with or without modifications, as long as this notice is preserved.
  12002. -# Helper functions for option handling. -*- Autoconf -*-
  12003. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  12004. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  12005. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  12006. +#
  12007. +# Of course, Automake must honor this variable whenever it calls a
  12008. +# tool from the auxiliary directory. The problem is that $srcdir (and
  12009. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  12010. +# depending on how configure is run. This is pretty annoying, since
  12011. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  12012. +# source directory, any form will work fine, but in subdirectories a
  12013. +# relative path needs to be adjusted first.
  12014. #
  12015. -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12016. -# Written by Gary V. Vaughan, 2004
  12017. +# $ac_aux_dir/missing
  12018. +# fails when called from a subdirectory if $ac_aux_dir is relative
  12019. +# $top_srcdir/$ac_aux_dir/missing
  12020. +# fails if $ac_aux_dir is absolute,
  12021. +# fails when called from a subdirectory in a VPATH build with
  12022. +# a relative $ac_aux_dir
  12023. #
  12024. -# This file is free software; the Free Software Foundation gives
  12025. -# unlimited permission to copy and/or distribute it, with or without
  12026. -# modifications, as long as this notice is preserved.
  12027. -
  12028. -# serial 6 ltoptions.m4
  12029. -
  12030. -# This is to help aclocal find these macros, as it can't see m4_define.
  12031. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  12032. -
  12033. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  12034. +# are both prefixed by $srcdir. In an in-source build this is usually
  12035. +# harmless because $srcdir is `.', but things will broke when you
  12036. +# start a VPATH build or use an absolute $srcdir.
  12037. +#
  12038. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  12039. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  12040. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  12041. +# and then we would define $MISSING as
  12042. +# MISSING="\${SHELL} $am_aux_dir/missing"
  12043. +# This will work as long as MISSING is not called from configure, because
  12044. +# unfortunately $(top_srcdir) has no meaning in configure.
  12045. +# However there are other variables, like CC, which are often used in
  12046. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  12047. +#
  12048. +# Another solution, used here, is to always expand $ac_aux_dir to an
  12049. +# absolute PATH. The drawback is that using absolute paths prevent a
  12050. +# configured tree to be moved without reconfiguration.
  12051. -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  12052. -# ------------------------------------------
  12053. -m4_define([_LT_MANGLE_OPTION],
  12054. -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  12055. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  12056. +[dnl Rely on autoconf to set up CDPATH properly.
  12057. +AC_PREREQ([2.50])dnl
  12058. +# expand $ac_aux_dir to an absolute path
  12059. +am_aux_dir=`cd $ac_aux_dir && pwd`
  12060. +])
  12061. +# AM_CONDITIONAL -*- Autoconf -*-
  12062. -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  12063. -# ---------------------------------------
  12064. -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  12065. -# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  12066. -# saved as a flag.
  12067. -m4_define([_LT_SET_OPTION],
  12068. -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  12069. -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  12070. - _LT_MANGLE_DEFUN([$1], [$2]),
  12071. - [m4_warning([Unknown $1 option `$2'])])[]dnl
  12072. -])
  12073. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  12074. +# Free Software Foundation, Inc.
  12075. +#
  12076. +# This file is free software; the Free Software Foundation
  12077. +# gives unlimited permission to copy and/or distribute it,
  12078. +# with or without modifications, as long as this notice is preserved.
  12079. +# serial 9
  12080. -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  12081. -# ------------------------------------------------------------
  12082. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  12083. -m4_define([_LT_IF_OPTION],
  12084. -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  12085. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  12086. +# -------------------------------------
  12087. +# Define a conditional.
  12088. +AC_DEFUN([AM_CONDITIONAL],
  12089. +[AC_PREREQ(2.52)dnl
  12090. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  12091. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  12092. +AC_SUBST([$1_TRUE])dnl
  12093. +AC_SUBST([$1_FALSE])dnl
  12094. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  12095. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  12096. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  12097. +if $2; then
  12098. + $1_TRUE=
  12099. + $1_FALSE='#'
  12100. +else
  12101. + $1_TRUE='#'
  12102. + $1_FALSE=
  12103. +fi
  12104. +AC_CONFIG_COMMANDS_PRE(
  12105. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  12106. + AC_MSG_ERROR([[conditional "$1" was never defined.
  12107. +Usually this means the macro was only invoked conditionally.]])
  12108. +fi])])
  12109. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  12110. +# Free Software Foundation, Inc.
  12111. +#
  12112. +# This file is free software; the Free Software Foundation
  12113. +# gives unlimited permission to copy and/or distribute it,
  12114. +# with or without modifications, as long as this notice is preserved.
  12115. -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  12116. -# -------------------------------------------------------
  12117. -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  12118. -# are set.
  12119. -m4_define([_LT_UNLESS_OPTIONS],
  12120. -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12121. - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  12122. - [m4_define([$0_found])])])[]dnl
  12123. -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  12124. -])[]dnl
  12125. -])
  12126. +# serial 10
  12127. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  12128. +# written in clear, in which case automake, when reading aclocal.m4,
  12129. +# will think it sees a *use*, and therefore will trigger all it's
  12130. +# C support machinery. Also note that it means that autoscan, seeing
  12131. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  12132. -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  12133. -# ----------------------------------------
  12134. -# OPTION-LIST is a space-separated list of Libtool options associated
  12135. -# with MACRO-NAME. If any OPTION has a matching handler declared with
  12136. -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  12137. -# the unknown option and exit.
  12138. -m4_defun([_LT_SET_OPTIONS],
  12139. -[# Set options
  12140. -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12141. - [_LT_SET_OPTION([$1], _LT_Option)])
  12142. -
  12143. -m4_if([$1],[LT_INIT],[
  12144. - dnl
  12145. - dnl Simply set some default values (i.e off) if boolean options were not
  12146. - dnl specified:
  12147. - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  12148. - ])
  12149. - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  12150. - ])
  12151. - dnl
  12152. - dnl If no reference was made to various pairs of opposing options, then
  12153. - dnl we run the default mode handler for the pair. For example, if neither
  12154. - dnl `shared' nor `disable-shared' was passed, we enable building of shared
  12155. - dnl archives by default:
  12156. - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  12157. - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  12158. - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  12159. - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  12160. - [_LT_ENABLE_FAST_INSTALL])
  12161. - ])
  12162. -])# _LT_SET_OPTIONS
  12163. +# _AM_DEPENDENCIES(NAME)
  12164. +# ----------------------
  12165. +# See how the compiler implements dependency checking.
  12166. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  12167. +# We try a few techniques and use that to set a single cache variable.
  12168. +#
  12169. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  12170. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  12171. +# dependency, and given that the user is not expected to run this macro,
  12172. +# just rely on AC_PROG_CC.
  12173. +AC_DEFUN([_AM_DEPENDENCIES],
  12174. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  12175. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  12176. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  12177. +AC_REQUIRE([AM_DEP_TRACK])dnl
  12178. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  12179. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  12180. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  12181. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  12182. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  12183. + [depcc="$$1" am_compiler_list=])
  12184. -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  12185. -# -----------------------------------------
  12186. -m4_define([_LT_MANGLE_DEFUN],
  12187. -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  12188. +AC_CACHE_CHECK([dependency style of $depcc],
  12189. + [am_cv_$1_dependencies_compiler_type],
  12190. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12191. + # We make a subdir and do the tests there. Otherwise we can end up
  12192. + # making bogus files that we don't know about and never remove. For
  12193. + # instance it was reported that on HP-UX the gcc test will end up
  12194. + # making a dummy file named `D' -- because `-MD' means `put the output
  12195. + # in D'.
  12196. + mkdir conftest.dir
  12197. + # Copy depcomp to subdir because otherwise we won't find it if we're
  12198. + # using a relative directory.
  12199. + cp "$am_depcomp" conftest.dir
  12200. + cd conftest.dir
  12201. + # We will build objects and dependencies in a subdirectory because
  12202. + # it helps to detect inapplicable dependency modes. For instance
  12203. + # both Tru64's cc and ICC support -MD to output dependencies as a
  12204. + # side effect of compilation, but ICC will put the dependencies in
  12205. + # the current directory while Tru64 will put them in the object
  12206. + # directory.
  12207. + mkdir sub
  12208. + am_cv_$1_dependencies_compiler_type=none
  12209. + if test "$am_compiler_list" = ""; then
  12210. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  12211. + fi
  12212. + am__universal=false
  12213. + m4_case([$1], [CC],
  12214. + [case " $depcc " in #(
  12215. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12216. + esac],
  12217. + [CXX],
  12218. + [case " $depcc " in #(
  12219. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12220. + esac])
  12221. -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  12222. -# -----------------------------------------------
  12223. -m4_define([LT_OPTION_DEFINE],
  12224. -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  12225. -])# LT_OPTION_DEFINE
  12226. + for depmode in $am_compiler_list; do
  12227. + # Setup a source with many dependencies, because some compilers
  12228. + # like to wrap large dependency lists on column 80 (with \), and
  12229. + # we should not choose a depcomp mode which is confused by this.
  12230. + #
  12231. + # We need to recreate these files for each test, as the compiler may
  12232. + # overwrite some of them when testing with obscure command lines.
  12233. + # This happens at least with the AIX C compiler.
  12234. + : > sub/conftest.c
  12235. + for i in 1 2 3 4 5 6; do
  12236. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12237. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12238. + # Solaris 8's {/usr,}/bin/sh.
  12239. + touch sub/conftst$i.h
  12240. + done
  12241. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12242. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12243. + # mode. It turns out that the SunPro C++ compiler does not properly
  12244. + # handle `-M -o', and we need to detect this. Also, some Intel
  12245. + # versions had trouble with output in subdirs
  12246. + am__obj=sub/conftest.${OBJEXT-o}
  12247. + am__minus_obj="-o $am__obj"
  12248. + case $depmode in
  12249. + gcc)
  12250. + # This depmode causes a compiler race in universal mode.
  12251. + test "$am__universal" = false || continue
  12252. + ;;
  12253. + nosideeffect)
  12254. + # after this tag, mechanisms are not by side-effect, so they'll
  12255. + # only be used when explicitly requested
  12256. + if test "x$enable_dependency_tracking" = xyes; then
  12257. + continue
  12258. + else
  12259. + break
  12260. + fi
  12261. + ;;
  12262. + msvisualcpp | msvcmsys)
  12263. + # This compiler won't grok `-c -o', but also, the minuso test has
  12264. + # not run yet. These depmodes are late enough in the game, and
  12265. + # so weak that their functioning should not be impacted.
  12266. + am__obj=conftest.${OBJEXT-o}
  12267. + am__minus_obj=
  12268. + ;;
  12269. + none) break ;;
  12270. + esac
  12271. + if depmode=$depmode \
  12272. + source=sub/conftest.c object=$am__obj \
  12273. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12274. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12275. + >/dev/null 2>conftest.err &&
  12276. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12277. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12278. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12279. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12280. + # icc doesn't choke on unknown options, it will just issue warnings
  12281. + # or remarks (even with -Werror). So we grep stderr for any message
  12282. + # that says an option was ignored or not supported.
  12283. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  12284. + # icc: Command line warning: ignoring option '-M'; no argument required
  12285. + # The diagnosis changed in icc 8.0:
  12286. + # icc: Command line remark: option '-MP' not supported
  12287. + if (grep 'ignoring option' conftest.err ||
  12288. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12289. + am_cv_$1_dependencies_compiler_type=$depmode
  12290. + break
  12291. + fi
  12292. + fi
  12293. + done
  12294. -# dlopen
  12295. -# ------
  12296. -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12297. + cd ..
  12298. + rm -rf conftest.dir
  12299. +else
  12300. + am_cv_$1_dependencies_compiler_type=none
  12301. +fi
  12302. ])
  12303. -
  12304. -AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12305. -[_LT_SET_OPTION([LT_INIT], [dlopen])
  12306. -AC_DIAGNOSE([obsolete],
  12307. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12308. -put the `dlopen' option into LT_INIT's first parameter.])
  12309. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  12310. +AM_CONDITIONAL([am__fastdep$1], [
  12311. + test "x$enable_dependency_tracking" != xno \
  12312. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  12313. ])
  12314. -dnl aclocal-1.4 backwards compatibility:
  12315. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12316. -
  12317. -
  12318. -# win32-dll
  12319. -# ---------
  12320. -# Declare package support for building win32 dll's.
  12321. -LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12322. -[enable_win32_dll=yes
  12323. -
  12324. -case $host in
  12325. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12326. - AC_CHECK_TOOL(AS, as, false)
  12327. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12328. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12329. - ;;
  12330. -esac
  12331. -
  12332. -test -z "$AS" && AS=as
  12333. -_LT_DECL([], [AS], [0], [Assembler program])dnl
  12334. -
  12335. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  12336. -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12337. -test -z "$OBJDUMP" && OBJDUMP=objdump
  12338. -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12339. -])# win32-dll
  12340. -
  12341. -AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12342. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12343. -_LT_SET_OPTION([LT_INIT], [win32-dll])
  12344. -AC_DIAGNOSE([obsolete],
  12345. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12346. -put the `win32-dll' option into LT_INIT's first parameter.])
  12347. +# AM_SET_DEPDIR
  12348. +# -------------
  12349. +# Choose a directory name for dependency files.
  12350. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  12351. +AC_DEFUN([AM_SET_DEPDIR],
  12352. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  12353. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  12354. ])
  12355. -dnl aclocal-1.4 backwards compatibility:
  12356. -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12357. -
  12358. -
  12359. -# _LT_ENABLE_SHARED([DEFAULT])
  12360. -# ----------------------------
  12361. -# implement the --enable-shared flag, and supports the `shared' and
  12362. -# `disable-shared' LT_INIT options.
  12363. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12364. -m4_define([_LT_ENABLE_SHARED],
  12365. -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12366. -AC_ARG_ENABLE([shared],
  12367. - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12368. - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12369. - [p=${PACKAGE-default}
  12370. - case $enableval in
  12371. - yes) enable_shared=yes ;;
  12372. - no) enable_shared=no ;;
  12373. - *)
  12374. - enable_shared=no
  12375. - # Look at the argument we got. We use all the common list separators.
  12376. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12377. - for pkg in $enableval; do
  12378. - IFS="$lt_save_ifs"
  12379. - if test "X$pkg" = "X$p"; then
  12380. - enable_shared=yes
  12381. - fi
  12382. - done
  12383. - IFS="$lt_save_ifs"
  12384. - ;;
  12385. - esac],
  12386. - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12387. -
  12388. - _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12389. - [Whether or not to build shared libraries])
  12390. -])# _LT_ENABLE_SHARED
  12391. -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12392. -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12393. -
  12394. -# Old names:
  12395. -AC_DEFUN([AC_ENABLE_SHARED],
  12396. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12397. -])
  12398. -
  12399. -AC_DEFUN([AC_DISABLE_SHARED],
  12400. -[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12401. +# AM_DEP_TRACK
  12402. +# ------------
  12403. +AC_DEFUN([AM_DEP_TRACK],
  12404. +[AC_ARG_ENABLE(dependency-tracking,
  12405. +[ --disable-dependency-tracking speeds up one-time build
  12406. + --enable-dependency-tracking do not reject slow dependency extractors])
  12407. +if test "x$enable_dependency_tracking" != xno; then
  12408. + am_depcomp="$ac_aux_dir/depcomp"
  12409. + AMDEPBACKSLASH='\'
  12410. +fi
  12411. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  12412. +AC_SUBST([AMDEPBACKSLASH])dnl
  12413. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  12414. ])
  12415. -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12416. -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12417. -
  12418. -dnl aclocal-1.4 backwards compatibility:
  12419. -dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12420. -dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12421. -
  12422. -
  12423. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  12424. -# _LT_ENABLE_STATIC([DEFAULT])
  12425. -# ----------------------------
  12426. -# implement the --enable-static flag, and support the `static' and
  12427. -# `disable-static' LT_INIT options.
  12428. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12429. -m4_define([_LT_ENABLE_STATIC],
  12430. -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12431. -AC_ARG_ENABLE([static],
  12432. - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12433. - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12434. - [p=${PACKAGE-default}
  12435. - case $enableval in
  12436. - yes) enable_static=yes ;;
  12437. - no) enable_static=no ;;
  12438. - *)
  12439. - enable_static=no
  12440. - # Look at the argument we got. We use all the common list separators.
  12441. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12442. - for pkg in $enableval; do
  12443. - IFS="$lt_save_ifs"
  12444. - if test "X$pkg" = "X$p"; then
  12445. - enable_static=yes
  12446. - fi
  12447. - done
  12448. - IFS="$lt_save_ifs"
  12449. - ;;
  12450. - esac],
  12451. - [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12452. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  12453. +# Free Software Foundation, Inc.
  12454. +#
  12455. +# This file is free software; the Free Software Foundation
  12456. +# gives unlimited permission to copy and/or distribute it,
  12457. +# with or without modifications, as long as this notice is preserved.
  12458. - _LT_DECL([build_old_libs], [enable_static], [0],
  12459. - [Whether or not to build static libraries])
  12460. -])# _LT_ENABLE_STATIC
  12461. +#serial 5
  12462. -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12463. -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12464. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  12465. +# ------------------------------
  12466. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  12467. +[{
  12468. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12469. + # are listed without --file. Let's play safe and only enable the eval
  12470. + # if we detect the quoting.
  12471. + case $CONFIG_FILES in
  12472. + *\'*) eval set x "$CONFIG_FILES" ;;
  12473. + *) set x $CONFIG_FILES ;;
  12474. + esac
  12475. + shift
  12476. + for mf
  12477. + do
  12478. + # Strip MF so we end up with the name of the file.
  12479. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  12480. + # Check whether this is an Automake generated Makefile or not.
  12481. + # We used to match only the files named `Makefile.in', but
  12482. + # some people rename them; so instead we look at the file content.
  12483. + # Grep'ing the first line is not enough: some people post-process
  12484. + # each Makefile.in and add a new line on top of each file to say so.
  12485. + # Grep'ing the whole file is not good either: AIX grep has a line
  12486. + # limit of 2048, but all sed's we know have understand at least 4000.
  12487. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12488. + dirpart=`AS_DIRNAME("$mf")`
  12489. + else
  12490. + continue
  12491. + fi
  12492. + # Extract the definition of DEPDIR, am__include, and am__quote
  12493. + # from the Makefile without running `make'.
  12494. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12495. + test -z "$DEPDIR" && continue
  12496. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12497. + test -z "am__include" && continue
  12498. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12499. + # When using ansi2knr, U may be empty or an underscore; expand it
  12500. + U=`sed -n 's/^U = //p' < "$mf"`
  12501. + # Find all dependency output files, they are included files with
  12502. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  12503. + # simplest approach to changing $(DEPDIR) to its actual value in the
  12504. + # expansion.
  12505. + for file in `sed -n "
  12506. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12507. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12508. + # Make sure the directory exists.
  12509. + test -f "$dirpart/$file" && continue
  12510. + fdir=`AS_DIRNAME(["$file"])`
  12511. + AS_MKDIR_P([$dirpart/$fdir])
  12512. + # echo "creating $dirpart/$file"
  12513. + echo '# dummy' > "$dirpart/$file"
  12514. + done
  12515. + done
  12516. +}
  12517. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  12518. -# Old names:
  12519. -AC_DEFUN([AC_ENABLE_STATIC],
  12520. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12521. -])
  12522. -AC_DEFUN([AC_DISABLE_STATIC],
  12523. -[_LT_SET_OPTION([LT_INIT], [disable-static])
  12524. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  12525. +# -----------------------------
  12526. +# This macro should only be invoked once -- use via AC_REQUIRE.
  12527. +#
  12528. +# This code is only required when automatic dependency tracking
  12529. +# is enabled. FIXME. This creates each `.P' file that we will
  12530. +# need in order to bootstrap the dependency handling code.
  12531. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  12532. +[AC_CONFIG_COMMANDS([depfiles],
  12533. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  12534. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  12535. ])
  12536. -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12537. -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12538. +# Do all the work for Automake. -*- Autoconf -*-
  12539. -dnl aclocal-1.4 backwards compatibility:
  12540. -dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12541. -dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12542. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12543. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  12544. +#
  12545. +# This file is free software; the Free Software Foundation
  12546. +# gives unlimited permission to copy and/or distribute it,
  12547. +# with or without modifications, as long as this notice is preserved.
  12548. +# serial 16
  12549. +# This macro actually does too much. Some checks are only needed if
  12550. +# your package does certain things. But this isn't really a big deal.
  12551. -# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12552. -# ----------------------------------
  12553. -# implement the --enable-fast-install flag, and support the `fast-install'
  12554. -# and `disable-fast-install' LT_INIT options.
  12555. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12556. -m4_define([_LT_ENABLE_FAST_INSTALL],
  12557. -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12558. -AC_ARG_ENABLE([fast-install],
  12559. - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12560. - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12561. - [p=${PACKAGE-default}
  12562. - case $enableval in
  12563. - yes) enable_fast_install=yes ;;
  12564. - no) enable_fast_install=no ;;
  12565. - *)
  12566. - enable_fast_install=no
  12567. - # Look at the argument we got. We use all the common list separators.
  12568. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12569. - for pkg in $enableval; do
  12570. - IFS="$lt_save_ifs"
  12571. - if test "X$pkg" = "X$p"; then
  12572. - enable_fast_install=yes
  12573. - fi
  12574. - done
  12575. - IFS="$lt_save_ifs"
  12576. - ;;
  12577. - esac],
  12578. - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12579. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  12580. +# AM_INIT_AUTOMAKE([OPTIONS])
  12581. +# -----------------------------------------------
  12582. +# The call with PACKAGE and VERSION arguments is the old style
  12583. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  12584. +# and VERSION should now be passed to AC_INIT and removed from
  12585. +# the call to AM_INIT_AUTOMAKE.
  12586. +# We support both call styles for the transition. After
  12587. +# the next Automake release, Autoconf can make the AC_INIT
  12588. +# arguments mandatory, and then we can depend on a new Autoconf
  12589. +# release and drop the old call support.
  12590. +AC_DEFUN([AM_INIT_AUTOMAKE],
  12591. +[AC_PREREQ([2.62])dnl
  12592. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  12593. +dnl the ones we care about.
  12594. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  12595. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  12596. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  12597. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12598. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12599. + # is not polluted with repeated "-I."
  12600. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  12601. + # test to see if srcdir already configured
  12602. + if test -f $srcdir/config.status; then
  12603. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  12604. + fi
  12605. +fi
  12606. -_LT_DECL([fast_install], [enable_fast_install], [0],
  12607. - [Whether or not to optimize for fast installation])dnl
  12608. -])# _LT_ENABLE_FAST_INSTALL
  12609. +# test whether we have cygpath
  12610. +if test -z "$CYGPATH_W"; then
  12611. + if (cygpath --version) >/dev/null 2>/dev/null; then
  12612. + CYGPATH_W='cygpath -w'
  12613. + else
  12614. + CYGPATH_W=echo
  12615. + fi
  12616. +fi
  12617. +AC_SUBST([CYGPATH_W])
  12618. -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12619. -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12620. +# Define the identity of the package.
  12621. +dnl Distinguish between old-style and new-style calls.
  12622. +m4_ifval([$2],
  12623. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  12624. + AC_SUBST([PACKAGE], [$1])dnl
  12625. + AC_SUBST([VERSION], [$2])],
  12626. +[_AM_SET_OPTIONS([$1])dnl
  12627. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  12628. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  12629. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  12630. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  12631. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  12632. -# Old names:
  12633. -AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12634. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12635. -AC_DIAGNOSE([obsolete],
  12636. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12637. -the `fast-install' option into LT_INIT's first parameter.])
  12638. -])
  12639. +_AM_IF_OPTION([no-define],,
  12640. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  12641. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  12642. -AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12643. -[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12644. -AC_DIAGNOSE([obsolete],
  12645. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12646. -the `disable-fast-install' option into LT_INIT's first parameter.])
  12647. +# Some tools Automake needs.
  12648. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  12649. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  12650. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  12651. +AM_MISSING_PROG(AUTOCONF, autoconf)
  12652. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  12653. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  12654. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  12655. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  12656. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  12657. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  12658. +# We need awk for the "check" target. The system "awk" is bad on
  12659. +# some platforms.
  12660. +AC_REQUIRE([AC_PROG_AWK])dnl
  12661. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  12662. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  12663. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  12664. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  12665. + [_AM_PROG_TAR([v7])])])
  12666. +_AM_IF_OPTION([no-dependencies],,
  12667. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  12668. + [_AM_DEPENDENCIES(CC)],
  12669. + [define([AC_PROG_CC],
  12670. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  12671. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  12672. + [_AM_DEPENDENCIES(CXX)],
  12673. + [define([AC_PROG_CXX],
  12674. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  12675. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  12676. + [_AM_DEPENDENCIES(OBJC)],
  12677. + [define([AC_PROG_OBJC],
  12678. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  12679. +])
  12680. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  12681. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  12682. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  12683. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  12684. +AC_CONFIG_COMMANDS_PRE(dnl
  12685. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  12686. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  12687. ])
  12688. -dnl aclocal-1.4 backwards compatibility:
  12689. -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12690. -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12691. -
  12692. -
  12693. -# _LT_WITH_PIC([MODE])
  12694. -# --------------------
  12695. -# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12696. -# LT_INIT options.
  12697. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12698. -m4_define([_LT_WITH_PIC],
  12699. -[AC_ARG_WITH([pic],
  12700. - [AS_HELP_STRING([--with-pic],
  12701. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12702. - [pic_mode="$withval"],
  12703. - [pic_mode=default])
  12704. -
  12705. -test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12706. -
  12707. -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12708. -])# _LT_WITH_PIC
  12709. -
  12710. -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12711. -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12712. -
  12713. -# Old name:
  12714. -AU_DEFUN([AC_LIBTOOL_PICMODE],
  12715. -[_LT_SET_OPTION([LT_INIT], [pic-only])
  12716. -AC_DIAGNOSE([obsolete],
  12717. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12718. -put the `pic-only' option into LT_INIT's first parameter.])
  12719. -])
  12720. -
  12721. -dnl aclocal-1.4 backwards compatibility:
  12722. -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12723. -
  12724. -
  12725. -m4_define([_LTDL_MODE], [])
  12726. -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12727. - [m4_define([_LTDL_MODE], [nonrecursive])])
  12728. -LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12729. - [m4_define([_LTDL_MODE], [recursive])])
  12730. -LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12731. - [m4_define([_LTDL_MODE], [subproject])])
  12732. -
  12733. -m4_define([_LTDL_TYPE], [])
  12734. -LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12735. - [m4_define([_LTDL_TYPE], [installable])])
  12736. -LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12737. - [m4_define([_LTDL_TYPE], [convenience])])
  12738. -
  12739. -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12740. -#
  12741. -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12742. -# Written by Gary V. Vaughan, 2004
  12743. -#
  12744. -# This file is free software; the Free Software Foundation gives
  12745. -# unlimited permission to copy and/or distribute it, with or without
  12746. -# modifications, as long as this notice is preserved.
  12747. -
  12748. -# serial 6 ltsugar.m4
  12749. -
  12750. -# This is to help aclocal find these macros, as it can't see m4_define.
  12751. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12752. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  12753. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  12754. +dnl mangled by Autoconf and run in a shell conditional statement.
  12755. +m4_define([_AC_COMPILER_EXEEXT],
  12756. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  12757. -# lt_join(SEP, ARG1, [ARG2...])
  12758. -# -----------------------------
  12759. -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12760. -# associated separator.
  12761. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12762. -# versions in m4sugar had bugs.
  12763. -m4_define([lt_join],
  12764. -[m4_if([$#], [1], [],
  12765. - [$#], [2], [[$2]],
  12766. - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12767. -m4_define([_lt_join],
  12768. -[m4_if([$#$2], [2], [],
  12769. - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12770. +# When config.status generates a header, we must update the stamp-h file.
  12771. +# This file resides in the same directory as the config header
  12772. +# that is generated. The stamp files are numbered to have different names.
  12773. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  12774. +# loop where config.status creates the headers, so we can generate
  12775. +# our stamp files there.
  12776. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  12777. +[# Compute $1's index in $config_headers.
  12778. +_am_arg=$1
  12779. +_am_stamp_count=1
  12780. +for _am_header in $config_headers :; do
  12781. + case $_am_header in
  12782. + $_am_arg | $_am_arg:* )
  12783. + break ;;
  12784. + * )
  12785. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12786. + esac
  12787. +done
  12788. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  12789. -# lt_car(LIST)
  12790. -# lt_cdr(LIST)
  12791. -# ------------
  12792. -# Manipulate m4 lists.
  12793. -# These macros are necessary as long as will still need to support
  12794. -# Autoconf-2.59 which quotes differently.
  12795. -m4_define([lt_car], [[$1]])
  12796. -m4_define([lt_cdr],
  12797. -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12798. - [$#], 1, [],
  12799. - [m4_dquote(m4_shift($@))])])
  12800. -m4_define([lt_unquote], $1)
  12801. -
  12802. -
  12803. -# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12804. -# ------------------------------------------
  12805. -# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12806. -# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12807. -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12808. -# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12809. -# than defined and empty).
  12810. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  12811. #
  12812. -# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12813. -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12814. -m4_define([lt_append],
  12815. -[m4_define([$1],
  12816. - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12817. -
  12818. -
  12819. -
  12820. -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12821. -# ----------------------------------------------------------
  12822. -# Produce a SEP delimited list of all paired combinations of elements of
  12823. -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12824. -# has the form PREFIXmINFIXSUFFIXn.
  12825. -# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12826. -m4_define([lt_combine],
  12827. -[m4_if(m4_eval([$# > 3]), [1],
  12828. - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12829. -[[m4_foreach([_Lt_prefix], [$2],
  12830. - [m4_foreach([_Lt_suffix],
  12831. - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12832. - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12833. -
  12834. -
  12835. -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12836. -# -----------------------------------------------------------------------
  12837. -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12838. -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12839. -m4_define([lt_if_append_uniq],
  12840. -[m4_ifdef([$1],
  12841. - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12842. - [lt_append([$1], [$2], [$3])$4],
  12843. - [$5])],
  12844. - [lt_append([$1], [$2], [$3])$4])])
  12845. -
  12846. -
  12847. -# lt_dict_add(DICT, KEY, VALUE)
  12848. -# -----------------------------
  12849. -m4_define([lt_dict_add],
  12850. -[m4_define([$1($2)], [$3])])
  12851. +# This file is free software; the Free Software Foundation
  12852. +# gives unlimited permission to copy and/or distribute it,
  12853. +# with or without modifications, as long as this notice is preserved.
  12854. +# AM_PROG_INSTALL_SH
  12855. +# ------------------
  12856. +# Define $install_sh.
  12857. +AC_DEFUN([AM_PROG_INSTALL_SH],
  12858. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  12859. +if test x"${install_sh}" != xset; then
  12860. + case $am_aux_dir in
  12861. + *\ * | *\ *)
  12862. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12863. + *)
  12864. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  12865. + esac
  12866. +fi
  12867. +AC_SUBST(install_sh)])
  12868. -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12869. -# --------------------------------------------
  12870. -m4_define([lt_dict_add_subkey],
  12871. -[m4_define([$1($2:$3)], [$4])])
  12872. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  12873. +#
  12874. +# This file is free software; the Free Software Foundation
  12875. +# gives unlimited permission to copy and/or distribute it,
  12876. +# with or without modifications, as long as this notice is preserved.
  12877. +# serial 2
  12878. -# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12879. -# ----------------------------------
  12880. -m4_define([lt_dict_fetch],
  12881. -[m4_ifval([$3],
  12882. - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12883. - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12884. -
  12885. -
  12886. -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12887. -# -----------------------------------------------------------------
  12888. -m4_define([lt_if_dict_fetch],
  12889. -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12890. - [$5],
  12891. - [$6])])
  12892. -
  12893. -
  12894. -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12895. -# --------------------------------------------------------------
  12896. -m4_define([lt_dict_filter],
  12897. -[m4_if([$5], [], [],
  12898. - [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12899. - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12900. - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12901. -])
  12902. +# Check whether the underlying file-system supports filenames
  12903. +# with a leading dot. For instance MS-DOS doesn't.
  12904. +AC_DEFUN([AM_SET_LEADING_DOT],
  12905. +[rm -rf .tst 2>/dev/null
  12906. +mkdir .tst 2>/dev/null
  12907. +if test -d .tst; then
  12908. + am__leading_dot=.
  12909. +else
  12910. + am__leading_dot=_
  12911. +fi
  12912. +rmdir .tst 2>/dev/null
  12913. +AC_SUBST([am__leading_dot])])
  12914. -# ltversion.m4 -- version numbers -*- Autoconf -*-
  12915. -#
  12916. -# Copyright (C) 2004 Free Software Foundation, Inc.
  12917. -# Written by Scott James Remnant, 2004
  12918. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  12919. +# 2006 Free Software Foundation, Inc.
  12920. #
  12921. -# This file is free software; the Free Software Foundation gives
  12922. -# unlimited permission to copy and/or distribute it, with or without
  12923. -# modifications, as long as this notice is preserved.
  12924. -
  12925. -# Generated from ltversion.in.
  12926. -
  12927. -# serial 3012 ltversion.m4
  12928. -# This file is part of GNU Libtool
  12929. +# This file is free software; the Free Software Foundation
  12930. +# gives unlimited permission to copy and/or distribute it,
  12931. +# with or without modifications, as long as this notice is preserved.
  12932. -m4_define([LT_PACKAGE_VERSION], [2.2.6])
  12933. -m4_define([LT_PACKAGE_REVISION], [1.3012])
  12934. +# serial 10
  12935. -AC_DEFUN([LTVERSION_VERSION],
  12936. -[macro_version='2.2.6'
  12937. -macro_revision='1.3012'
  12938. -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12939. -_LT_DECL(, macro_revision, 0)
  12940. +# AM_PATH_LISPDIR
  12941. +# ---------------
  12942. +AC_DEFUN([AM_PATH_LISPDIR],
  12943. +[AC_PREREQ([2.60])dnl
  12944. + # If set to t, that means we are running in a shell under Emacs.
  12945. + # If you have an Emacs named "t", then use the full path.
  12946. + test x"$EMACS" = xt && EMACS=
  12947. + AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
  12948. + AC_ARG_VAR([EMACS], [the Emacs editor command])
  12949. + AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
  12950. + AC_ARG_WITH([lispdir],
  12951. + [ --with-lispdir override the default lisp directory],
  12952. + [ lispdir="$withval"
  12953. + AC_MSG_CHECKING([where .elc files should go])
  12954. + AC_MSG_RESULT([$lispdir])],
  12955. + [
  12956. + AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
  12957. + if test $EMACS != "no"; then
  12958. + if test x${lispdir+set} != xset; then
  12959. + # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
  12960. + # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
  12961. + # which is non-obvious for non-emacs users.
  12962. + # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  12963. + # emacsen earlier and avoid running this altogether.
  12964. + AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
  12965. + am_cv_lispdir=`sed -n \
  12966. + -e 's,/$,,' \
  12967. + -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
  12968. + -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
  12969. + conftest.out`
  12970. + rm conftest.out
  12971. + fi
  12972. + fi
  12973. + test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
  12974. + ])
  12975. + lispdir="$am_cv_lispdir"
  12976. ])
  12977. +AC_SUBST([lispdir])
  12978. +])# AM_PATH_LISPDIR
  12979. -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12980. -#
  12981. -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12982. -# Written by Scott James Remnant, 2004.
  12983. -#
  12984. -# This file is free software; the Free Software Foundation gives
  12985. -# unlimited permission to copy and/or distribute it, with or without
  12986. -# modifications, as long as this notice is preserved.
  12987. +AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
  12988. -# serial 4 lt~obsolete.m4
  12989. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  12990. -# These exist entirely to fool aclocal when bootstrapping libtool.
  12991. -#
  12992. -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12993. -# which have later been changed to m4_define as they aren't part of the
  12994. -# exported API, or moved to Autoconf or Automake where they belong.
  12995. -#
  12996. -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12997. -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12998. -# using a macro with the same name in our local m4/libtool.m4 it'll
  12999. -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  13000. -# and doesn't know about Autoconf macros at all.)
  13001. -#
  13002. -# So we provide this file, which has a silly filename so it's always
  13003. -# included after everything else. This provides aclocal with the
  13004. -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  13005. -# because those macros already exist, or will be overwritten later.
  13006. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  13007. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13008. #
  13009. -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  13010. -# Yes, that means every name once taken will need to remain here until
  13011. -# we give up compatibility with versions before 1.7, at which point
  13012. -# we need to keep only those names which we still refer to.
  13013. -
  13014. -# This is to help aclocal find these macros, as it can't see m4_define.
  13015. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  13016. -
  13017. -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  13018. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  13019. -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  13020. -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  13021. -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  13022. -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  13023. -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  13024. -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  13025. -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  13026. -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  13027. -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  13028. -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  13029. -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  13030. -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  13031. -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  13032. -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  13033. -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  13034. -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  13035. -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  13036. -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  13037. -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  13038. -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  13039. -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  13040. -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  13041. -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  13042. -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  13043. -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  13044. -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  13045. -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  13046. -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  13047. -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  13048. -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  13049. -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  13050. -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  13051. -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  13052. -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  13053. -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  13054. -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  13055. -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  13056. -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  13057. -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  13058. -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  13059. -m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  13060. -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  13061. -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  13062. -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  13063. -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  13064. -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  13065. -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  13066. -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  13067. -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  13068. -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  13069. -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  13070. -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  13071. -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  13072. -
  13073. -# nls.m4 serial 3 (gettext-0.15)
  13074. -dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
  13075. -dnl This file is free software; the Free Software Foundation
  13076. -dnl gives unlimited permission to copy and/or distribute it,
  13077. -dnl with or without modifications, as long as this notice is preserved.
  13078. -dnl
  13079. -dnl This file can can be used in projects which are not available under
  13080. -dnl the GNU General Public License or the GNU Library General Public
  13081. -dnl License but which still want to provide support for the GNU gettext
  13082. -dnl functionality.
  13083. -dnl Please note that the actual code of the GNU gettext library is covered
  13084. -dnl by the GNU Library General Public License, and the rest of the GNU
  13085. -dnl gettext package package is covered by the GNU General Public License.
  13086. -dnl They are *not* in the public domain.
  13087. -
  13088. -dnl Authors:
  13089. -dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  13090. -dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  13091. +# This file is free software; the Free Software Foundation
  13092. +# gives unlimited permission to copy and/or distribute it,
  13093. +# with or without modifications, as long as this notice is preserved.
  13094. -AC_PREREQ(2.50)
  13095. +# serial 4
  13096. -AC_DEFUN([AM_NLS],
  13097. -[
  13098. - AC_MSG_CHECKING([whether NLS is requested])
  13099. - dnl Default is enabled NLS
  13100. - AC_ARG_ENABLE(nls,
  13101. - [ --disable-nls do not use Native Language Support],
  13102. - USE_NLS=$enableval, USE_NLS=yes)
  13103. - AC_MSG_RESULT($USE_NLS)
  13104. - AC_SUBST(USE_NLS)
  13105. +# AM_MAKE_INCLUDE()
  13106. +# -----------------
  13107. +# Check to see how make treats includes.
  13108. +AC_DEFUN([AM_MAKE_INCLUDE],
  13109. +[am_make=${MAKE-make}
  13110. +cat > confinc << 'END'
  13111. +am__doit:
  13112. + @echo this is the am__doit target
  13113. +.PHONY: am__doit
  13114. +END
  13115. +# If we don't find an include directive, just comment out the code.
  13116. +AC_MSG_CHECKING([for style of include used by $am_make])
  13117. +am__include="#"
  13118. +am__quote=
  13119. +_am_result=none
  13120. +# First try GNU make style include.
  13121. +echo "include confinc" > confmf
  13122. +# Ignore all kinds of additional output from `make'.
  13123. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13124. +*the\ am__doit\ target*)
  13125. + am__include=include
  13126. + am__quote=
  13127. + _am_result=GNU
  13128. + ;;
  13129. +esac
  13130. +# Now try BSD make style include.
  13131. +if test "$am__include" = "#"; then
  13132. + echo '.include "confinc"' > confmf
  13133. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13134. + *the\ am__doit\ target*)
  13135. + am__include=.include
  13136. + am__quote="\""
  13137. + _am_result=BSD
  13138. + ;;
  13139. + esac
  13140. +fi
  13141. +AC_SUBST([am__include])
  13142. +AC_SUBST([am__quote])
  13143. +AC_MSG_RESULT([$_am_result])
  13144. +rm -f confinc confmf
  13145. ])
  13146. -# po.m4 serial 15 (gettext-0.17)
  13147. -dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  13148. -dnl This file is free software; the Free Software Foundation
  13149. -dnl gives unlimited permission to copy and/or distribute it,
  13150. -dnl with or without modifications, as long as this notice is preserved.
  13151. -dnl
  13152. -dnl This file can can be used in projects which are not available under
  13153. -dnl the GNU General Public License or the GNU Library General Public
  13154. -dnl License but which still want to provide support for the GNU gettext
  13155. -dnl functionality.
  13156. -dnl Please note that the actual code of the GNU gettext library is covered
  13157. -dnl by the GNU Library General Public License, and the rest of the GNU
  13158. -dnl gettext package package is covered by the GNU General Public License.
  13159. -dnl They are *not* in the public domain.
  13160. -
  13161. -dnl Authors:
  13162. -dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  13163. -dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  13164. +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13165. +# Free Software Foundation, Inc.
  13166. +#
  13167. +# This file is free software; the Free Software Foundation
  13168. +# gives unlimited permission to copy and/or distribute it,
  13169. +# with or without modifications, as long as this notice is preserved.
  13170. -AC_PREREQ(2.50)
  13171. +# serial 6
  13172. -dnl Checks for all prerequisites of the po subdirectory.
  13173. -AC_DEFUN([AM_PO_SUBDIRS],
  13174. -[
  13175. - AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13176. - AC_REQUIRE([AC_PROG_INSTALL])dnl
  13177. - AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
  13178. - AC_REQUIRE([AM_NLS])dnl
  13179. +# AM_PROG_CC_C_O
  13180. +# --------------
  13181. +# Like AC_PROG_CC_C_O, but changed for automake.
  13182. +AC_DEFUN([AM_PROG_CC_C_O],
  13183. +[AC_REQUIRE([AC_PROG_CC_C_O])dnl
  13184. +AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13185. +AC_REQUIRE_AUX_FILE([compile])dnl
  13186. +# FIXME: we rely on the cache variable name because
  13187. +# there is no other way.
  13188. +set dummy $CC
  13189. +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  13190. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13191. +if test "$am_t" != yes; then
  13192. + # Losing compiler, so override with the script.
  13193. + # FIXME: It is wrong to rewrite CC.
  13194. + # But if we don't then we get into trouble of one sort or another.
  13195. + # A longer-term fix would be to have automake use am__CC in this case,
  13196. + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13197. + CC="$am_aux_dir/compile $CC"
  13198. +fi
  13199. +dnl Make sure AC_PROG_CC is never called again, or it will override our
  13200. +dnl setting of CC.
  13201. +m4_define([AC_PROG_CC],
  13202. + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  13203. +])
  13204. - dnl Release version of the gettext macros. This is used to ensure that
  13205. - dnl the gettext macros and po/Makefile.in.in are in sync.
  13206. - AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
  13207. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13208. - dnl Perform the following tests also if --disable-nls has been given,
  13209. - dnl because they are needed for "make dist" to work.
  13210. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13211. +# Free Software Foundation, Inc.
  13212. +#
  13213. +# This file is free software; the Free Software Foundation
  13214. +# gives unlimited permission to copy and/or distribute it,
  13215. +# with or without modifications, as long as this notice is preserved.
  13216. - dnl Search for GNU msgfmt in the PATH.
  13217. - dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
  13218. - dnl The second test excludes FreeBSD msgfmt.
  13219. - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  13220. - [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  13221. - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  13222. - :)
  13223. - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  13224. +# serial 6
  13225. - dnl Test whether it is GNU msgfmt >= 0.15.
  13226. -changequote(,)dnl
  13227. - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  13228. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  13229. - *) MSGFMT_015=$MSGFMT ;;
  13230. - esac
  13231. -changequote([,])dnl
  13232. - AC_SUBST([MSGFMT_015])
  13233. -changequote(,)dnl
  13234. - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  13235. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  13236. - *) GMSGFMT_015=$GMSGFMT ;;
  13237. - esac
  13238. -changequote([,])dnl
  13239. - AC_SUBST([GMSGFMT_015])
  13240. +# AM_MISSING_PROG(NAME, PROGRAM)
  13241. +# ------------------------------
  13242. +AC_DEFUN([AM_MISSING_PROG],
  13243. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  13244. +$1=${$1-"${am_missing_run}$2"}
  13245. +AC_SUBST($1)])
  13246. - dnl Search for GNU xgettext 0.12 or newer in the PATH.
  13247. - dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
  13248. - dnl The second test excludes FreeBSD xgettext.
  13249. - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  13250. - [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  13251. - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  13252. - :)
  13253. - dnl Remove leftover from FreeBSD xgettext call.
  13254. - rm -f messages.po
  13255. - dnl Test whether it is GNU xgettext >= 0.15.
  13256. -changequote(,)dnl
  13257. - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  13258. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  13259. - *) XGETTEXT_015=$XGETTEXT ;;
  13260. +# AM_MISSING_HAS_RUN
  13261. +# ------------------
  13262. +# Define MISSING if not defined so far and test if it supports --run.
  13263. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  13264. +AC_DEFUN([AM_MISSING_HAS_RUN],
  13265. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13266. +AC_REQUIRE_AUX_FILE([missing])dnl
  13267. +if test x"${MISSING+set}" != xset; then
  13268. + case $am_aux_dir in
  13269. + *\ * | *\ *)
  13270. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13271. + *)
  13272. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13273. esac
  13274. -changequote([,])dnl
  13275. - AC_SUBST([XGETTEXT_015])
  13276. +fi
  13277. +# Use eval to expand $SHELL
  13278. +if eval "$MISSING --run true"; then
  13279. + am_missing_run="$MISSING --run "
  13280. +else
  13281. + am_missing_run=
  13282. + AC_MSG_WARN([`missing' script is too old or missing])
  13283. +fi
  13284. +])
  13285. - dnl Search for GNU msgmerge 0.11 or newer in the PATH.
  13286. - AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
  13287. - [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
  13288. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13289. +#
  13290. +# This file is free software; the Free Software Foundation
  13291. +# gives unlimited permission to copy and/or distribute it,
  13292. +# with or without modifications, as long as this notice is preserved.
  13293. - dnl Installation directories.
  13294. - dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
  13295. - dnl have to define it here, so that it can be used in po/Makefile.
  13296. - test -n "$localedir" || localedir='${datadir}/locale'
  13297. - AC_SUBST([localedir])
  13298. +# AM_PROG_MKDIR_P
  13299. +# ---------------
  13300. +# Check for `mkdir -p'.
  13301. +AC_DEFUN([AM_PROG_MKDIR_P],
  13302. +[AC_PREREQ([2.60])dnl
  13303. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13304. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13305. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13306. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13307. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13308. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13309. +dnl adjustment using top_builddir (which is defined more often than
  13310. +dnl MKDIR_P).
  13311. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13312. +case $mkdir_p in
  13313. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13314. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13315. +esac
  13316. +])
  13317. - dnl Support for AM_XGETTEXT_OPTION.
  13318. - test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  13319. - AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
  13320. +# Helper functions for option handling. -*- Autoconf -*-
  13321. - AC_CONFIG_COMMANDS([po-directories], [[
  13322. - for ac_file in $CONFIG_FILES; do
  13323. - # Support "outfile[:infile[:infile...]]"
  13324. - case "$ac_file" in
  13325. - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13326. - esac
  13327. - # PO directories have a Makefile.in generated from Makefile.in.in.
  13328. - case "$ac_file" in */Makefile.in)
  13329. - # Adjust a relative srcdir.
  13330. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13331. - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13332. - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13333. - # In autoconf-2.13 it is called $ac_given_srcdir.
  13334. - # In autoconf-2.50 it is called $srcdir.
  13335. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13336. - case "$ac_given_srcdir" in
  13337. - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13338. - /*) top_srcdir="$ac_given_srcdir" ;;
  13339. - *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13340. - esac
  13341. - # Treat a directory as a PO directory if and only if it has a
  13342. - # POTFILES.in file. This allows packages to have multiple PO
  13343. - # directories under different names or in different locations.
  13344. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13345. - rm -f "$ac_dir/POTFILES"
  13346. - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13347. - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13348. - POMAKEFILEDEPS="POTFILES.in"
  13349. - # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  13350. - # on $ac_dir but don't depend on user-specified configuration
  13351. - # parameters.
  13352. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13353. - # The LINGUAS file contains the set of available languages.
  13354. - if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13355. - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13356. - fi
  13357. - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13358. - # Hide the ALL_LINGUAS assigment from automake < 1.5.
  13359. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13360. - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13361. - else
  13362. - # The set of available languages was given in configure.in.
  13363. - # Hide the ALL_LINGUAS assigment from automake < 1.5.
  13364. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13365. - fi
  13366. - # Compute POFILES
  13367. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  13368. - # Compute UPDATEPOFILES
  13369. - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  13370. - # Compute DUMMYPOFILES
  13371. - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  13372. - # Compute GMOFILES
  13373. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  13374. - case "$ac_given_srcdir" in
  13375. - .) srcdirpre= ;;
  13376. - *) srcdirpre='$(srcdir)/' ;;
  13377. - esac
  13378. - POFILES=
  13379. - UPDATEPOFILES=
  13380. - DUMMYPOFILES=
  13381. - GMOFILES=
  13382. - for lang in $ALL_LINGUAS; do
  13383. - POFILES="$POFILES $srcdirpre$lang.po"
  13384. - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13385. - DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13386. - GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13387. - done
  13388. - # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13389. - # environment variable.
  13390. - INST_LINGUAS=
  13391. - if test -n "$ALL_LINGUAS"; then
  13392. - for presentlang in $ALL_LINGUAS; do
  13393. - useit=no
  13394. - if test "%UNSET%" != "$LINGUAS"; then
  13395. - desiredlanguages="$LINGUAS"
  13396. - else
  13397. - desiredlanguages="$ALL_LINGUAS"
  13398. - fi
  13399. - for desiredlang in $desiredlanguages; do
  13400. - # Use the presentlang catalog if desiredlang is
  13401. - # a. equal to presentlang, or
  13402. - # b. a variant of presentlang (because in this case,
  13403. - # presentlang can be used as a fallback for messages
  13404. - # which are not translated in the desiredlang catalog).
  13405. - case "$desiredlang" in
  13406. - "$presentlang"*) useit=yes;;
  13407. - esac
  13408. - done
  13409. - if test $useit = yes; then
  13410. - INST_LINGUAS="$INST_LINGUAS $presentlang"
  13411. - fi
  13412. - done
  13413. - fi
  13414. - CATALOGS=
  13415. - if test -n "$INST_LINGUAS"; then
  13416. - for lang in $INST_LINGUAS; do
  13417. - CATALOGS="$CATALOGS $lang.gmo"
  13418. - done
  13419. - fi
  13420. - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13421. - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  13422. - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13423. - if test -f "$f"; then
  13424. - case "$f" in
  13425. - *.orig | *.bak | *~) ;;
  13426. - *) cat "$f" >> "$ac_dir/Makefile" ;;
  13427. - esac
  13428. - fi
  13429. - done
  13430. - fi
  13431. - ;;
  13432. - esac
  13433. - done]],
  13434. - [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13435. - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13436. - # from automake < 1.5.
  13437. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13438. - # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13439. - LINGUAS="${LINGUAS-%UNSET%}"
  13440. - ])
  13441. -])
  13442. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13443. +#
  13444. +# This file is free software; the Free Software Foundation
  13445. +# gives unlimited permission to copy and/or distribute it,
  13446. +# with or without modifications, as long as this notice is preserved.
  13447. +
  13448. +# serial 4
  13449. +
  13450. +# _AM_MANGLE_OPTION(NAME)
  13451. +# -----------------------
  13452. +AC_DEFUN([_AM_MANGLE_OPTION],
  13453. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  13454. +
  13455. +# _AM_SET_OPTION(NAME)
  13456. +# ------------------------------
  13457. +# Set option NAME. Presently that only means defining a flag for this option.
  13458. +AC_DEFUN([_AM_SET_OPTION],
  13459. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  13460. -dnl Postprocesses a Makefile in a directory containing PO files.
  13461. -AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
  13462. -[
  13463. - # When this code is run, in config.status, two variables have already been
  13464. - # set:
  13465. - # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
  13466. - # - LINGUAS is the value of the environment variable LINGUAS at configure
  13467. - # time.
  13468. +# _AM_SET_OPTIONS(OPTIONS)
  13469. +# ----------------------------------
  13470. +# OPTIONS is a space-separated list of Automake options.
  13471. +AC_DEFUN([_AM_SET_OPTIONS],
  13472. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13473. -changequote(,)dnl
  13474. - # Adjust a relative srcdir.
  13475. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13476. - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13477. - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13478. - # In autoconf-2.13 it is called $ac_given_srcdir.
  13479. - # In autoconf-2.50 it is called $srcdir.
  13480. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13481. - case "$ac_given_srcdir" in
  13482. - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13483. - /*) top_srcdir="$ac_given_srcdir" ;;
  13484. - *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13485. - esac
  13486. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13487. +# -------------------------------------------
  13488. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  13489. +AC_DEFUN([_AM_IF_OPTION],
  13490. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  13491. - # Find a way to echo strings without interpreting backslash.
  13492. - if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
  13493. - gt_echo='echo'
  13494. - else
  13495. - if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
  13496. - gt_echo='printf %s\n'
  13497. - else
  13498. - echo_func () {
  13499. - cat <<EOT
  13500. -$*
  13501. -EOT
  13502. - }
  13503. - gt_echo='echo_func'
  13504. - fi
  13505. - fi
  13506. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  13507. - # A sed script that extracts the value of VARIABLE from a Makefile.
  13508. - sed_x_variable='
  13509. -# Test if the hold space is empty.
  13510. -x
  13511. -s/P/P/
  13512. -x
  13513. -ta
  13514. -# Yes it was empty. Look if we have the expected variable definition.
  13515. -/^[ ]*VARIABLE[ ]*=/{
  13516. - # Seen the first line of the variable definition.
  13517. - s/^[ ]*VARIABLE[ ]*=//
  13518. - ba
  13519. -}
  13520. -bd
  13521. -:a
  13522. -# Here we are processing a line from the variable definition.
  13523. -# Remove comment, more precisely replace it with a space.
  13524. -s/#.*$/ /
  13525. -# See if the line ends in a backslash.
  13526. -tb
  13527. -:b
  13528. -s/\\$//
  13529. -# Print the line, without the trailing backslash.
  13530. -p
  13531. -tc
  13532. -# There was no trailing backslash. The end of the variable definition is
  13533. -# reached. Clear the hold space.
  13534. -s/^.*$//
  13535. -x
  13536. -bd
  13537. -:c
  13538. -# A trailing backslash means that the variable definition continues in the
  13539. -# next line. Put a nonempty string into the hold space to indicate this.
  13540. -s/^.*$/P/
  13541. -x
  13542. -:d
  13543. -'
  13544. -changequote([,])dnl
  13545. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13546. +# Free Software Foundation, Inc.
  13547. +#
  13548. +# This file is free software; the Free Software Foundation
  13549. +# gives unlimited permission to copy and/or distribute it,
  13550. +# with or without modifications, as long as this notice is preserved.
  13551. - # Set POTFILES to the value of the Makefile variable POTFILES.
  13552. - sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
  13553. - POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
  13554. - # Compute POTFILES_DEPS as
  13555. - # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
  13556. - POTFILES_DEPS=
  13557. - for file in $POTFILES; do
  13558. - POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
  13559. - done
  13560. - POMAKEFILEDEPS=""
  13561. +# serial 5
  13562. - if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13563. - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13564. - fi
  13565. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13566. - # The LINGUAS file contains the set of available languages.
  13567. - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13568. - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13569. - else
  13570. - # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
  13571. - sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
  13572. - ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
  13573. - fi
  13574. - # Hide the ALL_LINGUAS assigment from automake < 1.5.
  13575. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13576. - # Compute POFILES
  13577. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  13578. - # Compute UPDATEPOFILES
  13579. - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  13580. - # Compute DUMMYPOFILES
  13581. - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  13582. - # Compute GMOFILES
  13583. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  13584. - # Compute PROPERTIESFILES
  13585. - # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
  13586. - # Compute CLASSFILES
  13587. - # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
  13588. - # Compute QMFILES
  13589. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
  13590. - # Compute MSGFILES
  13591. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
  13592. - # Compute RESOURCESDLLFILES
  13593. - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
  13594. - case "$ac_given_srcdir" in
  13595. - .) srcdirpre= ;;
  13596. - *) srcdirpre='$(srcdir)/' ;;
  13597. - esac
  13598. - POFILES=
  13599. - UPDATEPOFILES=
  13600. - DUMMYPOFILES=
  13601. - GMOFILES=
  13602. - PROPERTIESFILES=
  13603. - CLASSFILES=
  13604. - QMFILES=
  13605. - MSGFILES=
  13606. - RESOURCESDLLFILES=
  13607. - for lang in $ALL_LINGUAS; do
  13608. - POFILES="$POFILES $srcdirpre$lang.po"
  13609. - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13610. - DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13611. - GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13612. - PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
  13613. - CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
  13614. - QMFILES="$QMFILES $srcdirpre$lang.qm"
  13615. - frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  13616. - MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
  13617. - frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  13618. - RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
  13619. - done
  13620. - # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13621. - # environment variable.
  13622. - INST_LINGUAS=
  13623. - if test -n "$ALL_LINGUAS"; then
  13624. - for presentlang in $ALL_LINGUAS; do
  13625. - useit=no
  13626. - if test "%UNSET%" != "$LINGUAS"; then
  13627. - desiredlanguages="$LINGUAS"
  13628. - else
  13629. - desiredlanguages="$ALL_LINGUAS"
  13630. - fi
  13631. - for desiredlang in $desiredlanguages; do
  13632. - # Use the presentlang catalog if desiredlang is
  13633. - # a. equal to presentlang, or
  13634. - # b. a variant of presentlang (because in this case,
  13635. - # presentlang can be used as a fallback for messages
  13636. - # which are not translated in the desiredlang catalog).
  13637. - case "$desiredlang" in
  13638. - "$presentlang"*) useit=yes;;
  13639. - esac
  13640. - done
  13641. - if test $useit = yes; then
  13642. - INST_LINGUAS="$INST_LINGUAS $presentlang"
  13643. - fi
  13644. - done
  13645. - fi
  13646. - CATALOGS=
  13647. - JAVACATALOGS=
  13648. - QTCATALOGS=
  13649. - TCLCATALOGS=
  13650. - CSHARPCATALOGS=
  13651. - if test -n "$INST_LINGUAS"; then
  13652. - for lang in $INST_LINGUAS; do
  13653. - CATALOGS="$CATALOGS $lang.gmo"
  13654. - JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
  13655. - QTCATALOGS="$QTCATALOGS $lang.qm"
  13656. - frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  13657. - TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
  13658. - frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  13659. - CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
  13660. - done
  13661. - fi
  13662. +# AM_SANITY_CHECK
  13663. +# ---------------
  13664. +AC_DEFUN([AM_SANITY_CHECK],
  13665. +[AC_MSG_CHECKING([whether build environment is sane])
  13666. +# Just in case
  13667. +sleep 1
  13668. +echo timestamp > conftest.file
  13669. +# Reject unsafe characters in $srcdir or the absolute working directory
  13670. +# name. Accept space and tab only in the latter.
  13671. +am_lf='
  13672. +'
  13673. +case `pwd` in
  13674. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13675. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13676. +esac
  13677. +case $srcdir in
  13678. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13679. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13680. +esac
  13681. - sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
  13682. - if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
  13683. - # Add dependencies that cannot be formulated as a simple suffix rule.
  13684. - for lang in $ALL_LINGUAS; do
  13685. - frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  13686. - cat >> "$ac_file.tmp" <<EOF
  13687. -$frobbedlang.msg: $lang.po
  13688. - @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
  13689. - \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  13690. -EOF
  13691. - done
  13692. - fi
  13693. - if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
  13694. - # Add dependencies that cannot be formulated as a simple suffix rule.
  13695. - for lang in $ALL_LINGUAS; do
  13696. - frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  13697. - cat >> "$ac_file.tmp" <<EOF
  13698. -$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
  13699. - @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
  13700. - \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  13701. -EOF
  13702. - done
  13703. - fi
  13704. - if test -n "$POMAKEFILEDEPS"; then
  13705. - cat >> "$ac_file.tmp" <<EOF
  13706. -Makefile: $POMAKEFILEDEPS
  13707. -EOF
  13708. - fi
  13709. - mv "$ac_file.tmp" "$ac_file"
  13710. -])
  13711. +# Do `set' in a subshell so we don't clobber the current shell's
  13712. +# arguments. Must try -L first in case configure is actually a
  13713. +# symlink; some systems play weird games with the mod time of symlinks
  13714. +# (eg FreeBSD returns the mod time of the symlink's containing
  13715. +# directory).
  13716. +if (
  13717. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13718. + if test "$[*]" = "X"; then
  13719. + # -L didn't work.
  13720. + set X `ls -t "$srcdir/configure" conftest.file`
  13721. + fi
  13722. + rm -f conftest.file
  13723. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  13724. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  13725. -dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
  13726. -AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
  13727. -[
  13728. - XGETTEXT_EXTRA_OPTIONS=
  13729. -])
  13730. + # If neither matched, then we have a broken ls. This can happen
  13731. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  13732. + # broken ls alias from the environment. This has actually
  13733. + # happened. Such a system could not be considered "sane".
  13734. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  13735. +alias in your environment])
  13736. + fi
  13737. -dnl Registers an option to be passed to xgettext in the po subdirectory.
  13738. -AC_DEFUN([AM_XGETTEXT_OPTION],
  13739. -[
  13740. - AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
  13741. - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
  13742. -])
  13743. + test "$[2]" = conftest.file
  13744. + )
  13745. +then
  13746. + # Ok.
  13747. + :
  13748. +else
  13749. + AC_MSG_ERROR([newly created file is older than distributed files!
  13750. +Check your system clock])
  13751. +fi
  13752. +AC_MSG_RESULT(yes)])
  13753. -# progtest.m4 serial 4 (gettext-0.14.2)
  13754. -dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
  13755. -dnl This file is free software; the Free Software Foundation
  13756. -dnl gives unlimited permission to copy and/or distribute it,
  13757. -dnl with or without modifications, as long as this notice is preserved.
  13758. -dnl
  13759. -dnl This file can can be used in projects which are not available under
  13760. -dnl the GNU General Public License or the GNU Library General Public
  13761. -dnl License but which still want to provide support for the GNU gettext
  13762. -dnl functionality.
  13763. -dnl Please note that the actual code of the GNU gettext library is covered
  13764. -dnl by the GNU Library General Public License, and the rest of the GNU
  13765. -dnl gettext package package is covered by the GNU General Public License.
  13766. -dnl They are *not* in the public domain.
  13767. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13768. +#
  13769. +# This file is free software; the Free Software Foundation
  13770. +# gives unlimited permission to copy and/or distribute it,
  13771. +# with or without modifications, as long as this notice is preserved.
  13772. -dnl Authors:
  13773. -dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
  13774. +# AM_PROG_INSTALL_STRIP
  13775. +# ---------------------
  13776. +# One issue with vendor `install' (even GNU) is that you can't
  13777. +# specify the program used to strip binaries. This is especially
  13778. +# annoying in cross-compiling environments, where the build's strip
  13779. +# is unlikely to handle the host's binaries.
  13780. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  13781. +# always use install-sh in `make install-strip', and initialize
  13782. +# STRIPPROG with the value of the STRIP variable (set by the user).
  13783. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  13784. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13785. +# Installed binaries are usually stripped using `strip' when the user
  13786. +# run `make install-strip'. However `strip' might not be the right
  13787. +# tool to use in cross-compilation environments, therefore Automake
  13788. +# will honor the `STRIP' environment variable to overrule this program.
  13789. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  13790. +if test "$cross_compiling" != no; then
  13791. + AC_CHECK_TOOL([STRIP], [strip], :)
  13792. +fi
  13793. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13794. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13795. -AC_PREREQ(2.50)
  13796. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13797. +#
  13798. +# This file is free software; the Free Software Foundation
  13799. +# gives unlimited permission to copy and/or distribute it,
  13800. +# with or without modifications, as long as this notice is preserved.
  13801. -# Search path for a program which passes the given test.
  13802. +# serial 2
  13803. -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  13804. -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  13805. -AC_DEFUN([AM_PATH_PROG_WITH_TEST],
  13806. -[
  13807. -# Prepare PATH_SEPARATOR.
  13808. -# The user is always right.
  13809. -if test "${PATH_SEPARATOR+set}" != set; then
  13810. - echo "#! /bin/sh" >conf$$.sh
  13811. - echo "exit 0" >>conf$$.sh
  13812. - chmod +x conf$$.sh
  13813. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13814. - PATH_SEPARATOR=';'
  13815. - else
  13816. - PATH_SEPARATOR=:
  13817. - fi
  13818. - rm -f conf$$.sh
  13819. -fi
  13820. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13821. +# ---------------------------
  13822. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13823. +# This macro is traced by Automake.
  13824. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13825. -# Find out how to test for executable files. Don't use a zero-byte file,
  13826. -# as systems may use methods other than mode bits to determine executability.
  13827. -cat >conf$$.file <<_ASEOF
  13828. -#! /bin/sh
  13829. -exit 0
  13830. -_ASEOF
  13831. -chmod +x conf$$.file
  13832. -if test -x conf$$.file >/dev/null 2>&1; then
  13833. - ac_executable_p="test -x"
  13834. -else
  13835. - ac_executable_p="test -f"
  13836. -fi
  13837. -rm -f conf$$.file
  13838. +# AM_SUBST_NOTMAKE(VARIABLE)
  13839. +# ---------------------------
  13840. +# Public sister of _AM_SUBST_NOTMAKE.
  13841. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13842. -# Extract the first word of "$2", so it can be a program name with args.
  13843. -set dummy $2; ac_word=[$]2
  13844. -AC_MSG_CHECKING([for $ac_word])
  13845. -AC_CACHE_VAL(ac_cv_path_$1,
  13846. -[case "[$]$1" in
  13847. - [[\\/]]* | ?:[[\\/]]*)
  13848. - ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  13849. - ;;
  13850. - *)
  13851. - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13852. - for ac_dir in ifelse([$5], , $PATH, [$5]); do
  13853. - IFS="$ac_save_IFS"
  13854. - test -z "$ac_dir" && ac_dir=.
  13855. - for ac_exec_ext in '' $ac_executable_extensions; do
  13856. - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13857. - echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
  13858. - if [$3]; then
  13859. - ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
  13860. - break 2
  13861. - fi
  13862. - fi
  13863. - done
  13864. +# Check how to create a tarball. -*- Autoconf -*-
  13865. +
  13866. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13867. +#
  13868. +# This file is free software; the Free Software Foundation
  13869. +# gives unlimited permission to copy and/or distribute it,
  13870. +# with or without modifications, as long as this notice is preserved.
  13871. +
  13872. +# serial 2
  13873. +
  13874. +# _AM_PROG_TAR(FORMAT)
  13875. +# --------------------
  13876. +# Check how to create a tarball in format FORMAT.
  13877. +# FORMAT should be one of `v7', `ustar', or `pax'.
  13878. +#
  13879. +# Substitute a variable $(am__tar) that is a command
  13880. +# writing to stdout a FORMAT-tarball containing the directory
  13881. +# $tardir.
  13882. +# tardir=directory && $(am__tar) > result.tar
  13883. +#
  13884. +# Substitute a variable $(am__untar) that extract such
  13885. +# a tarball read from stdin.
  13886. +# $(am__untar) < result.tar
  13887. +AC_DEFUN([_AM_PROG_TAR],
  13888. +[# Always define AMTAR for backward compatibility.
  13889. +AM_MISSING_PROG([AMTAR], [tar])
  13890. +m4_if([$1], [v7],
  13891. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  13892. + [m4_case([$1], [ustar],, [pax],,
  13893. + [m4_fatal([Unknown tar format])])
  13894. +AC_MSG_CHECKING([how to create a $1 tar archive])
  13895. +# Loop over all known methods to create a tar archive until one works.
  13896. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  13897. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  13898. +# Do not fold the above two line into one, because Tru64 sh and
  13899. +# Solaris sh will not grok spaces in the rhs of `-'.
  13900. +for _am_tool in $_am_tools
  13901. +do
  13902. + case $_am_tool in
  13903. + gnutar)
  13904. + for _am_tar in tar gnutar gtar;
  13905. + do
  13906. + AM_RUN_LOG([$_am_tar --version]) && break
  13907. done
  13908. - IFS="$ac_save_IFS"
  13909. -dnl If no 4th arg is given, leave the cache variable unset,
  13910. -dnl so AC_PATH_PROGS will keep looking.
  13911. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  13912. -])dnl
  13913. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  13914. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  13915. + am__untar="$_am_tar -xf -"
  13916. ;;
  13917. -esac])dnl
  13918. -$1="$ac_cv_path_$1"
  13919. -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  13920. - AC_MSG_RESULT([$]$1)
  13921. -else
  13922. - AC_MSG_RESULT(no)
  13923. -fi
  13924. -AC_SUBST($1)dnl
  13925. -])
  13926. + plaintar)
  13927. + # Must skip GNU tar: if it does not support --format= it doesn't create
  13928. + # ustar tarball either.
  13929. + (tar --version) >/dev/null 2>&1 && continue
  13930. + am__tar='tar chf - "$$tardir"'
  13931. + am__tar_='tar chf - "$tardir"'
  13932. + am__untar='tar xf -'
  13933. + ;;
  13934. + pax)
  13935. + am__tar='pax -L -x $1 -w "$$tardir"'
  13936. + am__tar_='pax -L -x $1 -w "$tardir"'
  13937. + am__untar='pax -r'
  13938. + ;;
  13939. + cpio)
  13940. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  13941. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  13942. + am__untar='cpio -i -H $1 -d'
  13943. + ;;
  13944. + none)
  13945. + am__tar=false
  13946. + am__tar_=false
  13947. + am__untar=false
  13948. + ;;
  13949. + esac
  13950. +
  13951. + # If the value was cached, stop now. We just wanted to have am__tar
  13952. + # and am__untar set.
  13953. + test -n "${am_cv_prog_tar_$1}" && break
  13954. +
  13955. + # tar/untar a dummy directory, and stop if the command works
  13956. + rm -rf conftest.dir
  13957. + mkdir conftest.dir
  13958. + echo GrepMe > conftest.dir/file
  13959. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  13960. + rm -rf conftest.dir
  13961. + if test -s conftest.tar; then
  13962. + AM_RUN_LOG([$am__untar <conftest.tar])
  13963. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  13964. + fi
  13965. +done
  13966. +rm -rf conftest.dir
  13967. +
  13968. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  13969. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  13970. +AC_SUBST([am__tar])
  13971. +AC_SUBST([am__untar])
  13972. +]) # _AM_PROG_TAR
  13973. +m4_include([m4/autobuild.m4])
  13974. +m4_include([m4/libtool.m4])
  13975. +m4_include([m4/ltoptions.m4])
  13976. +m4_include([m4/ltsugar.m4])
  13977. +m4_include([m4/ltversion.m4])
  13978. +m4_include([m4/lt~obsolete.m4])
  13979. m4_include([acinclude.m4])
  13980. Index: sid/am/Makefile.in
  13981. ===================================================================
  13982. --- sid.orig/am/Makefile.in
  13983. +++ sid/am/Makefile.in
  13984. @@ -37,7 +37,10 @@
  13985. DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  13986. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  13987. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  13988. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  13989. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  13990. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  13991. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  13992. + $(top_srcdir)/configure.in
  13993. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  13994. $(ACLOCAL_M4)
  13995. mkinstalldirs = $(install_sh) -d
  13996. @@ -153,6 +156,7 @@
  13997. PACKAGE_NAME = @PACKAGE_NAME@
  13998. PACKAGE_STRING = @PACKAGE_STRING@
  13999. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  14000. +PACKAGE_URL = @PACKAGE_URL@
  14001. PACKAGE_VERSION = @PACKAGE_VERSION@
  14002. PATH_SEPARATOR = @PATH_SEPARATOR@
  14003. POSUB = @POSUB@
  14004. Index: sid/benchmark-suite/Makefile.in
  14005. ===================================================================
  14006. --- sid.orig/benchmark-suite/Makefile.in
  14007. +++ sid/benchmark-suite/Makefile.in
  14008. @@ -37,7 +37,10 @@
  14009. DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  14010. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  14011. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  14012. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  14013. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  14014. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  14015. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  14016. + $(top_srcdir)/configure.in
  14017. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  14018. $(ACLOCAL_M4)
  14019. mkinstalldirs = $(install_sh) -d
  14020. @@ -153,6 +156,7 @@
  14021. PACKAGE_NAME = @PACKAGE_NAME@
  14022. PACKAGE_STRING = @PACKAGE_STRING@
  14023. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  14024. +PACKAGE_URL = @PACKAGE_URL@
  14025. PACKAGE_VERSION = @PACKAGE_VERSION@
  14026. PATH_SEPARATOR = @PATH_SEPARATOR@
  14027. POSUB = @POSUB@
  14028. Index: sid/build-aux/config.guess
  14029. ===================================================================
  14030. --- sid.orig/build-aux/config.guess
  14031. +++ sid/build-aux/config.guess
  14032. @@ -1,10 +1,10 @@
  14033. #! /bin/sh
  14034. # Attempt to guess a canonical system name.
  14035. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14036. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  14037. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14038. # Free Software Foundation, Inc.
  14039. -timestamp='2009-04-27'
  14040. +timestamp='2009-06-10'
  14041. # This file is free software; you can redistribute it and/or modify it
  14042. # under the terms of the GNU General Public License as published by
  14043. @@ -170,7 +170,7 @@
  14044. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  14045. eval $set_cc_for_build
  14046. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14047. - | grep __ELF__ >/dev/null
  14048. + | grep -q __ELF__
  14049. then
  14050. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  14051. # Return netbsd for either. FIX?
  14052. @@ -656,7 +656,7 @@
  14053. # => hppa64-hp-hpux11.23
  14054. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14055. - grep __LP64__ >/dev/null
  14056. + grep -q __LP64__
  14057. then
  14058. HP_ARCH="hppa2.0w"
  14059. else
  14060. @@ -822,6 +822,9 @@
  14061. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14062. echo i${UNAME_MACHINE}-pc-mks
  14063. exit ;;
  14064. + 8664:Windows_NT:*)
  14065. + echo x86_64-pc-mks
  14066. + exit ;;
  14067. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14068. # How do we know it's Interix rather than the generic POSIX subsystem?
  14069. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14070. @@ -882,40 +885,17 @@
  14071. m68*:Linux:*:*)
  14072. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14073. exit ;;
  14074. - mips:Linux:*:*)
  14075. + mips:Linux:*:* | mips64:Linux:*:*)
  14076. eval $set_cc_for_build
  14077. sed 's/^ //' << EOF >$dummy.c
  14078. #undef CPU
  14079. - #undef mips
  14080. - #undef mipsel
  14081. + #undef ${UNAME_MACHINE}
  14082. + #undef ${UNAME_MACHINE}el
  14083. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14084. - CPU=mipsel
  14085. + CPU=${UNAME_MACHINE}el
  14086. #else
  14087. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14088. - CPU=mips
  14089. - #else
  14090. - CPU=
  14091. - #endif
  14092. - #endif
  14093. -EOF
  14094. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14095. - /^CPU/{
  14096. - s: ::g
  14097. - p
  14098. - }'`"
  14099. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14100. - ;;
  14101. - mips64:Linux:*:*)
  14102. - eval $set_cc_for_build
  14103. - sed 's/^ //' << EOF >$dummy.c
  14104. - #undef CPU
  14105. - #undef mips64
  14106. - #undef mips64el
  14107. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14108. - CPU=mips64el
  14109. - #else
  14110. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14111. - CPU=mips64
  14112. + CPU=${UNAME_MACHINE}
  14113. #else
  14114. CPU=
  14115. #endif
  14116. @@ -947,7 +927,7 @@
  14117. EV67) UNAME_MACHINE=alphaev67 ;;
  14118. EV68*) UNAME_MACHINE=alphaev68 ;;
  14119. esac
  14120. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14121. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14122. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14123. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14124. exit ;;
  14125. @@ -1001,14 +981,6 @@
  14126. elf32-i386)
  14127. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14128. ;;
  14129. - a.out-i386-linux)
  14130. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14131. - exit ;;
  14132. - "")
  14133. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14134. - # one that does not give us useful --help.
  14135. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14136. - exit ;;
  14137. esac
  14138. # Determine whether the default compiler is a.out or elf
  14139. eval $set_cc_for_build
  14140. @@ -1074,7 +1046,7 @@
  14141. i*86:syllable:*:*)
  14142. echo ${UNAME_MACHINE}-pc-syllable
  14143. exit ;;
  14144. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14145. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14146. echo i386-unknown-lynxos${UNAME_RELEASE}
  14147. exit ;;
  14148. i*86:*DOS:*:*)
  14149. @@ -1182,7 +1154,7 @@
  14150. rs6000:LynxOS:2.*:*)
  14151. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14152. exit ;;
  14153. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14154. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14155. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14156. exit ;;
  14157. SM[BE]S:UNIX_SV:*:*)
  14158. Index: sid/build-aux/config.sub
  14159. ===================================================================
  14160. --- sid.orig/build-aux/config.sub
  14161. +++ sid/build-aux/config.sub
  14162. @@ -1,10 +1,10 @@
  14163. #! /bin/sh
  14164. # Configuration validation subroutine script.
  14165. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14166. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  14167. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14168. # Free Software Foundation, Inc.
  14169. -timestamp='2009-04-17'
  14170. +timestamp='2009-06-11'
  14171. # This file is (in principle) common to ALL GNU software.
  14172. # The presence of a machine in this file suggests that SOME GNU software
  14173. @@ -153,6 +153,9 @@
  14174. os=
  14175. basic_machine=$1
  14176. ;;
  14177. + -bluegene*)
  14178. + os=-cnk
  14179. + ;;
  14180. -sim | -cisco | -oki | -wec | -winbond)
  14181. os=
  14182. basic_machine=$1
  14183. @@ -467,6 +470,10 @@
  14184. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  14185. os=-linux
  14186. ;;
  14187. + bluegene*)
  14188. + basic_machine=powerpc-ibm
  14189. + os=-cnk
  14190. + ;;
  14191. c90)
  14192. basic_machine=c90-cray
  14193. os=-unicos
  14194. @@ -1260,7 +1267,7 @@
  14195. # Each alternative MUST END IN A *, to match a version number.
  14196. # -sysv* is not here because it comes later, after sysvr4.
  14197. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  14198. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  14199. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  14200. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  14201. | -kopensolaris* \
  14202. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  14203. @@ -1613,7 +1620,7 @@
  14204. -sunos*)
  14205. vendor=sun
  14206. ;;
  14207. - -aix*)
  14208. + -cnk*|-aix*)
  14209. vendor=ibm
  14210. ;;
  14211. -beos*)
  14212. Index: sid/build-aux/ltmain.sh
  14213. ===================================================================
  14214. --- sid.orig/build-aux/ltmain.sh
  14215. +++ sid/build-aux/ltmain.sh
  14216. @@ -1,6 +1,6 @@
  14217. # Generated from ltmain.m4sh.
  14218. -# ltmain.sh (GNU libtool) 2.2.6
  14219. +# ltmain.sh (GNU libtool) 2.2.6b
  14220. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  14221. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  14222. @@ -65,7 +65,7 @@
  14223. # compiler: $LTCC
  14224. # compiler flags: $LTCFLAGS
  14225. # linker: $LD (gnu? $with_gnu_ld)
  14226. -# $progname: (GNU libtool) 2.2.6
  14227. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
  14228. # automake: $automake_version
  14229. # autoconf: $autoconf_version
  14230. #
  14231. @@ -73,9 +73,9 @@
  14232. PROGRAM=ltmain.sh
  14233. PACKAGE=libtool
  14234. -VERSION=2.2.6
  14235. +VERSION="2.2.6b Debian-2.2.6b-2"
  14236. TIMESTAMP=""
  14237. -package_revision=1.3012
  14238. +package_revision=1.3017
  14239. # Be Bourne compatible
  14240. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14241. @@ -116,15 +116,15 @@
  14242. : ${CP="cp -f"}
  14243. : ${ECHO="echo"}
  14244. -: ${EGREP="/usr/bin/grep -E"}
  14245. -: ${FGREP="/usr/bin/grep -F"}
  14246. -: ${GREP="/usr/bin/grep"}
  14247. +: ${EGREP="/bin/grep -E"}
  14248. +: ${FGREP="/bin/grep -F"}
  14249. +: ${GREP="/bin/grep"}
  14250. : ${LN_S="ln -s"}
  14251. : ${MAKE="make"}
  14252. : ${MKDIR="mkdir"}
  14253. : ${MV="mv -f"}
  14254. : ${RM="rm -f"}
  14255. -: ${SED="/opt/local/bin/gsed"}
  14256. +: ${SED="/bin/sed"}
  14257. : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  14258. : ${Xsed="$SED -e 1s/^X//"}
  14259. @@ -4929,8 +4929,8 @@
  14260. else
  14261. shlib_search_path=
  14262. fi
  14263. -
  14264. -
  14265. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  14266. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  14267. func_dirname "$output" "/" ""
  14268. output_objdir="$func_dirname_result$objdir"
  14269. @@ -5033,7 +5033,10 @@
  14270. case $pass in
  14271. dlopen) libs="$dlfiles" ;;
  14272. dlpreopen) libs="$dlprefiles" ;;
  14273. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  14274. + link)
  14275. + libs="$deplibs %DEPLIBS%"
  14276. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  14277. + ;;
  14278. esac
  14279. fi
  14280. if test "$linkmode,$pass" = "lib,dlpreopen"; then
  14281. @@ -5344,19 +5347,19 @@
  14282. # It is a libtool convenience library, so add in its objects.
  14283. convenience="$convenience $ladir/$objdir/$old_library"
  14284. old_convenience="$old_convenience $ladir/$objdir/$old_library"
  14285. + tmp_libs=
  14286. + for deplib in $dependency_libs; do
  14287. + deplibs="$deplib $deplibs"
  14288. + if $opt_duplicate_deps ; then
  14289. + case "$tmp_libs " in
  14290. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  14291. + esac
  14292. + fi
  14293. + tmp_libs="$tmp_libs $deplib"
  14294. + done
  14295. elif test "$linkmode" != prog && test "$linkmode" != lib; then
  14296. func_fatal_error "\`$lib' is not a convenience library"
  14297. fi
  14298. - tmp_libs=
  14299. - for deplib in $dependency_libs; do
  14300. - deplibs="$deplib $deplibs"
  14301. - if $opt_duplicate_deps ; then
  14302. - case "$tmp_libs " in
  14303. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  14304. - esac
  14305. - fi
  14306. - tmp_libs="$tmp_libs $deplib"
  14307. - done
  14308. continue
  14309. fi # $pass = conv
  14310. @@ -5893,6 +5896,7 @@
  14311. if test "$link_all_deplibs" != no; then
  14312. # Add the search paths of all dependency libraries
  14313. for deplib in $dependency_libs; do
  14314. + path=
  14315. case $deplib in
  14316. -L*) path="$deplib" ;;
  14317. *.la)
  14318. @@ -6206,6 +6210,9 @@
  14319. revision="$number_minor"
  14320. lt_irix_increment=no
  14321. ;;
  14322. + *)
  14323. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  14324. + ;;
  14325. esac
  14326. ;;
  14327. no)
  14328. Index: sid/config.h.in
  14329. ===================================================================
  14330. --- sid.orig/config.h.in
  14331. +++ sid/config.h.in
  14332. @@ -604,29 +604,29 @@
  14333. getsockopt and setsockopt system calls. */
  14334. #undef HAVE_STRUCT_LINGER
  14335. -/* Define to 1 if `sin6_len' is member of `struct sockaddr_in6'. */
  14336. +/* Define to 1 if `struct sockaddr_in6' is a member of `sin6_len'. */
  14337. #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
  14338. -/* Define to 1 if `sin_len' is member of `struct sockaddr'. */
  14339. +/* Define to 1 if `struct sockaddr' is a member of `sin_len'. */
  14340. #undef HAVE_STRUCT_SOCKADDR_SIN_LEN
  14341. -/* Define to 1 if `st_blksize' is member of `struct stat'. */
  14342. +/* Define to 1 if `struct stat' is a member of `st_blksize'. */
  14343. #undef HAVE_STRUCT_STAT_ST_BLKSIZE
  14344. -/* Define to 1 if `st_blocks' is member of `struct stat'. */
  14345. +/* Define to 1 if `struct stat' is a member of `st_blocks'. */
  14346. #undef HAVE_STRUCT_STAT_ST_BLOCKS
  14347. -/* Define to 1 if `st_rdev' is member of `struct stat'. */
  14348. +/* Define to 1 if `struct stat' is a member of `st_rdev'. */
  14349. #undef HAVE_STRUCT_STAT_ST_RDEV
  14350. /* Define this if your system defines struct timespec via either <time.h> or
  14351. <pthread.h>. */
  14352. #undef HAVE_STRUCT_TIMESPEC
  14353. -/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
  14354. +/* Define to 1 if `struct tm' is a member of `tm_gmtoff'. */
  14355. #undef HAVE_STRUCT_TM_TM_GMTOFF
  14356. -/* Define to 1 if `tm_zone' is member of `struct tm'. */
  14357. +/* Define to 1 if `struct tm' is a member of `tm_zone'. */
  14358. #undef HAVE_STRUCT_TM_TM_ZONE
  14359. /* Define to 1 if you have the `symlink' function. */
  14360. @@ -791,6 +791,9 @@
  14361. /* Define to the one symbol short name of this package. */
  14362. #undef PACKAGE_TARNAME
  14363. +/* Define to the home page for this package. */
  14364. +#undef PACKAGE_URL
  14365. +
  14366. /* Define to the version of this package. */
  14367. #undef PACKAGE_VERSION
  14368. Index: sid/configure
  14369. ===================================================================
  14370. --- sid.orig/configure
  14371. +++ sid/configure
  14372. @@ -1,11 +1,13 @@
  14373. #! /bin/sh
  14374. # Guess values for system-dependent variables and create Makefiles.
  14375. -# Generated by GNU Autoconf 2.63 for guile 1.8.7.
  14376. +# Generated by GNU Autoconf 2.64 for guile 1.8.7.
  14377. #
  14378. # Report bugs to <bug-guile@gnu.org>.
  14379. #
  14380. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14381. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14382. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  14383. +# Foundation, Inc.
  14384. +#
  14385. # This configure script is free software; the Free Software Foundation
  14386. # gives unlimited permission to copy, distribute and modify it.
  14387. #
  14388. @@ -31,13 +33,13 @@
  14389. # Boston, MA 02110-1301, USA.
  14390. #
  14391. #
  14392. -## --------------------- ##
  14393. -## M4sh Initialization. ##
  14394. -## --------------------- ##
  14395. +## -------------------- ##
  14396. +## M4sh Initialization. ##
  14397. +## -------------------- ##
  14398. # Be more Bourne compatible
  14399. DUALCASE=1; export DUALCASE # for MKS sh
  14400. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14401. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14402. emulate sh
  14403. NULLCMD=:
  14404. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14405. @@ -45,23 +47,15 @@
  14406. alias -g '${1+"$@"}'='"$@"'
  14407. setopt NO_GLOB_SUBST
  14408. else
  14409. - case `(set -o) 2>/dev/null` in
  14410. - *posix*) set -o posix ;;
  14411. + case `(set -o) 2>/dev/null` in #(
  14412. + *posix*) :
  14413. + set -o posix ;; #(
  14414. + *) :
  14415. + ;;
  14416. esac
  14417. -
  14418. fi
  14419. -
  14420. -
  14421. -# PATH needs CR
  14422. -# Avoid depending upon Character Ranges.
  14423. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14424. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14425. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14426. -as_cr_digits='0123456789'
  14427. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  14428. -
  14429. as_nl='
  14430. '
  14431. export as_nl
  14432. @@ -69,7 +63,13 @@
  14433. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14434. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14435. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14436. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14437. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14438. +# but without wasting forks for bash or zsh.
  14439. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14440. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14441. + as_echo='print -r --'
  14442. + as_echo_n='print -rn --'
  14443. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14444. as_echo='printf %s\n'
  14445. as_echo_n='printf %s'
  14446. else
  14447. @@ -80,7 +80,7 @@
  14448. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14449. as_echo_n_body='eval
  14450. arg=$1;
  14451. - case $arg in
  14452. + case $arg in #(
  14453. *"$as_nl"*)
  14454. expr "X$arg" : "X\\(.*\\)$as_nl";
  14455. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14456. @@ -103,13 +103,6 @@
  14457. }
  14458. fi
  14459. -# Support unset when possible.
  14460. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14461. - as_unset=unset
  14462. -else
  14463. - as_unset=false
  14464. -fi
  14465. -
  14466. # IFS
  14467. # We need space, tab and new line, in precisely that order. Quoting is
  14468. @@ -119,15 +112,15 @@
  14469. IFS=" "" $as_nl"
  14470. # Find who we are. Look in the path if we contain no directory separator.
  14471. -case $0 in
  14472. +case $0 in #((
  14473. *[\\/]* ) as_myself=$0 ;;
  14474. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14475. for as_dir in $PATH
  14476. do
  14477. IFS=$as_save_IFS
  14478. test -z "$as_dir" && as_dir=.
  14479. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14480. -done
  14481. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14482. + done
  14483. IFS=$as_save_IFS
  14484. ;;
  14485. @@ -139,12 +132,16 @@
  14486. fi
  14487. if test ! -f "$as_myself"; then
  14488. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14489. - { (exit 1); exit 1; }
  14490. + exit 1
  14491. fi
  14492. -# Work around bugs in pre-3.0 UWIN ksh.
  14493. -for as_var in ENV MAIL MAILPATH
  14494. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14495. +# Unset variables that we do not need and which cause bugs (e.g. in
  14496. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14497. +# suppresses any "Segmentation fault" message there. '((' could
  14498. +# trigger a bug in pdksh 5.2.14.
  14499. +for as_var in BASH_ENV ENV MAIL MAILPATH
  14500. +do eval test x\${$as_var+set} = xset \
  14501. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14502. done
  14503. PS1='$ '
  14504. PS2='> '
  14505. @@ -156,330 +153,300 @@
  14506. LANGUAGE=C
  14507. export LANGUAGE
  14508. -# Required to use basename.
  14509. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  14510. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14511. - as_expr=expr
  14512. -else
  14513. - as_expr=false
  14514. -fi
  14515. -
  14516. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14517. - as_basename=basename
  14518. -else
  14519. - as_basename=false
  14520. -fi
  14521. -
  14522. -
  14523. -# Name of the executable.
  14524. -as_me=`$as_basename -- "$0" ||
  14525. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14526. - X"$0" : 'X\(//\)$' \| \
  14527. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14528. -$as_echo X/"$0" |
  14529. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  14530. - s//\1/
  14531. - q
  14532. - }
  14533. - /^X\/\(\/\/\)$/{
  14534. - s//\1/
  14535. - q
  14536. - }
  14537. - /^X\/\(\/\).*/{
  14538. - s//\1/
  14539. - q
  14540. - }
  14541. - s/.*/./; q'`
  14542. -
  14543. # CDPATH.
  14544. -$as_unset CDPATH
  14545. -
  14546. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14547. if test "x$CONFIG_SHELL" = x; then
  14548. - if (eval ":") 2>/dev/null; then
  14549. - as_have_required=yes
  14550. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  14551. + emulate sh
  14552. + NULLCMD=:
  14553. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  14554. + # is contrary to our usage. Disable this feature.
  14555. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  14556. + setopt NO_GLOB_SUBST
  14557. else
  14558. - as_have_required=no
  14559. + case \`(set -o) 2>/dev/null\` in #(
  14560. + *posix*) :
  14561. + set -o posix ;; #(
  14562. + *) :
  14563. + ;;
  14564. +esac
  14565. fi
  14566. -
  14567. - if test $as_have_required = yes && (eval ":
  14568. -(as_func_return () {
  14569. - (exit \$1)
  14570. -}
  14571. -as_func_success () {
  14572. - as_func_return 0
  14573. -}
  14574. -as_func_failure () {
  14575. - as_func_return 1
  14576. -}
  14577. -as_func_ret_success () {
  14578. - return 0
  14579. -}
  14580. -as_func_ret_failure () {
  14581. - return 1
  14582. -}
  14583. +"
  14584. + as_required="as_fn_return () { (exit \$1); }
  14585. +as_fn_success () { as_fn_return 0; }
  14586. +as_fn_failure () { as_fn_return 1; }
  14587. +as_fn_ret_success () { return 0; }
  14588. +as_fn_ret_failure () { return 1; }
  14589. exitcode=0
  14590. -if as_func_success; then
  14591. - :
  14592. -else
  14593. - exitcode=1
  14594. - echo as_func_success failed.
  14595. -fi
  14596. -
  14597. -if as_func_failure; then
  14598. - exitcode=1
  14599. - echo as_func_failure succeeded.
  14600. -fi
  14601. -
  14602. -if as_func_ret_success; then
  14603. - :
  14604. -else
  14605. - exitcode=1
  14606. - echo as_func_ret_success failed.
  14607. -fi
  14608. -
  14609. -if as_func_ret_failure; then
  14610. - exitcode=1
  14611. - echo as_func_ret_failure succeeded.
  14612. -fi
  14613. -
  14614. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  14615. - :
  14616. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  14617. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  14618. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  14619. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  14620. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  14621. +
  14622. +else
  14623. + exitcode=1; echo positional parameters were not saved.
  14624. +fi
  14625. +test x\$exitcode = x0 || exit 1"
  14626. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  14627. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  14628. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  14629. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  14630. +test \$(( 1 + 1 )) = 2 || exit 1"
  14631. + if (eval "$as_required") 2>/dev/null; then :
  14632. + as_have_required=yes
  14633. else
  14634. - exitcode=1
  14635. - echo positional parameters were not saved.
  14636. + as_have_required=no
  14637. fi
  14638. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  14639. -test \$exitcode = 0) || { (exit 1); exit 1; }
  14640. -
  14641. -(
  14642. - as_lineno_1=\$LINENO
  14643. - as_lineno_2=\$LINENO
  14644. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  14645. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  14646. -") 2> /dev/null; then
  14647. - :
  14648. else
  14649. - as_candidate_shells=
  14650. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14651. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14652. +as_found=false
  14653. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14654. do
  14655. IFS=$as_save_IFS
  14656. test -z "$as_dir" && as_dir=.
  14657. - case $as_dir in
  14658. + as_found=:
  14659. + case $as_dir in #(
  14660. /*)
  14661. for as_base in sh bash ksh sh5; do
  14662. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  14663. + # Try only shells that exist, to save several forks.
  14664. + as_shell=$as_dir/$as_base
  14665. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14666. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14667. + CONFIG_SHELL=$as_shell as_have_required=yes
  14668. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14669. + break 2
  14670. +fi
  14671. +fi
  14672. done;;
  14673. esac
  14674. + as_found=false
  14675. done
  14676. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  14677. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  14678. + CONFIG_SHELL=$SHELL as_have_required=yes
  14679. +fi; }
  14680. IFS=$as_save_IFS
  14681. - for as_shell in $as_candidate_shells $SHELL; do
  14682. - # Try only shells that exist, to save several forks.
  14683. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14684. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  14685. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14686. - emulate sh
  14687. - NULLCMD=:
  14688. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14689. - # is contrary to our usage. Disable this feature.
  14690. - alias -g '${1+"$@"}'='"$@"'
  14691. - setopt NO_GLOB_SUBST
  14692. -else
  14693. - case `(set -o) 2>/dev/null` in
  14694. - *posix*) set -o posix ;;
  14695. -esac
  14696. -
  14697. -fi
  14698. -
  14699. -
  14700. -:
  14701. -_ASEOF
  14702. -}; then
  14703. - CONFIG_SHELL=$as_shell
  14704. - as_have_required=yes
  14705. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  14706. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14707. - emulate sh
  14708. - NULLCMD=:
  14709. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14710. - # is contrary to our usage. Disable this feature.
  14711. - alias -g '${1+"$@"}'='"$@"'
  14712. - setopt NO_GLOB_SUBST
  14713. -else
  14714. - case `(set -o) 2>/dev/null` in
  14715. - *posix*) set -o posix ;;
  14716. -esac
  14717. -
  14718. -fi
  14719. -
  14720. -
  14721. -:
  14722. -(as_func_return () {
  14723. - (exit $1)
  14724. -}
  14725. -as_func_success () {
  14726. - as_func_return 0
  14727. -}
  14728. -as_func_failure () {
  14729. - as_func_return 1
  14730. -}
  14731. -as_func_ret_success () {
  14732. - return 0
  14733. -}
  14734. -as_func_ret_failure () {
  14735. - return 1
  14736. -}
  14737. -
  14738. -exitcode=0
  14739. -if as_func_success; then
  14740. - :
  14741. -else
  14742. - exitcode=1
  14743. - echo as_func_success failed.
  14744. -fi
  14745. -
  14746. -if as_func_failure; then
  14747. - exitcode=1
  14748. - echo as_func_failure succeeded.
  14749. -fi
  14750. -
  14751. -if as_func_ret_success; then
  14752. - :
  14753. -else
  14754. - exitcode=1
  14755. - echo as_func_ret_success failed.
  14756. -fi
  14757. -
  14758. -if as_func_ret_failure; then
  14759. - exitcode=1
  14760. - echo as_func_ret_failure succeeded.
  14761. -fi
  14762. -
  14763. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  14764. - :
  14765. -else
  14766. - exitcode=1
  14767. - echo positional parameters were not saved.
  14768. -fi
  14769. -
  14770. -test $exitcode = 0) || { (exit 1); exit 1; }
  14771. -
  14772. -(
  14773. - as_lineno_1=$LINENO
  14774. - as_lineno_2=$LINENO
  14775. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  14776. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  14777. -
  14778. -_ASEOF
  14779. -}; then
  14780. - break
  14781. -fi
  14782. -
  14783. -fi
  14784. -
  14785. - done
  14786. -
  14787. - if test "x$CONFIG_SHELL" != x; then
  14788. - for as_var in BASH_ENV ENV
  14789. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14790. - done
  14791. + if test "x$CONFIG_SHELL" != x; then :
  14792. + # We cannot yet assume a decent shell, so we have to provide a
  14793. + # neutralization value for shells without unset; and this also
  14794. + # works around shells that cannot unset nonexistent variables.
  14795. + BASH_ENV=/dev/null
  14796. + ENV=/dev/null
  14797. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  14798. export CONFIG_SHELL
  14799. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  14800. fi
  14801. -
  14802. - if test $as_have_required = no; then
  14803. - echo This script requires a shell more modern than all the
  14804. - echo shells that I found on your system. Please install a
  14805. - echo modern shell, or manually run the script under such a
  14806. - echo shell if you do have one.
  14807. - { (exit 1); exit 1; }
  14808. + if test x$as_have_required = xno; then :
  14809. + $as_echo "$0: This script requires a shell more modern than all"
  14810. + $as_echo "$0: the shells that I found on your system."
  14811. + if test x${ZSH_VERSION+set} = xset ; then
  14812. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  14813. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  14814. + else
  14815. + $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-guile@gnu.org
  14816. +$0: about your system, including any error possibly output
  14817. +$0: before this message. Then install a modern shell, or
  14818. +$0: manually run the script under such a shell if you do
  14819. +$0: have one."
  14820. + fi
  14821. + exit 1
  14822. fi
  14823. -
  14824. -
  14825. fi
  14826. -
  14827. fi
  14828. +SHELL=${CONFIG_SHELL-/bin/sh}
  14829. +export SHELL
  14830. +# Unset more variables known to interfere with behavior of common tools.
  14831. +CLICOLOR_FORCE= GREP_OPTIONS=
  14832. +unset CLICOLOR_FORCE GREP_OPTIONS
  14833. +
  14834. +## --------------------- ##
  14835. +## M4sh Shell Functions. ##
  14836. +## --------------------- ##
  14837. +# as_fn_unset VAR
  14838. +# ---------------
  14839. +# Portably unset VAR.
  14840. +as_fn_unset ()
  14841. +{
  14842. + { eval $1=; unset $1;}
  14843. +}
  14844. +as_unset=as_fn_unset
  14845. +
  14846. +# as_fn_set_status STATUS
  14847. +# -----------------------
  14848. +# Set $? to STATUS, without forking.
  14849. +as_fn_set_status ()
  14850. +{
  14851. + return $1
  14852. +} # as_fn_set_status
  14853. +
  14854. +# as_fn_exit STATUS
  14855. +# -----------------
  14856. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14857. +as_fn_exit ()
  14858. +{
  14859. + set +e
  14860. + as_fn_set_status $1
  14861. + exit $1
  14862. +} # as_fn_exit
  14863. +
  14864. +# as_fn_mkdir_p
  14865. +# -------------
  14866. +# Create "$as_dir" as a directory, including parents if necessary.
  14867. +as_fn_mkdir_p ()
  14868. +{
  14869. + case $as_dir in #(
  14870. + -*) as_dir=./$as_dir;;
  14871. + esac
  14872. + test -d "$as_dir" || eval $as_mkdir_p || {
  14873. + as_dirs=
  14874. + while :; do
  14875. + case $as_dir in #(
  14876. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14877. + *) as_qdir=$as_dir;;
  14878. + esac
  14879. + as_dirs="'$as_qdir' $as_dirs"
  14880. + as_dir=`$as_dirname -- "$as_dir" ||
  14881. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14882. + X"$as_dir" : 'X\(//\)[^/]' \| \
  14883. + X"$as_dir" : 'X\(//\)$' \| \
  14884. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14885. +$as_echo X"$as_dir" |
  14886. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14887. + s//\1/
  14888. + q
  14889. + }
  14890. + /^X\(\/\/\)[^/].*/{
  14891. + s//\1/
  14892. + q
  14893. + }
  14894. + /^X\(\/\/\)$/{
  14895. + s//\1/
  14896. + q
  14897. + }
  14898. + /^X\(\/\).*/{
  14899. + s//\1/
  14900. + q
  14901. + }
  14902. + s/.*/./; q'`
  14903. + test -d "$as_dir" && break
  14904. + done
  14905. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  14906. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14907. -(eval "as_func_return () {
  14908. - (exit \$1)
  14909. -}
  14910. -as_func_success () {
  14911. - as_func_return 0
  14912. -}
  14913. -as_func_failure () {
  14914. - as_func_return 1
  14915. -}
  14916. -as_func_ret_success () {
  14917. - return 0
  14918. -}
  14919. -as_func_ret_failure () {
  14920. - return 1
  14921. -}
  14922. +} # as_fn_mkdir_p
  14923. +# as_fn_append VAR VALUE
  14924. +# ----------------------
  14925. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  14926. +# advantage of any shell optimizations that allow amortized linear growth over
  14927. +# repeated appends, instead of the typical quadratic growth present in naive
  14928. +# implementations.
  14929. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14930. + eval 'as_fn_append ()
  14931. + {
  14932. + eval $1+=\$2
  14933. + }'
  14934. +else
  14935. + as_fn_append ()
  14936. + {
  14937. + eval $1=\$$1\$2
  14938. + }
  14939. +fi # as_fn_append
  14940. -exitcode=0
  14941. -if as_func_success; then
  14942. - :
  14943. +# as_fn_arith ARG...
  14944. +# ------------------
  14945. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  14946. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  14947. +# must be portable across $(()) and expr.
  14948. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14949. + eval 'as_fn_arith ()
  14950. + {
  14951. + as_val=$(( $* ))
  14952. + }'
  14953. else
  14954. - exitcode=1
  14955. - echo as_func_success failed.
  14956. -fi
  14957. + as_fn_arith ()
  14958. + {
  14959. + as_val=`expr "$@" || test $? -eq 1`
  14960. + }
  14961. +fi # as_fn_arith
  14962. -if as_func_failure; then
  14963. - exitcode=1
  14964. - echo as_func_failure succeeded.
  14965. -fi
  14966. -if as_func_ret_success; then
  14967. - :
  14968. +# as_fn_error ERROR [LINENO LOG_FD]
  14969. +# ---------------------------------
  14970. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14971. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14972. +# script with status $?, using 1 if that was 0.
  14973. +as_fn_error ()
  14974. +{
  14975. + as_status=$?; test $as_status -eq 0 && as_status=1
  14976. + if test "$3"; then
  14977. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14978. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14979. + fi
  14980. + $as_echo "$as_me: error: $1" >&2
  14981. + as_fn_exit $as_status
  14982. +} # as_fn_error
  14983. +
  14984. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  14985. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14986. + as_expr=expr
  14987. else
  14988. - exitcode=1
  14989. - echo as_func_ret_success failed.
  14990. + as_expr=false
  14991. fi
  14992. -if as_func_ret_failure; then
  14993. - exitcode=1
  14994. - echo as_func_ret_failure succeeded.
  14995. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14996. + as_basename=basename
  14997. +else
  14998. + as_basename=false
  14999. fi
  15000. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  15001. - :
  15002. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15003. + as_dirname=dirname
  15004. else
  15005. - exitcode=1
  15006. - echo positional parameters were not saved.
  15007. + as_dirname=false
  15008. fi
  15009. -test \$exitcode = 0") || {
  15010. - echo No shell found that supports shell functions.
  15011. - echo Please tell bug-autoconf@gnu.org about your system,
  15012. - echo including any error possibly output before this message.
  15013. - echo This can help us improve future autoconf versions.
  15014. - echo Configuration will now proceed without shell functions.
  15015. -}
  15016. +as_me=`$as_basename -- "$0" ||
  15017. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15018. + X"$0" : 'X\(//\)$' \| \
  15019. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15020. +$as_echo X/"$0" |
  15021. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  15022. + s//\1/
  15023. + q
  15024. + }
  15025. + /^X\/\(\/\/\)$/{
  15026. + s//\1/
  15027. + q
  15028. + }
  15029. + /^X\/\(\/\).*/{
  15030. + s//\1/
  15031. + q
  15032. + }
  15033. + s/.*/./; q'`
  15034. +# Avoid depending upon Character Ranges.
  15035. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15036. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15037. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15038. +as_cr_digits='0123456789'
  15039. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  15040. - as_lineno_1=$LINENO
  15041. - as_lineno_2=$LINENO
  15042. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15043. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15044. -
  15045. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15046. - # uniformly replaced by the line number. The first 'sed' inserts a
  15047. - # line-number line after each line using $LINENO; the second 'sed'
  15048. - # does the real work. The second script uses 'N' to pair each
  15049. - # line-number line with the line containing $LINENO, and appends
  15050. - # trailing '-' during substitution so that $LINENO is not a special
  15051. - # case at line end.
  15052. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15053. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  15054. - # E. McMahon (1931-1989) for sed's syntax. :-)
  15055. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  15056. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  15057. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  15058. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  15059. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  15060. sed -n '
  15061. p
  15062. /[$]LINENO/=
  15063. @@ -496,8 +463,7 @@
  15064. s/-\n.*//
  15065. ' >$as_me.lineno &&
  15066. chmod +x "$as_me.lineno" ||
  15067. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15068. - { (exit 1); exit 1; }; }
  15069. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  15070. # Don't try to exec as it changes $[0], causing all sort of problems
  15071. # (the dirname of $[0] is not the place where we might find the
  15072. @@ -507,29 +473,18 @@
  15073. exit
  15074. }
  15075. -
  15076. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15077. - as_dirname=dirname
  15078. -else
  15079. - as_dirname=false
  15080. -fi
  15081. -
  15082. ECHO_C= ECHO_N= ECHO_T=
  15083. -case `echo -n x` in
  15084. +case `echo -n x` in #(((((
  15085. -n*)
  15086. - case `echo 'x\c'` in
  15087. + case `echo 'xy\c'` in
  15088. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15089. - *) ECHO_C='\c';;
  15090. + xy) ECHO_C='\c';;
  15091. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15092. + ECHO_T=' ';;
  15093. esac;;
  15094. *)
  15095. ECHO_N='-n';;
  15096. esac
  15097. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15098. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15099. - as_expr=expr
  15100. -else
  15101. - as_expr=false
  15102. -fi
  15103. rm -f conf$$ conf$$.exe conf$$.file
  15104. if test -d conf$$.dir; then
  15105. @@ -559,7 +514,7 @@
  15106. rmdir conf$$.dir 2>/dev/null
  15107. if mkdir -p . 2>/dev/null; then
  15108. - as_mkdir_p=:
  15109. + as_mkdir_p='mkdir -p "$as_dir"'
  15110. else
  15111. test -d ./-p && rmdir ./-p
  15112. as_mkdir_p=false
  15113. @@ -578,10 +533,10 @@
  15114. if test -d "$1"; then
  15115. test -d "$1/.";
  15116. else
  15117. - case $1 in
  15118. + case $1 in #(
  15119. -*)set "./$1";;
  15120. esac;
  15121. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15122. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15123. ???[sx]*):;;*)false;;esac;fi
  15124. '\'' sh
  15125. '
  15126. @@ -596,7 +551,6 @@
  15127. -
  15128. # Check that we are running under the correct shell.
  15129. SHELL=${CONFIG_SHELL-/bin/sh}
  15130. @@ -763,7 +717,6 @@
  15131. subdirs=
  15132. MFLAGS=
  15133. MAKEFLAGS=
  15134. -SHELL=${CONFIG_SHELL-/bin/sh}
  15135. # Identity of this package.
  15136. PACKAGE_NAME='guile'
  15137. @@ -771,6 +724,7 @@
  15138. PACKAGE_VERSION='1.8.7'
  15139. PACKAGE_STRING='guile 1.8.7'
  15140. PACKAGE_BUGREPORT='bug-guile@gnu.org'
  15141. +PACKAGE_URL=''
  15142. ac_unique_file="GUILE-VERSION"
  15143. ac_unique_file="GUILE-VERSION"
  15144. @@ -1014,6 +968,7 @@
  15145. program_transform_name
  15146. prefix
  15147. exec_prefix
  15148. +PACKAGE_URL
  15149. PACKAGE_BUGREPORT
  15150. PACKAGE_STRING
  15151. PACKAGE_VERSION
  15152. @@ -1171,8 +1126,7 @@
  15153. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  15154. # Reject names that are not valid shell variable names.
  15155. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15156. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  15157. - { (exit 1); exit 1; }; }
  15158. + as_fn_error "invalid feature name: $ac_useropt"
  15159. ac_useropt_orig=$ac_useropt
  15160. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15161. case $ac_user_opts in
  15162. @@ -1198,8 +1152,7 @@
  15163. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  15164. # Reject names that are not valid shell variable names.
  15165. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15166. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  15167. - { (exit 1); exit 1; }; }
  15168. + as_fn_error "invalid feature name: $ac_useropt"
  15169. ac_useropt_orig=$ac_useropt
  15170. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15171. case $ac_user_opts in
  15172. @@ -1403,8 +1356,7 @@
  15173. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  15174. # Reject names that are not valid shell variable names.
  15175. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15176. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  15177. - { (exit 1); exit 1; }; }
  15178. + as_fn_error "invalid package name: $ac_useropt"
  15179. ac_useropt_orig=$ac_useropt
  15180. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15181. case $ac_user_opts in
  15182. @@ -1420,8 +1372,7 @@
  15183. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  15184. # Reject names that are not valid shell variable names.
  15185. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15186. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  15187. - { (exit 1); exit 1; }; }
  15188. + as_fn_error "invalid package name: $ac_useropt"
  15189. ac_useropt_orig=$ac_useropt
  15190. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15191. case $ac_user_opts in
  15192. @@ -1451,17 +1402,17 @@
  15193. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  15194. x_libraries=$ac_optarg ;;
  15195. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  15196. -Try \`$0 --help' for more information." >&2
  15197. - { (exit 1); exit 1; }; }
  15198. + -*) as_fn_error "unrecognized option: \`$ac_option'
  15199. +Try \`$0 --help' for more information."
  15200. ;;
  15201. *=*)
  15202. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  15203. # Reject names that are not valid shell variable names.
  15204. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  15205. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  15206. - { (exit 1); exit 1; }; }
  15207. + case $ac_envvar in #(
  15208. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  15209. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  15210. + esac
  15211. eval $ac_envvar=\$ac_optarg
  15212. export $ac_envvar ;;
  15213. @@ -1478,15 +1429,13 @@
  15214. if test -n "$ac_prev"; then
  15215. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  15216. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  15217. - { (exit 1); exit 1; }; }
  15218. + as_fn_error "missing argument to $ac_option"
  15219. fi
  15220. if test -n "$ac_unrecognized_opts"; then
  15221. case $enable_option_checking in
  15222. no) ;;
  15223. - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  15224. - { (exit 1); exit 1; }; } ;;
  15225. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  15226. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  15227. esac
  15228. fi
  15229. @@ -1509,8 +1458,7 @@
  15230. [\\/$]* | ?:[\\/]* ) continue;;
  15231. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  15232. esac
  15233. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  15234. - { (exit 1); exit 1; }; }
  15235. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  15236. done
  15237. # There might be people who depend on the old broken behavior: `$host'
  15238. @@ -1540,11 +1488,9 @@
  15239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  15240. ac_ls_di=`ls -di .` &&
  15241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  15242. - { $as_echo "$as_me: error: working directory cannot be determined" >&2
  15243. - { (exit 1); exit 1; }; }
  15244. + as_fn_error "working directory cannot be determined"
  15245. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  15246. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  15247. - { (exit 1); exit 1; }; }
  15248. + as_fn_error "pwd does not report name of working directory"
  15249. # Find the source files, if location was not specified.
  15250. @@ -1583,13 +1529,11 @@
  15251. fi
  15252. if test ! -r "$srcdir/$ac_unique_file"; then
  15253. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  15254. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  15255. - { (exit 1); exit 1; }; }
  15256. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  15257. fi
  15258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  15259. ac_abs_confdir=`(
  15260. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  15261. - { (exit 1); exit 1; }; }
  15262. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  15263. pwd)`
  15264. # When building in place, set srcdir=.
  15265. if test "$ac_abs_confdir" = "$ac_pwd"; then
  15266. @@ -1814,10 +1758,9 @@
  15267. if $ac_init_version; then
  15268. cat <<\_ACEOF
  15269. guile configure 1.8.7
  15270. -generated by GNU Autoconf 2.63
  15271. +generated by GNU Autoconf 2.64
  15272. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  15273. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15274. +Copyright (C) 2009 Free Software Foundation, Inc.
  15275. This configure script is free software; the Free Software Foundation
  15276. gives unlimited permission to copy, distribute and modify it.
  15277. @@ -1846,399 +1789,1056 @@
  15278. _ACEOF
  15279. exit
  15280. fi
  15281. -cat >config.log <<_ACEOF
  15282. -This file contains any messages produced by compilers while
  15283. -running configure, to aid debugging if configure makes a mistake.
  15284. -It was created by guile $as_me 1.8.7, which was
  15285. -generated by GNU Autoconf 2.63. Invocation command line was
  15286. +## ------------------------ ##
  15287. +## Autoconf initialization. ##
  15288. +## ------------------------ ##
  15289. +
  15290. +# ac_fn_c_try_compile LINENO
  15291. +# --------------------------
  15292. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  15293. +ac_fn_c_try_compile ()
  15294. +{
  15295. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15296. + rm -f conftest.$ac_objext
  15297. + if { { ac_try="$ac_compile"
  15298. +case "(($ac_try" in
  15299. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15300. + *) ac_try_echo=$ac_try;;
  15301. +esac
  15302. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15303. +$as_echo "$ac_try_echo"; } >&5
  15304. + (eval "$ac_compile") 2>conftest.err
  15305. + ac_status=$?
  15306. + if test -s conftest.err; then
  15307. + grep -v '^ *+' conftest.err >conftest.er1
  15308. + cat conftest.er1 >&5
  15309. + mv -f conftest.er1 conftest.err
  15310. + fi
  15311. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15312. + test $ac_status = 0; } && {
  15313. + test -z "$ac_c_werror_flag" ||
  15314. + test ! -s conftest.err
  15315. + } && test -s conftest.$ac_objext; then :
  15316. + ac_retval=0
  15317. +else
  15318. + $as_echo "$as_me: failed program was:" >&5
  15319. +sed 's/^/| /' conftest.$ac_ext >&5
  15320. - $ $0 $@
  15321. + ac_retval=1
  15322. +fi
  15323. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15324. + return $ac_retval
  15325. -_ACEOF
  15326. -exec 5>>config.log
  15327. +} # ac_fn_c_try_compile
  15328. +
  15329. +# ac_fn_c_try_cpp LINENO
  15330. +# ----------------------
  15331. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  15332. +ac_fn_c_try_cpp ()
  15333. {
  15334. -cat <<_ASUNAME
  15335. -## --------- ##
  15336. -## Platform. ##
  15337. -## --------- ##
  15338. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15339. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  15340. +case "(($ac_try" in
  15341. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15342. + *) ac_try_echo=$ac_try;;
  15343. +esac
  15344. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15345. +$as_echo "$ac_try_echo"; } >&5
  15346. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  15347. + ac_status=$?
  15348. + if test -s conftest.err; then
  15349. + grep -v '^ *+' conftest.err >conftest.er1
  15350. + cat conftest.er1 >&5
  15351. + mv -f conftest.er1 conftest.err
  15352. + fi
  15353. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15354. + test $ac_status = 0; } >/dev/null && {
  15355. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15356. + test ! -s conftest.err
  15357. + }; then :
  15358. + ac_retval=0
  15359. +else
  15360. + $as_echo "$as_me: failed program was:" >&5
  15361. +sed 's/^/| /' conftest.$ac_ext >&5
  15362. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  15363. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  15364. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  15365. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  15366. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  15367. + ac_retval=1
  15368. +fi
  15369. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15370. + return $ac_retval
  15371. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  15372. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  15373. +} # ac_fn_c_try_cpp
  15374. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  15375. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  15376. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  15377. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  15378. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  15379. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  15380. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  15381. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  15382. +# -------------------------------------------------------
  15383. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  15384. +# the include files in INCLUDES and setting the cache variable VAR
  15385. +# accordingly.
  15386. +ac_fn_c_check_header_mongrel ()
  15387. +{
  15388. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15389. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15390. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15391. +$as_echo_n "checking for $2... " >&6; }
  15392. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15393. + $as_echo_n "(cached) " >&6
  15394. +fi
  15395. +eval ac_res=\$$3
  15396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15397. +$as_echo "$ac_res" >&6; }
  15398. +else
  15399. + # Is the header compilable?
  15400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  15401. +$as_echo_n "checking $2 usability... " >&6; }
  15402. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15403. +/* end confdefs.h. */
  15404. +$4
  15405. +#include <$2>
  15406. +_ACEOF
  15407. +if ac_fn_c_try_compile "$LINENO"; then :
  15408. + ac_header_compiler=yes
  15409. +else
  15410. + ac_header_compiler=no
  15411. +fi
  15412. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  15414. +$as_echo "$ac_header_compiler" >&6; }
  15415. -_ASUNAME
  15416. +# Is the header present?
  15417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  15418. +$as_echo_n "checking $2 presence... " >&6; }
  15419. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15420. +/* end confdefs.h. */
  15421. +#include <$2>
  15422. +_ACEOF
  15423. +if ac_fn_c_try_cpp "$LINENO"; then :
  15424. + ac_header_preproc=yes
  15425. +else
  15426. + ac_header_preproc=no
  15427. +fi
  15428. +rm -f conftest.err conftest.$ac_ext
  15429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  15430. +$as_echo "$ac_header_preproc" >&6; }
  15431. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15432. -for as_dir in $PATH
  15433. -do
  15434. - IFS=$as_save_IFS
  15435. - test -z "$as_dir" && as_dir=.
  15436. - $as_echo "PATH: $as_dir"
  15437. -done
  15438. -IFS=$as_save_IFS
  15439. +# So? What about this header?
  15440. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  15441. + yes:no: )
  15442. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  15443. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15444. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  15445. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  15446. + ;;
  15447. + no:yes:* )
  15448. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  15449. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  15450. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  15451. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  15452. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  15453. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  15454. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  15455. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  15456. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  15457. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  15458. +( cat <<\_ASBOX
  15459. +## -------------------------------- ##
  15460. +## Report this to bug-guile@gnu.org ##
  15461. +## -------------------------------- ##
  15462. +_ASBOX
  15463. + ) | sed "s/^/$as_me: WARNING: /" >&2
  15464. + ;;
  15465. +esac
  15466. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15467. +$as_echo_n "checking for $2... " >&6; }
  15468. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15469. + $as_echo_n "(cached) " >&6
  15470. +else
  15471. + eval "$3=\$ac_header_compiler"
  15472. +fi
  15473. +eval ac_res=\$$3
  15474. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15475. +$as_echo "$ac_res" >&6; }
  15476. +fi
  15477. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15478. -} >&5
  15479. +} # ac_fn_c_check_header_mongrel
  15480. -cat >&5 <<_ACEOF
  15481. +# ac_fn_c_try_run LINENO
  15482. +# ----------------------
  15483. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  15484. +# that executables *can* be run.
  15485. +ac_fn_c_try_run ()
  15486. +{
  15487. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15488. + if { { ac_try="$ac_link"
  15489. +case "(($ac_try" in
  15490. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15491. + *) ac_try_echo=$ac_try;;
  15492. +esac
  15493. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15494. +$as_echo "$ac_try_echo"; } >&5
  15495. + (eval "$ac_link") 2>&5
  15496. + ac_status=$?
  15497. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15498. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  15499. + { { case "(($ac_try" in
  15500. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15501. + *) ac_try_echo=$ac_try;;
  15502. +esac
  15503. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15504. +$as_echo "$ac_try_echo"; } >&5
  15505. + (eval "$ac_try") 2>&5
  15506. + ac_status=$?
  15507. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15508. + test $ac_status = 0; }; }; then :
  15509. + ac_retval=0
  15510. +else
  15511. + $as_echo "$as_me: program exited with status $ac_status" >&5
  15512. + $as_echo "$as_me: failed program was:" >&5
  15513. +sed 's/^/| /' conftest.$ac_ext >&5
  15514. + ac_retval=$ac_status
  15515. +fi
  15516. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  15517. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15518. + return $ac_retval
  15519. -## ----------- ##
  15520. -## Core tests. ##
  15521. -## ----------- ##
  15522. +} # ac_fn_c_try_run
  15523. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  15524. +# -------------------------------------------------------
  15525. +# Tests whether HEADER exists and can be compiled using the include files in
  15526. +# INCLUDES, setting the cache variable VAR accordingly.
  15527. +ac_fn_c_check_header_compile ()
  15528. +{
  15529. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15530. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15531. +$as_echo_n "checking for $2... " >&6; }
  15532. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15533. + $as_echo_n "(cached) " >&6
  15534. +else
  15535. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15536. +/* end confdefs.h. */
  15537. +$4
  15538. +#include <$2>
  15539. _ACEOF
  15540. +if ac_fn_c_try_compile "$LINENO"; then :
  15541. + eval "$3=yes"
  15542. +else
  15543. + eval "$3=no"
  15544. +fi
  15545. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15546. +fi
  15547. +eval ac_res=\$$3
  15548. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15549. +$as_echo "$ac_res" >&6; }
  15550. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15551. +} # ac_fn_c_check_header_compile
  15552. -# Keep a trace of the command line.
  15553. -# Strip out --no-create and --no-recursion so they do not pile up.
  15554. -# Strip out --silent because we don't want to record it for future runs.
  15555. -# Also quote any args containing shell meta-characters.
  15556. -# Make two passes to allow for proper duplicate-argument suppression.
  15557. -ac_configure_args=
  15558. -ac_configure_args0=
  15559. -ac_configure_args1=
  15560. -ac_must_keep_next=false
  15561. -for ac_pass in 1 2
  15562. -do
  15563. - for ac_arg
  15564. - do
  15565. - case $ac_arg in
  15566. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  15567. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15568. - | -silent | --silent | --silen | --sile | --sil)
  15569. - continue ;;
  15570. - *\'*)
  15571. - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15572. - esac
  15573. - case $ac_pass in
  15574. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  15575. - 2)
  15576. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  15577. - if test $ac_must_keep_next = true; then
  15578. - ac_must_keep_next=false # Got value, back to normal.
  15579. - else
  15580. - case $ac_arg in
  15581. - *=* | --config-cache | -C | -disable-* | --disable-* \
  15582. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  15583. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  15584. - | -with-* | --with-* | -without-* | --without-* | --x)
  15585. - case "$ac_configure_args0 " in
  15586. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  15587. - esac
  15588. - ;;
  15589. - -* ) ac_must_keep_next=true ;;
  15590. - esac
  15591. - fi
  15592. - ac_configure_args="$ac_configure_args '$ac_arg'"
  15593. - ;;
  15594. - esac
  15595. - done
  15596. -done
  15597. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  15598. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  15599. +# ac_fn_c_try_link LINENO
  15600. +# -----------------------
  15601. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  15602. +ac_fn_c_try_link ()
  15603. +{
  15604. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15605. + rm -f conftest.$ac_objext conftest$ac_exeext
  15606. + if { { ac_try="$ac_link"
  15607. +case "(($ac_try" in
  15608. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15609. + *) ac_try_echo=$ac_try;;
  15610. +esac
  15611. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15612. +$as_echo "$ac_try_echo"; } >&5
  15613. + (eval "$ac_link") 2>conftest.err
  15614. + ac_status=$?
  15615. + if test -s conftest.err; then
  15616. + grep -v '^ *+' conftest.err >conftest.er1
  15617. + cat conftest.er1 >&5
  15618. + mv -f conftest.er1 conftest.err
  15619. + fi
  15620. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15621. + test $ac_status = 0; } && {
  15622. + test -z "$ac_c_werror_flag" ||
  15623. + test ! -s conftest.err
  15624. + } && test -s conftest$ac_exeext && {
  15625. + test "$cross_compiling" = yes ||
  15626. + $as_test_x conftest$ac_exeext
  15627. + }; then :
  15628. + ac_retval=0
  15629. +else
  15630. + $as_echo "$as_me: failed program was:" >&5
  15631. +sed 's/^/| /' conftest.$ac_ext >&5
  15632. -# When interrupted or exit'd, cleanup temporary files, and complete
  15633. -# config.log. We remove comments because anyway the quotes in there
  15634. -# would cause problems or look ugly.
  15635. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  15636. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  15637. -trap 'exit_status=$?
  15638. - # Save into config.log some information that might help in debugging.
  15639. - {
  15640. - echo
  15641. + ac_retval=1
  15642. +fi
  15643. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  15644. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  15645. + # interfere with the next link command; also delete a directory that is
  15646. + # left behind by Apple's compiler. We do this before executing the actions.
  15647. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  15648. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15649. + return $ac_retval
  15650. - cat <<\_ASBOX
  15651. -## ---------------- ##
  15652. -## Cache variables. ##
  15653. -## ---------------- ##
  15654. -_ASBOX
  15655. - echo
  15656. - # The following way of writing the cache mishandles newlines in values,
  15657. -(
  15658. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  15659. - eval ac_val=\$$ac_var
  15660. - case $ac_val in #(
  15661. - *${as_nl}*)
  15662. - case $ac_var in #(
  15663. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  15664. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15665. - esac
  15666. - case $ac_var in #(
  15667. - _ | IFS | as_nl) ;; #(
  15668. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15669. - *) $as_unset $ac_var ;;
  15670. - esac ;;
  15671. - esac
  15672. - done
  15673. - (set) 2>&1 |
  15674. - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  15675. - *${as_nl}ac_space=\ *)
  15676. - sed -n \
  15677. - "s/'\''/'\''\\\\'\'''\''/g;
  15678. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  15679. - ;; #(
  15680. - *)
  15681. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15682. - ;;
  15683. - esac |
  15684. - sort
  15685. -)
  15686. - echo
  15687. +} # ac_fn_c_try_link
  15688. - cat <<\_ASBOX
  15689. -## ----------------- ##
  15690. -## Output variables. ##
  15691. -## ----------------- ##
  15692. -_ASBOX
  15693. - echo
  15694. - for ac_var in $ac_subst_vars
  15695. - do
  15696. - eval ac_val=\$$ac_var
  15697. - case $ac_val in
  15698. - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  15699. - esac
  15700. - $as_echo "$ac_var='\''$ac_val'\''"
  15701. - done | sort
  15702. - echo
  15703. +# ac_fn_c_check_func LINENO FUNC VAR
  15704. +# ----------------------------------
  15705. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  15706. +ac_fn_c_check_func ()
  15707. +{
  15708. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15709. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15710. +$as_echo_n "checking for $2... " >&6; }
  15711. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15712. + $as_echo_n "(cached) " >&6
  15713. +else
  15714. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15715. +/* end confdefs.h. */
  15716. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  15717. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15718. +#define $2 innocuous_$2
  15719. - if test -n "$ac_subst_files"; then
  15720. - cat <<\_ASBOX
  15721. -## ------------------- ##
  15722. -## File substitutions. ##
  15723. -## ------------------- ##
  15724. -_ASBOX
  15725. - echo
  15726. - for ac_var in $ac_subst_files
  15727. - do
  15728. - eval ac_val=\$$ac_var
  15729. - case $ac_val in
  15730. - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  15731. - esac
  15732. - $as_echo "$ac_var='\''$ac_val'\''"
  15733. - done | sort
  15734. - echo
  15735. - fi
  15736. +/* System header to define __stub macros and hopefully few prototypes,
  15737. + which can conflict with char $2 (); below.
  15738. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15739. + <limits.h> exists even on freestanding compilers. */
  15740. - if test -s confdefs.h; then
  15741. - cat <<\_ASBOX
  15742. -## ----------- ##
  15743. -## confdefs.h. ##
  15744. -## ----------- ##
  15745. -_ASBOX
  15746. - echo
  15747. - cat confdefs.h
  15748. - echo
  15749. - fi
  15750. - test "$ac_signal" != 0 &&
  15751. - $as_echo "$as_me: caught signal $ac_signal"
  15752. - $as_echo "$as_me: exit $exit_status"
  15753. - } >&5
  15754. - rm -f core *.core core.conftest.* &&
  15755. - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  15756. - exit $exit_status
  15757. -' 0
  15758. -for ac_signal in 1 2 13 15; do
  15759. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  15760. -done
  15761. -ac_signal=0
  15762. +#ifdef __STDC__
  15763. +# include <limits.h>
  15764. +#else
  15765. +# include <assert.h>
  15766. +#endif
  15767. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  15768. -rm -f -r conftest* confdefs.h
  15769. +#undef $2
  15770. -# Predefined preprocessor variables.
  15771. +/* Override any GCC internal prototype to avoid an error.
  15772. + Use char because int might match the return type of a GCC
  15773. + builtin and then its argument prototype would still apply. */
  15774. +#ifdef __cplusplus
  15775. +extern "C"
  15776. +#endif
  15777. +char $2 ();
  15778. +/* The GNU C library defines this for functions which it implements
  15779. + to always fail with ENOSYS. Some functions are actually named
  15780. + something starting with __ and the normal name is an alias. */
  15781. +#if defined __stub_$2 || defined __stub___$2
  15782. +choke me
  15783. +#endif
  15784. -cat >>confdefs.h <<_ACEOF
  15785. -#define PACKAGE_NAME "$PACKAGE_NAME"
  15786. +int
  15787. +main ()
  15788. +{
  15789. +return $2 ();
  15790. + ;
  15791. + return 0;
  15792. +}
  15793. _ACEOF
  15794. +if ac_fn_c_try_link "$LINENO"; then :
  15795. + eval "$3=yes"
  15796. +else
  15797. + eval "$3=no"
  15798. +fi
  15799. +rm -f core conftest.err conftest.$ac_objext \
  15800. + conftest$ac_exeext conftest.$ac_ext
  15801. +fi
  15802. +eval ac_res=\$$3
  15803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15804. +$as_echo "$ac_res" >&6; }
  15805. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15806. +} # ac_fn_c_check_func
  15807. -cat >>confdefs.h <<_ACEOF
  15808. -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  15809. -_ACEOF
  15810. -
  15811. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  15812. +# --------------------------------------------
  15813. +# Tries to find the compile-time value of EXPR in a program that includes
  15814. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  15815. +# computed
  15816. +ac_fn_c_compute_int ()
  15817. +{
  15818. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15819. + if test "$cross_compiling" = yes; then
  15820. + # Depending upon the size, compute the lo and hi bounds.
  15821. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15822. +/* end confdefs.h. */
  15823. +$4
  15824. +int
  15825. +main ()
  15826. +{
  15827. +static int test_array [1 - 2 * !(($2) >= 0)];
  15828. +test_array [0] = 0
  15829. -cat >>confdefs.h <<_ACEOF
  15830. -#define PACKAGE_VERSION "$PACKAGE_VERSION"
  15831. + ;
  15832. + return 0;
  15833. +}
  15834. _ACEOF
  15835. +if ac_fn_c_try_compile "$LINENO"; then :
  15836. + ac_lo=0 ac_mid=0
  15837. + while :; do
  15838. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15839. +/* end confdefs.h. */
  15840. +$4
  15841. +int
  15842. +main ()
  15843. +{
  15844. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  15845. +test_array [0] = 0
  15846. + ;
  15847. + return 0;
  15848. +}
  15849. +_ACEOF
  15850. +if ac_fn_c_try_compile "$LINENO"; then :
  15851. + ac_hi=$ac_mid; break
  15852. +else
  15853. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  15854. + if test $ac_lo -le $ac_mid; then
  15855. + ac_lo= ac_hi=
  15856. + break
  15857. + fi
  15858. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  15859. +fi
  15860. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15861. + done
  15862. +else
  15863. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15864. +/* end confdefs.h. */
  15865. +$4
  15866. +int
  15867. +main ()
  15868. +{
  15869. +static int test_array [1 - 2 * !(($2) < 0)];
  15870. +test_array [0] = 0
  15871. -cat >>confdefs.h <<_ACEOF
  15872. -#define PACKAGE_STRING "$PACKAGE_STRING"
  15873. + ;
  15874. + return 0;
  15875. +}
  15876. _ACEOF
  15877. +if ac_fn_c_try_compile "$LINENO"; then :
  15878. + ac_hi=-1 ac_mid=-1
  15879. + while :; do
  15880. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15881. +/* end confdefs.h. */
  15882. +$4
  15883. +int
  15884. +main ()
  15885. +{
  15886. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  15887. +test_array [0] = 0
  15888. + ;
  15889. + return 0;
  15890. +}
  15891. +_ACEOF
  15892. +if ac_fn_c_try_compile "$LINENO"; then :
  15893. + ac_lo=$ac_mid; break
  15894. +else
  15895. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  15896. + if test $ac_mid -le $ac_hi; then
  15897. + ac_lo= ac_hi=
  15898. + break
  15899. + fi
  15900. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  15901. +fi
  15902. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15903. + done
  15904. +else
  15905. + ac_lo= ac_hi=
  15906. +fi
  15907. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15908. +fi
  15909. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15910. +# Binary search between lo and hi bounds.
  15911. +while test "x$ac_lo" != "x$ac_hi"; do
  15912. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  15913. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15914. +/* end confdefs.h. */
  15915. +$4
  15916. +int
  15917. +main ()
  15918. +{
  15919. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  15920. +test_array [0] = 0
  15921. -cat >>confdefs.h <<_ACEOF
  15922. -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  15923. + ;
  15924. + return 0;
  15925. +}
  15926. _ACEOF
  15927. +if ac_fn_c_try_compile "$LINENO"; then :
  15928. + ac_hi=$ac_mid
  15929. +else
  15930. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  15931. +fi
  15932. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15933. +done
  15934. +case $ac_lo in #((
  15935. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  15936. +'') ac_retval=1 ;;
  15937. +esac
  15938. + else
  15939. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15940. +/* end confdefs.h. */
  15941. +$4
  15942. +static long int longval () { return $2; }
  15943. +static unsigned long int ulongval () { return $2; }
  15944. +#include <stdio.h>
  15945. +#include <stdlib.h>
  15946. +int
  15947. +main ()
  15948. +{
  15949. + FILE *f = fopen ("conftest.val", "w");
  15950. + if (! f)
  15951. + return 1;
  15952. + if (($2) < 0)
  15953. + {
  15954. + long int i = longval ();
  15955. + if (i != ($2))
  15956. + return 1;
  15957. + fprintf (f, "%ld", i);
  15958. + }
  15959. + else
  15960. + {
  15961. + unsigned long int i = ulongval ();
  15962. + if (i != ($2))
  15963. + return 1;
  15964. + fprintf (f, "%lu", i);
  15965. + }
  15966. + /* Do not output a trailing newline, as this causes \r\n confusion
  15967. + on some platforms. */
  15968. + return ferror (f) || fclose (f) != 0;
  15969. -# Let the site file select an alternate cache file if it wants to.
  15970. -# Prefer an explicitly selected file to automatically selected ones.
  15971. -ac_site_file1=NONE
  15972. -ac_site_file2=NONE
  15973. -if test -n "$CONFIG_SITE"; then
  15974. - ac_site_file1=$CONFIG_SITE
  15975. -elif test "x$prefix" != xNONE; then
  15976. - ac_site_file1=$prefix/share/config.site
  15977. - ac_site_file2=$prefix/etc/config.site
  15978. + ;
  15979. + return 0;
  15980. +}
  15981. +_ACEOF
  15982. +if ac_fn_c_try_run "$LINENO"; then :
  15983. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  15984. else
  15985. - ac_site_file1=$ac_default_prefix/share/config.site
  15986. - ac_site_file2=$ac_default_prefix/etc/config.site
  15987. + ac_retval=1
  15988. fi
  15989. -for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  15990. -do
  15991. - test "x$ac_site_file" = xNONE && continue
  15992. - if test -r "$ac_site_file"; then
  15993. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  15994. -$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  15995. - sed 's/^/| /' "$ac_site_file" >&5
  15996. - . "$ac_site_file"
  15997. - fi
  15998. -done
  15999. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16000. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  16001. +rm -f conftest.val
  16002. -if test -r "$cache_file"; then
  16003. - # Some versions of bash will fail to source /dev/null (special
  16004. - # files actually), so we avoid doing that.
  16005. - if test -f "$cache_file"; then
  16006. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  16007. -$as_echo "$as_me: loading cache $cache_file" >&6;}
  16008. - case $cache_file in
  16009. - [\\/]* | ?:[\\/]* ) . "$cache_file";;
  16010. - *) . "./$cache_file";;
  16011. - esac
  16012. fi
  16013. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16014. + return $ac_retval
  16015. +
  16016. +} # ac_fn_c_compute_int
  16017. +
  16018. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  16019. +# -------------------------------------------
  16020. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  16021. +# variable VAR accordingly.
  16022. +ac_fn_c_check_type ()
  16023. +{
  16024. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16025. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16026. +$as_echo_n "checking for $2... " >&6; }
  16027. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16028. + $as_echo_n "(cached) " >&6
  16029. else
  16030. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  16031. -$as_echo "$as_me: creating cache $cache_file" >&6;}
  16032. - >$cache_file
  16033. + eval "$3=no"
  16034. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16035. +/* end confdefs.h. */
  16036. +$4
  16037. +int
  16038. +main ()
  16039. +{
  16040. +if (sizeof ($2))
  16041. + return 0;
  16042. + ;
  16043. + return 0;
  16044. +}
  16045. +_ACEOF
  16046. +if ac_fn_c_try_compile "$LINENO"; then :
  16047. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16048. +/* end confdefs.h. */
  16049. +$4
  16050. +int
  16051. +main ()
  16052. +{
  16053. +if (sizeof (($2)))
  16054. + return 0;
  16055. + ;
  16056. + return 0;
  16057. +}
  16058. +_ACEOF
  16059. +if ac_fn_c_try_compile "$LINENO"; then :
  16060. +
  16061. +else
  16062. + eval "$3=yes"
  16063. +fi
  16064. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16065. +fi
  16066. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16067. fi
  16068. +eval ac_res=\$$3
  16069. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16070. +$as_echo "$ac_res" >&6; }
  16071. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16072. -gt_needs="$gt_needs need-ngettext"
  16073. -# Check that the precious variables saved in the cache have kept the same
  16074. -# value.
  16075. -ac_cache_corrupted=false
  16076. -for ac_var in $ac_precious_vars; do
  16077. - eval ac_old_set=\$ac_cv_env_${ac_var}_set
  16078. - eval ac_new_set=\$ac_env_${ac_var}_set
  16079. - eval ac_old_val=\$ac_cv_env_${ac_var}_value
  16080. - eval ac_new_val=\$ac_env_${ac_var}_value
  16081. - case $ac_old_set,$ac_new_set in
  16082. - set,)
  16083. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16084. -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16085. - ac_cache_corrupted=: ;;
  16086. - ,set)
  16087. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  16088. -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16089. - ac_cache_corrupted=: ;;
  16090. - ,);;
  16091. - *)
  16092. - if test "x$ac_old_val" != "x$ac_new_val"; then
  16093. - # differences in whitespace do not lead to failure.
  16094. - ac_old_val_w=`echo x $ac_old_val`
  16095. - ac_new_val_w=`echo x $ac_new_val`
  16096. - if test "$ac_old_val_w" != "$ac_new_val_w"; then
  16097. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  16098. -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16099. - ac_cache_corrupted=:
  16100. - else
  16101. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  16102. -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  16103. - eval $ac_var=\$ac_old_val
  16104. - fi
  16105. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  16106. -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  16107. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  16108. -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  16109. - fi;;
  16110. - esac
  16111. - # Pass precious variables to config.status.
  16112. - if test "$ac_new_set" = set; then
  16113. - case $ac_new_val in
  16114. - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16115. - *) ac_arg=$ac_var=$ac_new_val ;;
  16116. - esac
  16117. - case " $ac_configure_args " in
  16118. - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  16119. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  16120. - esac
  16121. - fi
  16122. -done
  16123. -if $ac_cache_corrupted; then
  16124. - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16125. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16126. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  16127. -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16128. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  16129. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  16130. - { (exit 1); exit 1; }; }
  16131. -fi
  16132. +} # ac_fn_c_check_type
  16133. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  16134. +# ----------------------------------------------------
  16135. +# Tries to find if the field MEMBER exists in type AGGR, after including
  16136. +# INCLUDES, setting cache variable VAR accordingly.
  16137. +ac_fn_c_check_member ()
  16138. +{
  16139. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16140. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  16141. +$as_echo_n "checking for $2.$3... " >&6; }
  16142. +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  16143. + $as_echo_n "(cached) " >&6
  16144. +else
  16145. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. +/* end confdefs.h. */
  16147. +$5
  16148. +int
  16149. +main ()
  16150. +{
  16151. +static $2 ac_aggr;
  16152. +if (ac_aggr.$3)
  16153. +return 0;
  16154. + ;
  16155. + return 0;
  16156. +}
  16157. +_ACEOF
  16158. +if ac_fn_c_try_compile "$LINENO"; then :
  16159. + eval "$4=yes"
  16160. +else
  16161. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16162. +/* end confdefs.h. */
  16163. +$5
  16164. +int
  16165. +main ()
  16166. +{
  16167. +static $2 ac_aggr;
  16168. +if (sizeof ac_aggr.$3)
  16169. +return 0;
  16170. + ;
  16171. + return 0;
  16172. +}
  16173. +_ACEOF
  16174. +if ac_fn_c_try_compile "$LINENO"; then :
  16175. + eval "$4=yes"
  16176. +else
  16177. + eval "$4=no"
  16178. +fi
  16179. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16180. +fi
  16181. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16182. +fi
  16183. +eval ac_res=\$$4
  16184. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16185. +$as_echo "$ac_res" >&6; }
  16186. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16187. +} # ac_fn_c_check_member
  16188. +# ac_fn_c_check_decl LINENO SYMBOL VAR
  16189. +# ------------------------------------
  16190. +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  16191. +ac_fn_c_check_decl ()
  16192. +{
  16193. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16194. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  16195. +$as_echo_n "checking whether $2 is declared... " >&6; }
  16196. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16197. + $as_echo_n "(cached) " >&6
  16198. +else
  16199. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. +/* end confdefs.h. */
  16201. +$4
  16202. +int
  16203. +main ()
  16204. +{
  16205. +#ifndef $2
  16206. + (void) $2;
  16207. +#endif
  16208. + ;
  16209. + return 0;
  16210. +}
  16211. +_ACEOF
  16212. +if ac_fn_c_try_compile "$LINENO"; then :
  16213. + eval "$3=yes"
  16214. +else
  16215. + eval "$3=no"
  16216. +fi
  16217. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16218. +fi
  16219. +eval ac_res=\$$3
  16220. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16221. +$as_echo "$ac_res" >&6; }
  16222. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16223. +} # ac_fn_c_check_decl
  16224. +cat >config.log <<_ACEOF
  16225. +This file contains any messages produced by compilers while
  16226. +running configure, to aid debugging if configure makes a mistake.
  16227. +It was created by guile $as_me 1.8.7, which was
  16228. +generated by GNU Autoconf 2.64. Invocation command line was
  16229. + $ $0 $@
  16230. +_ACEOF
  16231. +exec 5>>config.log
  16232. +{
  16233. +cat <<_ASUNAME
  16234. +## --------- ##
  16235. +## Platform. ##
  16236. +## --------- ##
  16237. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16238. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16239. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16240. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16241. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16242. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16243. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  16244. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16245. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16246. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16247. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16248. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16249. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  16250. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  16251. +_ASUNAME
  16252. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16253. +for as_dir in $PATH
  16254. +do
  16255. + IFS=$as_save_IFS
  16256. + test -z "$as_dir" && as_dir=.
  16257. + $as_echo "PATH: $as_dir"
  16258. + done
  16259. +IFS=$as_save_IFS
  16260. +} >&5
  16261. +cat >&5 <<_ACEOF
  16262. +## ----------- ##
  16263. +## Core tests. ##
  16264. +## ----------- ##
  16265. +_ACEOF
  16266. +# Keep a trace of the command line.
  16267. +# Strip out --no-create and --no-recursion so they do not pile up.
  16268. +# Strip out --silent because we don't want to record it for future runs.
  16269. +# Also quote any args containing shell meta-characters.
  16270. +# Make two passes to allow for proper duplicate-argument suppression.
  16271. +ac_configure_args=
  16272. +ac_configure_args0=
  16273. +ac_configure_args1=
  16274. +ac_must_keep_next=false
  16275. +for ac_pass in 1 2
  16276. +do
  16277. + for ac_arg
  16278. + do
  16279. + case $ac_arg in
  16280. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  16281. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16282. + | -silent | --silent | --silen | --sile | --sil)
  16283. + continue ;;
  16284. + *\'*)
  16285. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16286. + esac
  16287. + case $ac_pass in
  16288. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  16289. + 2)
  16290. + as_fn_append ac_configure_args1 " '$ac_arg'"
  16291. + if test $ac_must_keep_next = true; then
  16292. + ac_must_keep_next=false # Got value, back to normal.
  16293. + else
  16294. + case $ac_arg in
  16295. + *=* | --config-cache | -C | -disable-* | --disable-* \
  16296. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  16297. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  16298. + | -with-* | --with-* | -without-* | --without-* | --x)
  16299. + case "$ac_configure_args0 " in
  16300. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  16301. + esac
  16302. + ;;
  16303. + -* ) ac_must_keep_next=true ;;
  16304. + esac
  16305. + fi
  16306. + as_fn_append ac_configure_args " '$ac_arg'"
  16307. + ;;
  16308. + esac
  16309. + done
  16310. +done
  16311. +{ ac_configure_args0=; unset ac_configure_args0;}
  16312. +{ ac_configure_args1=; unset ac_configure_args1;}
  16313. +# When interrupted or exit'd, cleanup temporary files, and complete
  16314. +# config.log. We remove comments because anyway the quotes in there
  16315. +# would cause problems or look ugly.
  16316. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  16317. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  16318. +trap 'exit_status=$?
  16319. + # Save into config.log some information that might help in debugging.
  16320. + {
  16321. + echo
  16322. + cat <<\_ASBOX
  16323. +## ---------------- ##
  16324. +## Cache variables. ##
  16325. +## ---------------- ##
  16326. +_ASBOX
  16327. + echo
  16328. + # The following way of writing the cache mishandles newlines in values,
  16329. +(
  16330. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  16331. + eval ac_val=\$$ac_var
  16332. + case $ac_val in #(
  16333. + *${as_nl}*)
  16334. + case $ac_var in #(
  16335. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16336. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16337. + esac
  16338. + case $ac_var in #(
  16339. + _ | IFS | as_nl) ;; #(
  16340. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16341. + *) { eval $ac_var=; unset $ac_var;} ;;
  16342. + esac ;;
  16343. + esac
  16344. + done
  16345. + (set) 2>&1 |
  16346. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  16347. + *${as_nl}ac_space=\ *)
  16348. + sed -n \
  16349. + "s/'\''/'\''\\\\'\'''\''/g;
  16350. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  16351. + ;; #(
  16352. + *)
  16353. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16354. + ;;
  16355. + esac |
  16356. + sort
  16357. +)
  16358. + echo
  16359. + cat <<\_ASBOX
  16360. +## ----------------- ##
  16361. +## Output variables. ##
  16362. +## ----------------- ##
  16363. +_ASBOX
  16364. + echo
  16365. + for ac_var in $ac_subst_vars
  16366. + do
  16367. + eval ac_val=\$$ac_var
  16368. + case $ac_val in
  16369. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16370. + esac
  16371. + $as_echo "$ac_var='\''$ac_val'\''"
  16372. + done | sort
  16373. + echo
  16374. + if test -n "$ac_subst_files"; then
  16375. + cat <<\_ASBOX
  16376. +## ------------------- ##
  16377. +## File substitutions. ##
  16378. +## ------------------- ##
  16379. +_ASBOX
  16380. + echo
  16381. + for ac_var in $ac_subst_files
  16382. + do
  16383. + eval ac_val=\$$ac_var
  16384. + case $ac_val in
  16385. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16386. + esac
  16387. + $as_echo "$ac_var='\''$ac_val'\''"
  16388. + done | sort
  16389. + echo
  16390. + fi
  16391. -ac_ext=c
  16392. -ac_cpp='$CPP $CPPFLAGS'
  16393. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16394. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16395. + if test -s confdefs.h; then
  16396. + cat <<\_ASBOX
  16397. +## ----------- ##
  16398. +## confdefs.h. ##
  16399. +## ----------- ##
  16400. +_ASBOX
  16401. + echo
  16402. + cat confdefs.h
  16403. + echo
  16404. + fi
  16405. + test "$ac_signal" != 0 &&
  16406. + $as_echo "$as_me: caught signal $ac_signal"
  16407. + $as_echo "$as_me: exit $exit_status"
  16408. + } >&5
  16409. + rm -f core *.core core.conftest.* &&
  16410. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  16411. + exit $exit_status
  16412. +' 0
  16413. +for ac_signal in 1 2 13 15; do
  16414. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  16415. +done
  16416. +ac_signal=0
  16417. +
  16418. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  16419. +rm -f -r conftest* confdefs.h
  16420. +
  16421. +$as_echo "/* confdefs.h */" > confdefs.h
  16422. +
  16423. +# Predefined preprocessor variables.
  16424. +
  16425. +cat >>confdefs.h <<_ACEOF
  16426. +#define PACKAGE_NAME "$PACKAGE_NAME"
  16427. +_ACEOF
  16428. +
  16429. +cat >>confdefs.h <<_ACEOF
  16430. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  16431. +_ACEOF
  16432. +
  16433. +cat >>confdefs.h <<_ACEOF
  16434. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  16435. +_ACEOF
  16436. +
  16437. +cat >>confdefs.h <<_ACEOF
  16438. +#define PACKAGE_STRING "$PACKAGE_STRING"
  16439. +_ACEOF
  16440. +
  16441. +cat >>confdefs.h <<_ACEOF
  16442. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  16443. +_ACEOF
  16444. +
  16445. +cat >>confdefs.h <<_ACEOF
  16446. +#define PACKAGE_URL "$PACKAGE_URL"
  16447. +_ACEOF
  16448. +
  16449. +
  16450. +# Let the site file select an alternate cache file if it wants to.
  16451. +# Prefer an explicitly selected file to automatically selected ones.
  16452. +ac_site_file1=NONE
  16453. +ac_site_file2=NONE
  16454. +if test -n "$CONFIG_SITE"; then
  16455. + ac_site_file1=$CONFIG_SITE
  16456. +elif test "x$prefix" != xNONE; then
  16457. + ac_site_file1=$prefix/share/config.site
  16458. + ac_site_file2=$prefix/etc/config.site
  16459. +else
  16460. + ac_site_file1=$ac_default_prefix/share/config.site
  16461. + ac_site_file2=$ac_default_prefix/etc/config.site
  16462. +fi
  16463. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  16464. +do
  16465. + test "x$ac_site_file" = xNONE && continue
  16466. + if test -r "$ac_site_file"; then
  16467. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  16468. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  16469. + sed 's/^/| /' "$ac_site_file" >&5
  16470. + . "$ac_site_file"
  16471. + fi
  16472. +done
  16473. +
  16474. +if test -r "$cache_file"; then
  16475. + # Some versions of bash will fail to source /dev/null (special
  16476. + # files actually), so we avoid doing that.
  16477. + if test -f "$cache_file"; then
  16478. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  16479. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  16480. + case $cache_file in
  16481. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  16482. + *) . "./$cache_file";;
  16483. + esac
  16484. + fi
  16485. +else
  16486. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  16487. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  16488. + >$cache_file
  16489. +fi
  16490. +
  16491. +gt_needs="$gt_needs need-ngettext"
  16492. +# Check that the precious variables saved in the cache have kept the same
  16493. +# value.
  16494. +ac_cache_corrupted=false
  16495. +for ac_var in $ac_precious_vars; do
  16496. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  16497. + eval ac_new_set=\$ac_env_${ac_var}_set
  16498. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  16499. + eval ac_new_val=\$ac_env_${ac_var}_value
  16500. + case $ac_old_set,$ac_new_set in
  16501. + set,)
  16502. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16503. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16504. + ac_cache_corrupted=: ;;
  16505. + ,set)
  16506. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  16507. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16508. + ac_cache_corrupted=: ;;
  16509. + ,);;
  16510. + *)
  16511. + if test "x$ac_old_val" != "x$ac_new_val"; then
  16512. + # differences in whitespace do not lead to failure.
  16513. + ac_old_val_w=`echo x $ac_old_val`
  16514. + ac_new_val_w=`echo x $ac_new_val`
  16515. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  16516. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  16517. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16518. + ac_cache_corrupted=:
  16519. + else
  16520. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  16521. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  16522. + eval $ac_var=\$ac_old_val
  16523. + fi
  16524. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  16525. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  16526. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  16527. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  16528. + fi;;
  16529. + esac
  16530. + # Pass precious variables to config.status.
  16531. + if test "$ac_new_set" = set; then
  16532. + case $ac_new_val in
  16533. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16534. + *) ac_arg=$ac_var=$ac_new_val ;;
  16535. + esac
  16536. + case " $ac_configure_args " in
  16537. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  16538. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  16539. + esac
  16540. + fi
  16541. +done
  16542. +if $ac_cache_corrupted; then
  16543. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16544. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16545. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  16546. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16547. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  16548. +fi
  16549. +## -------------------- ##
  16550. +## Main body of script. ##
  16551. +## -------------------- ##
  16552. +
  16553. +ac_ext=c
  16554. +ac_cpp='$CPP $CPPFLAGS'
  16555. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16556. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16558. ac_aux_dir=
  16559. for ac_dir in build-aux "$srcdir"/build-aux; do
  16560. - if test -f "$ac_dir/install-sh"; then
  16561. - ac_aux_dir=$ac_dir
  16562. - ac_install_sh="$ac_aux_dir/install-sh -c"
  16563. - break
  16564. - elif test -f "$ac_dir/install.sh"; then
  16565. - ac_aux_dir=$ac_dir
  16566. - ac_install_sh="$ac_aux_dir/install.sh -c"
  16567. - break
  16568. - elif test -f "$ac_dir/shtool"; then
  16569. - ac_aux_dir=$ac_dir
  16570. - ac_install_sh="$ac_aux_dir/shtool install -c"
  16571. - break
  16572. - fi
  16573. + for ac_t in install-sh install.sh shtool; do
  16574. + if test -f "$ac_dir/$ac_t"; then
  16575. + ac_aux_dir=$ac_dir
  16576. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  16577. + break 2
  16578. + fi
  16579. + done
  16580. done
  16581. if test -z "$ac_aux_dir"; then
  16582. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  16583. -$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  16584. - { (exit 1); exit 1; }; }
  16585. + as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  16586. fi
  16587. # These three variables are undocumented and unsupported,
  16588. @@ -2269,10 +2869,10 @@
  16589. # OS/2's system install, which has a completely different semantic
  16590. # ./install, which can be erroneously created by make from ./install.sh.
  16591. # Reject install programs that cannot install multiple files.
  16592. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  16594. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  16595. if test -z "$INSTALL"; then
  16596. -if test "${ac_cv_path_install+set}" = set; then
  16597. +if test "${ac_cv_path_install+set}" = set; then :
  16598. $as_echo_n "(cached) " >&6
  16599. else
  16600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16601. @@ -2280,11 +2880,11 @@
  16602. do
  16603. IFS=$as_save_IFS
  16604. test -z "$as_dir" && as_dir=.
  16605. - # Account for people who put trailing slashes in PATH elements.
  16606. -case $as_dir/ in
  16607. - ./ | .// | /cC/* | \
  16608. + # Account for people who put trailing slashes in PATH elements.
  16609. +case $as_dir/ in #((
  16610. + ./ | .// | /[cC]/* | \
  16611. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16612. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16613. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  16614. /usr/ucb/* ) ;;
  16615. *)
  16616. # OSF1 and SCO ODT 3.0 have their own names for install.
  16617. @@ -2321,7 +2921,7 @@
  16618. ;;
  16619. esac
  16620. -done
  16621. + done
  16622. IFS=$as_save_IFS
  16623. rm -rf conftest.one conftest.two conftest.dir
  16624. @@ -2337,7 +2937,7 @@
  16625. INSTALL=$ac_install_sh
  16626. fi
  16627. fi
  16628. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  16629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  16630. $as_echo "$INSTALL" >&6; }
  16631. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16632. @@ -2348,7 +2948,7 @@
  16633. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16634. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  16636. $as_echo_n "checking whether build environment is sane... " >&6; }
  16637. # Just in case
  16638. sleep 1
  16639. @@ -2359,15 +2959,11 @@
  16640. '
  16641. case `pwd` in
  16642. *[\\\"\#\$\&\'\`$am_lf]*)
  16643. - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  16644. -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  16645. - { (exit 1); exit 1; }; };;
  16646. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  16647. esac
  16648. case $srcdir in
  16649. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  16650. - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  16651. -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  16652. - { (exit 1); exit 1; }; };;
  16653. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  16654. esac
  16655. # Do `set' in a subshell so we don't clobber the current shell's
  16656. @@ -2389,11 +2985,8 @@
  16657. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16658. # broken ls alias from the environment. This has actually
  16659. # happened. Such a system could not be considered "sane".
  16660. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16661. -alias in your environment" >&5
  16662. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16663. -alias in your environment" >&2;}
  16664. - { (exit 1); exit 1; }; }
  16665. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  16666. +alias in your environment" "$LINENO" 5
  16667. fi
  16668. test "$2" = conftest.file
  16669. @@ -2402,13 +2995,10 @@
  16670. # Ok.
  16671. :
  16672. else
  16673. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16674. -Check your system clock" >&5
  16675. -$as_echo "$as_me: error: newly created file is older than distributed files!
  16676. -Check your system clock" >&2;}
  16677. - { (exit 1); exit 1; }; }
  16678. + as_fn_error "newly created file is older than distributed files!
  16679. +Check your system clock" "$LINENO" 5
  16680. fi
  16681. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  16682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16683. $as_echo "yes" >&6; }
  16684. test "$program_prefix" != NONE &&
  16685. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  16686. @@ -2436,7 +3026,7 @@
  16687. am_missing_run="$MISSING --run "
  16688. else
  16689. am_missing_run=
  16690. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16691. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  16692. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16693. fi
  16694. @@ -2457,9 +3047,9 @@
  16695. if test -n "$ac_tool_prefix"; then
  16696. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16697. set dummy ${ac_tool_prefix}strip; ac_word=$2
  16698. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16700. $as_echo_n "checking for $ac_word... " >&6; }
  16701. -if test "${ac_cv_prog_STRIP+set}" = set; then
  16702. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  16703. $as_echo_n "(cached) " >&6
  16704. else
  16705. if test -n "$STRIP"; then
  16706. @@ -2470,24 +3060,24 @@
  16707. do
  16708. IFS=$as_save_IFS
  16709. test -z "$as_dir" && as_dir=.
  16710. - for ac_exec_ext in '' $ac_executable_extensions; do
  16711. + for ac_exec_ext in '' $ac_executable_extensions; do
  16712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16713. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16714. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16715. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16716. break 2
  16717. fi
  16718. done
  16719. -done
  16720. + done
  16721. IFS=$as_save_IFS
  16722. fi
  16723. fi
  16724. STRIP=$ac_cv_prog_STRIP
  16725. if test -n "$STRIP"; then
  16726. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  16727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  16728. $as_echo "$STRIP" >&6; }
  16729. else
  16730. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16731. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16732. $as_echo "no" >&6; }
  16733. fi
  16734. @@ -2497,9 +3087,9 @@
  16735. ac_ct_STRIP=$STRIP
  16736. # Extract the first word of "strip", so it can be a program name with args.
  16737. set dummy strip; ac_word=$2
  16738. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16740. $as_echo_n "checking for $ac_word... " >&6; }
  16741. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16742. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  16743. $as_echo_n "(cached) " >&6
  16744. else
  16745. if test -n "$ac_ct_STRIP"; then
  16746. @@ -2510,24 +3100,24 @@
  16747. do
  16748. IFS=$as_save_IFS
  16749. test -z "$as_dir" && as_dir=.
  16750. - for ac_exec_ext in '' $ac_executable_extensions; do
  16751. + for ac_exec_ext in '' $ac_executable_extensions; do
  16752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16753. ac_cv_prog_ac_ct_STRIP="strip"
  16754. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16755. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16756. break 2
  16757. fi
  16758. done
  16759. -done
  16760. + done
  16761. IFS=$as_save_IFS
  16762. fi
  16763. fi
  16764. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16765. if test -n "$ac_ct_STRIP"; then
  16766. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  16767. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  16768. $as_echo "$ac_ct_STRIP" >&6; }
  16769. else
  16770. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16771. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16772. $as_echo "no" >&6; }
  16773. fi
  16774. @@ -2536,7 +3126,7 @@
  16775. else
  16776. case $cross_compiling:$ac_tool_warned in
  16777. yes:)
  16778. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16781. ac_tool_warned=yes ;;
  16782. esac
  16783. @@ -2549,10 +3139,10 @@
  16784. fi
  16785. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  16786. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  16787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  16788. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  16789. if test -z "$MKDIR_P"; then
  16790. - if test "${ac_cv_path_mkdir+set}" = set; then
  16791. + if test "${ac_cv_path_mkdir+set}" = set; then :
  16792. $as_echo_n "(cached) " >&6
  16793. else
  16794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16795. @@ -2560,7 +3150,7 @@
  16796. do
  16797. IFS=$as_save_IFS
  16798. test -z "$as_dir" && as_dir=.
  16799. - for ac_prog in mkdir gmkdir; do
  16800. + for ac_prog in mkdir gmkdir; do
  16801. for ac_exec_ext in '' $ac_executable_extensions; do
  16802. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  16803. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  16804. @@ -2572,7 +3162,7 @@
  16805. esac
  16806. done
  16807. done
  16808. -done
  16809. + done
  16810. IFS=$as_save_IFS
  16811. fi
  16812. @@ -2588,7 +3178,7 @@
  16813. MKDIR_P="$ac_install_sh -d"
  16814. fi
  16815. fi
  16816. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  16817. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  16818. $as_echo "$MKDIR_P" >&6; }
  16819. mkdir_p="$MKDIR_P"
  16820. @@ -2601,9 +3191,9 @@
  16821. do
  16822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16823. set dummy $ac_prog; ac_word=$2
  16824. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16825. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16826. $as_echo_n "checking for $ac_word... " >&6; }
  16827. -if test "${ac_cv_prog_AWK+set}" = set; then
  16828. +if test "${ac_cv_prog_AWK+set}" = set; then :
  16829. $as_echo_n "(cached) " >&6
  16830. else
  16831. if test -n "$AWK"; then
  16832. @@ -2614,24 +3204,24 @@
  16833. do
  16834. IFS=$as_save_IFS
  16835. test -z "$as_dir" && as_dir=.
  16836. - for ac_exec_ext in '' $ac_executable_extensions; do
  16837. + for ac_exec_ext in '' $ac_executable_extensions; do
  16838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16839. ac_cv_prog_AWK="$ac_prog"
  16840. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16841. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16842. break 2
  16843. fi
  16844. done
  16845. -done
  16846. + done
  16847. IFS=$as_save_IFS
  16848. fi
  16849. fi
  16850. AWK=$ac_cv_prog_AWK
  16851. if test -n "$AWK"; then
  16852. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  16853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  16854. $as_echo "$AWK" >&6; }
  16855. else
  16856. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16857. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16858. $as_echo "no" >&6; }
  16859. fi
  16860. @@ -2639,11 +3229,11 @@
  16861. test -n "$AWK" && break
  16862. done
  16863. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16865. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  16866. set x ${MAKE-make}
  16867. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  16868. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  16869. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  16870. $as_echo_n "(cached) " >&6
  16871. else
  16872. cat >conftest.make <<\_ACEOF
  16873. @@ -2661,11 +3251,11 @@
  16874. rm -f conftest.make
  16875. fi
  16876. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  16877. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  16878. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16879. $as_echo "yes" >&6; }
  16880. SET_MAKE=
  16881. else
  16882. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16883. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16884. $as_echo "no" >&6; }
  16885. SET_MAKE="MAKE=${MAKE-make}"
  16886. fi
  16887. @@ -2685,9 +3275,7 @@
  16888. am__isrc=' -I$(srcdir)'
  16889. # test to see if srcdir already configured
  16890. if test -f $srcdir/config.status; then
  16891. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  16892. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  16893. - { (exit 1); exit 1; }; }
  16894. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  16895. fi
  16896. fi
  16897. @@ -2744,7 +3332,6 @@
  16898. -
  16899. #--------------------------------------------------------------------
  16900. #
  16901. # Independent Subdirectories
  16902. @@ -2767,35 +3354,27 @@
  16903. # Make sure we can run config.sub.
  16904. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  16905. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  16906. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  16907. - { (exit 1); exit 1; }; }
  16908. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  16909. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  16910. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  16911. $as_echo_n "checking build system type... " >&6; }
  16912. -if test "${ac_cv_build+set}" = set; then
  16913. +if test "${ac_cv_build+set}" = set; then :
  16914. $as_echo_n "(cached) " >&6
  16915. else
  16916. ac_build_alias=$build_alias
  16917. test "x$ac_build_alias" = x &&
  16918. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  16919. test "x$ac_build_alias" = x &&
  16920. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  16921. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  16922. - { (exit 1); exit 1; }; }
  16923. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  16924. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  16925. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  16926. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  16927. - { (exit 1); exit 1; }; }
  16928. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  16929. fi
  16930. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  16931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  16932. $as_echo "$ac_cv_build" >&6; }
  16933. case $ac_cv_build in
  16934. *-*-*) ;;
  16935. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  16936. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  16937. - { (exit 1); exit 1; }; };;
  16938. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  16939. esac
  16940. build=$ac_cv_build
  16941. ac_save_IFS=$IFS; IFS='-'
  16942. @@ -2811,28 +3390,24 @@
  16943. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  16944. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  16945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  16946. $as_echo_n "checking host system type... " >&6; }
  16947. -if test "${ac_cv_host+set}" = set; then
  16948. +if test "${ac_cv_host+set}" = set; then :
  16949. $as_echo_n "(cached) " >&6
  16950. else
  16951. if test "x$host_alias" = x; then
  16952. ac_cv_host=$ac_cv_build
  16953. else
  16954. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  16955. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  16956. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  16957. - { (exit 1); exit 1; }; }
  16958. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  16959. fi
  16960. fi
  16961. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  16962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  16963. $as_echo "$ac_cv_host" >&6; }
  16964. case $ac_cv_host in
  16965. *-*-*) ;;
  16966. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  16967. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  16968. - { (exit 1); exit 1; }; };;
  16969. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  16970. esac
  16971. host=$ac_cv_host
  16972. ac_save_IFS=$IFS; IFS='-'
  16973. @@ -2856,18 +3431,18 @@
  16974. if test -z "$AB_PACKAGE"; then
  16975. AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
  16976. fi
  16977. - { $as_echo "$as_me:$LINENO: autobuild project... $AB_PACKAGE" >&5
  16978. + { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
  16979. $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
  16980. if test -z "$AB_VERSION"; then
  16981. AB_VERSION=${PACKAGE_VERSION:-$VERSION}
  16982. fi
  16983. - { $as_echo "$as_me:$LINENO: autobuild revision... $AB_VERSION" >&5
  16984. + { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
  16985. $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
  16986. hostname=`hostname`
  16987. if test "$hostname"; then
  16988. - { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
  16989. + { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
  16990. $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
  16991. fi
  16992. @@ -2878,7 +3453,7 @@
  16993. date=`date`
  16994. fi
  16995. if test "$date"; then
  16996. - { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
  16997. + { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
  16998. $as_echo "$as_me: autobuild timestamp... $date" >&6;}
  16999. fi
  17000. @@ -2890,9 +3465,9 @@
  17001. if test -n "$ac_tool_prefix"; then
  17002. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  17003. set dummy ${ac_tool_prefix}as; ac_word=$2
  17004. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17006. $as_echo_n "checking for $ac_word... " >&6; }
  17007. -if test "${ac_cv_prog_AS+set}" = set; then
  17008. +if test "${ac_cv_prog_AS+set}" = set; then :
  17009. $as_echo_n "(cached) " >&6
  17010. else
  17011. if test -n "$AS"; then
  17012. @@ -2903,24 +3478,24 @@
  17013. do
  17014. IFS=$as_save_IFS
  17015. test -z "$as_dir" && as_dir=.
  17016. - for ac_exec_ext in '' $ac_executable_extensions; do
  17017. + for ac_exec_ext in '' $ac_executable_extensions; do
  17018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17019. ac_cv_prog_AS="${ac_tool_prefix}as"
  17020. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17021. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17022. break 2
  17023. fi
  17024. done
  17025. -done
  17026. + done
  17027. IFS=$as_save_IFS
  17028. fi
  17029. fi
  17030. AS=$ac_cv_prog_AS
  17031. if test -n "$AS"; then
  17032. - { $as_echo "$as_me:$LINENO: result: $AS" >&5
  17033. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  17034. $as_echo "$AS" >&6; }
  17035. else
  17036. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17037. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17038. $as_echo "no" >&6; }
  17039. fi
  17040. @@ -2930,9 +3505,9 @@
  17041. ac_ct_AS=$AS
  17042. # Extract the first word of "as", so it can be a program name with args.
  17043. set dummy as; ac_word=$2
  17044. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17046. $as_echo_n "checking for $ac_word... " >&6; }
  17047. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  17048. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  17049. $as_echo_n "(cached) " >&6
  17050. else
  17051. if test -n "$ac_ct_AS"; then
  17052. @@ -2943,24 +3518,24 @@
  17053. do
  17054. IFS=$as_save_IFS
  17055. test -z "$as_dir" && as_dir=.
  17056. - for ac_exec_ext in '' $ac_executable_extensions; do
  17057. + for ac_exec_ext in '' $ac_executable_extensions; do
  17058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17059. ac_cv_prog_ac_ct_AS="as"
  17060. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17061. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17062. break 2
  17063. fi
  17064. done
  17065. -done
  17066. + done
  17067. IFS=$as_save_IFS
  17068. fi
  17069. fi
  17070. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  17071. if test -n "$ac_ct_AS"; then
  17072. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  17073. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  17074. $as_echo "$ac_ct_AS" >&6; }
  17075. else
  17076. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17077. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17078. $as_echo "no" >&6; }
  17079. fi
  17080. @@ -2969,7 +3544,7 @@
  17081. else
  17082. case $cross_compiling:$ac_tool_warned in
  17083. yes:)
  17084. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  17085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17086. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17087. ac_tool_warned=yes ;;
  17088. esac
  17089. @@ -2982,9 +3557,9 @@
  17090. if test -n "$ac_tool_prefix"; then
  17091. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  17092. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  17093. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17095. $as_echo_n "checking for $ac_word... " >&6; }
  17096. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  17097. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  17098. $as_echo_n "(cached) " >&6
  17099. else
  17100. if test -n "$DLLTOOL"; then
  17101. @@ -2995,24 +3570,24 @@
  17102. do
  17103. IFS=$as_save_IFS
  17104. test -z "$as_dir" && as_dir=.
  17105. - for ac_exec_ext in '' $ac_executable_extensions; do
  17106. + for ac_exec_ext in '' $ac_executable_extensions; do
  17107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17108. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  17109. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17110. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17111. break 2
  17112. fi
  17113. done
  17114. -done
  17115. + done
  17116. IFS=$as_save_IFS
  17117. fi
  17118. fi
  17119. DLLTOOL=$ac_cv_prog_DLLTOOL
  17120. if test -n "$DLLTOOL"; then
  17121. - { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  17122. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  17123. $as_echo "$DLLTOOL" >&6; }
  17124. else
  17125. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17126. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17127. $as_echo "no" >&6; }
  17128. fi
  17129. @@ -3022,9 +3597,9 @@
  17130. ac_ct_DLLTOOL=$DLLTOOL
  17131. # Extract the first word of "dlltool", so it can be a program name with args.
  17132. set dummy dlltool; ac_word=$2
  17133. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17134. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17135. $as_echo_n "checking for $ac_word... " >&6; }
  17136. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  17137. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. if test -n "$ac_ct_DLLTOOL"; then
  17141. @@ -3035,24 +3610,24 @@
  17142. do
  17143. IFS=$as_save_IFS
  17144. test -z "$as_dir" && as_dir=.
  17145. - for ac_exec_ext in '' $ac_executable_extensions; do
  17146. + for ac_exec_ext in '' $ac_executable_extensions; do
  17147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17148. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  17149. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17150. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17151. break 2
  17152. fi
  17153. done
  17154. -done
  17155. + done
  17156. IFS=$as_save_IFS
  17157. fi
  17158. fi
  17159. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  17160. if test -n "$ac_ct_DLLTOOL"; then
  17161. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  17162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  17163. $as_echo "$ac_ct_DLLTOOL" >&6; }
  17164. else
  17165. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17166. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17167. $as_echo "no" >&6; }
  17168. fi
  17169. @@ -3061,7 +3636,7 @@
  17170. else
  17171. case $cross_compiling:$ac_tool_warned in
  17172. yes:)
  17173. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  17174. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17176. ac_tool_warned=yes ;;
  17177. esac
  17178. @@ -3074,9 +3649,9 @@
  17179. if test -n "$ac_tool_prefix"; then
  17180. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  17181. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  17182. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17184. $as_echo_n "checking for $ac_word... " >&6; }
  17185. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  17186. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  17187. $as_echo_n "(cached) " >&6
  17188. else
  17189. if test -n "$OBJDUMP"; then
  17190. @@ -3087,24 +3662,24 @@
  17191. do
  17192. IFS=$as_save_IFS
  17193. test -z "$as_dir" && as_dir=.
  17194. - for ac_exec_ext in '' $ac_executable_extensions; do
  17195. + for ac_exec_ext in '' $ac_executable_extensions; do
  17196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17197. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  17198. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17199. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17200. break 2
  17201. fi
  17202. done
  17203. -done
  17204. + done
  17205. IFS=$as_save_IFS
  17206. fi
  17207. fi
  17208. OBJDUMP=$ac_cv_prog_OBJDUMP
  17209. if test -n "$OBJDUMP"; then
  17210. - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  17211. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  17212. $as_echo "$OBJDUMP" >&6; }
  17213. else
  17214. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17215. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17216. $as_echo "no" >&6; }
  17217. fi
  17218. @@ -3114,9 +3689,9 @@
  17219. ac_ct_OBJDUMP=$OBJDUMP
  17220. # Extract the first word of "objdump", so it can be a program name with args.
  17221. set dummy objdump; ac_word=$2
  17222. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17224. $as_echo_n "checking for $ac_word... " >&6; }
  17225. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  17226. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  17227. $as_echo_n "(cached) " >&6
  17228. else
  17229. if test -n "$ac_ct_OBJDUMP"; then
  17230. @@ -3127,24 +3702,24 @@
  17231. do
  17232. IFS=$as_save_IFS
  17233. test -z "$as_dir" && as_dir=.
  17234. - for ac_exec_ext in '' $ac_executable_extensions; do
  17235. + for ac_exec_ext in '' $ac_executable_extensions; do
  17236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17237. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  17238. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17239. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17240. break 2
  17241. fi
  17242. done
  17243. -done
  17244. + done
  17245. IFS=$as_save_IFS
  17246. fi
  17247. fi
  17248. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  17249. if test -n "$ac_ct_OBJDUMP"; then
  17250. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  17251. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  17252. $as_echo "$ac_ct_OBJDUMP" >&6; }
  17253. else
  17254. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17255. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17256. $as_echo "no" >&6; }
  17257. fi
  17258. @@ -3153,7 +3728,7 @@
  17259. else
  17260. case $cross_compiling:$ac_tool_warned in
  17261. yes:)
  17262. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  17263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17264. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17265. ac_tool_warned=yes ;;
  17266. esac
  17267. @@ -3187,138 +3762,46 @@
  17268. -# Find a good install program. We prefer a C program (faster),
  17269. -# so one script is as good as another. But avoid the broken or
  17270. -# incompatible versions:
  17271. -# SysV /etc/install, /usr/sbin/install
  17272. -# SunOS /usr/etc/install
  17273. -# IRIX /sbin/install
  17274. -# AIX /bin/install
  17275. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  17276. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17277. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17278. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17279. -# OS/2's system install, which has a completely different semantic
  17280. -# ./install, which can be erroneously created by make from ./install.sh.
  17281. -# Reject install programs that cannot install multiple files.
  17282. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17283. -$as_echo_n "checking for a BSD-compatible install... " >&6; }
  17284. -if test -z "$INSTALL"; then
  17285. -if test "${ac_cv_path_install+set}" = set; then
  17286. +
  17287. +ac_ext=c
  17288. +ac_cpp='$CPP $CPPFLAGS'
  17289. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17290. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17291. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17292. +if test -n "$ac_tool_prefix"; then
  17293. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17294. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17296. +$as_echo_n "checking for $ac_word... " >&6; }
  17297. +if test "${ac_cv_prog_CC+set}" = set; then :
  17298. $as_echo_n "(cached) " >&6
  17299. else
  17300. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17301. + if test -n "$CC"; then
  17302. + ac_cv_prog_CC="$CC" # Let the user override the test.
  17303. +else
  17304. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17305. for as_dir in $PATH
  17306. do
  17307. IFS=$as_save_IFS
  17308. test -z "$as_dir" && as_dir=.
  17309. - # Account for people who put trailing slashes in PATH elements.
  17310. -case $as_dir/ in
  17311. - ./ | .// | /cC/* | \
  17312. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17313. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17314. - /usr/ucb/* ) ;;
  17315. - *)
  17316. - # OSF1 and SCO ODT 3.0 have their own names for install.
  17317. - # Don't use installbsd from OSF since it installs stuff as root
  17318. - # by default.
  17319. - for ac_prog in ginstall scoinst install; do
  17320. - for ac_exec_ext in '' $ac_executable_extensions; do
  17321. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17322. - if test $ac_prog = install &&
  17323. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17324. - # AIX install. It has an incompatible calling convention.
  17325. - :
  17326. - elif test $ac_prog = install &&
  17327. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17328. - # program-specific install script used by HP pwplus--don't use.
  17329. - :
  17330. - else
  17331. - rm -rf conftest.one conftest.two conftest.dir
  17332. - echo one > conftest.one
  17333. - echo two > conftest.two
  17334. - mkdir conftest.dir
  17335. - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  17336. - test -s conftest.one && test -s conftest.two &&
  17337. - test -s conftest.dir/conftest.one &&
  17338. - test -s conftest.dir/conftest.two
  17339. - then
  17340. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17341. - break 3
  17342. - fi
  17343. - fi
  17344. - fi
  17345. - done
  17346. - done
  17347. - ;;
  17348. -esac
  17349. -
  17350. -done
  17351. -IFS=$as_save_IFS
  17352. -
  17353. -rm -rf conftest.one conftest.two conftest.dir
  17354. -
  17355. -fi
  17356. - if test "${ac_cv_path_install+set}" = set; then
  17357. - INSTALL=$ac_cv_path_install
  17358. - else
  17359. - # As a last resort, use the slow shell script. Don't cache a
  17360. - # value for INSTALL within a source directory, because that will
  17361. - # break other packages using the cache if that directory is
  17362. - # removed, or if the value is a relative name.
  17363. - INSTALL=$ac_install_sh
  17364. - fi
  17365. -fi
  17366. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  17367. -$as_echo "$INSTALL" >&6; }
  17368. -
  17369. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17370. -# It thinks the first close brace ends the variable substitution.
  17371. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17372. -
  17373. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17374. -
  17375. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17376. -
  17377. -ac_ext=c
  17378. -ac_cpp='$CPP $CPPFLAGS'
  17379. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17380. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17381. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17382. -if test -n "$ac_tool_prefix"; then
  17383. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17384. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17385. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17386. -$as_echo_n "checking for $ac_word... " >&6; }
  17387. -if test "${ac_cv_prog_CC+set}" = set; then
  17388. - $as_echo_n "(cached) " >&6
  17389. -else
  17390. - if test -n "$CC"; then
  17391. - ac_cv_prog_CC="$CC" # Let the user override the test.
  17392. -else
  17393. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17394. -for as_dir in $PATH
  17395. -do
  17396. - IFS=$as_save_IFS
  17397. - test -z "$as_dir" && as_dir=.
  17398. - for ac_exec_ext in '' $ac_executable_extensions; do
  17399. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17400. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17401. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17402. - break 2
  17403. - fi
  17404. -done
  17405. + for ac_exec_ext in '' $ac_executable_extensions; do
  17406. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17407. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17408. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17409. + break 2
  17410. + fi
  17411. done
  17412. + done
  17413. IFS=$as_save_IFS
  17414. fi
  17415. fi
  17416. CC=$ac_cv_prog_CC
  17417. if test -n "$CC"; then
  17418. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  17419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17420. $as_echo "$CC" >&6; }
  17421. else
  17422. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17424. $as_echo "no" >&6; }
  17425. fi
  17426. @@ -3328,9 +3811,9 @@
  17427. ac_ct_CC=$CC
  17428. # Extract the first word of "gcc", so it can be a program name with args.
  17429. set dummy gcc; ac_word=$2
  17430. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17432. $as_echo_n "checking for $ac_word... " >&6; }
  17433. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17434. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17435. $as_echo_n "(cached) " >&6
  17436. else
  17437. if test -n "$ac_ct_CC"; then
  17438. @@ -3341,24 +3824,24 @@
  17439. do
  17440. IFS=$as_save_IFS
  17441. test -z "$as_dir" && as_dir=.
  17442. - for ac_exec_ext in '' $ac_executable_extensions; do
  17443. + for ac_exec_ext in '' $ac_executable_extensions; do
  17444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17445. ac_cv_prog_ac_ct_CC="gcc"
  17446. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17447. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17448. break 2
  17449. fi
  17450. done
  17451. -done
  17452. + done
  17453. IFS=$as_save_IFS
  17454. fi
  17455. fi
  17456. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17457. if test -n "$ac_ct_CC"; then
  17458. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17459. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17460. $as_echo "$ac_ct_CC" >&6; }
  17461. else
  17462. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17463. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17464. $as_echo "no" >&6; }
  17465. fi
  17466. @@ -3367,7 +3850,7 @@
  17467. else
  17468. case $cross_compiling:$ac_tool_warned in
  17469. yes:)
  17470. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  17471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17473. ac_tool_warned=yes ;;
  17474. esac
  17475. @@ -3381,9 +3864,9 @@
  17476. if test -n "$ac_tool_prefix"; then
  17477. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17478. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17479. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17481. $as_echo_n "checking for $ac_word... " >&6; }
  17482. -if test "${ac_cv_prog_CC+set}" = set; then
  17483. +if test "${ac_cv_prog_CC+set}" = set; then :
  17484. $as_echo_n "(cached) " >&6
  17485. else
  17486. if test -n "$CC"; then
  17487. @@ -3394,24 +3877,24 @@
  17488. do
  17489. IFS=$as_save_IFS
  17490. test -z "$as_dir" && as_dir=.
  17491. - for ac_exec_ext in '' $ac_executable_extensions; do
  17492. + for ac_exec_ext in '' $ac_executable_extensions; do
  17493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17494. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17495. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17496. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17497. break 2
  17498. fi
  17499. done
  17500. -done
  17501. + done
  17502. IFS=$as_save_IFS
  17503. fi
  17504. fi
  17505. CC=$ac_cv_prog_CC
  17506. if test -n "$CC"; then
  17507. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  17508. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17509. $as_echo "$CC" >&6; }
  17510. else
  17511. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17512. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17513. $as_echo "no" >&6; }
  17514. fi
  17515. @@ -3421,9 +3904,9 @@
  17516. if test -z "$CC"; then
  17517. # Extract the first word of "cc", so it can be a program name with args.
  17518. set dummy cc; ac_word=$2
  17519. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17521. $as_echo_n "checking for $ac_word... " >&6; }
  17522. -if test "${ac_cv_prog_CC+set}" = set; then
  17523. +if test "${ac_cv_prog_CC+set}" = set; then :
  17524. $as_echo_n "(cached) " >&6
  17525. else
  17526. if test -n "$CC"; then
  17527. @@ -3435,18 +3918,18 @@
  17528. do
  17529. IFS=$as_save_IFS
  17530. test -z "$as_dir" && as_dir=.
  17531. - for ac_exec_ext in '' $ac_executable_extensions; do
  17532. + for ac_exec_ext in '' $ac_executable_extensions; do
  17533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17534. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17535. ac_prog_rejected=yes
  17536. continue
  17537. fi
  17538. ac_cv_prog_CC="cc"
  17539. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17540. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17541. break 2
  17542. fi
  17543. done
  17544. -done
  17545. + done
  17546. IFS=$as_save_IFS
  17547. if test $ac_prog_rejected = yes; then
  17548. @@ -3465,10 +3948,10 @@
  17549. fi
  17550. CC=$ac_cv_prog_CC
  17551. if test -n "$CC"; then
  17552. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  17553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17554. $as_echo "$CC" >&6; }
  17555. else
  17556. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17558. $as_echo "no" >&6; }
  17559. fi
  17560. @@ -3480,9 +3963,9 @@
  17561. do
  17562. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17563. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17564. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17565. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17566. $as_echo_n "checking for $ac_word... " >&6; }
  17567. -if test "${ac_cv_prog_CC+set}" = set; then
  17568. +if test "${ac_cv_prog_CC+set}" = set; then :
  17569. $as_echo_n "(cached) " >&6
  17570. else
  17571. if test -n "$CC"; then
  17572. @@ -3493,24 +3976,24 @@
  17573. do
  17574. IFS=$as_save_IFS
  17575. test -z "$as_dir" && as_dir=.
  17576. - for ac_exec_ext in '' $ac_executable_extensions; do
  17577. + for ac_exec_ext in '' $ac_executable_extensions; do
  17578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17579. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17580. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17581. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17582. break 2
  17583. fi
  17584. done
  17585. -done
  17586. + done
  17587. IFS=$as_save_IFS
  17588. fi
  17589. fi
  17590. CC=$ac_cv_prog_CC
  17591. if test -n "$CC"; then
  17592. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  17593. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17594. $as_echo "$CC" >&6; }
  17595. else
  17596. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17598. $as_echo "no" >&6; }
  17599. fi
  17600. @@ -3524,9 +4007,9 @@
  17601. do
  17602. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17603. set dummy $ac_prog; ac_word=$2
  17604. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17605. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17606. $as_echo_n "checking for $ac_word... " >&6; }
  17607. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17608. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17609. $as_echo_n "(cached) " >&6
  17610. else
  17611. if test -n "$ac_ct_CC"; then
  17612. @@ -3537,24 +4020,24 @@
  17613. do
  17614. IFS=$as_save_IFS
  17615. test -z "$as_dir" && as_dir=.
  17616. - for ac_exec_ext in '' $ac_executable_extensions; do
  17617. + for ac_exec_ext in '' $ac_executable_extensions; do
  17618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17619. ac_cv_prog_ac_ct_CC="$ac_prog"
  17620. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17621. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17622. break 2
  17623. fi
  17624. done
  17625. -done
  17626. + done
  17627. IFS=$as_save_IFS
  17628. fi
  17629. fi
  17630. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17631. if test -n "$ac_ct_CC"; then
  17632. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17633. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17634. $as_echo "$ac_ct_CC" >&6; }
  17635. else
  17636. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17637. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17638. $as_echo "no" >&6; }
  17639. fi
  17640. @@ -3567,7 +4050,7 @@
  17641. else
  17642. case $cross_compiling:$ac_tool_warned in
  17643. yes:)
  17644. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  17645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17647. ac_tool_warned=yes ;;
  17648. esac
  17649. @@ -3578,73 +4061,55 @@
  17650. fi
  17651. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17652. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17654. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17655. -See \`config.log' for more details." >&5
  17656. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  17657. -See \`config.log' for more details." >&2;}
  17658. - { (exit 1); exit 1; }; }; }
  17659. +as_fn_error "no acceptable C compiler found in \$PATH
  17660. +See \`config.log' for more details." "$LINENO" 5; }
  17661. # Provide some information about the compiler.
  17662. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  17663. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  17664. set X $ac_compile
  17665. ac_compiler=$2
  17666. -{ (ac_try="$ac_compiler --version >&5"
  17667. -case "(($ac_try" in
  17668. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17669. - *) ac_try_echo=$ac_try;;
  17670. -esac
  17671. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17672. -$as_echo "$ac_try_echo") >&5
  17673. - (eval "$ac_compiler --version >&5") 2>&5
  17674. - ac_status=$?
  17675. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17676. - (exit $ac_status); }
  17677. -{ (ac_try="$ac_compiler -v >&5"
  17678. -case "(($ac_try" in
  17679. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17680. - *) ac_try_echo=$ac_try;;
  17681. -esac
  17682. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17683. -$as_echo "$ac_try_echo") >&5
  17684. - (eval "$ac_compiler -v >&5") 2>&5
  17685. - ac_status=$?
  17686. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17687. - (exit $ac_status); }
  17688. -{ (ac_try="$ac_compiler -V >&5"
  17689. +for ac_option in --version -v -V -qversion; do
  17690. + { { ac_try="$ac_compiler $ac_option >&5"
  17691. case "(($ac_try" in
  17692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17693. *) ac_try_echo=$ac_try;;
  17694. esac
  17695. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17696. -$as_echo "$ac_try_echo") >&5
  17697. - (eval "$ac_compiler -V >&5") 2>&5
  17698. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17699. +$as_echo "$ac_try_echo"; } >&5
  17700. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  17701. ac_status=$?
  17702. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17703. - (exit $ac_status); }
  17704. + if test -s conftest.err; then
  17705. + sed '10a\
  17706. +... rest of stderr output deleted ...
  17707. + 10q' conftest.err >conftest.er1
  17708. + cat conftest.er1 >&5
  17709. + rm -f conftest.er1 conftest.err
  17710. + fi
  17711. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17712. + test $ac_status = 0; }
  17713. +done
  17714. -cat >conftest.$ac_ext <<_ACEOF
  17715. -/* confdefs.h. */
  17716. -_ACEOF
  17717. -cat confdefs.h >>conftest.$ac_ext
  17718. -cat >>conftest.$ac_ext <<_ACEOF
  17719. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. -
  17722. +#include <stdio.h>
  17723. int
  17724. main ()
  17725. {
  17726. +FILE *f = fopen ("conftest.out", "w");
  17727. + return ferror (f) || fclose (f) != 0;
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. ac_clean_files_save=$ac_clean_files
  17733. -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  17734. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  17735. # Try to create an executable without -o first, disregard a.out.
  17736. # It will help us diagnose broken compilers, and finding out an intuition
  17737. # of exeext.
  17738. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  17739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  17740. $as_echo_n "checking for C compiler default output file name... " >&6; }
  17741. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  17742. @@ -3661,17 +4126,17 @@
  17743. done
  17744. rm -f $ac_rmfiles
  17745. -if { (ac_try="$ac_link_default"
  17746. +if { { ac_try="$ac_link_default"
  17747. case "(($ac_try" in
  17748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17749. *) ac_try_echo=$ac_try;;
  17750. esac
  17751. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17752. -$as_echo "$ac_try_echo") >&5
  17753. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17754. +$as_echo "$ac_try_echo"; } >&5
  17755. (eval "$ac_link_default") 2>&5
  17756. ac_status=$?
  17757. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17758. - (exit $ac_status); }; then
  17759. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17760. + test $ac_status = 0; }; then :
  17761. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  17762. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  17763. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  17764. @@ -3688,7 +4153,7 @@
  17765. # certainly right.
  17766. break;;
  17767. *.* )
  17768. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  17769. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  17770. then :; else
  17771. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17772. fi
  17773. @@ -3707,84 +4172,75 @@
  17774. else
  17775. ac_file=''
  17776. fi
  17777. -
  17778. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  17779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  17780. $as_echo "$ac_file" >&6; }
  17781. -if test -z "$ac_file"; then
  17782. +if test -z "$ac_file"; then :
  17783. $as_echo "$as_me: failed program was:" >&5
  17784. sed 's/^/| /' conftest.$ac_ext >&5
  17785. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17786. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17788. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  17789. -See \`config.log' for more details." >&5
  17790. -$as_echo "$as_me: error: C compiler cannot create executables
  17791. -See \`config.log' for more details." >&2;}
  17792. - { (exit 77); exit 77; }; }; }
  17793. +{ as_fn_set_status 77
  17794. +as_fn_error "C compiler cannot create executables
  17795. +See \`config.log' for more details." "$LINENO" 5; }; }
  17796. fi
  17797. -
  17798. ac_exeext=$ac_cv_exeext
  17799. # Check that the compiler produces executables we can run. If not, either
  17800. # the compiler is broken, or we cross compile.
  17801. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  17802. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  17803. $as_echo_n "checking whether the C compiler works... " >&6; }
  17804. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  17805. # If not cross compiling, check that we can run a simple program.
  17806. if test "$cross_compiling" != yes; then
  17807. if { ac_try='./$ac_file'
  17808. - { (case "(($ac_try" in
  17809. + { { case "(($ac_try" in
  17810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17811. *) ac_try_echo=$ac_try;;
  17812. esac
  17813. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17814. -$as_echo "$ac_try_echo") >&5
  17815. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17816. +$as_echo "$ac_try_echo"; } >&5
  17817. (eval "$ac_try") 2>&5
  17818. ac_status=$?
  17819. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17820. - (exit $ac_status); }; }; then
  17821. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17822. + test $ac_status = 0; }; }; then
  17823. cross_compiling=no
  17824. else
  17825. if test "$cross_compiling" = maybe; then
  17826. cross_compiling=yes
  17827. else
  17828. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17829. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17831. -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  17832. +as_fn_error "cannot run C compiled programs.
  17833. If you meant to cross compile, use \`--host'.
  17834. -See \`config.log' for more details." >&5
  17835. -$as_echo "$as_me: error: cannot run C compiled programs.
  17836. -If you meant to cross compile, use \`--host'.
  17837. -See \`config.log' for more details." >&2;}
  17838. - { (exit 1); exit 1; }; }; }
  17839. +See \`config.log' for more details." "$LINENO" 5; }
  17840. fi
  17841. fi
  17842. fi
  17843. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  17844. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17845. $as_echo "yes" >&6; }
  17846. -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  17847. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  17848. ac_clean_files=$ac_clean_files_save
  17849. # Check that the compiler produces executables we can run. If not, either
  17850. # the compiler is broken, or we cross compile.
  17851. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  17852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  17853. $as_echo_n "checking whether we are cross compiling... " >&6; }
  17854. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  17855. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  17856. $as_echo "$cross_compiling" >&6; }
  17857. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  17858. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  17859. $as_echo_n "checking for suffix of executables... " >&6; }
  17860. -if { (ac_try="$ac_link"
  17861. +if { { ac_try="$ac_link"
  17862. case "(($ac_try" in
  17863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17864. *) ac_try_echo=$ac_try;;
  17865. esac
  17866. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17867. -$as_echo "$ac_try_echo") >&5
  17868. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17869. +$as_echo "$ac_try_echo"; } >&5
  17870. (eval "$ac_link") 2>&5
  17871. ac_status=$?
  17872. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17873. - (exit $ac_status); }; then
  17874. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17875. + test $ac_status = 0; }; then :
  17876. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  17877. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  17878. # work properly (i.e., refer to `conftest.exe'), while it won't with
  17879. @@ -3799,32 +4255,24 @@
  17880. esac
  17881. done
  17882. else
  17883. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17884. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17886. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  17887. -See \`config.log' for more details." >&5
  17888. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  17889. -See \`config.log' for more details." >&2;}
  17890. - { (exit 1); exit 1; }; }; }
  17891. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  17892. +See \`config.log' for more details." "$LINENO" 5; }
  17893. fi
  17894. -
  17895. rm -f conftest$ac_cv_exeext
  17896. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  17897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  17898. $as_echo "$ac_cv_exeext" >&6; }
  17899. rm -f conftest.$ac_ext
  17900. EXEEXT=$ac_cv_exeext
  17901. ac_exeext=$EXEEXT
  17902. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  17903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  17904. $as_echo_n "checking for suffix of object files... " >&6; }
  17905. -if test "${ac_cv_objext+set}" = set; then
  17906. +if test "${ac_cv_objext+set}" = set; then :
  17907. $as_echo_n "(cached) " >&6
  17908. else
  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. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17915. /* end confdefs.h. */
  17916. int
  17917. @@ -3836,17 +4284,17 @@
  17918. }
  17919. _ACEOF
  17920. rm -f conftest.o conftest.obj
  17921. -if { (ac_try="$ac_compile"
  17922. +if { { ac_try="$ac_compile"
  17923. case "(($ac_try" in
  17924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17925. *) ac_try_echo=$ac_try;;
  17926. esac
  17927. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17928. -$as_echo "$ac_try_echo") >&5
  17929. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17930. +$as_echo "$ac_try_echo"; } >&5
  17931. (eval "$ac_compile") 2>&5
  17932. ac_status=$?
  17933. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17934. - (exit $ac_status); }; then
  17935. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17936. + test $ac_status = 0; }; then :
  17937. for ac_file in conftest.o conftest.obj conftest.*; do
  17938. test -f "$ac_file" || continue;
  17939. case $ac_file in
  17940. @@ -3859,31 +4307,23 @@
  17941. $as_echo "$as_me: failed program was:" >&5
  17942. sed 's/^/| /' conftest.$ac_ext >&5
  17943. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17944. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17946. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  17947. -See \`config.log' for more details." >&5
  17948. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  17949. -See \`config.log' for more details." >&2;}
  17950. - { (exit 1); exit 1; }; }; }
  17951. +as_fn_error "cannot compute suffix of object files: cannot compile
  17952. +See \`config.log' for more details." "$LINENO" 5; }
  17953. fi
  17954. -
  17955. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  17956. fi
  17957. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  17958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  17959. $as_echo "$ac_cv_objext" >&6; }
  17960. OBJEXT=$ac_cv_objext
  17961. ac_objext=$OBJEXT
  17962. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  17964. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  17965. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17966. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  17967. $as_echo_n "(cached) " >&6
  17968. else
  17969. - cat >conftest.$ac_ext <<_ACEOF
  17970. -/* confdefs.h. */
  17971. -_ACEOF
  17972. -cat confdefs.h >>conftest.$ac_ext
  17973. -cat >>conftest.$ac_ext <<_ACEOF
  17974. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17975. /* end confdefs.h. */
  17976. int
  17977. @@ -3897,37 +4337,16 @@
  17978. return 0;
  17979. }
  17980. _ACEOF
  17981. -rm -f conftest.$ac_objext
  17982. -if { (ac_try="$ac_compile"
  17983. -case "(($ac_try" in
  17984. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17985. - *) ac_try_echo=$ac_try;;
  17986. -esac
  17987. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17988. -$as_echo "$ac_try_echo") >&5
  17989. - (eval "$ac_compile") 2>conftest.er1
  17990. - ac_status=$?
  17991. - grep -v '^ *+' conftest.er1 >conftest.err
  17992. - rm -f conftest.er1
  17993. - cat conftest.err >&5
  17994. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17995. - (exit $ac_status); } && {
  17996. - test -z "$ac_c_werror_flag" ||
  17997. - test ! -s conftest.err
  17998. - } && test -s conftest.$ac_objext; then
  17999. +if ac_fn_c_try_compile "$LINENO"; then :
  18000. ac_compiler_gnu=yes
  18001. else
  18002. - $as_echo "$as_me: failed program was:" >&5
  18003. -sed 's/^/| /' conftest.$ac_ext >&5
  18004. -
  18005. - ac_compiler_gnu=no
  18006. + ac_compiler_gnu=no
  18007. fi
  18008. -
  18009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18010. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  18011. fi
  18012. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  18013. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  18014. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  18015. if test $ac_compiler_gnu = yes; then
  18016. GCC=yes
  18017. @@ -3936,20 +4355,16 @@
  18018. fi
  18019. ac_test_CFLAGS=${CFLAGS+set}
  18020. ac_save_CFLAGS=$CFLAGS
  18021. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  18022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  18023. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  18024. -if test "${ac_cv_prog_cc_g+set}" = set; then
  18025. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  18026. $as_echo_n "(cached) " >&6
  18027. else
  18028. ac_save_c_werror_flag=$ac_c_werror_flag
  18029. ac_c_werror_flag=yes
  18030. ac_cv_prog_cc_g=no
  18031. CFLAGS="-g"
  18032. - cat >conftest.$ac_ext <<_ACEOF
  18033. -/* confdefs.h. */
  18034. -_ACEOF
  18035. -cat confdefs.h >>conftest.$ac_ext
  18036. -cat >>conftest.$ac_ext <<_ACEOF
  18037. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18038. /* end confdefs.h. */
  18039. int
  18040. @@ -3960,35 +4375,11 @@
  18041. return 0;
  18042. }
  18043. _ACEOF
  18044. -rm -f conftest.$ac_objext
  18045. -if { (ac_try="$ac_compile"
  18046. -case "(($ac_try" in
  18047. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18048. - *) ac_try_echo=$ac_try;;
  18049. -esac
  18050. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18051. -$as_echo "$ac_try_echo") >&5
  18052. - (eval "$ac_compile") 2>conftest.er1
  18053. - ac_status=$?
  18054. - grep -v '^ *+' conftest.er1 >conftest.err
  18055. - rm -f conftest.er1
  18056. - cat conftest.err >&5
  18057. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18058. - (exit $ac_status); } && {
  18059. - test -z "$ac_c_werror_flag" ||
  18060. - test ! -s conftest.err
  18061. - } && test -s conftest.$ac_objext; then
  18062. +if ac_fn_c_try_compile "$LINENO"; then :
  18063. ac_cv_prog_cc_g=yes
  18064. else
  18065. - $as_echo "$as_me: failed program was:" >&5
  18066. -sed 's/^/| /' conftest.$ac_ext >&5
  18067. -
  18068. - CFLAGS=""
  18069. - cat >conftest.$ac_ext <<_ACEOF
  18070. -/* confdefs.h. */
  18071. -_ACEOF
  18072. -cat confdefs.h >>conftest.$ac_ext
  18073. -cat >>conftest.$ac_ext <<_ACEOF
  18074. + CFLAGS=""
  18075. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18076. /* end confdefs.h. */
  18077. int
  18078. @@ -3999,36 +4390,12 @@
  18079. return 0;
  18080. }
  18081. _ACEOF
  18082. -rm -f conftest.$ac_objext
  18083. -if { (ac_try="$ac_compile"
  18084. -case "(($ac_try" in
  18085. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18086. - *) ac_try_echo=$ac_try;;
  18087. -esac
  18088. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18089. -$as_echo "$ac_try_echo") >&5
  18090. - (eval "$ac_compile") 2>conftest.er1
  18091. - ac_status=$?
  18092. - grep -v '^ *+' conftest.er1 >conftest.err
  18093. - rm -f conftest.er1
  18094. - cat conftest.err >&5
  18095. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18096. - (exit $ac_status); } && {
  18097. - test -z "$ac_c_werror_flag" ||
  18098. - test ! -s conftest.err
  18099. - } && test -s conftest.$ac_objext; then
  18100. - :
  18101. -else
  18102. - $as_echo "$as_me: failed program was:" >&5
  18103. -sed 's/^/| /' conftest.$ac_ext >&5
  18104. +if ac_fn_c_try_compile "$LINENO"; then :
  18105. - ac_c_werror_flag=$ac_save_c_werror_flag
  18106. +else
  18107. + ac_c_werror_flag=$ac_save_c_werror_flag
  18108. CFLAGS="-g"
  18109. - cat >conftest.$ac_ext <<_ACEOF
  18110. -/* confdefs.h. */
  18111. -_ACEOF
  18112. -cat confdefs.h >>conftest.$ac_ext
  18113. -cat >>conftest.$ac_ext <<_ACEOF
  18114. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18115. /* end confdefs.h. */
  18116. int
  18117. @@ -4039,42 +4406,17 @@
  18118. return 0;
  18119. }
  18120. _ACEOF
  18121. -rm -f conftest.$ac_objext
  18122. -if { (ac_try="$ac_compile"
  18123. -case "(($ac_try" in
  18124. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18125. - *) ac_try_echo=$ac_try;;
  18126. -esac
  18127. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18128. -$as_echo "$ac_try_echo") >&5
  18129. - (eval "$ac_compile") 2>conftest.er1
  18130. - ac_status=$?
  18131. - grep -v '^ *+' conftest.er1 >conftest.err
  18132. - rm -f conftest.er1
  18133. - cat conftest.err >&5
  18134. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18135. - (exit $ac_status); } && {
  18136. - test -z "$ac_c_werror_flag" ||
  18137. - test ! -s conftest.err
  18138. - } && test -s conftest.$ac_objext; then
  18139. +if ac_fn_c_try_compile "$LINENO"; then :
  18140. ac_cv_prog_cc_g=yes
  18141. -else
  18142. - $as_echo "$as_me: failed program was:" >&5
  18143. -sed 's/^/| /' conftest.$ac_ext >&5
  18144. -
  18145. -
  18146. fi
  18147. -
  18148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18149. fi
  18150. -
  18151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18152. fi
  18153. -
  18154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18155. ac_c_werror_flag=$ac_save_c_werror_flag
  18156. fi
  18157. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  18159. $as_echo "$ac_cv_prog_cc_g" >&6; }
  18160. if test "$ac_test_CFLAGS" = set; then
  18161. CFLAGS=$ac_save_CFLAGS
  18162. @@ -4091,18 +4433,14 @@
  18163. CFLAGS=
  18164. fi
  18165. fi
  18166. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  18168. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18169. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  18170. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  18171. $as_echo_n "(cached) " >&6
  18172. else
  18173. ac_cv_prog_cc_c89=no
  18174. ac_save_CC=$CC
  18175. -cat >conftest.$ac_ext <<_ACEOF
  18176. -/* confdefs.h. */
  18177. -_ACEOF
  18178. -cat confdefs.h >>conftest.$ac_ext
  18179. -cat >>conftest.$ac_ext <<_ACEOF
  18180. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18181. /* end confdefs.h. */
  18182. #include <stdarg.h>
  18183. #include <stdio.h>
  18184. @@ -4159,32 +4497,9 @@
  18185. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18186. do
  18187. CC="$ac_save_CC $ac_arg"
  18188. - rm -f conftest.$ac_objext
  18189. -if { (ac_try="$ac_compile"
  18190. -case "(($ac_try" in
  18191. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18192. - *) ac_try_echo=$ac_try;;
  18193. -esac
  18194. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18195. -$as_echo "$ac_try_echo") >&5
  18196. - (eval "$ac_compile") 2>conftest.er1
  18197. - ac_status=$?
  18198. - grep -v '^ *+' conftest.er1 >conftest.err
  18199. - rm -f conftest.er1
  18200. - cat conftest.err >&5
  18201. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18202. - (exit $ac_status); } && {
  18203. - test -z "$ac_c_werror_flag" ||
  18204. - test ! -s conftest.err
  18205. - } && test -s conftest.$ac_objext; then
  18206. + if ac_fn_c_try_compile "$LINENO"; then :
  18207. ac_cv_prog_cc_c89=$ac_arg
  18208. -else
  18209. - $as_echo "$as_me: failed program was:" >&5
  18210. -sed 's/^/| /' conftest.$ac_ext >&5
  18211. -
  18212. -
  18213. fi
  18214. -
  18215. rm -f core conftest.err conftest.$ac_objext
  18216. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18217. done
  18218. @@ -4195,17 +4510,19 @@
  18219. # AC_CACHE_VAL
  18220. case "x$ac_cv_prog_cc_c89" in
  18221. x)
  18222. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  18223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  18224. $as_echo "none needed" >&6; } ;;
  18225. xno)
  18226. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  18227. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  18228. $as_echo "unsupported" >&6; } ;;
  18229. *)
  18230. CC="$CC $ac_cv_prog_cc_c89"
  18231. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18232. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  18233. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18234. esac
  18235. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  18236. +fi
  18237. ac_ext=c
  18238. ac_cpp='$CPP $CPPFLAGS'
  18239. @@ -4224,7 +4541,7 @@
  18240. .PHONY: am__doit
  18241. END
  18242. # If we don't find an include directive, just comment out the code.
  18243. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  18244. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  18245. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  18246. am__include="#"
  18247. am__quote=
  18248. @@ -4252,12 +4569,12 @@
  18249. fi
  18250. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  18251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  18252. $as_echo "$_am_result" >&6; }
  18253. rm -f confinc confmf
  18254. # Check whether --enable-dependency-tracking was given.
  18255. -if test "${enable_dependency_tracking+set}" = set; then
  18256. +if test "${enable_dependency_tracking+set}" = set; then :
  18257. enableval=$enable_dependency_tracking;
  18258. fi
  18259. @@ -4277,9 +4594,9 @@
  18260. depcc="$CC" am_compiler_list=
  18261. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18262. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  18263. $as_echo_n "checking dependency style of $depcc... " >&6; }
  18264. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18265. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  18266. $as_echo_n "(cached) " >&6
  18267. else
  18268. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18269. @@ -4387,7 +4704,7 @@
  18270. fi
  18271. fi
  18272. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  18274. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  18275. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18276. @@ -4407,14 +4724,14 @@
  18277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18280. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  18282. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  18283. # On Suns, sometimes $CPP names a directory.
  18284. if test -n "$CPP" && test -d "$CPP"; then
  18285. CPP=
  18286. fi
  18287. if test -z "$CPP"; then
  18288. - if test "${ac_cv_prog_CPP+set}" = set; then
  18289. + if test "${ac_cv_prog_CPP+set}" = set; then :
  18290. $as_echo_n "(cached) " >&6
  18291. else
  18292. # Double quotes because CPP needs to be expanded
  18293. @@ -4429,11 +4746,7 @@
  18294. # <limits.h> exists even on freestanding compilers.
  18295. # On the NeXT, cc -E runs the code through the compiler's parser,
  18296. # not just through cpp. "Syntax error" is here to catch this case.
  18297. - cat >conftest.$ac_ext <<_ACEOF
  18298. -/* confdefs.h. */
  18299. -_ACEOF
  18300. -cat confdefs.h >>conftest.$ac_ext
  18301. -cat >>conftest.$ac_ext <<_ACEOF
  18302. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18303. /* end confdefs.h. */
  18304. #ifdef __STDC__
  18305. # include <limits.h>
  18306. @@ -4442,78 +4755,34 @@
  18307. #endif
  18308. Syntax error
  18309. _ACEOF
  18310. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18311. -case "(($ac_try" in
  18312. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18313. - *) ac_try_echo=$ac_try;;
  18314. -esac
  18315. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18316. -$as_echo "$ac_try_echo") >&5
  18317. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18318. - ac_status=$?
  18319. - grep -v '^ *+' conftest.er1 >conftest.err
  18320. - rm -f conftest.er1
  18321. - cat conftest.err >&5
  18322. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18323. - (exit $ac_status); } >/dev/null && {
  18324. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18325. - test ! -s conftest.err
  18326. - }; then
  18327. - :
  18328. -else
  18329. - $as_echo "$as_me: failed program was:" >&5
  18330. -sed 's/^/| /' conftest.$ac_ext >&5
  18331. +if ac_fn_c_try_cpp "$LINENO"; then :
  18332. +else
  18333. # Broken: fails on valid input.
  18334. continue
  18335. fi
  18336. -
  18337. rm -f conftest.err conftest.$ac_ext
  18338. # OK, works on sane cases. Now check whether nonexistent headers
  18339. # can be detected and how.
  18340. - cat >conftest.$ac_ext <<_ACEOF
  18341. -/* confdefs.h. */
  18342. -_ACEOF
  18343. -cat confdefs.h >>conftest.$ac_ext
  18344. -cat >>conftest.$ac_ext <<_ACEOF
  18345. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18346. /* end confdefs.h. */
  18347. #include <ac_nonexistent.h>
  18348. _ACEOF
  18349. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18350. -case "(($ac_try" in
  18351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18352. - *) ac_try_echo=$ac_try;;
  18353. -esac
  18354. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18355. -$as_echo "$ac_try_echo") >&5
  18356. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18357. - ac_status=$?
  18358. - grep -v '^ *+' conftest.er1 >conftest.err
  18359. - rm -f conftest.er1
  18360. - cat conftest.err >&5
  18361. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18362. - (exit $ac_status); } >/dev/null && {
  18363. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18364. - test ! -s conftest.err
  18365. - }; then
  18366. +if ac_fn_c_try_cpp "$LINENO"; then :
  18367. # Broken: success on invalid input.
  18368. continue
  18369. else
  18370. - $as_echo "$as_me: failed program was:" >&5
  18371. -sed 's/^/| /' conftest.$ac_ext >&5
  18372. -
  18373. # Passes both tests.
  18374. ac_preproc_ok=:
  18375. break
  18376. fi
  18377. -
  18378. rm -f conftest.err conftest.$ac_ext
  18379. done
  18380. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18381. rm -f conftest.err conftest.$ac_ext
  18382. -if $ac_preproc_ok; then
  18383. +if $ac_preproc_ok; then :
  18384. break
  18385. fi
  18386. @@ -4525,7 +4794,7 @@
  18387. else
  18388. ac_cv_prog_CPP=$CPP
  18389. fi
  18390. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  18391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  18392. $as_echo "$CPP" >&6; }
  18393. ac_preproc_ok=false
  18394. for ac_c_preproc_warn_flag in '' yes
  18395. @@ -4536,11 +4805,7 @@
  18396. # <limits.h> exists even on freestanding compilers.
  18397. # On the NeXT, cc -E runs the code through the compiler's parser,
  18398. # not just through cpp. "Syntax error" is here to catch this case.
  18399. - cat >conftest.$ac_ext <<_ACEOF
  18400. -/* confdefs.h. */
  18401. -_ACEOF
  18402. -cat confdefs.h >>conftest.$ac_ext
  18403. -cat >>conftest.$ac_ext <<_ACEOF
  18404. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18405. /* end confdefs.h. */
  18406. #ifdef __STDC__
  18407. # include <limits.h>
  18408. @@ -4549,87 +4814,40 @@
  18409. #endif
  18410. Syntax error
  18411. _ACEOF
  18412. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18413. -case "(($ac_try" in
  18414. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18415. - *) ac_try_echo=$ac_try;;
  18416. -esac
  18417. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18418. -$as_echo "$ac_try_echo") >&5
  18419. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18420. - ac_status=$?
  18421. - grep -v '^ *+' conftest.er1 >conftest.err
  18422. - rm -f conftest.er1
  18423. - cat conftest.err >&5
  18424. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18425. - (exit $ac_status); } >/dev/null && {
  18426. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18427. - test ! -s conftest.err
  18428. - }; then
  18429. - :
  18430. -else
  18431. - $as_echo "$as_me: failed program was:" >&5
  18432. -sed 's/^/| /' conftest.$ac_ext >&5
  18433. +if ac_fn_c_try_cpp "$LINENO"; then :
  18434. +else
  18435. # Broken: fails on valid input.
  18436. continue
  18437. fi
  18438. -
  18439. rm -f conftest.err conftest.$ac_ext
  18440. # OK, works on sane cases. Now check whether nonexistent headers
  18441. # can be detected and how.
  18442. - cat >conftest.$ac_ext <<_ACEOF
  18443. -/* confdefs.h. */
  18444. -_ACEOF
  18445. -cat confdefs.h >>conftest.$ac_ext
  18446. -cat >>conftest.$ac_ext <<_ACEOF
  18447. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18448. /* end confdefs.h. */
  18449. #include <ac_nonexistent.h>
  18450. _ACEOF
  18451. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18452. -case "(($ac_try" in
  18453. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18454. - *) ac_try_echo=$ac_try;;
  18455. -esac
  18456. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18457. -$as_echo "$ac_try_echo") >&5
  18458. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18459. - ac_status=$?
  18460. - grep -v '^ *+' conftest.er1 >conftest.err
  18461. - rm -f conftest.er1
  18462. - cat conftest.err >&5
  18463. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18464. - (exit $ac_status); } >/dev/null && {
  18465. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18466. - test ! -s conftest.err
  18467. - }; then
  18468. +if ac_fn_c_try_cpp "$LINENO"; then :
  18469. # Broken: success on invalid input.
  18470. continue
  18471. else
  18472. - $as_echo "$as_me: failed program was:" >&5
  18473. -sed 's/^/| /' conftest.$ac_ext >&5
  18474. -
  18475. # Passes both tests.
  18476. ac_preproc_ok=:
  18477. break
  18478. fi
  18479. -
  18480. rm -f conftest.err conftest.$ac_ext
  18481. done
  18482. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18483. rm -f conftest.err conftest.$ac_ext
  18484. -if $ac_preproc_ok; then
  18485. - :
  18486. +if $ac_preproc_ok; then :
  18487. +
  18488. else
  18489. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18490. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18492. -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18493. -See \`config.log' for more details." >&5
  18494. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18495. -See \`config.log' for more details." >&2;}
  18496. - { (exit 1); exit 1; }; }; }
  18497. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  18498. +See \`config.log' for more details." "$LINENO" 5; }
  18499. fi
  18500. ac_ext=c
  18501. @@ -4642,9 +4860,9 @@
  18502. do
  18503. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18504. set dummy $ac_prog; ac_word=$2
  18505. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18507. $as_echo_n "checking for $ac_word... " >&6; }
  18508. -if test "${ac_cv_prog_AWK+set}" = set; then
  18509. +if test "${ac_cv_prog_AWK+set}" = set; then :
  18510. $as_echo_n "(cached) " >&6
  18511. else
  18512. if test -n "$AWK"; then
  18513. @@ -4655,24 +4873,24 @@
  18514. do
  18515. IFS=$as_save_IFS
  18516. test -z "$as_dir" && as_dir=.
  18517. - for ac_exec_ext in '' $ac_executable_extensions; do
  18518. + for ac_exec_ext in '' $ac_executable_extensions; do
  18519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18520. ac_cv_prog_AWK="$ac_prog"
  18521. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18522. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18523. break 2
  18524. fi
  18525. done
  18526. -done
  18527. + done
  18528. IFS=$as_save_IFS
  18529. fi
  18530. fi
  18531. AWK=$ac_cv_prog_AWK
  18532. if test -n "$AWK"; then
  18533. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  18534. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  18535. $as_echo "$AWK" >&6; }
  18536. else
  18537. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18538. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18539. $as_echo "no" >&6; }
  18540. fi
  18541. @@ -4683,9 +4901,9 @@
  18542. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  18543. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  18544. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  18545. -if test "${ac_cv_path_GREP+set}" = set; then
  18546. +if test "${ac_cv_path_GREP+set}" = set; then :
  18547. $as_echo_n "(cached) " >&6
  18548. else
  18549. if test -z "$GREP"; then
  18550. @@ -4696,7 +4914,7 @@
  18551. do
  18552. IFS=$as_save_IFS
  18553. test -z "$as_dir" && as_dir=.
  18554. - for ac_prog in grep ggrep; do
  18555. + for ac_prog in grep ggrep; do
  18556. for ac_exec_ext in '' $ac_executable_extensions; do
  18557. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  18558. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  18559. @@ -4716,7 +4934,7 @@
  18560. $as_echo 'GREP' >> "conftest.nl"
  18561. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18562. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18563. - ac_count=`expr $ac_count + 1`
  18564. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  18565. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  18566. # Best one so far, save it but keep looking for a better one
  18567. ac_cv_path_GREP="$ac_path_GREP"
  18568. @@ -4731,26 +4949,24 @@
  18569. $ac_path_GREP_found && break 3
  18570. done
  18571. done
  18572. -done
  18573. + done
  18574. IFS=$as_save_IFS
  18575. if test -z "$ac_cv_path_GREP"; then
  18576. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  18577. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  18578. - { (exit 1); exit 1; }; }
  18579. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  18580. fi
  18581. else
  18582. ac_cv_path_GREP=$GREP
  18583. fi
  18584. fi
  18585. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  18586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  18587. $as_echo "$ac_cv_path_GREP" >&6; }
  18588. GREP="$ac_cv_path_GREP"
  18589. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  18590. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  18591. $as_echo_n "checking for egrep... " >&6; }
  18592. -if test "${ac_cv_path_EGREP+set}" = set; then
  18593. +if test "${ac_cv_path_EGREP+set}" = set; then :
  18594. $as_echo_n "(cached) " >&6
  18595. else
  18596. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  18597. @@ -4764,7 +4980,7 @@
  18598. do
  18599. IFS=$as_save_IFS
  18600. test -z "$as_dir" && as_dir=.
  18601. - for ac_prog in egrep; do
  18602. + for ac_prog in egrep; do
  18603. for ac_exec_ext in '' $ac_executable_extensions; do
  18604. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  18605. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  18606. @@ -4784,7 +5000,7 @@
  18607. $as_echo 'EGREP' >> "conftest.nl"
  18608. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18609. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18610. - ac_count=`expr $ac_count + 1`
  18611. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  18612. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  18613. # Best one so far, save it but keep looking for a better one
  18614. ac_cv_path_EGREP="$ac_path_EGREP"
  18615. @@ -4799,12 +5015,10 @@
  18616. $ac_path_EGREP_found && break 3
  18617. done
  18618. done
  18619. -done
  18620. + done
  18621. IFS=$as_save_IFS
  18622. if test -z "$ac_cv_path_EGREP"; then
  18623. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  18624. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  18625. - { (exit 1); exit 1; }; }
  18626. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  18627. fi
  18628. else
  18629. ac_cv_path_EGREP=$EGREP
  18630. @@ -4812,21 +5026,17 @@
  18631. fi
  18632. fi
  18633. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  18634. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  18635. $as_echo "$ac_cv_path_EGREP" >&6; }
  18636. EGREP="$ac_cv_path_EGREP"
  18637. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18639. $as_echo_n "checking for ANSI C header files... " >&6; }
  18640. -if test "${ac_cv_header_stdc+set}" = set; then
  18641. +if test "${ac_cv_header_stdc+set}" = set; then :
  18642. $as_echo_n "(cached) " >&6
  18643. else
  18644. - cat >conftest.$ac_ext <<_ACEOF
  18645. -/* confdefs.h. */
  18646. -_ACEOF
  18647. -cat confdefs.h >>conftest.$ac_ext
  18648. -cat >>conftest.$ac_ext <<_ACEOF
  18649. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18650. /* end confdefs.h. */
  18651. #include <stdlib.h>
  18652. #include <stdarg.h>
  18653. @@ -4841,48 +5051,23 @@
  18654. return 0;
  18655. }
  18656. _ACEOF
  18657. -rm -f conftest.$ac_objext
  18658. -if { (ac_try="$ac_compile"
  18659. -case "(($ac_try" in
  18660. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18661. - *) ac_try_echo=$ac_try;;
  18662. -esac
  18663. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18664. -$as_echo "$ac_try_echo") >&5
  18665. - (eval "$ac_compile") 2>conftest.er1
  18666. - ac_status=$?
  18667. - grep -v '^ *+' conftest.er1 >conftest.err
  18668. - rm -f conftest.er1
  18669. - cat conftest.err >&5
  18670. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18671. - (exit $ac_status); } && {
  18672. - test -z "$ac_c_werror_flag" ||
  18673. - test ! -s conftest.err
  18674. - } && test -s conftest.$ac_objext; then
  18675. +if ac_fn_c_try_compile "$LINENO"; then :
  18676. ac_cv_header_stdc=yes
  18677. else
  18678. - $as_echo "$as_me: failed program was:" >&5
  18679. -sed 's/^/| /' conftest.$ac_ext >&5
  18680. -
  18681. - ac_cv_header_stdc=no
  18682. + ac_cv_header_stdc=no
  18683. fi
  18684. -
  18685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18686. if test $ac_cv_header_stdc = yes; then
  18687. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18688. - cat >conftest.$ac_ext <<_ACEOF
  18689. -/* confdefs.h. */
  18690. -_ACEOF
  18691. -cat confdefs.h >>conftest.$ac_ext
  18692. -cat >>conftest.$ac_ext <<_ACEOF
  18693. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18694. /* end confdefs.h. */
  18695. #include <string.h>
  18696. _ACEOF
  18697. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18698. - $EGREP "memchr" >/dev/null 2>&1; then
  18699. - :
  18700. + $EGREP "memchr" >/dev/null 2>&1; then :
  18701. +
  18702. else
  18703. ac_cv_header_stdc=no
  18704. fi
  18705. @@ -4892,18 +5077,14 @@
  18706. if test $ac_cv_header_stdc = yes; then
  18707. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18708. - cat >conftest.$ac_ext <<_ACEOF
  18709. -/* confdefs.h. */
  18710. -_ACEOF
  18711. -cat confdefs.h >>conftest.$ac_ext
  18712. -cat >>conftest.$ac_ext <<_ACEOF
  18713. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18714. /* end confdefs.h. */
  18715. #include <stdlib.h>
  18716. _ACEOF
  18717. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18718. - $EGREP "free" >/dev/null 2>&1; then
  18719. - :
  18720. + $EGREP "free" >/dev/null 2>&1; then :
  18721. +
  18722. else
  18723. ac_cv_header_stdc=no
  18724. fi
  18725. @@ -4913,14 +5094,10 @@
  18726. if test $ac_cv_header_stdc = yes; then
  18727. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18728. - if test "$cross_compiling" = yes; then
  18729. + if test "$cross_compiling" = yes; then :
  18730. :
  18731. else
  18732. - cat >conftest.$ac_ext <<_ACEOF
  18733. -/* confdefs.h. */
  18734. -_ACEOF
  18735. -cat confdefs.h >>conftest.$ac_ext
  18736. -cat >>conftest.$ac_ext <<_ACEOF
  18737. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18738. /* end confdefs.h. */
  18739. #include <ctype.h>
  18740. #include <stdlib.h>
  18741. @@ -4947,118 +5124,34 @@
  18742. return 0;
  18743. }
  18744. _ACEOF
  18745. -rm -f conftest$ac_exeext
  18746. -if { (ac_try="$ac_link"
  18747. -case "(($ac_try" in
  18748. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18749. - *) ac_try_echo=$ac_try;;
  18750. -esac
  18751. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18752. -$as_echo "$ac_try_echo") >&5
  18753. - (eval "$ac_link") 2>&5
  18754. - ac_status=$?
  18755. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18756. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18757. - { (case "(($ac_try" in
  18758. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18759. - *) ac_try_echo=$ac_try;;
  18760. -esac
  18761. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18762. -$as_echo "$ac_try_echo") >&5
  18763. - (eval "$ac_try") 2>&5
  18764. - ac_status=$?
  18765. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18766. - (exit $ac_status); }; }; then
  18767. - :
  18768. -else
  18769. - $as_echo "$as_me: program exited with status $ac_status" >&5
  18770. -$as_echo "$as_me: failed program was:" >&5
  18771. -sed 's/^/| /' conftest.$ac_ext >&5
  18772. +if ac_fn_c_try_run "$LINENO"; then :
  18773. -( exit $ac_status )
  18774. -ac_cv_header_stdc=no
  18775. +else
  18776. + ac_cv_header_stdc=no
  18777. fi
  18778. -rm -rf conftest.dSYM
  18779. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18780. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18781. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18782. fi
  18783. -
  18784. fi
  18785. fi
  18786. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18788. $as_echo "$ac_cv_header_stdc" >&6; }
  18789. if test $ac_cv_header_stdc = yes; then
  18790. -cat >>confdefs.h <<\_ACEOF
  18791. -#define STDC_HEADERS 1
  18792. -_ACEOF
  18793. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18794. fi
  18795. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18796. -
  18797. -
  18798. -
  18799. -
  18800. -
  18801. -
  18802. -
  18803. -
  18804. -
  18805. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18806. inttypes.h stdint.h unistd.h
  18807. -do
  18808. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18809. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18810. -$as_echo_n "checking for $ac_header... " >&6; }
  18811. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18812. - $as_echo_n "(cached) " >&6
  18813. -else
  18814. - cat >conftest.$ac_ext <<_ACEOF
  18815. -/* confdefs.h. */
  18816. -_ACEOF
  18817. -cat confdefs.h >>conftest.$ac_ext
  18818. -cat >>conftest.$ac_ext <<_ACEOF
  18819. -/* end confdefs.h. */
  18820. -$ac_includes_default
  18821. -
  18822. -#include <$ac_header>
  18823. -_ACEOF
  18824. -rm -f conftest.$ac_objext
  18825. -if { (ac_try="$ac_compile"
  18826. -case "(($ac_try" in
  18827. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18828. - *) ac_try_echo=$ac_try;;
  18829. -esac
  18830. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18831. -$as_echo "$ac_try_echo") >&5
  18832. - (eval "$ac_compile") 2>conftest.er1
  18833. - ac_status=$?
  18834. - grep -v '^ *+' conftest.er1 >conftest.err
  18835. - rm -f conftest.er1
  18836. - cat conftest.err >&5
  18837. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18838. - (exit $ac_status); } && {
  18839. - test -z "$ac_c_werror_flag" ||
  18840. - test ! -s conftest.err
  18841. - } && test -s conftest.$ac_objext; then
  18842. - eval "$as_ac_Header=yes"
  18843. -else
  18844. - $as_echo "$as_me: failed program was:" >&5
  18845. -sed 's/^/| /' conftest.$ac_ext >&5
  18846. -
  18847. - eval "$as_ac_Header=no"
  18848. -fi
  18849. -
  18850. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18851. -fi
  18852. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18853. - $as_echo "$as_val"'`
  18854. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18855. -$as_echo "$ac_res" >&6; }
  18856. -as_val=`eval 'as_val=${'$as_ac_Header'}
  18857. - $as_echo "$as_val"'`
  18858. - if test "x$as_val" = x""yes; then
  18859. +do :
  18860. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18861. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  18862. +"
  18863. +eval as_val=\$$as_ac_Header
  18864. + if test "x$as_val" = x""yes; then :
  18865. cat >>confdefs.h <<_ACEOF
  18866. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18867. _ACEOF
  18868. @@ -5069,139 +5162,8 @@
  18869. - if test "${ac_cv_header_minix_config_h+set}" = set; then
  18870. - { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  18871. -$as_echo_n "checking for minix/config.h... " >&6; }
  18872. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  18873. - $as_echo_n "(cached) " >&6
  18874. -fi
  18875. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  18876. -$as_echo "$ac_cv_header_minix_config_h" >&6; }
  18877. -else
  18878. - # Is the header compilable?
  18879. -{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  18880. -$as_echo_n "checking minix/config.h usability... " >&6; }
  18881. -cat >conftest.$ac_ext <<_ACEOF
  18882. -/* confdefs.h. */
  18883. -_ACEOF
  18884. -cat confdefs.h >>conftest.$ac_ext
  18885. -cat >>conftest.$ac_ext <<_ACEOF
  18886. -/* end confdefs.h. */
  18887. -$ac_includes_default
  18888. -#include <minix/config.h>
  18889. -_ACEOF
  18890. -rm -f conftest.$ac_objext
  18891. -if { (ac_try="$ac_compile"
  18892. -case "(($ac_try" in
  18893. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18894. - *) ac_try_echo=$ac_try;;
  18895. -esac
  18896. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18897. -$as_echo "$ac_try_echo") >&5
  18898. - (eval "$ac_compile") 2>conftest.er1
  18899. - ac_status=$?
  18900. - grep -v '^ *+' conftest.er1 >conftest.err
  18901. - rm -f conftest.er1
  18902. - cat conftest.err >&5
  18903. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. - (exit $ac_status); } && {
  18905. - test -z "$ac_c_werror_flag" ||
  18906. - test ! -s conftest.err
  18907. - } && test -s conftest.$ac_objext; then
  18908. - ac_header_compiler=yes
  18909. -else
  18910. - $as_echo "$as_me: failed program was:" >&5
  18911. -sed 's/^/| /' conftest.$ac_ext >&5
  18912. -
  18913. - ac_header_compiler=no
  18914. -fi
  18915. -
  18916. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18917. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18918. -$as_echo "$ac_header_compiler" >&6; }
  18919. -
  18920. -# Is the header present?
  18921. -{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  18922. -$as_echo_n "checking minix/config.h presence... " >&6; }
  18923. -cat >conftest.$ac_ext <<_ACEOF
  18924. -/* confdefs.h. */
  18925. -_ACEOF
  18926. -cat confdefs.h >>conftest.$ac_ext
  18927. -cat >>conftest.$ac_ext <<_ACEOF
  18928. -/* end confdefs.h. */
  18929. -#include <minix/config.h>
  18930. -_ACEOF
  18931. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18932. -case "(($ac_try" in
  18933. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18934. - *) ac_try_echo=$ac_try;;
  18935. -esac
  18936. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18937. -$as_echo "$ac_try_echo") >&5
  18938. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18939. - ac_status=$?
  18940. - grep -v '^ *+' conftest.er1 >conftest.err
  18941. - rm -f conftest.er1
  18942. - cat conftest.err >&5
  18943. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18944. - (exit $ac_status); } >/dev/null && {
  18945. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18946. - test ! -s conftest.err
  18947. - }; then
  18948. - ac_header_preproc=yes
  18949. -else
  18950. - $as_echo "$as_me: failed program was:" >&5
  18951. -sed 's/^/| /' conftest.$ac_ext >&5
  18952. -
  18953. - ac_header_preproc=no
  18954. -fi
  18955. -
  18956. -rm -f conftest.err conftest.$ac_ext
  18957. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18958. -$as_echo "$ac_header_preproc" >&6; }
  18959. -
  18960. -# So? What about this header?
  18961. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18962. - yes:no: )
  18963. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18964. -$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18965. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  18966. -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  18967. - ac_header_preproc=yes
  18968. - ;;
  18969. - no:yes:* )
  18970. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  18971. -$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  18972. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  18973. -$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  18974. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  18975. -$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  18976. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  18977. -$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18978. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  18979. -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  18980. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  18981. -$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  18982. - ( cat <<\_ASBOX
  18983. -## -------------------------------- ##
  18984. -## Report this to bug-guile@gnu.org ##
  18985. -## -------------------------------- ##
  18986. -_ASBOX
  18987. - ) | sed "s/^/$as_me: WARNING: /" >&2
  18988. - ;;
  18989. -esac
  18990. -{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  18991. -$as_echo_n "checking for minix/config.h... " >&6; }
  18992. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  18993. - $as_echo_n "(cached) " >&6
  18994. -else
  18995. - ac_cv_header_minix_config_h=$ac_header_preproc
  18996. -fi
  18997. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  18998. -$as_echo "$ac_cv_header_minix_config_h" >&6; }
  18999. -
  19000. -fi
  19001. -if test "x$ac_cv_header_minix_config_h" = x""yes; then
  19002. + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  19003. +if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  19004. MINIX=yes
  19005. else
  19006. MINIX=
  19007. @@ -5210,34 +5172,23 @@
  19008. if test "$MINIX" = yes; then
  19009. -cat >>confdefs.h <<\_ACEOF
  19010. -#define _POSIX_SOURCE 1
  19011. -_ACEOF
  19012. +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  19013. -cat >>confdefs.h <<\_ACEOF
  19014. -#define _POSIX_1_SOURCE 2
  19015. -_ACEOF
  19016. +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  19017. -cat >>confdefs.h <<\_ACEOF
  19018. -#define _MINIX 1
  19019. -_ACEOF
  19020. +$as_echo "#define _MINIX 1" >>confdefs.h
  19021. fi
  19022. -
  19023. - { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  19024. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  19025. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  19026. -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  19027. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  19028. $as_echo_n "(cached) " >&6
  19029. else
  19030. - cat >conftest.$ac_ext <<_ACEOF
  19031. -/* confdefs.h. */
  19032. -_ACEOF
  19033. -cat confdefs.h >>conftest.$ac_ext
  19034. -cat >>conftest.$ac_ext <<_ACEOF
  19035. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19036. /* end confdefs.h. */
  19037. # define __EXTENSIONS__ 1
  19038. @@ -5250,71 +5201,36 @@
  19039. return 0;
  19040. }
  19041. _ACEOF
  19042. -rm -f conftest.$ac_objext
  19043. -if { (ac_try="$ac_compile"
  19044. -case "(($ac_try" in
  19045. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19046. - *) ac_try_echo=$ac_try;;
  19047. -esac
  19048. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19049. -$as_echo "$ac_try_echo") >&5
  19050. - (eval "$ac_compile") 2>conftest.er1
  19051. - ac_status=$?
  19052. - grep -v '^ *+' conftest.er1 >conftest.err
  19053. - rm -f conftest.er1
  19054. - cat conftest.err >&5
  19055. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19056. - (exit $ac_status); } && {
  19057. - test -z "$ac_c_werror_flag" ||
  19058. - test ! -s conftest.err
  19059. - } && test -s conftest.$ac_objext; then
  19060. +if ac_fn_c_try_compile "$LINENO"; then :
  19061. ac_cv_safe_to_define___extensions__=yes
  19062. else
  19063. - $as_echo "$as_me: failed program was:" >&5
  19064. -sed 's/^/| /' conftest.$ac_ext >&5
  19065. -
  19066. - ac_cv_safe_to_define___extensions__=no
  19067. + ac_cv_safe_to_define___extensions__=no
  19068. fi
  19069. -
  19070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19071. fi
  19072. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  19073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  19074. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  19075. test $ac_cv_safe_to_define___extensions__ = yes &&
  19076. - cat >>confdefs.h <<\_ACEOF
  19077. -#define __EXTENSIONS__ 1
  19078. -_ACEOF
  19079. + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  19080. - cat >>confdefs.h <<\_ACEOF
  19081. -#define _ALL_SOURCE 1
  19082. -_ACEOF
  19083. + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  19084. - cat >>confdefs.h <<\_ACEOF
  19085. -#define _GNU_SOURCE 1
  19086. -_ACEOF
  19087. + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  19088. - cat >>confdefs.h <<\_ACEOF
  19089. -#define _POSIX_PTHREAD_SEMANTICS 1
  19090. -_ACEOF
  19091. + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  19092. - cat >>confdefs.h <<\_ACEOF
  19093. -#define _TANDEM_SOURCE 1
  19094. -_ACEOF
  19095. + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  19096. - { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  19097. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  19098. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  19099. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  19100. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  19101. $as_echo_n "(cached) " >&6
  19102. else
  19103. ac_cv_prog_cc_c89=no
  19104. ac_save_CC=$CC
  19105. -cat >conftest.$ac_ext <<_ACEOF
  19106. -/* confdefs.h. */
  19107. -_ACEOF
  19108. -cat confdefs.h >>conftest.$ac_ext
  19109. -cat >>conftest.$ac_ext <<_ACEOF
  19110. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19111. /* end confdefs.h. */
  19112. #include <stdarg.h>
  19113. #include <stdio.h>
  19114. @@ -5371,32 +5287,9 @@
  19115. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19116. do
  19117. CC="$ac_save_CC $ac_arg"
  19118. - rm -f conftest.$ac_objext
  19119. -if { (ac_try="$ac_compile"
  19120. -case "(($ac_try" in
  19121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19122. - *) ac_try_echo=$ac_try;;
  19123. -esac
  19124. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19125. -$as_echo "$ac_try_echo") >&5
  19126. - (eval "$ac_compile") 2>conftest.er1
  19127. - ac_status=$?
  19128. - grep -v '^ *+' conftest.er1 >conftest.err
  19129. - rm -f conftest.er1
  19130. - cat conftest.err >&5
  19131. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19132. - (exit $ac_status); } && {
  19133. - test -z "$ac_c_werror_flag" ||
  19134. - test ! -s conftest.err
  19135. - } && test -s conftest.$ac_objext; then
  19136. + if ac_fn_c_try_compile "$LINENO"; then :
  19137. ac_cv_prog_cc_c89=$ac_arg
  19138. -else
  19139. - $as_echo "$as_me: failed program was:" >&5
  19140. -sed 's/^/| /' conftest.$ac_ext >&5
  19141. -
  19142. -
  19143. fi
  19144. -
  19145. rm -f core conftest.err conftest.$ac_objext
  19146. test "x$ac_cv_prog_cc_c89" != "xno" && break
  19147. done
  19148. @@ -5407,38 +5300,36 @@
  19149. # AC_CACHE_VAL
  19150. case "x$ac_cv_prog_cc_c89" in
  19151. x)
  19152. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  19153. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  19154. $as_echo "none needed" >&6; } ;;
  19155. xno)
  19156. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  19157. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  19158. $as_echo "unsupported" >&6; } ;;
  19159. *)
  19160. CC="$CC $ac_cv_prog_cc_c89"
  19161. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  19162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  19163. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  19164. esac
  19165. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  19166. +fi
  19167. # for per-target cflags in the libguile subdir
  19168. if test "x$CC" != xcc; then
  19169. - { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  19170. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  19171. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  19172. else
  19173. - { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  19174. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  19175. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  19176. fi
  19177. set dummy $CC; ac_cc=`$as_echo "$2" |
  19178. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  19179. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  19180. +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  19181. $as_echo_n "(cached) " >&6
  19182. else
  19183. - cat >conftest.$ac_ext <<_ACEOF
  19184. -/* confdefs.h. */
  19185. -_ACEOF
  19186. -cat confdefs.h >>conftest.$ac_ext
  19187. -cat >>conftest.$ac_ext <<_ACEOF
  19188. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. int
  19191. @@ -5454,63 +5345,63 @@
  19192. # existing .o file with -o, though they will create one.
  19193. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  19194. rm -f conftest2.*
  19195. -if { (case "(($ac_try" in
  19196. +if { { case "(($ac_try" in
  19197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19198. *) ac_try_echo=$ac_try;;
  19199. esac
  19200. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19201. -$as_echo "$ac_try_echo") >&5
  19202. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19203. +$as_echo "$ac_try_echo"; } >&5
  19204. (eval "$ac_try") 2>&5
  19205. ac_status=$?
  19206. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19207. - (exit $ac_status); } &&
  19208. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  19209. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19210. + test $ac_status = 0; } &&
  19211. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  19212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19213. *) ac_try_echo=$ac_try;;
  19214. esac
  19215. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19216. -$as_echo "$ac_try_echo") >&5
  19217. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19218. +$as_echo "$ac_try_echo"; } >&5
  19219. (eval "$ac_try") 2>&5
  19220. ac_status=$?
  19221. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19222. - (exit $ac_status); };
  19223. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19224. + test $ac_status = 0; };
  19225. then
  19226. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  19227. if test "x$CC" != xcc; then
  19228. # Test first that cc exists at all.
  19229. if { ac_try='cc -c conftest.$ac_ext >&5'
  19230. - { (case "(($ac_try" in
  19231. + { { case "(($ac_try" in
  19232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19233. *) ac_try_echo=$ac_try;;
  19234. esac
  19235. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19236. -$as_echo "$ac_try_echo") >&5
  19237. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19238. +$as_echo "$ac_try_echo"; } >&5
  19239. (eval "$ac_try") 2>&5
  19240. ac_status=$?
  19241. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19242. - (exit $ac_status); }; }; then
  19243. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19244. + test $ac_status = 0; }; }; then
  19245. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  19246. rm -f conftest2.*
  19247. - if { (case "(($ac_try" in
  19248. + if { { case "(($ac_try" in
  19249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19250. *) ac_try_echo=$ac_try;;
  19251. esac
  19252. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19253. -$as_echo "$ac_try_echo") >&5
  19254. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19255. +$as_echo "$ac_try_echo"; } >&5
  19256. (eval "$ac_try") 2>&5
  19257. ac_status=$?
  19258. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19259. - (exit $ac_status); } &&
  19260. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  19261. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19262. + test $ac_status = 0; } &&
  19263. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  19264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19265. *) ac_try_echo=$ac_try;;
  19266. esac
  19267. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19268. -$as_echo "$ac_try_echo") >&5
  19269. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19270. +$as_echo "$ac_try_echo"; } >&5
  19271. (eval "$ac_try") 2>&5
  19272. ac_status=$?
  19273. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19274. - (exit $ac_status); };
  19275. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19276. + test $ac_status = 0; };
  19277. then
  19278. # cc works too.
  19279. :
  19280. @@ -5527,15 +5418,13 @@
  19281. fi
  19282. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  19283. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  19284. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19285. $as_echo "yes" >&6; }
  19286. else
  19287. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19288. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19289. $as_echo "no" >&6; }
  19290. -cat >>confdefs.h <<\_ACEOF
  19291. -#define NO_MINUS_C_MINUS_O 1
  19292. -_ACEOF
  19293. +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  19294. fi
  19295. @@ -5561,14 +5450,14 @@
  19296. case `pwd` in
  19297. *\ * | *\ *)
  19298. - { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19299. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19300. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19301. esac
  19302. -macro_version='2.2.6'
  19303. -macro_revision='1.3012'
  19304. +macro_version='2.2.6b'
  19305. +macro_revision='1.3017'
  19306. @@ -5584,9 +5473,9 @@
  19307. ltmain="$ac_aux_dir/ltmain.sh"
  19308. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19309. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  19310. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19311. -if test "${ac_cv_path_SED+set}" = set; then
  19312. +if test "${ac_cv_path_SED+set}" = set; then :
  19313. $as_echo_n "(cached) " >&6
  19314. else
  19315. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19316. @@ -5594,7 +5483,7 @@
  19317. ac_script="$ac_script$as_nl$ac_script"
  19318. done
  19319. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19320. - $as_unset ac_script || ac_script=
  19321. + { ac_script=; unset ac_script;}
  19322. if test -z "$SED"; then
  19323. ac_path_SED_found=false
  19324. # Loop through the user's path and test for each of PROGNAME-LIST
  19325. @@ -5603,7 +5492,7 @@
  19326. do
  19327. IFS=$as_save_IFS
  19328. test -z "$as_dir" && as_dir=.
  19329. - for ac_prog in sed gsed; do
  19330. + for ac_prog in sed gsed; do
  19331. for ac_exec_ext in '' $ac_executable_extensions; do
  19332. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19333. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19334. @@ -5623,7 +5512,7 @@
  19335. $as_echo '' >> "conftest.nl"
  19336. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19338. - ac_count=`expr $ac_count + 1`
  19339. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19340. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19341. # Best one so far, save it but keep looking for a better one
  19342. ac_cv_path_SED="$ac_path_SED"
  19343. @@ -5638,19 +5527,17 @@
  19344. $ac_path_SED_found && break 3
  19345. done
  19346. done
  19347. -done
  19348. + done
  19349. IFS=$as_save_IFS
  19350. if test -z "$ac_cv_path_SED"; then
  19351. - { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  19352. -$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  19353. - { (exit 1); exit 1; }; }
  19354. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  19355. fi
  19356. else
  19357. ac_cv_path_SED=$SED
  19358. fi
  19359. fi
  19360. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  19362. $as_echo "$ac_cv_path_SED" >&6; }
  19363. SED="$ac_cv_path_SED"
  19364. rm -f conftest.sed
  19365. @@ -5668,9 +5555,9 @@
  19366. -{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  19367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  19368. $as_echo_n "checking for fgrep... " >&6; }
  19369. -if test "${ac_cv_path_FGREP+set}" = set; then
  19370. +if test "${ac_cv_path_FGREP+set}" = set; then :
  19371. $as_echo_n "(cached) " >&6
  19372. else
  19373. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  19374. @@ -5684,7 +5571,7 @@
  19375. do
  19376. IFS=$as_save_IFS
  19377. test -z "$as_dir" && as_dir=.
  19378. - for ac_prog in fgrep; do
  19379. + for ac_prog in fgrep; do
  19380. for ac_exec_ext in '' $ac_executable_extensions; do
  19381. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  19382. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  19383. @@ -5704,7 +5591,7 @@
  19384. $as_echo 'FGREP' >> "conftest.nl"
  19385. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19386. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19387. - ac_count=`expr $ac_count + 1`
  19388. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19389. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  19390. # Best one so far, save it but keep looking for a better one
  19391. ac_cv_path_FGREP="$ac_path_FGREP"
  19392. @@ -5719,12 +5606,10 @@
  19393. $ac_path_FGREP_found && break 3
  19394. done
  19395. done
  19396. -done
  19397. + done
  19398. IFS=$as_save_IFS
  19399. if test -z "$ac_cv_path_FGREP"; then
  19400. - { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19401. -$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19402. - { (exit 1); exit 1; }; }
  19403. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19404. fi
  19405. else
  19406. ac_cv_path_FGREP=$FGREP
  19407. @@ -5732,7 +5617,7 @@
  19408. fi
  19409. fi
  19410. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  19411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  19412. $as_echo "$ac_cv_path_FGREP" >&6; }
  19413. FGREP="$ac_cv_path_FGREP"
  19414. @@ -5758,7 +5643,7 @@
  19415. # Check whether --with-gnu-ld was given.
  19416. -if test "${with_gnu_ld+set}" = set; then
  19417. +if test "${with_gnu_ld+set}" = set; then :
  19418. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  19419. else
  19420. with_gnu_ld=no
  19421. @@ -5767,7 +5652,7 @@
  19422. ac_prog=ld
  19423. if test "$GCC" = yes; then
  19424. # Check if gcc -print-prog-name=ld gives a path.
  19425. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  19426. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  19427. $as_echo_n "checking for ld used by $CC... " >&6; }
  19428. case $host in
  19429. *-*-mingw*)
  19430. @@ -5797,13 +5682,13 @@
  19431. ;;
  19432. esac
  19433. elif test "$with_gnu_ld" = yes; then
  19434. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  19435. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  19436. $as_echo_n "checking for GNU ld... " >&6; }
  19437. else
  19438. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  19439. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  19440. $as_echo_n "checking for non-GNU ld... " >&6; }
  19441. fi
  19442. -if test "${lt_cv_path_LD+set}" = set; then
  19443. +if test "${lt_cv_path_LD+set}" = set; then :
  19444. $as_echo_n "(cached) " >&6
  19445. else
  19446. if test -z "$LD"; then
  19447. @@ -5834,18 +5719,16 @@
  19448. LD="$lt_cv_path_LD"
  19449. if test -n "$LD"; then
  19450. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  19451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  19452. $as_echo "$LD" >&6; }
  19453. else
  19454. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19455. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19456. $as_echo "no" >&6; }
  19457. fi
  19458. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  19459. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  19460. - { (exit 1); exit 1; }; }
  19461. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  19462. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  19463. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  19464. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  19465. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  19466. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  19467. $as_echo_n "(cached) " >&6
  19468. else
  19469. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  19470. @@ -5858,7 +5741,7 @@
  19471. ;;
  19472. esac
  19473. fi
  19474. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  19475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  19476. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  19477. with_gnu_ld=$lt_cv_prog_gnu_ld
  19478. @@ -5870,9 +5753,9 @@
  19479. -{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  19480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  19481. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  19482. -if test "${lt_cv_path_NM+set}" = set; then
  19483. +if test "${lt_cv_path_NM+set}" = set; then :
  19484. $as_echo_n "(cached) " >&6
  19485. else
  19486. if test -n "$NM"; then
  19487. @@ -5919,7 +5802,7 @@
  19488. : ${lt_cv_path_NM=no}
  19489. fi
  19490. fi
  19491. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  19492. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  19493. $as_echo "$lt_cv_path_NM" >&6; }
  19494. if test "$lt_cv_path_NM" != "no"; then
  19495. NM="$lt_cv_path_NM"
  19496. @@ -5930,9 +5813,9 @@
  19497. do
  19498. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19499. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19500. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19502. $as_echo_n "checking for $ac_word... " >&6; }
  19503. -if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  19504. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  19505. $as_echo_n "(cached) " >&6
  19506. else
  19507. if test -n "$DUMPBIN"; then
  19508. @@ -5943,24 +5826,24 @@
  19509. do
  19510. IFS=$as_save_IFS
  19511. test -z "$as_dir" && as_dir=.
  19512. - for ac_exec_ext in '' $ac_executable_extensions; do
  19513. + for ac_exec_ext in '' $ac_executable_extensions; do
  19514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19515. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  19516. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19517. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19518. break 2
  19519. fi
  19520. done
  19521. -done
  19522. + done
  19523. IFS=$as_save_IFS
  19524. fi
  19525. fi
  19526. DUMPBIN=$ac_cv_prog_DUMPBIN
  19527. if test -n "$DUMPBIN"; then
  19528. - { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  19529. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  19530. $as_echo "$DUMPBIN" >&6; }
  19531. else
  19532. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19534. $as_echo "no" >&6; }
  19535. fi
  19536. @@ -5974,9 +5857,9 @@
  19537. do
  19538. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19539. set dummy $ac_prog; ac_word=$2
  19540. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19541. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19542. $as_echo_n "checking for $ac_word... " >&6; }
  19543. -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  19544. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  19545. $as_echo_n "(cached) " >&6
  19546. else
  19547. if test -n "$ac_ct_DUMPBIN"; then
  19548. @@ -5987,24 +5870,24 @@
  19549. do
  19550. IFS=$as_save_IFS
  19551. test -z "$as_dir" && as_dir=.
  19552. - for ac_exec_ext in '' $ac_executable_extensions; do
  19553. + for ac_exec_ext in '' $ac_executable_extensions; do
  19554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19555. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  19556. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19557. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19558. break 2
  19559. fi
  19560. done
  19561. -done
  19562. + done
  19563. IFS=$as_save_IFS
  19564. fi
  19565. fi
  19566. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  19567. if test -n "$ac_ct_DUMPBIN"; then
  19568. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  19569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  19570. $as_echo "$ac_ct_DUMPBIN" >&6; }
  19571. else
  19572. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19574. $as_echo "no" >&6; }
  19575. fi
  19576. @@ -6017,7 +5900,7 @@
  19577. else
  19578. case $cross_compiling:$ac_tool_warned in
  19579. yes:)
  19580. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19581. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19583. ac_tool_warned=yes ;;
  19584. esac
  19585. @@ -6037,44 +5920,44 @@
  19586. -{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  19587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  19588. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  19589. -if test "${lt_cv_nm_interface+set}" = set; then
  19590. +if test "${lt_cv_nm_interface+set}" = set; then :
  19591. $as_echo_n "(cached) " >&6
  19592. else
  19593. lt_cv_nm_interface="BSD nm"
  19594. echo "int some_variable = 0;" > conftest.$ac_ext
  19595. - (eval echo "\"\$as_me:6047: $ac_compile\"" >&5)
  19596. + (eval echo "\"\$as_me:5930: $ac_compile\"" >&5)
  19597. (eval "$ac_compile" 2>conftest.err)
  19598. cat conftest.err >&5
  19599. - (eval echo "\"\$as_me:6050: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  19600. + (eval echo "\"\$as_me:5933: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  19601. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  19602. cat conftest.err >&5
  19603. - (eval echo "\"\$as_me:6053: output\"" >&5)
  19604. + (eval echo "\"\$as_me:5936: output\"" >&5)
  19605. cat conftest.out >&5
  19606. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  19607. lt_cv_nm_interface="MS dumpbin"
  19608. fi
  19609. rm -f conftest*
  19610. fi
  19611. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  19612. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  19613. $as_echo "$lt_cv_nm_interface" >&6; }
  19614. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19615. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  19616. $as_echo_n "checking whether ln -s works... " >&6; }
  19617. LN_S=$as_ln_s
  19618. if test "$LN_S" = "ln -s"; then
  19619. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  19620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19621. $as_echo "yes" >&6; }
  19622. else
  19623. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  19625. $as_echo "no, using $LN_S" >&6; }
  19626. fi
  19627. # find the maximum length of command line arguments
  19628. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  19629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  19630. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19631. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  19632. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  19633. $as_echo_n "(cached) " >&6
  19634. else
  19635. i=0
  19636. @@ -6192,10 +6075,10 @@
  19637. fi
  19638. if test -n $lt_cv_sys_max_cmd_len ; then
  19639. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  19640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  19641. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  19642. else
  19643. - { $as_echo "$as_me:$LINENO: result: none" >&5
  19644. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  19645. $as_echo "none" >&6; }
  19646. fi
  19647. max_cmd_len=$lt_cv_sys_max_cmd_len
  19648. @@ -6209,7 +6092,7 @@
  19649. : ${MV="mv -f"}
  19650. : ${RM="rm -f"}
  19651. -{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  19652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  19653. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  19654. # Try some XSI features
  19655. xsi_shell=no
  19656. @@ -6219,17 +6102,17 @@
  19657. && eval 'test $(( 1 + 1 )) -eq 2 \
  19658. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  19659. && xsi_shell=yes
  19660. -{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  19661. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  19662. $as_echo "$xsi_shell" >&6; }
  19663. -{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  19664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  19665. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  19666. lt_shell_append=no
  19667. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  19668. >/dev/null 2>&1 \
  19669. && lt_shell_append=yes
  19670. -{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  19671. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  19672. $as_echo "$lt_shell_append" >&6; }
  19673. @@ -6264,14 +6147,14 @@
  19674. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  19675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  19676. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  19677. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  19678. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  19679. $as_echo_n "(cached) " >&6
  19680. else
  19681. lt_cv_ld_reload_flag='-r'
  19682. fi
  19683. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  19684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  19685. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  19686. reload_flag=$lt_cv_ld_reload_flag
  19687. case $reload_flag in
  19688. @@ -6300,9 +6183,9 @@
  19689. if test -n "$ac_tool_prefix"; then
  19690. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  19691. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  19692. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19694. $as_echo_n "checking for $ac_word... " >&6; }
  19695. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  19696. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  19697. $as_echo_n "(cached) " >&6
  19698. else
  19699. if test -n "$OBJDUMP"; then
  19700. @@ -6313,24 +6196,24 @@
  19701. do
  19702. IFS=$as_save_IFS
  19703. test -z "$as_dir" && as_dir=.
  19704. - for ac_exec_ext in '' $ac_executable_extensions; do
  19705. + for ac_exec_ext in '' $ac_executable_extensions; do
  19706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19707. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  19708. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19709. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19710. break 2
  19711. fi
  19712. done
  19713. -done
  19714. + done
  19715. IFS=$as_save_IFS
  19716. fi
  19717. fi
  19718. OBJDUMP=$ac_cv_prog_OBJDUMP
  19719. if test -n "$OBJDUMP"; then
  19720. - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  19721. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  19722. $as_echo "$OBJDUMP" >&6; }
  19723. else
  19724. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19725. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19726. $as_echo "no" >&6; }
  19727. fi
  19728. @@ -6340,9 +6223,9 @@
  19729. ac_ct_OBJDUMP=$OBJDUMP
  19730. # Extract the first word of "objdump", so it can be a program name with args.
  19731. set dummy objdump; ac_word=$2
  19732. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19734. $as_echo_n "checking for $ac_word... " >&6; }
  19735. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  19736. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  19737. $as_echo_n "(cached) " >&6
  19738. else
  19739. if test -n "$ac_ct_OBJDUMP"; then
  19740. @@ -6353,24 +6236,24 @@
  19741. do
  19742. IFS=$as_save_IFS
  19743. test -z "$as_dir" && as_dir=.
  19744. - for ac_exec_ext in '' $ac_executable_extensions; do
  19745. + for ac_exec_ext in '' $ac_executable_extensions; do
  19746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19747. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  19748. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19749. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19750. break 2
  19751. fi
  19752. done
  19753. -done
  19754. + done
  19755. IFS=$as_save_IFS
  19756. fi
  19757. fi
  19758. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  19759. if test -n "$ac_ct_OBJDUMP"; then
  19760. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  19761. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  19762. $as_echo "$ac_ct_OBJDUMP" >&6; }
  19763. else
  19764. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19766. $as_echo "no" >&6; }
  19767. fi
  19768. @@ -6379,7 +6262,7 @@
  19769. else
  19770. case $cross_compiling:$ac_tool_warned in
  19771. yes:)
  19772. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19773. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19775. ac_tool_warned=yes ;;
  19776. esac
  19777. @@ -6396,9 +6279,9 @@
  19778. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  19779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  19780. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  19781. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  19782. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  19783. $as_echo_n "(cached) " >&6
  19784. else
  19785. lt_cv_file_magic_cmd='$MAGIC_CMD'
  19786. @@ -6513,11 +6396,11 @@
  19787. ;;
  19788. # This must be Linux ELF.
  19789. -linux* | k*bsd*-gnu)
  19790. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  19791. lt_cv_deplibs_check_method=pass_all
  19792. ;;
  19793. -netbsd*)
  19794. +netbsd* | netbsdelf*-gnu)
  19795. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  19796. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19797. else
  19798. @@ -6592,7 +6475,7 @@
  19799. esac
  19800. fi
  19801. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  19802. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  19803. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  19804. file_magic_cmd=$lt_cv_file_magic_cmd
  19805. deplibs_check_method=$lt_cv_deplibs_check_method
  19806. @@ -6612,9 +6495,9 @@
  19807. if test -n "$ac_tool_prefix"; then
  19808. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  19809. set dummy ${ac_tool_prefix}ar; ac_word=$2
  19810. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19812. $as_echo_n "checking for $ac_word... " >&6; }
  19813. -if test "${ac_cv_prog_AR+set}" = set; then
  19814. +if test "${ac_cv_prog_AR+set}" = set; then :
  19815. $as_echo_n "(cached) " >&6
  19816. else
  19817. if test -n "$AR"; then
  19818. @@ -6625,24 +6508,24 @@
  19819. do
  19820. IFS=$as_save_IFS
  19821. test -z "$as_dir" && as_dir=.
  19822. - for ac_exec_ext in '' $ac_executable_extensions; do
  19823. + for ac_exec_ext in '' $ac_executable_extensions; do
  19824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19825. ac_cv_prog_AR="${ac_tool_prefix}ar"
  19826. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19827. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19828. break 2
  19829. fi
  19830. done
  19831. -done
  19832. + done
  19833. IFS=$as_save_IFS
  19834. fi
  19835. fi
  19836. AR=$ac_cv_prog_AR
  19837. if test -n "$AR"; then
  19838. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  19839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  19840. $as_echo "$AR" >&6; }
  19841. else
  19842. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19843. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19844. $as_echo "no" >&6; }
  19845. fi
  19846. @@ -6652,9 +6535,9 @@
  19847. ac_ct_AR=$AR
  19848. # Extract the first word of "ar", so it can be a program name with args.
  19849. set dummy ar; ac_word=$2
  19850. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19852. $as_echo_n "checking for $ac_word... " >&6; }
  19853. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  19854. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  19855. $as_echo_n "(cached) " >&6
  19856. else
  19857. if test -n "$ac_ct_AR"; then
  19858. @@ -6665,24 +6548,24 @@
  19859. do
  19860. IFS=$as_save_IFS
  19861. test -z "$as_dir" && as_dir=.
  19862. - for ac_exec_ext in '' $ac_executable_extensions; do
  19863. + for ac_exec_ext in '' $ac_executable_extensions; do
  19864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19865. ac_cv_prog_ac_ct_AR="ar"
  19866. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19867. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19868. break 2
  19869. fi
  19870. done
  19871. -done
  19872. + done
  19873. IFS=$as_save_IFS
  19874. fi
  19875. fi
  19876. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  19877. if test -n "$ac_ct_AR"; then
  19878. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  19879. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  19880. $as_echo "$ac_ct_AR" >&6; }
  19881. else
  19882. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19883. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19884. $as_echo "no" >&6; }
  19885. fi
  19886. @@ -6691,7 +6574,7 @@
  19887. else
  19888. case $cross_compiling:$ac_tool_warned in
  19889. yes:)
  19890. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19893. ac_tool_warned=yes ;;
  19894. esac
  19895. @@ -6717,9 +6600,9 @@
  19896. if test -n "$ac_tool_prefix"; then
  19897. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19898. set dummy ${ac_tool_prefix}strip; ac_word=$2
  19899. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19900. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19901. $as_echo_n "checking for $ac_word... " >&6; }
  19902. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19903. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  19904. $as_echo_n "(cached) " >&6
  19905. else
  19906. if test -n "$STRIP"; then
  19907. @@ -6730,24 +6613,24 @@
  19908. do
  19909. IFS=$as_save_IFS
  19910. test -z "$as_dir" && as_dir=.
  19911. - for ac_exec_ext in '' $ac_executable_extensions; do
  19912. + for ac_exec_ext in '' $ac_executable_extensions; do
  19913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19914. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19915. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19916. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19917. break 2
  19918. fi
  19919. done
  19920. -done
  19921. + done
  19922. IFS=$as_save_IFS
  19923. fi
  19924. fi
  19925. STRIP=$ac_cv_prog_STRIP
  19926. if test -n "$STRIP"; then
  19927. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  19928. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  19929. $as_echo "$STRIP" >&6; }
  19930. else
  19931. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19932. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19933. $as_echo "no" >&6; }
  19934. fi
  19935. @@ -6757,9 +6640,9 @@
  19936. ac_ct_STRIP=$STRIP
  19937. # Extract the first word of "strip", so it can be a program name with args.
  19938. set dummy strip; ac_word=$2
  19939. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19941. $as_echo_n "checking for $ac_word... " >&6; }
  19942. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  19943. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  19944. $as_echo_n "(cached) " >&6
  19945. else
  19946. if test -n "$ac_ct_STRIP"; then
  19947. @@ -6770,24 +6653,24 @@
  19948. do
  19949. IFS=$as_save_IFS
  19950. test -z "$as_dir" && as_dir=.
  19951. - for ac_exec_ext in '' $ac_executable_extensions; do
  19952. + for ac_exec_ext in '' $ac_executable_extensions; do
  19953. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19954. ac_cv_prog_ac_ct_STRIP="strip"
  19955. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19956. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19957. break 2
  19958. fi
  19959. done
  19960. -done
  19961. + done
  19962. IFS=$as_save_IFS
  19963. fi
  19964. fi
  19965. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19966. if test -n "$ac_ct_STRIP"; then
  19967. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  19968. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19969. $as_echo "$ac_ct_STRIP" >&6; }
  19970. else
  19971. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19972. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19973. $as_echo "no" >&6; }
  19974. fi
  19975. @@ -6796,7 +6679,7 @@
  19976. else
  19977. case $cross_compiling:$ac_tool_warned in
  19978. yes:)
  19979. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19981. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19982. ac_tool_warned=yes ;;
  19983. esac
  19984. @@ -6816,9 +6699,9 @@
  19985. if test -n "$ac_tool_prefix"; then
  19986. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19987. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19988. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19989. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19990. $as_echo_n "checking for $ac_word... " >&6; }
  19991. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  19992. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  19993. $as_echo_n "(cached) " >&6
  19994. else
  19995. if test -n "$RANLIB"; then
  19996. @@ -6829,24 +6712,24 @@
  19997. do
  19998. IFS=$as_save_IFS
  19999. test -z "$as_dir" && as_dir=.
  20000. - for ac_exec_ext in '' $ac_executable_extensions; do
  20001. + for ac_exec_ext in '' $ac_executable_extensions; do
  20002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20003. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  20004. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20005. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20006. break 2
  20007. fi
  20008. done
  20009. -done
  20010. + done
  20011. IFS=$as_save_IFS
  20012. fi
  20013. fi
  20014. RANLIB=$ac_cv_prog_RANLIB
  20015. if test -n "$RANLIB"; then
  20016. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  20017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  20018. $as_echo "$RANLIB" >&6; }
  20019. else
  20020. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20021. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20022. $as_echo "no" >&6; }
  20023. fi
  20024. @@ -6856,9 +6739,9 @@
  20025. ac_ct_RANLIB=$RANLIB
  20026. # Extract the first word of "ranlib", so it can be a program name with args.
  20027. set dummy ranlib; ac_word=$2
  20028. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20030. $as_echo_n "checking for $ac_word... " >&6; }
  20031. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  20032. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  20033. $as_echo_n "(cached) " >&6
  20034. else
  20035. if test -n "$ac_ct_RANLIB"; then
  20036. @@ -6869,24 +6752,24 @@
  20037. do
  20038. IFS=$as_save_IFS
  20039. test -z "$as_dir" && as_dir=.
  20040. - for ac_exec_ext in '' $ac_executable_extensions; do
  20041. + for ac_exec_ext in '' $ac_executable_extensions; do
  20042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20043. ac_cv_prog_ac_ct_RANLIB="ranlib"
  20044. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20045. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20046. break 2
  20047. fi
  20048. done
  20049. -done
  20050. + done
  20051. IFS=$as_save_IFS
  20052. fi
  20053. fi
  20054. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  20055. if test -n "$ac_ct_RANLIB"; then
  20056. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  20057. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  20058. $as_echo "$ac_ct_RANLIB" >&6; }
  20059. else
  20060. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20061. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20062. $as_echo "no" >&6; }
  20063. fi
  20064. @@ -6895,7 +6778,7 @@
  20065. else
  20066. case $cross_compiling:$ac_tool_warned in
  20067. yes:)
  20068. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20069. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20071. ac_tool_warned=yes ;;
  20072. esac
  20073. @@ -6973,9 +6856,9 @@
  20074. # Check for command to grab the raw symbol name followed by C symbol from nm.
  20075. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  20076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  20077. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  20078. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  20079. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  20080. $as_echo_n "(cached) " >&6
  20081. else
  20082. @@ -7091,18 +6974,18 @@
  20083. int main(){nm_test_var='a';nm_test_func();return(0);}
  20084. _LT_EOF
  20085. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20086. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20087. (eval $ac_compile) 2>&5
  20088. ac_status=$?
  20089. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20090. - (exit $ac_status); }; then
  20091. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20092. + test $ac_status = 0; }; then
  20093. # Now try to grab the symbols.
  20094. nlist=conftest.nm
  20095. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  20096. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  20097. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  20098. ac_status=$?
  20099. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20100. - (exit $ac_status); } && test -s "$nlist"; then
  20101. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20102. + test $ac_status = 0; } && test -s "$nlist"; then
  20103. # Try sorting and uniquifying the output.
  20104. if sort "$nlist" | uniq > "$nlist"T; then
  20105. mv -f "$nlist"T "$nlist"
  20106. @@ -7155,11 +7038,11 @@
  20107. lt_save_CFLAGS="$CFLAGS"
  20108. LIBS="conftstm.$ac_objext"
  20109. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  20110. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20111. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  20112. (eval $ac_link) 2>&5
  20113. ac_status=$?
  20114. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20115. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  20116. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20117. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  20118. pipe_works=yes
  20119. fi
  20120. LIBS="$lt_save_LIBS"
  20121. @@ -7193,10 +7076,10 @@
  20122. lt_cv_sys_global_symbol_to_cdecl=
  20123. fi
  20124. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  20125. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  20126. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  20127. $as_echo "failed" >&6; }
  20128. else
  20129. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  20130. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  20131. $as_echo "ok" >&6; }
  20132. fi
  20133. @@ -7222,7 +7105,7 @@
  20134. # Check whether --enable-libtool-lock was given.
  20135. -if test "${enable_libtool_lock+set}" = set; then
  20136. +if test "${enable_libtool_lock+set}" = set; then :
  20137. enableval=$enable_libtool_lock;
  20138. fi
  20139. @@ -7234,11 +7117,11 @@
  20140. ia64-*-hpux*)
  20141. # Find out which ABI we are using.
  20142. echo 'int i;' > conftest.$ac_ext
  20143. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20144. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20145. (eval $ac_compile) 2>&5
  20146. ac_status=$?
  20147. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20148. - (exit $ac_status); }; then
  20149. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20150. + test $ac_status = 0; }; then
  20151. case `/usr/bin/file conftest.$ac_objext` in
  20152. *ELF-32*)
  20153. HPUX_IA64_MODE="32"
  20154. @@ -7252,12 +7135,12 @@
  20155. ;;
  20156. *-*-irix6*)
  20157. # Find out which ABI we are using.
  20158. - echo '#line 7255 "configure"' > conftest.$ac_ext
  20159. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20160. + echo '#line 7138 "configure"' > conftest.$ac_ext
  20161. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20162. (eval $ac_compile) 2>&5
  20163. ac_status=$?
  20164. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. - (exit $ac_status); }; then
  20166. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20167. + test $ac_status = 0; }; then
  20168. if test "$lt_cv_prog_gnu_ld" = yes; then
  20169. case `/usr/bin/file conftest.$ac_objext` in
  20170. *32-bit*)
  20171. @@ -7291,11 +7174,11 @@
  20172. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  20173. # Find out which ABI we are using.
  20174. echo 'int i;' > conftest.$ac_ext
  20175. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20176. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20177. (eval $ac_compile) 2>&5
  20178. ac_status=$?
  20179. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20180. - (exit $ac_status); }; then
  20181. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20182. + test $ac_status = 0; }; then
  20183. case `/usr/bin/file conftest.o` in
  20184. *32-bit*)
  20185. case $host in
  20186. @@ -7344,9 +7227,9 @@
  20187. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20188. SAVE_CFLAGS="$CFLAGS"
  20189. CFLAGS="$CFLAGS -belf"
  20190. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  20191. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  20192. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  20193. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  20194. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  20195. $as_echo_n "(cached) " >&6
  20196. else
  20197. ac_ext=c
  20198. @@ -7355,11 +7238,7 @@
  20199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20201. - cat >conftest.$ac_ext <<_ACEOF
  20202. -/* confdefs.h. */
  20203. -_ACEOF
  20204. -cat confdefs.h >>conftest.$ac_ext
  20205. -cat >>conftest.$ac_ext <<_ACEOF
  20206. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20207. /* end confdefs.h. */
  20208. int
  20209. @@ -7370,38 +7249,13 @@
  20210. return 0;
  20211. }
  20212. _ACEOF
  20213. -rm -f conftest.$ac_objext conftest$ac_exeext
  20214. -if { (ac_try="$ac_link"
  20215. -case "(($ac_try" in
  20216. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20217. - *) ac_try_echo=$ac_try;;
  20218. -esac
  20219. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20220. -$as_echo "$ac_try_echo") >&5
  20221. - (eval "$ac_link") 2>conftest.er1
  20222. - ac_status=$?
  20223. - grep -v '^ *+' conftest.er1 >conftest.err
  20224. - rm -f conftest.er1
  20225. - cat conftest.err >&5
  20226. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20227. - (exit $ac_status); } && {
  20228. - test -z "$ac_c_werror_flag" ||
  20229. - test ! -s conftest.err
  20230. - } && test -s conftest$ac_exeext && {
  20231. - test "$cross_compiling" = yes ||
  20232. - $as_test_x conftest$ac_exeext
  20233. - }; then
  20234. +if ac_fn_c_try_link "$LINENO"; then :
  20235. lt_cv_cc_needs_belf=yes
  20236. else
  20237. - $as_echo "$as_me: failed program was:" >&5
  20238. -sed 's/^/| /' conftest.$ac_ext >&5
  20239. -
  20240. - lt_cv_cc_needs_belf=no
  20241. + lt_cv_cc_needs_belf=no
  20242. fi
  20243. -
  20244. -rm -rf conftest.dSYM
  20245. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20246. - conftest$ac_exeext conftest.$ac_ext
  20247. +rm -f core conftest.err conftest.$ac_objext \
  20248. + conftest$ac_exeext conftest.$ac_ext
  20249. ac_ext=c
  20250. ac_cpp='$CPP $CPPFLAGS'
  20251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20252. @@ -7409,7 +7263,7 @@
  20253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20254. fi
  20255. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  20256. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  20257. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  20258. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20259. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20260. @@ -7419,11 +7273,11 @@
  20261. sparc*-*solaris*)
  20262. # Find out which ABI we are using.
  20263. echo 'int i;' > conftest.$ac_ext
  20264. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20265. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20266. (eval $ac_compile) 2>&5
  20267. ac_status=$?
  20268. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20269. - (exit $ac_status); }; then
  20270. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20271. + test $ac_status = 0; }; then
  20272. case `/usr/bin/file conftest.o` in
  20273. *64-bit*)
  20274. case $lt_cv_prog_gnu_ld in
  20275. @@ -7449,9 +7303,9 @@
  20276. if test -n "$ac_tool_prefix"; then
  20277. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20278. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20279. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20281. $as_echo_n "checking for $ac_word... " >&6; }
  20282. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  20283. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  20284. $as_echo_n "(cached) " >&6
  20285. else
  20286. if test -n "$DSYMUTIL"; then
  20287. @@ -7462,24 +7316,24 @@
  20288. do
  20289. IFS=$as_save_IFS
  20290. test -z "$as_dir" && as_dir=.
  20291. - for ac_exec_ext in '' $ac_executable_extensions; do
  20292. + for ac_exec_ext in '' $ac_executable_extensions; do
  20293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20294. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20295. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20296. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20297. break 2
  20298. fi
  20299. done
  20300. -done
  20301. + done
  20302. IFS=$as_save_IFS
  20303. fi
  20304. fi
  20305. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20306. if test -n "$DSYMUTIL"; then
  20307. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  20308. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  20309. $as_echo "$DSYMUTIL" >&6; }
  20310. else
  20311. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20312. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20313. $as_echo "no" >&6; }
  20314. fi
  20315. @@ -7489,9 +7343,9 @@
  20316. ac_ct_DSYMUTIL=$DSYMUTIL
  20317. # Extract the first word of "dsymutil", so it can be a program name with args.
  20318. set dummy dsymutil; ac_word=$2
  20319. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20320. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20321. $as_echo_n "checking for $ac_word... " >&6; }
  20322. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  20323. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  20324. $as_echo_n "(cached) " >&6
  20325. else
  20326. if test -n "$ac_ct_DSYMUTIL"; then
  20327. @@ -7502,24 +7356,24 @@
  20328. do
  20329. IFS=$as_save_IFS
  20330. test -z "$as_dir" && as_dir=.
  20331. - for ac_exec_ext in '' $ac_executable_extensions; do
  20332. + for ac_exec_ext in '' $ac_executable_extensions; do
  20333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20334. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20335. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20336. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20337. break 2
  20338. fi
  20339. done
  20340. -done
  20341. + done
  20342. IFS=$as_save_IFS
  20343. fi
  20344. fi
  20345. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20346. if test -n "$ac_ct_DSYMUTIL"; then
  20347. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  20348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  20349. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  20350. else
  20351. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20352. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20353. $as_echo "no" >&6; }
  20354. fi
  20355. @@ -7528,7 +7382,7 @@
  20356. else
  20357. case $cross_compiling:$ac_tool_warned in
  20358. yes:)
  20359. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20362. ac_tool_warned=yes ;;
  20363. esac
  20364. @@ -7541,9 +7395,9 @@
  20365. if test -n "$ac_tool_prefix"; then
  20366. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20367. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20368. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20369. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20370. $as_echo_n "checking for $ac_word... " >&6; }
  20371. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  20372. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  20373. $as_echo_n "(cached) " >&6
  20374. else
  20375. if test -n "$NMEDIT"; then
  20376. @@ -7554,24 +7408,24 @@
  20377. do
  20378. IFS=$as_save_IFS
  20379. test -z "$as_dir" && as_dir=.
  20380. - for ac_exec_ext in '' $ac_executable_extensions; do
  20381. + for ac_exec_ext in '' $ac_executable_extensions; do
  20382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20383. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  20384. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20385. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20386. break 2
  20387. fi
  20388. done
  20389. -done
  20390. + done
  20391. IFS=$as_save_IFS
  20392. fi
  20393. fi
  20394. NMEDIT=$ac_cv_prog_NMEDIT
  20395. if test -n "$NMEDIT"; then
  20396. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  20397. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  20398. $as_echo "$NMEDIT" >&6; }
  20399. else
  20400. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20402. $as_echo "no" >&6; }
  20403. fi
  20404. @@ -7581,9 +7435,9 @@
  20405. ac_ct_NMEDIT=$NMEDIT
  20406. # Extract the first word of "nmedit", so it can be a program name with args.
  20407. set dummy nmedit; ac_word=$2
  20408. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20409. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20410. $as_echo_n "checking for $ac_word... " >&6; }
  20411. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  20412. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  20413. $as_echo_n "(cached) " >&6
  20414. else
  20415. if test -n "$ac_ct_NMEDIT"; then
  20416. @@ -7594,24 +7448,24 @@
  20417. do
  20418. IFS=$as_save_IFS
  20419. test -z "$as_dir" && as_dir=.
  20420. - for ac_exec_ext in '' $ac_executable_extensions; do
  20421. + for ac_exec_ext in '' $ac_executable_extensions; do
  20422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20423. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20424. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20425. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20426. break 2
  20427. fi
  20428. done
  20429. -done
  20430. + done
  20431. IFS=$as_save_IFS
  20432. fi
  20433. fi
  20434. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20435. if test -n "$ac_ct_NMEDIT"; then
  20436. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  20437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  20438. $as_echo "$ac_ct_NMEDIT" >&6; }
  20439. else
  20440. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20442. $as_echo "no" >&6; }
  20443. fi
  20444. @@ -7620,7 +7474,7 @@
  20445. else
  20446. case $cross_compiling:$ac_tool_warned in
  20447. yes:)
  20448. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20451. ac_tool_warned=yes ;;
  20452. esac
  20453. @@ -7633,9 +7487,9 @@
  20454. if test -n "$ac_tool_prefix"; then
  20455. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  20456. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  20457. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20459. $as_echo_n "checking for $ac_word... " >&6; }
  20460. -if test "${ac_cv_prog_LIPO+set}" = set; then
  20461. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  20462. $as_echo_n "(cached) " >&6
  20463. else
  20464. if test -n "$LIPO"; then
  20465. @@ -7646,24 +7500,24 @@
  20466. do
  20467. IFS=$as_save_IFS
  20468. test -z "$as_dir" && as_dir=.
  20469. - for ac_exec_ext in '' $ac_executable_extensions; do
  20470. + for ac_exec_ext in '' $ac_executable_extensions; do
  20471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20472. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  20473. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20474. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20475. break 2
  20476. fi
  20477. done
  20478. -done
  20479. + done
  20480. IFS=$as_save_IFS
  20481. fi
  20482. fi
  20483. LIPO=$ac_cv_prog_LIPO
  20484. if test -n "$LIPO"; then
  20485. - { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  20486. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  20487. $as_echo "$LIPO" >&6; }
  20488. else
  20489. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20490. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20491. $as_echo "no" >&6; }
  20492. fi
  20493. @@ -7673,9 +7527,9 @@
  20494. ac_ct_LIPO=$LIPO
  20495. # Extract the first word of "lipo", so it can be a program name with args.
  20496. set dummy lipo; ac_word=$2
  20497. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20499. $as_echo_n "checking for $ac_word... " >&6; }
  20500. -if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  20501. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  20502. $as_echo_n "(cached) " >&6
  20503. else
  20504. if test -n "$ac_ct_LIPO"; then
  20505. @@ -7686,24 +7540,24 @@
  20506. do
  20507. IFS=$as_save_IFS
  20508. test -z "$as_dir" && as_dir=.
  20509. - for ac_exec_ext in '' $ac_executable_extensions; do
  20510. + for ac_exec_ext in '' $ac_executable_extensions; do
  20511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20512. ac_cv_prog_ac_ct_LIPO="lipo"
  20513. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20515. break 2
  20516. fi
  20517. done
  20518. -done
  20519. + done
  20520. IFS=$as_save_IFS
  20521. fi
  20522. fi
  20523. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  20524. if test -n "$ac_ct_LIPO"; then
  20525. - { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  20526. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  20527. $as_echo "$ac_ct_LIPO" >&6; }
  20528. else
  20529. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20531. $as_echo "no" >&6; }
  20532. fi
  20533. @@ -7712,7 +7566,7 @@
  20534. else
  20535. case $cross_compiling:$ac_tool_warned in
  20536. yes:)
  20537. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20540. ac_tool_warned=yes ;;
  20541. esac
  20542. @@ -7725,9 +7579,9 @@
  20543. if test -n "$ac_tool_prefix"; then
  20544. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  20545. set dummy ${ac_tool_prefix}otool; ac_word=$2
  20546. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20547. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20548. $as_echo_n "checking for $ac_word... " >&6; }
  20549. -if test "${ac_cv_prog_OTOOL+set}" = set; then
  20550. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  20551. $as_echo_n "(cached) " >&6
  20552. else
  20553. if test -n "$OTOOL"; then
  20554. @@ -7738,24 +7592,24 @@
  20555. do
  20556. IFS=$as_save_IFS
  20557. test -z "$as_dir" && as_dir=.
  20558. - for ac_exec_ext in '' $ac_executable_extensions; do
  20559. + for ac_exec_ext in '' $ac_executable_extensions; do
  20560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20561. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  20562. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20563. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20564. break 2
  20565. fi
  20566. done
  20567. -done
  20568. + done
  20569. IFS=$as_save_IFS
  20570. fi
  20571. fi
  20572. OTOOL=$ac_cv_prog_OTOOL
  20573. if test -n "$OTOOL"; then
  20574. - { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  20575. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  20576. $as_echo "$OTOOL" >&6; }
  20577. else
  20578. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20579. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20580. $as_echo "no" >&6; }
  20581. fi
  20582. @@ -7765,9 +7619,9 @@
  20583. ac_ct_OTOOL=$OTOOL
  20584. # Extract the first word of "otool", so it can be a program name with args.
  20585. set dummy otool; ac_word=$2
  20586. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20588. $as_echo_n "checking for $ac_word... " >&6; }
  20589. -if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  20590. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  20591. $as_echo_n "(cached) " >&6
  20592. else
  20593. if test -n "$ac_ct_OTOOL"; then
  20594. @@ -7778,24 +7632,24 @@
  20595. do
  20596. IFS=$as_save_IFS
  20597. test -z "$as_dir" && as_dir=.
  20598. - for ac_exec_ext in '' $ac_executable_extensions; do
  20599. + for ac_exec_ext in '' $ac_executable_extensions; do
  20600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20601. ac_cv_prog_ac_ct_OTOOL="otool"
  20602. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20603. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20604. break 2
  20605. fi
  20606. done
  20607. -done
  20608. + done
  20609. IFS=$as_save_IFS
  20610. fi
  20611. fi
  20612. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  20613. if test -n "$ac_ct_OTOOL"; then
  20614. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  20615. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  20616. $as_echo "$ac_ct_OTOOL" >&6; }
  20617. else
  20618. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20619. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20620. $as_echo "no" >&6; }
  20621. fi
  20622. @@ -7804,7 +7658,7 @@
  20623. else
  20624. case $cross_compiling:$ac_tool_warned in
  20625. yes:)
  20626. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20629. ac_tool_warned=yes ;;
  20630. esac
  20631. @@ -7817,9 +7671,9 @@
  20632. if test -n "$ac_tool_prefix"; then
  20633. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  20634. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  20635. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20637. $as_echo_n "checking for $ac_word... " >&6; }
  20638. -if test "${ac_cv_prog_OTOOL64+set}" = set; then
  20639. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  20640. $as_echo_n "(cached) " >&6
  20641. else
  20642. if test -n "$OTOOL64"; then
  20643. @@ -7830,24 +7684,24 @@
  20644. do
  20645. IFS=$as_save_IFS
  20646. test -z "$as_dir" && as_dir=.
  20647. - for ac_exec_ext in '' $ac_executable_extensions; do
  20648. + for ac_exec_ext in '' $ac_executable_extensions; do
  20649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20650. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  20651. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20652. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20653. break 2
  20654. fi
  20655. done
  20656. -done
  20657. + done
  20658. IFS=$as_save_IFS
  20659. fi
  20660. fi
  20661. OTOOL64=$ac_cv_prog_OTOOL64
  20662. if test -n "$OTOOL64"; then
  20663. - { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  20664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  20665. $as_echo "$OTOOL64" >&6; }
  20666. else
  20667. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20668. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20669. $as_echo "no" >&6; }
  20670. fi
  20671. @@ -7857,9 +7711,9 @@
  20672. ac_ct_OTOOL64=$OTOOL64
  20673. # Extract the first word of "otool64", so it can be a program name with args.
  20674. set dummy otool64; ac_word=$2
  20675. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20676. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20677. $as_echo_n "checking for $ac_word... " >&6; }
  20678. -if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  20679. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  20680. $as_echo_n "(cached) " >&6
  20681. else
  20682. if test -n "$ac_ct_OTOOL64"; then
  20683. @@ -7870,24 +7724,24 @@
  20684. do
  20685. IFS=$as_save_IFS
  20686. test -z "$as_dir" && as_dir=.
  20687. - for ac_exec_ext in '' $ac_executable_extensions; do
  20688. + for ac_exec_ext in '' $ac_executable_extensions; do
  20689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20690. ac_cv_prog_ac_ct_OTOOL64="otool64"
  20691. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20692. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20693. break 2
  20694. fi
  20695. done
  20696. -done
  20697. + done
  20698. IFS=$as_save_IFS
  20699. fi
  20700. fi
  20701. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  20702. if test -n "$ac_ct_OTOOL64"; then
  20703. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  20704. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  20705. $as_echo "$ac_ct_OTOOL64" >&6; }
  20706. else
  20707. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20708. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20709. $as_echo "no" >&6; }
  20710. fi
  20711. @@ -7896,7 +7750,7 @@
  20712. else
  20713. case $cross_compiling:$ac_tool_warned in
  20714. yes:)
  20715. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20716. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20718. ac_tool_warned=yes ;;
  20719. esac
  20720. @@ -7932,9 +7786,9 @@
  20721. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  20722. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  20723. $as_echo_n "checking for -single_module linker flag... " >&6; }
  20724. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  20725. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  20726. $as_echo_n "(cached) " >&6
  20727. else
  20728. lt_cv_apple_cc_single_mod=no
  20729. @@ -7959,22 +7813,18 @@
  20730. rm -f conftest.*
  20731. fi
  20732. fi
  20733. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  20734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  20735. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  20736. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  20737. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  20738. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  20739. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  20740. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  20741. $as_echo_n "(cached) " >&6
  20742. else
  20743. lt_cv_ld_exported_symbols_list=no
  20744. save_LDFLAGS=$LDFLAGS
  20745. echo "_main" > conftest.sym
  20746. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  20747. - cat >conftest.$ac_ext <<_ACEOF
  20748. -/* confdefs.h. */
  20749. -_ACEOF
  20750. -cat confdefs.h >>conftest.$ac_ext
  20751. -cat >>conftest.$ac_ext <<_ACEOF
  20752. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20753. /* end confdefs.h. */
  20754. int
  20755. @@ -7985,42 +7835,17 @@
  20756. return 0;
  20757. }
  20758. _ACEOF
  20759. -rm -f conftest.$ac_objext conftest$ac_exeext
  20760. -if { (ac_try="$ac_link"
  20761. -case "(($ac_try" in
  20762. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20763. - *) ac_try_echo=$ac_try;;
  20764. -esac
  20765. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20766. -$as_echo "$ac_try_echo") >&5
  20767. - (eval "$ac_link") 2>conftest.er1
  20768. - ac_status=$?
  20769. - grep -v '^ *+' conftest.er1 >conftest.err
  20770. - rm -f conftest.er1
  20771. - cat conftest.err >&5
  20772. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20773. - (exit $ac_status); } && {
  20774. - test -z "$ac_c_werror_flag" ||
  20775. - test ! -s conftest.err
  20776. - } && test -s conftest$ac_exeext && {
  20777. - test "$cross_compiling" = yes ||
  20778. - $as_test_x conftest$ac_exeext
  20779. - }; then
  20780. +if ac_fn_c_try_link "$LINENO"; then :
  20781. lt_cv_ld_exported_symbols_list=yes
  20782. else
  20783. - $as_echo "$as_me: failed program was:" >&5
  20784. -sed 's/^/| /' conftest.$ac_ext >&5
  20785. -
  20786. - lt_cv_ld_exported_symbols_list=no
  20787. + lt_cv_ld_exported_symbols_list=no
  20788. fi
  20789. -
  20790. -rm -rf conftest.dSYM
  20791. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20792. - conftest$ac_exeext conftest.$ac_ext
  20793. +rm -f core conftest.err conftest.$ac_objext \
  20794. + conftest$ac_exeext conftest.$ac_ext
  20795. LDFLAGS="$save_LDFLAGS"
  20796. fi
  20797. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  20798. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  20799. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  20800. case $host_os in
  20801. rhapsody* | darwin1.[012])
  20802. @@ -8057,62 +7882,13 @@
  20803. ;;
  20804. esac
  20805. -
  20806. for ac_header in dlfcn.h
  20807. -do
  20808. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20809. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20810. -$as_echo_n "checking for $ac_header... " >&6; }
  20811. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20812. - $as_echo_n "(cached) " >&6
  20813. -else
  20814. - cat >conftest.$ac_ext <<_ACEOF
  20815. -/* confdefs.h. */
  20816. -_ACEOF
  20817. -cat confdefs.h >>conftest.$ac_ext
  20818. -cat >>conftest.$ac_ext <<_ACEOF
  20819. -/* end confdefs.h. */
  20820. -$ac_includes_default
  20821. -
  20822. -#include <$ac_header>
  20823. -_ACEOF
  20824. -rm -f conftest.$ac_objext
  20825. -if { (ac_try="$ac_compile"
  20826. -case "(($ac_try" in
  20827. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20828. - *) ac_try_echo=$ac_try;;
  20829. -esac
  20830. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20831. -$as_echo "$ac_try_echo") >&5
  20832. - (eval "$ac_compile") 2>conftest.er1
  20833. - ac_status=$?
  20834. - grep -v '^ *+' conftest.er1 >conftest.err
  20835. - rm -f conftest.er1
  20836. - cat conftest.err >&5
  20837. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20838. - (exit $ac_status); } && {
  20839. - test -z "$ac_c_werror_flag" ||
  20840. - test ! -s conftest.err
  20841. - } && test -s conftest.$ac_objext; then
  20842. - eval "$as_ac_Header=yes"
  20843. -else
  20844. - $as_echo "$as_me: failed program was:" >&5
  20845. -sed 's/^/| /' conftest.$ac_ext >&5
  20846. -
  20847. - eval "$as_ac_Header=no"
  20848. -fi
  20849. -
  20850. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20851. -fi
  20852. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  20853. - $as_echo "$as_val"'`
  20854. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20855. -$as_echo "$ac_res" >&6; }
  20856. -as_val=`eval 'as_val=${'$as_ac_Header'}
  20857. - $as_echo "$as_val"'`
  20858. - if test "x$as_val" = x""yes; then
  20859. - cat >>confdefs.h <<_ACEOF
  20860. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20861. +do :
  20862. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  20863. +"
  20864. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  20865. + cat >>confdefs.h <<_ACEOF
  20866. +#define HAVE_DLFCN_H 1
  20867. _ACEOF
  20868. fi
  20869. @@ -8128,7 +7904,7 @@
  20870. # Check whether --enable-shared was given.
  20871. -if test "${enable_shared+set}" = set; then
  20872. +if test "${enable_shared+set}" = set; then :
  20873. enableval=$enable_shared; p=${PACKAGE-default}
  20874. case $enableval in
  20875. yes) enable_shared=yes ;;
  20876. @@ -8159,7 +7935,7 @@
  20877. # Check whether --enable-static was given.
  20878. -if test "${enable_static+set}" = set; then
  20879. +if test "${enable_static+set}" = set; then :
  20880. enableval=$enable_static; p=${PACKAGE-default}
  20881. case $enableval in
  20882. yes) enable_static=yes ;;
  20883. @@ -8191,7 +7967,7 @@
  20884. # Check whether --with-pic was given.
  20885. -if test "${with_pic+set}" = set; then
  20886. +if test "${with_pic+set}" = set; then :
  20887. withval=$with_pic; pic_mode="$withval"
  20888. else
  20889. pic_mode=default
  20890. @@ -8207,7 +7983,7 @@
  20891. # Check whether --enable-fast-install was given.
  20892. -if test "${enable_fast_install+set}" = set; then
  20893. +if test "${enable_fast_install+set}" = set; then :
  20894. enableval=$enable_fast_install; p=${PACKAGE-default}
  20895. case $enableval in
  20896. yes) enable_fast_install=yes ;;
  20897. @@ -8288,9 +8064,9 @@
  20898. setopt NO_GLOB_SUBST
  20899. fi
  20900. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  20901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  20902. $as_echo_n "checking for objdir... " >&6; }
  20903. -if test "${lt_cv_objdir+set}" = set; then
  20904. +if test "${lt_cv_objdir+set}" = set; then :
  20905. $as_echo_n "(cached) " >&6
  20906. else
  20907. rm -f .libs 2>/dev/null
  20908. @@ -8303,7 +8079,7 @@
  20909. fi
  20910. rmdir .libs 2>/dev/null
  20911. fi
  20912. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  20913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  20914. $as_echo "$lt_cv_objdir" >&6; }
  20915. objdir=$lt_cv_objdir
  20916. @@ -8396,9 +8172,9 @@
  20917. case $deplibs_check_method in
  20918. file_magic*)
  20919. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20920. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  20921. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  20922. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  20923. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20924. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  20925. $as_echo_n "(cached) " >&6
  20926. else
  20927. case $MAGIC_CMD in
  20928. @@ -8449,10 +8225,10 @@
  20929. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20930. if test -n "$MAGIC_CMD"; then
  20931. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20932. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  20933. $as_echo "$MAGIC_CMD" >&6; }
  20934. else
  20935. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20937. $as_echo "no" >&6; }
  20938. fi
  20939. @@ -8462,9 +8238,9 @@
  20940. if test -z "$lt_cv_path_MAGIC_CMD"; then
  20941. if test -n "$ac_tool_prefix"; then
  20942. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  20943. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  20944. $as_echo_n "checking for file... " >&6; }
  20945. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20946. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  20947. $as_echo_n "(cached) " >&6
  20948. else
  20949. case $MAGIC_CMD in
  20950. @@ -8515,10 +8291,10 @@
  20951. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20952. if test -n "$MAGIC_CMD"; then
  20953. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20954. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  20955. $as_echo "$MAGIC_CMD" >&6; }
  20956. else
  20957. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20959. $as_echo "no" >&6; }
  20960. fi
  20961. @@ -8588,6 +8364,10 @@
  20962. $RM -r conftest*
  20963. +## CAVEAT EMPTOR:
  20964. +## There is no encapsulation within the following macros, do not change
  20965. +## the running order or otherwise move them around unless you know exactly
  20966. +## what you are doing...
  20967. if test -n "$compiler"; then
  20968. lt_prog_compiler_no_builtin_flag=
  20969. @@ -8595,9 +8375,9 @@
  20970. if test "$GCC" = yes; then
  20971. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  20972. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  20973. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  20974. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  20975. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  20976. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  20977. $as_echo_n "(cached) " >&6
  20978. else
  20979. lt_cv_prog_compiler_rtti_exceptions=no
  20980. @@ -8613,11 +8393,11 @@
  20981. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20982. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20983. -e 's:$: $lt_compiler_flag:'`
  20984. - (eval echo "\"\$as_me:8616: $lt_compile\"" >&5)
  20985. + (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
  20986. (eval "$lt_compile" 2>conftest.err)
  20987. ac_status=$?
  20988. cat conftest.err >&5
  20989. - echo "$as_me:8620: \$? = $ac_status" >&5
  20990. + echo "$as_me:8400: \$? = $ac_status" >&5
  20991. if (exit $ac_status) && test -s "$ac_outfile"; then
  20992. # The compiler can only warn and ignore the option if not recognized
  20993. # So say no if there are warnings other than the usual output.
  20994. @@ -8630,7 +8410,7 @@
  20995. $RM conftest*
  20996. fi
  20997. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  20998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  20999. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21000. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21001. @@ -8650,7 +8430,7 @@
  21002. lt_prog_compiler_pic=
  21003. lt_prog_compiler_static=
  21004. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  21006. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  21007. if test "$GCC" = yes; then
  21008. @@ -8782,7 +8562,7 @@
  21009. lt_prog_compiler_static='-non_shared'
  21010. ;;
  21011. - linux* | k*bsd*-gnu)
  21012. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21013. case $cc_basename in
  21014. # old Intel for x86_64 which still supported -KPIC.
  21015. ecc*)
  21016. @@ -8922,7 +8702,7 @@
  21017. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  21018. ;;
  21019. esac
  21020. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  21021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  21022. $as_echo "$lt_prog_compiler_pic" >&6; }
  21023. @@ -8934,9 +8714,9 @@
  21024. # Check to make sure the PIC flag actually works.
  21025. #
  21026. if test -n "$lt_prog_compiler_pic"; then
  21027. - { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  21028. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  21029. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  21030. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  21031. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  21032. $as_echo_n "(cached) " >&6
  21033. else
  21034. lt_cv_prog_compiler_pic_works=no
  21035. @@ -8952,11 +8732,11 @@
  21036. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21037. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21038. -e 's:$: $lt_compiler_flag:'`
  21039. - (eval echo "\"\$as_me:8955: $lt_compile\"" >&5)
  21040. + (eval echo "\"\$as_me:8735: $lt_compile\"" >&5)
  21041. (eval "$lt_compile" 2>conftest.err)
  21042. ac_status=$?
  21043. cat conftest.err >&5
  21044. - echo "$as_me:8959: \$? = $ac_status" >&5
  21045. + echo "$as_me:8739: \$? = $ac_status" >&5
  21046. if (exit $ac_status) && test -s "$ac_outfile"; then
  21047. # The compiler can only warn and ignore the option if not recognized
  21048. # So say no if there are warnings other than the usual output.
  21049. @@ -8969,7 +8749,7 @@
  21050. $RM conftest*
  21051. fi
  21052. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  21053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  21054. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  21055. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  21056. @@ -8993,9 +8773,9 @@
  21057. # Check to make sure the static flag actually works.
  21058. #
  21059. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  21060. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21062. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  21063. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  21064. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  21065. $as_echo_n "(cached) " >&6
  21066. else
  21067. lt_cv_prog_compiler_static_works=no
  21068. @@ -9021,7 +8801,7 @@
  21069. LDFLAGS="$save_LDFLAGS"
  21070. fi
  21071. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  21072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  21073. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  21074. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  21075. @@ -9036,9 +8816,9 @@
  21076. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  21077. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  21078. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  21079. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  21080. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  21081. $as_echo_n "(cached) " >&6
  21082. else
  21083. lt_cv_prog_compiler_c_o=no
  21084. @@ -9057,11 +8837,11 @@
  21085. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21086. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21087. -e 's:$: $lt_compiler_flag:'`
  21088. - (eval echo "\"\$as_me:9060: $lt_compile\"" >&5)
  21089. + (eval echo "\"\$as_me:8840: $lt_compile\"" >&5)
  21090. (eval "$lt_compile" 2>out/conftest.err)
  21091. ac_status=$?
  21092. cat out/conftest.err >&5
  21093. - echo "$as_me:9064: \$? = $ac_status" >&5
  21094. + echo "$as_me:8844: \$? = $ac_status" >&5
  21095. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  21096. then
  21097. # The compiler can only warn and ignore the option if not recognized
  21098. @@ -9083,7 +8863,7 @@
  21099. $RM conftest*
  21100. fi
  21101. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  21102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  21103. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  21104. @@ -9091,9 +8871,9 @@
  21105. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  21106. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  21107. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  21108. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  21109. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  21110. $as_echo_n "(cached) " >&6
  21111. else
  21112. lt_cv_prog_compiler_c_o=no
  21113. @@ -9112,11 +8892,11 @@
  21114. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21115. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21116. -e 's:$: $lt_compiler_flag:'`
  21117. - (eval echo "\"\$as_me:9115: $lt_compile\"" >&5)
  21118. + (eval echo "\"\$as_me:8895: $lt_compile\"" >&5)
  21119. (eval "$lt_compile" 2>out/conftest.err)
  21120. ac_status=$?
  21121. cat out/conftest.err >&5
  21122. - echo "$as_me:9119: \$? = $ac_status" >&5
  21123. + echo "$as_me:8899: \$? = $ac_status" >&5
  21124. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  21125. then
  21126. # The compiler can only warn and ignore the option if not recognized
  21127. @@ -9138,7 +8918,7 @@
  21128. $RM conftest*
  21129. fi
  21130. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  21131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  21132. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  21133. @@ -9147,7 +8927,7 @@
  21134. hard_links="nottested"
  21135. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  21136. # do not overwrite the value of need_locks provided by the user
  21137. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  21138. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  21139. $as_echo_n "checking if we can lock with hard links... " >&6; }
  21140. hard_links=yes
  21141. $RM conftest*
  21142. @@ -9155,10 +8935,10 @@
  21143. touch conftest.a
  21144. ln conftest.a conftest.b 2>&5 || hard_links=no
  21145. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21146. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  21147. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  21148. $as_echo "$hard_links" >&6; }
  21149. if test "$hard_links" = no; then
  21150. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  21151. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  21152. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  21153. need_locks=warn
  21154. fi
  21155. @@ -9171,7 +8951,7 @@
  21156. - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  21157. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  21158. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  21159. runpath_var=
  21160. @@ -9231,6 +9011,9 @@
  21161. openbsd*)
  21162. with_gnu_ld=no
  21163. ;;
  21164. + linux* | k*bsd*-gnu)
  21165. + link_all_deplibs=no
  21166. + ;;
  21167. esac
  21168. ld_shlibs=yes
  21169. @@ -9252,6 +9035,7 @@
  21170. fi
  21171. supports_anon_versioning=no
  21172. case `$LD -v 2>&1` in
  21173. + *GNU\ gold*) supports_anon_versioning=yes ;;
  21174. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  21175. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  21176. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  21177. @@ -9343,7 +9127,7 @@
  21178. 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'
  21179. ;;
  21180. - gnu* | linux* | tpf* | k*bsd*-gnu)
  21181. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  21182. tmp_diet=no
  21183. if test "$host_os" = linux-dietlibc; then
  21184. case $cc_basename in
  21185. @@ -9413,7 +9197,7 @@
  21186. fi
  21187. ;;
  21188. - netbsd*)
  21189. + netbsd* | netbsdelf*-gnu)
  21190. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  21191. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  21192. wlarc=
  21193. @@ -9588,6 +9372,7 @@
  21194. if test "$aix_use_runtimelinking" = yes; then
  21195. shared_flag="$shared_flag "'${wl}-G'
  21196. fi
  21197. + link_all_deplibs=no
  21198. else
  21199. # not using gcc
  21200. if test "$host_cpu" = ia64; then
  21201. @@ -9613,11 +9398,7 @@
  21202. allow_undefined_flag='-berok'
  21203. # Determine the default libpath from the value encoded in an
  21204. # empty executable.
  21205. - cat >conftest.$ac_ext <<_ACEOF
  21206. -/* confdefs.h. */
  21207. -_ACEOF
  21208. -cat confdefs.h >>conftest.$ac_ext
  21209. -cat >>conftest.$ac_ext <<_ACEOF
  21210. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21211. /* end confdefs.h. */
  21212. int
  21213. @@ -9628,27 +9409,7 @@
  21214. return 0;
  21215. }
  21216. _ACEOF
  21217. -rm -f conftest.$ac_objext conftest$ac_exeext
  21218. -if { (ac_try="$ac_link"
  21219. -case "(($ac_try" in
  21220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21221. - *) ac_try_echo=$ac_try;;
  21222. -esac
  21223. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21224. -$as_echo "$ac_try_echo") >&5
  21225. - (eval "$ac_link") 2>conftest.er1
  21226. - ac_status=$?
  21227. - grep -v '^ *+' conftest.er1 >conftest.err
  21228. - rm -f conftest.er1
  21229. - cat conftest.err >&5
  21230. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21231. - (exit $ac_status); } && {
  21232. - test -z "$ac_c_werror_flag" ||
  21233. - test ! -s conftest.err
  21234. - } && test -s conftest$ac_exeext && {
  21235. - test "$cross_compiling" = yes ||
  21236. - $as_test_x conftest$ac_exeext
  21237. - }; then
  21238. +if ac_fn_c_try_link "$LINENO"; then :
  21239. lt_aix_libpath_sed='
  21240. /Import File Strings/,/^$/ {
  21241. @@ -9662,16 +9423,9 @@
  21242. if test -z "$aix_libpath"; then
  21243. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21244. fi
  21245. -else
  21246. - $as_echo "$as_me: failed program was:" >&5
  21247. -sed 's/^/| /' conftest.$ac_ext >&5
  21248. -
  21249. -
  21250. fi
  21251. -
  21252. -rm -rf conftest.dSYM
  21253. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21254. - conftest$ac_exeext conftest.$ac_ext
  21255. +rm -f core conftest.err conftest.$ac_objext \
  21256. + conftest$ac_exeext conftest.$ac_ext
  21257. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21258. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  21259. @@ -9684,11 +9438,7 @@
  21260. else
  21261. # Determine the default libpath from the value encoded in an
  21262. # empty executable.
  21263. - cat >conftest.$ac_ext <<_ACEOF
  21264. -/* confdefs.h. */
  21265. -_ACEOF
  21266. -cat confdefs.h >>conftest.$ac_ext
  21267. -cat >>conftest.$ac_ext <<_ACEOF
  21268. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21269. /* end confdefs.h. */
  21270. int
  21271. @@ -9699,27 +9449,7 @@
  21272. return 0;
  21273. }
  21274. _ACEOF
  21275. -rm -f conftest.$ac_objext conftest$ac_exeext
  21276. -if { (ac_try="$ac_link"
  21277. -case "(($ac_try" in
  21278. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21279. - *) ac_try_echo=$ac_try;;
  21280. -esac
  21281. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21282. -$as_echo "$ac_try_echo") >&5
  21283. - (eval "$ac_link") 2>conftest.er1
  21284. - ac_status=$?
  21285. - grep -v '^ *+' conftest.er1 >conftest.err
  21286. - rm -f conftest.er1
  21287. - cat conftest.err >&5
  21288. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21289. - (exit $ac_status); } && {
  21290. - test -z "$ac_c_werror_flag" ||
  21291. - test ! -s conftest.err
  21292. - } && test -s conftest$ac_exeext && {
  21293. - test "$cross_compiling" = yes ||
  21294. - $as_test_x conftest$ac_exeext
  21295. - }; then
  21296. +if ac_fn_c_try_link "$LINENO"; then :
  21297. lt_aix_libpath_sed='
  21298. /Import File Strings/,/^$/ {
  21299. @@ -9733,16 +9463,9 @@
  21300. if test -z "$aix_libpath"; then
  21301. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21302. fi
  21303. -else
  21304. - $as_echo "$as_me: failed program was:" >&5
  21305. -sed 's/^/| /' conftest.$ac_ext >&5
  21306. -
  21307. -
  21308. fi
  21309. -
  21310. -rm -rf conftest.dSYM
  21311. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21312. - conftest$ac_exeext conftest.$ac_ext
  21313. +rm -f core conftest.err conftest.$ac_objext \
  21314. + conftest$ac_exeext conftest.$ac_ext
  21315. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21316. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  21317. @@ -9954,42 +9677,16 @@
  21318. # implicitly export all symbols.
  21319. save_LDFLAGS="$LDFLAGS"
  21320. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  21321. - cat >conftest.$ac_ext <<_ACEOF
  21322. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21323. +/* end confdefs.h. */
  21324. int foo(void) {}
  21325. _ACEOF
  21326. -rm -f conftest.$ac_objext conftest$ac_exeext
  21327. -if { (ac_try="$ac_link"
  21328. -case "(($ac_try" in
  21329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21330. - *) ac_try_echo=$ac_try;;
  21331. -esac
  21332. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21333. -$as_echo "$ac_try_echo") >&5
  21334. - (eval "$ac_link") 2>conftest.er1
  21335. - ac_status=$?
  21336. - grep -v '^ *+' conftest.er1 >conftest.err
  21337. - rm -f conftest.er1
  21338. - cat conftest.err >&5
  21339. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21340. - (exit $ac_status); } && {
  21341. - test -z "$ac_c_werror_flag" ||
  21342. - test ! -s conftest.err
  21343. - } && test -s conftest$ac_exeext && {
  21344. - test "$cross_compiling" = yes ||
  21345. - $as_test_x conftest$ac_exeext
  21346. - }; then
  21347. +if ac_fn_c_try_link "$LINENO"; then :
  21348. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  21349. -else
  21350. - $as_echo "$as_me: failed program was:" >&5
  21351. -sed 's/^/| /' conftest.$ac_ext >&5
  21352. -
  21353. -
  21354. fi
  21355. -
  21356. -rm -rf conftest.dSYM
  21357. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21358. - conftest$ac_exeext conftest.$ac_ext
  21359. +rm -f core conftest.err conftest.$ac_objext \
  21360. + conftest$ac_exeext conftest.$ac_ext
  21361. LDFLAGS="$save_LDFLAGS"
  21362. else
  21363. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  21364. @@ -10002,7 +9699,7 @@
  21365. link_all_deplibs=yes
  21366. ;;
  21367. - netbsd*)
  21368. + netbsd* | netbsdelf*-gnu)
  21369. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  21370. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  21371. else
  21372. @@ -10245,7 +9942,7 @@
  21373. fi
  21374. fi
  21375. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  21376. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  21377. $as_echo "$ld_shlibs" >&6; }
  21378. test "$ld_shlibs" = no && can_build_shared=no
  21379. @@ -10282,16 +9979,16 @@
  21380. # Test whether the compiler implicitly links with -lc since on some
  21381. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  21382. # to ld, don't add -lc before -lgcc.
  21383. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  21384. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  21385. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  21386. $RM conftest*
  21387. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21388. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21389. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  21390. (eval $ac_compile) 2>&5
  21391. ac_status=$?
  21392. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21393. - (exit $ac_status); } 2>conftest.err; then
  21394. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21395. + test $ac_status = 0; } 2>conftest.err; then
  21396. soname=conftest
  21397. lib=conftest
  21398. libobjs=conftest.$ac_objext
  21399. @@ -10305,11 +10002,11 @@
  21400. libname=conftest
  21401. lt_save_allow_undefined_flag=$allow_undefined_flag
  21402. allow_undefined_flag=
  21403. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  21404. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  21405. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  21406. ac_status=$?
  21407. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21408. - (exit $ac_status); }
  21409. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21410. + test $ac_status = 0; }
  21411. then
  21412. archive_cmds_need_lc=no
  21413. else
  21414. @@ -10320,7 +10017,7 @@
  21415. cat conftest.err 1>&5
  21416. fi
  21417. $RM conftest*
  21418. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  21419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  21420. $as_echo "$archive_cmds_need_lc" >&6; }
  21421. ;;
  21422. esac
  21423. @@ -10484,7 +10181,7 @@
  21424. - { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  21425. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  21426. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  21427. if test "$GCC" = yes; then
  21428. @@ -10892,7 +10589,7 @@
  21429. ;;
  21430. # This must be Linux ELF.
  21431. -linux* | k*bsd*-gnu)
  21432. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21433. version_type=linux
  21434. need_lib_prefix=no
  21435. need_version=no
  21436. @@ -10906,11 +10603,7 @@
  21437. save_libdir=$libdir
  21438. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  21439. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  21440. - cat >conftest.$ac_ext <<_ACEOF
  21441. -/* confdefs.h. */
  21442. -_ACEOF
  21443. -cat confdefs.h >>conftest.$ac_ext
  21444. -cat >>conftest.$ac_ext <<_ACEOF
  21445. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21446. /* end confdefs.h. */
  21447. int
  21448. @@ -10921,41 +10614,13 @@
  21449. return 0;
  21450. }
  21451. _ACEOF
  21452. -rm -f conftest.$ac_objext conftest$ac_exeext
  21453. -if { (ac_try="$ac_link"
  21454. -case "(($ac_try" in
  21455. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21456. - *) ac_try_echo=$ac_try;;
  21457. -esac
  21458. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21459. -$as_echo "$ac_try_echo") >&5
  21460. - (eval "$ac_link") 2>conftest.er1
  21461. - ac_status=$?
  21462. - grep -v '^ *+' conftest.er1 >conftest.err
  21463. - rm -f conftest.er1
  21464. - cat conftest.err >&5
  21465. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21466. - (exit $ac_status); } && {
  21467. - test -z "$ac_c_werror_flag" ||
  21468. - test ! -s conftest.err
  21469. - } && test -s conftest$ac_exeext && {
  21470. - test "$cross_compiling" = yes ||
  21471. - $as_test_x conftest$ac_exeext
  21472. - }; then
  21473. - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  21474. +if ac_fn_c_try_link "$LINENO"; then :
  21475. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  21476. shlibpath_overrides_runpath=yes
  21477. fi
  21478. -
  21479. -else
  21480. - $as_echo "$as_me: failed program was:" >&5
  21481. -sed 's/^/| /' conftest.$ac_ext >&5
  21482. -
  21483. -
  21484. fi
  21485. -
  21486. -rm -rf conftest.dSYM
  21487. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21488. - conftest$ac_exeext conftest.$ac_ext
  21489. +rm -f core conftest.err conftest.$ac_objext \
  21490. + conftest$ac_exeext conftest.$ac_ext
  21491. LDFLAGS=$save_LDFLAGS
  21492. libdir=$save_libdir
  21493. @@ -10979,6 +10644,18 @@
  21494. dynamic_linker='GNU/Linux ld.so'
  21495. ;;
  21496. +netbsdelf*-gnu)
  21497. + version_type=linux
  21498. + need_lib_prefix=no
  21499. + need_version=no
  21500. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21501. + soname_spec='${libname}${release}${shared_ext}$major'
  21502. + shlibpath_var=LD_LIBRARY_PATH
  21503. + shlibpath_overrides_runpath=no
  21504. + hardcode_into_libs=yes
  21505. + dynamic_linker='NetBSD ld.elf_so'
  21506. + ;;
  21507. +
  21508. netbsd*)
  21509. version_type=sunos
  21510. need_lib_prefix=no
  21511. @@ -11167,7 +10844,7 @@
  21512. dynamic_linker=no
  21513. ;;
  21514. esac
  21515. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  21516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  21517. $as_echo "$dynamic_linker" >&6; }
  21518. test "$dynamic_linker" = no && can_build_shared=no
  21519. @@ -11269,7 +10946,7 @@
  21520. - { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  21521. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  21522. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  21523. hardcode_action=
  21524. if test -n "$hardcode_libdir_flag_spec" ||
  21525. @@ -11294,7 +10971,7 @@
  21526. # directories.
  21527. hardcode_action=unsupported
  21528. fi
  21529. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  21530. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  21531. $as_echo "$hardcode_action" >&6; }
  21532. if test "$hardcode_action" = relink ||
  21533. @@ -11339,18 +11016,14 @@
  21534. darwin*)
  21535. # if libdl is installed we need to link against it
  21536. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  21537. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21538. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21539. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  21540. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  21541. $as_echo_n "(cached) " >&6
  21542. else
  21543. ac_check_lib_save_LIBS=$LIBS
  21544. LIBS="-ldl $LIBS"
  21545. -cat >conftest.$ac_ext <<_ACEOF
  21546. -/* confdefs.h. */
  21547. -_ACEOF
  21548. -cat confdefs.h >>conftest.$ac_ext
  21549. -cat >>conftest.$ac_ext <<_ACEOF
  21550. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21551. /* end confdefs.h. */
  21552. /* Override any GCC internal prototype to avoid an error.
  21553. @@ -11368,43 +11041,18 @@
  21554. return 0;
  21555. }
  21556. _ACEOF
  21557. -rm -f conftest.$ac_objext conftest$ac_exeext
  21558. -if { (ac_try="$ac_link"
  21559. -case "(($ac_try" in
  21560. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21561. - *) ac_try_echo=$ac_try;;
  21562. -esac
  21563. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21564. -$as_echo "$ac_try_echo") >&5
  21565. - (eval "$ac_link") 2>conftest.er1
  21566. - ac_status=$?
  21567. - grep -v '^ *+' conftest.er1 >conftest.err
  21568. - rm -f conftest.er1
  21569. - cat conftest.err >&5
  21570. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21571. - (exit $ac_status); } && {
  21572. - test -z "$ac_c_werror_flag" ||
  21573. - test ! -s conftest.err
  21574. - } && test -s conftest$ac_exeext && {
  21575. - test "$cross_compiling" = yes ||
  21576. - $as_test_x conftest$ac_exeext
  21577. - }; then
  21578. +if ac_fn_c_try_link "$LINENO"; then :
  21579. ac_cv_lib_dl_dlopen=yes
  21580. else
  21581. - $as_echo "$as_me: failed program was:" >&5
  21582. -sed 's/^/| /' conftest.$ac_ext >&5
  21583. -
  21584. - ac_cv_lib_dl_dlopen=no
  21585. + ac_cv_lib_dl_dlopen=no
  21586. fi
  21587. -
  21588. -rm -rf conftest.dSYM
  21589. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21590. - conftest$ac_exeext conftest.$ac_ext
  21591. +rm -f core conftest.err conftest.$ac_objext \
  21592. + conftest$ac_exeext conftest.$ac_ext
  21593. LIBS=$ac_check_lib_save_LIBS
  21594. fi
  21595. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21597. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21598. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  21599. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  21600. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21601. else
  21602. @@ -11417,33 +11065,19 @@
  21603. ;;
  21604. *)
  21605. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  21606. -$as_echo_n "checking for shl_load... " >&6; }
  21607. -if test "${ac_cv_func_shl_load+set}" = set; then
  21608. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  21609. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  21610. + lt_cv_dlopen="shl_load"
  21611. +else
  21612. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  21613. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  21614. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  21615. $as_echo_n "(cached) " >&6
  21616. else
  21617. - cat >conftest.$ac_ext <<_ACEOF
  21618. -/* confdefs.h. */
  21619. -_ACEOF
  21620. -cat confdefs.h >>conftest.$ac_ext
  21621. -cat >>conftest.$ac_ext <<_ACEOF
  21622. + ac_check_lib_save_LIBS=$LIBS
  21623. +LIBS="-ldld $LIBS"
  21624. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  21627. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21628. -#define shl_load innocuous_shl_load
  21629. -
  21630. -/* System header to define __stub macros and hopefully few prototypes,
  21631. - which can conflict with char shl_load (); below.
  21632. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21633. - <limits.h> exists even on freestanding compilers. */
  21634. -
  21635. -#ifdef __STDC__
  21636. -# include <limits.h>
  21637. -#else
  21638. -# include <assert.h>
  21639. -#endif
  21640. -
  21641. -#undef shl_load
  21642. /* Override any GCC internal prototype to avoid an error.
  21643. Use char because int might match the return type of a GCC
  21644. @@ -11452,13 +11086,6 @@
  21645. extern "C"
  21646. #endif
  21647. char shl_load ();
  21648. -/* The GNU C library defines this for functions which it implements
  21649. - to always fail with ENOSYS. Some functions are actually named
  21650. - something starting with __ and the normal name is an alias. */
  21651. -#if defined __stub_shl_load || defined __stub___shl_load
  21652. -choke me
  21653. -#endif
  21654. -
  21655. int
  21656. main ()
  21657. {
  21658. @@ -11467,56 +11094,32 @@
  21659. return 0;
  21660. }
  21661. _ACEOF
  21662. -rm -f conftest.$ac_objext conftest$ac_exeext
  21663. -if { (ac_try="$ac_link"
  21664. -case "(($ac_try" in
  21665. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21666. - *) ac_try_echo=$ac_try;;
  21667. -esac
  21668. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21669. -$as_echo "$ac_try_echo") >&5
  21670. - (eval "$ac_link") 2>conftest.er1
  21671. - ac_status=$?
  21672. - grep -v '^ *+' conftest.er1 >conftest.err
  21673. - rm -f conftest.er1
  21674. - cat conftest.err >&5
  21675. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21676. - (exit $ac_status); } && {
  21677. - test -z "$ac_c_werror_flag" ||
  21678. - test ! -s conftest.err
  21679. - } && test -s conftest$ac_exeext && {
  21680. - test "$cross_compiling" = yes ||
  21681. - $as_test_x conftest$ac_exeext
  21682. - }; then
  21683. - ac_cv_func_shl_load=yes
  21684. +if ac_fn_c_try_link "$LINENO"; then :
  21685. + ac_cv_lib_dld_shl_load=yes
  21686. else
  21687. - $as_echo "$as_me: failed program was:" >&5
  21688. -sed 's/^/| /' conftest.$ac_ext >&5
  21689. -
  21690. - ac_cv_func_shl_load=no
  21691. + ac_cv_lib_dld_shl_load=no
  21692. fi
  21693. -
  21694. -rm -rf conftest.dSYM
  21695. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21696. - conftest$ac_exeext conftest.$ac_ext
  21697. +rm -f core conftest.err conftest.$ac_objext \
  21698. + conftest$ac_exeext conftest.$ac_ext
  21699. +LIBS=$ac_check_lib_save_LIBS
  21700. fi
  21701. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  21702. -$as_echo "$ac_cv_func_shl_load" >&6; }
  21703. -if test "x$ac_cv_func_shl_load" = x""yes; then
  21704. - lt_cv_dlopen="shl_load"
  21705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  21706. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  21707. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  21708. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  21709. else
  21710. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  21711. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  21712. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  21713. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  21714. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  21715. + lt_cv_dlopen="dlopen"
  21716. +else
  21717. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21718. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  21719. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  21720. $as_echo_n "(cached) " >&6
  21721. else
  21722. ac_check_lib_save_LIBS=$LIBS
  21723. -LIBS="-ldld $LIBS"
  21724. -cat >conftest.$ac_ext <<_ACEOF
  21725. -/* confdefs.h. */
  21726. -_ACEOF
  21727. -cat confdefs.h >>conftest.$ac_ext
  21728. -cat >>conftest.$ac_ext <<_ACEOF
  21729. +LIBS="-ldl $LIBS"
  21730. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21731. /* end confdefs.h. */
  21732. /* Override any GCC internal prototype to avoid an error.
  21733. @@ -11525,81 +11128,38 @@
  21734. #ifdef __cplusplus
  21735. extern "C"
  21736. #endif
  21737. -char shl_load ();
  21738. +char dlopen ();
  21739. int
  21740. main ()
  21741. {
  21742. -return shl_load ();
  21743. +return dlopen ();
  21744. ;
  21745. return 0;
  21746. }
  21747. _ACEOF
  21748. -rm -f conftest.$ac_objext conftest$ac_exeext
  21749. -if { (ac_try="$ac_link"
  21750. -case "(($ac_try" in
  21751. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21752. - *) ac_try_echo=$ac_try;;
  21753. -esac
  21754. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21755. -$as_echo "$ac_try_echo") >&5
  21756. - (eval "$ac_link") 2>conftest.er1
  21757. - ac_status=$?
  21758. - grep -v '^ *+' conftest.er1 >conftest.err
  21759. - rm -f conftest.er1
  21760. - cat conftest.err >&5
  21761. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21762. - (exit $ac_status); } && {
  21763. - test -z "$ac_c_werror_flag" ||
  21764. - test ! -s conftest.err
  21765. - } && test -s conftest$ac_exeext && {
  21766. - test "$cross_compiling" = yes ||
  21767. - $as_test_x conftest$ac_exeext
  21768. - }; then
  21769. - ac_cv_lib_dld_shl_load=yes
  21770. +if ac_fn_c_try_link "$LINENO"; then :
  21771. + ac_cv_lib_dl_dlopen=yes
  21772. else
  21773. - $as_echo "$as_me: failed program was:" >&5
  21774. -sed 's/^/| /' conftest.$ac_ext >&5
  21775. -
  21776. - ac_cv_lib_dld_shl_load=no
  21777. + ac_cv_lib_dl_dlopen=no
  21778. fi
  21779. -
  21780. -rm -rf conftest.dSYM
  21781. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21782. - conftest$ac_exeext conftest.$ac_ext
  21783. +rm -f core conftest.err conftest.$ac_objext \
  21784. + conftest$ac_exeext conftest.$ac_ext
  21785. LIBS=$ac_check_lib_save_LIBS
  21786. fi
  21787. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  21788. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  21789. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  21790. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  21791. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21792. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21793. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  21794. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21795. else
  21796. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  21797. -$as_echo_n "checking for dlopen... " >&6; }
  21798. -if test "${ac_cv_func_dlopen+set}" = set; then
  21799. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  21800. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  21801. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  21802. $as_echo_n "(cached) " >&6
  21803. else
  21804. - cat >conftest.$ac_ext <<_ACEOF
  21805. -/* confdefs.h. */
  21806. -_ACEOF
  21807. -cat confdefs.h >>conftest.$ac_ext
  21808. -cat >>conftest.$ac_ext <<_ACEOF
  21809. + ac_check_lib_save_LIBS=$LIBS
  21810. +LIBS="-lsvld $LIBS"
  21811. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21812. /* end confdefs.h. */
  21813. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  21814. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21815. -#define dlopen innocuous_dlopen
  21816. -
  21817. -/* System header to define __stub macros and hopefully few prototypes,
  21818. - which can conflict with char dlopen (); below.
  21819. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21820. - <limits.h> exists even on freestanding compilers. */
  21821. -
  21822. -#ifdef __STDC__
  21823. -# include <limits.h>
  21824. -#else
  21825. -# include <assert.h>
  21826. -#endif
  21827. -
  21828. -#undef dlopen
  21829. /* Override any GCC internal prototype to avoid an error.
  21830. Use char because int might match the return type of a GCC
  21831. @@ -11608,13 +11168,6 @@
  21832. extern "C"
  21833. #endif
  21834. char dlopen ();
  21835. -/* The GNU C library defines this for functions which it implements
  21836. - to always fail with ENOSYS. Some functions are actually named
  21837. - something starting with __ and the normal name is an alias. */
  21838. -#if defined __stub_dlopen || defined __stub___dlopen
  21839. -choke me
  21840. -#endif
  21841. -
  21842. int
  21843. main ()
  21844. {
  21845. @@ -11623,56 +11176,28 @@
  21846. return 0;
  21847. }
  21848. _ACEOF
  21849. -rm -f conftest.$ac_objext conftest$ac_exeext
  21850. -if { (ac_try="$ac_link"
  21851. -case "(($ac_try" in
  21852. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21853. - *) ac_try_echo=$ac_try;;
  21854. -esac
  21855. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21856. -$as_echo "$ac_try_echo") >&5
  21857. - (eval "$ac_link") 2>conftest.er1
  21858. - ac_status=$?
  21859. - grep -v '^ *+' conftest.er1 >conftest.err
  21860. - rm -f conftest.er1
  21861. - cat conftest.err >&5
  21862. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21863. - (exit $ac_status); } && {
  21864. - test -z "$ac_c_werror_flag" ||
  21865. - test ! -s conftest.err
  21866. - } && test -s conftest$ac_exeext && {
  21867. - test "$cross_compiling" = yes ||
  21868. - $as_test_x conftest$ac_exeext
  21869. - }; then
  21870. - ac_cv_func_dlopen=yes
  21871. +if ac_fn_c_try_link "$LINENO"; then :
  21872. + ac_cv_lib_svld_dlopen=yes
  21873. else
  21874. - $as_echo "$as_me: failed program was:" >&5
  21875. -sed 's/^/| /' conftest.$ac_ext >&5
  21876. -
  21877. - ac_cv_func_dlopen=no
  21878. + ac_cv_lib_svld_dlopen=no
  21879. fi
  21880. -
  21881. -rm -rf conftest.dSYM
  21882. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21883. - conftest$ac_exeext conftest.$ac_ext
  21884. +rm -f core conftest.err conftest.$ac_objext \
  21885. + conftest$ac_exeext conftest.$ac_ext
  21886. +LIBS=$ac_check_lib_save_LIBS
  21887. fi
  21888. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  21889. -$as_echo "$ac_cv_func_dlopen" >&6; }
  21890. -if test "x$ac_cv_func_dlopen" = x""yes; then
  21891. - lt_cv_dlopen="dlopen"
  21892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  21893. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  21894. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  21895. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  21896. else
  21897. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  21898. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  21899. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  21900. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  21901. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  21902. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  21903. $as_echo_n "(cached) " >&6
  21904. else
  21905. ac_check_lib_save_LIBS=$LIBS
  21906. -LIBS="-ldl $LIBS"
  21907. -cat >conftest.$ac_ext <<_ACEOF
  21908. -/* confdefs.h. */
  21909. -_ACEOF
  21910. -cat confdefs.h >>conftest.$ac_ext
  21911. -cat >>conftest.$ac_ext <<_ACEOF
  21912. +LIBS="-ldld $LIBS"
  21913. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21914. /* end confdefs.h. */
  21915. /* Override any GCC internal prototype to avoid an error.
  21916. @@ -11681,188 +11206,27 @@
  21917. #ifdef __cplusplus
  21918. extern "C"
  21919. #endif
  21920. -char dlopen ();
  21921. +char dld_link ();
  21922. int
  21923. main ()
  21924. {
  21925. -return dlopen ();
  21926. +return dld_link ();
  21927. ;
  21928. return 0;
  21929. }
  21930. _ACEOF
  21931. -rm -f conftest.$ac_objext conftest$ac_exeext
  21932. -if { (ac_try="$ac_link"
  21933. -case "(($ac_try" in
  21934. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21935. - *) ac_try_echo=$ac_try;;
  21936. -esac
  21937. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21938. -$as_echo "$ac_try_echo") >&5
  21939. - (eval "$ac_link") 2>conftest.er1
  21940. - ac_status=$?
  21941. - grep -v '^ *+' conftest.er1 >conftest.err
  21942. - rm -f conftest.er1
  21943. - cat conftest.err >&5
  21944. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21945. - (exit $ac_status); } && {
  21946. - test -z "$ac_c_werror_flag" ||
  21947. - test ! -s conftest.err
  21948. - } && test -s conftest$ac_exeext && {
  21949. - test "$cross_compiling" = yes ||
  21950. - $as_test_x conftest$ac_exeext
  21951. - }; then
  21952. - ac_cv_lib_dl_dlopen=yes
  21953. -else
  21954. - $as_echo "$as_me: failed program was:" >&5
  21955. -sed 's/^/| /' conftest.$ac_ext >&5
  21956. -
  21957. - ac_cv_lib_dl_dlopen=no
  21958. -fi
  21959. -
  21960. -rm -rf conftest.dSYM
  21961. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21962. - conftest$ac_exeext conftest.$ac_ext
  21963. -LIBS=$ac_check_lib_save_LIBS
  21964. -fi
  21965. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21966. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21967. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  21968. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21969. -else
  21970. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  21971. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  21972. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  21973. - $as_echo_n "(cached) " >&6
  21974. -else
  21975. - ac_check_lib_save_LIBS=$LIBS
  21976. -LIBS="-lsvld $LIBS"
  21977. -cat >conftest.$ac_ext <<_ACEOF
  21978. -/* confdefs.h. */
  21979. -_ACEOF
  21980. -cat confdefs.h >>conftest.$ac_ext
  21981. -cat >>conftest.$ac_ext <<_ACEOF
  21982. -/* end confdefs.h. */
  21983. -
  21984. -/* Override any GCC internal prototype to avoid an error.
  21985. - Use char because int might match the return type of a GCC
  21986. - builtin and then its argument prototype would still apply. */
  21987. -#ifdef __cplusplus
  21988. -extern "C"
  21989. -#endif
  21990. -char dlopen ();
  21991. -int
  21992. -main ()
  21993. -{
  21994. -return dlopen ();
  21995. - ;
  21996. - return 0;
  21997. -}
  21998. -_ACEOF
  21999. -rm -f conftest.$ac_objext conftest$ac_exeext
  22000. -if { (ac_try="$ac_link"
  22001. -case "(($ac_try" in
  22002. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22003. - *) ac_try_echo=$ac_try;;
  22004. -esac
  22005. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22006. -$as_echo "$ac_try_echo") >&5
  22007. - (eval "$ac_link") 2>conftest.er1
  22008. - ac_status=$?
  22009. - grep -v '^ *+' conftest.er1 >conftest.err
  22010. - rm -f conftest.er1
  22011. - cat conftest.err >&5
  22012. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22013. - (exit $ac_status); } && {
  22014. - test -z "$ac_c_werror_flag" ||
  22015. - test ! -s conftest.err
  22016. - } && test -s conftest$ac_exeext && {
  22017. - test "$cross_compiling" = yes ||
  22018. - $as_test_x conftest$ac_exeext
  22019. - }; then
  22020. - ac_cv_lib_svld_dlopen=yes
  22021. -else
  22022. - $as_echo "$as_me: failed program was:" >&5
  22023. -sed 's/^/| /' conftest.$ac_ext >&5
  22024. -
  22025. - ac_cv_lib_svld_dlopen=no
  22026. -fi
  22027. -
  22028. -rm -rf conftest.dSYM
  22029. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22030. - conftest$ac_exeext conftest.$ac_ext
  22031. -LIBS=$ac_check_lib_save_LIBS
  22032. -fi
  22033. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  22034. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  22035. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  22036. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  22037. -else
  22038. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  22039. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  22040. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  22041. - $as_echo_n "(cached) " >&6
  22042. -else
  22043. - ac_check_lib_save_LIBS=$LIBS
  22044. -LIBS="-ldld $LIBS"
  22045. -cat >conftest.$ac_ext <<_ACEOF
  22046. -/* confdefs.h. */
  22047. -_ACEOF
  22048. -cat confdefs.h >>conftest.$ac_ext
  22049. -cat >>conftest.$ac_ext <<_ACEOF
  22050. -/* end confdefs.h. */
  22051. -
  22052. -/* Override any GCC internal prototype to avoid an error.
  22053. - Use char because int might match the return type of a GCC
  22054. - builtin and then its argument prototype would still apply. */
  22055. -#ifdef __cplusplus
  22056. -extern "C"
  22057. -#endif
  22058. -char dld_link ();
  22059. -int
  22060. -main ()
  22061. -{
  22062. -return dld_link ();
  22063. - ;
  22064. - return 0;
  22065. -}
  22066. -_ACEOF
  22067. -rm -f conftest.$ac_objext conftest$ac_exeext
  22068. -if { (ac_try="$ac_link"
  22069. -case "(($ac_try" in
  22070. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22071. - *) ac_try_echo=$ac_try;;
  22072. -esac
  22073. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22074. -$as_echo "$ac_try_echo") >&5
  22075. - (eval "$ac_link") 2>conftest.er1
  22076. - ac_status=$?
  22077. - grep -v '^ *+' conftest.er1 >conftest.err
  22078. - rm -f conftest.er1
  22079. - cat conftest.err >&5
  22080. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22081. - (exit $ac_status); } && {
  22082. - test -z "$ac_c_werror_flag" ||
  22083. - test ! -s conftest.err
  22084. - } && test -s conftest$ac_exeext && {
  22085. - test "$cross_compiling" = yes ||
  22086. - $as_test_x conftest$ac_exeext
  22087. - }; then
  22088. +if ac_fn_c_try_link "$LINENO"; then :
  22089. ac_cv_lib_dld_dld_link=yes
  22090. else
  22091. - $as_echo "$as_me: failed program was:" >&5
  22092. -sed 's/^/| /' conftest.$ac_ext >&5
  22093. -
  22094. - ac_cv_lib_dld_dld_link=no
  22095. + ac_cv_lib_dld_dld_link=no
  22096. fi
  22097. -
  22098. -rm -rf conftest.dSYM
  22099. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22100. - conftest$ac_exeext conftest.$ac_ext
  22101. +rm -f core conftest.err conftest.$ac_objext \
  22102. + conftest$ac_exeext conftest.$ac_ext
  22103. LIBS=$ac_check_lib_save_LIBS
  22104. fi
  22105. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  22106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  22107. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  22108. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  22109. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  22110. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  22111. fi
  22112. @@ -11901,9 +11265,9 @@
  22113. save_LIBS="$LIBS"
  22114. LIBS="$lt_cv_dlopen_libs $LIBS"
  22115. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  22116. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  22117. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  22118. -if test "${lt_cv_dlopen_self+set}" = set; then
  22119. +if test "${lt_cv_dlopen_self+set}" = set; then :
  22120. $as_echo_n "(cached) " >&6
  22121. else
  22122. if test "$cross_compiling" = yes; then :
  22123. @@ -11912,7 +11276,7 @@
  22124. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22125. lt_status=$lt_dlunknown
  22126. cat > conftest.$ac_ext <<_LT_EOF
  22127. -#line 11915 "configure"
  22128. +#line 11279 "configure"
  22129. #include "confdefs.h"
  22130. #if HAVE_DLFCN_H
  22131. @@ -11971,11 +11335,11 @@
  22132. return status;
  22133. }
  22134. _LT_EOF
  22135. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22136. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22137. (eval $ac_link) 2>&5
  22138. ac_status=$?
  22139. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22140. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  22141. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22142. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22143. (./conftest; exit; ) >&5 2>/dev/null
  22144. lt_status=$?
  22145. case x$lt_status in
  22146. @@ -11992,14 +11356,14 @@
  22147. fi
  22148. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  22149. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  22150. $as_echo "$lt_cv_dlopen_self" >&6; }
  22151. if test "x$lt_cv_dlopen_self" = xyes; then
  22152. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  22153. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  22154. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  22155. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  22156. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  22157. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  22158. $as_echo_n "(cached) " >&6
  22159. else
  22160. if test "$cross_compiling" = yes; then :
  22161. @@ -12008,7 +11372,7 @@
  22162. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22163. lt_status=$lt_dlunknown
  22164. cat > conftest.$ac_ext <<_LT_EOF
  22165. -#line 12011 "configure"
  22166. +#line 11375 "configure"
  22167. #include "confdefs.h"
  22168. #if HAVE_DLFCN_H
  22169. @@ -12067,11 +11431,11 @@
  22170. return status;
  22171. }
  22172. _LT_EOF
  22173. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22174. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22175. (eval $ac_link) 2>&5
  22176. ac_status=$?
  22177. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22178. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  22179. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22180. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22181. (./conftest; exit; ) >&5 2>/dev/null
  22182. lt_status=$?
  22183. case x$lt_status in
  22184. @@ -12088,7 +11452,7 @@
  22185. fi
  22186. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  22187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  22188. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  22189. fi
  22190. @@ -12127,12 +11491,12 @@
  22191. striplib=
  22192. old_striplib=
  22193. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  22194. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  22195. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  22196. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  22197. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  22198. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  22199. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  22200. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22201. $as_echo "yes" >&6; }
  22202. else
  22203. # FIXME - insert some real tests, host_os isn't really good enough
  22204. @@ -12141,15 +11505,15 @@
  22205. if test -n "$STRIP" ; then
  22206. striplib="$STRIP -x"
  22207. old_striplib="$STRIP -S"
  22208. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  22209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22210. $as_echo "yes" >&6; }
  22211. else
  22212. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22213. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22214. $as_echo "no" >&6; }
  22215. fi
  22216. ;;
  22217. *)
  22218. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22219. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22220. $as_echo "no" >&6; }
  22221. ;;
  22222. esac
  22223. @@ -12167,12 +11531,12 @@
  22224. # Report which library types will actually be built
  22225. - { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  22226. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  22227. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  22228. - { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  22229. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  22230. $as_echo "$can_build_shared" >&6; }
  22231. - { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  22232. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  22233. $as_echo_n "checking whether to build shared libraries... " >&6; }
  22234. test "$can_build_shared" = "no" && enable_shared=no
  22235. @@ -12193,14 +11557,14 @@
  22236. fi
  22237. ;;
  22238. esac
  22239. - { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  22240. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  22241. $as_echo "$enable_shared" >&6; }
  22242. - { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  22243. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  22244. $as_echo_n "checking whether to build static libraries... " >&6; }
  22245. # Make sure either enable_shared or enable_static is yes.
  22246. test "$enable_shared" = yes || enable_static=yes
  22247. - { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  22248. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  22249. $as_echo "$enable_static" >&6; }
  22250. @@ -12235,19 +11599,14 @@
  22251. # Only expand once:
  22252. -
  22253. -{ $as_echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
  22254. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
  22255. $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
  22256. -if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
  22257. +if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
  22258. $as_echo_n "(cached) " >&6
  22259. else
  22260. ac_check_lib_save_LIBS=$LIBS
  22261. LIBS="-lltdl $LIBS"
  22262. -cat >conftest.$ac_ext <<_ACEOF
  22263. -/* confdefs.h. */
  22264. -_ACEOF
  22265. -cat confdefs.h >>conftest.$ac_ext
  22266. -cat >>conftest.$ac_ext <<_ACEOF
  22267. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22268. /* end confdefs.h. */
  22269. /* Override any GCC internal prototype to avoid an error.
  22270. @@ -12265,43 +11624,18 @@
  22271. return 0;
  22272. }
  22273. _ACEOF
  22274. -rm -f conftest.$ac_objext conftest$ac_exeext
  22275. -if { (ac_try="$ac_link"
  22276. -case "(($ac_try" in
  22277. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22278. - *) ac_try_echo=$ac_try;;
  22279. -esac
  22280. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22281. -$as_echo "$ac_try_echo") >&5
  22282. - (eval "$ac_link") 2>conftest.er1
  22283. - ac_status=$?
  22284. - grep -v '^ *+' conftest.er1 >conftest.err
  22285. - rm -f conftest.er1
  22286. - cat conftest.err >&5
  22287. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22288. - (exit $ac_status); } && {
  22289. - test -z "$ac_c_werror_flag" ||
  22290. - test ! -s conftest.err
  22291. - } && test -s conftest$ac_exeext && {
  22292. - test "$cross_compiling" = yes ||
  22293. - $as_test_x conftest$ac_exeext
  22294. - }; then
  22295. +if ac_fn_c_try_link "$LINENO"; then :
  22296. ac_cv_lib_ltdl_lt_dlinit=yes
  22297. else
  22298. - $as_echo "$as_me: failed program was:" >&5
  22299. -sed 's/^/| /' conftest.$ac_ext >&5
  22300. -
  22301. - ac_cv_lib_ltdl_lt_dlinit=no
  22302. + ac_cv_lib_ltdl_lt_dlinit=no
  22303. fi
  22304. -
  22305. -rm -rf conftest.dSYM
  22306. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22307. - conftest$ac_exeext conftest.$ac_ext
  22308. +rm -f core conftest.err conftest.$ac_objext \
  22309. + conftest$ac_exeext conftest.$ac_ext
  22310. LIBS=$ac_check_lib_save_LIBS
  22311. fi
  22312. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  22313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  22314. $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
  22315. -if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then
  22316. +if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
  22317. cat >>confdefs.h <<_ACEOF
  22318. #define HAVE_LIBLTDL 1
  22319. _ACEOF
  22320. @@ -12309,158 +11643,23 @@
  22321. LIBS="-lltdl $LIBS"
  22322. else
  22323. - { { $as_echo "$as_me:$LINENO: error: libltdl not found. See README." >&5
  22324. -$as_echo "$as_me: error: libltdl not found. See README." >&2;}
  22325. - { (exit 1); exit 1; }; }
  22326. -fi
  22327. -
  22328. -if test "${ac_cv_header_ltdl_h+set}" = set; then
  22329. - { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  22330. -$as_echo_n "checking for ltdl.h... " >&6; }
  22331. -if test "${ac_cv_header_ltdl_h+set}" = set; then
  22332. - $as_echo_n "(cached) " >&6
  22333. -fi
  22334. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  22335. -$as_echo "$ac_cv_header_ltdl_h" >&6; }
  22336. -else
  22337. - # Is the header compilable?
  22338. -{ $as_echo "$as_me:$LINENO: checking ltdl.h usability" >&5
  22339. -$as_echo_n "checking ltdl.h usability... " >&6; }
  22340. -cat >conftest.$ac_ext <<_ACEOF
  22341. -/* confdefs.h. */
  22342. -_ACEOF
  22343. -cat confdefs.h >>conftest.$ac_ext
  22344. -cat >>conftest.$ac_ext <<_ACEOF
  22345. -/* end confdefs.h. */
  22346. -$ac_includes_default
  22347. -#include <ltdl.h>
  22348. -_ACEOF
  22349. -rm -f conftest.$ac_objext
  22350. -if { (ac_try="$ac_compile"
  22351. -case "(($ac_try" in
  22352. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22353. - *) ac_try_echo=$ac_try;;
  22354. -esac
  22355. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22356. -$as_echo "$ac_try_echo") >&5
  22357. - (eval "$ac_compile") 2>conftest.er1
  22358. - ac_status=$?
  22359. - grep -v '^ *+' conftest.er1 >conftest.err
  22360. - rm -f conftest.er1
  22361. - cat conftest.err >&5
  22362. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22363. - (exit $ac_status); } && {
  22364. - test -z "$ac_c_werror_flag" ||
  22365. - test ! -s conftest.err
  22366. - } && test -s conftest.$ac_objext; then
  22367. - ac_header_compiler=yes
  22368. -else
  22369. - $as_echo "$as_me: failed program was:" >&5
  22370. -sed 's/^/| /' conftest.$ac_ext >&5
  22371. -
  22372. - ac_header_compiler=no
  22373. -fi
  22374. -
  22375. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22376. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22377. -$as_echo "$ac_header_compiler" >&6; }
  22378. -
  22379. -# Is the header present?
  22380. -{ $as_echo "$as_me:$LINENO: checking ltdl.h presence" >&5
  22381. -$as_echo_n "checking ltdl.h presence... " >&6; }
  22382. -cat >conftest.$ac_ext <<_ACEOF
  22383. -/* confdefs.h. */
  22384. -_ACEOF
  22385. -cat confdefs.h >>conftest.$ac_ext
  22386. -cat >>conftest.$ac_ext <<_ACEOF
  22387. -/* end confdefs.h. */
  22388. -#include <ltdl.h>
  22389. -_ACEOF
  22390. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22391. -case "(($ac_try" in
  22392. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22393. - *) ac_try_echo=$ac_try;;
  22394. -esac
  22395. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22396. -$as_echo "$ac_try_echo") >&5
  22397. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22398. - ac_status=$?
  22399. - grep -v '^ *+' conftest.er1 >conftest.err
  22400. - rm -f conftest.er1
  22401. - cat conftest.err >&5
  22402. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22403. - (exit $ac_status); } >/dev/null && {
  22404. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22405. - test ! -s conftest.err
  22406. - }; then
  22407. - ac_header_preproc=yes
  22408. -else
  22409. - $as_echo "$as_me: failed program was:" >&5
  22410. -sed 's/^/| /' conftest.$ac_ext >&5
  22411. -
  22412. - ac_header_preproc=no
  22413. + as_fn_error "libltdl not found. See README." "$LINENO" 5
  22414. fi
  22415. -rm -f conftest.err conftest.$ac_ext
  22416. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22417. -$as_echo "$ac_header_preproc" >&6; }
  22418. -
  22419. -# So? What about this header?
  22420. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22421. - yes:no: )
  22422. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22423. -$as_echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22424. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
  22425. -$as_echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
  22426. - ac_header_preproc=yes
  22427. - ;;
  22428. - no:yes:* )
  22429. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
  22430. -$as_echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
  22431. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
  22432. -$as_echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
  22433. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
  22434. -$as_echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
  22435. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
  22436. -$as_echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22437. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
  22438. -$as_echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
  22439. - { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
  22440. -$as_echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
  22441. - ( cat <<\_ASBOX
  22442. -## -------------------------------- ##
  22443. -## Report this to bug-guile@gnu.org ##
  22444. -## -------------------------------- ##
  22445. -_ASBOX
  22446. - ) | sed "s/^/$as_me: WARNING: /" >&2
  22447. - ;;
  22448. -esac
  22449. -{ $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  22450. -$as_echo_n "checking for ltdl.h... " >&6; }
  22451. -if test "${ac_cv_header_ltdl_h+set}" = set; then
  22452. - $as_echo_n "(cached) " >&6
  22453. -else
  22454. - ac_cv_header_ltdl_h=$ac_header_preproc
  22455. -fi
  22456. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  22457. -$as_echo "$ac_cv_header_ltdl_h" >&6; }
  22458. +ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  22459. +if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  22460. -fi
  22461. -if test "x$ac_cv_header_ltdl_h" = x""yes; then
  22462. - :
  22463. else
  22464. - { { $as_echo "$as_me:$LINENO: error: <ltdl.h> not found. See README." >&5
  22465. -$as_echo "$as_me: error: <ltdl.h> not found. See README." >&2;}
  22466. - { (exit 1); exit 1; }; }
  22467. + as_fn_error "<ltdl.h> not found. See README." "$LINENO" 5
  22468. fi
  22469. # Extract the first word of "makeinfo", so it can be a program name with args.
  22470. set dummy makeinfo; ac_word=$2
  22471. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22472. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22473. $as_echo_n "checking for $ac_word... " >&6; }
  22474. -if test "${ac_cv_prog_have_makeinfo+set}" = set; then
  22475. +if test "${ac_cv_prog_have_makeinfo+set}" = set; then :
  22476. $as_echo_n "(cached) " >&6
  22477. else
  22478. if test -n "$have_makeinfo"; then
  22479. @@ -12471,14 +11670,14 @@
  22480. do
  22481. IFS=$as_save_IFS
  22482. test -z "$as_dir" && as_dir=.
  22483. - for ac_exec_ext in '' $ac_executable_extensions; do
  22484. + for ac_exec_ext in '' $ac_executable_extensions; do
  22485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22486. ac_cv_prog_have_makeinfo="yes"
  22487. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22488. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22489. break 2
  22490. fi
  22491. done
  22492. -done
  22493. + done
  22494. IFS=$as_save_IFS
  22495. test -z "$ac_cv_prog_have_makeinfo" && ac_cv_prog_have_makeinfo="no"
  22496. @@ -12486,10 +11685,10 @@
  22497. fi
  22498. have_makeinfo=$ac_cv_prog_have_makeinfo
  22499. if test -n "$have_makeinfo"; then
  22500. - { $as_echo "$as_me:$LINENO: result: $have_makeinfo" >&5
  22501. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_makeinfo" >&5
  22502. $as_echo "$have_makeinfo" >&6; }
  22503. else
  22504. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22505. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22506. $as_echo "no" >&6; }
  22507. fi
  22508. @@ -12510,9 +11709,9 @@
  22509. do
  22510. # Extract the first word of "$ac_prog", so it can be a program name with args.
  22511. set dummy $ac_prog; ac_word=$2
  22512. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22514. $as_echo_n "checking for $ac_word... " >&6; }
  22515. -if test "${ac_cv_prog_EMACS+set}" = set; then
  22516. +if test "${ac_cv_prog_EMACS+set}" = set; then :
  22517. $as_echo_n "(cached) " >&6
  22518. else
  22519. if test -n "$EMACS"; then
  22520. @@ -12523,24 +11722,24 @@
  22521. do
  22522. IFS=$as_save_IFS
  22523. test -z "$as_dir" && as_dir=.
  22524. - for ac_exec_ext in '' $ac_executable_extensions; do
  22525. + for ac_exec_ext in '' $ac_executable_extensions; do
  22526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22527. ac_cv_prog_EMACS="$ac_prog"
  22528. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22529. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22530. break 2
  22531. fi
  22532. done
  22533. -done
  22534. + done
  22535. IFS=$as_save_IFS
  22536. fi
  22537. fi
  22538. EMACS=$ac_cv_prog_EMACS
  22539. if test -n "$EMACS"; then
  22540. - { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
  22541. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
  22542. $as_echo "$EMACS" >&6; }
  22543. else
  22544. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22545. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22546. $as_echo "no" >&6; }
  22547. fi
  22548. @@ -12553,17 +11752,17 @@
  22549. # Check whether --with-lispdir was given.
  22550. -if test "${with_lispdir+set}" = set; then
  22551. +if test "${with_lispdir+set}" = set; then :
  22552. withval=$with_lispdir; lispdir="$withval"
  22553. - { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
  22554. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
  22555. $as_echo_n "checking where .elc files should go... " >&6; }
  22556. - { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
  22557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
  22558. $as_echo "$lispdir" >&6; }
  22559. else
  22560. - { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
  22561. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
  22562. $as_echo_n "checking where .elc files should go... " >&6; }
  22563. -if test "${am_cv_lispdir+set}" = set; then
  22564. +if test "${am_cv_lispdir+set}" = set; then :
  22565. $as_echo_n "(cached) " >&6
  22566. else
  22567. @@ -12574,11 +11773,11 @@
  22568. # which is non-obvious for non-emacs users.
  22569. # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  22570. # emacsen earlier and avoid running this altogether.
  22571. - { ($as_echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
  22572. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
  22573. ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
  22574. ac_status=$?
  22575. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22576. - (exit $ac_status); }
  22577. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22578. + test $ac_status = 0; }
  22579. am_cv_lispdir=`sed -n \
  22580. -e 's,/$,,' \
  22581. -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
  22582. @@ -12590,7 +11789,7 @@
  22583. test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
  22584. fi
  22585. -{ $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
  22586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
  22587. $as_echo "$am_cv_lispdir" >&6; }
  22588. lispdir="$am_cv_lispdir"
  22589. @@ -12608,20 +11807,18 @@
  22590. GUILE_ERROR_ON_WARNING="yes"
  22591. # Check whether --enable-error-on-warning was given.
  22592. -if test "${enable_error_on_warning+set}" = set; then
  22593. +if test "${enable_error_on_warning+set}" = set; then :
  22594. enableval=$enable_error_on_warning; case "${enableval}" in
  22595. yes | y) GUILE_ERROR_ON_WARNING="yes" ;;
  22596. no | n) GUILE_ERROR_ON_WARNING="no" ;;
  22597. - *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5
  22598. -$as_echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;}
  22599. - { (exit 1); exit 1; }; } ;;
  22600. + *) as_fn_error "bad value ${enableval} for --enable-error-on-warning" "$LINENO" 5 ;;
  22601. esac
  22602. fi
  22603. SCM_I_GSC_GUILE_DEBUG_FREELIST=0
  22604. # Check whether --enable-debug-freelist was given.
  22605. -if test "${enable_debug_freelist+set}" = set; then
  22606. +if test "${enable_debug_freelist+set}" = set; then :
  22607. enableval=$enable_debug_freelist; if test "$enable_debug_freelist" = y \
  22608. || test "$enable_debug_freelist" = yes; then
  22609. SCM_I_GSC_GUILE_DEBUG_FREELIST=1
  22610. @@ -12630,12 +11827,10 @@
  22611. # Check whether --enable-debug-malloc was given.
  22612. -if test "${enable_debug_malloc+set}" = set; then
  22613. +if test "${enable_debug_malloc+set}" = set; then :
  22614. enableval=$enable_debug_malloc; if test "$enable_debug_malloc" = y || test "$enable_debug_malloc" = yes; then
  22615. -cat >>confdefs.h <<\_ACEOF
  22616. -#define GUILE_DEBUG_MALLOC 1
  22617. -_ACEOF
  22618. +$as_echo "#define GUILE_DEBUG_MALLOC 1" >>confdefs.h
  22619. fi
  22620. fi
  22621. @@ -12643,7 +11838,7 @@
  22622. SCM_I_GSC_GUILE_DEBUG=0
  22623. # Check whether --enable-guile-debug was given.
  22624. -if test "${enable_guile_debug+set}" = set; then
  22625. +if test "${enable_guile_debug+set}" = set; then :
  22626. enableval=$enable_guile_debug; if test "$enable_guile_debug" = y || test "$enable_guile_debug" = yes; then
  22627. SCM_I_GSC_GUILE_DEBUG=1
  22628. fi
  22629. @@ -12651,7 +11846,7 @@
  22630. # Check whether --enable-posix was given.
  22631. -if test "${enable_posix+set}" = set; then
  22632. +if test "${enable_posix+set}" = set; then :
  22633. enableval=$enable_posix;
  22634. else
  22635. enable_posix=yes
  22636. @@ -12659,7 +11854,7 @@
  22637. # Check whether --enable-networking was given.
  22638. -if test "${enable_networking+set}" = set; then
  22639. +if test "${enable_networking+set}" = set; then :
  22640. enableval=$enable_networking;
  22641. else
  22642. enable_networking=yes
  22643. @@ -12667,7 +11862,7 @@
  22644. # Check whether --enable-regex was given.
  22645. -if test "${enable_regex+set}" = set; then
  22646. +if test "${enable_regex+set}" = set; then :
  22647. enableval=$enable_regex;
  22648. else
  22649. enable_regex=yes
  22650. @@ -12675,7 +11870,7 @@
  22651. # Check whether --enable-discouraged was given.
  22652. -if test "${enable_discouraged+set}" = set; then
  22653. +if test "${enable_discouraged+set}" = set; then :
  22654. enableval=$enable_discouraged;
  22655. fi
  22656. @@ -12687,7 +11882,7 @@
  22657. fi
  22658. # Check whether --enable-deprecated was given.
  22659. -if test "${enable_deprecated+set}" = set; then
  22660. +if test "${enable_deprecated+set}" = set; then :
  22661. enableval=$enable_deprecated;
  22662. fi
  22663. @@ -12712,18 +11907,18 @@
  22664. # Check whether --enable-elisp was given.
  22665. -if test "${enable_elisp+set}" = set; then
  22666. +if test "${enable_elisp+set}" = set; then :
  22667. enableval=$enable_elisp;
  22668. else
  22669. enable_elisp=yes
  22670. fi
  22671. -{ $as_echo "$as_me:$LINENO: checking whether to use system and library \"64\" calls" >&5
  22672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system and library \"64\" calls" >&5
  22673. $as_echo_n "checking whether to use system and library \"64\" calls... " >&6; }
  22674. # Check whether --with-64-calls was given.
  22675. -if test "${with_64_calls+set}" = set; then
  22676. +if test "${with_64_calls+set}" = set; then :
  22677. withval=$with_64_calls; use_64_calls=$withval
  22678. else
  22679. use_64_calls=yes
  22680. @@ -12737,19 +11932,17 @@
  22681. esac
  22682. fi
  22683. -{ $as_echo "$as_me:$LINENO: result: $use_64_calls" >&5
  22684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_64_calls" >&5
  22685. $as_echo "$use_64_calls" >&6; }
  22686. case "$use_64_calls" in
  22687. y* )
  22688. -cat >>confdefs.h <<\_ACEOF
  22689. -#define GUILE_USE_64_CALLS 1
  22690. -_ACEOF
  22691. +$as_echo "#define GUILE_USE_64_CALLS 1" >>confdefs.h
  22692. ;;
  22693. esac
  22694. -{ $as_echo "$as_me:$LINENO: checking whether the compiler defaults to IEEE floating point behavior" >&5
  22695. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defaults to IEEE floating point behavior" >&5
  22696. $as_echo_n "checking whether the compiler defaults to IEEE floating point behavior... " >&6; }
  22697. # The following snippet was taken from Gnulib's `fpieee'. See also the definition
  22698. # of `guile_NaN' in `numbers.c'.
  22699. @@ -12762,7 +11955,7 @@
  22700. # On Alpha systems, a compiler option provides the behaviour.
  22701. # See the ieee(3) manual page, also available at
  22702. # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
  22703. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22704. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22705. $as_echo "no" >&6; }
  22706. if test -n "$GCC"; then
  22707. # GCC has the option -mieee.
  22708. @@ -12773,7 +11966,7 @@
  22709. fi
  22710. ;;
  22711. sh*)
  22712. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22714. $as_echo "no" >&6; }
  22715. if test -n "$GCC"; then
  22716. # GCC has the option -mieee.
  22717. @@ -12781,7 +11974,7 @@
  22718. fi
  22719. ;;
  22720. *)
  22721. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  22722. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22723. $as_echo "yes" >&6; }
  22724. ;;
  22725. esac
  22726. @@ -12793,7 +11986,7 @@
  22727. use_modules=yes
  22728. # Check whether --with-modules was given.
  22729. -if test "${with_modules+set}" = set; then
  22730. +if test "${with_modules+set}" = set; then :
  22731. withval=$with_modules; use_modules="$withval"
  22732. fi
  22733. @@ -12834,9 +12027,7 @@
  22734. esac
  22735. -cat >>confdefs.h <<\_ACEOF
  22736. -#define HAVE_POSIX 1
  22737. -_ACEOF
  22738. +$as_echo "#define HAVE_POSIX 1" >>confdefs.h
  22739. fi
  22740. @@ -12854,9 +12045,7 @@
  22741. esac
  22742. -cat >>confdefs.h <<\_ACEOF
  22743. -#define HAVE_NETWORKING 1
  22744. -_ACEOF
  22745. +$as_echo "#define HAVE_NETWORKING 1" >>confdefs.h
  22746. fi
  22747. @@ -12874,19 +12063,14 @@
  22748. else
  22749. SCM_I_GSC_ENABLE_ELISP=0
  22750. fi
  22751. -
  22752. -{ $as_echo "$as_me:$LINENO: checking for __uc_get_ar_bsp in -luca" >&5
  22753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_ar_bsp in -luca" >&5
  22754. $as_echo_n "checking for __uc_get_ar_bsp in -luca... " >&6; }
  22755. -if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then
  22756. +if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then :
  22757. $as_echo_n "(cached) " >&6
  22758. else
  22759. ac_check_lib_save_LIBS=$LIBS
  22760. LIBS="-luca $LIBS"
  22761. -cat >conftest.$ac_ext <<_ACEOF
  22762. -/* confdefs.h. */
  22763. -_ACEOF
  22764. -cat confdefs.h >>conftest.$ac_ext
  22765. -cat >>conftest.$ac_ext <<_ACEOF
  22766. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22767. /* end confdefs.h. */
  22768. /* Override any GCC internal prototype to avoid an error.
  22769. @@ -12904,43 +12088,18 @@
  22770. return 0;
  22771. }
  22772. _ACEOF
  22773. -rm -f conftest.$ac_objext conftest$ac_exeext
  22774. -if { (ac_try="$ac_link"
  22775. -case "(($ac_try" in
  22776. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22777. - *) ac_try_echo=$ac_try;;
  22778. -esac
  22779. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22780. -$as_echo "$ac_try_echo") >&5
  22781. - (eval "$ac_link") 2>conftest.er1
  22782. - ac_status=$?
  22783. - grep -v '^ *+' conftest.er1 >conftest.err
  22784. - rm -f conftest.er1
  22785. - cat conftest.err >&5
  22786. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22787. - (exit $ac_status); } && {
  22788. - test -z "$ac_c_werror_flag" ||
  22789. - test ! -s conftest.err
  22790. - } && test -s conftest$ac_exeext && {
  22791. - test "$cross_compiling" = yes ||
  22792. - $as_test_x conftest$ac_exeext
  22793. - }; then
  22794. +if ac_fn_c_try_link "$LINENO"; then :
  22795. ac_cv_lib_uca___uc_get_ar_bsp=yes
  22796. else
  22797. - $as_echo "$as_me: failed program was:" >&5
  22798. -sed 's/^/| /' conftest.$ac_ext >&5
  22799. -
  22800. - ac_cv_lib_uca___uc_get_ar_bsp=no
  22801. + ac_cv_lib_uca___uc_get_ar_bsp=no
  22802. fi
  22803. -
  22804. -rm -rf conftest.dSYM
  22805. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22806. - conftest$ac_exeext conftest.$ac_ext
  22807. +rm -f core conftest.err conftest.$ac_objext \
  22808. + conftest$ac_exeext conftest.$ac_ext
  22809. LIBS=$ac_check_lib_save_LIBS
  22810. fi
  22811. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  22812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  22813. $as_echo "$ac_cv_lib_uca___uc_get_ar_bsp" >&6; }
  22814. -if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then
  22815. +if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then :
  22816. cat >>confdefs.h <<_ACEOF
  22817. #define HAVE_LIBUCA 1
  22818. _ACEOF
  22819. @@ -12950,16 +12109,12 @@
  22820. fi
  22821. -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  22822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  22823. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  22824. -if test "${ac_cv_c_const+set}" = set; then
  22825. +if test "${ac_cv_c_const+set}" = set; then :
  22826. $as_echo_n "(cached) " >&6
  22827. else
  22828. - cat >conftest.$ac_ext <<_ACEOF
  22829. -/* confdefs.h. */
  22830. -_ACEOF
  22831. -cat confdefs.h >>conftest.$ac_ext
  22832. -cat >>conftest.$ac_ext <<_ACEOF
  22833. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22834. /* end confdefs.h. */
  22835. int
  22836. @@ -13019,56 +12174,29 @@
  22837. return 0;
  22838. }
  22839. _ACEOF
  22840. -rm -f conftest.$ac_objext
  22841. -if { (ac_try="$ac_compile"
  22842. -case "(($ac_try" in
  22843. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22844. - *) ac_try_echo=$ac_try;;
  22845. -esac
  22846. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22847. -$as_echo "$ac_try_echo") >&5
  22848. - (eval "$ac_compile") 2>conftest.er1
  22849. - ac_status=$?
  22850. - grep -v '^ *+' conftest.er1 >conftest.err
  22851. - rm -f conftest.er1
  22852. - cat conftest.err >&5
  22853. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22854. - (exit $ac_status); } && {
  22855. - test -z "$ac_c_werror_flag" ||
  22856. - test ! -s conftest.err
  22857. - } && test -s conftest.$ac_objext; then
  22858. +if ac_fn_c_try_compile "$LINENO"; then :
  22859. ac_cv_c_const=yes
  22860. else
  22861. - $as_echo "$as_me: failed program was:" >&5
  22862. -sed 's/^/| /' conftest.$ac_ext >&5
  22863. -
  22864. - ac_cv_c_const=no
  22865. + ac_cv_c_const=no
  22866. fi
  22867. -
  22868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22869. fi
  22870. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  22871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  22872. $as_echo "$ac_cv_c_const" >&6; }
  22873. if test $ac_cv_c_const = no; then
  22874. -cat >>confdefs.h <<\_ACEOF
  22875. -#define const /**/
  22876. -_ACEOF
  22877. +$as_echo "#define const /**/" >>confdefs.h
  22878. fi
  22879. # "volatile" is used in a couple of tests below.
  22880. -{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  22881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  22882. $as_echo_n "checking for working volatile... " >&6; }
  22883. -if test "${ac_cv_c_volatile+set}" = set; then
  22884. +if test "${ac_cv_c_volatile+set}" = set; then :
  22885. $as_echo_n "(cached) " >&6
  22886. else
  22887. - cat >conftest.$ac_ext <<_ACEOF
  22888. -/* confdefs.h. */
  22889. -_ACEOF
  22890. -cat confdefs.h >>conftest.$ac_ext
  22891. -cat >>conftest.$ac_ext <<_ACEOF
  22892. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22893. /* end confdefs.h. */
  22894. int
  22895. @@ -13082,57 +12210,30 @@
  22896. return 0;
  22897. }
  22898. _ACEOF
  22899. -rm -f conftest.$ac_objext
  22900. -if { (ac_try="$ac_compile"
  22901. -case "(($ac_try" in
  22902. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22903. - *) ac_try_echo=$ac_try;;
  22904. -esac
  22905. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22906. -$as_echo "$ac_try_echo") >&5
  22907. - (eval "$ac_compile") 2>conftest.er1
  22908. - ac_status=$?
  22909. - grep -v '^ *+' conftest.er1 >conftest.err
  22910. - rm -f conftest.er1
  22911. - cat conftest.err >&5
  22912. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22913. - (exit $ac_status); } && {
  22914. - test -z "$ac_c_werror_flag" ||
  22915. - test ! -s conftest.err
  22916. - } && test -s conftest.$ac_objext; then
  22917. +if ac_fn_c_try_compile "$LINENO"; then :
  22918. ac_cv_c_volatile=yes
  22919. else
  22920. - $as_echo "$as_me: failed program was:" >&5
  22921. -sed 's/^/| /' conftest.$ac_ext >&5
  22922. -
  22923. - ac_cv_c_volatile=no
  22924. + ac_cv_c_volatile=no
  22925. fi
  22926. -
  22927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22928. fi
  22929. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  22930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  22931. $as_echo "$ac_cv_c_volatile" >&6; }
  22932. if test $ac_cv_c_volatile = no; then
  22933. -cat >>confdefs.h <<\_ACEOF
  22934. -#define volatile /**/
  22935. -_ACEOF
  22936. +$as_echo "#define volatile /**/" >>confdefs.h
  22937. fi
  22938. -{ $as_echo "$as_me:$LINENO: checking for inline" >&5
  22939. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  22940. $as_echo_n "checking for inline... " >&6; }
  22941. -if test "${ac_cv_c_inline+set}" = set; then
  22942. +if test "${ac_cv_c_inline+set}" = set; then :
  22943. $as_echo_n "(cached) " >&6
  22944. else
  22945. ac_cv_c_inline=no
  22946. for ac_kw in inline __inline__ __inline; do
  22947. - cat >conftest.$ac_ext <<_ACEOF
  22948. -/* confdefs.h. */
  22949. -_ACEOF
  22950. -cat confdefs.h >>conftest.$ac_ext
  22951. -cat >>conftest.$ac_ext <<_ACEOF
  22952. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22953. /* end confdefs.h. */
  22954. #ifndef __cplusplus
  22955. typedef int foo_t;
  22956. @@ -13141,41 +12242,17 @@
  22957. #endif
  22958. _ACEOF
  22959. -rm -f conftest.$ac_objext
  22960. -if { (ac_try="$ac_compile"
  22961. -case "(($ac_try" in
  22962. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22963. - *) ac_try_echo=$ac_try;;
  22964. -esac
  22965. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22966. -$as_echo "$ac_try_echo") >&5
  22967. - (eval "$ac_compile") 2>conftest.er1
  22968. - ac_status=$?
  22969. - grep -v '^ *+' conftest.er1 >conftest.err
  22970. - rm -f conftest.er1
  22971. - cat conftest.err >&5
  22972. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22973. - (exit $ac_status); } && {
  22974. - test -z "$ac_c_werror_flag" ||
  22975. - test ! -s conftest.err
  22976. - } && test -s conftest.$ac_objext; then
  22977. +if ac_fn_c_try_compile "$LINENO"; then :
  22978. ac_cv_c_inline=$ac_kw
  22979. -else
  22980. - $as_echo "$as_me: failed program was:" >&5
  22981. -sed 's/^/| /' conftest.$ac_ext >&5
  22982. -
  22983. -
  22984. fi
  22985. -
  22986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22987. test "$ac_cv_c_inline" != no && break
  22988. done
  22989. fi
  22990. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  22991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  22992. $as_echo "$ac_cv_c_inline" >&6; }
  22993. -
  22994. case $ac_cv_c_inline in
  22995. inline | yes) ;;
  22996. *)
  22997. @@ -13196,19 +12273,14 @@
  22998. else
  22999. SCM_I_GSC_C_INLINE=NULL
  23000. fi
  23001. -
  23002. -{ $as_echo "$as_me:$LINENO: checking for __uc_get_ar_bsp in -luca" >&5
  23003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_ar_bsp in -luca" >&5
  23004. $as_echo_n "checking for __uc_get_ar_bsp in -luca... " >&6; }
  23005. -if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then
  23006. +if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then :
  23007. $as_echo_n "(cached) " >&6
  23008. else
  23009. ac_check_lib_save_LIBS=$LIBS
  23010. LIBS="-luca $LIBS"
  23011. -cat >conftest.$ac_ext <<_ACEOF
  23012. -/* confdefs.h. */
  23013. -_ACEOF
  23014. -cat confdefs.h >>conftest.$ac_ext
  23015. -cat >>conftest.$ac_ext <<_ACEOF
  23016. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23017. /* end confdefs.h. */
  23018. /* Override any GCC internal prototype to avoid an error.
  23019. @@ -13226,43 +12298,18 @@
  23020. return 0;
  23021. }
  23022. _ACEOF
  23023. -rm -f conftest.$ac_objext conftest$ac_exeext
  23024. -if { (ac_try="$ac_link"
  23025. -case "(($ac_try" in
  23026. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23027. - *) ac_try_echo=$ac_try;;
  23028. -esac
  23029. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23030. -$as_echo "$ac_try_echo") >&5
  23031. - (eval "$ac_link") 2>conftest.er1
  23032. - ac_status=$?
  23033. - grep -v '^ *+' conftest.er1 >conftest.err
  23034. - rm -f conftest.er1
  23035. - cat conftest.err >&5
  23036. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23037. - (exit $ac_status); } && {
  23038. - test -z "$ac_c_werror_flag" ||
  23039. - test ! -s conftest.err
  23040. - } && test -s conftest$ac_exeext && {
  23041. - test "$cross_compiling" = yes ||
  23042. - $as_test_x conftest$ac_exeext
  23043. - }; then
  23044. +if ac_fn_c_try_link "$LINENO"; then :
  23045. ac_cv_lib_uca___uc_get_ar_bsp=yes
  23046. else
  23047. - $as_echo "$as_me: failed program was:" >&5
  23048. -sed 's/^/| /' conftest.$ac_ext >&5
  23049. -
  23050. - ac_cv_lib_uca___uc_get_ar_bsp=no
  23051. + ac_cv_lib_uca___uc_get_ar_bsp=no
  23052. fi
  23053. -
  23054. -rm -rf conftest.dSYM
  23055. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23056. - conftest$ac_exeext conftest.$ac_ext
  23057. +rm -f core conftest.err conftest.$ac_objext \
  23058. + conftest$ac_exeext conftest.$ac_ext
  23059. LIBS=$ac_check_lib_save_LIBS
  23060. fi
  23061. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  23062. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  23063. $as_echo "$ac_cv_lib_uca___uc_get_ar_bsp" >&6; }
  23064. -if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then
  23065. +if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then :
  23066. cat >>confdefs.h <<_ACEOF
  23067. #define HAVE_LIBUCA 1
  23068. _ACEOF
  23069. @@ -13272,19 +12319,14 @@
  23070. fi
  23071. -
  23072. - { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  23073. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  23074. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  23075. -if test "${ac_cv_c_bigendian+set}" = set; then
  23076. +if test "${ac_cv_c_bigendian+set}" = set; then :
  23077. $as_echo_n "(cached) " >&6
  23078. else
  23079. ac_cv_c_bigendian=unknown
  23080. # See if we're dealing with a universal compiler.
  23081. - cat >conftest.$ac_ext <<_ACEOF
  23082. -/* confdefs.h. */
  23083. -_ACEOF
  23084. -cat confdefs.h >>conftest.$ac_ext
  23085. -cat >>conftest.$ac_ext <<_ACEOF
  23086. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23087. /* end confdefs.h. */
  23088. #ifndef __APPLE_CC__
  23089. not a universal capable compiler
  23090. @@ -13292,46 +12334,34 @@
  23091. typedef int dummy;
  23092. _ACEOF
  23093. -rm -f conftest.$ac_objext
  23094. -if { (ac_try="$ac_compile"
  23095. -case "(($ac_try" in
  23096. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23097. - *) ac_try_echo=$ac_try;;
  23098. -esac
  23099. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23100. -$as_echo "$ac_try_echo") >&5
  23101. - (eval "$ac_compile") 2>conftest.er1
  23102. - ac_status=$?
  23103. - grep -v '^ *+' conftest.er1 >conftest.err
  23104. - rm -f conftest.er1
  23105. - cat conftest.err >&5
  23106. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23107. - (exit $ac_status); } && {
  23108. - test -z "$ac_c_werror_flag" ||
  23109. - test ! -s conftest.err
  23110. - } && test -s conftest.$ac_objext; then
  23111. +if ac_fn_c_try_compile "$LINENO"; then :
  23112. # Check for potential -arch flags. It is not universal unless
  23113. - # there are some -arch flags. Note that *ppc* also matches
  23114. - # ppc64. This check is also rather less than ideal.
  23115. - case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  23116. - *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  23117. - esac
  23118. -else
  23119. - $as_echo "$as_me: failed program was:" >&5
  23120. -sed 's/^/| /' conftest.$ac_ext >&5
  23121. -
  23122. -
  23123. + # there are at least two -arch flags with different values.
  23124. + ac_arch=
  23125. + ac_prev=
  23126. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  23127. + if test -n "$ac_prev"; then
  23128. + case $ac_word in
  23129. + i?86 | x86_64 | ppc | ppc64)
  23130. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  23131. + ac_arch=$ac_word
  23132. + else
  23133. + ac_cv_c_bigendian=universal
  23134. + break
  23135. + fi
  23136. + ;;
  23137. + esac
  23138. + ac_prev=
  23139. + elif test "x$ac_word" = "x-arch"; then
  23140. + ac_prev=arch
  23141. + fi
  23142. + done
  23143. fi
  23144. -
  23145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23146. if test $ac_cv_c_bigendian = unknown; then
  23147. # See if sys/param.h defines the BYTE_ORDER macro.
  23148. - cat >conftest.$ac_ext <<_ACEOF
  23149. -/* confdefs.h. */
  23150. -_ACEOF
  23151. -cat confdefs.h >>conftest.$ac_ext
  23152. -cat >>conftest.$ac_ext <<_ACEOF
  23153. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23154. /* end confdefs.h. */
  23155. #include <sys/types.h>
  23156. #include <sys/param.h>
  23157. @@ -13349,30 +12379,9 @@
  23158. return 0;
  23159. }
  23160. _ACEOF
  23161. -rm -f conftest.$ac_objext
  23162. -if { (ac_try="$ac_compile"
  23163. -case "(($ac_try" in
  23164. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23165. - *) ac_try_echo=$ac_try;;
  23166. -esac
  23167. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23168. -$as_echo "$ac_try_echo") >&5
  23169. - (eval "$ac_compile") 2>conftest.er1
  23170. - ac_status=$?
  23171. - grep -v '^ *+' conftest.er1 >conftest.err
  23172. - rm -f conftest.er1
  23173. - cat conftest.err >&5
  23174. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23175. - (exit $ac_status); } && {
  23176. - test -z "$ac_c_werror_flag" ||
  23177. - test ! -s conftest.err
  23178. - } && test -s conftest.$ac_objext; then
  23179. +if ac_fn_c_try_compile "$LINENO"; then :
  23180. # It does; now see whether it defined to BIG_ENDIAN or not.
  23181. - cat >conftest.$ac_ext <<_ACEOF
  23182. -/* confdefs.h. */
  23183. -_ACEOF
  23184. -cat confdefs.h >>conftest.$ac_ext
  23185. -cat >>conftest.$ac_ext <<_ACEOF
  23186. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23187. /* end confdefs.h. */
  23188. #include <sys/types.h>
  23189. #include <sys/param.h>
  23190. @@ -13388,49 +12397,18 @@
  23191. return 0;
  23192. }
  23193. _ACEOF
  23194. -rm -f conftest.$ac_objext
  23195. -if { (ac_try="$ac_compile"
  23196. -case "(($ac_try" in
  23197. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23198. - *) ac_try_echo=$ac_try;;
  23199. -esac
  23200. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23201. -$as_echo "$ac_try_echo") >&5
  23202. - (eval "$ac_compile") 2>conftest.er1
  23203. - ac_status=$?
  23204. - grep -v '^ *+' conftest.er1 >conftest.err
  23205. - rm -f conftest.er1
  23206. - cat conftest.err >&5
  23207. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23208. - (exit $ac_status); } && {
  23209. - test -z "$ac_c_werror_flag" ||
  23210. - test ! -s conftest.err
  23211. - } && test -s conftest.$ac_objext; then
  23212. +if ac_fn_c_try_compile "$LINENO"; then :
  23213. ac_cv_c_bigendian=yes
  23214. else
  23215. - $as_echo "$as_me: failed program was:" >&5
  23216. -sed 's/^/| /' conftest.$ac_ext >&5
  23217. -
  23218. - ac_cv_c_bigendian=no
  23219. + ac_cv_c_bigendian=no
  23220. fi
  23221. -
  23222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23223. -else
  23224. - $as_echo "$as_me: failed program was:" >&5
  23225. -sed 's/^/| /' conftest.$ac_ext >&5
  23226. -
  23227. -
  23228. fi
  23229. -
  23230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23231. fi
  23232. if test $ac_cv_c_bigendian = unknown; then
  23233. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  23234. - cat >conftest.$ac_ext <<_ACEOF
  23235. -/* confdefs.h. */
  23236. -_ACEOF
  23237. -cat confdefs.h >>conftest.$ac_ext
  23238. -cat >>conftest.$ac_ext <<_ACEOF
  23239. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23240. /* end confdefs.h. */
  23241. #include <limits.h>
  23242. @@ -13445,30 +12423,9 @@
  23243. return 0;
  23244. }
  23245. _ACEOF
  23246. -rm -f conftest.$ac_objext
  23247. -if { (ac_try="$ac_compile"
  23248. -case "(($ac_try" in
  23249. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23250. - *) ac_try_echo=$ac_try;;
  23251. -esac
  23252. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23253. -$as_echo "$ac_try_echo") >&5
  23254. - (eval "$ac_compile") 2>conftest.er1
  23255. - ac_status=$?
  23256. - grep -v '^ *+' conftest.er1 >conftest.err
  23257. - rm -f conftest.er1
  23258. - cat conftest.err >&5
  23259. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23260. - (exit $ac_status); } && {
  23261. - test -z "$ac_c_werror_flag" ||
  23262. - test ! -s conftest.err
  23263. - } && test -s conftest.$ac_objext; then
  23264. +if ac_fn_c_try_compile "$LINENO"; then :
  23265. # It does; now see whether it defined to _BIG_ENDIAN or not.
  23266. - cat >conftest.$ac_ext <<_ACEOF
  23267. -/* confdefs.h. */
  23268. -_ACEOF
  23269. -cat confdefs.h >>conftest.$ac_ext
  23270. -cat >>conftest.$ac_ext <<_ACEOF
  23271. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23272. /* end confdefs.h. */
  23273. #include <limits.h>
  23274. @@ -13483,51 +12440,20 @@
  23275. return 0;
  23276. }
  23277. _ACEOF
  23278. -rm -f conftest.$ac_objext
  23279. -if { (ac_try="$ac_compile"
  23280. -case "(($ac_try" in
  23281. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23282. - *) ac_try_echo=$ac_try;;
  23283. -esac
  23284. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23285. -$as_echo "$ac_try_echo") >&5
  23286. - (eval "$ac_compile") 2>conftest.er1
  23287. - ac_status=$?
  23288. - grep -v '^ *+' conftest.er1 >conftest.err
  23289. - rm -f conftest.er1
  23290. - cat conftest.err >&5
  23291. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23292. - (exit $ac_status); } && {
  23293. - test -z "$ac_c_werror_flag" ||
  23294. - test ! -s conftest.err
  23295. - } && test -s conftest.$ac_objext; then
  23296. +if ac_fn_c_try_compile "$LINENO"; then :
  23297. ac_cv_c_bigendian=yes
  23298. else
  23299. - $as_echo "$as_me: failed program was:" >&5
  23300. -sed 's/^/| /' conftest.$ac_ext >&5
  23301. -
  23302. - ac_cv_c_bigendian=no
  23303. + ac_cv_c_bigendian=no
  23304. fi
  23305. -
  23306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23307. -else
  23308. - $as_echo "$as_me: failed program was:" >&5
  23309. -sed 's/^/| /' conftest.$ac_ext >&5
  23310. -
  23311. -
  23312. fi
  23313. -
  23314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23315. fi
  23316. if test $ac_cv_c_bigendian = unknown; then
  23317. # Compile a test program.
  23318. - if test "$cross_compiling" = yes; then
  23319. + if test "$cross_compiling" = yes; then :
  23320. # Try to guess by grepping values from an object file.
  23321. - cat >conftest.$ac_ext <<_ACEOF
  23322. -/* confdefs.h. */
  23323. -_ACEOF
  23324. -cat confdefs.h >>conftest.$ac_ext
  23325. -cat >>conftest.$ac_ext <<_ACEOF
  23326. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23327. /* end confdefs.h. */
  23328. short int ascii_mm[] =
  23329. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  23330. @@ -13553,24 +12479,7 @@
  23331. return 0;
  23332. }
  23333. _ACEOF
  23334. -rm -f conftest.$ac_objext
  23335. -if { (ac_try="$ac_compile"
  23336. -case "(($ac_try" in
  23337. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23338. - *) ac_try_echo=$ac_try;;
  23339. -esac
  23340. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23341. -$as_echo "$ac_try_echo") >&5
  23342. - (eval "$ac_compile") 2>conftest.er1
  23343. - ac_status=$?
  23344. - grep -v '^ *+' conftest.er1 >conftest.err
  23345. - rm -f conftest.er1
  23346. - cat conftest.err >&5
  23347. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23348. - (exit $ac_status); } && {
  23349. - test -z "$ac_c_werror_flag" ||
  23350. - test ! -s conftest.err
  23351. - } && test -s conftest.$ac_objext; then
  23352. +if ac_fn_c_try_compile "$LINENO"; then :
  23353. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  23354. ac_cv_c_bigendian=yes
  23355. fi
  23356. @@ -13582,20 +12491,10 @@
  23357. ac_cv_c_bigendian=unknown
  23358. fi
  23359. fi
  23360. -else
  23361. - $as_echo "$as_me: failed program was:" >&5
  23362. -sed 's/^/| /' conftest.$ac_ext >&5
  23363. -
  23364. -
  23365. fi
  23366. -
  23367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23368. else
  23369. - cat >conftest.$ac_ext <<_ACEOF
  23370. -/* confdefs.h. */
  23371. -_ACEOF
  23372. -cat confdefs.h >>conftest.$ac_ext
  23373. -cat >>conftest.$ac_ext <<_ACEOF
  23374. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23375. /* end confdefs.h. */
  23376. $ac_includes_default
  23377. int
  23378. @@ -13615,67 +12514,33 @@
  23379. return 0;
  23380. }
  23381. _ACEOF
  23382. -rm -f conftest$ac_exeext
  23383. -if { (ac_try="$ac_link"
  23384. -case "(($ac_try" in
  23385. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23386. - *) ac_try_echo=$ac_try;;
  23387. -esac
  23388. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23389. -$as_echo "$ac_try_echo") >&5
  23390. - (eval "$ac_link") 2>&5
  23391. - ac_status=$?
  23392. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23393. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23394. - { (case "(($ac_try" in
  23395. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23396. - *) ac_try_echo=$ac_try;;
  23397. -esac
  23398. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23399. -$as_echo "$ac_try_echo") >&5
  23400. - (eval "$ac_try") 2>&5
  23401. - ac_status=$?
  23402. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23403. - (exit $ac_status); }; }; then
  23404. +if ac_fn_c_try_run "$LINENO"; then :
  23405. ac_cv_c_bigendian=no
  23406. else
  23407. - $as_echo "$as_me: program exited with status $ac_status" >&5
  23408. -$as_echo "$as_me: failed program was:" >&5
  23409. -sed 's/^/| /' conftest.$ac_ext >&5
  23410. -
  23411. -( exit $ac_status )
  23412. -ac_cv_c_bigendian=yes
  23413. + ac_cv_c_bigendian=yes
  23414. fi
  23415. -rm -rf conftest.dSYM
  23416. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23417. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23418. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  23419. fi
  23420. -
  23421. fi
  23422. fi
  23423. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  23424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  23425. $as_echo "$ac_cv_c_bigendian" >&6; }
  23426. case $ac_cv_c_bigendian in #(
  23427. yes)
  23428. - cat >>confdefs.h <<\_ACEOF
  23429. -#define WORDS_BIGENDIAN 1
  23430. -_ACEOF
  23431. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  23432. ;; #(
  23433. no)
  23434. ;; #(
  23435. universal)
  23436. -cat >>confdefs.h <<\_ACEOF
  23437. -#define AC_APPLE_UNIVERSAL_BUILD 1
  23438. -_ACEOF
  23439. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  23440. ;; #(
  23441. *)
  23442. - { { $as_echo "$as_me:$LINENO: error: unknown endianness
  23443. - presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  23444. -$as_echo "$as_me: error: unknown endianness
  23445. - presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  23446. - { (exit 1); exit 1; }; } ;;
  23447. + as_fn_error "unknown endianness
  23448. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  23449. esac
  23450. @@ -13683,358 +12548,135 @@
  23451. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23452. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23453. # This bug is HP SR number 8606223364.
  23454. -{ $as_echo "$as_me:$LINENO: checking size of char" >&5
  23455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  23456. $as_echo_n "checking size of char... " >&6; }
  23457. -if test "${ac_cv_sizeof_char+set}" = set; then
  23458. +if test "${ac_cv_sizeof_char+set}" = set; then :
  23459. $as_echo_n "(cached) " >&6
  23460. else
  23461. - if test "$cross_compiling" = yes; then
  23462. - # Depending upon the size, compute the lo and hi bounds.
  23463. -cat >conftest.$ac_ext <<_ACEOF
  23464. -/* confdefs.h. */
  23465. -_ACEOF
  23466. -cat confdefs.h >>conftest.$ac_ext
  23467. -cat >>conftest.$ac_ext <<_ACEOF
  23468. -/* end confdefs.h. */
  23469. -$ac_includes_default
  23470. -int
  23471. -main ()
  23472. -{
  23473. -static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
  23474. -test_array [0] = 0
  23475. -
  23476. - ;
  23477. - return 0;
  23478. -}
  23479. -_ACEOF
  23480. -rm -f conftest.$ac_objext
  23481. -if { (ac_try="$ac_compile"
  23482. -case "(($ac_try" in
  23483. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23484. - *) ac_try_echo=$ac_try;;
  23485. -esac
  23486. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23487. -$as_echo "$ac_try_echo") >&5
  23488. - (eval "$ac_compile") 2>conftest.er1
  23489. - ac_status=$?
  23490. - grep -v '^ *+' conftest.er1 >conftest.err
  23491. - rm -f conftest.er1
  23492. - cat conftest.err >&5
  23493. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23494. - (exit $ac_status); } && {
  23495. - test -z "$ac_c_werror_flag" ||
  23496. - test ! -s conftest.err
  23497. - } && test -s conftest.$ac_objext; then
  23498. - ac_lo=0 ac_mid=0
  23499. - while :; do
  23500. - cat >conftest.$ac_ext <<_ACEOF
  23501. -/* confdefs.h. */
  23502. -_ACEOF
  23503. -cat confdefs.h >>conftest.$ac_ext
  23504. -cat >>conftest.$ac_ext <<_ACEOF
  23505. -/* end confdefs.h. */
  23506. -$ac_includes_default
  23507. -int
  23508. -main ()
  23509. -{
  23510. -static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
  23511. -test_array [0] = 0
  23512. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  23513. - ;
  23514. - return 0;
  23515. -}
  23516. -_ACEOF
  23517. -rm -f conftest.$ac_objext
  23518. -if { (ac_try="$ac_compile"
  23519. -case "(($ac_try" in
  23520. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23521. - *) ac_try_echo=$ac_try;;
  23522. -esac
  23523. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23524. -$as_echo "$ac_try_echo") >&5
  23525. - (eval "$ac_compile") 2>conftest.er1
  23526. - ac_status=$?
  23527. - grep -v '^ *+' conftest.er1 >conftest.err
  23528. - rm -f conftest.er1
  23529. - cat conftest.err >&5
  23530. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23531. - (exit $ac_status); } && {
  23532. - test -z "$ac_c_werror_flag" ||
  23533. - test ! -s conftest.err
  23534. - } && test -s conftest.$ac_objext; then
  23535. - ac_hi=$ac_mid; break
  23536. else
  23537. - $as_echo "$as_me: failed program was:" >&5
  23538. -sed 's/^/| /' conftest.$ac_ext >&5
  23539. -
  23540. - ac_lo=`expr $ac_mid + 1`
  23541. - if test $ac_lo -le $ac_mid; then
  23542. - ac_lo= ac_hi=
  23543. - break
  23544. - fi
  23545. - ac_mid=`expr 2 '*' $ac_mid + 1`
  23546. + if test "$ac_cv_type_char" = yes; then
  23547. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23548. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23549. +{ as_fn_set_status 77
  23550. +as_fn_error "cannot compute sizeof (char)
  23551. +See \`config.log' for more details." "$LINENO" 5; }; }
  23552. + else
  23553. + ac_cv_sizeof_char=0
  23554. + fi
  23555. fi
  23556. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23557. - done
  23558. -else
  23559. - $as_echo "$as_me: failed program was:" >&5
  23560. -sed 's/^/| /' conftest.$ac_ext >&5
  23561. +fi
  23562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  23563. +$as_echo "$ac_cv_sizeof_char" >&6; }
  23564. - cat >conftest.$ac_ext <<_ACEOF
  23565. -/* confdefs.h. */
  23566. -_ACEOF
  23567. -cat confdefs.h >>conftest.$ac_ext
  23568. -cat >>conftest.$ac_ext <<_ACEOF
  23569. -/* end confdefs.h. */
  23570. -$ac_includes_default
  23571. -int
  23572. -main ()
  23573. -{
  23574. -static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
  23575. -test_array [0] = 0
  23576. - ;
  23577. - return 0;
  23578. -}
  23579. -_ACEOF
  23580. -rm -f conftest.$ac_objext
  23581. -if { (ac_try="$ac_compile"
  23582. -case "(($ac_try" in
  23583. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23584. - *) ac_try_echo=$ac_try;;
  23585. -esac
  23586. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23587. -$as_echo "$ac_try_echo") >&5
  23588. - (eval "$ac_compile") 2>conftest.er1
  23589. - ac_status=$?
  23590. - grep -v '^ *+' conftest.er1 >conftest.err
  23591. - rm -f conftest.er1
  23592. - cat conftest.err >&5
  23593. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23594. - (exit $ac_status); } && {
  23595. - test -z "$ac_c_werror_flag" ||
  23596. - test ! -s conftest.err
  23597. - } && test -s conftest.$ac_objext; then
  23598. - ac_hi=-1 ac_mid=-1
  23599. - while :; do
  23600. - cat >conftest.$ac_ext <<_ACEOF
  23601. -/* confdefs.h. */
  23602. -_ACEOF
  23603. -cat confdefs.h >>conftest.$ac_ext
  23604. -cat >>conftest.$ac_ext <<_ACEOF
  23605. -/* end confdefs.h. */
  23606. -$ac_includes_default
  23607. -int
  23608. -main ()
  23609. -{
  23610. -static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
  23611. -test_array [0] = 0
  23612. - ;
  23613. - return 0;
  23614. -}
  23615. +cat >>confdefs.h <<_ACEOF
  23616. +#define SIZEOF_CHAR $ac_cv_sizeof_char
  23617. _ACEOF
  23618. -rm -f conftest.$ac_objext
  23619. -if { (ac_try="$ac_compile"
  23620. -case "(($ac_try" in
  23621. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23622. - *) ac_try_echo=$ac_try;;
  23623. -esac
  23624. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23625. -$as_echo "$ac_try_echo") >&5
  23626. - (eval "$ac_compile") 2>conftest.er1
  23627. - ac_status=$?
  23628. - grep -v '^ *+' conftest.er1 >conftest.err
  23629. - rm -f conftest.er1
  23630. - cat conftest.err >&5
  23631. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23632. - (exit $ac_status); } && {
  23633. - test -z "$ac_c_werror_flag" ||
  23634. - test ! -s conftest.err
  23635. - } && test -s conftest.$ac_objext; then
  23636. - ac_lo=$ac_mid; break
  23637. -else
  23638. - $as_echo "$as_me: failed program was:" >&5
  23639. -sed 's/^/| /' conftest.$ac_ext >&5
  23640. - ac_hi=`expr '(' $ac_mid ')' - 1`
  23641. - if test $ac_mid -le $ac_hi; then
  23642. - ac_lo= ac_hi=
  23643. - break
  23644. - fi
  23645. - ac_mid=`expr 2 '*' $ac_mid`
  23646. -fi
  23647. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23648. - done
  23649. +# The cast to long int works around a bug in the HP C Compiler
  23650. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23651. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23652. +# This bug is HP SR number 8606223364.
  23653. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
  23654. +$as_echo_n "checking size of unsigned char... " >&6; }
  23655. +if test "${ac_cv_sizeof_unsigned_char+set}" = set; then :
  23656. + $as_echo_n "(cached) " >&6
  23657. else
  23658. - $as_echo "$as_me: failed program was:" >&5
  23659. -sed 's/^/| /' conftest.$ac_ext >&5
  23660. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then :
  23661. - ac_lo= ac_hi=
  23662. +else
  23663. + if test "$ac_cv_type_unsigned_char" = yes; then
  23664. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23665. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23666. +{ as_fn_set_status 77
  23667. +as_fn_error "cannot compute sizeof (unsigned char)
  23668. +See \`config.log' for more details." "$LINENO" 5; }; }
  23669. + else
  23670. + ac_cv_sizeof_unsigned_char=0
  23671. + fi
  23672. fi
  23673. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23674. fi
  23675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
  23676. +$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
  23677. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23678. -# Binary search between lo and hi bounds.
  23679. -while test "x$ac_lo" != "x$ac_hi"; do
  23680. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23681. - cat >conftest.$ac_ext <<_ACEOF
  23682. -/* confdefs.h. */
  23683. -_ACEOF
  23684. -cat confdefs.h >>conftest.$ac_ext
  23685. -cat >>conftest.$ac_ext <<_ACEOF
  23686. -/* end confdefs.h. */
  23687. -$ac_includes_default
  23688. -int
  23689. -main ()
  23690. -{
  23691. -static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
  23692. -test_array [0] = 0
  23693. - ;
  23694. - return 0;
  23695. -}
  23696. +
  23697. +cat >>confdefs.h <<_ACEOF
  23698. +#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
  23699. _ACEOF
  23700. -rm -f conftest.$ac_objext
  23701. -if { (ac_try="$ac_compile"
  23702. -case "(($ac_try" in
  23703. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23704. - *) ac_try_echo=$ac_try;;
  23705. -esac
  23706. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23707. -$as_echo "$ac_try_echo") >&5
  23708. - (eval "$ac_compile") 2>conftest.er1
  23709. - ac_status=$?
  23710. - grep -v '^ *+' conftest.er1 >conftest.err
  23711. - rm -f conftest.er1
  23712. - cat conftest.err >&5
  23713. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23714. - (exit $ac_status); } && {
  23715. - test -z "$ac_c_werror_flag" ||
  23716. - test ! -s conftest.err
  23717. - } && test -s conftest.$ac_objext; then
  23718. - ac_hi=$ac_mid
  23719. -else
  23720. - $as_echo "$as_me: failed program was:" >&5
  23721. -sed 's/^/| /' conftest.$ac_ext >&5
  23722. - ac_lo=`expr '(' $ac_mid ')' + 1`
  23723. -fi
  23724. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23725. -done
  23726. -case $ac_lo in
  23727. -?*) ac_cv_sizeof_char=$ac_lo;;
  23728. -'') if test "$ac_cv_type_char" = yes; then
  23729. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23730. +# The cast to long int works around a bug in the HP C Compiler
  23731. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23732. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23733. +# This bug is HP SR number 8606223364.
  23734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  23735. +$as_echo_n "checking size of short... " >&6; }
  23736. +if test "${ac_cv_sizeof_short+set}" = set; then :
  23737. + $as_echo_n "(cached) " >&6
  23738. +else
  23739. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  23740. +
  23741. +else
  23742. + if test "$ac_cv_type_short" = yes; then
  23743. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23745. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  23746. -See \`config.log' for more details." >&5
  23747. -$as_echo "$as_me: error: cannot compute sizeof (char)
  23748. -See \`config.log' for more details." >&2;}
  23749. - { (exit 77); exit 77; }; }; }
  23750. +{ as_fn_set_status 77
  23751. +as_fn_error "cannot compute sizeof (short)
  23752. +See \`config.log' for more details." "$LINENO" 5; }; }
  23753. else
  23754. - ac_cv_sizeof_char=0
  23755. - fi ;;
  23756. -esac
  23757. -else
  23758. - cat >conftest.$ac_ext <<_ACEOF
  23759. -/* confdefs.h. */
  23760. -_ACEOF
  23761. -cat confdefs.h >>conftest.$ac_ext
  23762. -cat >>conftest.$ac_ext <<_ACEOF
  23763. -/* end confdefs.h. */
  23764. -$ac_includes_default
  23765. -static long int longval () { return (long int) (sizeof (char)); }
  23766. -static unsigned long int ulongval () { return (long int) (sizeof (char)); }
  23767. -#include <stdio.h>
  23768. -#include <stdlib.h>
  23769. -int
  23770. -main ()
  23771. -{
  23772. + ac_cv_sizeof_short=0
  23773. + fi
  23774. +fi
  23775. - FILE *f = fopen ("conftest.val", "w");
  23776. - if (! f)
  23777. - return 1;
  23778. - if (((long int) (sizeof (char))) < 0)
  23779. - {
  23780. - long int i = longval ();
  23781. - if (i != ((long int) (sizeof (char))))
  23782. - return 1;
  23783. - fprintf (f, "%ld", i);
  23784. - }
  23785. - else
  23786. - {
  23787. - unsigned long int i = ulongval ();
  23788. - if (i != ((long int) (sizeof (char))))
  23789. - return 1;
  23790. - fprintf (f, "%lu", i);
  23791. - }
  23792. - /* Do not output a trailing newline, as this causes \r\n confusion
  23793. - on some platforms. */
  23794. - return ferror (f) || fclose (f) != 0;
  23795. +fi
  23796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  23797. +$as_echo "$ac_cv_sizeof_short" >&6; }
  23798. - ;
  23799. - return 0;
  23800. -}
  23801. +
  23802. +
  23803. +cat >>confdefs.h <<_ACEOF
  23804. +#define SIZEOF_SHORT $ac_cv_sizeof_short
  23805. _ACEOF
  23806. -rm -f conftest$ac_exeext
  23807. -if { (ac_try="$ac_link"
  23808. -case "(($ac_try" in
  23809. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23810. - *) ac_try_echo=$ac_try;;
  23811. -esac
  23812. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23813. -$as_echo "$ac_try_echo") >&5
  23814. - (eval "$ac_link") 2>&5
  23815. - ac_status=$?
  23816. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23817. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23818. - { (case "(($ac_try" in
  23819. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23820. - *) ac_try_echo=$ac_try;;
  23821. -esac
  23822. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23823. -$as_echo "$ac_try_echo") >&5
  23824. - (eval "$ac_try") 2>&5
  23825. - ac_status=$?
  23826. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23827. - (exit $ac_status); }; }; then
  23828. - ac_cv_sizeof_char=`cat conftest.val`
  23829. +
  23830. +
  23831. +# The cast to long int works around a bug in the HP C Compiler
  23832. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23833. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23834. +# This bug is HP SR number 8606223364.
  23835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  23836. +$as_echo_n "checking size of unsigned short... " >&6; }
  23837. +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
  23838. + $as_echo_n "(cached) " >&6
  23839. else
  23840. - $as_echo "$as_me: program exited with status $ac_status" >&5
  23841. -$as_echo "$as_me: failed program was:" >&5
  23842. -sed 's/^/| /' conftest.$ac_ext >&5
  23843. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  23844. -( exit $ac_status )
  23845. -if test "$ac_cv_type_char" = yes; then
  23846. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23847. +else
  23848. + if test "$ac_cv_type_unsigned_short" = yes; then
  23849. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23850. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23851. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  23852. -See \`config.log' for more details." >&5
  23853. -$as_echo "$as_me: error: cannot compute sizeof (char)
  23854. -See \`config.log' for more details." >&2;}
  23855. - { (exit 77); exit 77; }; }; }
  23856. +{ as_fn_set_status 77
  23857. +as_fn_error "cannot compute sizeof (unsigned short)
  23858. +See \`config.log' for more details." "$LINENO" 5; }; }
  23859. else
  23860. - ac_cv_sizeof_char=0
  23861. + ac_cv_sizeof_unsigned_short=0
  23862. fi
  23863. fi
  23864. -rm -rf conftest.dSYM
  23865. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23866. -fi
  23867. -rm -f conftest.val
  23868. +
  23869. fi
  23870. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  23871. -$as_echo "$ac_cv_sizeof_char" >&6; }
  23872. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  23873. +$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  23874. cat >>confdefs.h <<_ACEOF
  23875. -#define SIZEOF_CHAR $ac_cv_sizeof_char
  23876. +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  23877. _ACEOF
  23878. @@ -14042,358 +12684,135 @@
  23879. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23880. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23881. # This bug is HP SR number 8606223364.
  23882. -{ $as_echo "$as_me:$LINENO: checking size of unsigned char" >&5
  23883. -$as_echo_n "checking size of unsigned char... " >&6; }
  23884. -if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
  23885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  23886. +$as_echo_n "checking size of int... " >&6; }
  23887. +if test "${ac_cv_sizeof_int+set}" = set; then :
  23888. $as_echo_n "(cached) " >&6
  23889. else
  23890. - if test "$cross_compiling" = yes; then
  23891. - # Depending upon the size, compute the lo and hi bounds.
  23892. -cat >conftest.$ac_ext <<_ACEOF
  23893. -/* confdefs.h. */
  23894. -_ACEOF
  23895. -cat confdefs.h >>conftest.$ac_ext
  23896. -cat >>conftest.$ac_ext <<_ACEOF
  23897. -/* end confdefs.h. */
  23898. -$ac_includes_default
  23899. -int
  23900. -main ()
  23901. -{
  23902. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= 0)];
  23903. -test_array [0] = 0
  23904. -
  23905. - ;
  23906. - return 0;
  23907. -}
  23908. -_ACEOF
  23909. -rm -f conftest.$ac_objext
  23910. -if { (ac_try="$ac_compile"
  23911. -case "(($ac_try" in
  23912. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23913. - *) ac_try_echo=$ac_try;;
  23914. -esac
  23915. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23916. -$as_echo "$ac_try_echo") >&5
  23917. - (eval "$ac_compile") 2>conftest.er1
  23918. - ac_status=$?
  23919. - grep -v '^ *+' conftest.er1 >conftest.err
  23920. - rm -f conftest.er1
  23921. - cat conftest.err >&5
  23922. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23923. - (exit $ac_status); } && {
  23924. - test -z "$ac_c_werror_flag" ||
  23925. - test ! -s conftest.err
  23926. - } && test -s conftest.$ac_objext; then
  23927. - ac_lo=0 ac_mid=0
  23928. - while :; do
  23929. - cat >conftest.$ac_ext <<_ACEOF
  23930. -/* confdefs.h. */
  23931. -_ACEOF
  23932. -cat confdefs.h >>conftest.$ac_ext
  23933. -cat >>conftest.$ac_ext <<_ACEOF
  23934. -/* end confdefs.h. */
  23935. -$ac_includes_default
  23936. -int
  23937. -main ()
  23938. -{
  23939. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
  23940. -test_array [0] = 0
  23941. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  23942. - ;
  23943. - return 0;
  23944. -}
  23945. -_ACEOF
  23946. -rm -f conftest.$ac_objext
  23947. -if { (ac_try="$ac_compile"
  23948. -case "(($ac_try" in
  23949. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23950. - *) ac_try_echo=$ac_try;;
  23951. -esac
  23952. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23953. -$as_echo "$ac_try_echo") >&5
  23954. - (eval "$ac_compile") 2>conftest.er1
  23955. - ac_status=$?
  23956. - grep -v '^ *+' conftest.er1 >conftest.err
  23957. - rm -f conftest.er1
  23958. - cat conftest.err >&5
  23959. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23960. - (exit $ac_status); } && {
  23961. - test -z "$ac_c_werror_flag" ||
  23962. - test ! -s conftest.err
  23963. - } && test -s conftest.$ac_objext; then
  23964. - ac_hi=$ac_mid; break
  23965. else
  23966. - $as_echo "$as_me: failed program was:" >&5
  23967. -sed 's/^/| /' conftest.$ac_ext >&5
  23968. -
  23969. - ac_lo=`expr $ac_mid + 1`
  23970. - if test $ac_lo -le $ac_mid; then
  23971. - ac_lo= ac_hi=
  23972. - break
  23973. - fi
  23974. - ac_mid=`expr 2 '*' $ac_mid + 1`
  23975. + if test "$ac_cv_type_int" = yes; then
  23976. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23977. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23978. +{ as_fn_set_status 77
  23979. +as_fn_error "cannot compute sizeof (int)
  23980. +See \`config.log' for more details." "$LINENO" 5; }; }
  23981. + else
  23982. + ac_cv_sizeof_int=0
  23983. + fi
  23984. fi
  23985. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23986. - done
  23987. -else
  23988. - $as_echo "$as_me: failed program was:" >&5
  23989. -sed 's/^/| /' conftest.$ac_ext >&5
  23990. +fi
  23991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  23992. +$as_echo "$ac_cv_sizeof_int" >&6; }
  23993. - cat >conftest.$ac_ext <<_ACEOF
  23994. -/* confdefs.h. */
  23995. -_ACEOF
  23996. -cat confdefs.h >>conftest.$ac_ext
  23997. -cat >>conftest.$ac_ext <<_ACEOF
  23998. -/* end confdefs.h. */
  23999. -$ac_includes_default
  24000. -int
  24001. -main ()
  24002. -{
  24003. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) < 0)];
  24004. -test_array [0] = 0
  24005. - ;
  24006. - return 0;
  24007. -}
  24008. -_ACEOF
  24009. -rm -f conftest.$ac_objext
  24010. -if { (ac_try="$ac_compile"
  24011. -case "(($ac_try" in
  24012. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24013. - *) ac_try_echo=$ac_try;;
  24014. -esac
  24015. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24016. -$as_echo "$ac_try_echo") >&5
  24017. - (eval "$ac_compile") 2>conftest.er1
  24018. - ac_status=$?
  24019. - grep -v '^ *+' conftest.er1 >conftest.err
  24020. - rm -f conftest.er1
  24021. - cat conftest.err >&5
  24022. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24023. - (exit $ac_status); } && {
  24024. - test -z "$ac_c_werror_flag" ||
  24025. - test ! -s conftest.err
  24026. - } && test -s conftest.$ac_objext; then
  24027. - ac_hi=-1 ac_mid=-1
  24028. - while :; do
  24029. - cat >conftest.$ac_ext <<_ACEOF
  24030. -/* confdefs.h. */
  24031. -_ACEOF
  24032. -cat confdefs.h >>conftest.$ac_ext
  24033. -cat >>conftest.$ac_ext <<_ACEOF
  24034. -/* end confdefs.h. */
  24035. -$ac_includes_default
  24036. -int
  24037. -main ()
  24038. -{
  24039. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= $ac_mid)];
  24040. -test_array [0] = 0
  24041. - ;
  24042. - return 0;
  24043. -}
  24044. +cat >>confdefs.h <<_ACEOF
  24045. +#define SIZEOF_INT $ac_cv_sizeof_int
  24046. _ACEOF
  24047. -rm -f conftest.$ac_objext
  24048. -if { (ac_try="$ac_compile"
  24049. -case "(($ac_try" in
  24050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24051. - *) ac_try_echo=$ac_try;;
  24052. -esac
  24053. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24054. -$as_echo "$ac_try_echo") >&5
  24055. - (eval "$ac_compile") 2>conftest.er1
  24056. - ac_status=$?
  24057. - grep -v '^ *+' conftest.er1 >conftest.err
  24058. - rm -f conftest.er1
  24059. - cat conftest.err >&5
  24060. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24061. - (exit $ac_status); } && {
  24062. - test -z "$ac_c_werror_flag" ||
  24063. - test ! -s conftest.err
  24064. - } && test -s conftest.$ac_objext; then
  24065. - ac_lo=$ac_mid; break
  24066. -else
  24067. - $as_echo "$as_me: failed program was:" >&5
  24068. -sed 's/^/| /' conftest.$ac_ext >&5
  24069. - ac_hi=`expr '(' $ac_mid ')' - 1`
  24070. - if test $ac_mid -le $ac_hi; then
  24071. - ac_lo= ac_hi=
  24072. - break
  24073. - fi
  24074. - ac_mid=`expr 2 '*' $ac_mid`
  24075. -fi
  24076. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24077. - done
  24078. +# The cast to long int works around a bug in the HP C Compiler
  24079. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24080. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24081. +# This bug is HP SR number 8606223364.
  24082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  24083. +$as_echo_n "checking size of unsigned int... " >&6; }
  24084. +if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
  24085. + $as_echo_n "(cached) " >&6
  24086. else
  24087. - $as_echo "$as_me: failed program was:" >&5
  24088. -sed 's/^/| /' conftest.$ac_ext >&5
  24089. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
  24090. - ac_lo= ac_hi=
  24091. +else
  24092. + if test "$ac_cv_type_unsigned_int" = yes; then
  24093. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24094. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24095. +{ as_fn_set_status 77
  24096. +as_fn_error "cannot compute sizeof (unsigned int)
  24097. +See \`config.log' for more details." "$LINENO" 5; }; }
  24098. + else
  24099. + ac_cv_sizeof_unsigned_int=0
  24100. + fi
  24101. fi
  24102. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24103. fi
  24104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  24105. +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  24106. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24107. -# Binary search between lo and hi bounds.
  24108. -while test "x$ac_lo" != "x$ac_hi"; do
  24109. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24110. - cat >conftest.$ac_ext <<_ACEOF
  24111. -/* confdefs.h. */
  24112. -_ACEOF
  24113. -cat confdefs.h >>conftest.$ac_ext
  24114. -cat >>conftest.$ac_ext <<_ACEOF
  24115. -/* end confdefs.h. */
  24116. -$ac_includes_default
  24117. -int
  24118. -main ()
  24119. -{
  24120. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
  24121. -test_array [0] = 0
  24122. - ;
  24123. - return 0;
  24124. -}
  24125. +
  24126. +cat >>confdefs.h <<_ACEOF
  24127. +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  24128. _ACEOF
  24129. -rm -f conftest.$ac_objext
  24130. -if { (ac_try="$ac_compile"
  24131. -case "(($ac_try" in
  24132. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24133. - *) ac_try_echo=$ac_try;;
  24134. -esac
  24135. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24136. -$as_echo "$ac_try_echo") >&5
  24137. - (eval "$ac_compile") 2>conftest.er1
  24138. - ac_status=$?
  24139. - grep -v '^ *+' conftest.er1 >conftest.err
  24140. - rm -f conftest.er1
  24141. - cat conftest.err >&5
  24142. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24143. - (exit $ac_status); } && {
  24144. - test -z "$ac_c_werror_flag" ||
  24145. - test ! -s conftest.err
  24146. - } && test -s conftest.$ac_objext; then
  24147. - ac_hi=$ac_mid
  24148. -else
  24149. - $as_echo "$as_me: failed program was:" >&5
  24150. -sed 's/^/| /' conftest.$ac_ext >&5
  24151. - ac_lo=`expr '(' $ac_mid ')' + 1`
  24152. -fi
  24153. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24154. -done
  24155. -case $ac_lo in
  24156. -?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
  24157. -'') if test "$ac_cv_type_unsigned_char" = yes; then
  24158. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24159. +# The cast to long int works around a bug in the HP C Compiler
  24160. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24161. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24162. +# This bug is HP SR number 8606223364.
  24163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  24164. +$as_echo_n "checking size of long... " >&6; }
  24165. +if test "${ac_cv_sizeof_long+set}" = set; then :
  24166. + $as_echo_n "(cached) " >&6
  24167. +else
  24168. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  24169. +
  24170. +else
  24171. + if test "$ac_cv_type_long" = yes; then
  24172. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24173. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24174. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
  24175. -See \`config.log' for more details." >&5
  24176. -$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
  24177. -See \`config.log' for more details." >&2;}
  24178. - { (exit 77); exit 77; }; }; }
  24179. +{ as_fn_set_status 77
  24180. +as_fn_error "cannot compute sizeof (long)
  24181. +See \`config.log' for more details." "$LINENO" 5; }; }
  24182. else
  24183. - ac_cv_sizeof_unsigned_char=0
  24184. - fi ;;
  24185. -esac
  24186. -else
  24187. - cat >conftest.$ac_ext <<_ACEOF
  24188. -/* confdefs.h. */
  24189. -_ACEOF
  24190. -cat confdefs.h >>conftest.$ac_ext
  24191. -cat >>conftest.$ac_ext <<_ACEOF
  24192. -/* end confdefs.h. */
  24193. -$ac_includes_default
  24194. -static long int longval () { return (long int) (sizeof (unsigned char)); }
  24195. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned char)); }
  24196. -#include <stdio.h>
  24197. -#include <stdlib.h>
  24198. -int
  24199. -main ()
  24200. -{
  24201. + ac_cv_sizeof_long=0
  24202. + fi
  24203. +fi
  24204. - FILE *f = fopen ("conftest.val", "w");
  24205. - if (! f)
  24206. - return 1;
  24207. - if (((long int) (sizeof (unsigned char))) < 0)
  24208. - {
  24209. - long int i = longval ();
  24210. - if (i != ((long int) (sizeof (unsigned char))))
  24211. - return 1;
  24212. - fprintf (f, "%ld", i);
  24213. - }
  24214. - else
  24215. - {
  24216. - unsigned long int i = ulongval ();
  24217. - if (i != ((long int) (sizeof (unsigned char))))
  24218. - return 1;
  24219. - fprintf (f, "%lu", i);
  24220. - }
  24221. - /* Do not output a trailing newline, as this causes \r\n confusion
  24222. - on some platforms. */
  24223. - return ferror (f) || fclose (f) != 0;
  24224. +fi
  24225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  24226. +$as_echo "$ac_cv_sizeof_long" >&6; }
  24227. - ;
  24228. - return 0;
  24229. -}
  24230. +
  24231. +
  24232. +cat >>confdefs.h <<_ACEOF
  24233. +#define SIZEOF_LONG $ac_cv_sizeof_long
  24234. _ACEOF
  24235. -rm -f conftest$ac_exeext
  24236. -if { (ac_try="$ac_link"
  24237. -case "(($ac_try" in
  24238. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24239. - *) ac_try_echo=$ac_try;;
  24240. -esac
  24241. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24242. -$as_echo "$ac_try_echo") >&5
  24243. - (eval "$ac_link") 2>&5
  24244. - ac_status=$?
  24245. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24246. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24247. - { (case "(($ac_try" in
  24248. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24249. - *) ac_try_echo=$ac_try;;
  24250. -esac
  24251. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24252. -$as_echo "$ac_try_echo") >&5
  24253. - (eval "$ac_try") 2>&5
  24254. - ac_status=$?
  24255. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24256. - (exit $ac_status); }; }; then
  24257. - ac_cv_sizeof_unsigned_char=`cat conftest.val`
  24258. +
  24259. +
  24260. +# The cast to long int works around a bug in the HP C Compiler
  24261. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24262. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24263. +# This bug is HP SR number 8606223364.
  24264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  24265. +$as_echo_n "checking size of unsigned long... " >&6; }
  24266. +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  24267. + $as_echo_n "(cached) " >&6
  24268. else
  24269. - $as_echo "$as_me: program exited with status $ac_status" >&5
  24270. -$as_echo "$as_me: failed program was:" >&5
  24271. -sed 's/^/| /' conftest.$ac_ext >&5
  24272. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  24273. -( exit $ac_status )
  24274. -if test "$ac_cv_type_unsigned_char" = yes; then
  24275. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24276. +else
  24277. + if test "$ac_cv_type_unsigned_long" = yes; then
  24278. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24280. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
  24281. -See \`config.log' for more details." >&5
  24282. -$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
  24283. -See \`config.log' for more details." >&2;}
  24284. - { (exit 77); exit 77; }; }; }
  24285. +{ as_fn_set_status 77
  24286. +as_fn_error "cannot compute sizeof (unsigned long)
  24287. +See \`config.log' for more details." "$LINENO" 5; }; }
  24288. else
  24289. - ac_cv_sizeof_unsigned_char=0
  24290. + ac_cv_sizeof_unsigned_long=0
  24291. fi
  24292. fi
  24293. -rm -rf conftest.dSYM
  24294. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24295. -fi
  24296. -rm -f conftest.val
  24297. +
  24298. fi
  24299. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
  24300. -$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
  24301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  24302. +$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  24303. cat >>confdefs.h <<_ACEOF
  24304. -#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
  24305. +#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  24306. _ACEOF
  24307. @@ -14401,358 +12820,135 @@
  24308. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24309. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24310. # This bug is HP SR number 8606223364.
  24311. -{ $as_echo "$as_me:$LINENO: checking size of short" >&5
  24312. -$as_echo_n "checking size of short... " >&6; }
  24313. -if test "${ac_cv_sizeof_short+set}" = set; then
  24314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  24315. +$as_echo_n "checking size of size_t... " >&6; }
  24316. +if test "${ac_cv_sizeof_size_t+set}" = set; then :
  24317. $as_echo_n "(cached) " >&6
  24318. else
  24319. - if test "$cross_compiling" = yes; then
  24320. - # Depending upon the size, compute the lo and hi bounds.
  24321. -cat >conftest.$ac_ext <<_ACEOF
  24322. -/* confdefs.h. */
  24323. -_ACEOF
  24324. -cat confdefs.h >>conftest.$ac_ext
  24325. -cat >>conftest.$ac_ext <<_ACEOF
  24326. -/* end confdefs.h. */
  24327. -$ac_includes_default
  24328. -int
  24329. -main ()
  24330. -{
  24331. -static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  24332. -test_array [0] = 0
  24333. -
  24334. - ;
  24335. - return 0;
  24336. -}
  24337. -_ACEOF
  24338. -rm -f conftest.$ac_objext
  24339. -if { (ac_try="$ac_compile"
  24340. -case "(($ac_try" in
  24341. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24342. - *) ac_try_echo=$ac_try;;
  24343. -esac
  24344. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24345. -$as_echo "$ac_try_echo") >&5
  24346. - (eval "$ac_compile") 2>conftest.er1
  24347. - ac_status=$?
  24348. - grep -v '^ *+' conftest.er1 >conftest.err
  24349. - rm -f conftest.er1
  24350. - cat conftest.err >&5
  24351. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24352. - (exit $ac_status); } && {
  24353. - test -z "$ac_c_werror_flag" ||
  24354. - test ! -s conftest.err
  24355. - } && test -s conftest.$ac_objext; then
  24356. - ac_lo=0 ac_mid=0
  24357. - while :; do
  24358. - cat >conftest.$ac_ext <<_ACEOF
  24359. -/* confdefs.h. */
  24360. -_ACEOF
  24361. -cat confdefs.h >>conftest.$ac_ext
  24362. -cat >>conftest.$ac_ext <<_ACEOF
  24363. -/* end confdefs.h. */
  24364. -$ac_includes_default
  24365. -int
  24366. -main ()
  24367. -{
  24368. -static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  24369. -test_array [0] = 0
  24370. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  24371. - ;
  24372. - return 0;
  24373. -}
  24374. -_ACEOF
  24375. -rm -f conftest.$ac_objext
  24376. -if { (ac_try="$ac_compile"
  24377. -case "(($ac_try" in
  24378. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24379. - *) ac_try_echo=$ac_try;;
  24380. -esac
  24381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24382. -$as_echo "$ac_try_echo") >&5
  24383. - (eval "$ac_compile") 2>conftest.er1
  24384. - ac_status=$?
  24385. - grep -v '^ *+' conftest.er1 >conftest.err
  24386. - rm -f conftest.er1
  24387. - cat conftest.err >&5
  24388. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24389. - (exit $ac_status); } && {
  24390. - test -z "$ac_c_werror_flag" ||
  24391. - test ! -s conftest.err
  24392. - } && test -s conftest.$ac_objext; then
  24393. - ac_hi=$ac_mid; break
  24394. else
  24395. - $as_echo "$as_me: failed program was:" >&5
  24396. -sed 's/^/| /' conftest.$ac_ext >&5
  24397. -
  24398. - ac_lo=`expr $ac_mid + 1`
  24399. - if test $ac_lo -le $ac_mid; then
  24400. - ac_lo= ac_hi=
  24401. - break
  24402. - fi
  24403. - ac_mid=`expr 2 '*' $ac_mid + 1`
  24404. + if test "$ac_cv_type_size_t" = yes; then
  24405. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24406. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24407. +{ as_fn_set_status 77
  24408. +as_fn_error "cannot compute sizeof (size_t)
  24409. +See \`config.log' for more details." "$LINENO" 5; }; }
  24410. + else
  24411. + ac_cv_sizeof_size_t=0
  24412. + fi
  24413. fi
  24414. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24415. - done
  24416. -else
  24417. - $as_echo "$as_me: failed program was:" >&5
  24418. -sed 's/^/| /' conftest.$ac_ext >&5
  24419. +fi
  24420. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  24421. +$as_echo "$ac_cv_sizeof_size_t" >&6; }
  24422. - cat >conftest.$ac_ext <<_ACEOF
  24423. -/* confdefs.h. */
  24424. -_ACEOF
  24425. -cat confdefs.h >>conftest.$ac_ext
  24426. -cat >>conftest.$ac_ext <<_ACEOF
  24427. -/* end confdefs.h. */
  24428. -$ac_includes_default
  24429. -int
  24430. -main ()
  24431. -{
  24432. -static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  24433. -test_array [0] = 0
  24434. - ;
  24435. - return 0;
  24436. -}
  24437. -_ACEOF
  24438. -rm -f conftest.$ac_objext
  24439. -if { (ac_try="$ac_compile"
  24440. -case "(($ac_try" in
  24441. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24442. - *) ac_try_echo=$ac_try;;
  24443. -esac
  24444. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24445. -$as_echo "$ac_try_echo") >&5
  24446. - (eval "$ac_compile") 2>conftest.er1
  24447. - ac_status=$?
  24448. - grep -v '^ *+' conftest.er1 >conftest.err
  24449. - rm -f conftest.er1
  24450. - cat conftest.err >&5
  24451. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24452. - (exit $ac_status); } && {
  24453. - test -z "$ac_c_werror_flag" ||
  24454. - test ! -s conftest.err
  24455. - } && test -s conftest.$ac_objext; then
  24456. - ac_hi=-1 ac_mid=-1
  24457. - while :; do
  24458. - cat >conftest.$ac_ext <<_ACEOF
  24459. -/* confdefs.h. */
  24460. -_ACEOF
  24461. -cat confdefs.h >>conftest.$ac_ext
  24462. -cat >>conftest.$ac_ext <<_ACEOF
  24463. -/* end confdefs.h. */
  24464. -$ac_includes_default
  24465. -int
  24466. -main ()
  24467. -{
  24468. -static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  24469. -test_array [0] = 0
  24470. - ;
  24471. - return 0;
  24472. -}
  24473. +cat >>confdefs.h <<_ACEOF
  24474. +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  24475. _ACEOF
  24476. -rm -f conftest.$ac_objext
  24477. -if { (ac_try="$ac_compile"
  24478. -case "(($ac_try" in
  24479. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24480. - *) ac_try_echo=$ac_try;;
  24481. -esac
  24482. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24483. -$as_echo "$ac_try_echo") >&5
  24484. - (eval "$ac_compile") 2>conftest.er1
  24485. - ac_status=$?
  24486. - grep -v '^ *+' conftest.er1 >conftest.err
  24487. - rm -f conftest.er1
  24488. - cat conftest.err >&5
  24489. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24490. - (exit $ac_status); } && {
  24491. - test -z "$ac_c_werror_flag" ||
  24492. - test ! -s conftest.err
  24493. - } && test -s conftest.$ac_objext; then
  24494. - ac_lo=$ac_mid; break
  24495. -else
  24496. - $as_echo "$as_me: failed program was:" >&5
  24497. -sed 's/^/| /' conftest.$ac_ext >&5
  24498. - ac_hi=`expr '(' $ac_mid ')' - 1`
  24499. - if test $ac_mid -le $ac_hi; then
  24500. - ac_lo= ac_hi=
  24501. - break
  24502. - fi
  24503. - ac_mid=`expr 2 '*' $ac_mid`
  24504. -fi
  24505. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24506. - done
  24507. +# The cast to long int works around a bug in the HP C Compiler
  24508. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24509. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24510. +# This bug is HP SR number 8606223364.
  24511. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  24512. +$as_echo_n "checking size of long long... " >&6; }
  24513. +if test "${ac_cv_sizeof_long_long+set}" = set; then :
  24514. + $as_echo_n "(cached) " >&6
  24515. else
  24516. - $as_echo "$as_me: failed program was:" >&5
  24517. -sed 's/^/| /' conftest.$ac_ext >&5
  24518. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  24519. - ac_lo= ac_hi=
  24520. +else
  24521. + if test "$ac_cv_type_long_long" = yes; then
  24522. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24523. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24524. +{ as_fn_set_status 77
  24525. +as_fn_error "cannot compute sizeof (long long)
  24526. +See \`config.log' for more details." "$LINENO" 5; }; }
  24527. + else
  24528. + ac_cv_sizeof_long_long=0
  24529. + fi
  24530. fi
  24531. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24532. fi
  24533. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  24534. +$as_echo "$ac_cv_sizeof_long_long" >&6; }
  24535. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24536. -# Binary search between lo and hi bounds.
  24537. -while test "x$ac_lo" != "x$ac_hi"; do
  24538. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24539. - cat >conftest.$ac_ext <<_ACEOF
  24540. -/* confdefs.h. */
  24541. -_ACEOF
  24542. -cat confdefs.h >>conftest.$ac_ext
  24543. -cat >>conftest.$ac_ext <<_ACEOF
  24544. -/* end confdefs.h. */
  24545. -$ac_includes_default
  24546. -int
  24547. -main ()
  24548. -{
  24549. -static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  24550. -test_array [0] = 0
  24551. - ;
  24552. - return 0;
  24553. -}
  24554. +
  24555. +cat >>confdefs.h <<_ACEOF
  24556. +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  24557. _ACEOF
  24558. -rm -f conftest.$ac_objext
  24559. -if { (ac_try="$ac_compile"
  24560. -case "(($ac_try" in
  24561. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24562. - *) ac_try_echo=$ac_try;;
  24563. -esac
  24564. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24565. -$as_echo "$ac_try_echo") >&5
  24566. - (eval "$ac_compile") 2>conftest.er1
  24567. - ac_status=$?
  24568. - grep -v '^ *+' conftest.er1 >conftest.err
  24569. - rm -f conftest.er1
  24570. - cat conftest.err >&5
  24571. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24572. - (exit $ac_status); } && {
  24573. - test -z "$ac_c_werror_flag" ||
  24574. - test ! -s conftest.err
  24575. - } && test -s conftest.$ac_objext; then
  24576. - ac_hi=$ac_mid
  24577. -else
  24578. - $as_echo "$as_me: failed program was:" >&5
  24579. -sed 's/^/| /' conftest.$ac_ext >&5
  24580. - ac_lo=`expr '(' $ac_mid ')' + 1`
  24581. -fi
  24582. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24583. -done
  24584. -case $ac_lo in
  24585. -?*) ac_cv_sizeof_short=$ac_lo;;
  24586. -'') if test "$ac_cv_type_short" = yes; then
  24587. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24588. +# The cast to long int works around a bug in the HP C Compiler
  24589. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24590. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24591. +# This bug is HP SR number 8606223364.
  24592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  24593. +$as_echo_n "checking size of unsigned long long... " >&6; }
  24594. +if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
  24595. + $as_echo_n "(cached) " >&6
  24596. +else
  24597. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  24598. +
  24599. +else
  24600. + if test "$ac_cv_type_unsigned_long_long" = yes; then
  24601. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24603. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  24604. -See \`config.log' for more details." >&5
  24605. -$as_echo "$as_me: error: cannot compute sizeof (short)
  24606. -See \`config.log' for more details." >&2;}
  24607. - { (exit 77); exit 77; }; }; }
  24608. +{ as_fn_set_status 77
  24609. +as_fn_error "cannot compute sizeof (unsigned long long)
  24610. +See \`config.log' for more details." "$LINENO" 5; }; }
  24611. else
  24612. - ac_cv_sizeof_short=0
  24613. - fi ;;
  24614. -esac
  24615. -else
  24616. - cat >conftest.$ac_ext <<_ACEOF
  24617. -/* confdefs.h. */
  24618. -_ACEOF
  24619. -cat confdefs.h >>conftest.$ac_ext
  24620. -cat >>conftest.$ac_ext <<_ACEOF
  24621. -/* end confdefs.h. */
  24622. -$ac_includes_default
  24623. -static long int longval () { return (long int) (sizeof (short)); }
  24624. -static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  24625. -#include <stdio.h>
  24626. -#include <stdlib.h>
  24627. -int
  24628. -main ()
  24629. -{
  24630. + ac_cv_sizeof_unsigned_long_long=0
  24631. + fi
  24632. +fi
  24633. - FILE *f = fopen ("conftest.val", "w");
  24634. - if (! f)
  24635. - return 1;
  24636. - if (((long int) (sizeof (short))) < 0)
  24637. - {
  24638. - long int i = longval ();
  24639. - if (i != ((long int) (sizeof (short))))
  24640. - return 1;
  24641. - fprintf (f, "%ld", i);
  24642. - }
  24643. - else
  24644. - {
  24645. - unsigned long int i = ulongval ();
  24646. - if (i != ((long int) (sizeof (short))))
  24647. - return 1;
  24648. - fprintf (f, "%lu", i);
  24649. - }
  24650. - /* Do not output a trailing newline, as this causes \r\n confusion
  24651. - on some platforms. */
  24652. - return ferror (f) || fclose (f) != 0;
  24653. +fi
  24654. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  24655. +$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  24656. - ;
  24657. - return 0;
  24658. -}
  24659. +
  24660. +
  24661. +cat >>confdefs.h <<_ACEOF
  24662. +#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  24663. _ACEOF
  24664. -rm -f conftest$ac_exeext
  24665. -if { (ac_try="$ac_link"
  24666. -case "(($ac_try" in
  24667. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24668. - *) ac_try_echo=$ac_try;;
  24669. -esac
  24670. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24671. -$as_echo "$ac_try_echo") >&5
  24672. - (eval "$ac_link") 2>&5
  24673. - ac_status=$?
  24674. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24675. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24676. - { (case "(($ac_try" in
  24677. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24678. - *) ac_try_echo=$ac_try;;
  24679. -esac
  24680. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24681. -$as_echo "$ac_try_echo") >&5
  24682. - (eval "$ac_try") 2>&5
  24683. - ac_status=$?
  24684. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24685. - (exit $ac_status); }; }; then
  24686. - ac_cv_sizeof_short=`cat conftest.val`
  24687. +
  24688. +
  24689. +# The cast to long int works around a bug in the HP C Compiler
  24690. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24691. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24692. +# This bug is HP SR number 8606223364.
  24693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
  24694. +$as_echo_n "checking size of __int64... " >&6; }
  24695. +if test "${ac_cv_sizeof___int64+set}" = set; then :
  24696. + $as_echo_n "(cached) " >&6
  24697. else
  24698. - $as_echo "$as_me: program exited with status $ac_status" >&5
  24699. -$as_echo "$as_me: failed program was:" >&5
  24700. -sed 's/^/| /' conftest.$ac_ext >&5
  24701. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
  24702. -( exit $ac_status )
  24703. -if test "$ac_cv_type_short" = yes; then
  24704. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24705. +else
  24706. + if test "$ac_cv_type___int64" = yes; then
  24707. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24708. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24709. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  24710. -See \`config.log' for more details." >&5
  24711. -$as_echo "$as_me: error: cannot compute sizeof (short)
  24712. -See \`config.log' for more details." >&2;}
  24713. - { (exit 77); exit 77; }; }; }
  24714. +{ as_fn_set_status 77
  24715. +as_fn_error "cannot compute sizeof (__int64)
  24716. +See \`config.log' for more details." "$LINENO" 5; }; }
  24717. else
  24718. - ac_cv_sizeof_short=0
  24719. + ac_cv_sizeof___int64=0
  24720. fi
  24721. fi
  24722. -rm -rf conftest.dSYM
  24723. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24724. -fi
  24725. -rm -f conftest.val
  24726. +
  24727. fi
  24728. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  24729. -$as_echo "$ac_cv_sizeof_short" >&6; }
  24730. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
  24731. +$as_echo "$ac_cv_sizeof___int64" >&6; }
  24732. cat >>confdefs.h <<_ACEOF
  24733. -#define SIZEOF_SHORT $ac_cv_sizeof_short
  24734. +#define SIZEOF___INT64 $ac_cv_sizeof___int64
  24735. _ACEOF
  24736. @@ -14760,358 +12956,135 @@
  24737. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24738. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24739. # This bug is HP SR number 8606223364.
  24740. -{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
  24741. -$as_echo_n "checking size of unsigned short... " >&6; }
  24742. -if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  24743. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int64" >&5
  24744. +$as_echo_n "checking size of unsigned __int64... " >&6; }
  24745. +if test "${ac_cv_sizeof_unsigned___int64+set}" = set; then :
  24746. $as_echo_n "(cached) " >&6
  24747. else
  24748. - if test "$cross_compiling" = yes; then
  24749. - # Depending upon the size, compute the lo and hi bounds.
  24750. -cat >conftest.$ac_ext <<_ACEOF
  24751. -/* confdefs.h. */
  24752. -_ACEOF
  24753. -cat confdefs.h >>conftest.$ac_ext
  24754. -cat >>conftest.$ac_ext <<_ACEOF
  24755. -/* end confdefs.h. */
  24756. -$ac_includes_default
  24757. -int
  24758. -main ()
  24759. -{
  24760. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
  24761. -test_array [0] = 0
  24762. -
  24763. - ;
  24764. - return 0;
  24765. -}
  24766. -_ACEOF
  24767. -rm -f conftest.$ac_objext
  24768. -if { (ac_try="$ac_compile"
  24769. -case "(($ac_try" in
  24770. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24771. - *) ac_try_echo=$ac_try;;
  24772. -esac
  24773. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24774. -$as_echo "$ac_try_echo") >&5
  24775. - (eval "$ac_compile") 2>conftest.er1
  24776. - ac_status=$?
  24777. - grep -v '^ *+' conftest.er1 >conftest.err
  24778. - rm -f conftest.er1
  24779. - cat conftest.err >&5
  24780. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24781. - (exit $ac_status); } && {
  24782. - test -z "$ac_c_werror_flag" ||
  24783. - test ! -s conftest.err
  24784. - } && test -s conftest.$ac_objext; then
  24785. - ac_lo=0 ac_mid=0
  24786. - while :; do
  24787. - cat >conftest.$ac_ext <<_ACEOF
  24788. -/* confdefs.h. */
  24789. -_ACEOF
  24790. -cat confdefs.h >>conftest.$ac_ext
  24791. -cat >>conftest.$ac_ext <<_ACEOF
  24792. -/* end confdefs.h. */
  24793. -$ac_includes_default
  24794. -int
  24795. -main ()
  24796. -{
  24797. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
  24798. -test_array [0] = 0
  24799. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int64))" "ac_cv_sizeof_unsigned___int64" "$ac_includes_default"; then :
  24800. - ;
  24801. - return 0;
  24802. -}
  24803. -_ACEOF
  24804. -rm -f conftest.$ac_objext
  24805. -if { (ac_try="$ac_compile"
  24806. -case "(($ac_try" in
  24807. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24808. - *) ac_try_echo=$ac_try;;
  24809. -esac
  24810. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24811. -$as_echo "$ac_try_echo") >&5
  24812. - (eval "$ac_compile") 2>conftest.er1
  24813. - ac_status=$?
  24814. - grep -v '^ *+' conftest.er1 >conftest.err
  24815. - rm -f conftest.er1
  24816. - cat conftest.err >&5
  24817. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24818. - (exit $ac_status); } && {
  24819. - test -z "$ac_c_werror_flag" ||
  24820. - test ! -s conftest.err
  24821. - } && test -s conftest.$ac_objext; then
  24822. - ac_hi=$ac_mid; break
  24823. else
  24824. - $as_echo "$as_me: failed program was:" >&5
  24825. -sed 's/^/| /' conftest.$ac_ext >&5
  24826. -
  24827. - ac_lo=`expr $ac_mid + 1`
  24828. - if test $ac_lo -le $ac_mid; then
  24829. - ac_lo= ac_hi=
  24830. - break
  24831. - fi
  24832. - ac_mid=`expr 2 '*' $ac_mid + 1`
  24833. + if test "$ac_cv_type_unsigned___int64" = yes; then
  24834. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24835. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24836. +{ as_fn_set_status 77
  24837. +as_fn_error "cannot compute sizeof (unsigned __int64)
  24838. +See \`config.log' for more details." "$LINENO" 5; }; }
  24839. + else
  24840. + ac_cv_sizeof_unsigned___int64=0
  24841. + fi
  24842. fi
  24843. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24844. - done
  24845. -else
  24846. - $as_echo "$as_me: failed program was:" >&5
  24847. -sed 's/^/| /' conftest.$ac_ext >&5
  24848. +fi
  24849. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int64" >&5
  24850. +$as_echo "$ac_cv_sizeof_unsigned___int64" >&6; }
  24851. - cat >conftest.$ac_ext <<_ACEOF
  24852. -/* confdefs.h. */
  24853. -_ACEOF
  24854. -cat confdefs.h >>conftest.$ac_ext
  24855. -cat >>conftest.$ac_ext <<_ACEOF
  24856. -/* end confdefs.h. */
  24857. -$ac_includes_default
  24858. -int
  24859. -main ()
  24860. -{
  24861. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
  24862. -test_array [0] = 0
  24863. - ;
  24864. - return 0;
  24865. -}
  24866. -_ACEOF
  24867. -rm -f conftest.$ac_objext
  24868. -if { (ac_try="$ac_compile"
  24869. -case "(($ac_try" in
  24870. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24871. - *) ac_try_echo=$ac_try;;
  24872. -esac
  24873. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24874. -$as_echo "$ac_try_echo") >&5
  24875. - (eval "$ac_compile") 2>conftest.er1
  24876. - ac_status=$?
  24877. - grep -v '^ *+' conftest.er1 >conftest.err
  24878. - rm -f conftest.er1
  24879. - cat conftest.err >&5
  24880. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24881. - (exit $ac_status); } && {
  24882. - test -z "$ac_c_werror_flag" ||
  24883. - test ! -s conftest.err
  24884. - } && test -s conftest.$ac_objext; then
  24885. - ac_hi=-1 ac_mid=-1
  24886. - while :; do
  24887. - cat >conftest.$ac_ext <<_ACEOF
  24888. -/* confdefs.h. */
  24889. -_ACEOF
  24890. -cat confdefs.h >>conftest.$ac_ext
  24891. -cat >>conftest.$ac_ext <<_ACEOF
  24892. -/* end confdefs.h. */
  24893. -$ac_includes_default
  24894. -int
  24895. -main ()
  24896. -{
  24897. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
  24898. -test_array [0] = 0
  24899. - ;
  24900. - return 0;
  24901. -}
  24902. +cat >>confdefs.h <<_ACEOF
  24903. +#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64
  24904. _ACEOF
  24905. -rm -f conftest.$ac_objext
  24906. -if { (ac_try="$ac_compile"
  24907. -case "(($ac_try" in
  24908. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24909. - *) ac_try_echo=$ac_try;;
  24910. -esac
  24911. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24912. -$as_echo "$ac_try_echo") >&5
  24913. - (eval "$ac_compile") 2>conftest.er1
  24914. - ac_status=$?
  24915. - grep -v '^ *+' conftest.er1 >conftest.err
  24916. - rm -f conftest.er1
  24917. - cat conftest.err >&5
  24918. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24919. - (exit $ac_status); } && {
  24920. - test -z "$ac_c_werror_flag" ||
  24921. - test ! -s conftest.err
  24922. - } && test -s conftest.$ac_objext; then
  24923. - ac_lo=$ac_mid; break
  24924. -else
  24925. - $as_echo "$as_me: failed program was:" >&5
  24926. -sed 's/^/| /' conftest.$ac_ext >&5
  24927. - ac_hi=`expr '(' $ac_mid ')' - 1`
  24928. - if test $ac_mid -le $ac_hi; then
  24929. - ac_lo= ac_hi=
  24930. - break
  24931. - fi
  24932. - ac_mid=`expr 2 '*' $ac_mid`
  24933. -fi
  24934. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24935. - done
  24936. +# The cast to long int works around a bug in the HP C Compiler
  24937. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24938. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24939. +# This bug is HP SR number 8606223364.
  24940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  24941. +$as_echo_n "checking size of void *... " >&6; }
  24942. +if test "${ac_cv_sizeof_void_p+set}" = set; then :
  24943. + $as_echo_n "(cached) " >&6
  24944. else
  24945. - $as_echo "$as_me: failed program was:" >&5
  24946. -sed 's/^/| /' conftest.$ac_ext >&5
  24947. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  24948. - ac_lo= ac_hi=
  24949. +else
  24950. + if test "$ac_cv_type_void_p" = yes; then
  24951. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24952. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24953. +{ as_fn_set_status 77
  24954. +as_fn_error "cannot compute sizeof (void *)
  24955. +See \`config.log' for more details." "$LINENO" 5; }; }
  24956. + else
  24957. + ac_cv_sizeof_void_p=0
  24958. + fi
  24959. fi
  24960. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24961. fi
  24962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  24963. +$as_echo "$ac_cv_sizeof_void_p" >&6; }
  24964. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24965. -# Binary search between lo and hi bounds.
  24966. -while test "x$ac_lo" != "x$ac_hi"; do
  24967. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24968. - cat >conftest.$ac_ext <<_ACEOF
  24969. -/* confdefs.h. */
  24970. -_ACEOF
  24971. -cat confdefs.h >>conftest.$ac_ext
  24972. -cat >>conftest.$ac_ext <<_ACEOF
  24973. -/* end confdefs.h. */
  24974. -$ac_includes_default
  24975. -int
  24976. -main ()
  24977. -{
  24978. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
  24979. -test_array [0] = 0
  24980. - ;
  24981. - return 0;
  24982. -}
  24983. +
  24984. +cat >>confdefs.h <<_ACEOF
  24985. +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  24986. _ACEOF
  24987. -rm -f conftest.$ac_objext
  24988. -if { (ac_try="$ac_compile"
  24989. -case "(($ac_try" in
  24990. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24991. - *) ac_try_echo=$ac_try;;
  24992. -esac
  24993. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24994. -$as_echo "$ac_try_echo") >&5
  24995. - (eval "$ac_compile") 2>conftest.er1
  24996. - ac_status=$?
  24997. - grep -v '^ *+' conftest.er1 >conftest.err
  24998. - rm -f conftest.er1
  24999. - cat conftest.err >&5
  25000. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25001. - (exit $ac_status); } && {
  25002. - test -z "$ac_c_werror_flag" ||
  25003. - test ! -s conftest.err
  25004. - } && test -s conftest.$ac_objext; then
  25005. - ac_hi=$ac_mid
  25006. -else
  25007. - $as_echo "$as_me: failed program was:" >&5
  25008. -sed 's/^/| /' conftest.$ac_ext >&5
  25009. - ac_lo=`expr '(' $ac_mid ')' + 1`
  25010. -fi
  25011. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25012. -done
  25013. -case $ac_lo in
  25014. -?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  25015. -'') if test "$ac_cv_type_unsigned_short" = yes; then
  25016. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  25017. +# The cast to long int works around a bug in the HP C Compiler
  25018. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25019. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25020. +# This bug is HP SR number 8606223364.
  25021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
  25022. +$as_echo_n "checking size of intptr_t... " >&6; }
  25023. +if test "${ac_cv_sizeof_intptr_t+set}" = set; then :
  25024. + $as_echo_n "(cached) " >&6
  25025. +else
  25026. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default"; then :
  25027. +
  25028. +else
  25029. + if test "$ac_cv_type_intptr_t" = yes; then
  25030. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25031. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25032. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  25033. -See \`config.log' for more details." >&5
  25034. -$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
  25035. -See \`config.log' for more details." >&2;}
  25036. - { (exit 77); exit 77; }; }; }
  25037. +{ as_fn_set_status 77
  25038. +as_fn_error "cannot compute sizeof (intptr_t)
  25039. +See \`config.log' for more details." "$LINENO" 5; }; }
  25040. else
  25041. - ac_cv_sizeof_unsigned_short=0
  25042. - fi ;;
  25043. -esac
  25044. -else
  25045. - cat >conftest.$ac_ext <<_ACEOF
  25046. -/* confdefs.h. */
  25047. -_ACEOF
  25048. -cat confdefs.h >>conftest.$ac_ext
  25049. -cat >>conftest.$ac_ext <<_ACEOF
  25050. -/* end confdefs.h. */
  25051. -$ac_includes_default
  25052. -static long int longval () { return (long int) (sizeof (unsigned short)); }
  25053. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
  25054. -#include <stdio.h>
  25055. -#include <stdlib.h>
  25056. -int
  25057. -main ()
  25058. -{
  25059. + ac_cv_sizeof_intptr_t=0
  25060. + fi
  25061. +fi
  25062. - FILE *f = fopen ("conftest.val", "w");
  25063. - if (! f)
  25064. - return 1;
  25065. - if (((long int) (sizeof (unsigned short))) < 0)
  25066. - {
  25067. - long int i = longval ();
  25068. - if (i != ((long int) (sizeof (unsigned short))))
  25069. - return 1;
  25070. - fprintf (f, "%ld", i);
  25071. - }
  25072. - else
  25073. - {
  25074. - unsigned long int i = ulongval ();
  25075. - if (i != ((long int) (sizeof (unsigned short))))
  25076. - return 1;
  25077. - fprintf (f, "%lu", i);
  25078. - }
  25079. - /* Do not output a trailing newline, as this causes \r\n confusion
  25080. - on some platforms. */
  25081. - return ferror (f) || fclose (f) != 0;
  25082. +fi
  25083. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
  25084. +$as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  25085. - ;
  25086. - return 0;
  25087. -}
  25088. +
  25089. +
  25090. +cat >>confdefs.h <<_ACEOF
  25091. +#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  25092. _ACEOF
  25093. -rm -f conftest$ac_exeext
  25094. -if { (ac_try="$ac_link"
  25095. -case "(($ac_try" in
  25096. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25097. - *) ac_try_echo=$ac_try;;
  25098. -esac
  25099. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25100. -$as_echo "$ac_try_echo") >&5
  25101. - (eval "$ac_link") 2>&5
  25102. - ac_status=$?
  25103. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25104. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25105. - { (case "(($ac_try" in
  25106. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25107. - *) ac_try_echo=$ac_try;;
  25108. -esac
  25109. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25110. -$as_echo "$ac_try_echo") >&5
  25111. - (eval "$ac_try") 2>&5
  25112. - ac_status=$?
  25113. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25114. - (exit $ac_status); }; }; then
  25115. - ac_cv_sizeof_unsigned_short=`cat conftest.val`
  25116. +
  25117. +
  25118. +# The cast to long int works around a bug in the HP C Compiler
  25119. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25120. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25121. +# This bug is HP SR number 8606223364.
  25122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
  25123. +$as_echo_n "checking size of uintptr_t... " >&6; }
  25124. +if test "${ac_cv_sizeof_uintptr_t+set}" = set; then :
  25125. + $as_echo_n "(cached) " >&6
  25126. else
  25127. - $as_echo "$as_me: program exited with status $ac_status" >&5
  25128. -$as_echo "$as_me: failed program was:" >&5
  25129. -sed 's/^/| /' conftest.$ac_ext >&5
  25130. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
  25131. -( exit $ac_status )
  25132. -if test "$ac_cv_type_unsigned_short" = yes; then
  25133. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  25134. +else
  25135. + if test "$ac_cv_type_uintptr_t" = yes; then
  25136. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25138. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  25139. -See \`config.log' for more details." >&5
  25140. -$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
  25141. -See \`config.log' for more details." >&2;}
  25142. - { (exit 77); exit 77; }; }; }
  25143. +{ as_fn_set_status 77
  25144. +as_fn_error "cannot compute sizeof (uintptr_t)
  25145. +See \`config.log' for more details." "$LINENO" 5; }; }
  25146. else
  25147. - ac_cv_sizeof_unsigned_short=0
  25148. + ac_cv_sizeof_uintptr_t=0
  25149. fi
  25150. fi
  25151. -rm -rf conftest.dSYM
  25152. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25153. -fi
  25154. -rm -f conftest.val
  25155. +
  25156. fi
  25157. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  25158. -$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  25159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
  25160. +$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  25161. cat >>confdefs.h <<_ACEOF
  25162. -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  25163. +#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  25164. _ACEOF
  25165. @@ -15119,14672 +13092,2565 @@
  25166. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25167. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25168. # This bug is HP SR number 8606223364.
  25169. -{ $as_echo "$as_me:$LINENO: checking size of int" >&5
  25170. -$as_echo_n "checking size of int... " >&6; }
  25171. -if test "${ac_cv_sizeof_int+set}" = set; then
  25172. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
  25173. +$as_echo_n "checking size of ptrdiff_t... " >&6; }
  25174. +if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then :
  25175. $as_echo_n "(cached) " >&6
  25176. else
  25177. - if test "$cross_compiling" = yes; then
  25178. - # Depending upon the size, compute the lo and hi bounds.
  25179. -cat >conftest.$ac_ext <<_ACEOF
  25180. -/* confdefs.h. */
  25181. -_ACEOF
  25182. -cat confdefs.h >>conftest.$ac_ext
  25183. -cat >>conftest.$ac_ext <<_ACEOF
  25184. -/* end confdefs.h. */
  25185. -$ac_includes_default
  25186. -int
  25187. -main ()
  25188. -{
  25189. -static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  25190. -test_array [0] = 0
  25191. -
  25192. - ;
  25193. - return 0;
  25194. -}
  25195. -_ACEOF
  25196. -rm -f conftest.$ac_objext
  25197. -if { (ac_try="$ac_compile"
  25198. -case "(($ac_try" in
  25199. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25200. - *) ac_try_echo=$ac_try;;
  25201. -esac
  25202. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25203. -$as_echo "$ac_try_echo") >&5
  25204. - (eval "$ac_compile") 2>conftest.er1
  25205. - ac_status=$?
  25206. - grep -v '^ *+' conftest.er1 >conftest.err
  25207. - rm -f conftest.er1
  25208. - cat conftest.err >&5
  25209. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25210. - (exit $ac_status); } && {
  25211. - test -z "$ac_c_werror_flag" ||
  25212. - test ! -s conftest.err
  25213. - } && test -s conftest.$ac_objext; then
  25214. - ac_lo=0 ac_mid=0
  25215. - while :; do
  25216. - cat >conftest.$ac_ext <<_ACEOF
  25217. -/* confdefs.h. */
  25218. -_ACEOF
  25219. -cat confdefs.h >>conftest.$ac_ext
  25220. -cat >>conftest.$ac_ext <<_ACEOF
  25221. -/* end confdefs.h. */
  25222. -$ac_includes_default
  25223. -int
  25224. -main ()
  25225. -{
  25226. -static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  25227. -test_array [0] = 0
  25228. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
  25229. - ;
  25230. - return 0;
  25231. -}
  25232. -_ACEOF
  25233. -rm -f conftest.$ac_objext
  25234. -if { (ac_try="$ac_compile"
  25235. -case "(($ac_try" in
  25236. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25237. - *) ac_try_echo=$ac_try;;
  25238. -esac
  25239. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25240. -$as_echo "$ac_try_echo") >&5
  25241. - (eval "$ac_compile") 2>conftest.er1
  25242. - ac_status=$?
  25243. - grep -v '^ *+' conftest.er1 >conftest.err
  25244. - rm -f conftest.er1
  25245. - cat conftest.err >&5
  25246. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25247. - (exit $ac_status); } && {
  25248. - test -z "$ac_c_werror_flag" ||
  25249. - test ! -s conftest.err
  25250. - } && test -s conftest.$ac_objext; then
  25251. - ac_hi=$ac_mid; break
  25252. else
  25253. - $as_echo "$as_me: failed program was:" >&5
  25254. -sed 's/^/| /' conftest.$ac_ext >&5
  25255. + if test "$ac_cv_type_ptrdiff_t" = yes; then
  25256. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25257. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25258. +{ as_fn_set_status 77
  25259. +as_fn_error "cannot compute sizeof (ptrdiff_t)
  25260. +See \`config.log' for more details." "$LINENO" 5; }; }
  25261. + else
  25262. + ac_cv_sizeof_ptrdiff_t=0
  25263. + fi
  25264. +fi
  25265. - ac_lo=`expr $ac_mid + 1`
  25266. - if test $ac_lo -le $ac_mid; then
  25267. - ac_lo= ac_hi=
  25268. - break
  25269. - fi
  25270. - ac_mid=`expr 2 '*' $ac_mid + 1`
  25271. fi
  25272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
  25273. +$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  25274. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25275. - done
  25276. -else
  25277. - $as_echo "$as_me: failed program was:" >&5
  25278. -sed 's/^/| /' conftest.$ac_ext >&5
  25279. - cat >conftest.$ac_ext <<_ACEOF
  25280. -/* confdefs.h. */
  25281. -_ACEOF
  25282. -cat confdefs.h >>conftest.$ac_ext
  25283. -cat >>conftest.$ac_ext <<_ACEOF
  25284. -/* end confdefs.h. */
  25285. -$ac_includes_default
  25286. -int
  25287. -main ()
  25288. -{
  25289. -static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  25290. -test_array [0] = 0
  25291. - ;
  25292. - return 0;
  25293. -}
  25294. -_ACEOF
  25295. -rm -f conftest.$ac_objext
  25296. -if { (ac_try="$ac_compile"
  25297. -case "(($ac_try" in
  25298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25299. - *) ac_try_echo=$ac_try;;
  25300. -esac
  25301. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25302. -$as_echo "$ac_try_echo") >&5
  25303. - (eval "$ac_compile") 2>conftest.er1
  25304. - ac_status=$?
  25305. - grep -v '^ *+' conftest.er1 >conftest.err
  25306. - rm -f conftest.er1
  25307. - cat conftest.err >&5
  25308. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25309. - (exit $ac_status); } && {
  25310. - test -z "$ac_c_werror_flag" ||
  25311. - test ! -s conftest.err
  25312. - } && test -s conftest.$ac_objext; then
  25313. - ac_hi=-1 ac_mid=-1
  25314. - while :; do
  25315. - cat >conftest.$ac_ext <<_ACEOF
  25316. -/* confdefs.h. */
  25317. +cat >>confdefs.h <<_ACEOF
  25318. +#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  25319. _ACEOF
  25320. -cat confdefs.h >>conftest.$ac_ext
  25321. -cat >>conftest.$ac_ext <<_ACEOF
  25322. -/* end confdefs.h. */
  25323. -$ac_includes_default
  25324. -int
  25325. -main ()
  25326. -{
  25327. -static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  25328. -test_array [0] = 0
  25329. - ;
  25330. - return 0;
  25331. -}
  25332. -_ACEOF
  25333. -rm -f conftest.$ac_objext
  25334. -if { (ac_try="$ac_compile"
  25335. -case "(($ac_try" in
  25336. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25337. - *) ac_try_echo=$ac_try;;
  25338. -esac
  25339. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25340. -$as_echo "$ac_try_echo") >&5
  25341. - (eval "$ac_compile") 2>conftest.er1
  25342. - ac_status=$?
  25343. - grep -v '^ *+' conftest.er1 >conftest.err
  25344. - rm -f conftest.er1
  25345. - cat conftest.err >&5
  25346. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25347. - (exit $ac_status); } && {
  25348. - test -z "$ac_c_werror_flag" ||
  25349. - test ! -s conftest.err
  25350. - } && test -s conftest.$ac_objext; then
  25351. - ac_lo=$ac_mid; break
  25352. +
  25353. +# The cast to long int works around a bug in the HP C Compiler
  25354. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25355. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25356. +# This bug is HP SR number 8606223364.
  25357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  25358. +$as_echo_n "checking size of size_t... " >&6; }
  25359. +if test "${ac_cv_sizeof_size_t+set}" = set; then :
  25360. + $as_echo_n "(cached) " >&6
  25361. else
  25362. - $as_echo "$as_me: failed program was:" >&5
  25363. -sed 's/^/| /' conftest.$ac_ext >&5
  25364. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  25365. - ac_hi=`expr '(' $ac_mid ')' - 1`
  25366. - if test $ac_mid -le $ac_hi; then
  25367. - ac_lo= ac_hi=
  25368. - break
  25369. - fi
  25370. - ac_mid=`expr 2 '*' $ac_mid`
  25371. +else
  25372. + if test "$ac_cv_type_size_t" = yes; then
  25373. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25374. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25375. +{ as_fn_set_status 77
  25376. +as_fn_error "cannot compute sizeof (size_t)
  25377. +See \`config.log' for more details." "$LINENO" 5; }; }
  25378. + else
  25379. + ac_cv_sizeof_size_t=0
  25380. + fi
  25381. fi
  25382. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25383. - done
  25384. +fi
  25385. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  25386. +$as_echo "$ac_cv_sizeof_size_t" >&6; }
  25387. +
  25388. +
  25389. +
  25390. +cat >>confdefs.h <<_ACEOF
  25391. +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  25392. +_ACEOF
  25393. +
  25394. +
  25395. +# The cast to long int works around a bug in the HP C Compiler
  25396. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25397. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25398. +# This bug is HP SR number 8606223364.
  25399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  25400. +$as_echo_n "checking size of off_t... " >&6; }
  25401. +if test "${ac_cv_sizeof_off_t+set}" = set; then :
  25402. + $as_echo_n "(cached) " >&6
  25403. else
  25404. - $as_echo "$as_me: failed program was:" >&5
  25405. -sed 's/^/| /' conftest.$ac_ext >&5
  25406. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  25407. - ac_lo= ac_hi=
  25408. +else
  25409. + if test "$ac_cv_type_off_t" = yes; then
  25410. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25411. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25412. +{ as_fn_set_status 77
  25413. +as_fn_error "cannot compute sizeof (off_t)
  25414. +See \`config.log' for more details." "$LINENO" 5; }; }
  25415. + else
  25416. + ac_cv_sizeof_off_t=0
  25417. + fi
  25418. fi
  25419. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25420. fi
  25421. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  25422. +$as_echo "$ac_cv_sizeof_off_t" >&6; }
  25423. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25424. -# Binary search between lo and hi bounds.
  25425. -while test "x$ac_lo" != "x$ac_hi"; do
  25426. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25427. - cat >conftest.$ac_ext <<_ACEOF
  25428. -/* confdefs.h. */
  25429. -_ACEOF
  25430. -cat confdefs.h >>conftest.$ac_ext
  25431. -cat >>conftest.$ac_ext <<_ACEOF
  25432. -/* end confdefs.h. */
  25433. -$ac_includes_default
  25434. -int
  25435. -main ()
  25436. -{
  25437. -static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  25438. -test_array [0] = 0
  25439. - ;
  25440. - return 0;
  25441. -}
  25442. +
  25443. +cat >>confdefs.h <<_ACEOF
  25444. +#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  25445. _ACEOF
  25446. -rm -f conftest.$ac_objext
  25447. -if { (ac_try="$ac_compile"
  25448. -case "(($ac_try" in
  25449. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25450. - *) ac_try_echo=$ac_try;;
  25451. -esac
  25452. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25453. -$as_echo "$ac_try_echo") >&5
  25454. - (eval "$ac_compile") 2>conftest.er1
  25455. - ac_status=$?
  25456. - grep -v '^ *+' conftest.er1 >conftest.err
  25457. - rm -f conftest.er1
  25458. - cat conftest.err >&5
  25459. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25460. - (exit $ac_status); } && {
  25461. - test -z "$ac_c_werror_flag" ||
  25462. - test ! -s conftest.err
  25463. - } && test -s conftest.$ac_objext; then
  25464. - ac_hi=$ac_mid
  25465. -else
  25466. - $as_echo "$as_me: failed program was:" >&5
  25467. -sed 's/^/| /' conftest.$ac_ext >&5
  25468. - ac_lo=`expr '(' $ac_mid ')' + 1`
  25469. +
  25470. +
  25471. +if test "$ac_cv_sizeof_long" -ne "$ac_cv_sizeof_void_p"; then
  25472. + as_fn_error "sizes of long and void* are not identical" "$LINENO" 5
  25473. fi
  25474. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25475. -done
  25476. -case $ac_lo in
  25477. -?*) ac_cv_sizeof_int=$ac_lo;;
  25478. -'') if test "$ac_cv_type_int" = yes; then
  25479. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  25480. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25481. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  25482. -See \`config.log' for more details." >&5
  25483. -$as_echo "$as_me: error: cannot compute sizeof (int)
  25484. -See \`config.log' for more details." >&2;}
  25485. - { (exit 77); exit 77; }; }; }
  25486. - else
  25487. - ac_cv_sizeof_int=0
  25488. - fi ;;
  25489. -esac
  25490. +if test "$ac_cv_sizeof_ptrdiff_t" -ne 0; then
  25491. + SCM_I_GSC_T_PTRDIFF='"ptrdiff_t"'
  25492. else
  25493. - cat >conftest.$ac_ext <<_ACEOF
  25494. -/* confdefs.h. */
  25495. -_ACEOF
  25496. -cat confdefs.h >>conftest.$ac_ext
  25497. -cat >>conftest.$ac_ext <<_ACEOF
  25498. -/* end confdefs.h. */
  25499. -$ac_includes_default
  25500. -static long int longval () { return (long int) (sizeof (int)); }
  25501. -static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  25502. -#include <stdio.h>
  25503. -#include <stdlib.h>
  25504. -int
  25505. -main ()
  25506. -{
  25507. + SCM_I_GSC_T_PTRDIFF='"long"'
  25508. +fi
  25509. - FILE *f = fopen ("conftest.val", "w");
  25510. - if (! f)
  25511. - return 1;
  25512. - if (((long int) (sizeof (int))) < 0)
  25513. - {
  25514. - long int i = longval ();
  25515. - if (i != ((long int) (sizeof (int))))
  25516. - return 1;
  25517. - fprintf (f, "%ld", i);
  25518. - }
  25519. - else
  25520. - {
  25521. - unsigned long int i = ulongval ();
  25522. - if (i != ((long int) (sizeof (int))))
  25523. - return 1;
  25524. - fprintf (f, "%lu", i);
  25525. - }
  25526. - /* Do not output a trailing newline, as this causes \r\n confusion
  25527. - on some platforms. */
  25528. - return ferror (f) || fclose (f) != 0;
  25529. - ;
  25530. - return 0;
  25531. -}
  25532. +for ac_header in stdint.h
  25533. +do :
  25534. + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  25535. +if test "x$ac_cv_header_stdint_h" = x""yes; then :
  25536. + cat >>confdefs.h <<_ACEOF
  25537. +#define HAVE_STDINT_H 1
  25538. _ACEOF
  25539. -rm -f conftest$ac_exeext
  25540. -if { (ac_try="$ac_link"
  25541. -case "(($ac_try" in
  25542. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25543. - *) ac_try_echo=$ac_try;;
  25544. -esac
  25545. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25546. -$as_echo "$ac_try_echo") >&5
  25547. - (eval "$ac_link") 2>&5
  25548. - ac_status=$?
  25549. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25550. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25551. - { (case "(($ac_try" in
  25552. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25553. - *) ac_try_echo=$ac_try;;
  25554. -esac
  25555. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25556. -$as_echo "$ac_try_echo") >&5
  25557. - (eval "$ac_try") 2>&5
  25558. - ac_status=$?
  25559. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25560. - (exit $ac_status); }; }; then
  25561. - ac_cv_sizeof_int=`cat conftest.val`
  25562. +
  25563. +fi
  25564. +
  25565. +done
  25566. +
  25567. +for ac_header in inttypes.h
  25568. +do :
  25569. + ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  25570. +if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  25571. + cat >>confdefs.h <<_ACEOF
  25572. +#define HAVE_INTTYPES_H 1
  25573. +_ACEOF
  25574. +
  25575. +fi
  25576. +
  25577. +done
  25578. +
  25579. +
  25580. +# The cast to long int works around a bug in the HP C Compiler
  25581. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25582. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25583. +# This bug is HP SR number 8606223364.
  25584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
  25585. +$as_echo_n "checking size of intmax_t... " >&6; }
  25586. +if test "${ac_cv_sizeof_intmax_t+set}" = set; then :
  25587. + $as_echo_n "(cached) " >&6
  25588. else
  25589. - $as_echo "$as_me: program exited with status $ac_status" >&5
  25590. -$as_echo "$as_me: failed program was:" >&5
  25591. -sed 's/^/| /' conftest.$ac_ext >&5
  25592. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
  25593. -( exit $ac_status )
  25594. -if test "$ac_cv_type_int" = yes; then
  25595. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  25596. +else
  25597. + if test "$ac_cv_type_intmax_t" = yes; then
  25598. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25600. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  25601. -See \`config.log' for more details." >&5
  25602. -$as_echo "$as_me: error: cannot compute sizeof (int)
  25603. -See \`config.log' for more details." >&2;}
  25604. - { (exit 77); exit 77; }; }; }
  25605. +{ as_fn_set_status 77
  25606. +as_fn_error "cannot compute sizeof (intmax_t)
  25607. +See \`config.log' for more details." "$LINENO" 5; }; }
  25608. else
  25609. - ac_cv_sizeof_int=0
  25610. + ac_cv_sizeof_intmax_t=0
  25611. fi
  25612. fi
  25613. -rm -rf conftest.dSYM
  25614. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25615. -fi
  25616. -rm -f conftest.val
  25617. +
  25618. fi
  25619. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  25620. -$as_echo "$ac_cv_sizeof_int" >&6; }
  25621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
  25622. +$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  25623. cat >>confdefs.h <<_ACEOF
  25624. -#define SIZEOF_INT $ac_cv_sizeof_int
  25625. +#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  25626. _ACEOF
  25627. -# The cast to long int works around a bug in the HP C Compiler
  25628. +
  25629. +SCM_I_GSC_NEEDS_STDINT_H=0
  25630. +SCM_I_GSC_NEEDS_INTTYPES_H=0
  25631. +
  25632. +### intptr and uintptr (try not to use inttypes if we don't have to)
  25633. +if test "$ac_cv_header_inttypes_h" = yes; then
  25634. + if test "$ac_cv_sizeof_intptr_t" -eq 0; then
  25635. + # The cast to long int works around a bug in the HP C Compiler
  25636. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25637. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25638. # This bug is HP SR number 8606223364.
  25639. -{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
  25640. -$as_echo_n "checking size of unsigned int... " >&6; }
  25641. -if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  25642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
  25643. +$as_echo_n "checking size of intptr_t... " >&6; }
  25644. +if test "${ac_cv_sizeof_intptr_t+set}" = set; then :
  25645. $as_echo_n "(cached) " >&6
  25646. else
  25647. - if test "$cross_compiling" = yes; then
  25648. - # Depending upon the size, compute the lo and hi bounds.
  25649. -cat >conftest.$ac_ext <<_ACEOF
  25650. -/* confdefs.h. */
  25651. -_ACEOF
  25652. -cat confdefs.h >>conftest.$ac_ext
  25653. -cat >>conftest.$ac_ext <<_ACEOF
  25654. -/* end confdefs.h. */
  25655. -$ac_includes_default
  25656. -int
  25657. -main ()
  25658. -{
  25659. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
  25660. -test_array [0] = 0
  25661. -
  25662. - ;
  25663. - return 0;
  25664. -}
  25665. -_ACEOF
  25666. -rm -f conftest.$ac_objext
  25667. -if { (ac_try="$ac_compile"
  25668. -case "(($ac_try" in
  25669. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25670. - *) ac_try_echo=$ac_try;;
  25671. -esac
  25672. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25673. -$as_echo "$ac_try_echo") >&5
  25674. - (eval "$ac_compile") 2>conftest.er1
  25675. - ac_status=$?
  25676. - grep -v '^ *+' conftest.er1 >conftest.err
  25677. - rm -f conftest.er1
  25678. - cat conftest.err >&5
  25679. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25680. - (exit $ac_status); } && {
  25681. - test -z "$ac_c_werror_flag" ||
  25682. - test ! -s conftest.err
  25683. - } && test -s conftest.$ac_objext; then
  25684. - ac_lo=0 ac_mid=0
  25685. - while :; do
  25686. - cat >conftest.$ac_ext <<_ACEOF
  25687. -/* confdefs.h. */
  25688. -_ACEOF
  25689. -cat confdefs.h >>conftest.$ac_ext
  25690. -cat >>conftest.$ac_ext <<_ACEOF
  25691. -/* end confdefs.h. */
  25692. -$ac_includes_default
  25693. -int
  25694. -main ()
  25695. -{
  25696. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
  25697. -test_array [0] = 0
  25698. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "#include <inttypes.h>
  25699. +#include <stdio.h>
  25700. +"; then :
  25701. - ;
  25702. - return 0;
  25703. -}
  25704. -_ACEOF
  25705. -rm -f conftest.$ac_objext
  25706. -if { (ac_try="$ac_compile"
  25707. -case "(($ac_try" in
  25708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25709. - *) ac_try_echo=$ac_try;;
  25710. -esac
  25711. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25712. -$as_echo "$ac_try_echo") >&5
  25713. - (eval "$ac_compile") 2>conftest.er1
  25714. - ac_status=$?
  25715. - grep -v '^ *+' conftest.er1 >conftest.err
  25716. - rm -f conftest.er1
  25717. - cat conftest.err >&5
  25718. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25719. - (exit $ac_status); } && {
  25720. - test -z "$ac_c_werror_flag" ||
  25721. - test ! -s conftest.err
  25722. - } && test -s conftest.$ac_objext; then
  25723. - ac_hi=$ac_mid; break
  25724. else
  25725. - $as_echo "$as_me: failed program was:" >&5
  25726. -sed 's/^/| /' conftest.$ac_ext >&5
  25727. -
  25728. - ac_lo=`expr $ac_mid + 1`
  25729. - if test $ac_lo -le $ac_mid; then
  25730. - ac_lo= ac_hi=
  25731. - break
  25732. - fi
  25733. - ac_mid=`expr 2 '*' $ac_mid + 1`
  25734. + if test "$ac_cv_type_intptr_t" = yes; then
  25735. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25736. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25737. +{ as_fn_set_status 77
  25738. +as_fn_error "cannot compute sizeof (intptr_t)
  25739. +See \`config.log' for more details." "$LINENO" 5; }; }
  25740. + else
  25741. + ac_cv_sizeof_intptr_t=0
  25742. + fi
  25743. fi
  25744. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25745. - done
  25746. -else
  25747. - $as_echo "$as_me: failed program was:" >&5
  25748. -sed 's/^/| /' conftest.$ac_ext >&5
  25749. +fi
  25750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
  25751. +$as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  25752. - cat >conftest.$ac_ext <<_ACEOF
  25753. -/* confdefs.h. */
  25754. -_ACEOF
  25755. -cat confdefs.h >>conftest.$ac_ext
  25756. -cat >>conftest.$ac_ext <<_ACEOF
  25757. -/* end confdefs.h. */
  25758. -$ac_includes_default
  25759. -int
  25760. -main ()
  25761. -{
  25762. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
  25763. -test_array [0] = 0
  25764. - ;
  25765. - return 0;
  25766. -}
  25767. -_ACEOF
  25768. -rm -f conftest.$ac_objext
  25769. -if { (ac_try="$ac_compile"
  25770. -case "(($ac_try" in
  25771. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25772. - *) ac_try_echo=$ac_try;;
  25773. -esac
  25774. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25775. -$as_echo "$ac_try_echo") >&5
  25776. - (eval "$ac_compile") 2>conftest.er1
  25777. - ac_status=$?
  25778. - grep -v '^ *+' conftest.er1 >conftest.err
  25779. - rm -f conftest.er1
  25780. - cat conftest.err >&5
  25781. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25782. - (exit $ac_status); } && {
  25783. - test -z "$ac_c_werror_flag" ||
  25784. - test ! -s conftest.err
  25785. - } && test -s conftest.$ac_objext; then
  25786. - ac_hi=-1 ac_mid=-1
  25787. - while :; do
  25788. - cat >conftest.$ac_ext <<_ACEOF
  25789. -/* confdefs.h. */
  25790. -_ACEOF
  25791. -cat confdefs.h >>conftest.$ac_ext
  25792. -cat >>conftest.$ac_ext <<_ACEOF
  25793. -/* end confdefs.h. */
  25794. -$ac_includes_default
  25795. -int
  25796. -main ()
  25797. -{
  25798. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
  25799. -test_array [0] = 0
  25800. - ;
  25801. - return 0;
  25802. -}
  25803. +cat >>confdefs.h <<_ACEOF
  25804. +#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  25805. _ACEOF
  25806. -rm -f conftest.$ac_objext
  25807. -if { (ac_try="$ac_compile"
  25808. -case "(($ac_try" in
  25809. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25810. - *) ac_try_echo=$ac_try;;
  25811. -esac
  25812. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25813. -$as_echo "$ac_try_echo") >&5
  25814. - (eval "$ac_compile") 2>conftest.er1
  25815. - ac_status=$?
  25816. - grep -v '^ *+' conftest.er1 >conftest.err
  25817. - rm -f conftest.er1
  25818. - cat conftest.err >&5
  25819. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25820. - (exit $ac_status); } && {
  25821. - test -z "$ac_c_werror_flag" ||
  25822. - test ! -s conftest.err
  25823. - } && test -s conftest.$ac_objext; then
  25824. - ac_lo=$ac_mid; break
  25825. -else
  25826. - $as_echo "$as_me: failed program was:" >&5
  25827. -sed 's/^/| /' conftest.$ac_ext >&5
  25828. - ac_hi=`expr '(' $ac_mid ')' - 1`
  25829. - if test $ac_mid -le $ac_hi; then
  25830. - ac_lo= ac_hi=
  25831. - break
  25832. - fi
  25833. - ac_mid=`expr 2 '*' $ac_mid`
  25834. -fi
  25835. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25836. - done
  25837. + if test "$ac_cv_sizeof_intptr_t" -ne 0; then
  25838. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  25839. + fi
  25840. + fi
  25841. + if test "$ac_cv_sizeof_uintptr_t" -eq 0; then
  25842. + # The cast to long int works around a bug in the HP C Compiler
  25843. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25844. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25845. +# This bug is HP SR number 8606223364.
  25846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
  25847. +$as_echo_n "checking size of uintptr_t... " >&6; }
  25848. +if test "${ac_cv_sizeof_uintptr_t+set}" = set; then :
  25849. + $as_echo_n "(cached) " >&6
  25850. else
  25851. - $as_echo "$as_me: failed program was:" >&5
  25852. -sed 's/^/| /' conftest.$ac_ext >&5
  25853. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "#include <inttypes.h>
  25854. +#include <stdio.h>
  25855. +"; then :
  25856. - ac_lo= ac_hi=
  25857. +else
  25858. + if test "$ac_cv_type_uintptr_t" = yes; then
  25859. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25860. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25861. +{ as_fn_set_status 77
  25862. +as_fn_error "cannot compute sizeof (uintptr_t)
  25863. +See \`config.log' for more details." "$LINENO" 5; }; }
  25864. + else
  25865. + ac_cv_sizeof_uintptr_t=0
  25866. + fi
  25867. fi
  25868. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25869. fi
  25870. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
  25871. +$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  25872. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25873. -# Binary search between lo and hi bounds.
  25874. -while test "x$ac_lo" != "x$ac_hi"; do
  25875. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25876. - cat >conftest.$ac_ext <<_ACEOF
  25877. -/* confdefs.h. */
  25878. -_ACEOF
  25879. -cat confdefs.h >>conftest.$ac_ext
  25880. -cat >>conftest.$ac_ext <<_ACEOF
  25881. -/* end confdefs.h. */
  25882. -$ac_includes_default
  25883. -int
  25884. -main ()
  25885. -{
  25886. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
  25887. -test_array [0] = 0
  25888. - ;
  25889. - return 0;
  25890. -}
  25891. +
  25892. +cat >>confdefs.h <<_ACEOF
  25893. +#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  25894. _ACEOF
  25895. -rm -f conftest.$ac_objext
  25896. -if { (ac_try="$ac_compile"
  25897. -case "(($ac_try" in
  25898. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25899. - *) ac_try_echo=$ac_try;;
  25900. -esac
  25901. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25902. -$as_echo "$ac_try_echo") >&5
  25903. - (eval "$ac_compile") 2>conftest.er1
  25904. - ac_status=$?
  25905. - grep -v '^ *+' conftest.er1 >conftest.err
  25906. - rm -f conftest.er1
  25907. - cat conftest.err >&5
  25908. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25909. - (exit $ac_status); } && {
  25910. - test -z "$ac_c_werror_flag" ||
  25911. - test ! -s conftest.err
  25912. - } && test -s conftest.$ac_objext; then
  25913. - ac_hi=$ac_mid
  25914. -else
  25915. - $as_echo "$as_me: failed program was:" >&5
  25916. -sed 's/^/| /' conftest.$ac_ext >&5
  25917. - ac_lo=`expr '(' $ac_mid ')' + 1`
  25918. +
  25919. + if test "$ac_cv_sizeof_uintptr_t" -ne 0; then
  25920. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  25921. + fi
  25922. + fi
  25923. fi
  25924. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25925. -done
  25926. -case $ac_lo in
  25927. -?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  25928. -'') if test "$ac_cv_type_unsigned_int" = yes; then
  25929. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  25930. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25931. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
  25932. -See \`config.log' for more details." >&5
  25933. -$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
  25934. -See \`config.log' for more details." >&2;}
  25935. - { (exit 77); exit 77; }; }; }
  25936. - else
  25937. - ac_cv_sizeof_unsigned_int=0
  25938. - fi ;;
  25939. -esac
  25940. -else
  25941. - cat >conftest.$ac_ext <<_ACEOF
  25942. -/* confdefs.h. */
  25943. -_ACEOF
  25944. -cat confdefs.h >>conftest.$ac_ext
  25945. -cat >>conftest.$ac_ext <<_ACEOF
  25946. -/* end confdefs.h. */
  25947. -$ac_includes_default
  25948. -static long int longval () { return (long int) (sizeof (unsigned int)); }
  25949. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
  25950. -#include <stdio.h>
  25951. -#include <stdlib.h>
  25952. -int
  25953. -main ()
  25954. -{
  25955. +### See what's provided by stdint.h
  25956. +if test "$ac_cv_header_stdint_h" = yes; then
  25957. + ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include <stdint.h>
  25958. +"
  25959. +if test "x$ac_cv_type_int8_t" = x""yes; then :
  25960. + scm_stdint_has_int8=1
  25961. +fi
  25962. - FILE *f = fopen ("conftest.val", "w");
  25963. - if (! f)
  25964. - return 1;
  25965. - if (((long int) (sizeof (unsigned int))) < 0)
  25966. - {
  25967. - long int i = longval ();
  25968. - if (i != ((long int) (sizeof (unsigned int))))
  25969. - return 1;
  25970. - fprintf (f, "%ld", i);
  25971. - }
  25972. - else
  25973. - {
  25974. - unsigned long int i = ulongval ();
  25975. - if (i != ((long int) (sizeof (unsigned int))))
  25976. - return 1;
  25977. - fprintf (f, "%lu", i);
  25978. - }
  25979. - /* Do not output a trailing newline, as this causes \r\n confusion
  25980. - on some platforms. */
  25981. - return ferror (f) || fclose (f) != 0;
  25982. + ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include <stdint.h>
  25983. +"
  25984. +if test "x$ac_cv_type_uint8_t" = x""yes; then :
  25985. + scm_stdint_has_uint8=1
  25986. +fi
  25987. - ;
  25988. - return 0;
  25989. -}
  25990. -_ACEOF
  25991. -rm -f conftest$ac_exeext
  25992. -if { (ac_try="$ac_link"
  25993. -case "(($ac_try" in
  25994. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25995. - *) ac_try_echo=$ac_try;;
  25996. -esac
  25997. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25998. -$as_echo "$ac_try_echo") >&5
  25999. - (eval "$ac_link") 2>&5
  26000. - ac_status=$?
  26001. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26002. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26003. - { (case "(($ac_try" in
  26004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26005. - *) ac_try_echo=$ac_try;;
  26006. -esac
  26007. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26008. -$as_echo "$ac_try_echo") >&5
  26009. - (eval "$ac_try") 2>&5
  26010. - ac_status=$?
  26011. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26012. - (exit $ac_status); }; }; then
  26013. - ac_cv_sizeof_unsigned_int=`cat conftest.val`
  26014. -else
  26015. - $as_echo "$as_me: program exited with status $ac_status" >&5
  26016. -$as_echo "$as_me: failed program was:" >&5
  26017. -sed 's/^/| /' conftest.$ac_ext >&5
  26018. + ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include <stdint.h>
  26019. +"
  26020. +if test "x$ac_cv_type_int16_t" = x""yes; then :
  26021. + scm_stdint_has_int16=1
  26022. +fi
  26023. -( exit $ac_status )
  26024. -if test "$ac_cv_type_unsigned_int" = yes; then
  26025. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  26026. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26027. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
  26028. -See \`config.log' for more details." >&5
  26029. -$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
  26030. -See \`config.log' for more details." >&2;}
  26031. - { (exit 77); exit 77; }; }; }
  26032. - else
  26033. - ac_cv_sizeof_unsigned_int=0
  26034. - fi
  26035. + ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include <stdint.h>
  26036. +"
  26037. +if test "x$ac_cv_type_uint16_t" = x""yes; then :
  26038. + scm_stdint_has_uint16=1
  26039. fi
  26040. -rm -rf conftest.dSYM
  26041. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26042. +
  26043. + ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include <stdint.h>
  26044. +"
  26045. +if test "x$ac_cv_type_int32_t" = x""yes; then :
  26046. + scm_stdint_has_int32=1
  26047. fi
  26048. -rm -f conftest.val
  26049. +
  26050. + ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <stdint.h>
  26051. +"
  26052. +if test "x$ac_cv_type_uint32_t" = x""yes; then :
  26053. + scm_stdint_has_uint32=1
  26054. fi
  26055. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  26056. -$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  26057. + ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#include <stdint.h>
  26058. +"
  26059. +if test "x$ac_cv_type_int64_t" = x""yes; then :
  26060. + scm_stdint_has_int64=1
  26061. +fi
  26062. + ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <stdint.h>
  26063. +"
  26064. +if test "x$ac_cv_type_uint64_t" = x""yes; then :
  26065. + scm_stdint_has_uint64=1
  26066. +fi
  26067. -cat >>confdefs.h <<_ACEOF
  26068. -#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  26069. -_ACEOF
  26070. + ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <stdint.h>
  26071. +"
  26072. +if test "x$ac_cv_type_intmax_t" = x""yes; then :
  26073. + scm_stdint_has_intmax=1
  26074. +fi
  26075. + ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <stdint.h>
  26076. +"
  26077. +if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  26078. + scm_stdint_has_uintmax=1
  26079. +fi
  26080. -# The cast to long int works around a bug in the HP C Compiler
  26081. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26082. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26083. -# This bug is HP SR number 8606223364.
  26084. -{ $as_echo "$as_me:$LINENO: checking size of long" >&5
  26085. -$as_echo_n "checking size of long... " >&6; }
  26086. -if test "${ac_cv_sizeof_long+set}" = set; then
  26087. - $as_echo_n "(cached) " >&6
  26088. -else
  26089. - if test "$cross_compiling" = yes; then
  26090. - # Depending upon the size, compute the lo and hi bounds.
  26091. -cat >conftest.$ac_ext <<_ACEOF
  26092. -/* confdefs.h. */
  26093. -_ACEOF
  26094. -cat confdefs.h >>conftest.$ac_ext
  26095. -cat >>conftest.$ac_ext <<_ACEOF
  26096. -/* end confdefs.h. */
  26097. -$ac_includes_default
  26098. -int
  26099. -main ()
  26100. -{
  26101. -static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  26102. -test_array [0] = 0
  26103. +fi
  26104. - ;
  26105. - return 0;
  26106. -}
  26107. -_ACEOF
  26108. -rm -f conftest.$ac_objext
  26109. -if { (ac_try="$ac_compile"
  26110. -case "(($ac_try" in
  26111. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26112. - *) ac_try_echo=$ac_try;;
  26113. -esac
  26114. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26115. -$as_echo "$ac_try_echo") >&5
  26116. - (eval "$ac_compile") 2>conftest.er1
  26117. - ac_status=$?
  26118. - grep -v '^ *+' conftest.er1 >conftest.err
  26119. - rm -f conftest.er1
  26120. - cat conftest.err >&5
  26121. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26122. - (exit $ac_status); } && {
  26123. - test -z "$ac_c_werror_flag" ||
  26124. - test ! -s conftest.err
  26125. - } && test -s conftest.$ac_objext; then
  26126. - ac_lo=0 ac_mid=0
  26127. - while :; do
  26128. - cat >conftest.$ac_ext <<_ACEOF
  26129. -/* confdefs.h. */
  26130. -_ACEOF
  26131. -cat confdefs.h >>conftest.$ac_ext
  26132. -cat >>conftest.$ac_ext <<_ACEOF
  26133. -/* end confdefs.h. */
  26134. -$ac_includes_default
  26135. -int
  26136. -main ()
  26137. -{
  26138. -static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  26139. -test_array [0] = 0
  26140. +# so we don't get confused by the cache (wish there was a better way
  26141. +# to check particular headers for the same type...)
  26142. - ;
  26143. - return 0;
  26144. -}
  26145. -_ACEOF
  26146. -rm -f conftest.$ac_objext
  26147. -if { (ac_try="$ac_compile"
  26148. -case "(($ac_try" in
  26149. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26150. - *) ac_try_echo=$ac_try;;
  26151. -esac
  26152. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26153. -$as_echo "$ac_try_echo") >&5
  26154. - (eval "$ac_compile") 2>conftest.er1
  26155. - ac_status=$?
  26156. - grep -v '^ *+' conftest.er1 >conftest.err
  26157. - rm -f conftest.er1
  26158. - cat conftest.err >&5
  26159. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26160. - (exit $ac_status); } && {
  26161. - test -z "$ac_c_werror_flag" ||
  26162. - test ! -s conftest.err
  26163. - } && test -s conftest.$ac_objext; then
  26164. - ac_hi=$ac_mid; break
  26165. -else
  26166. - $as_echo "$as_me: failed program was:" >&5
  26167. -sed 's/^/| /' conftest.$ac_ext >&5
  26168. +unset ac_cv_type_int8_t
  26169. +unset ac_cv_type_uint8_t
  26170. +unset ac_cv_type_int16_t
  26171. +unset ac_cv_type_uint16_t
  26172. +unset ac_cv_type_int32_t
  26173. +unset ac_cv_type_uint32_t
  26174. +unset ac_cv_type_int64_t
  26175. +unset ac_cv_type_uint64_t
  26176. +unset ac_cv_type_intmax_t
  26177. +unset ac_cv_type_uintmax_t
  26178. - ac_lo=`expr $ac_mid + 1`
  26179. - if test $ac_lo -le $ac_mid; then
  26180. - ac_lo= ac_hi=
  26181. - break
  26182. - fi
  26183. - ac_mid=`expr 2 '*' $ac_mid + 1`
  26184. +### See what's provided by inttypes.h
  26185. +if test "$ac_cv_header_inttypes_h" = yes; then
  26186. + ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include <inttypes.h>
  26187. +"
  26188. +if test "x$ac_cv_type_int8_t" = x""yes; then :
  26189. + scm_inttypes_has_int8=1
  26190. fi
  26191. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26192. - done
  26193. -else
  26194. - $as_echo "$as_me: failed program was:" >&5
  26195. -sed 's/^/| /' conftest.$ac_ext >&5
  26196. + ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include <inttypes.h>
  26197. +"
  26198. +if test "x$ac_cv_type_uint8_t" = x""yes; then :
  26199. + scm_inttypes_has_uint8=1
  26200. +fi
  26201. - cat >conftest.$ac_ext <<_ACEOF
  26202. -/* confdefs.h. */
  26203. -_ACEOF
  26204. -cat confdefs.h >>conftest.$ac_ext
  26205. -cat >>conftest.$ac_ext <<_ACEOF
  26206. -/* end confdefs.h. */
  26207. -$ac_includes_default
  26208. -int
  26209. -main ()
  26210. -{
  26211. -static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  26212. -test_array [0] = 0
  26213. + ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include <inttypes.h>
  26214. +"
  26215. +if test "x$ac_cv_type_int16_t" = x""yes; then :
  26216. + scm_inttypes_has_int16=1
  26217. +fi
  26218. - ;
  26219. - return 0;
  26220. -}
  26221. -_ACEOF
  26222. -rm -f conftest.$ac_objext
  26223. -if { (ac_try="$ac_compile"
  26224. -case "(($ac_try" in
  26225. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26226. - *) ac_try_echo=$ac_try;;
  26227. -esac
  26228. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26229. -$as_echo "$ac_try_echo") >&5
  26230. - (eval "$ac_compile") 2>conftest.er1
  26231. - ac_status=$?
  26232. - grep -v '^ *+' conftest.er1 >conftest.err
  26233. - rm -f conftest.er1
  26234. - cat conftest.err >&5
  26235. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26236. - (exit $ac_status); } && {
  26237. - test -z "$ac_c_werror_flag" ||
  26238. - test ! -s conftest.err
  26239. - } && test -s conftest.$ac_objext; then
  26240. - ac_hi=-1 ac_mid=-1
  26241. - while :; do
  26242. - cat >conftest.$ac_ext <<_ACEOF
  26243. -/* confdefs.h. */
  26244. -_ACEOF
  26245. -cat confdefs.h >>conftest.$ac_ext
  26246. -cat >>conftest.$ac_ext <<_ACEOF
  26247. -/* end confdefs.h. */
  26248. -$ac_includes_default
  26249. -int
  26250. -main ()
  26251. -{
  26252. -static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  26253. -test_array [0] = 0
  26254. + ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include <inttypes.h>
  26255. +"
  26256. +if test "x$ac_cv_type_uint16_t" = x""yes; then :
  26257. + scm_inttypes_has_uint16=1
  26258. +fi
  26259. - ;
  26260. - return 0;
  26261. -}
  26262. -_ACEOF
  26263. -rm -f conftest.$ac_objext
  26264. -if { (ac_try="$ac_compile"
  26265. -case "(($ac_try" in
  26266. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26267. - *) ac_try_echo=$ac_try;;
  26268. -esac
  26269. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26270. -$as_echo "$ac_try_echo") >&5
  26271. - (eval "$ac_compile") 2>conftest.er1
  26272. - ac_status=$?
  26273. - grep -v '^ *+' conftest.er1 >conftest.err
  26274. - rm -f conftest.er1
  26275. - cat conftest.err >&5
  26276. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26277. - (exit $ac_status); } && {
  26278. - test -z "$ac_c_werror_flag" ||
  26279. - test ! -s conftest.err
  26280. - } && test -s conftest.$ac_objext; then
  26281. - ac_lo=$ac_mid; break
  26282. -else
  26283. - $as_echo "$as_me: failed program was:" >&5
  26284. -sed 's/^/| /' conftest.$ac_ext >&5
  26285. + ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include <inttypes.h>
  26286. +"
  26287. +if test "x$ac_cv_type_int32_t" = x""yes; then :
  26288. + scm_inttypes_has_int32=1
  26289. +fi
  26290. - ac_hi=`expr '(' $ac_mid ')' - 1`
  26291. - if test $ac_mid -le $ac_hi; then
  26292. - ac_lo= ac_hi=
  26293. - break
  26294. - fi
  26295. - ac_mid=`expr 2 '*' $ac_mid`
  26296. + ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <inttypes.h>
  26297. +"
  26298. +if test "x$ac_cv_type_uint32_t" = x""yes; then :
  26299. + scm_inttypes_has_uint32=1
  26300. fi
  26301. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26302. - done
  26303. -else
  26304. - $as_echo "$as_me: failed program was:" >&5
  26305. -sed 's/^/| /' conftest.$ac_ext >&5
  26306. + ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#include <inttypes.h>
  26307. +"
  26308. +if test "x$ac_cv_type_int64_t" = x""yes; then :
  26309. + scm_inttypes_has_int64=1
  26310. +fi
  26311. - ac_lo= ac_hi=
  26312. + ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <inttypes.h>
  26313. +"
  26314. +if test "x$ac_cv_type_uint64_t" = x""yes; then :
  26315. + scm_inttypes_has_uint64=1
  26316. fi
  26317. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26318. + ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <inttypes.h>
  26319. +"
  26320. +if test "x$ac_cv_type_intmax_t" = x""yes; then :
  26321. + scm_inttypes_has_intmax=1
  26322. fi
  26323. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26324. -# Binary search between lo and hi bounds.
  26325. -while test "x$ac_lo" != "x$ac_hi"; do
  26326. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26327. - cat >conftest.$ac_ext <<_ACEOF
  26328. -/* confdefs.h. */
  26329. -_ACEOF
  26330. -cat confdefs.h >>conftest.$ac_ext
  26331. -cat >>conftest.$ac_ext <<_ACEOF
  26332. -/* end confdefs.h. */
  26333. -$ac_includes_default
  26334. -int
  26335. -main ()
  26336. -{
  26337. -static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  26338. -test_array [0] = 0
  26339. + ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <inttypes.h>
  26340. +"
  26341. +if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  26342. + scm_inttypes_has_uintmax=1
  26343. +fi
  26344. - ;
  26345. - return 0;
  26346. -}
  26347. -_ACEOF
  26348. -rm -f conftest.$ac_objext
  26349. -if { (ac_try="$ac_compile"
  26350. -case "(($ac_try" in
  26351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26352. - *) ac_try_echo=$ac_try;;
  26353. -esac
  26354. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26355. -$as_echo "$ac_try_echo") >&5
  26356. - (eval "$ac_compile") 2>conftest.er1
  26357. - ac_status=$?
  26358. - grep -v '^ *+' conftest.er1 >conftest.err
  26359. - rm -f conftest.er1
  26360. - cat conftest.err >&5
  26361. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26362. - (exit $ac_status); } && {
  26363. - test -z "$ac_c_werror_flag" ||
  26364. - test ! -s conftest.err
  26365. - } && test -s conftest.$ac_objext; then
  26366. - ac_hi=$ac_mid
  26367. +fi
  26368. +
  26369. +# Try hard to find definitions for some required scm_t_*int* types.
  26370. +
  26371. +### Required type scm_t_int8
  26372. +if test "$scm_stdint_has_int8"; then
  26373. + SCM_I_GSC_T_INT8='"int8_t"'
  26374. + SCM_I_GSC_NEEDS_STDINT_H=1
  26375. +elif test "$scm_inttypes_has_int8"; then
  26376. + SCM_I_GSC_T_INT8='"int8_t"'
  26377. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26378. +elif test "$ac_cv_sizeof_char" -eq 1; then
  26379. + SCM_I_GSC_T_INT8='"signed char"'
  26380. else
  26381. - $as_echo "$as_me: failed program was:" >&5
  26382. -sed 's/^/| /' conftest.$ac_ext >&5
  26383. + as_fn_error "Can't find appropriate type for scm_t_int8." "$LINENO" 5
  26384. +fi
  26385. - ac_lo=`expr '(' $ac_mid ')' + 1`
  26386. +
  26387. +### Required type scm_t_uint8
  26388. +if test "$scm_stdint_has_uint8"; then
  26389. + SCM_I_GSC_T_UINT8='"uint8_t"'
  26390. + SCM_I_GSC_NEEDS_STDINT_H=1
  26391. +elif test "$scm_inttypes_has_uint8"; then
  26392. + SCM_I_GSC_T_UINT8='"uint8_t"'
  26393. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26394. +elif test "$ac_cv_sizeof_unsigned_char" -eq 1; then
  26395. + SCM_I_GSC_T_UINT8='"unsigned char"'
  26396. +else
  26397. + as_fn_error "Can't find appropriate type for scm_t_uint8." "$LINENO" 5
  26398. fi
  26399. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26400. -done
  26401. -case $ac_lo in
  26402. -?*) ac_cv_sizeof_long=$ac_lo;;
  26403. -'') if test "$ac_cv_type_long" = yes; then
  26404. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  26405. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26406. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26407. -See \`config.log' for more details." >&5
  26408. -$as_echo "$as_me: error: cannot compute sizeof (long)
  26409. -See \`config.log' for more details." >&2;}
  26410. - { (exit 77); exit 77; }; }; }
  26411. - else
  26412. - ac_cv_sizeof_long=0
  26413. - fi ;;
  26414. -esac
  26415. +
  26416. +### Required type scm_t_int16 (ANSI C says int or short might work)
  26417. +if test "$scm_stdint_has_int16"; then
  26418. + SCM_I_GSC_T_INT16='"int16_t"'
  26419. + SCM_I_GSC_NEEDS_STDINT_H=1
  26420. +elif test "$scm_inttypes_has_int16"; then
  26421. + SCM_I_GSC_T_INT16='"int16_t"'
  26422. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26423. +elif test "$ac_cv_sizeof_int" -eq 2; then
  26424. + SCM_I_GSC_T_INT16='"int"'
  26425. +elif test "$ac_cv_sizeof_short" -eq 2; then
  26426. + SCM_I_GSC_T_INT16='"short"'
  26427. else
  26428. - cat >conftest.$ac_ext <<_ACEOF
  26429. -/* confdefs.h. */
  26430. -_ACEOF
  26431. -cat confdefs.h >>conftest.$ac_ext
  26432. -cat >>conftest.$ac_ext <<_ACEOF
  26433. -/* end confdefs.h. */
  26434. -$ac_includes_default
  26435. -static long int longval () { return (long int) (sizeof (long)); }
  26436. -static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  26437. -#include <stdio.h>
  26438. -#include <stdlib.h>
  26439. -int
  26440. -main ()
  26441. -{
  26442. + as_fn_error "Can't find appropriate type for scm_t_int16." "$LINENO" 5
  26443. +fi
  26444. - FILE *f = fopen ("conftest.val", "w");
  26445. - if (! f)
  26446. - return 1;
  26447. - if (((long int) (sizeof (long))) < 0)
  26448. - {
  26449. - long int i = longval ();
  26450. - if (i != ((long int) (sizeof (long))))
  26451. - return 1;
  26452. - fprintf (f, "%ld", i);
  26453. - }
  26454. - else
  26455. - {
  26456. - unsigned long int i = ulongval ();
  26457. - if (i != ((long int) (sizeof (long))))
  26458. - return 1;
  26459. - fprintf (f, "%lu", i);
  26460. - }
  26461. - /* Do not output a trailing newline, as this causes \r\n confusion
  26462. - on some platforms. */
  26463. - return ferror (f) || fclose (f) != 0;
  26464. - ;
  26465. - return 0;
  26466. -}
  26467. -_ACEOF
  26468. -rm -f conftest$ac_exeext
  26469. -if { (ac_try="$ac_link"
  26470. -case "(($ac_try" in
  26471. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26472. - *) ac_try_echo=$ac_try;;
  26473. -esac
  26474. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26475. -$as_echo "$ac_try_echo") >&5
  26476. - (eval "$ac_link") 2>&5
  26477. - ac_status=$?
  26478. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26479. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26480. - { (case "(($ac_try" in
  26481. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26482. - *) ac_try_echo=$ac_try;;
  26483. -esac
  26484. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26485. -$as_echo "$ac_try_echo") >&5
  26486. - (eval "$ac_try") 2>&5
  26487. - ac_status=$?
  26488. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26489. - (exit $ac_status); }; }; then
  26490. - ac_cv_sizeof_long=`cat conftest.val`
  26491. +### Required type scm_t_uint16 (ANSI C says int or short might work)
  26492. +if test "$scm_stdint_has_uint16"; then
  26493. + SCM_I_GSC_T_UINT16='"uint16_t"'
  26494. + SCM_I_GSC_NEEDS_STDINT_H=1
  26495. +elif test "$scm_inttypes_has_uint16"; then
  26496. + SCM_I_GSC_T_UINT16='"uint16_t"'
  26497. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26498. +elif test "$ac_cv_sizeof_unsigned_int" -eq 2; then
  26499. + SCM_I_GSC_T_UINT16='"unsigned int"'
  26500. +elif test "$ac_cv_sizeof_unsigned_short" -eq 2; then
  26501. + SCM_I_GSC_T_UINT16='"unsigned short"'
  26502. else
  26503. - $as_echo "$as_me: program exited with status $ac_status" >&5
  26504. -$as_echo "$as_me: failed program was:" >&5
  26505. -sed 's/^/| /' conftest.$ac_ext >&5
  26506. + as_fn_error "Can't find appropriate type for scm_t_uint16." "$LINENO" 5
  26507. +fi
  26508. -( exit $ac_status )
  26509. -if test "$ac_cv_type_long" = yes; then
  26510. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  26511. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26512. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26513. -See \`config.log' for more details." >&5
  26514. -$as_echo "$as_me: error: cannot compute sizeof (long)
  26515. -See \`config.log' for more details." >&2;}
  26516. - { (exit 77); exit 77; }; }; }
  26517. - else
  26518. - ac_cv_sizeof_long=0
  26519. - fi
  26520. +
  26521. +
  26522. +### Required type scm_t_int32 (ANSI C says int, short, or long might work)
  26523. +if test "$scm_stdint_has_int32"; then
  26524. + SCM_I_GSC_T_INT32='"int32_t"'
  26525. + SCM_I_GSC_NEEDS_STDINT_H=1
  26526. +elif test "$scm_inttypes_has_int32"; then
  26527. + SCM_I_GSC_T_INT32='"int32_t"'
  26528. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26529. +elif test "$ac_cv_sizeof_int" -eq 4; then
  26530. + SCM_I_GSC_T_INT32='"int"'
  26531. +elif test "$ac_cv_sizeof_long" -eq 4; then
  26532. + SCM_I_GSC_T_INT32='"long"'
  26533. +elif test "$ac_cv_sizeof_short" -eq 4; then
  26534. + SCM_I_GSC_T_INT32='"short"'
  26535. +else
  26536. + as_fn_error "Can't find appropriate type for scm_t_int32." "$LINENO" 5
  26537. fi
  26538. -rm -rf conftest.dSYM
  26539. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26540. +
  26541. +
  26542. +### Required type scm_t_uint32 (ANSI C says int, short, or long might work)
  26543. +if test "$scm_stdint_has_uint32"; then
  26544. + SCM_I_GSC_T_UINT32='"uint32_t"'
  26545. + SCM_I_GSC_NEEDS_STDINT_H=1
  26546. +elif test "$scm_inttypes_has_uint32"; then
  26547. + SCM_I_GSC_T_UINT32='"uint32_t"'
  26548. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26549. +elif test "$ac_cv_sizeof_unsigned_int" -eq 4; then
  26550. + SCM_I_GSC_T_UINT32='"unsigned int"'
  26551. +elif test "$ac_cv_sizeof_unsigned_long" -eq 4; then
  26552. + SCM_I_GSC_T_UINT32='"unsigned long"'
  26553. +elif test "$ac_cv_sizeof_unsigned_short" -eq 4; then
  26554. + SCM_I_GSC_T_UINT32='"unsigned short"'
  26555. +else
  26556. + as_fn_error "Can't find appropriate type for scm_t_uint32." "$LINENO" 5
  26557. fi
  26558. -rm -f conftest.val
  26559. +
  26560. +
  26561. +### Optional type scm_t_int64 (ANSI C says int, short, or long might work)
  26562. +### Also try 'long long' and '__int64' if we have it.
  26563. +SCM_I_GSC_T_INT64=0
  26564. +if test "$scm_stdint_has_int64"; then
  26565. + SCM_I_GSC_T_INT64='"int64_t"'
  26566. + SCM_I_GSC_NEEDS_STDINT_H=1
  26567. +elif test "$scm_inttypes_has_int64"; then
  26568. + SCM_I_GSC_T_INT64='"int64_t"'
  26569. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26570. +elif test "$ac_cv_sizeof_int" -eq 8; then
  26571. + SCM_I_GSC_T_INT64='"int"'
  26572. +elif test "$ac_cv_sizeof_long" -eq 8; then
  26573. + SCM_I_GSC_T_INT64='"long"'
  26574. +elif test "$ac_cv_sizeof_short" -eq 8; then
  26575. + SCM_I_GSC_T_INT64='"short"'
  26576. +elif test "$ac_cv_sizeof_long_long" -eq 8; then
  26577. + SCM_I_GSC_T_INT64='"long long"'
  26578. +elif test "$ac_cv_sizeof___int64" -eq 8; then
  26579. + SCM_I_GSC_T_INT64='"__int64"'
  26580. +else
  26581. + as_fn_error "Can't find appropriate type for scm_t_int64." "$LINENO" 5
  26582. fi
  26583. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  26584. -$as_echo "$ac_cv_sizeof_long" >&6; }
  26585. -cat >>confdefs.h <<_ACEOF
  26586. -#define SIZEOF_LONG $ac_cv_sizeof_long
  26587. -_ACEOF
  26588. +### Optional type scm_t_uint64 (ANSI C says int, short, or long might work)
  26589. +### Also try 'long long' and '__int64' if we have it.
  26590. +SCM_I_GSC_T_UINT64=0
  26591. +if test "$scm_stdint_has_uint64"; then
  26592. + SCM_I_GSC_T_UINT64='"uint64_t"'
  26593. + SCM_I_GSC_NEEDS_STDINT_H=1
  26594. +elif test "$scm_inttypes_has_uint64"; then
  26595. + SCM_I_GSC_T_UINT64='"uint64_t"'
  26596. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26597. +elif test "$ac_cv_sizeof_unsigned_int" -eq 8; then
  26598. + SCM_I_GSC_T_UINT64='"unsigned int"'
  26599. +elif test "$ac_cv_sizeof_unsigned_long" -eq 8; then
  26600. + SCM_I_GSC_T_UINT64='"unsigned long"'
  26601. +elif test "$ac_cv_sizeof_unsigned_short" -eq 8; then
  26602. + SCM_I_GSC_T_UINT64='"unsigned short"'
  26603. +elif test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then
  26604. + SCM_I_GSC_T_UINT64='"unsigned long long"'
  26605. +elif test "$ac_cv_sizeof_unsigned___int64" -eq 8; then
  26606. + SCM_I_GSC_T_UINT64='"unsigned __int64"'
  26607. +else
  26608. + as_fn_error "Can't find appropriate type for scm_t_uint64." "$LINENO" 5
  26609. +fi
  26610. -# The cast to long int works around a bug in the HP C Compiler
  26611. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26612. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26613. -# This bug is HP SR number 8606223364.
  26614. -{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
  26615. -$as_echo_n "checking size of unsigned long... " >&6; }
  26616. -if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  26617. +### Required type scm_t_intmax
  26618. +###
  26619. +### We try 'intmax_t', '__int64', 'long long' in this order. When
  26620. +### none of them is available, we use 'long'.
  26621. +###
  26622. +SCM_I_GSC_T_INTMAX=0
  26623. +if test "$scm_stdint_has_intmax"; then
  26624. + SCM_I_GSC_T_INTMAX='"intmax_t"'
  26625. + SCM_I_GSC_NEEDS_STDINT_H=1
  26626. +elif test "$scm_inttypes_has_intmax"; then
  26627. + SCM_I_GSC_T_INTMAX='"intmax_t"'
  26628. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26629. +elif test "$ac_cv_sizeof___int64" -ne 0; then
  26630. + SCM_I_GSC_T_INTMAX='"__int64"'
  26631. +elif test "$ac_cv_sizeof_long_long" -ne 0; then
  26632. + SCM_I_GSC_T_INTMAX='"long long"'
  26633. +else
  26634. + SCM_I_GSC_T_INTMAX='"long"'
  26635. +fi
  26636. +
  26637. +
  26638. +### Required type scm_t_uintmax
  26639. +###
  26640. +### We try 'uintmax_t', 'unsigned __int64', 'unsigned long long' in
  26641. +### this order. When none of them is available, we use 'unsigned long'.
  26642. +###
  26643. +SCM_I_GSC_T_UINTMAX=0
  26644. +if test "$scm_stdint_has_uintmax"; then
  26645. + SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  26646. + SCM_I_GSC_NEEDS_STDINT_H=1
  26647. +elif test "$scm_inttypes_has_uintmax"; then
  26648. + SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  26649. + SCM_I_GSC_NEEDS_INTTYPES_H=1
  26650. +elif test "$ac_cv_sizeof_unsigned___int64" -ne 0; then
  26651. + SCM_I_GSC_T_UINTMAX='"unsigned __int64"'
  26652. +elif test "$ac_cv_sizeof_unsigned_long_long" -ne 0; then
  26653. + SCM_I_GSC_T_UINTMAX='"unsigned long long"'
  26654. +else
  26655. + SCM_I_GSC_T_UINTMAX='"unsigned long"'
  26656. +fi
  26657. +
  26658. +
  26659. +
  26660. +
  26661. +
  26662. +
  26663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  26664. +$as_echo_n "checking for ANSI C header files... " >&6; }
  26665. +if test "${ac_cv_header_stdc+set}" = set; then :
  26666. $as_echo_n "(cached) " >&6
  26667. else
  26668. - if test "$cross_compiling" = yes; then
  26669. - # Depending upon the size, compute the lo and hi bounds.
  26670. -cat >conftest.$ac_ext <<_ACEOF
  26671. -/* confdefs.h. */
  26672. -_ACEOF
  26673. -cat confdefs.h >>conftest.$ac_ext
  26674. -cat >>conftest.$ac_ext <<_ACEOF
  26675. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26676. /* end confdefs.h. */
  26677. -$ac_includes_default
  26678. +#include <stdlib.h>
  26679. +#include <stdarg.h>
  26680. +#include <string.h>
  26681. +#include <float.h>
  26682. +
  26683. int
  26684. main ()
  26685. {
  26686. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
  26687. -test_array [0] = 0
  26688. ;
  26689. return 0;
  26690. }
  26691. _ACEOF
  26692. -rm -f conftest.$ac_objext
  26693. -if { (ac_try="$ac_compile"
  26694. -case "(($ac_try" in
  26695. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26696. - *) ac_try_echo=$ac_try;;
  26697. -esac
  26698. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26699. -$as_echo "$ac_try_echo") >&5
  26700. - (eval "$ac_compile") 2>conftest.er1
  26701. - ac_status=$?
  26702. - grep -v '^ *+' conftest.er1 >conftest.err
  26703. - rm -f conftest.er1
  26704. - cat conftest.err >&5
  26705. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26706. - (exit $ac_status); } && {
  26707. - test -z "$ac_c_werror_flag" ||
  26708. - test ! -s conftest.err
  26709. - } && test -s conftest.$ac_objext; then
  26710. - ac_lo=0 ac_mid=0
  26711. - while :; do
  26712. - cat >conftest.$ac_ext <<_ACEOF
  26713. -/* confdefs.h. */
  26714. -_ACEOF
  26715. -cat confdefs.h >>conftest.$ac_ext
  26716. -cat >>conftest.$ac_ext <<_ACEOF
  26717. +if ac_fn_c_try_compile "$LINENO"; then :
  26718. + ac_cv_header_stdc=yes
  26719. +else
  26720. + ac_cv_header_stdc=no
  26721. +fi
  26722. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26723. +
  26724. +if test $ac_cv_header_stdc = yes; then
  26725. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  26726. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26727. /* end confdefs.h. */
  26728. -$ac_includes_default
  26729. -int
  26730. -main ()
  26731. -{
  26732. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
  26733. -test_array [0] = 0
  26734. +#include <string.h>
  26735. - ;
  26736. - return 0;
  26737. -}
  26738. _ACEOF
  26739. -rm -f conftest.$ac_objext
  26740. -if { (ac_try="$ac_compile"
  26741. -case "(($ac_try" in
  26742. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26743. - *) ac_try_echo=$ac_try;;
  26744. -esac
  26745. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26746. -$as_echo "$ac_try_echo") >&5
  26747. - (eval "$ac_compile") 2>conftest.er1
  26748. - ac_status=$?
  26749. - grep -v '^ *+' conftest.er1 >conftest.err
  26750. - rm -f conftest.er1
  26751. - cat conftest.err >&5
  26752. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26753. - (exit $ac_status); } && {
  26754. - test -z "$ac_c_werror_flag" ||
  26755. - test ! -s conftest.err
  26756. - } && test -s conftest.$ac_objext; then
  26757. - ac_hi=$ac_mid; break
  26758. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26759. + $EGREP "memchr" >/dev/null 2>&1; then :
  26760. +
  26761. else
  26762. - $as_echo "$as_me: failed program was:" >&5
  26763. -sed 's/^/| /' conftest.$ac_ext >&5
  26764. + ac_cv_header_stdc=no
  26765. +fi
  26766. +rm -f conftest*
  26767. - ac_lo=`expr $ac_mid + 1`
  26768. - if test $ac_lo -le $ac_mid; then
  26769. - ac_lo= ac_hi=
  26770. - break
  26771. - fi
  26772. - ac_mid=`expr 2 '*' $ac_mid + 1`
  26773. fi
  26774. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26775. - done
  26776. -else
  26777. - $as_echo "$as_me: failed program was:" >&5
  26778. -sed 's/^/| /' conftest.$ac_ext >&5
  26779. +if test $ac_cv_header_stdc = yes; then
  26780. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  26781. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26782. +/* end confdefs.h. */
  26783. +#include <stdlib.h>
  26784. - cat >conftest.$ac_ext <<_ACEOF
  26785. -/* confdefs.h. */
  26786. _ACEOF
  26787. -cat confdefs.h >>conftest.$ac_ext
  26788. -cat >>conftest.$ac_ext <<_ACEOF
  26789. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26790. + $EGREP "free" >/dev/null 2>&1; then :
  26791. +
  26792. +else
  26793. + ac_cv_header_stdc=no
  26794. +fi
  26795. +rm -f conftest*
  26796. +
  26797. +fi
  26798. +
  26799. +if test $ac_cv_header_stdc = yes; then
  26800. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  26801. + if test "$cross_compiling" = yes; then :
  26802. + :
  26803. +else
  26804. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26805. /* end confdefs.h. */
  26806. -$ac_includes_default
  26807. +#include <ctype.h>
  26808. +#include <stdlib.h>
  26809. +#if ((' ' & 0x0FF) == 0x020)
  26810. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26811. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26812. +#else
  26813. +# define ISLOWER(c) \
  26814. + (('a' <= (c) && (c) <= 'i') \
  26815. + || ('j' <= (c) && (c) <= 'r') \
  26816. + || ('s' <= (c) && (c) <= 'z'))
  26817. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  26818. +#endif
  26819. +
  26820. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  26821. int
  26822. main ()
  26823. {
  26824. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
  26825. -test_array [0] = 0
  26826. -
  26827. - ;
  26828. + int i;
  26829. + for (i = 0; i < 256; i++)
  26830. + if (XOR (islower (i), ISLOWER (i))
  26831. + || toupper (i) != TOUPPER (i))
  26832. + return 2;
  26833. return 0;
  26834. }
  26835. _ACEOF
  26836. -rm -f conftest.$ac_objext
  26837. -if { (ac_try="$ac_compile"
  26838. -case "(($ac_try" in
  26839. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26840. - *) ac_try_echo=$ac_try;;
  26841. -esac
  26842. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26843. -$as_echo "$ac_try_echo") >&5
  26844. - (eval "$ac_compile") 2>conftest.er1
  26845. - ac_status=$?
  26846. - grep -v '^ *+' conftest.er1 >conftest.err
  26847. - rm -f conftest.er1
  26848. - cat conftest.err >&5
  26849. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26850. - (exit $ac_status); } && {
  26851. - test -z "$ac_c_werror_flag" ||
  26852. - test ! -s conftest.err
  26853. - } && test -s conftest.$ac_objext; then
  26854. - ac_hi=-1 ac_mid=-1
  26855. - while :; do
  26856. - cat >conftest.$ac_ext <<_ACEOF
  26857. -/* confdefs.h. */
  26858. -_ACEOF
  26859. -cat confdefs.h >>conftest.$ac_ext
  26860. -cat >>conftest.$ac_ext <<_ACEOF
  26861. +if ac_fn_c_try_run "$LINENO"; then :
  26862. +
  26863. +else
  26864. + ac_cv_header_stdc=no
  26865. +fi
  26866. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26867. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  26868. +fi
  26869. +
  26870. +fi
  26871. +fi
  26872. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  26873. +$as_echo "$ac_cv_header_stdc" >&6; }
  26874. +if test $ac_cv_header_stdc = yes; then
  26875. +
  26876. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  26877. +
  26878. +fi
  26879. +
  26880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  26881. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  26882. +if test "${ac_cv_header_time+set}" = set; then :
  26883. + $as_echo_n "(cached) " >&6
  26884. +else
  26885. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26886. /* end confdefs.h. */
  26887. -$ac_includes_default
  26888. +#include <sys/types.h>
  26889. +#include <sys/time.h>
  26890. +#include <time.h>
  26891. +
  26892. int
  26893. main ()
  26894. {
  26895. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
  26896. -test_array [0] = 0
  26897. -
  26898. +if ((struct tm *) 0)
  26899. +return 0;
  26900. ;
  26901. return 0;
  26902. }
  26903. _ACEOF
  26904. -rm -f conftest.$ac_objext
  26905. -if { (ac_try="$ac_compile"
  26906. -case "(($ac_try" in
  26907. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26908. - *) ac_try_echo=$ac_try;;
  26909. -esac
  26910. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26911. -$as_echo "$ac_try_echo") >&5
  26912. - (eval "$ac_compile") 2>conftest.er1
  26913. - ac_status=$?
  26914. - grep -v '^ *+' conftest.er1 >conftest.err
  26915. - rm -f conftest.er1
  26916. - cat conftest.err >&5
  26917. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26918. - (exit $ac_status); } && {
  26919. - test -z "$ac_c_werror_flag" ||
  26920. - test ! -s conftest.err
  26921. - } && test -s conftest.$ac_objext; then
  26922. - ac_lo=$ac_mid; break
  26923. +if ac_fn_c_try_compile "$LINENO"; then :
  26924. + ac_cv_header_time=yes
  26925. else
  26926. - $as_echo "$as_me: failed program was:" >&5
  26927. -sed 's/^/| /' conftest.$ac_ext >&5
  26928. -
  26929. - ac_hi=`expr '(' $ac_mid ')' - 1`
  26930. - if test $ac_mid -le $ac_hi; then
  26931. - ac_lo= ac_hi=
  26932. - break
  26933. - fi
  26934. - ac_mid=`expr 2 '*' $ac_mid`
  26935. + ac_cv_header_time=no
  26936. fi
  26937. -
  26938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26939. - done
  26940. -else
  26941. - $as_echo "$as_me: failed program was:" >&5
  26942. -sed 's/^/| /' conftest.$ac_ext >&5
  26943. -
  26944. - ac_lo= ac_hi=
  26945. fi
  26946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  26947. +$as_echo "$ac_cv_header_time" >&6; }
  26948. +if test $ac_cv_header_time = yes; then
  26949. +
  26950. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  26951. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26952. fi
  26953. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26954. -# Binary search between lo and hi bounds.
  26955. -while test "x$ac_lo" != "x$ac_hi"; do
  26956. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26957. - cat >conftest.$ac_ext <<_ACEOF
  26958. -/* confdefs.h. */
  26959. -_ACEOF
  26960. -cat confdefs.h >>conftest.$ac_ext
  26961. -cat >>conftest.$ac_ext <<_ACEOF
  26962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  26963. +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  26964. +if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  26965. + $as_echo_n "(cached) " >&6
  26966. +else
  26967. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26968. /* end confdefs.h. */
  26969. -$ac_includes_default
  26970. +#include <sys/types.h>
  26971. +#include <sys/wait.h>
  26972. +#ifndef WEXITSTATUS
  26973. +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  26974. +#endif
  26975. +#ifndef WIFEXITED
  26976. +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  26977. +#endif
  26978. +
  26979. int
  26980. main ()
  26981. {
  26982. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
  26983. -test_array [0] = 0
  26984. -
  26985. + int s;
  26986. + wait (&s);
  26987. + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  26988. ;
  26989. return 0;
  26990. }
  26991. _ACEOF
  26992. -rm -f conftest.$ac_objext
  26993. -if { (ac_try="$ac_compile"
  26994. -case "(($ac_try" in
  26995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26996. - *) ac_try_echo=$ac_try;;
  26997. -esac
  26998. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26999. -$as_echo "$ac_try_echo") >&5
  27000. - (eval "$ac_compile") 2>conftest.er1
  27001. - ac_status=$?
  27002. - grep -v '^ *+' conftest.er1 >conftest.err
  27003. - rm -f conftest.er1
  27004. - cat conftest.err >&5
  27005. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27006. - (exit $ac_status); } && {
  27007. - test -z "$ac_c_werror_flag" ||
  27008. - test ! -s conftest.err
  27009. - } && test -s conftest.$ac_objext; then
  27010. - ac_hi=$ac_mid
  27011. +if ac_fn_c_try_compile "$LINENO"; then :
  27012. + ac_cv_header_sys_wait_h=yes
  27013. else
  27014. - $as_echo "$as_me: failed program was:" >&5
  27015. -sed 's/^/| /' conftest.$ac_ext >&5
  27016. + ac_cv_header_sys_wait_h=no
  27017. +fi
  27018. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27019. +fi
  27020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  27021. +$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  27022. +if test $ac_cv_header_sys_wait_h = yes; then
  27023. +
  27024. +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  27025. - ac_lo=`expr '(' $ac_mid ')' + 1`
  27026. fi
  27027. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27028. -done
  27029. -case $ac_lo in
  27030. -?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  27031. -'') if test "$ac_cv_type_unsigned_long" = yes; then
  27032. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27033. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27034. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  27035. -See \`config.log' for more details." >&5
  27036. -$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
  27037. -See \`config.log' for more details." >&2;}
  27038. - { (exit 77); exit 77; }; }; }
  27039. - else
  27040. - ac_cv_sizeof_unsigned_long=0
  27041. - fi ;;
  27042. -esac
  27043. +ac_header_dirent=no
  27044. +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  27045. + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  27046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  27047. +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  27048. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  27049. + $as_echo_n "(cached) " >&6
  27050. else
  27051. - cat >conftest.$ac_ext <<_ACEOF
  27052. -/* confdefs.h. */
  27053. -_ACEOF
  27054. -cat confdefs.h >>conftest.$ac_ext
  27055. -cat >>conftest.$ac_ext <<_ACEOF
  27056. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27057. /* end confdefs.h. */
  27058. -$ac_includes_default
  27059. -static long int longval () { return (long int) (sizeof (unsigned long)); }
  27060. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
  27061. -#include <stdio.h>
  27062. -#include <stdlib.h>
  27063. +#include <sys/types.h>
  27064. +#include <$ac_hdr>
  27065. +
  27066. int
  27067. main ()
  27068. {
  27069. -
  27070. - FILE *f = fopen ("conftest.val", "w");
  27071. - if (! f)
  27072. - return 1;
  27073. - if (((long int) (sizeof (unsigned long))) < 0)
  27074. - {
  27075. - long int i = longval ();
  27076. - if (i != ((long int) (sizeof (unsigned long))))
  27077. - return 1;
  27078. - fprintf (f, "%ld", i);
  27079. - }
  27080. - else
  27081. - {
  27082. - unsigned long int i = ulongval ();
  27083. - if (i != ((long int) (sizeof (unsigned long))))
  27084. - return 1;
  27085. - fprintf (f, "%lu", i);
  27086. - }
  27087. - /* Do not output a trailing newline, as this causes \r\n confusion
  27088. - on some platforms. */
  27089. - return ferror (f) || fclose (f) != 0;
  27090. -
  27091. +if ((DIR *) 0)
  27092. +return 0;
  27093. ;
  27094. return 0;
  27095. }
  27096. _ACEOF
  27097. -rm -f conftest$ac_exeext
  27098. -if { (ac_try="$ac_link"
  27099. -case "(($ac_try" in
  27100. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27101. - *) ac_try_echo=$ac_try;;
  27102. -esac
  27103. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27104. -$as_echo "$ac_try_echo") >&5
  27105. - (eval "$ac_link") 2>&5
  27106. - ac_status=$?
  27107. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27108. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27109. - { (case "(($ac_try" in
  27110. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27111. - *) ac_try_echo=$ac_try;;
  27112. -esac
  27113. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27114. -$as_echo "$ac_try_echo") >&5
  27115. - (eval "$ac_try") 2>&5
  27116. - ac_status=$?
  27117. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27118. - (exit $ac_status); }; }; then
  27119. - ac_cv_sizeof_unsigned_long=`cat conftest.val`
  27120. +if ac_fn_c_try_compile "$LINENO"; then :
  27121. + eval "$as_ac_Header=yes"
  27122. else
  27123. - $as_echo "$as_me: program exited with status $ac_status" >&5
  27124. -$as_echo "$as_me: failed program was:" >&5
  27125. -sed 's/^/| /' conftest.$ac_ext >&5
  27126. -
  27127. -( exit $ac_status )
  27128. -if test "$ac_cv_type_unsigned_long" = yes; then
  27129. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27130. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27131. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  27132. -See \`config.log' for more details." >&5
  27133. -$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
  27134. -See \`config.log' for more details." >&2;}
  27135. - { (exit 77); exit 77; }; }; }
  27136. - else
  27137. - ac_cv_sizeof_unsigned_long=0
  27138. - fi
  27139. + eval "$as_ac_Header=no"
  27140. fi
  27141. -rm -rf conftest.dSYM
  27142. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27143. -fi
  27144. -rm -f conftest.val
  27145. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27146. fi
  27147. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  27148. -$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  27149. -
  27150. -
  27151. -
  27152. -cat >>confdefs.h <<_ACEOF
  27153. -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  27154. +eval ac_res=\$$as_ac_Header
  27155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27156. +$as_echo "$ac_res" >&6; }
  27157. +eval as_val=\$$as_ac_Header
  27158. + if test "x$as_val" = x""yes; then :
  27159. + cat >>confdefs.h <<_ACEOF
  27160. +#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  27161. _ACEOF
  27162. +ac_header_dirent=$ac_hdr; break
  27163. +fi
  27164. -# The cast to long int works around a bug in the HP C Compiler
  27165. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27166. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27167. -# This bug is HP SR number 8606223364.
  27168. -{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  27169. -$as_echo_n "checking size of size_t... " >&6; }
  27170. -if test "${ac_cv_sizeof_size_t+set}" = set; then
  27171. +done
  27172. +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  27173. +if test $ac_header_dirent = dirent.h; then
  27174. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  27175. +$as_echo_n "checking for library containing opendir... " >&6; }
  27176. +if test "${ac_cv_search_opendir+set}" = set; then :
  27177. $as_echo_n "(cached) " >&6
  27178. else
  27179. - if test "$cross_compiling" = yes; then
  27180. - # Depending upon the size, compute the lo and hi bounds.
  27181. -cat >conftest.$ac_ext <<_ACEOF
  27182. -/* confdefs.h. */
  27183. -_ACEOF
  27184. -cat confdefs.h >>conftest.$ac_ext
  27185. -cat >>conftest.$ac_ext <<_ACEOF
  27186. + ac_func_search_save_LIBS=$LIBS
  27187. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27188. /* end confdefs.h. */
  27189. -$ac_includes_default
  27190. -int
  27191. -main ()
  27192. -{
  27193. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  27194. -test_array [0] = 0
  27195. - ;
  27196. - return 0;
  27197. -}
  27198. -_ACEOF
  27199. -rm -f conftest.$ac_objext
  27200. -if { (ac_try="$ac_compile"
  27201. -case "(($ac_try" in
  27202. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27203. - *) ac_try_echo=$ac_try;;
  27204. -esac
  27205. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27206. -$as_echo "$ac_try_echo") >&5
  27207. - (eval "$ac_compile") 2>conftest.er1
  27208. - ac_status=$?
  27209. - grep -v '^ *+' conftest.er1 >conftest.err
  27210. - rm -f conftest.er1
  27211. - cat conftest.err >&5
  27212. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27213. - (exit $ac_status); } && {
  27214. - test -z "$ac_c_werror_flag" ||
  27215. - test ! -s conftest.err
  27216. - } && test -s conftest.$ac_objext; then
  27217. - ac_lo=0 ac_mid=0
  27218. - while :; do
  27219. - cat >conftest.$ac_ext <<_ACEOF
  27220. -/* confdefs.h. */
  27221. -_ACEOF
  27222. -cat confdefs.h >>conftest.$ac_ext
  27223. -cat >>conftest.$ac_ext <<_ACEOF
  27224. -/* end confdefs.h. */
  27225. -$ac_includes_default
  27226. +/* Override any GCC internal prototype to avoid an error.
  27227. + Use char because int might match the return type of a GCC
  27228. + builtin and then its argument prototype would still apply. */
  27229. +#ifdef __cplusplus
  27230. +extern "C"
  27231. +#endif
  27232. +char opendir ();
  27233. int
  27234. main ()
  27235. {
  27236. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  27237. -test_array [0] = 0
  27238. -
  27239. +return opendir ();
  27240. ;
  27241. return 0;
  27242. }
  27243. _ACEOF
  27244. -rm -f conftest.$ac_objext
  27245. -if { (ac_try="$ac_compile"
  27246. -case "(($ac_try" in
  27247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27248. - *) ac_try_echo=$ac_try;;
  27249. -esac
  27250. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27251. -$as_echo "$ac_try_echo") >&5
  27252. - (eval "$ac_compile") 2>conftest.er1
  27253. - ac_status=$?
  27254. - grep -v '^ *+' conftest.er1 >conftest.err
  27255. - rm -f conftest.er1
  27256. - cat conftest.err >&5
  27257. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27258. - (exit $ac_status); } && {
  27259. - test -z "$ac_c_werror_flag" ||
  27260. - test ! -s conftest.err
  27261. - } && test -s conftest.$ac_objext; then
  27262. - ac_hi=$ac_mid; break
  27263. +for ac_lib in '' dir; do
  27264. + if test -z "$ac_lib"; then
  27265. + ac_res="none required"
  27266. + else
  27267. + ac_res=-l$ac_lib
  27268. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27269. + fi
  27270. + if ac_fn_c_try_link "$LINENO"; then :
  27271. + ac_cv_search_opendir=$ac_res
  27272. +fi
  27273. +rm -f core conftest.err conftest.$ac_objext \
  27274. + conftest$ac_exeext
  27275. + if test "${ac_cv_search_opendir+set}" = set; then :
  27276. + break
  27277. +fi
  27278. +done
  27279. +if test "${ac_cv_search_opendir+set}" = set; then :
  27280. +
  27281. else
  27282. - $as_echo "$as_me: failed program was:" >&5
  27283. -sed 's/^/| /' conftest.$ac_ext >&5
  27284. + ac_cv_search_opendir=no
  27285. +fi
  27286. +rm conftest.$ac_ext
  27287. +LIBS=$ac_func_search_save_LIBS
  27288. +fi
  27289. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  27290. +$as_echo "$ac_cv_search_opendir" >&6; }
  27291. +ac_res=$ac_cv_search_opendir
  27292. +if test "$ac_res" != no; then :
  27293. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  27294. - ac_lo=`expr $ac_mid + 1`
  27295. - if test $ac_lo -le $ac_mid; then
  27296. - ac_lo= ac_hi=
  27297. - break
  27298. - fi
  27299. - ac_mid=`expr 2 '*' $ac_mid + 1`
  27300. fi
  27301. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27302. - done
  27303. else
  27304. - $as_echo "$as_me: failed program was:" >&5
  27305. -sed 's/^/| /' conftest.$ac_ext >&5
  27306. -
  27307. - cat >conftest.$ac_ext <<_ACEOF
  27308. -/* confdefs.h. */
  27309. -_ACEOF
  27310. -cat confdefs.h >>conftest.$ac_ext
  27311. -cat >>conftest.$ac_ext <<_ACEOF
  27312. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  27313. +$as_echo_n "checking for library containing opendir... " >&6; }
  27314. +if test "${ac_cv_search_opendir+set}" = set; then :
  27315. + $as_echo_n "(cached) " >&6
  27316. +else
  27317. + ac_func_search_save_LIBS=$LIBS
  27318. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27319. /* end confdefs.h. */
  27320. -$ac_includes_default
  27321. -int
  27322. -main ()
  27323. -{
  27324. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  27325. -test_array [0] = 0
  27326. - ;
  27327. - return 0;
  27328. -}
  27329. -_ACEOF
  27330. -rm -f conftest.$ac_objext
  27331. -if { (ac_try="$ac_compile"
  27332. -case "(($ac_try" in
  27333. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27334. - *) ac_try_echo=$ac_try;;
  27335. -esac
  27336. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27337. -$as_echo "$ac_try_echo") >&5
  27338. - (eval "$ac_compile") 2>conftest.er1
  27339. - ac_status=$?
  27340. - grep -v '^ *+' conftest.er1 >conftest.err
  27341. - rm -f conftest.er1
  27342. - cat conftest.err >&5
  27343. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27344. - (exit $ac_status); } && {
  27345. - test -z "$ac_c_werror_flag" ||
  27346. - test ! -s conftest.err
  27347. - } && test -s conftest.$ac_objext; then
  27348. - ac_hi=-1 ac_mid=-1
  27349. - while :; do
  27350. - cat >conftest.$ac_ext <<_ACEOF
  27351. -/* confdefs.h. */
  27352. -_ACEOF
  27353. -cat confdefs.h >>conftest.$ac_ext
  27354. -cat >>conftest.$ac_ext <<_ACEOF
  27355. -/* end confdefs.h. */
  27356. -$ac_includes_default
  27357. +/* Override any GCC internal prototype to avoid an error.
  27358. + Use char because int might match the return type of a GCC
  27359. + builtin and then its argument prototype would still apply. */
  27360. +#ifdef __cplusplus
  27361. +extern "C"
  27362. +#endif
  27363. +char opendir ();
  27364. int
  27365. main ()
  27366. {
  27367. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  27368. -test_array [0] = 0
  27369. -
  27370. +return opendir ();
  27371. ;
  27372. return 0;
  27373. }
  27374. _ACEOF
  27375. -rm -f conftest.$ac_objext
  27376. -if { (ac_try="$ac_compile"
  27377. -case "(($ac_try" in
  27378. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27379. - *) ac_try_echo=$ac_try;;
  27380. -esac
  27381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27382. -$as_echo "$ac_try_echo") >&5
  27383. - (eval "$ac_compile") 2>conftest.er1
  27384. - ac_status=$?
  27385. - grep -v '^ *+' conftest.er1 >conftest.err
  27386. - rm -f conftest.er1
  27387. - cat conftest.err >&5
  27388. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27389. - (exit $ac_status); } && {
  27390. - test -z "$ac_c_werror_flag" ||
  27391. - test ! -s conftest.err
  27392. - } && test -s conftest.$ac_objext; then
  27393. - ac_lo=$ac_mid; break
  27394. -else
  27395. - $as_echo "$as_me: failed program was:" >&5
  27396. -sed 's/^/| /' conftest.$ac_ext >&5
  27397. -
  27398. - ac_hi=`expr '(' $ac_mid ')' - 1`
  27399. - if test $ac_mid -le $ac_hi; then
  27400. - ac_lo= ac_hi=
  27401. - break
  27402. - fi
  27403. - ac_mid=`expr 2 '*' $ac_mid`
  27404. +for ac_lib in '' x; do
  27405. + if test -z "$ac_lib"; then
  27406. + ac_res="none required"
  27407. + else
  27408. + ac_res=-l$ac_lib
  27409. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27410. + fi
  27411. + if ac_fn_c_try_link "$LINENO"; then :
  27412. + ac_cv_search_opendir=$ac_res
  27413. +fi
  27414. +rm -f core conftest.err conftest.$ac_objext \
  27415. + conftest$ac_exeext
  27416. + if test "${ac_cv_search_opendir+set}" = set; then :
  27417. + break
  27418. fi
  27419. +done
  27420. +if test "${ac_cv_search_opendir+set}" = set; then :
  27421. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27422. - done
  27423. else
  27424. - $as_echo "$as_me: failed program was:" >&5
  27425. -sed 's/^/| /' conftest.$ac_ext >&5
  27426. + ac_cv_search_opendir=no
  27427. +fi
  27428. +rm conftest.$ac_ext
  27429. +LIBS=$ac_func_search_save_LIBS
  27430. +fi
  27431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  27432. +$as_echo "$ac_cv_search_opendir" >&6; }
  27433. +ac_res=$ac_cv_search_opendir
  27434. +if test "$ac_res" != no; then :
  27435. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  27436. - ac_lo= ac_hi=
  27437. fi
  27438. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27439. fi
  27440. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27441. -# Binary search between lo and hi bounds.
  27442. -while test "x$ac_lo" != "x$ac_hi"; do
  27443. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27444. - cat >conftest.$ac_ext <<_ACEOF
  27445. -/* confdefs.h. */
  27446. -_ACEOF
  27447. -cat confdefs.h >>conftest.$ac_ext
  27448. -cat >>conftest.$ac_ext <<_ACEOF
  27449. -/* end confdefs.h. */
  27450. -$ac_includes_default
  27451. -int
  27452. -main ()
  27453. -{
  27454. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  27455. -test_array [0] = 0
  27456. - ;
  27457. - return 0;
  27458. -}
  27459. -_ACEOF
  27460. -rm -f conftest.$ac_objext
  27461. -if { (ac_try="$ac_compile"
  27462. -case "(($ac_try" in
  27463. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27464. - *) ac_try_echo=$ac_try;;
  27465. -esac
  27466. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27467. -$as_echo "$ac_try_echo") >&5
  27468. - (eval "$ac_compile") 2>conftest.er1
  27469. - ac_status=$?
  27470. - grep -v '^ *+' conftest.er1 >conftest.err
  27471. - rm -f conftest.er1
  27472. - cat conftest.err >&5
  27473. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27474. - (exit $ac_status); } && {
  27475. - test -z "$ac_c_werror_flag" ||
  27476. - test ! -s conftest.err
  27477. - } && test -s conftest.$ac_objext; then
  27478. - ac_hi=$ac_mid
  27479. -else
  27480. - $as_echo "$as_me: failed program was:" >&5
  27481. -sed 's/^/| /' conftest.$ac_ext >&5
  27482. +# Reason for checking:
  27483. +#
  27484. +# HP-UX 11.11 (at least) doesn't provide `struct dirent64', even
  27485. +# with `_LARGEFILE64_SOURCE', so check whether it's available.
  27486. +#
  27487. +ac_fn_c_check_member "$LINENO" "struct dirent64" "d_name" "ac_cv_member_struct_dirent64_d_name" " #ifndef _LARGEFILE64_SOURCE
  27488. + # define _LARGEFILE64_SOURCE
  27489. + #endif
  27490. - ac_lo=`expr '(' $ac_mid ')' + 1`
  27491. + /* Per Autoconf manual. */
  27492. + #include <sys/types.h>
  27493. + #ifdef HAVE_DIRENT_H
  27494. + # include <dirent.h>
  27495. + #else
  27496. + # define dirent direct
  27497. + # ifdef HAVE_SYS_NDIR_H
  27498. + # include <sys/ndir.h>
  27499. + # endif
  27500. + # ifdef HAVE_SYS_DIR_H
  27501. + # include <sys/dir.h>
  27502. + # endif
  27503. + # ifdef HAVE_NDIR_H
  27504. + # include <ndir.h>
  27505. + # endif
  27506. + #endif
  27507. +"
  27508. +if test "x$ac_cv_member_struct_dirent64_d_name" = x""yes; then :
  27509. + SCM_I_GSC_HAVE_STRUCT_DIRENT64=1
  27510. +else
  27511. + SCM_I_GSC_HAVE_STRUCT_DIRENT64=0
  27512. fi
  27513. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27514. -done
  27515. -case $ac_lo in
  27516. -?*) ac_cv_sizeof_size_t=$ac_lo;;
  27517. -'') if test "$ac_cv_type_size_t" = yes; then
  27518. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27519. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27520. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  27521. -See \`config.log' for more details." >&5
  27522. -$as_echo "$as_me: error: cannot compute sizeof (size_t)
  27523. -See \`config.log' for more details." >&2;}
  27524. - { (exit 77); exit 77; }; }; }
  27525. - else
  27526. - ac_cv_sizeof_size_t=0
  27527. - fi ;;
  27528. -esac
  27529. -else
  27530. - cat >conftest.$ac_ext <<_ACEOF
  27531. -/* confdefs.h. */
  27532. +
  27533. +
  27534. +# Reasons for testing:
  27535. +# complex.h - new in C99
  27536. +# fenv.h - available in C99, but not older systems
  27537. +# machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in
  27538. +# this file instead of <fenv.h>
  27539. +# process.h - mingw specific
  27540. +#
  27541. +for ac_header in complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \
  27542. +regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \
  27543. +sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
  27544. +sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
  27545. +direct.h strings.h machine/fpu.h
  27546. +do :
  27547. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27548. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  27549. +eval as_val=\$$as_ac_Header
  27550. + if test "x$as_val" = x""yes; then :
  27551. + cat >>confdefs.h <<_ACEOF
  27552. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27553. _ACEOF
  27554. -cat confdefs.h >>conftest.$ac_ext
  27555. -cat >>conftest.$ac_ext <<_ACEOF
  27556. -/* end confdefs.h. */
  27557. -$ac_includes_default
  27558. -static long int longval () { return (long int) (sizeof (size_t)); }
  27559. -static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  27560. -#include <stdio.h>
  27561. -#include <stdlib.h>
  27562. -int
  27563. -main ()
  27564. -{
  27565. - FILE *f = fopen ("conftest.val", "w");
  27566. - if (! f)
  27567. - return 1;
  27568. - if (((long int) (sizeof (size_t))) < 0)
  27569. - {
  27570. - long int i = longval ();
  27571. - if (i != ((long int) (sizeof (size_t))))
  27572. - return 1;
  27573. - fprintf (f, "%ld", i);
  27574. - }
  27575. - else
  27576. - {
  27577. - unsigned long int i = ulongval ();
  27578. - if (i != ((long int) (sizeof (size_t))))
  27579. - return 1;
  27580. - fprintf (f, "%lu", i);
  27581. - }
  27582. - /* Do not output a trailing newline, as this causes \r\n confusion
  27583. - on some platforms. */
  27584. - return ferror (f) || fclose (f) != 0;
  27585. +fi
  27586. - ;
  27587. - return 0;
  27588. -}
  27589. +done
  27590. +
  27591. +
  27592. +# "complex double" is new in C99, and "complex" is only a keyword if
  27593. +# <complex.h> is included
  27594. +ac_fn_c_check_type "$LINENO" "complex double" "ac_cv_type_complex_double" "#if HAVE_COMPLEX_H
  27595. +#include <complex.h>
  27596. +#endif
  27597. +"
  27598. +if test "x$ac_cv_type_complex_double" = x""yes; then :
  27599. +
  27600. +cat >>confdefs.h <<_ACEOF
  27601. +#define HAVE_COMPLEX_DOUBLE 1
  27602. _ACEOF
  27603. -rm -f conftest$ac_exeext
  27604. -if { (ac_try="$ac_link"
  27605. -case "(($ac_try" in
  27606. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27607. - *) ac_try_echo=$ac_try;;
  27608. -esac
  27609. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27610. -$as_echo "$ac_try_echo") >&5
  27611. - (eval "$ac_link") 2>&5
  27612. - ac_status=$?
  27613. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27614. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27615. - { (case "(($ac_try" in
  27616. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27617. - *) ac_try_echo=$ac_try;;
  27618. -esac
  27619. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27620. -$as_echo "$ac_try_echo") >&5
  27621. - (eval "$ac_try") 2>&5
  27622. - ac_status=$?
  27623. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27624. - (exit $ac_status); }; }; then
  27625. - ac_cv_sizeof_size_t=`cat conftest.val`
  27626. -else
  27627. - $as_echo "$as_me: program exited with status $ac_status" >&5
  27628. -$as_echo "$as_me: failed program was:" >&5
  27629. -sed 's/^/| /' conftest.$ac_ext >&5
  27630. -( exit $ac_status )
  27631. -if test "$ac_cv_type_size_t" = yes; then
  27632. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27633. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27634. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  27635. -See \`config.log' for more details." >&5
  27636. -$as_echo "$as_me: error: cannot compute sizeof (size_t)
  27637. -See \`config.log' for more details." >&2;}
  27638. - { (exit 77); exit 77; }; }; }
  27639. - else
  27640. - ac_cv_sizeof_size_t=0
  27641. - fi
  27642. +
  27643. fi
  27644. -rm -rf conftest.dSYM
  27645. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27646. +
  27647. +
  27648. +# On MacOS X <sys/socklen.h> contains socklen_t, so must include that
  27649. +# when testing.
  27650. +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#if HAVE_SYS_TYPES_H
  27651. +#include <sys/types.h>
  27652. +#endif
  27653. +#include <sys/socket.h>
  27654. +
  27655. +"
  27656. +if test "x$ac_cv_type_socklen_t" = x""yes; then :
  27657. +
  27658. +else
  27659. +
  27660. +cat >>confdefs.h <<_ACEOF
  27661. +#define socklen_t int
  27662. +_ACEOF
  27663. +
  27664. fi
  27665. -rm -f conftest.val
  27666. +
  27667. +ac_fn_c_check_type "$LINENO" "struct ip_mreq" "ac_cv_type_struct_ip_mreq" "$ac_includes_default"
  27668. +if test "x$ac_cv_type_struct_ip_mreq" = x""yes; then :
  27669. +
  27670. fi
  27671. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  27672. -$as_echo "$ac_cv_sizeof_size_t" >&6; }
  27673. -cat >>confdefs.h <<_ACEOF
  27674. -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  27675. + for ac_header in libc.h unistd.h
  27676. +do :
  27677. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27678. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  27679. +eval as_val=\$$as_ac_Header
  27680. + if test "x$as_val" = x""yes; then :
  27681. + cat >>confdefs.h <<_ACEOF
  27682. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27683. _ACEOF
  27684. +fi
  27685. -# The cast to long int works around a bug in the HP C Compiler
  27686. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27687. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27688. -# This bug is HP SR number 8606223364.
  27689. -{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
  27690. -$as_echo_n "checking size of long long... " >&6; }
  27691. -if test "${ac_cv_sizeof_long_long+set}" = set; then
  27692. +done
  27693. +
  27694. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc.h and unistd.h can be included together" >&5
  27695. +$as_echo_n "checking whether libc.h and unistd.h can be included together... " >&6; }
  27696. +if test "${guile_cv_header_libc_with_unistd+set}" = set; then :
  27697. $as_echo_n "(cached) " >&6
  27698. else
  27699. - if test "$cross_compiling" = yes; then
  27700. - # Depending upon the size, compute the lo and hi bounds.
  27701. -cat >conftest.$ac_ext <<_ACEOF
  27702. -/* confdefs.h. */
  27703. -_ACEOF
  27704. -cat confdefs.h >>conftest.$ac_ext
  27705. -cat >>conftest.$ac_ext <<_ACEOF
  27706. -/* end confdefs.h. */
  27707. -$ac_includes_default
  27708. -int
  27709. -main ()
  27710. -{
  27711. -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  27712. -test_array [0] = 0
  27713. - ;
  27714. - return 0;
  27715. -}
  27716. -_ACEOF
  27717. -rm -f conftest.$ac_objext
  27718. -if { (ac_try="$ac_compile"
  27719. -case "(($ac_try" in
  27720. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27721. - *) ac_try_echo=$ac_try;;
  27722. -esac
  27723. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27724. -$as_echo "$ac_try_echo") >&5
  27725. - (eval "$ac_compile") 2>conftest.er1
  27726. - ac_status=$?
  27727. - grep -v '^ *+' conftest.er1 >conftest.err
  27728. - rm -f conftest.er1
  27729. - cat conftest.err >&5
  27730. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27731. - (exit $ac_status); } && {
  27732. - test -z "$ac_c_werror_flag" ||
  27733. - test ! -s conftest.err
  27734. - } && test -s conftest.$ac_objext; then
  27735. - ac_lo=0 ac_mid=0
  27736. - while :; do
  27737. - cat >conftest.$ac_ext <<_ACEOF
  27738. -/* confdefs.h. */
  27739. -_ACEOF
  27740. -cat confdefs.h >>conftest.$ac_ext
  27741. -cat >>conftest.$ac_ext <<_ACEOF
  27742. + if test "$ac_cv_header_libc_h" = "no"; then
  27743. + guile_cv_header_libc_with_unistd="no"
  27744. + elif test "$ac_cv_header_unistd_h" = "no"; then
  27745. + guile_cv_header_libc_with_unistd="yes"
  27746. + else
  27747. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27748. /* end confdefs.h. */
  27749. -$ac_includes_default
  27750. +
  27751. +# include <libc.h>
  27752. +# include <unistd.h>
  27753. +
  27754. int
  27755. main ()
  27756. {
  27757. -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  27758. -test_array [0] = 0
  27759. ;
  27760. return 0;
  27761. }
  27762. _ACEOF
  27763. -rm -f conftest.$ac_objext
  27764. -if { (ac_try="$ac_compile"
  27765. -case "(($ac_try" in
  27766. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27767. - *) ac_try_echo=$ac_try;;
  27768. -esac
  27769. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27770. -$as_echo "$ac_try_echo") >&5
  27771. - (eval "$ac_compile") 2>conftest.er1
  27772. - ac_status=$?
  27773. - grep -v '^ *+' conftest.er1 >conftest.err
  27774. - rm -f conftest.er1
  27775. - cat conftest.err >&5
  27776. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27777. - (exit $ac_status); } && {
  27778. - test -z "$ac_c_werror_flag" ||
  27779. - test ! -s conftest.err
  27780. - } && test -s conftest.$ac_objext; then
  27781. - ac_hi=$ac_mid; break
  27782. +if ac_fn_c_try_compile "$LINENO"; then :
  27783. + guile_cv_header_libc_with_unistd=yes
  27784. else
  27785. - $as_echo "$as_me: failed program was:" >&5
  27786. -sed 's/^/| /' conftest.$ac_ext >&5
  27787. + guile_cv_header_libc_with_unistd=no
  27788. - ac_lo=`expr $ac_mid + 1`
  27789. - if test $ac_lo -le $ac_mid; then
  27790. - ac_lo= ac_hi=
  27791. - break
  27792. - fi
  27793. - ac_mid=`expr 2 '*' $ac_mid + 1`
  27794. fi
  27795. -
  27796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27797. - done
  27798. -else
  27799. - $as_echo "$as_me: failed program was:" >&5
  27800. -sed 's/^/| /' conftest.$ac_ext >&5
  27801. + fi
  27802. - cat >conftest.$ac_ext <<_ACEOF
  27803. -/* confdefs.h. */
  27804. -_ACEOF
  27805. -cat confdefs.h >>conftest.$ac_ext
  27806. -cat >>conftest.$ac_ext <<_ACEOF
  27807. -/* end confdefs.h. */
  27808. -$ac_includes_default
  27809. -int
  27810. -main ()
  27811. -{
  27812. -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  27813. -test_array [0] = 0
  27814. - ;
  27815. - return 0;
  27816. -}
  27817. -_ACEOF
  27818. -rm -f conftest.$ac_objext
  27819. -if { (ac_try="$ac_compile"
  27820. -case "(($ac_try" in
  27821. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27822. - *) ac_try_echo=$ac_try;;
  27823. -esac
  27824. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27825. -$as_echo "$ac_try_echo") >&5
  27826. - (eval "$ac_compile") 2>conftest.er1
  27827. - ac_status=$?
  27828. - grep -v '^ *+' conftest.er1 >conftest.err
  27829. - rm -f conftest.er1
  27830. - cat conftest.err >&5
  27831. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27832. - (exit $ac_status); } && {
  27833. - test -z "$ac_c_werror_flag" ||
  27834. - test ! -s conftest.err
  27835. - } && test -s conftest.$ac_objext; then
  27836. - ac_hi=-1 ac_mid=-1
  27837. - while :; do
  27838. - cat >conftest.$ac_ext <<_ACEOF
  27839. -/* confdefs.h. */
  27840. -_ACEOF
  27841. -cat confdefs.h >>conftest.$ac_ext
  27842. -cat >>conftest.$ac_ext <<_ACEOF
  27843. +fi
  27844. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_header_libc_with_unistd" >&5
  27845. +$as_echo "$guile_cv_header_libc_with_unistd" >&6; }
  27846. + if test "$guile_cv_header_libc_with_unistd" = yes; then
  27847. +
  27848. +$as_echo "#define LIBC_H_WITH_UNISTD_H 1" >>confdefs.h
  27849. +
  27850. + fi
  27851. +
  27852. +
  27853. +
  27854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  27855. +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  27856. +if test "${ac_cv_type_uid_t+set}" = set; then :
  27857. + $as_echo_n "(cached) " >&6
  27858. +else
  27859. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27860. /* end confdefs.h. */
  27861. -$ac_includes_default
  27862. -int
  27863. -main ()
  27864. -{
  27865. -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  27866. -test_array [0] = 0
  27867. +#include <sys/types.h>
  27868. - ;
  27869. - return 0;
  27870. -}
  27871. _ACEOF
  27872. -rm -f conftest.$ac_objext
  27873. -if { (ac_try="$ac_compile"
  27874. -case "(($ac_try" in
  27875. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27876. - *) ac_try_echo=$ac_try;;
  27877. -esac
  27878. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27879. -$as_echo "$ac_try_echo") >&5
  27880. - (eval "$ac_compile") 2>conftest.er1
  27881. - ac_status=$?
  27882. - grep -v '^ *+' conftest.er1 >conftest.err
  27883. - rm -f conftest.er1
  27884. - cat conftest.err >&5
  27885. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27886. - (exit $ac_status); } && {
  27887. - test -z "$ac_c_werror_flag" ||
  27888. - test ! -s conftest.err
  27889. - } && test -s conftest.$ac_objext; then
  27890. - ac_lo=$ac_mid; break
  27891. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27892. + $EGREP "uid_t" >/dev/null 2>&1; then :
  27893. + ac_cv_type_uid_t=yes
  27894. else
  27895. - $as_echo "$as_me: failed program was:" >&5
  27896. -sed 's/^/| /' conftest.$ac_ext >&5
  27897. + ac_cv_type_uid_t=no
  27898. +fi
  27899. +rm -f conftest*
  27900. - ac_hi=`expr '(' $ac_mid ')' - 1`
  27901. - if test $ac_mid -le $ac_hi; then
  27902. - ac_lo= ac_hi=
  27903. - break
  27904. - fi
  27905. - ac_mid=`expr 2 '*' $ac_mid`
  27906. fi
  27907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  27908. +$as_echo "$ac_cv_type_uid_t" >&6; }
  27909. +if test $ac_cv_type_uid_t = no; then
  27910. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27911. - done
  27912. -else
  27913. - $as_echo "$as_me: failed program was:" >&5
  27914. -sed 's/^/| /' conftest.$ac_ext >&5
  27915. +$as_echo "#define uid_t int" >>confdefs.h
  27916. - ac_lo= ac_hi=
  27917. -fi
  27918. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27919. +$as_echo "#define gid_t int" >>confdefs.h
  27920. +
  27921. fi
  27922. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27923. -# Binary search between lo and hi bounds.
  27924. -while test "x$ac_lo" != "x$ac_hi"; do
  27925. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27926. - cat >conftest.$ac_ext <<_ACEOF
  27927. -/* confdefs.h. */
  27928. -_ACEOF
  27929. -cat confdefs.h >>conftest.$ac_ext
  27930. -cat >>conftest.$ac_ext <<_ACEOF
  27931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  27932. +$as_echo_n "checking type of array argument to getgroups... " >&6; }
  27933. +if test "${ac_cv_type_getgroups+set}" = set; then :
  27934. + $as_echo_n "(cached) " >&6
  27935. +else
  27936. + if test "$cross_compiling" = yes; then :
  27937. + ac_cv_type_getgroups=cross
  27938. +else
  27939. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27940. /* end confdefs.h. */
  27941. +/* Thanks to Mike Rendell for this test. */
  27942. $ac_includes_default
  27943. +#define NGID 256
  27944. +#undef MAX
  27945. +#define MAX(x, y) ((x) > (y) ? (x) : (y))
  27946. +
  27947. int
  27948. main ()
  27949. {
  27950. -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  27951. -test_array [0] = 0
  27952. + gid_t gidset[NGID];
  27953. + int i, n;
  27954. + union { gid_t gval; long int lval; } val;
  27955. - ;
  27956. - return 0;
  27957. + val.lval = -1;
  27958. + for (i = 0; i < NGID; i++)
  27959. + gidset[i] = val.gval;
  27960. + n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  27961. + gidset);
  27962. + /* Exit non-zero if getgroups seems to require an array of ints. This
  27963. + happens when gid_t is short int but getgroups modifies an array
  27964. + of ints. */
  27965. + return n > 0 && gidset[n] != val.gval;
  27966. }
  27967. _ACEOF
  27968. -rm -f conftest.$ac_objext
  27969. -if { (ac_try="$ac_compile"
  27970. -case "(($ac_try" in
  27971. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27972. - *) ac_try_echo=$ac_try;;
  27973. -esac
  27974. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27975. -$as_echo "$ac_try_echo") >&5
  27976. - (eval "$ac_compile") 2>conftest.er1
  27977. - ac_status=$?
  27978. - grep -v '^ *+' conftest.er1 >conftest.err
  27979. - rm -f conftest.er1
  27980. - cat conftest.err >&5
  27981. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27982. - (exit $ac_status); } && {
  27983. - test -z "$ac_c_werror_flag" ||
  27984. - test ! -s conftest.err
  27985. - } && test -s conftest.$ac_objext; then
  27986. - ac_hi=$ac_mid
  27987. +if ac_fn_c_try_run "$LINENO"; then :
  27988. + ac_cv_type_getgroups=gid_t
  27989. else
  27990. - $as_echo "$as_me: failed program was:" >&5
  27991. -sed 's/^/| /' conftest.$ac_ext >&5
  27992. -
  27993. - ac_lo=`expr '(' $ac_mid ')' + 1`
  27994. + ac_cv_type_getgroups=int
  27995. +fi
  27996. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27997. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  27998. fi
  27999. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28000. -done
  28001. -case $ac_lo in
  28002. -?*) ac_cv_sizeof_long_long=$ac_lo;;
  28003. -'') if test "$ac_cv_type_long_long" = yes; then
  28004. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28005. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28006. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  28007. -See \`config.log' for more details." >&5
  28008. -$as_echo "$as_me: error: cannot compute sizeof (long long)
  28009. -See \`config.log' for more details." >&2;}
  28010. - { (exit 77); exit 77; }; }; }
  28011. - else
  28012. - ac_cv_sizeof_long_long=0
  28013. - fi ;;
  28014. -esac
  28015. -else
  28016. - cat >conftest.$ac_ext <<_ACEOF
  28017. -/* confdefs.h. */
  28018. -_ACEOF
  28019. -cat confdefs.h >>conftest.$ac_ext
  28020. -cat >>conftest.$ac_ext <<_ACEOF
  28021. +if test $ac_cv_type_getgroups = cross; then
  28022. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28023. /* end confdefs.h. */
  28024. -$ac_includes_default
  28025. -static long int longval () { return (long int) (sizeof (long long)); }
  28026. -static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  28027. -#include <stdio.h>
  28028. -#include <stdlib.h>
  28029. -int
  28030. -main ()
  28031. -{
  28032. -
  28033. - FILE *f = fopen ("conftest.val", "w");
  28034. - if (! f)
  28035. - return 1;
  28036. - if (((long int) (sizeof (long long))) < 0)
  28037. - {
  28038. - long int i = longval ();
  28039. - if (i != ((long int) (sizeof (long long))))
  28040. - return 1;
  28041. - fprintf (f, "%ld", i);
  28042. - }
  28043. - else
  28044. - {
  28045. - unsigned long int i = ulongval ();
  28046. - if (i != ((long int) (sizeof (long long))))
  28047. - return 1;
  28048. - fprintf (f, "%lu", i);
  28049. - }
  28050. - /* Do not output a trailing newline, as this causes \r\n confusion
  28051. - on some platforms. */
  28052. - return ferror (f) || fclose (f) != 0;
  28053. +#include <unistd.h>
  28054. - ;
  28055. - return 0;
  28056. -}
  28057. _ACEOF
  28058. -rm -f conftest$ac_exeext
  28059. -if { (ac_try="$ac_link"
  28060. -case "(($ac_try" in
  28061. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28062. - *) ac_try_echo=$ac_try;;
  28063. -esac
  28064. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28065. -$as_echo "$ac_try_echo") >&5
  28066. - (eval "$ac_link") 2>&5
  28067. - ac_status=$?
  28068. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28069. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28070. - { (case "(($ac_try" in
  28071. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28072. - *) ac_try_echo=$ac_try;;
  28073. -esac
  28074. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28075. -$as_echo "$ac_try_echo") >&5
  28076. - (eval "$ac_try") 2>&5
  28077. - ac_status=$?
  28078. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28079. - (exit $ac_status); }; }; then
  28080. - ac_cv_sizeof_long_long=`cat conftest.val`
  28081. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28082. + $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  28083. + ac_cv_type_getgroups=gid_t
  28084. else
  28085. - $as_echo "$as_me: program exited with status $ac_status" >&5
  28086. -$as_echo "$as_me: failed program was:" >&5
  28087. -sed 's/^/| /' conftest.$ac_ext >&5
  28088. -
  28089. -( exit $ac_status )
  28090. -if test "$ac_cv_type_long_long" = yes; then
  28091. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28092. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28093. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  28094. -See \`config.log' for more details." >&5
  28095. -$as_echo "$as_me: error: cannot compute sizeof (long long)
  28096. -See \`config.log' for more details." >&2;}
  28097. - { (exit 77); exit 77; }; }; }
  28098. - else
  28099. - ac_cv_sizeof_long_long=0
  28100. - fi
  28101. + ac_cv_type_getgroups=int
  28102. fi
  28103. -rm -rf conftest.dSYM
  28104. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28105. +rm -f conftest*
  28106. +
  28107. fi
  28108. -rm -f conftest.val
  28109. fi
  28110. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  28111. -$as_echo "$ac_cv_sizeof_long_long" >&6; }
  28112. -
  28113. -
  28114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  28115. +$as_echo "$ac_cv_type_getgroups" >&6; }
  28116. cat >>confdefs.h <<_ACEOF
  28117. -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  28118. +#define GETGROUPS_T $ac_cv_type_getgroups
  28119. _ACEOF
  28120. -# The cast to long int works around a bug in the HP C Compiler
  28121. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28122. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28123. -# This bug is HP SR number 8606223364.
  28124. -{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
  28125. -$as_echo_n "checking size of unsigned long long... " >&6; }
  28126. -if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
  28127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  28128. +$as_echo_n "checking return type of signal handlers... " >&6; }
  28129. +if test "${ac_cv_type_signal+set}" = set; then :
  28130. $as_echo_n "(cached) " >&6
  28131. else
  28132. - if test "$cross_compiling" = yes; then
  28133. - # Depending upon the size, compute the lo and hi bounds.
  28134. -cat >conftest.$ac_ext <<_ACEOF
  28135. -/* confdefs.h. */
  28136. -_ACEOF
  28137. -cat confdefs.h >>conftest.$ac_ext
  28138. -cat >>conftest.$ac_ext <<_ACEOF
  28139. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28140. /* end confdefs.h. */
  28141. -$ac_includes_default
  28142. -int
  28143. -main ()
  28144. -{
  28145. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
  28146. -test_array [0] = 0
  28147. +#include <sys/types.h>
  28148. +#include <signal.h>
  28149. - ;
  28150. - return 0;
  28151. -}
  28152. -_ACEOF
  28153. -rm -f conftest.$ac_objext
  28154. -if { (ac_try="$ac_compile"
  28155. -case "(($ac_try" in
  28156. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28157. - *) ac_try_echo=$ac_try;;
  28158. -esac
  28159. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28160. -$as_echo "$ac_try_echo") >&5
  28161. - (eval "$ac_compile") 2>conftest.er1
  28162. - ac_status=$?
  28163. - grep -v '^ *+' conftest.er1 >conftest.err
  28164. - rm -f conftest.er1
  28165. - cat conftest.err >&5
  28166. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28167. - (exit $ac_status); } && {
  28168. - test -z "$ac_c_werror_flag" ||
  28169. - test ! -s conftest.err
  28170. - } && test -s conftest.$ac_objext; then
  28171. - ac_lo=0 ac_mid=0
  28172. - while :; do
  28173. - cat >conftest.$ac_ext <<_ACEOF
  28174. -/* confdefs.h. */
  28175. -_ACEOF
  28176. -cat confdefs.h >>conftest.$ac_ext
  28177. -cat >>conftest.$ac_ext <<_ACEOF
  28178. -/* end confdefs.h. */
  28179. -$ac_includes_default
  28180. int
  28181. main ()
  28182. {
  28183. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
  28184. -test_array [0] = 0
  28185. -
  28186. +return *(signal (0, 0)) (0) == 1;
  28187. ;
  28188. return 0;
  28189. }
  28190. _ACEOF
  28191. -rm -f conftest.$ac_objext
  28192. -if { (ac_try="$ac_compile"
  28193. -case "(($ac_try" in
  28194. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28195. - *) ac_try_echo=$ac_try;;
  28196. -esac
  28197. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28198. -$as_echo "$ac_try_echo") >&5
  28199. - (eval "$ac_compile") 2>conftest.er1
  28200. - ac_status=$?
  28201. - grep -v '^ *+' conftest.er1 >conftest.err
  28202. - rm -f conftest.er1
  28203. - cat conftest.err >&5
  28204. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28205. - (exit $ac_status); } && {
  28206. - test -z "$ac_c_werror_flag" ||
  28207. - test ! -s conftest.err
  28208. - } && test -s conftest.$ac_objext; then
  28209. - ac_hi=$ac_mid; break
  28210. +if ac_fn_c_try_compile "$LINENO"; then :
  28211. + ac_cv_type_signal=int
  28212. else
  28213. - $as_echo "$as_me: failed program was:" >&5
  28214. -sed 's/^/| /' conftest.$ac_ext >&5
  28215. -
  28216. - ac_lo=`expr $ac_mid + 1`
  28217. - if test $ac_lo -le $ac_mid; then
  28218. - ac_lo= ac_hi=
  28219. - break
  28220. - fi
  28221. - ac_mid=`expr 2 '*' $ac_mid + 1`
  28222. + ac_cv_type_signal=void
  28223. fi
  28224. -
  28225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28226. - done
  28227. -else
  28228. - $as_echo "$as_me: failed program was:" >&5
  28229. -sed 's/^/| /' conftest.$ac_ext >&5
  28230. +fi
  28231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  28232. +$as_echo "$ac_cv_type_signal" >&6; }
  28233. - cat >conftest.$ac_ext <<_ACEOF
  28234. -/* confdefs.h. */
  28235. +cat >>confdefs.h <<_ACEOF
  28236. +#define RETSIGTYPE $ac_cv_type_signal
  28237. _ACEOF
  28238. -cat confdefs.h >>conftest.$ac_ext
  28239. -cat >>conftest.$ac_ext <<_ACEOF
  28240. -/* end confdefs.h. */
  28241. -$ac_includes_default
  28242. -int
  28243. -main ()
  28244. -{
  28245. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
  28246. -test_array [0] = 0
  28247. - ;
  28248. - return 0;
  28249. -}
  28250. -_ACEOF
  28251. -rm -f conftest.$ac_objext
  28252. -if { (ac_try="$ac_compile"
  28253. -case "(($ac_try" in
  28254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28255. - *) ac_try_echo=$ac_try;;
  28256. -esac
  28257. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28258. -$as_echo "$ac_try_echo") >&5
  28259. - (eval "$ac_compile") 2>conftest.er1
  28260. - ac_status=$?
  28261. - grep -v '^ *+' conftest.er1 >conftest.err
  28262. - rm -f conftest.er1
  28263. - cat conftest.err >&5
  28264. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28265. - (exit $ac_status); } && {
  28266. - test -z "$ac_c_werror_flag" ||
  28267. - test ! -s conftest.err
  28268. - } && test -s conftest.$ac_objext; then
  28269. - ac_hi=-1 ac_mid=-1
  28270. - while :; do
  28271. - cat >conftest.$ac_ext <<_ACEOF
  28272. -/* confdefs.h. */
  28273. +
  28274. +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  28275. +if test "x$ac_cv_type_mode_t" = x""yes; then :
  28276. +
  28277. +else
  28278. +
  28279. +cat >>confdefs.h <<_ACEOF
  28280. +#define mode_t int
  28281. _ACEOF
  28282. -cat confdefs.h >>conftest.$ac_ext
  28283. -cat >>conftest.$ac_ext <<_ACEOF
  28284. +
  28285. +fi
  28286. +
  28287. +
  28288. +# On mingw -lm is empty, so this test is unnecessary, but it's
  28289. +# harmless so we don't hard-code to suppress it.
  28290. +#
  28291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  28292. +$as_echo_n "checking for cos in -lm... " >&6; }
  28293. +if test "${ac_cv_lib_m_cos+set}" = set; then :
  28294. + $as_echo_n "(cached) " >&6
  28295. +else
  28296. + ac_check_lib_save_LIBS=$LIBS
  28297. +LIBS="-lm $LIBS"
  28298. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28299. /* end confdefs.h. */
  28300. -$ac_includes_default
  28301. +
  28302. +/* Override any GCC internal prototype to avoid an error.
  28303. + Use char because int might match the return type of a GCC
  28304. + builtin and then its argument prototype would still apply. */
  28305. +#ifdef __cplusplus
  28306. +extern "C"
  28307. +#endif
  28308. +char cos ();
  28309. int
  28310. main ()
  28311. {
  28312. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
  28313. -test_array [0] = 0
  28314. -
  28315. +return cos ();
  28316. ;
  28317. return 0;
  28318. }
  28319. _ACEOF
  28320. -rm -f conftest.$ac_objext
  28321. -if { (ac_try="$ac_compile"
  28322. -case "(($ac_try" in
  28323. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28324. - *) ac_try_echo=$ac_try;;
  28325. -esac
  28326. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28327. -$as_echo "$ac_try_echo") >&5
  28328. - (eval "$ac_compile") 2>conftest.er1
  28329. - ac_status=$?
  28330. - grep -v '^ *+' conftest.er1 >conftest.err
  28331. - rm -f conftest.er1
  28332. - cat conftest.err >&5
  28333. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28334. - (exit $ac_status); } && {
  28335. - test -z "$ac_c_werror_flag" ||
  28336. - test ! -s conftest.err
  28337. - } && test -s conftest.$ac_objext; then
  28338. - ac_lo=$ac_mid; break
  28339. +if ac_fn_c_try_link "$LINENO"; then :
  28340. + ac_cv_lib_m_cos=yes
  28341. else
  28342. - $as_echo "$as_me: failed program was:" >&5
  28343. -sed 's/^/| /' conftest.$ac_ext >&5
  28344. -
  28345. - ac_hi=`expr '(' $ac_mid ')' - 1`
  28346. - if test $ac_mid -le $ac_hi; then
  28347. - ac_lo= ac_hi=
  28348. - break
  28349. - fi
  28350. - ac_mid=`expr 2 '*' $ac_mid`
  28351. + ac_cv_lib_m_cos=no
  28352. fi
  28353. +rm -f core conftest.err conftest.$ac_objext \
  28354. + conftest$ac_exeext conftest.$ac_ext
  28355. +LIBS=$ac_check_lib_save_LIBS
  28356. +fi
  28357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  28358. +$as_echo "$ac_cv_lib_m_cos" >&6; }
  28359. +if test "x$ac_cv_lib_m_cos" = x""yes; then :
  28360. + cat >>confdefs.h <<_ACEOF
  28361. +#define HAVE_LIBM 1
  28362. +_ACEOF
  28363. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28364. - done
  28365. -else
  28366. - $as_echo "$as_me: failed program was:" >&5
  28367. -sed 's/^/| /' conftest.$ac_ext >&5
  28368. + LIBS="-lm $LIBS"
  28369. - ac_lo= ac_hi=
  28370. fi
  28371. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28372. -fi
  28373. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28374. -# Binary search between lo and hi bounds.
  28375. -while test "x$ac_lo" != "x$ac_hi"; do
  28376. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28377. - cat >conftest.$ac_ext <<_ACEOF
  28378. -/* confdefs.h. */
  28379. +for ac_func in gethostbyname
  28380. +do :
  28381. + ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  28382. +if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  28383. + cat >>confdefs.h <<_ACEOF
  28384. +#define HAVE_GETHOSTBYNAME 1
  28385. _ACEOF
  28386. -cat confdefs.h >>conftest.$ac_ext
  28387. -cat >>conftest.$ac_ext <<_ACEOF
  28388. +
  28389. +fi
  28390. +done
  28391. +
  28392. +if test $ac_cv_func_gethostbyname = no; then
  28393. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  28394. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  28395. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  28396. + $as_echo_n "(cached) " >&6
  28397. +else
  28398. + ac_check_lib_save_LIBS=$LIBS
  28399. +LIBS="-lnsl $LIBS"
  28400. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28401. /* end confdefs.h. */
  28402. -$ac_includes_default
  28403. +
  28404. +/* Override any GCC internal prototype to avoid an error.
  28405. + Use char because int might match the return type of a GCC
  28406. + builtin and then its argument prototype would still apply. */
  28407. +#ifdef __cplusplus
  28408. +extern "C"
  28409. +#endif
  28410. +char gethostbyname ();
  28411. int
  28412. main ()
  28413. {
  28414. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
  28415. -test_array [0] = 0
  28416. -
  28417. +return gethostbyname ();
  28418. ;
  28419. return 0;
  28420. }
  28421. _ACEOF
  28422. -rm -f conftest.$ac_objext
  28423. -if { (ac_try="$ac_compile"
  28424. -case "(($ac_try" in
  28425. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28426. - *) ac_try_echo=$ac_try;;
  28427. -esac
  28428. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28429. -$as_echo "$ac_try_echo") >&5
  28430. - (eval "$ac_compile") 2>conftest.er1
  28431. - ac_status=$?
  28432. - grep -v '^ *+' conftest.er1 >conftest.err
  28433. - rm -f conftest.er1
  28434. - cat conftest.err >&5
  28435. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28436. - (exit $ac_status); } && {
  28437. - test -z "$ac_c_werror_flag" ||
  28438. - test ! -s conftest.err
  28439. - } && test -s conftest.$ac_objext; then
  28440. - ac_hi=$ac_mid
  28441. +if ac_fn_c_try_link "$LINENO"; then :
  28442. + ac_cv_lib_nsl_gethostbyname=yes
  28443. else
  28444. - $as_echo "$as_me: failed program was:" >&5
  28445. -sed 's/^/| /' conftest.$ac_ext >&5
  28446. -
  28447. - ac_lo=`expr '(' $ac_mid ')' + 1`
  28448. + ac_cv_lib_nsl_gethostbyname=no
  28449. +fi
  28450. +rm -f core conftest.err conftest.$ac_objext \
  28451. + conftest$ac_exeext conftest.$ac_ext
  28452. +LIBS=$ac_check_lib_save_LIBS
  28453. fi
  28454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  28455. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  28456. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  28457. + cat >>confdefs.h <<_ACEOF
  28458. +#define HAVE_LIBNSL 1
  28459. +_ACEOF
  28460. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28461. + LIBS="-lnsl $LIBS"
  28462. +
  28463. +fi
  28464. +
  28465. +fi
  28466. +
  28467. +for ac_func in connect
  28468. +do :
  28469. + ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  28470. +if test "x$ac_cv_func_connect" = x""yes; then :
  28471. + cat >>confdefs.h <<_ACEOF
  28472. +#define HAVE_CONNECT 1
  28473. +_ACEOF
  28474. +
  28475. +fi
  28476. done
  28477. -case $ac_lo in
  28478. -?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
  28479. -'') if test "$ac_cv_type_unsigned_long_long" = yes; then
  28480. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28481. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28482. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
  28483. -See \`config.log' for more details." >&5
  28484. -$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
  28485. -See \`config.log' for more details." >&2;}
  28486. - { (exit 77); exit 77; }; }; }
  28487. - else
  28488. - ac_cv_sizeof_unsigned_long_long=0
  28489. - fi ;;
  28490. -esac
  28491. +
  28492. +if test $ac_cv_func_connect = no; then
  28493. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  28494. +$as_echo_n "checking for connect in -lsocket... " >&6; }
  28495. +if test "${ac_cv_lib_socket_connect+set}" = set; then :
  28496. + $as_echo_n "(cached) " >&6
  28497. else
  28498. - cat >conftest.$ac_ext <<_ACEOF
  28499. -/* confdefs.h. */
  28500. -_ACEOF
  28501. -cat confdefs.h >>conftest.$ac_ext
  28502. -cat >>conftest.$ac_ext <<_ACEOF
  28503. + ac_check_lib_save_LIBS=$LIBS
  28504. +LIBS="-lsocket $LIBS"
  28505. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28506. /* end confdefs.h. */
  28507. -$ac_includes_default
  28508. -static long int longval () { return (long int) (sizeof (unsigned long long)); }
  28509. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
  28510. -#include <stdio.h>
  28511. -#include <stdlib.h>
  28512. +
  28513. +/* Override any GCC internal prototype to avoid an error.
  28514. + Use char because int might match the return type of a GCC
  28515. + builtin and then its argument prototype would still apply. */
  28516. +#ifdef __cplusplus
  28517. +extern "C"
  28518. +#endif
  28519. +char connect ();
  28520. int
  28521. main ()
  28522. {
  28523. -
  28524. - FILE *f = fopen ("conftest.val", "w");
  28525. - if (! f)
  28526. - return 1;
  28527. - if (((long int) (sizeof (unsigned long long))) < 0)
  28528. - {
  28529. - long int i = longval ();
  28530. - if (i != ((long int) (sizeof (unsigned long long))))
  28531. - return 1;
  28532. - fprintf (f, "%ld", i);
  28533. - }
  28534. - else
  28535. - {
  28536. - unsigned long int i = ulongval ();
  28537. - if (i != ((long int) (sizeof (unsigned long long))))
  28538. - return 1;
  28539. - fprintf (f, "%lu", i);
  28540. - }
  28541. - /* Do not output a trailing newline, as this causes \r\n confusion
  28542. - on some platforms. */
  28543. - return ferror (f) || fclose (f) != 0;
  28544. -
  28545. +return connect ();
  28546. ;
  28547. return 0;
  28548. }
  28549. _ACEOF
  28550. -rm -f conftest$ac_exeext
  28551. -if { (ac_try="$ac_link"
  28552. -case "(($ac_try" in
  28553. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28554. - *) ac_try_echo=$ac_try;;
  28555. -esac
  28556. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28557. -$as_echo "$ac_try_echo") >&5
  28558. - (eval "$ac_link") 2>&5
  28559. - ac_status=$?
  28560. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28561. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28562. - { (case "(($ac_try" in
  28563. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28564. - *) ac_try_echo=$ac_try;;
  28565. -esac
  28566. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28567. -$as_echo "$ac_try_echo") >&5
  28568. - (eval "$ac_try") 2>&5
  28569. - ac_status=$?
  28570. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28571. - (exit $ac_status); }; }; then
  28572. - ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
  28573. +if ac_fn_c_try_link "$LINENO"; then :
  28574. + ac_cv_lib_socket_connect=yes
  28575. else
  28576. - $as_echo "$as_me: program exited with status $ac_status" >&5
  28577. -$as_echo "$as_me: failed program was:" >&5
  28578. -sed 's/^/| /' conftest.$ac_ext >&5
  28579. -
  28580. -( exit $ac_status )
  28581. -if test "$ac_cv_type_unsigned_long_long" = yes; then
  28582. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28583. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28584. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
  28585. -See \`config.log' for more details." >&5
  28586. -$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
  28587. -See \`config.log' for more details." >&2;}
  28588. - { (exit 77); exit 77; }; }; }
  28589. - else
  28590. - ac_cv_sizeof_unsigned_long_long=0
  28591. - fi
  28592. + ac_cv_lib_socket_connect=no
  28593. fi
  28594. -rm -rf conftest.dSYM
  28595. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28596. +rm -f core conftest.err conftest.$ac_objext \
  28597. + conftest$ac_exeext conftest.$ac_ext
  28598. +LIBS=$ac_check_lib_save_LIBS
  28599. fi
  28600. -rm -f conftest.val
  28601. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  28602. +$as_echo "$ac_cv_lib_socket_connect" >&6; }
  28603. +if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  28604. + cat >>confdefs.h <<_ACEOF
  28605. +#define HAVE_LIBSOCKET 1
  28606. +_ACEOF
  28607. +
  28608. + LIBS="-lsocket $LIBS"
  28609. +
  28610. fi
  28611. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
  28612. -$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  28613. +fi
  28614. +EXTRA_DEFS=""
  28615. +case $host in
  28616. + *-*-mingw*)
  28617. + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  28618. +if test "x$ac_cv_header_winsock2_h" = x""yes; then :
  28619. -cat >>confdefs.h <<_ACEOF
  28620. -#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  28621. -_ACEOF
  28622. +$as_echo "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  28623. +fi
  28624. -# The cast to long int works around a bug in the HP C Compiler
  28625. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28626. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28627. -# This bug is HP SR number 8606223364.
  28628. -{ $as_echo "$as_me:$LINENO: checking size of __int64" >&5
  28629. -$as_echo_n "checking size of __int64... " >&6; }
  28630. -if test "${ac_cv_sizeof___int64+set}" = set; then
  28631. +
  28632. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
  28633. +$as_echo_n "checking for main in -lws2_32... " >&6; }
  28634. +if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
  28635. $as_echo_n "(cached) " >&6
  28636. else
  28637. - if test "$cross_compiling" = yes; then
  28638. - # Depending upon the size, compute the lo and hi bounds.
  28639. -cat >conftest.$ac_ext <<_ACEOF
  28640. -/* confdefs.h. */
  28641. -_ACEOF
  28642. -cat confdefs.h >>conftest.$ac_ext
  28643. -cat >>conftest.$ac_ext <<_ACEOF
  28644. + ac_check_lib_save_LIBS=$LIBS
  28645. +LIBS="-lws2_32 $LIBS"
  28646. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28647. /* end confdefs.h. */
  28648. -$ac_includes_default
  28649. -int
  28650. -main ()
  28651. -{
  28652. -static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= 0)];
  28653. -test_array [0] = 0
  28654. - ;
  28655. - return 0;
  28656. -}
  28657. -_ACEOF
  28658. -rm -f conftest.$ac_objext
  28659. -if { (ac_try="$ac_compile"
  28660. -case "(($ac_try" in
  28661. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28662. - *) ac_try_echo=$ac_try;;
  28663. -esac
  28664. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28665. -$as_echo "$ac_try_echo") >&5
  28666. - (eval "$ac_compile") 2>conftest.er1
  28667. - ac_status=$?
  28668. - grep -v '^ *+' conftest.er1 >conftest.err
  28669. - rm -f conftest.er1
  28670. - cat conftest.err >&5
  28671. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28672. - (exit $ac_status); } && {
  28673. - test -z "$ac_c_werror_flag" ||
  28674. - test ! -s conftest.err
  28675. - } && test -s conftest.$ac_objext; then
  28676. - ac_lo=0 ac_mid=0
  28677. - while :; do
  28678. - cat >conftest.$ac_ext <<_ACEOF
  28679. -/* confdefs.h. */
  28680. -_ACEOF
  28681. -cat confdefs.h >>conftest.$ac_ext
  28682. -cat >>conftest.$ac_ext <<_ACEOF
  28683. -/* end confdefs.h. */
  28684. -$ac_includes_default
  28685. +
  28686. int
  28687. main ()
  28688. {
  28689. -static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
  28690. -test_array [0] = 0
  28691. -
  28692. +return main ();
  28693. ;
  28694. return 0;
  28695. }
  28696. _ACEOF
  28697. -rm -f conftest.$ac_objext
  28698. -if { (ac_try="$ac_compile"
  28699. -case "(($ac_try" in
  28700. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28701. - *) ac_try_echo=$ac_try;;
  28702. -esac
  28703. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28704. -$as_echo "$ac_try_echo") >&5
  28705. - (eval "$ac_compile") 2>conftest.er1
  28706. - ac_status=$?
  28707. - grep -v '^ *+' conftest.er1 >conftest.err
  28708. - rm -f conftest.er1
  28709. - cat conftest.err >&5
  28710. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28711. - (exit $ac_status); } && {
  28712. - test -z "$ac_c_werror_flag" ||
  28713. - test ! -s conftest.err
  28714. - } && test -s conftest.$ac_objext; then
  28715. - ac_hi=$ac_mid; break
  28716. +if ac_fn_c_try_link "$LINENO"; then :
  28717. + ac_cv_lib_ws2_32_main=yes
  28718. else
  28719. - $as_echo "$as_me: failed program was:" >&5
  28720. -sed 's/^/| /' conftest.$ac_ext >&5
  28721. + ac_cv_lib_ws2_32_main=no
  28722. +fi
  28723. +rm -f core conftest.err conftest.$ac_objext \
  28724. + conftest$ac_exeext conftest.$ac_ext
  28725. +LIBS=$ac_check_lib_save_LIBS
  28726. +fi
  28727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
  28728. +$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  28729. +if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
  28730. + cat >>confdefs.h <<_ACEOF
  28731. +#define HAVE_LIBWS2_32 1
  28732. +_ACEOF
  28733. +
  28734. + LIBS="-lws2_32 $LIBS"
  28735. - ac_lo=`expr $ac_mid + 1`
  28736. - if test $ac_lo -le $ac_mid; then
  28737. - ac_lo= ac_hi=
  28738. - break
  28739. - fi
  28740. - ac_mid=`expr 2 '*' $ac_mid + 1`
  28741. fi
  28742. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28743. - done
  28744. -else
  28745. - $as_echo "$as_me: failed program was:" >&5
  28746. -sed 's/^/| /' conftest.$ac_ext >&5
  28747. + case " $LIBOBJS " in
  28748. + *" win32-uname.$ac_objext "* ) ;;
  28749. + *) LIBOBJS="$LIBOBJS win32-uname.$ac_objext"
  28750. + ;;
  28751. +esac
  28752. - cat >conftest.$ac_ext <<_ACEOF
  28753. -/* confdefs.h. */
  28754. -_ACEOF
  28755. -cat confdefs.h >>conftest.$ac_ext
  28756. -cat >>conftest.$ac_ext <<_ACEOF
  28757. -/* end confdefs.h. */
  28758. -$ac_includes_default
  28759. -int
  28760. -main ()
  28761. -{
  28762. -static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) < 0)];
  28763. -test_array [0] = 0
  28764. + case " $LIBOBJS " in
  28765. + *" win32-dirent.$ac_objext "* ) ;;
  28766. + *) LIBOBJS="$LIBOBJS win32-dirent.$ac_objext"
  28767. + ;;
  28768. +esac
  28769. - ;
  28770. - return 0;
  28771. -}
  28772. -_ACEOF
  28773. -rm -f conftest.$ac_objext
  28774. -if { (ac_try="$ac_compile"
  28775. -case "(($ac_try" in
  28776. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28777. - *) ac_try_echo=$ac_try;;
  28778. + if test "$enable_networking" = yes ; then
  28779. + case " $LIBOBJS " in
  28780. + *" win32-socket.$ac_objext "* ) ;;
  28781. + *) LIBOBJS="$LIBOBJS win32-socket.$ac_objext"
  28782. + ;;
  28783. esac
  28784. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28785. -$as_echo "$ac_try_echo") >&5
  28786. - (eval "$ac_compile") 2>conftest.er1
  28787. - ac_status=$?
  28788. - grep -v '^ *+' conftest.er1 >conftest.err
  28789. - rm -f conftest.er1
  28790. - cat conftest.err >&5
  28791. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28792. - (exit $ac_status); } && {
  28793. - test -z "$ac_c_werror_flag" ||
  28794. - test ! -s conftest.err
  28795. - } && test -s conftest.$ac_objext; then
  28796. - ac_hi=-1 ac_mid=-1
  28797. - while :; do
  28798. - cat >conftest.$ac_ext <<_ACEOF
  28799. -/* confdefs.h. */
  28800. -_ACEOF
  28801. -cat confdefs.h >>conftest.$ac_ext
  28802. -cat >>conftest.$ac_ext <<_ACEOF
  28803. -/* end confdefs.h. */
  28804. -$ac_includes_default
  28805. -int
  28806. -main ()
  28807. -{
  28808. -static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= $ac_mid)];
  28809. -test_array [0] = 0
  28810. - ;
  28811. - return 0;
  28812. -}
  28813. -_ACEOF
  28814. -rm -f conftest.$ac_objext
  28815. -if { (ac_try="$ac_compile"
  28816. -case "(($ac_try" in
  28817. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28818. - *) ac_try_echo=$ac_try;;
  28819. + fi
  28820. + if test "$enable_shared" = yes ; then
  28821. + EXTRA_DEFS="-DSCM_IMPORT"
  28822. +
  28823. +$as_echo "#define USE_DLL_IMPORT 1" >>confdefs.h
  28824. +
  28825. + fi
  28826. + ;;
  28827. esac
  28828. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28829. -$as_echo "$ac_try_echo") >&5
  28830. - (eval "$ac_compile") 2>conftest.er1
  28831. - ac_status=$?
  28832. - grep -v '^ *+' conftest.er1 >conftest.err
  28833. - rm -f conftest.er1
  28834. - cat conftest.err >&5
  28835. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28836. - (exit $ac_status); } && {
  28837. - test -z "$ac_c_werror_flag" ||
  28838. - test ! -s conftest.err
  28839. - } && test -s conftest.$ac_objext; then
  28840. - ac_lo=$ac_mid; break
  28841. -else
  28842. - $as_echo "$as_me: failed program was:" >&5
  28843. -sed 's/^/| /' conftest.$ac_ext >&5
  28844. - ac_hi=`expr '(' $ac_mid ')' - 1`
  28845. - if test $ac_mid -le $ac_hi; then
  28846. - ac_lo= ac_hi=
  28847. - break
  28848. - fi
  28849. - ac_mid=`expr 2 '*' $ac_mid`
  28850. -fi
  28851. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28852. - done
  28853. -else
  28854. - $as_echo "$as_me: failed program was:" >&5
  28855. -sed 's/^/| /' conftest.$ac_ext >&5
  28856. +# Reasons for testing:
  28857. +# crt_externs.h - Darwin specific
  28858. +#
  28859. +for ac_header in assert.h crt_externs.h
  28860. +do :
  28861. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28862. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  28863. +eval as_val=\$$as_ac_Header
  28864. + if test "x$as_val" = x""yes; then :
  28865. + cat >>confdefs.h <<_ACEOF
  28866. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28867. +_ACEOF
  28868. - ac_lo= ac_hi=
  28869. fi
  28870. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28871. -fi
  28872. +done
  28873. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28874. -# Binary search between lo and hi bounds.
  28875. -while test "x$ac_lo" != "x$ac_hi"; do
  28876. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28877. - cat >conftest.$ac_ext <<_ACEOF
  28878. -/* confdefs.h. */
  28879. -_ACEOF
  28880. -cat confdefs.h >>conftest.$ac_ext
  28881. -cat >>conftest.$ac_ext <<_ACEOF
  28882. -/* end confdefs.h. */
  28883. -$ac_includes_default
  28884. -int
  28885. -main ()
  28886. -{
  28887. -static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
  28888. -test_array [0] = 0
  28889. - ;
  28890. - return 0;
  28891. -}
  28892. -_ACEOF
  28893. -rm -f conftest.$ac_objext
  28894. -if { (ac_try="$ac_compile"
  28895. -case "(($ac_try" in
  28896. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28897. - *) ac_try_echo=$ac_try;;
  28898. -esac
  28899. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28900. -$as_echo "$ac_try_echo") >&5
  28901. - (eval "$ac_compile") 2>conftest.er1
  28902. - ac_status=$?
  28903. - grep -v '^ *+' conftest.er1 >conftest.err
  28904. - rm -f conftest.er1
  28905. - cat conftest.err >&5
  28906. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28907. - (exit $ac_status); } && {
  28908. - test -z "$ac_c_werror_flag" ||
  28909. - test ! -s conftest.err
  28910. - } && test -s conftest.$ac_objext; then
  28911. - ac_hi=$ac_mid
  28912. -else
  28913. - $as_echo "$as_me: failed program was:" >&5
  28914. -sed 's/^/| /' conftest.$ac_ext >&5
  28915. +# Reasons for testing:
  28916. +# DINFINITY - OSF specific
  28917. +# DQNAN - OSF specific
  28918. +# (DINFINITY and DQNAN are actually global variables, not functions)
  28919. +# chsize - an MS-DOS-ism, found in mingw
  28920. +# cexp, clog - not in various pre-c99 systems, and note that it's possible
  28921. +# for gcc to provide the "complex double" type but the system to not
  28922. +# have functions like cexp and clog
  28923. +# clog10 - not in mingw (though others like clog and csqrt are)
  28924. +# fesetround - available in C99, but not older systems
  28925. +# ftruncate - posix, but probably not older systems (current mingw
  28926. +# has it as an inline for chsize)
  28927. +# ioctl - not in mingw.
  28928. +# gmtime_r - recent posix, not on old systems
  28929. +# pipe - not in mingw
  28930. +# _pipe - specific to mingw, taking 3 args
  28931. +# readdir_r - recent posix, not on old systems
  28932. +# readdir64_r - not available on HP-UX 11.11
  28933. +# stat64 - SuS largefile stuff, not on old systems
  28934. +# sysconf - not on old systems
  28935. +# truncate - not in mingw
  28936. +# isblank - available as a GNU extension or in C99
  28937. +# _NSGetEnviron - Darwin specific
  28938. +#
  28939. +for ac_func in DINFINITY DQNAN cexp chsize clog clog10 ctermid fesetround ftime ftruncate fchown getcwd geteuid gettimeofday gmtime_r ioctl lstat mkdir mknod nice pipe _pipe readdir_r readdir64_r readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt stat64 strftime strptime symlink sync sysconf tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex truncate unsetenv isblank _NSGetEnviron strncasecmp
  28940. +do :
  28941. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28942. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  28943. +eval as_val=\$$as_ac_var
  28944. + if test "x$as_val" = x""yes; then :
  28945. + cat >>confdefs.h <<_ACEOF
  28946. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28947. +_ACEOF
  28948. +
  28949. +fi
  28950. +done
  28951. +
  28952. +
  28953. +# Reasons for testing:
  28954. +# netdb.h - not in mingw
  28955. +# sys/param.h - not in mingw
  28956. +# pthread.h - only available with pthreads. ACX_PTHREAD doesn't
  28957. +# check this specifically, we need it for the timespec test below.
  28958. +# sethostname - the function itself check because it's not in mingw,
  28959. +# the DECL is checked because Solaris 10 doens't have in any header
  28960. +# strncasecmp - on NetBSD 1.6 the symbol is available in libc but the
  28961. +# declaration cannot be found
  28962. +# unsetenv - on Tru64 5.1b the symbol is available in libc but the
  28963. +# declaration is only found if `_BSD' is defined; it's marked as
  28964. +# discouraged in <stdlib.h> and has type `void' instead of `int'
  28965. +# anyway.
  28966. +# hstrerror - on Tru64 5.1b the symbol is available in libc but the
  28967. +# declaration isn't anywhere.
  28968. +# cuserid - on Tru64 5.1b the declaration is documented to be available
  28969. +# only with `_XOPEN_SOURCE' or some such.
  28970. +# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
  28971. +# but only if `_BSD' is defined.
  28972. +# vsnprintf - on AIX 5.3, the declaration is only visible with
  28973. +# `_XOPEN_SOURCE >= 500' or `_ISOC99_SOURCE'.
  28974. +#
  28975. +for ac_header in crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h
  28976. +do :
  28977. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28978. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  28979. +eval as_val=\$$as_ac_Header
  28980. + if test "x$as_val" = x""yes; then :
  28981. + cat >>confdefs.h <<_ACEOF
  28982. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28983. +_ACEOF
  28984. - ac_lo=`expr '(' $ac_mid ')' + 1`
  28985. fi
  28986. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28987. done
  28988. -case $ac_lo in
  28989. -?*) ac_cv_sizeof___int64=$ac_lo;;
  28990. -'') if test "$ac_cv_type___int64" = yes; then
  28991. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28992. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28993. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  28994. -See \`config.log' for more details." >&5
  28995. -$as_echo "$as_me: error: cannot compute sizeof (__int64)
  28996. -See \`config.log' for more details." >&2;}
  28997. - { (exit 77); exit 77; }; }; }
  28998. - else
  28999. - ac_cv_sizeof___int64=0
  29000. - fi ;;
  29001. -esac
  29002. -else
  29003. - cat >conftest.$ac_ext <<_ACEOF
  29004. -/* confdefs.h. */
  29005. +
  29006. +for ac_func in chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname
  29007. +do :
  29008. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29009. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  29010. +eval as_val=\$$as_ac_var
  29011. + if test "x$as_val" = x""yes; then :
  29012. + cat >>confdefs.h <<_ACEOF
  29013. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29014. _ACEOF
  29015. -cat confdefs.h >>conftest.$ac_ext
  29016. -cat >>conftest.$ac_ext <<_ACEOF
  29017. -/* end confdefs.h. */
  29018. -$ac_includes_default
  29019. -static long int longval () { return (long int) (sizeof (__int64)); }
  29020. -static unsigned long int ulongval () { return (long int) (sizeof (__int64)); }
  29021. -#include <stdio.h>
  29022. -#include <stdlib.h>
  29023. -int
  29024. -main ()
  29025. -{
  29026. - FILE *f = fopen ("conftest.val", "w");
  29027. - if (! f)
  29028. - return 1;
  29029. - if (((long int) (sizeof (__int64))) < 0)
  29030. - {
  29031. - long int i = longval ();
  29032. - if (i != ((long int) (sizeof (__int64))))
  29033. - return 1;
  29034. - fprintf (f, "%ld", i);
  29035. - }
  29036. - else
  29037. - {
  29038. - unsigned long int i = ulongval ();
  29039. - if (i != ((long int) (sizeof (__int64))))
  29040. - return 1;
  29041. - fprintf (f, "%lu", i);
  29042. - }
  29043. - /* Do not output a trailing newline, as this causes \r\n confusion
  29044. - on some platforms. */
  29045. - return ferror (f) || fclose (f) != 0;
  29046. +fi
  29047. +done
  29048. - ;
  29049. - return 0;
  29050. -}
  29051. +ac_fn_c_check_decl "$LINENO" "sethostname" "ac_cv_have_decl_sethostname" "$ac_includes_default"
  29052. +if test "x$ac_cv_have_decl_sethostname" = x""yes; then :
  29053. + ac_have_decl=1
  29054. +else
  29055. + ac_have_decl=0
  29056. +fi
  29057. +
  29058. +cat >>confdefs.h <<_ACEOF
  29059. +#define HAVE_DECL_SETHOSTNAME $ac_have_decl
  29060. _ACEOF
  29061. -rm -f conftest$ac_exeext
  29062. -if { (ac_try="$ac_link"
  29063. -case "(($ac_try" in
  29064. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29065. - *) ac_try_echo=$ac_try;;
  29066. -esac
  29067. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29068. -$as_echo "$ac_try_echo") >&5
  29069. - (eval "$ac_link") 2>&5
  29070. - ac_status=$?
  29071. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29072. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29073. - { (case "(($ac_try" in
  29074. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29075. - *) ac_try_echo=$ac_try;;
  29076. -esac
  29077. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29078. -$as_echo "$ac_try_echo") >&5
  29079. - (eval "$ac_try") 2>&5
  29080. - ac_status=$?
  29081. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29082. - (exit $ac_status); }; }; then
  29083. - ac_cv_sizeof___int64=`cat conftest.val`
  29084. +ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
  29085. +if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
  29086. + ac_have_decl=1
  29087. else
  29088. - $as_echo "$as_me: program exited with status $ac_status" >&5
  29089. -$as_echo "$as_me: failed program was:" >&5
  29090. -sed 's/^/| /' conftest.$ac_ext >&5
  29091. + ac_have_decl=0
  29092. +fi
  29093. -( exit $ac_status )
  29094. -if test "$ac_cv_type___int64" = yes; then
  29095. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  29096. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29097. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  29098. -See \`config.log' for more details." >&5
  29099. -$as_echo "$as_me: error: cannot compute sizeof (__int64)
  29100. -See \`config.log' for more details." >&2;}
  29101. - { (exit 77); exit 77; }; }; }
  29102. - else
  29103. - ac_cv_sizeof___int64=0
  29104. - fi
  29105. +cat >>confdefs.h <<_ACEOF
  29106. +#define HAVE_DECL_STRNCASECMP $ac_have_decl
  29107. +_ACEOF
  29108. +ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
  29109. +if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
  29110. + ac_have_decl=1
  29111. +else
  29112. + ac_have_decl=0
  29113. fi
  29114. -rm -rf conftest.dSYM
  29115. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29116. +
  29117. +cat >>confdefs.h <<_ACEOF
  29118. +#define HAVE_DECL_UNSETENV $ac_have_decl
  29119. +_ACEOF
  29120. +ac_fn_c_check_decl "$LINENO" "hstrerror" "ac_cv_have_decl_hstrerror" "$ac_includes_default"
  29121. +if test "x$ac_cv_have_decl_hstrerror" = x""yes; then :
  29122. + ac_have_decl=1
  29123. +else
  29124. + ac_have_decl=0
  29125. fi
  29126. -rm -f conftest.val
  29127. +
  29128. +cat >>confdefs.h <<_ACEOF
  29129. +#define HAVE_DECL_HSTRERROR $ac_have_decl
  29130. +_ACEOF
  29131. +ac_fn_c_check_decl "$LINENO" "cuserid" "ac_cv_have_decl_cuserid" "$ac_includes_default"
  29132. +if test "x$ac_cv_have_decl_cuserid" = x""yes; then :
  29133. + ac_have_decl=1
  29134. +else
  29135. + ac_have_decl=0
  29136. fi
  29137. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
  29138. -$as_echo "$ac_cv_sizeof___int64" >&6; }
  29139. +cat >>confdefs.h <<_ACEOF
  29140. +#define HAVE_DECL_CUSERID $ac_have_decl
  29141. +_ACEOF
  29142. +ac_fn_c_check_decl "$LINENO" "flock" "ac_cv_have_decl_flock" "$ac_includes_default"
  29143. +if test "x$ac_cv_have_decl_flock" = x""yes; then :
  29144. + ac_have_decl=1
  29145. +else
  29146. + ac_have_decl=0
  29147. +fi
  29148. +cat >>confdefs.h <<_ACEOF
  29149. +#define HAVE_DECL_FLOCK $ac_have_decl
  29150. +_ACEOF
  29151. +ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  29152. +if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  29153. + ac_have_decl=1
  29154. +else
  29155. + ac_have_decl=0
  29156. +fi
  29157. cat >>confdefs.h <<_ACEOF
  29158. -#define SIZEOF___INT64 $ac_cv_sizeof___int64
  29159. +#define HAVE_DECL_VSNPRINTF $ac_have_decl
  29160. _ACEOF
  29161. -# The cast to long int works around a bug in the HP C Compiler
  29162. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29163. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29164. -# This bug is HP SR number 8606223364.
  29165. -{ $as_echo "$as_me:$LINENO: checking size of unsigned __int64" >&5
  29166. -$as_echo_n "checking size of unsigned __int64... " >&6; }
  29167. -if test "${ac_cv_sizeof_unsigned___int64+set}" = set; then
  29168. +# crypt() may or may not be available, for instance in some countries there
  29169. +# are restrictions on cryptography.
  29170. +#
  29171. +# crypt() might be in libc (eg. OpenBSD), or it might be in a separate
  29172. +# -lcrypt library (eg. Debian GNU/Linux).
  29173. +#
  29174. +# On HP-UX 11, crypt() is in libc and there's a dummy libcrypt.a. We must
  29175. +# be careful to avoid -lcrypt in this case, since libtool will see there's
  29176. +# only a static libcrypt and decide to build only a static libguile.
  29177. +#
  29178. +# AC_SEARCH_LIBS lets us add -lcrypt to LIBS only if crypt() is not in the
  29179. +# libraries already in that list.
  29180. +#
  29181. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  29182. +$as_echo_n "checking for library containing crypt... " >&6; }
  29183. +if test "${ac_cv_search_crypt+set}" = set; then :
  29184. $as_echo_n "(cached) " >&6
  29185. else
  29186. - if test "$cross_compiling" = yes; then
  29187. - # Depending upon the size, compute the lo and hi bounds.
  29188. -cat >conftest.$ac_ext <<_ACEOF
  29189. -/* confdefs.h. */
  29190. -_ACEOF
  29191. -cat confdefs.h >>conftest.$ac_ext
  29192. -cat >>conftest.$ac_ext <<_ACEOF
  29193. + ac_func_search_save_LIBS=$LIBS
  29194. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29195. /* end confdefs.h. */
  29196. -$ac_includes_default
  29197. +
  29198. +/* Override any GCC internal prototype to avoid an error.
  29199. + Use char because int might match the return type of a GCC
  29200. + builtin and then its argument prototype would still apply. */
  29201. +#ifdef __cplusplus
  29202. +extern "C"
  29203. +#endif
  29204. +char crypt ();
  29205. int
  29206. main ()
  29207. {
  29208. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) >= 0)];
  29209. -test_array [0] = 0
  29210. -
  29211. +return crypt ();
  29212. ;
  29213. return 0;
  29214. }
  29215. _ACEOF
  29216. -rm -f conftest.$ac_objext
  29217. -if { (ac_try="$ac_compile"
  29218. -case "(($ac_try" in
  29219. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29220. - *) ac_try_echo=$ac_try;;
  29221. -esac
  29222. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29223. -$as_echo "$ac_try_echo") >&5
  29224. - (eval "$ac_compile") 2>conftest.er1
  29225. - ac_status=$?
  29226. - grep -v '^ *+' conftest.er1 >conftest.err
  29227. - rm -f conftest.er1
  29228. - cat conftest.err >&5
  29229. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29230. - (exit $ac_status); } && {
  29231. - test -z "$ac_c_werror_flag" ||
  29232. - test ! -s conftest.err
  29233. - } && test -s conftest.$ac_objext; then
  29234. - ac_lo=0 ac_mid=0
  29235. - while :; do
  29236. - cat >conftest.$ac_ext <<_ACEOF
  29237. -/* confdefs.h. */
  29238. -_ACEOF
  29239. -cat confdefs.h >>conftest.$ac_ext
  29240. -cat >>conftest.$ac_ext <<_ACEOF
  29241. +for ac_lib in '' crypt; do
  29242. + if test -z "$ac_lib"; then
  29243. + ac_res="none required"
  29244. + else
  29245. + ac_res=-l$ac_lib
  29246. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  29247. + fi
  29248. + if ac_fn_c_try_link "$LINENO"; then :
  29249. + ac_cv_search_crypt=$ac_res
  29250. +fi
  29251. +rm -f core conftest.err conftest.$ac_objext \
  29252. + conftest$ac_exeext
  29253. + if test "${ac_cv_search_crypt+set}" = set; then :
  29254. + break
  29255. +fi
  29256. +done
  29257. +if test "${ac_cv_search_crypt+set}" = set; then :
  29258. +
  29259. +else
  29260. + ac_cv_search_crypt=no
  29261. +fi
  29262. +rm conftest.$ac_ext
  29263. +LIBS=$ac_func_search_save_LIBS
  29264. +fi
  29265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  29266. +$as_echo "$ac_cv_search_crypt" >&6; }
  29267. +ac_res=$ac_cv_search_crypt
  29268. +if test "$ac_res" != no; then :
  29269. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  29270. +
  29271. +$as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  29272. +
  29273. +fi
  29274. +
  29275. +
  29276. +# When compiling with GCC on some OSs (Solaris, AIX), _Complex_I doesn't
  29277. +# work; in the reported cases so far, 1.0fi works well instead. According
  29278. +# to the C99 spec, the complex.h header must provide a working definition
  29279. +# of _Complex_I, so we always try _Complex_I first. The 1.0fi fallback
  29280. +# is a workaround for the failure of some systems to conform to C99.
  29281. +if test "$ac_cv_type_complex_double" = yes; then
  29282. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i" >&5
  29283. +$as_echo_n "checking for i... " >&6; }
  29284. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29285. /* end confdefs.h. */
  29286. -$ac_includes_default
  29287. +
  29288. +#if HAVE_COMPLEX_H
  29289. +#include <complex.h>
  29290. +#endif
  29291. +complex double z;
  29292. +
  29293. int
  29294. main ()
  29295. {
  29296. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) <= $ac_mid)];
  29297. -test_array [0] = 0
  29298. +
  29299. +z = _Complex_I;
  29300. ;
  29301. return 0;
  29302. }
  29303. _ACEOF
  29304. -rm -f conftest.$ac_objext
  29305. -if { (ac_try="$ac_compile"
  29306. -case "(($ac_try" in
  29307. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29308. - *) ac_try_echo=$ac_try;;
  29309. -esac
  29310. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29311. -$as_echo "$ac_try_echo") >&5
  29312. - (eval "$ac_compile") 2>conftest.er1
  29313. - ac_status=$?
  29314. - grep -v '^ *+' conftest.er1 >conftest.err
  29315. - rm -f conftest.er1
  29316. - cat conftest.err >&5
  29317. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29318. - (exit $ac_status); } && {
  29319. - test -z "$ac_c_werror_flag" ||
  29320. - test ! -s conftest.err
  29321. - } && test -s conftest.$ac_objext; then
  29322. - ac_hi=$ac_mid; break
  29323. -else
  29324. - $as_echo "$as_me: failed program was:" >&5
  29325. -sed 's/^/| /' conftest.$ac_ext >&5
  29326. +if ac_fn_c_try_compile "$LINENO"; then :
  29327. - ac_lo=`expr $ac_mid + 1`
  29328. - if test $ac_lo -le $ac_mid; then
  29329. - ac_lo= ac_hi=
  29330. - break
  29331. - fi
  29332. - ac_mid=`expr 2 '*' $ac_mid + 1`
  29333. -fi
  29334. +$as_echo "#define GUILE_I _Complex_I" >>confdefs.h
  29335. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29336. - done
  29337. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: _Complex_I" >&5
  29338. +$as_echo "_Complex_I" >&6; }
  29339. else
  29340. - $as_echo "$as_me: failed program was:" >&5
  29341. -sed 's/^/| /' conftest.$ac_ext >&5
  29342. -
  29343. - cat >conftest.$ac_ext <<_ACEOF
  29344. -/* confdefs.h. */
  29345. -_ACEOF
  29346. -cat confdefs.h >>conftest.$ac_ext
  29347. -cat >>conftest.$ac_ext <<_ACEOF
  29348. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29349. /* end confdefs.h. */
  29350. -$ac_includes_default
  29351. -int
  29352. -main ()
  29353. -{
  29354. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) < 0)];
  29355. -test_array [0] = 0
  29356. - ;
  29357. - return 0;
  29358. -}
  29359. -_ACEOF
  29360. -rm -f conftest.$ac_objext
  29361. -if { (ac_try="$ac_compile"
  29362. -case "(($ac_try" in
  29363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29364. - *) ac_try_echo=$ac_try;;
  29365. -esac
  29366. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29367. -$as_echo "$ac_try_echo") >&5
  29368. - (eval "$ac_compile") 2>conftest.er1
  29369. - ac_status=$?
  29370. - grep -v '^ *+' conftest.er1 >conftest.err
  29371. - rm -f conftest.er1
  29372. - cat conftest.err >&5
  29373. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29374. - (exit $ac_status); } && {
  29375. - test -z "$ac_c_werror_flag" ||
  29376. - test ! -s conftest.err
  29377. - } && test -s conftest.$ac_objext; then
  29378. - ac_hi=-1 ac_mid=-1
  29379. - while :; do
  29380. - cat >conftest.$ac_ext <<_ACEOF
  29381. -/* confdefs.h. */
  29382. -_ACEOF
  29383. -cat confdefs.h >>conftest.$ac_ext
  29384. -cat >>conftest.$ac_ext <<_ACEOF
  29385. -/* end confdefs.h. */
  29386. -$ac_includes_default
  29387. +#if HAVE_COMPLEX_H
  29388. +#include <complex.h>
  29389. +#endif
  29390. +complex double z;
  29391. +
  29392. int
  29393. main ()
  29394. {
  29395. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) >= $ac_mid)];
  29396. -test_array [0] = 0
  29397. +
  29398. +z = 1.0fi;
  29399. ;
  29400. return 0;
  29401. }
  29402. _ACEOF
  29403. -rm -f conftest.$ac_objext
  29404. -if { (ac_try="$ac_compile"
  29405. -case "(($ac_try" in
  29406. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29407. - *) ac_try_echo=$ac_try;;
  29408. -esac
  29409. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29410. -$as_echo "$ac_try_echo") >&5
  29411. - (eval "$ac_compile") 2>conftest.er1
  29412. - ac_status=$?
  29413. - grep -v '^ *+' conftest.er1 >conftest.err
  29414. - rm -f conftest.er1
  29415. - cat conftest.err >&5
  29416. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29417. - (exit $ac_status); } && {
  29418. - test -z "$ac_c_werror_flag" ||
  29419. - test ! -s conftest.err
  29420. - } && test -s conftest.$ac_objext; then
  29421. - ac_lo=$ac_mid; break
  29422. -else
  29423. - $as_echo "$as_me: failed program was:" >&5
  29424. -sed 's/^/| /' conftest.$ac_ext >&5
  29425. -
  29426. - ac_hi=`expr '(' $ac_mid ')' - 1`
  29427. - if test $ac_mid -le $ac_hi; then
  29428. - ac_lo= ac_hi=
  29429. - break
  29430. - fi
  29431. - ac_mid=`expr 2 '*' $ac_mid`
  29432. -fi
  29433. +if ac_fn_c_try_compile "$LINENO"; then :
  29434. + $as_echo "#define GUILE_I 1.0fi" >>confdefs.h
  29435. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29436. - done
  29437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.0fi" >&5
  29438. +$as_echo "1.0fi" >&6; }
  29439. else
  29440. - $as_echo "$as_me: failed program was:" >&5
  29441. -sed 's/^/| /' conftest.$ac_ext >&5
  29442. -
  29443. - ac_lo= ac_hi=
  29444. + ac_cv_type_complex_double=no
  29445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
  29446. +$as_echo "not available" >&6; }
  29447. fi
  29448. -
  29449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29450. fi
  29451. -
  29452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29453. -# Binary search between lo and hi bounds.
  29454. -while test "x$ac_lo" != "x$ac_hi"; do
  29455. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29456. - cat >conftest.$ac_ext <<_ACEOF
  29457. -/* confdefs.h. */
  29458. -_ACEOF
  29459. -cat confdefs.h >>conftest.$ac_ext
  29460. -cat >>conftest.$ac_ext <<_ACEOF
  29461. -/* end confdefs.h. */
  29462. -$ac_includes_default
  29463. -int
  29464. -main ()
  29465. -{
  29466. -static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) <= $ac_mid)];
  29467. -test_array [0] = 0
  29468. -
  29469. - ;
  29470. - return 0;
  29471. -}
  29472. -_ACEOF
  29473. -rm -f conftest.$ac_objext
  29474. -if { (ac_try="$ac_compile"
  29475. -case "(($ac_try" in
  29476. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29477. - *) ac_try_echo=$ac_try;;
  29478. -esac
  29479. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29480. -$as_echo "$ac_try_echo") >&5
  29481. - (eval "$ac_compile") 2>conftest.er1
  29482. - ac_status=$?
  29483. - grep -v '^ *+' conftest.er1 >conftest.err
  29484. - rm -f conftest.er1
  29485. - cat conftest.err >&5
  29486. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29487. - (exit $ac_status); } && {
  29488. - test -z "$ac_c_werror_flag" ||
  29489. - test ! -s conftest.err
  29490. - } && test -s conftest.$ac_objext; then
  29491. - ac_hi=$ac_mid
  29492. -else
  29493. - $as_echo "$as_me: failed program was:" >&5
  29494. -sed 's/^/| /' conftest.$ac_ext >&5
  29495. -
  29496. - ac_lo=`expr '(' $ac_mid ')' + 1`
  29497. fi
  29498. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29499. -done
  29500. -case $ac_lo in
  29501. -?*) ac_cv_sizeof_unsigned___int64=$ac_lo;;
  29502. -'') if test "$ac_cv_type_unsigned___int64" = yes; then
  29503. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  29504. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29505. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64)
  29506. -See \`config.log' for more details." >&5
  29507. -$as_echo "$as_me: error: cannot compute sizeof (unsigned __int64)
  29508. -See \`config.log' for more details." >&2;}
  29509. - { (exit 77); exit 77; }; }; }
  29510. - else
  29511. - ac_cv_sizeof_unsigned___int64=0
  29512. - fi ;;
  29513. -esac
  29514. +# glibc 2.3.6 (circa 2006) and various prior versions had a bug where
  29515. +# csqrt(-i) returned a negative real part, when it should be positive
  29516. +# for the principal root.
  29517. +#
  29518. +if test "$ac_cv_type_complex_double" = yes; then
  29519. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether csqrt is usable" >&5
  29520. +$as_echo_n "checking whether csqrt is usable... " >&6; }
  29521. +if test "${guile_cv_use_csqrt+set}" = set; then :
  29522. + $as_echo_n "(cached) " >&6
  29523. else
  29524. - cat >conftest.$ac_ext <<_ACEOF
  29525. -/* confdefs.h. */
  29526. -_ACEOF
  29527. -cat confdefs.h >>conftest.$ac_ext
  29528. -cat >>conftest.$ac_ext <<_ACEOF
  29529. + if test "$cross_compiling" = yes; then :
  29530. + guile_cv_use_csqrt="yes, hopefully (cross-compiling)"
  29531. +else
  29532. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29533. /* end confdefs.h. */
  29534. -$ac_includes_default
  29535. -static long int longval () { return (long int) (sizeof (unsigned __int64)); }
  29536. -static unsigned long int ulongval () { return (long int) (sizeof (unsigned __int64)); }
  29537. -#include <stdio.h>
  29538. -#include <stdlib.h>
  29539. +
  29540. +#include <complex.h>
  29541. +/* "volatile" is meant to prevent gcc from calculating the sqrt as a
  29542. + constant, we want to test libc. */
  29543. +volatile complex double z = - _Complex_I;
  29544. int
  29545. -main ()
  29546. +main (void)
  29547. {
  29548. -
  29549. - FILE *f = fopen ("conftest.val", "w");
  29550. - if (! f)
  29551. - return 1;
  29552. - if (((long int) (sizeof (unsigned __int64))) < 0)
  29553. - {
  29554. - long int i = longval ();
  29555. - if (i != ((long int) (sizeof (unsigned __int64))))
  29556. - return 1;
  29557. - fprintf (f, "%ld", i);
  29558. - }
  29559. + z = csqrt (z);
  29560. + if (creal (z) > 0.0)
  29561. + return 0; /* good */
  29562. else
  29563. - {
  29564. - unsigned long int i = ulongval ();
  29565. - if (i != ((long int) (sizeof (unsigned __int64))))
  29566. - return 1;
  29567. - fprintf (f, "%lu", i);
  29568. - }
  29569. - /* Do not output a trailing newline, as this causes \r\n confusion
  29570. - on some platforms. */
  29571. - return ferror (f) || fclose (f) != 0;
  29572. -
  29573. - ;
  29574. - return 0;
  29575. + return 1; /* bad */
  29576. }
  29577. _ACEOF
  29578. -rm -f conftest$ac_exeext
  29579. -if { (ac_try="$ac_link"
  29580. -case "(($ac_try" in
  29581. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29582. - *) ac_try_echo=$ac_try;;
  29583. -esac
  29584. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29585. -$as_echo "$ac_try_echo") >&5
  29586. - (eval "$ac_link") 2>&5
  29587. - ac_status=$?
  29588. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29589. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29590. - { (case "(($ac_try" in
  29591. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29592. - *) ac_try_echo=$ac_try;;
  29593. -esac
  29594. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29595. -$as_echo "$ac_try_echo") >&5
  29596. - (eval "$ac_try") 2>&5
  29597. - ac_status=$?
  29598. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29599. - (exit $ac_status); }; }; then
  29600. - ac_cv_sizeof_unsigned___int64=`cat conftest.val`
  29601. +if ac_fn_c_try_run "$LINENO"; then :
  29602. + guile_cv_use_csqrt=yes
  29603. else
  29604. - $as_echo "$as_me: program exited with status $ac_status" >&5
  29605. -$as_echo "$as_me: failed program was:" >&5
  29606. -sed 's/^/| /' conftest.$ac_ext >&5
  29607. -
  29608. -( exit $ac_status )
  29609. -if test "$ac_cv_type_unsigned___int64" = yes; then
  29610. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  29611. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29612. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64)
  29613. -See \`config.log' for more details." >&5
  29614. -$as_echo "$as_me: error: cannot compute sizeof (unsigned __int64)
  29615. -See \`config.log' for more details." >&2;}
  29616. - { (exit 77); exit 77; }; }; }
  29617. - else
  29618. - ac_cv_sizeof_unsigned___int64=0
  29619. - fi
  29620. -fi
  29621. -rm -rf conftest.dSYM
  29622. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29623. + guile_cv_use_csqrt="no, glibc 2.3 bug"
  29624. fi
  29625. -rm -f conftest.val
  29626. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29627. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  29628. fi
  29629. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int64" >&5
  29630. -$as_echo "$ac_cv_sizeof_unsigned___int64" >&6; }
  29631. +fi
  29632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_use_csqrt" >&5
  29633. +$as_echo "$guile_cv_use_csqrt" >&6; }
  29634. + case $guile_cv_use_csqrt in
  29635. + yes*)
  29636. +$as_echo "#define HAVE_USABLE_CSQRT 1" >>confdefs.h
  29637. -cat >>confdefs.h <<_ACEOF
  29638. -#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64
  29639. -_ACEOF
  29640. + ;;
  29641. + esac
  29642. +fi
  29643. -# The cast to long int works around a bug in the HP C Compiler
  29644. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29645. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29646. -# This bug is HP SR number 8606223364.
  29647. -{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
  29648. -$as_echo_n "checking size of void *... " >&6; }
  29649. -if test "${ac_cv_sizeof_void_p+set}" = set; then
  29650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
  29651. +$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
  29652. +if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
  29653. $as_echo_n "(cached) " >&6
  29654. else
  29655. - if test "$cross_compiling" = yes; then
  29656. - # Depending upon the size, compute the lo and hi bounds.
  29657. -cat >conftest.$ac_ext <<_ACEOF
  29658. -/* confdefs.h. */
  29659. -_ACEOF
  29660. -cat confdefs.h >>conftest.$ac_ext
  29661. -cat >>conftest.$ac_ext <<_ACEOF
  29662. + ac_check_lib_save_LIBS=$LIBS
  29663. +LIBS="-lgmp $LIBS"
  29664. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29665. /* end confdefs.h. */
  29666. -$ac_includes_default
  29667. +
  29668. +/* Override any GCC internal prototype to avoid an error.
  29669. + Use char because int might match the return type of a GCC
  29670. + builtin and then its argument prototype would still apply. */
  29671. +#ifdef __cplusplus
  29672. +extern "C"
  29673. +#endif
  29674. +char __gmpz_init ();
  29675. int
  29676. main ()
  29677. {
  29678. -static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  29679. -test_array [0] = 0
  29680. -
  29681. +return __gmpz_init ();
  29682. ;
  29683. return 0;
  29684. }
  29685. _ACEOF
  29686. -rm -f conftest.$ac_objext
  29687. -if { (ac_try="$ac_compile"
  29688. -case "(($ac_try" in
  29689. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29690. - *) ac_try_echo=$ac_try;;
  29691. -esac
  29692. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29693. -$as_echo "$ac_try_echo") >&5
  29694. - (eval "$ac_compile") 2>conftest.er1
  29695. - ac_status=$?
  29696. - grep -v '^ *+' conftest.er1 >conftest.err
  29697. - rm -f conftest.er1
  29698. - cat conftest.err >&5
  29699. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29700. - (exit $ac_status); } && {
  29701. - test -z "$ac_c_werror_flag" ||
  29702. - test ! -s conftest.err
  29703. - } && test -s conftest.$ac_objext; then
  29704. - ac_lo=0 ac_mid=0
  29705. - while :; do
  29706. - cat >conftest.$ac_ext <<_ACEOF
  29707. -/* confdefs.h. */
  29708. +if ac_fn_c_try_link "$LINENO"; then :
  29709. + ac_cv_lib_gmp___gmpz_init=yes
  29710. +else
  29711. + ac_cv_lib_gmp___gmpz_init=no
  29712. +fi
  29713. +rm -f core conftest.err conftest.$ac_objext \
  29714. + conftest$ac_exeext conftest.$ac_ext
  29715. +LIBS=$ac_check_lib_save_LIBS
  29716. +fi
  29717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
  29718. +$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
  29719. +if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
  29720. + cat >>confdefs.h <<_ACEOF
  29721. +#define HAVE_LIBGMP 1
  29722. _ACEOF
  29723. -cat confdefs.h >>conftest.$ac_ext
  29724. -cat >>conftest.$ac_ext <<_ACEOF
  29725. +
  29726. + LIBS="-lgmp $LIBS"
  29727. +
  29728. +else
  29729. + as_fn_error "GNU MP not found, see README" "$LINENO" 5
  29730. +fi
  29731. +
  29732. +
  29733. +# mpz_import is a macro so we need to include <gmp.h>
  29734. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29735. /* end confdefs.h. */
  29736. -$ac_includes_default
  29737. +#include <gmp.h>
  29738. int
  29739. main ()
  29740. {
  29741. -static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  29742. -test_array [0] = 0
  29743. -
  29744. +mpz_import (0, 0, 0, 0, 0, 0, 0);
  29745. ;
  29746. return 0;
  29747. }
  29748. _ACEOF
  29749. -rm -f conftest.$ac_objext
  29750. -if { (ac_try="$ac_compile"
  29751. -case "(($ac_try" in
  29752. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29753. - *) ac_try_echo=$ac_try;;
  29754. -esac
  29755. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29756. -$as_echo "$ac_try_echo") >&5
  29757. - (eval "$ac_compile") 2>conftest.er1
  29758. - ac_status=$?
  29759. - grep -v '^ *+' conftest.er1 >conftest.err
  29760. - rm -f conftest.er1
  29761. - cat conftest.err >&5
  29762. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29763. - (exit $ac_status); } && {
  29764. - test -z "$ac_c_werror_flag" ||
  29765. - test ! -s conftest.err
  29766. - } && test -s conftest.$ac_objext; then
  29767. - ac_hi=$ac_mid; break
  29768. -else
  29769. - $as_echo "$as_me: failed program was:" >&5
  29770. -sed 's/^/| /' conftest.$ac_ext >&5
  29771. -
  29772. - ac_lo=`expr $ac_mid + 1`
  29773. - if test $ac_lo -le $ac_mid; then
  29774. - ac_lo= ac_hi=
  29775. - break
  29776. - fi
  29777. - ac_mid=`expr 2 '*' $ac_mid + 1`
  29778. -fi
  29779. +if ac_fn_c_try_link "$LINENO"; then :
  29780. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29781. - done
  29782. else
  29783. - $as_echo "$as_me: failed program was:" >&5
  29784. -sed 's/^/| /' conftest.$ac_ext >&5
  29785. + as_fn_error "At least GNU MP 4.1 is required, see README" "$LINENO" 5
  29786. +fi
  29787. +rm -f core conftest.err conftest.$ac_objext \
  29788. + conftest$ac_exeext conftest.$ac_ext
  29789. - cat >conftest.$ac_ext <<_ACEOF
  29790. -/* confdefs.h. */
  29791. -_ACEOF
  29792. -cat confdefs.h >>conftest.$ac_ext
  29793. -cat >>conftest.$ac_ext <<_ACEOF
  29794. -/* end confdefs.h. */
  29795. -$ac_includes_default
  29796. -int
  29797. -main ()
  29798. -{
  29799. -static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  29800. -test_array [0] = 0
  29801. -
  29802. - ;
  29803. - return 0;
  29804. -}
  29805. -_ACEOF
  29806. -rm -f conftest.$ac_objext
  29807. -if { (ac_try="$ac_compile"
  29808. -case "(($ac_try" in
  29809. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29810. - *) ac_try_echo=$ac_try;;
  29811. -esac
  29812. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29813. -$as_echo "$ac_try_echo") >&5
  29814. - (eval "$ac_compile") 2>conftest.er1
  29815. - ac_status=$?
  29816. - grep -v '^ *+' conftest.er1 >conftest.err
  29817. - rm -f conftest.er1
  29818. - cat conftest.err >&5
  29819. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29820. - (exit $ac_status); } && {
  29821. - test -z "$ac_c_werror_flag" ||
  29822. - test ! -s conftest.err
  29823. - } && test -s conftest.$ac_objext; then
  29824. - ac_hi=-1 ac_mid=-1
  29825. - while :; do
  29826. - cat >conftest.$ac_ext <<_ACEOF
  29827. -/* confdefs.h. */
  29828. -_ACEOF
  29829. -cat confdefs.h >>conftest.$ac_ext
  29830. -cat >>conftest.$ac_ext <<_ACEOF
  29831. -/* end confdefs.h. */
  29832. -$ac_includes_default
  29833. -int
  29834. -main ()
  29835. -{
  29836. -static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  29837. -test_array [0] = 0
  29838. +#AC_CHECK_HEADERS([libintl.h])
  29839. +#AC_CHECK_FUNCS(gettext)
  29840. +#if test $ac_cv_func_gettext = no; then
  29841. +# AC_CHECK_LIB(intl, gettext)
  29842. +#fi
  29843. +#AC_CHECK_FUNCS([bindtextdomain textdomain])
  29844. - ;
  29845. - return 0;
  29846. -}
  29847. -_ACEOF
  29848. -rm -f conftest.$ac_objext
  29849. -if { (ac_try="$ac_compile"
  29850. -case "(($ac_try" in
  29851. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29852. - *) ac_try_echo=$ac_try;;
  29853. -esac
  29854. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29855. -$as_echo "$ac_try_echo") >&5
  29856. - (eval "$ac_compile") 2>conftest.er1
  29857. - ac_status=$?
  29858. - grep -v '^ *+' conftest.er1 >conftest.err
  29859. - rm -f conftest.er1
  29860. - cat conftest.err >&5
  29861. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29862. - (exit $ac_status); } && {
  29863. - test -z "$ac_c_werror_flag" ||
  29864. - test ! -s conftest.err
  29865. - } && test -s conftest.$ac_objext; then
  29866. - ac_lo=$ac_mid; break
  29867. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  29868. +$as_echo_n "checking whether NLS is requested... " >&6; }
  29869. + # Check whether --enable-nls was given.
  29870. +if test "${enable_nls+set}" = set; then :
  29871. + enableval=$enable_nls; USE_NLS=$enableval
  29872. else
  29873. - $as_echo "$as_me: failed program was:" >&5
  29874. -sed 's/^/| /' conftest.$ac_ext >&5
  29875. -
  29876. - ac_hi=`expr '(' $ac_mid ')' - 1`
  29877. - if test $ac_mid -le $ac_hi; then
  29878. - ac_lo= ac_hi=
  29879. - break
  29880. - fi
  29881. - ac_mid=`expr 2 '*' $ac_mid`
  29882. + USE_NLS=yes
  29883. fi
  29884. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29885. - done
  29886. -else
  29887. - $as_echo "$as_me: failed program was:" >&5
  29888. -sed 's/^/| /' conftest.$ac_ext >&5
  29889. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  29890. +$as_echo "$USE_NLS" >&6; }
  29891. - ac_lo= ac_hi=
  29892. -fi
  29893. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29894. -fi
  29895. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29896. -# Binary search between lo and hi bounds.
  29897. -while test "x$ac_lo" != "x$ac_hi"; do
  29898. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29899. - cat >conftest.$ac_ext <<_ACEOF
  29900. -/* confdefs.h. */
  29901. -_ACEOF
  29902. -cat confdefs.h >>conftest.$ac_ext
  29903. -cat >>conftest.$ac_ext <<_ACEOF
  29904. -/* end confdefs.h. */
  29905. -$ac_includes_default
  29906. -int
  29907. -main ()
  29908. -{
  29909. -static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  29910. -test_array [0] = 0
  29911. - ;
  29912. - return 0;
  29913. -}
  29914. -_ACEOF
  29915. -rm -f conftest.$ac_objext
  29916. -if { (ac_try="$ac_compile"
  29917. -case "(($ac_try" in
  29918. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29919. - *) ac_try_echo=$ac_try;;
  29920. -esac
  29921. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29922. -$as_echo "$ac_try_echo") >&5
  29923. - (eval "$ac_compile") 2>conftest.er1
  29924. - ac_status=$?
  29925. - grep -v '^ *+' conftest.er1 >conftest.err
  29926. - rm -f conftest.er1
  29927. - cat conftest.err >&5
  29928. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29929. - (exit $ac_status); } && {
  29930. - test -z "$ac_c_werror_flag" ||
  29931. - test ! -s conftest.err
  29932. - } && test -s conftest.$ac_objext; then
  29933. - ac_hi=$ac_mid
  29934. -else
  29935. - $as_echo "$as_me: failed program was:" >&5
  29936. -sed 's/^/| /' conftest.$ac_ext >&5
  29937. + GETTEXT_MACRO_VERSION=0.17
  29938. - ac_lo=`expr '(' $ac_mid ')' + 1`
  29939. -fi
  29940. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29941. -done
  29942. -case $ac_lo in
  29943. -?*) ac_cv_sizeof_void_p=$ac_lo;;
  29944. -'') if test "$ac_cv_type_void_p" = yes; then
  29945. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  29946. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29947. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  29948. -See \`config.log' for more details." >&5
  29949. -$as_echo "$as_me: error: cannot compute sizeof (void *)
  29950. -See \`config.log' for more details." >&2;}
  29951. - { (exit 77); exit 77; }; }; }
  29952. - else
  29953. - ac_cv_sizeof_void_p=0
  29954. - fi ;;
  29955. -esac
  29956. -else
  29957. - cat >conftest.$ac_ext <<_ACEOF
  29958. -/* confdefs.h. */
  29959. -_ACEOF
  29960. -cat confdefs.h >>conftest.$ac_ext
  29961. -cat >>conftest.$ac_ext <<_ACEOF
  29962. -/* end confdefs.h. */
  29963. -$ac_includes_default
  29964. -static long int longval () { return (long int) (sizeof (void *)); }
  29965. -static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  29966. -#include <stdio.h>
  29967. -#include <stdlib.h>
  29968. -int
  29969. -main ()
  29970. -{
  29971. - FILE *f = fopen ("conftest.val", "w");
  29972. - if (! f)
  29973. - return 1;
  29974. - if (((long int) (sizeof (void *))) < 0)
  29975. - {
  29976. - long int i = longval ();
  29977. - if (i != ((long int) (sizeof (void *))))
  29978. - return 1;
  29979. - fprintf (f, "%ld", i);
  29980. - }
  29981. +
  29982. +# Prepare PATH_SEPARATOR.
  29983. +# The user is always right.
  29984. +if test "${PATH_SEPARATOR+set}" != set; then
  29985. + echo "#! /bin/sh" >conf$$.sh
  29986. + echo "exit 0" >>conf$$.sh
  29987. + chmod +x conf$$.sh
  29988. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  29989. + PATH_SEPARATOR=';'
  29990. else
  29991. - {
  29992. - unsigned long int i = ulongval ();
  29993. - if (i != ((long int) (sizeof (void *))))
  29994. - return 1;
  29995. - fprintf (f, "%lu", i);
  29996. - }
  29997. - /* Do not output a trailing newline, as this causes \r\n confusion
  29998. - on some platforms. */
  29999. - return ferror (f) || fclose (f) != 0;
  30000. + PATH_SEPARATOR=:
  30001. + fi
  30002. + rm -f conf$$.sh
  30003. +fi
  30004. - ;
  30005. - return 0;
  30006. -}
  30007. -_ACEOF
  30008. -rm -f conftest$ac_exeext
  30009. -if { (ac_try="$ac_link"
  30010. -case "(($ac_try" in
  30011. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30012. - *) ac_try_echo=$ac_try;;
  30013. -esac
  30014. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30015. -$as_echo "$ac_try_echo") >&5
  30016. - (eval "$ac_link") 2>&5
  30017. - ac_status=$?
  30018. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30019. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30020. - { (case "(($ac_try" in
  30021. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30022. - *) ac_try_echo=$ac_try;;
  30023. -esac
  30024. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30025. -$as_echo "$ac_try_echo") >&5
  30026. - (eval "$ac_try") 2>&5
  30027. - ac_status=$?
  30028. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30029. - (exit $ac_status); }; }; then
  30030. - ac_cv_sizeof_void_p=`cat conftest.val`
  30031. +# Find out how to test for executable files. Don't use a zero-byte file,
  30032. +# as systems may use methods other than mode bits to determine executability.
  30033. +cat >conf$$.file <<_ASEOF
  30034. +#! /bin/sh
  30035. +exit 0
  30036. +_ASEOF
  30037. +chmod +x conf$$.file
  30038. +if test -x conf$$.file >/dev/null 2>&1; then
  30039. + ac_executable_p="test -x"
  30040. else
  30041. - $as_echo "$as_me: program exited with status $ac_status" >&5
  30042. -$as_echo "$as_me: failed program was:" >&5
  30043. -sed 's/^/| /' conftest.$ac_ext >&5
  30044. + ac_executable_p="test -f"
  30045. +fi
  30046. +rm -f conf$$.file
  30047. -( exit $ac_status )
  30048. -if test "$ac_cv_type_void_p" = yes; then
  30049. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30050. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30051. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  30052. -See \`config.log' for more details." >&5
  30053. -$as_echo "$as_me: error: cannot compute sizeof (void *)
  30054. -See \`config.log' for more details." >&2;}
  30055. - { (exit 77); exit 77; }; }; }
  30056. - else
  30057. - ac_cv_sizeof_void_p=0
  30058. - fi
  30059. +# Extract the first word of "msgfmt", so it can be a program name with args.
  30060. +set dummy msgfmt; ac_word=$2
  30061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30062. +$as_echo_n "checking for $ac_word... " >&6; }
  30063. +if test "${ac_cv_path_MSGFMT+set}" = set; then :
  30064. + $as_echo_n "(cached) " >&6
  30065. +else
  30066. + case "$MSGFMT" in
  30067. + [\\/]* | ?:[\\/]*)
  30068. + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  30069. + ;;
  30070. + *)
  30071. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  30072. + for ac_dir in $PATH; do
  30073. + IFS="$ac_save_IFS"
  30074. + test -z "$ac_dir" && ac_dir=.
  30075. + for ac_exec_ext in '' $ac_executable_extensions; do
  30076. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  30077. + echo "$as_me: trying $ac_dir/$ac_word..." >&5
  30078. + if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  30079. + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  30080. + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  30081. + break 2
  30082. + fi
  30083. + fi
  30084. + done
  30085. + done
  30086. + IFS="$ac_save_IFS"
  30087. + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  30088. + ;;
  30089. +esac
  30090. fi
  30091. -rm -rf conftest.dSYM
  30092. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30093. +MSGFMT="$ac_cv_path_MSGFMT"
  30094. +if test "$MSGFMT" != ":"; then
  30095. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  30096. +$as_echo "$MSGFMT" >&6; }
  30097. +else
  30098. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30099. +$as_echo "no" >&6; }
  30100. fi
  30101. -rm -f conftest.val
  30102. +
  30103. + # Extract the first word of "gmsgfmt", so it can be a program name with args.
  30104. +set dummy gmsgfmt; ac_word=$2
  30105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30106. +$as_echo_n "checking for $ac_word... " >&6; }
  30107. +if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  30108. + $as_echo_n "(cached) " >&6
  30109. +else
  30110. + case $GMSGFMT in
  30111. + [\\/]* | ?:[\\/]*)
  30112. + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  30113. + ;;
  30114. + *)
  30115. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30116. +for as_dir in $PATH
  30117. +do
  30118. + IFS=$as_save_IFS
  30119. + test -z "$as_dir" && as_dir=.
  30120. + for ac_exec_ext in '' $ac_executable_extensions; do
  30121. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30122. + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  30123. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30124. + break 2
  30125. + fi
  30126. +done
  30127. + done
  30128. +IFS=$as_save_IFS
  30129. +
  30130. + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  30131. + ;;
  30132. +esac
  30133. +fi
  30134. +GMSGFMT=$ac_cv_path_GMSGFMT
  30135. +if test -n "$GMSGFMT"; then
  30136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  30137. +$as_echo "$GMSGFMT" >&6; }
  30138. +else
  30139. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30140. +$as_echo "no" >&6; }
  30141. fi
  30142. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  30143. -$as_echo "$ac_cv_sizeof_void_p" >&6; }
  30144. -cat >>confdefs.h <<_ACEOF
  30145. -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  30146. -_ACEOF
  30147. + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  30148. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  30149. + *) MSGFMT_015=$MSGFMT ;;
  30150. + esac
  30151. + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  30152. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  30153. + *) GMSGFMT_015=$GMSGFMT ;;
  30154. + esac
  30155. -# The cast to long int works around a bug in the HP C Compiler
  30156. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30157. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30158. -# This bug is HP SR number 8606223364.
  30159. -{ $as_echo "$as_me:$LINENO: checking size of intptr_t" >&5
  30160. -$as_echo_n "checking size of intptr_t... " >&6; }
  30161. -if test "${ac_cv_sizeof_intptr_t+set}" = set; then
  30162. - $as_echo_n "(cached) " >&6
  30163. -else
  30164. - if test "$cross_compiling" = yes; then
  30165. - # Depending upon the size, compute the lo and hi bounds.
  30166. -cat >conftest.$ac_ext <<_ACEOF
  30167. -/* confdefs.h. */
  30168. -_ACEOF
  30169. -cat confdefs.h >>conftest.$ac_ext
  30170. -cat >>conftest.$ac_ext <<_ACEOF
  30171. -/* end confdefs.h. */
  30172. -$ac_includes_default
  30173. -int
  30174. -main ()
  30175. -{
  30176. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= 0)];
  30177. -test_array [0] = 0
  30178. -
  30179. - ;
  30180. - return 0;
  30181. -}
  30182. -_ACEOF
  30183. -rm -f conftest.$ac_objext
  30184. -if { (ac_try="$ac_compile"
  30185. -case "(($ac_try" in
  30186. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30187. - *) ac_try_echo=$ac_try;;
  30188. -esac
  30189. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30190. -$as_echo "$ac_try_echo") >&5
  30191. - (eval "$ac_compile") 2>conftest.er1
  30192. - ac_status=$?
  30193. - grep -v '^ *+' conftest.er1 >conftest.err
  30194. - rm -f conftest.er1
  30195. - cat conftest.err >&5
  30196. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30197. - (exit $ac_status); } && {
  30198. - test -z "$ac_c_werror_flag" ||
  30199. - test ! -s conftest.err
  30200. - } && test -s conftest.$ac_objext; then
  30201. - ac_lo=0 ac_mid=0
  30202. - while :; do
  30203. - cat >conftest.$ac_ext <<_ACEOF
  30204. -/* confdefs.h. */
  30205. -_ACEOF
  30206. -cat confdefs.h >>conftest.$ac_ext
  30207. -cat >>conftest.$ac_ext <<_ACEOF
  30208. -/* end confdefs.h. */
  30209. -$ac_includes_default
  30210. -int
  30211. -main ()
  30212. -{
  30213. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  30214. -test_array [0] = 0
  30215. - ;
  30216. - return 0;
  30217. -}
  30218. -_ACEOF
  30219. -rm -f conftest.$ac_objext
  30220. -if { (ac_try="$ac_compile"
  30221. -case "(($ac_try" in
  30222. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30223. - *) ac_try_echo=$ac_try;;
  30224. -esac
  30225. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30226. -$as_echo "$ac_try_echo") >&5
  30227. - (eval "$ac_compile") 2>conftest.er1
  30228. - ac_status=$?
  30229. - grep -v '^ *+' conftest.er1 >conftest.err
  30230. - rm -f conftest.er1
  30231. - cat conftest.err >&5
  30232. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30233. - (exit $ac_status); } && {
  30234. - test -z "$ac_c_werror_flag" ||
  30235. - test ! -s conftest.err
  30236. - } && test -s conftest.$ac_objext; then
  30237. - ac_hi=$ac_mid; break
  30238. -else
  30239. - $as_echo "$as_me: failed program was:" >&5
  30240. -sed 's/^/| /' conftest.$ac_ext >&5
  30241. - ac_lo=`expr $ac_mid + 1`
  30242. - if test $ac_lo -le $ac_mid; then
  30243. - ac_lo= ac_hi=
  30244. - break
  30245. - fi
  30246. - ac_mid=`expr 2 '*' $ac_mid + 1`
  30247. +# Prepare PATH_SEPARATOR.
  30248. +# The user is always right.
  30249. +if test "${PATH_SEPARATOR+set}" != set; then
  30250. + echo "#! /bin/sh" >conf$$.sh
  30251. + echo "exit 0" >>conf$$.sh
  30252. + chmod +x conf$$.sh
  30253. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  30254. + PATH_SEPARATOR=';'
  30255. + else
  30256. + PATH_SEPARATOR=:
  30257. + fi
  30258. + rm -f conf$$.sh
  30259. fi
  30260. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30261. - done
  30262. +# Find out how to test for executable files. Don't use a zero-byte file,
  30263. +# as systems may use methods other than mode bits to determine executability.
  30264. +cat >conf$$.file <<_ASEOF
  30265. +#! /bin/sh
  30266. +exit 0
  30267. +_ASEOF
  30268. +chmod +x conf$$.file
  30269. +if test -x conf$$.file >/dev/null 2>&1; then
  30270. + ac_executable_p="test -x"
  30271. else
  30272. - $as_echo "$as_me: failed program was:" >&5
  30273. -sed 's/^/| /' conftest.$ac_ext >&5
  30274. -
  30275. - cat >conftest.$ac_ext <<_ACEOF
  30276. -/* confdefs.h. */
  30277. -_ACEOF
  30278. -cat confdefs.h >>conftest.$ac_ext
  30279. -cat >>conftest.$ac_ext <<_ACEOF
  30280. -/* end confdefs.h. */
  30281. -$ac_includes_default
  30282. -int
  30283. -main ()
  30284. -{
  30285. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) < 0)];
  30286. -test_array [0] = 0
  30287. -
  30288. - ;
  30289. - return 0;
  30290. -}
  30291. -_ACEOF
  30292. -rm -f conftest.$ac_objext
  30293. -if { (ac_try="$ac_compile"
  30294. -case "(($ac_try" in
  30295. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30296. - *) ac_try_echo=$ac_try;;
  30297. -esac
  30298. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30299. -$as_echo "$ac_try_echo") >&5
  30300. - (eval "$ac_compile") 2>conftest.er1
  30301. - ac_status=$?
  30302. - grep -v '^ *+' conftest.er1 >conftest.err
  30303. - rm -f conftest.er1
  30304. - cat conftest.err >&5
  30305. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30306. - (exit $ac_status); } && {
  30307. - test -z "$ac_c_werror_flag" ||
  30308. - test ! -s conftest.err
  30309. - } && test -s conftest.$ac_objext; then
  30310. - ac_hi=-1 ac_mid=-1
  30311. - while :; do
  30312. - cat >conftest.$ac_ext <<_ACEOF
  30313. -/* confdefs.h. */
  30314. -_ACEOF
  30315. -cat confdefs.h >>conftest.$ac_ext
  30316. -cat >>conftest.$ac_ext <<_ACEOF
  30317. -/* end confdefs.h. */
  30318. -$ac_includes_default
  30319. -int
  30320. -main ()
  30321. -{
  30322. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= $ac_mid)];
  30323. -test_array [0] = 0
  30324. + ac_executable_p="test -f"
  30325. +fi
  30326. +rm -f conf$$.file
  30327. - ;
  30328. - return 0;
  30329. -}
  30330. -_ACEOF
  30331. -rm -f conftest.$ac_objext
  30332. -if { (ac_try="$ac_compile"
  30333. -case "(($ac_try" in
  30334. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30335. - *) ac_try_echo=$ac_try;;
  30336. -esac
  30337. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30338. -$as_echo "$ac_try_echo") >&5
  30339. - (eval "$ac_compile") 2>conftest.er1
  30340. - ac_status=$?
  30341. - grep -v '^ *+' conftest.er1 >conftest.err
  30342. - rm -f conftest.er1
  30343. - cat conftest.err >&5
  30344. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30345. - (exit $ac_status); } && {
  30346. - test -z "$ac_c_werror_flag" ||
  30347. - test ! -s conftest.err
  30348. - } && test -s conftest.$ac_objext; then
  30349. - ac_lo=$ac_mid; break
  30350. +# Extract the first word of "xgettext", so it can be a program name with args.
  30351. +set dummy xgettext; ac_word=$2
  30352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30353. +$as_echo_n "checking for $ac_word... " >&6; }
  30354. +if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  30355. + $as_echo_n "(cached) " >&6
  30356. else
  30357. - $as_echo "$as_me: failed program was:" >&5
  30358. -sed 's/^/| /' conftest.$ac_ext >&5
  30359. -
  30360. - ac_hi=`expr '(' $ac_mid ')' - 1`
  30361. - if test $ac_mid -le $ac_hi; then
  30362. - ac_lo= ac_hi=
  30363. - break
  30364. - fi
  30365. - ac_mid=`expr 2 '*' $ac_mid`
  30366. + case "$XGETTEXT" in
  30367. + [\\/]* | ?:[\\/]*)
  30368. + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  30369. + ;;
  30370. + *)
  30371. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  30372. + for ac_dir in $PATH; do
  30373. + IFS="$ac_save_IFS"
  30374. + test -z "$ac_dir" && ac_dir=.
  30375. + for ac_exec_ext in '' $ac_executable_extensions; do
  30376. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  30377. + echo "$as_me: trying $ac_dir/$ac_word..." >&5
  30378. + if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  30379. + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  30380. + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  30381. + break 2
  30382. + fi
  30383. + fi
  30384. + done
  30385. + done
  30386. + IFS="$ac_save_IFS"
  30387. + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  30388. + ;;
  30389. +esac
  30390. fi
  30391. -
  30392. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30393. - done
  30394. +XGETTEXT="$ac_cv_path_XGETTEXT"
  30395. +if test "$XGETTEXT" != ":"; then
  30396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  30397. +$as_echo "$XGETTEXT" >&6; }
  30398. else
  30399. - $as_echo "$as_me: failed program was:" >&5
  30400. -sed 's/^/| /' conftest.$ac_ext >&5
  30401. -
  30402. - ac_lo= ac_hi=
  30403. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30404. +$as_echo "no" >&6; }
  30405. fi
  30406. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30407. -fi
  30408. + rm -f messages.po
  30409. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30410. -# Binary search between lo and hi bounds.
  30411. -while test "x$ac_lo" != "x$ac_hi"; do
  30412. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30413. - cat >conftest.$ac_ext <<_ACEOF
  30414. -/* confdefs.h. */
  30415. -_ACEOF
  30416. -cat confdefs.h >>conftest.$ac_ext
  30417. -cat >>conftest.$ac_ext <<_ACEOF
  30418. -/* end confdefs.h. */
  30419. -$ac_includes_default
  30420. -int
  30421. -main ()
  30422. -{
  30423. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  30424. -test_array [0] = 0
  30425. + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  30426. + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  30427. + *) XGETTEXT_015=$XGETTEXT ;;
  30428. + esac
  30429. - ;
  30430. - return 0;
  30431. -}
  30432. -_ACEOF
  30433. -rm -f conftest.$ac_objext
  30434. -if { (ac_try="$ac_compile"
  30435. -case "(($ac_try" in
  30436. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30437. - *) ac_try_echo=$ac_try;;
  30438. -esac
  30439. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30440. -$as_echo "$ac_try_echo") >&5
  30441. - (eval "$ac_compile") 2>conftest.er1
  30442. - ac_status=$?
  30443. - grep -v '^ *+' conftest.er1 >conftest.err
  30444. - rm -f conftest.er1
  30445. - cat conftest.err >&5
  30446. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30447. - (exit $ac_status); } && {
  30448. - test -z "$ac_c_werror_flag" ||
  30449. - test ! -s conftest.err
  30450. - } && test -s conftest.$ac_objext; then
  30451. - ac_hi=$ac_mid
  30452. -else
  30453. - $as_echo "$as_me: failed program was:" >&5
  30454. -sed 's/^/| /' conftest.$ac_ext >&5
  30455. - ac_lo=`expr '(' $ac_mid ')' + 1`
  30456. +
  30457. +# Prepare PATH_SEPARATOR.
  30458. +# The user is always right.
  30459. +if test "${PATH_SEPARATOR+set}" != set; then
  30460. + echo "#! /bin/sh" >conf$$.sh
  30461. + echo "exit 0" >>conf$$.sh
  30462. + chmod +x conf$$.sh
  30463. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  30464. + PATH_SEPARATOR=';'
  30465. + else
  30466. + PATH_SEPARATOR=:
  30467. + fi
  30468. + rm -f conf$$.sh
  30469. fi
  30470. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30471. -done
  30472. -case $ac_lo in
  30473. -?*) ac_cv_sizeof_intptr_t=$ac_lo;;
  30474. -'') if test "$ac_cv_type_intptr_t" = yes; then
  30475. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30476. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30477. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  30478. -See \`config.log' for more details." >&5
  30479. -$as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  30480. -See \`config.log' for more details." >&2;}
  30481. - { (exit 77); exit 77; }; }; }
  30482. - else
  30483. - ac_cv_sizeof_intptr_t=0
  30484. - fi ;;
  30485. -esac
  30486. +# Find out how to test for executable files. Don't use a zero-byte file,
  30487. +# as systems may use methods other than mode bits to determine executability.
  30488. +cat >conf$$.file <<_ASEOF
  30489. +#! /bin/sh
  30490. +exit 0
  30491. +_ASEOF
  30492. +chmod +x conf$$.file
  30493. +if test -x conf$$.file >/dev/null 2>&1; then
  30494. + ac_executable_p="test -x"
  30495. else
  30496. - cat >conftest.$ac_ext <<_ACEOF
  30497. -/* confdefs.h. */
  30498. -_ACEOF
  30499. -cat confdefs.h >>conftest.$ac_ext
  30500. -cat >>conftest.$ac_ext <<_ACEOF
  30501. -/* end confdefs.h. */
  30502. -$ac_includes_default
  30503. -static long int longval () { return (long int) (sizeof (intptr_t)); }
  30504. -static unsigned long int ulongval () { return (long int) (sizeof (intptr_t)); }
  30505. -#include <stdio.h>
  30506. -#include <stdlib.h>
  30507. -int
  30508. -main ()
  30509. -{
  30510. + ac_executable_p="test -f"
  30511. +fi
  30512. +rm -f conf$$.file
  30513. - FILE *f = fopen ("conftest.val", "w");
  30514. - if (! f)
  30515. - return 1;
  30516. - if (((long int) (sizeof (intptr_t))) < 0)
  30517. - {
  30518. - long int i = longval ();
  30519. - if (i != ((long int) (sizeof (intptr_t))))
  30520. - return 1;
  30521. - fprintf (f, "%ld", i);
  30522. - }
  30523. - else
  30524. - {
  30525. - unsigned long int i = ulongval ();
  30526. - if (i != ((long int) (sizeof (intptr_t))))
  30527. - return 1;
  30528. - fprintf (f, "%lu", i);
  30529. - }
  30530. - /* Do not output a trailing newline, as this causes \r\n confusion
  30531. - on some platforms. */
  30532. - return ferror (f) || fclose (f) != 0;
  30533. -
  30534. - ;
  30535. - return 0;
  30536. -}
  30537. -_ACEOF
  30538. -rm -f conftest$ac_exeext
  30539. -if { (ac_try="$ac_link"
  30540. -case "(($ac_try" in
  30541. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30542. - *) ac_try_echo=$ac_try;;
  30543. -esac
  30544. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30545. -$as_echo "$ac_try_echo") >&5
  30546. - (eval "$ac_link") 2>&5
  30547. - ac_status=$?
  30548. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30549. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30550. - { (case "(($ac_try" in
  30551. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30552. - *) ac_try_echo=$ac_try;;
  30553. -esac
  30554. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30555. -$as_echo "$ac_try_echo") >&5
  30556. - (eval "$ac_try") 2>&5
  30557. - ac_status=$?
  30558. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30559. - (exit $ac_status); }; }; then
  30560. - ac_cv_sizeof_intptr_t=`cat conftest.val`
  30561. +# Extract the first word of "msgmerge", so it can be a program name with args.
  30562. +set dummy msgmerge; ac_word=$2
  30563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30564. +$as_echo_n "checking for $ac_word... " >&6; }
  30565. +if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  30566. + $as_echo_n "(cached) " >&6
  30567. else
  30568. - $as_echo "$as_me: program exited with status $ac_status" >&5
  30569. -$as_echo "$as_me: failed program was:" >&5
  30570. -sed 's/^/| /' conftest.$ac_ext >&5
  30571. -
  30572. -( exit $ac_status )
  30573. -if test "$ac_cv_type_intptr_t" = yes; then
  30574. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30575. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30576. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  30577. -See \`config.log' for more details." >&5
  30578. -$as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  30579. -See \`config.log' for more details." >&2;}
  30580. - { (exit 77); exit 77; }; }; }
  30581. - else
  30582. - ac_cv_sizeof_intptr_t=0
  30583. - fi
  30584. -fi
  30585. -rm -rf conftest.dSYM
  30586. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30587. + case "$MSGMERGE" in
  30588. + [\\/]* | ?:[\\/]*)
  30589. + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  30590. + ;;
  30591. + *)
  30592. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  30593. + for ac_dir in $PATH; do
  30594. + IFS="$ac_save_IFS"
  30595. + test -z "$ac_dir" && ac_dir=.
  30596. + for ac_exec_ext in '' $ac_executable_extensions; do
  30597. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  30598. + echo "$as_me: trying $ac_dir/$ac_word..." >&5
  30599. + if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  30600. + ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  30601. + break 2
  30602. + fi
  30603. + fi
  30604. + done
  30605. + done
  30606. + IFS="$ac_save_IFS"
  30607. + test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  30608. + ;;
  30609. +esac
  30610. fi
  30611. -rm -f conftest.val
  30612. +MSGMERGE="$ac_cv_path_MSGMERGE"
  30613. +if test "$MSGMERGE" != ":"; then
  30614. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  30615. +$as_echo "$MSGMERGE" >&6; }
  30616. +else
  30617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30618. +$as_echo "no" >&6; }
  30619. fi
  30620. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
  30621. -$as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  30622. -
  30623. -cat >>confdefs.h <<_ACEOF
  30624. -#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  30625. -_ACEOF
  30626. + test -n "$localedir" || localedir='${datadir}/locale'
  30627. -# The cast to long int works around a bug in the HP C Compiler
  30628. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30629. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30630. -# This bug is HP SR number 8606223364.
  30631. -{ $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
  30632. -$as_echo_n "checking size of uintptr_t... " >&6; }
  30633. -if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
  30634. - $as_echo_n "(cached) " >&6
  30635. -else
  30636. - if test "$cross_compiling" = yes; then
  30637. - # Depending upon the size, compute the lo and hi bounds.
  30638. -cat >conftest.$ac_ext <<_ACEOF
  30639. -/* confdefs.h. */
  30640. -_ACEOF
  30641. -cat confdefs.h >>conftest.$ac_ext
  30642. -cat >>conftest.$ac_ext <<_ACEOF
  30643. -/* end confdefs.h. */
  30644. -$ac_includes_default
  30645. -int
  30646. -main ()
  30647. -{
  30648. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
  30649. -test_array [0] = 0
  30650. + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  30651. - ;
  30652. - return 0;
  30653. -}
  30654. -_ACEOF
  30655. -rm -f conftest.$ac_objext
  30656. -if { (ac_try="$ac_compile"
  30657. -case "(($ac_try" in
  30658. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30659. - *) ac_try_echo=$ac_try;;
  30660. -esac
  30661. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30662. -$as_echo "$ac_try_echo") >&5
  30663. - (eval "$ac_compile") 2>conftest.er1
  30664. - ac_status=$?
  30665. - grep -v '^ *+' conftest.er1 >conftest.err
  30666. - rm -f conftest.er1
  30667. - cat conftest.err >&5
  30668. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30669. - (exit $ac_status); } && {
  30670. - test -z "$ac_c_werror_flag" ||
  30671. - test ! -s conftest.err
  30672. - } && test -s conftest.$ac_objext; then
  30673. - ac_lo=0 ac_mid=0
  30674. - while :; do
  30675. - cat >conftest.$ac_ext <<_ACEOF
  30676. -/* confdefs.h. */
  30677. -_ACEOF
  30678. -cat confdefs.h >>conftest.$ac_ext
  30679. -cat >>conftest.$ac_ext <<_ACEOF
  30680. -/* end confdefs.h. */
  30681. -$ac_includes_default
  30682. -int
  30683. -main ()
  30684. -{
  30685. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  30686. -test_array [0] = 0
  30687. - ;
  30688. - return 0;
  30689. -}
  30690. -_ACEOF
  30691. -rm -f conftest.$ac_objext
  30692. -if { (ac_try="$ac_compile"
  30693. -case "(($ac_try" in
  30694. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30695. - *) ac_try_echo=$ac_try;;
  30696. -esac
  30697. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30698. -$as_echo "$ac_try_echo") >&5
  30699. - (eval "$ac_compile") 2>conftest.er1
  30700. - ac_status=$?
  30701. - grep -v '^ *+' conftest.er1 >conftest.err
  30702. - rm -f conftest.er1
  30703. - cat conftest.err >&5
  30704. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30705. - (exit $ac_status); } && {
  30706. - test -z "$ac_c_werror_flag" ||
  30707. - test ! -s conftest.err
  30708. - } && test -s conftest.$ac_objext; then
  30709. - ac_hi=$ac_mid; break
  30710. -else
  30711. - $as_echo "$as_me: failed program was:" >&5
  30712. -sed 's/^/| /' conftest.$ac_ext >&5
  30713. + ac_config_commands="$ac_config_commands po-directories"
  30714. - ac_lo=`expr $ac_mid + 1`
  30715. - if test $ac_lo -le $ac_mid; then
  30716. - ac_lo= ac_hi=
  30717. - break
  30718. - fi
  30719. - ac_mid=`expr 2 '*' $ac_mid + 1`
  30720. -fi
  30721. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30722. - done
  30723. -else
  30724. - $as_echo "$as_me: failed program was:" >&5
  30725. -sed 's/^/| /' conftest.$ac_ext >&5
  30726. - cat >conftest.$ac_ext <<_ACEOF
  30727. -/* confdefs.h. */
  30728. -_ACEOF
  30729. -cat confdefs.h >>conftest.$ac_ext
  30730. -cat >>conftest.$ac_ext <<_ACEOF
  30731. -/* end confdefs.h. */
  30732. -$ac_includes_default
  30733. -int
  30734. -main ()
  30735. -{
  30736. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
  30737. -test_array [0] = 0
  30738. + if test "X$prefix" = "XNONE"; then
  30739. + acl_final_prefix="$ac_default_prefix"
  30740. + else
  30741. + acl_final_prefix="$prefix"
  30742. + fi
  30743. + if test "X$exec_prefix" = "XNONE"; then
  30744. + acl_final_exec_prefix='${prefix}'
  30745. + else
  30746. + acl_final_exec_prefix="$exec_prefix"
  30747. + fi
  30748. + acl_save_prefix="$prefix"
  30749. + prefix="$acl_final_prefix"
  30750. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  30751. + prefix="$acl_save_prefix"
  30752. - ;
  30753. - return 0;
  30754. -}
  30755. -_ACEOF
  30756. -rm -f conftest.$ac_objext
  30757. -if { (ac_try="$ac_compile"
  30758. -case "(($ac_try" in
  30759. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30760. - *) ac_try_echo=$ac_try;;
  30761. -esac
  30762. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30763. -$as_echo "$ac_try_echo") >&5
  30764. - (eval "$ac_compile") 2>conftest.er1
  30765. - ac_status=$?
  30766. - grep -v '^ *+' conftest.er1 >conftest.err
  30767. - rm -f conftest.er1
  30768. - cat conftest.err >&5
  30769. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30770. - (exit $ac_status); } && {
  30771. - test -z "$ac_c_werror_flag" ||
  30772. - test ! -s conftest.err
  30773. - } && test -s conftest.$ac_objext; then
  30774. - ac_hi=-1 ac_mid=-1
  30775. - while :; do
  30776. - cat >conftest.$ac_ext <<_ACEOF
  30777. -/* confdefs.h. */
  30778. -_ACEOF
  30779. -cat confdefs.h >>conftest.$ac_ext
  30780. -cat >>conftest.$ac_ext <<_ACEOF
  30781. -/* end confdefs.h. */
  30782. -$ac_includes_default
  30783. -int
  30784. -main ()
  30785. -{
  30786. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
  30787. -test_array [0] = 0
  30788. - ;
  30789. - return 0;
  30790. -}
  30791. -_ACEOF
  30792. -rm -f conftest.$ac_objext
  30793. -if { (ac_try="$ac_compile"
  30794. -case "(($ac_try" in
  30795. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30796. - *) ac_try_echo=$ac_try;;
  30797. -esac
  30798. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30799. -$as_echo "$ac_try_echo") >&5
  30800. - (eval "$ac_compile") 2>conftest.er1
  30801. - ac_status=$?
  30802. - grep -v '^ *+' conftest.er1 >conftest.err
  30803. - rm -f conftest.er1
  30804. - cat conftest.err >&5
  30805. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30806. - (exit $ac_status); } && {
  30807. - test -z "$ac_c_werror_flag" ||
  30808. - test ! -s conftest.err
  30809. - } && test -s conftest.$ac_objext; then
  30810. - ac_lo=$ac_mid; break
  30811. +# Check whether --with-gnu-ld was given.
  30812. +if test "${with_gnu_ld+set}" = set; then :
  30813. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  30814. else
  30815. - $as_echo "$as_me: failed program was:" >&5
  30816. -sed 's/^/| /' conftest.$ac_ext >&5
  30817. -
  30818. - ac_hi=`expr '(' $ac_mid ')' - 1`
  30819. - if test $ac_mid -le $ac_hi; then
  30820. - ac_lo= ac_hi=
  30821. - break
  30822. - fi
  30823. - ac_mid=`expr 2 '*' $ac_mid`
  30824. + with_gnu_ld=no
  30825. fi
  30826. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30827. - done
  30828. -else
  30829. - $as_echo "$as_me: failed program was:" >&5
  30830. -sed 's/^/| /' conftest.$ac_ext >&5
  30831. -
  30832. - ac_lo= ac_hi=
  30833. +# Prepare PATH_SEPARATOR.
  30834. +# The user is always right.
  30835. +if test "${PATH_SEPARATOR+set}" != set; then
  30836. + echo "#! /bin/sh" >conf$$.sh
  30837. + echo "exit 0" >>conf$$.sh
  30838. + chmod +x conf$$.sh
  30839. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  30840. + PATH_SEPARATOR=';'
  30841. + else
  30842. + PATH_SEPARATOR=:
  30843. + fi
  30844. + rm -f conf$$.sh
  30845. fi
  30846. -
  30847. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30848. +ac_prog=ld
  30849. +if test "$GCC" = yes; then
  30850. + # Check if gcc -print-prog-name=ld gives a path.
  30851. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  30852. +$as_echo_n "checking for ld used by GCC... " >&6; }
  30853. + case $host in
  30854. + *-*-mingw*)
  30855. + # gcc leaves a trailing carriage return which upsets mingw
  30856. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  30857. + *)
  30858. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  30859. + esac
  30860. + case $ac_prog in
  30861. + # Accept absolute paths.
  30862. + [\\/]* | [A-Za-z]:[\\/]*)
  30863. + re_direlt='/[^/][^/]*/\.\./'
  30864. + # Canonicalize the path of ld
  30865. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  30866. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  30867. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  30868. + done
  30869. + test -z "$LD" && LD="$ac_prog"
  30870. + ;;
  30871. + "")
  30872. + # If it fails, then pretend we aren't using GCC.
  30873. + ac_prog=ld
  30874. + ;;
  30875. + *)
  30876. + # If it is relative, then search for the first ld in PATH.
  30877. + with_gnu_ld=unknown
  30878. + ;;
  30879. + esac
  30880. +elif test "$with_gnu_ld" = yes; then
  30881. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  30882. +$as_echo_n "checking for GNU ld... " >&6; }
  30883. +else
  30884. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  30885. +$as_echo_n "checking for non-GNU ld... " >&6; }
  30886. fi
  30887. -
  30888. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30889. -# Binary search between lo and hi bounds.
  30890. -while test "x$ac_lo" != "x$ac_hi"; do
  30891. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30892. - cat >conftest.$ac_ext <<_ACEOF
  30893. -/* confdefs.h. */
  30894. -_ACEOF
  30895. -cat confdefs.h >>conftest.$ac_ext
  30896. -cat >>conftest.$ac_ext <<_ACEOF
  30897. -/* end confdefs.h. */
  30898. -$ac_includes_default
  30899. -int
  30900. -main ()
  30901. -{
  30902. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  30903. -test_array [0] = 0
  30904. -
  30905. - ;
  30906. - return 0;
  30907. -}
  30908. -_ACEOF
  30909. -rm -f conftest.$ac_objext
  30910. -if { (ac_try="$ac_compile"
  30911. -case "(($ac_try" in
  30912. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30913. - *) ac_try_echo=$ac_try;;
  30914. -esac
  30915. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30916. -$as_echo "$ac_try_echo") >&5
  30917. - (eval "$ac_compile") 2>conftest.er1
  30918. - ac_status=$?
  30919. - grep -v '^ *+' conftest.er1 >conftest.err
  30920. - rm -f conftest.er1
  30921. - cat conftest.err >&5
  30922. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30923. - (exit $ac_status); } && {
  30924. - test -z "$ac_c_werror_flag" ||
  30925. - test ! -s conftest.err
  30926. - } && test -s conftest.$ac_objext; then
  30927. - ac_hi=$ac_mid
  30928. +if test "${acl_cv_path_LD+set}" = set; then :
  30929. + $as_echo_n "(cached) " >&6
  30930. else
  30931. - $as_echo "$as_me: failed program was:" >&5
  30932. -sed 's/^/| /' conftest.$ac_ext >&5
  30933. -
  30934. - ac_lo=`expr '(' $ac_mid ')' + 1`
  30935. + if test -z "$LD"; then
  30936. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  30937. + for ac_dir in $PATH; do
  30938. + test -z "$ac_dir" && ac_dir=.
  30939. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  30940. + acl_cv_path_LD="$ac_dir/$ac_prog"
  30941. + # Check to see if the program is GNU ld. I'd rather use --version,
  30942. + # but apparently some GNU ld's only accept -v.
  30943. + # Break only if it was the GNU/non-GNU ld that we prefer.
  30944. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  30945. + *GNU* | *'with BFD'*)
  30946. + test "$with_gnu_ld" != no && break ;;
  30947. + *)
  30948. + test "$with_gnu_ld" != yes && break ;;
  30949. + esac
  30950. + fi
  30951. + done
  30952. + IFS="$ac_save_ifs"
  30953. +else
  30954. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  30955. +fi
  30956. fi
  30957. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30958. -done
  30959. -case $ac_lo in
  30960. -?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
  30961. -'') if test "$ac_cv_type_uintptr_t" = yes; then
  30962. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30963. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30964. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  30965. -See \`config.log' for more details." >&5
  30966. -$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  30967. -See \`config.log' for more details." >&2;}
  30968. - { (exit 77); exit 77; }; }; }
  30969. - else
  30970. - ac_cv_sizeof_uintptr_t=0
  30971. - fi ;;
  30972. -esac
  30973. +LD="$acl_cv_path_LD"
  30974. +if test -n "$LD"; then
  30975. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  30976. +$as_echo "$LD" >&6; }
  30977. else
  30978. - cat >conftest.$ac_ext <<_ACEOF
  30979. -/* confdefs.h. */
  30980. -_ACEOF
  30981. -cat confdefs.h >>conftest.$ac_ext
  30982. -cat >>conftest.$ac_ext <<_ACEOF
  30983. -/* end confdefs.h. */
  30984. -$ac_includes_default
  30985. -static long int longval () { return (long int) (sizeof (uintptr_t)); }
  30986. -static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
  30987. -#include <stdio.h>
  30988. -#include <stdlib.h>
  30989. -int
  30990. -main ()
  30991. -{
  30992. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30993. +$as_echo "no" >&6; }
  30994. +fi
  30995. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  30996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  30997. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  30998. +if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  30999. + $as_echo_n "(cached) " >&6
  31000. +else
  31001. + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  31002. +case `$LD -v 2>&1 </dev/null` in
  31003. +*GNU* | *'with BFD'*)
  31004. + acl_cv_prog_gnu_ld=yes ;;
  31005. +*)
  31006. + acl_cv_prog_gnu_ld=no ;;
  31007. +esac
  31008. +fi
  31009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  31010. +$as_echo "$acl_cv_prog_gnu_ld" >&6; }
  31011. +with_gnu_ld=$acl_cv_prog_gnu_ld
  31012. - FILE *f = fopen ("conftest.val", "w");
  31013. - if (! f)
  31014. - return 1;
  31015. - if (((long int) (sizeof (uintptr_t))) < 0)
  31016. - {
  31017. - long int i = longval ();
  31018. - if (i != ((long int) (sizeof (uintptr_t))))
  31019. - return 1;
  31020. - fprintf (f, "%ld", i);
  31021. - }
  31022. - else
  31023. - {
  31024. - unsigned long int i = ulongval ();
  31025. - if (i != ((long int) (sizeof (uintptr_t))))
  31026. - return 1;
  31027. - fprintf (f, "%lu", i);
  31028. - }
  31029. - /* Do not output a trailing newline, as this causes \r\n confusion
  31030. - on some platforms. */
  31031. - return ferror (f) || fclose (f) != 0;
  31032. - ;
  31033. - return 0;
  31034. -}
  31035. -_ACEOF
  31036. -rm -f conftest$ac_exeext
  31037. -if { (ac_try="$ac_link"
  31038. -case "(($ac_try" in
  31039. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31040. - *) ac_try_echo=$ac_try;;
  31041. -esac
  31042. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31043. -$as_echo "$ac_try_echo") >&5
  31044. - (eval "$ac_link") 2>&5
  31045. - ac_status=$?
  31046. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31047. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31048. - { (case "(($ac_try" in
  31049. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31050. - *) ac_try_echo=$ac_try;;
  31051. -esac
  31052. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31053. -$as_echo "$ac_try_echo") >&5
  31054. - (eval "$ac_try") 2>&5
  31055. - ac_status=$?
  31056. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31057. - (exit $ac_status); }; }; then
  31058. - ac_cv_sizeof_uintptr_t=`cat conftest.val`
  31059. +
  31060. +
  31061. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  31062. +$as_echo_n "checking for shared library run path origin... " >&6; }
  31063. +if test "${acl_cv_rpath+set}" = set; then :
  31064. + $as_echo_n "(cached) " >&6
  31065. else
  31066. - $as_echo "$as_me: program exited with status $ac_status" >&5
  31067. -$as_echo "$as_me: failed program was:" >&5
  31068. -sed 's/^/| /' conftest.$ac_ext >&5
  31069. -( exit $ac_status )
  31070. -if test "$ac_cv_type_uintptr_t" = yes; then
  31071. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31072. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31073. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  31074. -See \`config.log' for more details." >&5
  31075. -$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  31076. -See \`config.log' for more details." >&2;}
  31077. - { (exit 77); exit 77; }; }; }
  31078. - else
  31079. - ac_cv_sizeof_uintptr_t=0
  31080. - fi
  31081. -fi
  31082. -rm -rf conftest.dSYM
  31083. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31084. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  31085. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  31086. + . ./conftest.sh
  31087. + rm -f ./conftest.sh
  31088. + acl_cv_rpath=done
  31089. +
  31090. fi
  31091. -rm -f conftest.val
  31092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  31093. +$as_echo "$acl_cv_rpath" >&6; }
  31094. + wl="$acl_cv_wl"
  31095. + acl_libext="$acl_cv_libext"
  31096. + acl_shlibext="$acl_cv_shlibext"
  31097. + acl_libname_spec="$acl_cv_libname_spec"
  31098. + acl_library_names_spec="$acl_cv_library_names_spec"
  31099. + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  31100. + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  31101. + acl_hardcode_direct="$acl_cv_hardcode_direct"
  31102. + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  31103. + # Check whether --enable-rpath was given.
  31104. +if test "${enable_rpath+set}" = set; then :
  31105. + enableval=$enable_rpath; :
  31106. +else
  31107. + enable_rpath=yes
  31108. fi
  31109. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
  31110. -$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  31111. -cat >>confdefs.h <<_ACEOF
  31112. -#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  31113. -_ACEOF
  31114. + acl_libdirstem=lib
  31115. + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  31116. + if test -n "$searchpath"; then
  31117. + acl_save_IFS="${IFS= }"; IFS=":"
  31118. + for searchdir in $searchpath; do
  31119. + if test -d "$searchdir"; then
  31120. + case "$searchdir" in
  31121. + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  31122. + *) searchdir=`cd "$searchdir" && pwd`
  31123. + case "$searchdir" in
  31124. + */lib64 ) acl_libdirstem=lib64 ;;
  31125. + esac ;;
  31126. + esac
  31127. + fi
  31128. + done
  31129. + IFS="$acl_save_IFS"
  31130. + fi
  31131. -# The cast to long int works around a bug in the HP C Compiler
  31132. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31133. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31134. -# This bug is HP SR number 8606223364.
  31135. -{ $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  31136. -$as_echo_n "checking size of ptrdiff_t... " >&6; }
  31137. -if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  31138. - $as_echo_n "(cached) " >&6
  31139. -else
  31140. - if test "$cross_compiling" = yes; then
  31141. - # Depending upon the size, compute the lo and hi bounds.
  31142. -cat >conftest.$ac_ext <<_ACEOF
  31143. -/* confdefs.h. */
  31144. -_ACEOF
  31145. -cat confdefs.h >>conftest.$ac_ext
  31146. -cat >>conftest.$ac_ext <<_ACEOF
  31147. -/* end confdefs.h. */
  31148. -$ac_includes_default
  31149. -int
  31150. -main ()
  31151. -{
  31152. -static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  31153. -test_array [0] = 0
  31154. - ;
  31155. - return 0;
  31156. -}
  31157. -_ACEOF
  31158. -rm -f conftest.$ac_objext
  31159. -if { (ac_try="$ac_compile"
  31160. -case "(($ac_try" in
  31161. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31162. - *) ac_try_echo=$ac_try;;
  31163. -esac
  31164. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31165. -$as_echo "$ac_try_echo") >&5
  31166. - (eval "$ac_compile") 2>conftest.er1
  31167. - ac_status=$?
  31168. - grep -v '^ *+' conftest.er1 >conftest.err
  31169. - rm -f conftest.er1
  31170. - cat conftest.err >&5
  31171. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31172. - (exit $ac_status); } && {
  31173. - test -z "$ac_c_werror_flag" ||
  31174. - test ! -s conftest.err
  31175. - } && test -s conftest.$ac_objext; then
  31176. - ac_lo=0 ac_mid=0
  31177. - while :; do
  31178. - cat >conftest.$ac_ext <<_ACEOF
  31179. -/* confdefs.h. */
  31180. -_ACEOF
  31181. -cat confdefs.h >>conftest.$ac_ext
  31182. -cat >>conftest.$ac_ext <<_ACEOF
  31183. -/* end confdefs.h. */
  31184. -$ac_includes_default
  31185. -int
  31186. -main ()
  31187. -{
  31188. -static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  31189. -test_array [0] = 0
  31190. - ;
  31191. - return 0;
  31192. -}
  31193. -_ACEOF
  31194. -rm -f conftest.$ac_objext
  31195. -if { (ac_try="$ac_compile"
  31196. -case "(($ac_try" in
  31197. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31198. - *) ac_try_echo=$ac_try;;
  31199. -esac
  31200. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31201. -$as_echo "$ac_try_echo") >&5
  31202. - (eval "$ac_compile") 2>conftest.er1
  31203. - ac_status=$?
  31204. - grep -v '^ *+' conftest.er1 >conftest.err
  31205. - rm -f conftest.er1
  31206. - cat conftest.err >&5
  31207. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31208. - (exit $ac_status); } && {
  31209. - test -z "$ac_c_werror_flag" ||
  31210. - test ! -s conftest.err
  31211. - } && test -s conftest.$ac_objext; then
  31212. - ac_hi=$ac_mid; break
  31213. -else
  31214. - $as_echo "$as_me: failed program was:" >&5
  31215. -sed 's/^/| /' conftest.$ac_ext >&5
  31216. - ac_lo=`expr $ac_mid + 1`
  31217. - if test $ac_lo -le $ac_mid; then
  31218. - ac_lo= ac_hi=
  31219. - break
  31220. - fi
  31221. - ac_mid=`expr 2 '*' $ac_mid + 1`
  31222. -fi
  31223. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31224. - done
  31225. -else
  31226. - $as_echo "$as_me: failed program was:" >&5
  31227. -sed 's/^/| /' conftest.$ac_ext >&5
  31228. - cat >conftest.$ac_ext <<_ACEOF
  31229. -/* confdefs.h. */
  31230. -_ACEOF
  31231. -cat confdefs.h >>conftest.$ac_ext
  31232. -cat >>conftest.$ac_ext <<_ACEOF
  31233. -/* end confdefs.h. */
  31234. -$ac_includes_default
  31235. -int
  31236. -main ()
  31237. -{
  31238. -static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  31239. -test_array [0] = 0
  31240. - ;
  31241. - return 0;
  31242. -}
  31243. -_ACEOF
  31244. -rm -f conftest.$ac_objext
  31245. -if { (ac_try="$ac_compile"
  31246. -case "(($ac_try" in
  31247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31248. - *) ac_try_echo=$ac_try;;
  31249. -esac
  31250. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31251. -$as_echo "$ac_try_echo") >&5
  31252. - (eval "$ac_compile") 2>conftest.er1
  31253. - ac_status=$?
  31254. - grep -v '^ *+' conftest.er1 >conftest.err
  31255. - rm -f conftest.er1
  31256. - cat conftest.err >&5
  31257. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31258. - (exit $ac_status); } && {
  31259. - test -z "$ac_c_werror_flag" ||
  31260. - test ! -s conftest.err
  31261. - } && test -s conftest.$ac_objext; then
  31262. - ac_hi=-1 ac_mid=-1
  31263. - while :; do
  31264. - cat >conftest.$ac_ext <<_ACEOF
  31265. -/* confdefs.h. */
  31266. -_ACEOF
  31267. -cat confdefs.h >>conftest.$ac_ext
  31268. -cat >>conftest.$ac_ext <<_ACEOF
  31269. -/* end confdefs.h. */
  31270. -$ac_includes_default
  31271. -int
  31272. -main ()
  31273. -{
  31274. -static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  31275. -test_array [0] = 0
  31276. - ;
  31277. - return 0;
  31278. -}
  31279. -_ACEOF
  31280. -rm -f conftest.$ac_objext
  31281. -if { (ac_try="$ac_compile"
  31282. -case "(($ac_try" in
  31283. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31284. - *) ac_try_echo=$ac_try;;
  31285. -esac
  31286. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31287. -$as_echo "$ac_try_echo") >&5
  31288. - (eval "$ac_compile") 2>conftest.er1
  31289. - ac_status=$?
  31290. - grep -v '^ *+' conftest.er1 >conftest.err
  31291. - rm -f conftest.er1
  31292. - cat conftest.err >&5
  31293. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31294. - (exit $ac_status); } && {
  31295. - test -z "$ac_c_werror_flag" ||
  31296. - test ! -s conftest.err
  31297. - } && test -s conftest.$ac_objext; then
  31298. - ac_lo=$ac_mid; break
  31299. -else
  31300. - $as_echo "$as_me: failed program was:" >&5
  31301. -sed 's/^/| /' conftest.$ac_ext >&5
  31302. -
  31303. - ac_hi=`expr '(' $ac_mid ')' - 1`
  31304. - if test $ac_mid -le $ac_hi; then
  31305. - ac_lo= ac_hi=
  31306. - break
  31307. - fi
  31308. - ac_mid=`expr 2 '*' $ac_mid`
  31309. -fi
  31310. + use_additional=yes
  31311. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31312. - done
  31313. -else
  31314. - $as_echo "$as_me: failed program was:" >&5
  31315. -sed 's/^/| /' conftest.$ac_ext >&5
  31316. + acl_save_prefix="$prefix"
  31317. + prefix="$acl_final_prefix"
  31318. + acl_save_exec_prefix="$exec_prefix"
  31319. + exec_prefix="$acl_final_exec_prefix"
  31320. - ac_lo= ac_hi=
  31321. -fi
  31322. + eval additional_includedir=\"$includedir\"
  31323. + eval additional_libdir=\"$libdir\"
  31324. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31325. -fi
  31326. + exec_prefix="$acl_save_exec_prefix"
  31327. + prefix="$acl_save_prefix"
  31328. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31329. -# Binary search between lo and hi bounds.
  31330. -while test "x$ac_lo" != "x$ac_hi"; do
  31331. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31332. - cat >conftest.$ac_ext <<_ACEOF
  31333. -/* confdefs.h. */
  31334. -_ACEOF
  31335. -cat confdefs.h >>conftest.$ac_ext
  31336. -cat >>conftest.$ac_ext <<_ACEOF
  31337. -/* end confdefs.h. */
  31338. -$ac_includes_default
  31339. -int
  31340. -main ()
  31341. -{
  31342. -static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  31343. -test_array [0] = 0
  31344. - ;
  31345. - return 0;
  31346. -}
  31347. -_ACEOF
  31348. -rm -f conftest.$ac_objext
  31349. -if { (ac_try="$ac_compile"
  31350. -case "(($ac_try" in
  31351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31352. - *) ac_try_echo=$ac_try;;
  31353. -esac
  31354. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31355. -$as_echo "$ac_try_echo") >&5
  31356. - (eval "$ac_compile") 2>conftest.er1
  31357. - ac_status=$?
  31358. - grep -v '^ *+' conftest.er1 >conftest.err
  31359. - rm -f conftest.er1
  31360. - cat conftest.err >&5
  31361. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31362. - (exit $ac_status); } && {
  31363. - test -z "$ac_c_werror_flag" ||
  31364. - test ! -s conftest.err
  31365. - } && test -s conftest.$ac_objext; then
  31366. - ac_hi=$ac_mid
  31367. -else
  31368. - $as_echo "$as_me: failed program was:" >&5
  31369. -sed 's/^/| /' conftest.$ac_ext >&5
  31370. +# Check whether --with-libiconv-prefix was given.
  31371. +if test "${with_libiconv_prefix+set}" = set; then :
  31372. + withval=$with_libiconv_prefix;
  31373. + if test "X$withval" = "Xno"; then
  31374. + use_additional=no
  31375. + else
  31376. + if test "X$withval" = "X"; then
  31377. - ac_lo=`expr '(' $ac_mid ')' + 1`
  31378. -fi
  31379. + acl_save_prefix="$prefix"
  31380. + prefix="$acl_final_prefix"
  31381. + acl_save_exec_prefix="$exec_prefix"
  31382. + exec_prefix="$acl_final_exec_prefix"
  31383. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31384. -done
  31385. -case $ac_lo in
  31386. -?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  31387. -'') if test "$ac_cv_type_ptrdiff_t" = yes; then
  31388. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31389. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31390. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  31391. -See \`config.log' for more details." >&5
  31392. -$as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  31393. -See \`config.log' for more details." >&2;}
  31394. - { (exit 77); exit 77; }; }; }
  31395. - else
  31396. - ac_cv_sizeof_ptrdiff_t=0
  31397. - fi ;;
  31398. -esac
  31399. -else
  31400. - cat >conftest.$ac_ext <<_ACEOF
  31401. -/* confdefs.h. */
  31402. -_ACEOF
  31403. -cat confdefs.h >>conftest.$ac_ext
  31404. -cat >>conftest.$ac_ext <<_ACEOF
  31405. -/* end confdefs.h. */
  31406. -$ac_includes_default
  31407. -static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  31408. -static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  31409. -#include <stdio.h>
  31410. -#include <stdlib.h>
  31411. -int
  31412. -main ()
  31413. -{
  31414. + eval additional_includedir=\"$includedir\"
  31415. + eval additional_libdir=\"$libdir\"
  31416. - FILE *f = fopen ("conftest.val", "w");
  31417. - if (! f)
  31418. - return 1;
  31419. - if (((long int) (sizeof (ptrdiff_t))) < 0)
  31420. - {
  31421. - long int i = longval ();
  31422. - if (i != ((long int) (sizeof (ptrdiff_t))))
  31423. - return 1;
  31424. - fprintf (f, "%ld", i);
  31425. - }
  31426. - else
  31427. - {
  31428. - unsigned long int i = ulongval ();
  31429. - if (i != ((long int) (sizeof (ptrdiff_t))))
  31430. - return 1;
  31431. - fprintf (f, "%lu", i);
  31432. - }
  31433. - /* Do not output a trailing newline, as this causes \r\n confusion
  31434. - on some platforms. */
  31435. - return ferror (f) || fclose (f) != 0;
  31436. + exec_prefix="$acl_save_exec_prefix"
  31437. + prefix="$acl_save_prefix"
  31438. - ;
  31439. - return 0;
  31440. -}
  31441. -_ACEOF
  31442. -rm -f conftest$ac_exeext
  31443. -if { (ac_try="$ac_link"
  31444. -case "(($ac_try" in
  31445. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31446. - *) ac_try_echo=$ac_try;;
  31447. -esac
  31448. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31449. -$as_echo "$ac_try_echo") >&5
  31450. - (eval "$ac_link") 2>&5
  31451. - ac_status=$?
  31452. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31453. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31454. - { (case "(($ac_try" in
  31455. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31456. - *) ac_try_echo=$ac_try;;
  31457. -esac
  31458. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31459. -$as_echo "$ac_try_echo") >&5
  31460. - (eval "$ac_try") 2>&5
  31461. - ac_status=$?
  31462. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31463. - (exit $ac_status); }; }; then
  31464. - ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  31465. -else
  31466. - $as_echo "$as_me: program exited with status $ac_status" >&5
  31467. -$as_echo "$as_me: failed program was:" >&5
  31468. -sed 's/^/| /' conftest.$ac_ext >&5
  31469. + else
  31470. + additional_includedir="$withval/include"
  31471. + additional_libdir="$withval/$acl_libdirstem"
  31472. + fi
  31473. + fi
  31474. -( exit $ac_status )
  31475. -if test "$ac_cv_type_ptrdiff_t" = yes; then
  31476. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31477. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31478. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  31479. -See \`config.log' for more details." >&5
  31480. -$as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  31481. -See \`config.log' for more details." >&2;}
  31482. - { (exit 77); exit 77; }; }; }
  31483. - else
  31484. - ac_cv_sizeof_ptrdiff_t=0
  31485. - fi
  31486. -fi
  31487. -rm -rf conftest.dSYM
  31488. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31489. -fi
  31490. -rm -f conftest.val
  31491. fi
  31492. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  31493. -$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  31494. -
  31495. -
  31496. -
  31497. -cat >>confdefs.h <<_ACEOF
  31498. -#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  31499. -_ACEOF
  31500. + LIBICONV=
  31501. + LTLIBICONV=
  31502. + INCICONV=
  31503. + LIBICONV_PREFIX=
  31504. + rpathdirs=
  31505. + ltrpathdirs=
  31506. + names_already_handled=
  31507. + names_next_round='iconv '
  31508. + while test -n "$names_next_round"; do
  31509. + names_this_round="$names_next_round"
  31510. + names_next_round=
  31511. + for name in $names_this_round; do
  31512. + already_handled=
  31513. + for n in $names_already_handled; do
  31514. + if test "$n" = "$name"; then
  31515. + already_handled=yes
  31516. + break
  31517. + fi
  31518. + done
  31519. + if test -z "$already_handled"; then
  31520. + names_already_handled="$names_already_handled $name"
  31521. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  31522. + eval value=\"\$HAVE_LIB$uppername\"
  31523. + if test -n "$value"; then
  31524. + if test "$value" = yes; then
  31525. + eval value=\"\$LIB$uppername\"
  31526. + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  31527. + eval value=\"\$LTLIB$uppername\"
  31528. + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  31529. + else
  31530. + :
  31531. + fi
  31532. + else
  31533. + found_dir=
  31534. + found_la=
  31535. + found_so=
  31536. + found_a=
  31537. + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  31538. + if test -n "$acl_shlibext"; then
  31539. + shrext=".$acl_shlibext" # typically: shrext=.so
  31540. + else
  31541. + shrext=
  31542. + fi
  31543. + if test $use_additional = yes; then
  31544. + dir="$additional_libdir"
  31545. + if test -n "$acl_shlibext"; then
  31546. + if test -f "$dir/$libname$shrext"; then
  31547. + found_dir="$dir"
  31548. + found_so="$dir/$libname$shrext"
  31549. + else
  31550. + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  31551. + ver=`(cd "$dir" && \
  31552. + for f in "$libname$shrext".*; do echo "$f"; done \
  31553. + | sed -e "s,^$libname$shrext\\\\.,," \
  31554. + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  31555. + | sed 1q ) 2>/dev/null`
  31556. + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  31557. + found_dir="$dir"
  31558. + found_so="$dir/$libname$shrext.$ver"
  31559. + fi
  31560. + else
  31561. + eval library_names=\"$acl_library_names_spec\"
  31562. + for f in $library_names; do
  31563. + if test -f "$dir/$f"; then
  31564. + found_dir="$dir"
  31565. + found_so="$dir/$f"
  31566. + break
  31567. + fi
  31568. + done
  31569. + fi
  31570. + fi
  31571. + fi
  31572. + if test "X$found_dir" = "X"; then
  31573. + if test -f "$dir/$libname.$acl_libext"; then
  31574. + found_dir="$dir"
  31575. + found_a="$dir/$libname.$acl_libext"
  31576. + fi
  31577. + fi
  31578. + if test "X$found_dir" != "X"; then
  31579. + if test -f "$dir/$libname.la"; then
  31580. + found_la="$dir/$libname.la"
  31581. + fi
  31582. + fi
  31583. + fi
  31584. + if test "X$found_dir" = "X"; then
  31585. + for x in $LDFLAGS $LTLIBICONV; do
  31586. -# The cast to long int works around a bug in the HP C Compiler
  31587. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31588. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31589. -# This bug is HP SR number 8606223364.
  31590. -{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  31591. -$as_echo_n "checking size of size_t... " >&6; }
  31592. -if test "${ac_cv_sizeof_size_t+set}" = set; then
  31593. - $as_echo_n "(cached) " >&6
  31594. -else
  31595. - if test "$cross_compiling" = yes; then
  31596. - # Depending upon the size, compute the lo and hi bounds.
  31597. -cat >conftest.$ac_ext <<_ACEOF
  31598. -/* confdefs.h. */
  31599. -_ACEOF
  31600. -cat confdefs.h >>conftest.$ac_ext
  31601. -cat >>conftest.$ac_ext <<_ACEOF
  31602. -/* end confdefs.h. */
  31603. -$ac_includes_default
  31604. -int
  31605. -main ()
  31606. -{
  31607. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  31608. -test_array [0] = 0
  31609. -
  31610. - ;
  31611. - return 0;
  31612. -}
  31613. -_ACEOF
  31614. -rm -f conftest.$ac_objext
  31615. -if { (ac_try="$ac_compile"
  31616. -case "(($ac_try" in
  31617. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31618. - *) ac_try_echo=$ac_try;;
  31619. -esac
  31620. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31621. -$as_echo "$ac_try_echo") >&5
  31622. - (eval "$ac_compile") 2>conftest.er1
  31623. - ac_status=$?
  31624. - grep -v '^ *+' conftest.er1 >conftest.err
  31625. - rm -f conftest.er1
  31626. - cat conftest.err >&5
  31627. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31628. - (exit $ac_status); } && {
  31629. - test -z "$ac_c_werror_flag" ||
  31630. - test ! -s conftest.err
  31631. - } && test -s conftest.$ac_objext; then
  31632. - ac_lo=0 ac_mid=0
  31633. - while :; do
  31634. - cat >conftest.$ac_ext <<_ACEOF
  31635. -/* confdefs.h. */
  31636. -_ACEOF
  31637. -cat confdefs.h >>conftest.$ac_ext
  31638. -cat >>conftest.$ac_ext <<_ACEOF
  31639. -/* end confdefs.h. */
  31640. -$ac_includes_default
  31641. -int
  31642. -main ()
  31643. -{
  31644. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  31645. -test_array [0] = 0
  31646. -
  31647. - ;
  31648. - return 0;
  31649. -}
  31650. -_ACEOF
  31651. -rm -f conftest.$ac_objext
  31652. -if { (ac_try="$ac_compile"
  31653. -case "(($ac_try" in
  31654. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31655. - *) ac_try_echo=$ac_try;;
  31656. -esac
  31657. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31658. -$as_echo "$ac_try_echo") >&5
  31659. - (eval "$ac_compile") 2>conftest.er1
  31660. - ac_status=$?
  31661. - grep -v '^ *+' conftest.er1 >conftest.err
  31662. - rm -f conftest.er1
  31663. - cat conftest.err >&5
  31664. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31665. - (exit $ac_status); } && {
  31666. - test -z "$ac_c_werror_flag" ||
  31667. - test ! -s conftest.err
  31668. - } && test -s conftest.$ac_objext; then
  31669. - ac_hi=$ac_mid; break
  31670. -else
  31671. - $as_echo "$as_me: failed program was:" >&5
  31672. -sed 's/^/| /' conftest.$ac_ext >&5
  31673. -
  31674. - ac_lo=`expr $ac_mid + 1`
  31675. - if test $ac_lo -le $ac_mid; then
  31676. - ac_lo= ac_hi=
  31677. - break
  31678. - fi
  31679. - ac_mid=`expr 2 '*' $ac_mid + 1`
  31680. -fi
  31681. -
  31682. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31683. - done
  31684. -else
  31685. - $as_echo "$as_me: failed program was:" >&5
  31686. -sed 's/^/| /' conftest.$ac_ext >&5
  31687. -
  31688. - cat >conftest.$ac_ext <<_ACEOF
  31689. -/* confdefs.h. */
  31690. -_ACEOF
  31691. -cat confdefs.h >>conftest.$ac_ext
  31692. -cat >>conftest.$ac_ext <<_ACEOF
  31693. -/* end confdefs.h. */
  31694. -$ac_includes_default
  31695. -int
  31696. -main ()
  31697. -{
  31698. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  31699. -test_array [0] = 0
  31700. -
  31701. - ;
  31702. - return 0;
  31703. -}
  31704. -_ACEOF
  31705. -rm -f conftest.$ac_objext
  31706. -if { (ac_try="$ac_compile"
  31707. -case "(($ac_try" in
  31708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31709. - *) ac_try_echo=$ac_try;;
  31710. -esac
  31711. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31712. -$as_echo "$ac_try_echo") >&5
  31713. - (eval "$ac_compile") 2>conftest.er1
  31714. - ac_status=$?
  31715. - grep -v '^ *+' conftest.er1 >conftest.err
  31716. - rm -f conftest.er1
  31717. - cat conftest.err >&5
  31718. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31719. - (exit $ac_status); } && {
  31720. - test -z "$ac_c_werror_flag" ||
  31721. - test ! -s conftest.err
  31722. - } && test -s conftest.$ac_objext; then
  31723. - ac_hi=-1 ac_mid=-1
  31724. - while :; do
  31725. - cat >conftest.$ac_ext <<_ACEOF
  31726. -/* confdefs.h. */
  31727. -_ACEOF
  31728. -cat confdefs.h >>conftest.$ac_ext
  31729. -cat >>conftest.$ac_ext <<_ACEOF
  31730. -/* end confdefs.h. */
  31731. -$ac_includes_default
  31732. -int
  31733. -main ()
  31734. -{
  31735. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  31736. -test_array [0] = 0
  31737. -
  31738. - ;
  31739. - return 0;
  31740. -}
  31741. -_ACEOF
  31742. -rm -f conftest.$ac_objext
  31743. -if { (ac_try="$ac_compile"
  31744. -case "(($ac_try" in
  31745. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31746. - *) ac_try_echo=$ac_try;;
  31747. -esac
  31748. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31749. -$as_echo "$ac_try_echo") >&5
  31750. - (eval "$ac_compile") 2>conftest.er1
  31751. - ac_status=$?
  31752. - grep -v '^ *+' conftest.er1 >conftest.err
  31753. - rm -f conftest.er1
  31754. - cat conftest.err >&5
  31755. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31756. - (exit $ac_status); } && {
  31757. - test -z "$ac_c_werror_flag" ||
  31758. - test ! -s conftest.err
  31759. - } && test -s conftest.$ac_objext; then
  31760. - ac_lo=$ac_mid; break
  31761. -else
  31762. - $as_echo "$as_me: failed program was:" >&5
  31763. -sed 's/^/| /' conftest.$ac_ext >&5
  31764. -
  31765. - ac_hi=`expr '(' $ac_mid ')' - 1`
  31766. - if test $ac_mid -le $ac_hi; then
  31767. - ac_lo= ac_hi=
  31768. - break
  31769. - fi
  31770. - ac_mid=`expr 2 '*' $ac_mid`
  31771. -fi
  31772. -
  31773. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31774. - done
  31775. -else
  31776. - $as_echo "$as_me: failed program was:" >&5
  31777. -sed 's/^/| /' conftest.$ac_ext >&5
  31778. -
  31779. - ac_lo= ac_hi=
  31780. -fi
  31781. -
  31782. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31783. -fi
  31784. -
  31785. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31786. -# Binary search between lo and hi bounds.
  31787. -while test "x$ac_lo" != "x$ac_hi"; do
  31788. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31789. - cat >conftest.$ac_ext <<_ACEOF
  31790. -/* confdefs.h. */
  31791. -_ACEOF
  31792. -cat confdefs.h >>conftest.$ac_ext
  31793. -cat >>conftest.$ac_ext <<_ACEOF
  31794. -/* end confdefs.h. */
  31795. -$ac_includes_default
  31796. -int
  31797. -main ()
  31798. -{
  31799. -static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  31800. -test_array [0] = 0
  31801. -
  31802. - ;
  31803. - return 0;
  31804. -}
  31805. -_ACEOF
  31806. -rm -f conftest.$ac_objext
  31807. -if { (ac_try="$ac_compile"
  31808. -case "(($ac_try" in
  31809. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31810. - *) ac_try_echo=$ac_try;;
  31811. -esac
  31812. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31813. -$as_echo "$ac_try_echo") >&5
  31814. - (eval "$ac_compile") 2>conftest.er1
  31815. - ac_status=$?
  31816. - grep -v '^ *+' conftest.er1 >conftest.err
  31817. - rm -f conftest.er1
  31818. - cat conftest.err >&5
  31819. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31820. - (exit $ac_status); } && {
  31821. - test -z "$ac_c_werror_flag" ||
  31822. - test ! -s conftest.err
  31823. - } && test -s conftest.$ac_objext; then
  31824. - ac_hi=$ac_mid
  31825. -else
  31826. - $as_echo "$as_me: failed program was:" >&5
  31827. -sed 's/^/| /' conftest.$ac_ext >&5
  31828. -
  31829. - ac_lo=`expr '(' $ac_mid ')' + 1`
  31830. -fi
  31831. -
  31832. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31833. -done
  31834. -case $ac_lo in
  31835. -?*) ac_cv_sizeof_size_t=$ac_lo;;
  31836. -'') if test "$ac_cv_type_size_t" = yes; then
  31837. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31838. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31839. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  31840. -See \`config.log' for more details." >&5
  31841. -$as_echo "$as_me: error: cannot compute sizeof (size_t)
  31842. -See \`config.log' for more details." >&2;}
  31843. - { (exit 77); exit 77; }; }; }
  31844. - else
  31845. - ac_cv_sizeof_size_t=0
  31846. - fi ;;
  31847. -esac
  31848. -else
  31849. - cat >conftest.$ac_ext <<_ACEOF
  31850. -/* confdefs.h. */
  31851. -_ACEOF
  31852. -cat confdefs.h >>conftest.$ac_ext
  31853. -cat >>conftest.$ac_ext <<_ACEOF
  31854. -/* end confdefs.h. */
  31855. -$ac_includes_default
  31856. -static long int longval () { return (long int) (sizeof (size_t)); }
  31857. -static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  31858. -#include <stdio.h>
  31859. -#include <stdlib.h>
  31860. -int
  31861. -main ()
  31862. -{
  31863. -
  31864. - FILE *f = fopen ("conftest.val", "w");
  31865. - if (! f)
  31866. - return 1;
  31867. - if (((long int) (sizeof (size_t))) < 0)
  31868. - {
  31869. - long int i = longval ();
  31870. - if (i != ((long int) (sizeof (size_t))))
  31871. - return 1;
  31872. - fprintf (f, "%ld", i);
  31873. - }
  31874. - else
  31875. - {
  31876. - unsigned long int i = ulongval ();
  31877. - if (i != ((long int) (sizeof (size_t))))
  31878. - return 1;
  31879. - fprintf (f, "%lu", i);
  31880. - }
  31881. - /* Do not output a trailing newline, as this causes \r\n confusion
  31882. - on some platforms. */
  31883. - return ferror (f) || fclose (f) != 0;
  31884. -
  31885. - ;
  31886. - return 0;
  31887. -}
  31888. -_ACEOF
  31889. -rm -f conftest$ac_exeext
  31890. -if { (ac_try="$ac_link"
  31891. -case "(($ac_try" in
  31892. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31893. - *) ac_try_echo=$ac_try;;
  31894. -esac
  31895. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31896. -$as_echo "$ac_try_echo") >&5
  31897. - (eval "$ac_link") 2>&5
  31898. - ac_status=$?
  31899. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31900. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31901. - { (case "(($ac_try" in
  31902. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31903. - *) ac_try_echo=$ac_try;;
  31904. -esac
  31905. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31906. -$as_echo "$ac_try_echo") >&5
  31907. - (eval "$ac_try") 2>&5
  31908. - ac_status=$?
  31909. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31910. - (exit $ac_status); }; }; then
  31911. - ac_cv_sizeof_size_t=`cat conftest.val`
  31912. -else
  31913. - $as_echo "$as_me: program exited with status $ac_status" >&5
  31914. -$as_echo "$as_me: failed program was:" >&5
  31915. -sed 's/^/| /' conftest.$ac_ext >&5
  31916. -
  31917. -( exit $ac_status )
  31918. -if test "$ac_cv_type_size_t" = yes; then
  31919. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31920. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31921. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  31922. -See \`config.log' for more details." >&5
  31923. -$as_echo "$as_me: error: cannot compute sizeof (size_t)
  31924. -See \`config.log' for more details." >&2;}
  31925. - { (exit 77); exit 77; }; }; }
  31926. - else
  31927. - ac_cv_sizeof_size_t=0
  31928. - fi
  31929. -fi
  31930. -rm -rf conftest.dSYM
  31931. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31932. -fi
  31933. -rm -f conftest.val
  31934. -fi
  31935. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  31936. -$as_echo "$ac_cv_sizeof_size_t" >&6; }
  31937. -
  31938. -
  31939. -
  31940. -cat >>confdefs.h <<_ACEOF
  31941. -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  31942. -_ACEOF
  31943. -
  31944. -
  31945. -# The cast to long int works around a bug in the HP C Compiler
  31946. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31947. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31948. -# This bug is HP SR number 8606223364.
  31949. -{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
  31950. -$as_echo_n "checking size of off_t... " >&6; }
  31951. -if test "${ac_cv_sizeof_off_t+set}" = set; then
  31952. - $as_echo_n "(cached) " >&6
  31953. -else
  31954. - if test "$cross_compiling" = yes; then
  31955. - # Depending upon the size, compute the lo and hi bounds.
  31956. -cat >conftest.$ac_ext <<_ACEOF
  31957. -/* confdefs.h. */
  31958. -_ACEOF
  31959. -cat confdefs.h >>conftest.$ac_ext
  31960. -cat >>conftest.$ac_ext <<_ACEOF
  31961. -/* end confdefs.h. */
  31962. -$ac_includes_default
  31963. -int
  31964. -main ()
  31965. -{
  31966. -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
  31967. -test_array [0] = 0
  31968. -
  31969. - ;
  31970. - return 0;
  31971. -}
  31972. -_ACEOF
  31973. -rm -f conftest.$ac_objext
  31974. -if { (ac_try="$ac_compile"
  31975. -case "(($ac_try" in
  31976. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31977. - *) ac_try_echo=$ac_try;;
  31978. -esac
  31979. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31980. -$as_echo "$ac_try_echo") >&5
  31981. - (eval "$ac_compile") 2>conftest.er1
  31982. - ac_status=$?
  31983. - grep -v '^ *+' conftest.er1 >conftest.err
  31984. - rm -f conftest.er1
  31985. - cat conftest.err >&5
  31986. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31987. - (exit $ac_status); } && {
  31988. - test -z "$ac_c_werror_flag" ||
  31989. - test ! -s conftest.err
  31990. - } && test -s conftest.$ac_objext; then
  31991. - ac_lo=0 ac_mid=0
  31992. - while :; do
  31993. - cat >conftest.$ac_ext <<_ACEOF
  31994. -/* confdefs.h. */
  31995. -_ACEOF
  31996. -cat confdefs.h >>conftest.$ac_ext
  31997. -cat >>conftest.$ac_ext <<_ACEOF
  31998. -/* end confdefs.h. */
  31999. -$ac_includes_default
  32000. -int
  32001. -main ()
  32002. -{
  32003. -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
  32004. -test_array [0] = 0
  32005. -
  32006. - ;
  32007. - return 0;
  32008. -}
  32009. -_ACEOF
  32010. -rm -f conftest.$ac_objext
  32011. -if { (ac_try="$ac_compile"
  32012. -case "(($ac_try" in
  32013. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32014. - *) ac_try_echo=$ac_try;;
  32015. -esac
  32016. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32017. -$as_echo "$ac_try_echo") >&5
  32018. - (eval "$ac_compile") 2>conftest.er1
  32019. - ac_status=$?
  32020. - grep -v '^ *+' conftest.er1 >conftest.err
  32021. - rm -f conftest.er1
  32022. - cat conftest.err >&5
  32023. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32024. - (exit $ac_status); } && {
  32025. - test -z "$ac_c_werror_flag" ||
  32026. - test ! -s conftest.err
  32027. - } && test -s conftest.$ac_objext; then
  32028. - ac_hi=$ac_mid; break
  32029. -else
  32030. - $as_echo "$as_me: failed program was:" >&5
  32031. -sed 's/^/| /' conftest.$ac_ext >&5
  32032. -
  32033. - ac_lo=`expr $ac_mid + 1`
  32034. - if test $ac_lo -le $ac_mid; then
  32035. - ac_lo= ac_hi=
  32036. - break
  32037. - fi
  32038. - ac_mid=`expr 2 '*' $ac_mid + 1`
  32039. -fi
  32040. -
  32041. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32042. - done
  32043. -else
  32044. - $as_echo "$as_me: failed program was:" >&5
  32045. -sed 's/^/| /' conftest.$ac_ext >&5
  32046. -
  32047. - cat >conftest.$ac_ext <<_ACEOF
  32048. -/* confdefs.h. */
  32049. -_ACEOF
  32050. -cat confdefs.h >>conftest.$ac_ext
  32051. -cat >>conftest.$ac_ext <<_ACEOF
  32052. -/* end confdefs.h. */
  32053. -$ac_includes_default
  32054. -int
  32055. -main ()
  32056. -{
  32057. -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
  32058. -test_array [0] = 0
  32059. -
  32060. - ;
  32061. - return 0;
  32062. -}
  32063. -_ACEOF
  32064. -rm -f conftest.$ac_objext
  32065. -if { (ac_try="$ac_compile"
  32066. -case "(($ac_try" in
  32067. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32068. - *) ac_try_echo=$ac_try;;
  32069. -esac
  32070. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32071. -$as_echo "$ac_try_echo") >&5
  32072. - (eval "$ac_compile") 2>conftest.er1
  32073. - ac_status=$?
  32074. - grep -v '^ *+' conftest.er1 >conftest.err
  32075. - rm -f conftest.er1
  32076. - cat conftest.err >&5
  32077. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32078. - (exit $ac_status); } && {
  32079. - test -z "$ac_c_werror_flag" ||
  32080. - test ! -s conftest.err
  32081. - } && test -s conftest.$ac_objext; then
  32082. - ac_hi=-1 ac_mid=-1
  32083. - while :; do
  32084. - cat >conftest.$ac_ext <<_ACEOF
  32085. -/* confdefs.h. */
  32086. -_ACEOF
  32087. -cat confdefs.h >>conftest.$ac_ext
  32088. -cat >>conftest.$ac_ext <<_ACEOF
  32089. -/* end confdefs.h. */
  32090. -$ac_includes_default
  32091. -int
  32092. -main ()
  32093. -{
  32094. -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
  32095. -test_array [0] = 0
  32096. -
  32097. - ;
  32098. - return 0;
  32099. -}
  32100. -_ACEOF
  32101. -rm -f conftest.$ac_objext
  32102. -if { (ac_try="$ac_compile"
  32103. -case "(($ac_try" in
  32104. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32105. - *) ac_try_echo=$ac_try;;
  32106. -esac
  32107. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32108. -$as_echo "$ac_try_echo") >&5
  32109. - (eval "$ac_compile") 2>conftest.er1
  32110. - ac_status=$?
  32111. - grep -v '^ *+' conftest.er1 >conftest.err
  32112. - rm -f conftest.er1
  32113. - cat conftest.err >&5
  32114. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32115. - (exit $ac_status); } && {
  32116. - test -z "$ac_c_werror_flag" ||
  32117. - test ! -s conftest.err
  32118. - } && test -s conftest.$ac_objext; then
  32119. - ac_lo=$ac_mid; break
  32120. -else
  32121. - $as_echo "$as_me: failed program was:" >&5
  32122. -sed 's/^/| /' conftest.$ac_ext >&5
  32123. -
  32124. - ac_hi=`expr '(' $ac_mid ')' - 1`
  32125. - if test $ac_mid -le $ac_hi; then
  32126. - ac_lo= ac_hi=
  32127. - break
  32128. - fi
  32129. - ac_mid=`expr 2 '*' $ac_mid`
  32130. -fi
  32131. -
  32132. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32133. - done
  32134. -else
  32135. - $as_echo "$as_me: failed program was:" >&5
  32136. -sed 's/^/| /' conftest.$ac_ext >&5
  32137. -
  32138. - ac_lo= ac_hi=
  32139. -fi
  32140. -
  32141. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32142. -fi
  32143. -
  32144. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32145. -# Binary search between lo and hi bounds.
  32146. -while test "x$ac_lo" != "x$ac_hi"; do
  32147. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  32148. - cat >conftest.$ac_ext <<_ACEOF
  32149. -/* confdefs.h. */
  32150. -_ACEOF
  32151. -cat confdefs.h >>conftest.$ac_ext
  32152. -cat >>conftest.$ac_ext <<_ACEOF
  32153. -/* end confdefs.h. */
  32154. -$ac_includes_default
  32155. -int
  32156. -main ()
  32157. -{
  32158. -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
  32159. -test_array [0] = 0
  32160. -
  32161. - ;
  32162. - return 0;
  32163. -}
  32164. -_ACEOF
  32165. -rm -f conftest.$ac_objext
  32166. -if { (ac_try="$ac_compile"
  32167. -case "(($ac_try" in
  32168. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32169. - *) ac_try_echo=$ac_try;;
  32170. -esac
  32171. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32172. -$as_echo "$ac_try_echo") >&5
  32173. - (eval "$ac_compile") 2>conftest.er1
  32174. - ac_status=$?
  32175. - grep -v '^ *+' conftest.er1 >conftest.err
  32176. - rm -f conftest.er1
  32177. - cat conftest.err >&5
  32178. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32179. - (exit $ac_status); } && {
  32180. - test -z "$ac_c_werror_flag" ||
  32181. - test ! -s conftest.err
  32182. - } && test -s conftest.$ac_objext; then
  32183. - ac_hi=$ac_mid
  32184. -else
  32185. - $as_echo "$as_me: failed program was:" >&5
  32186. -sed 's/^/| /' conftest.$ac_ext >&5
  32187. -
  32188. - ac_lo=`expr '(' $ac_mid ')' + 1`
  32189. -fi
  32190. -
  32191. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32192. -done
  32193. -case $ac_lo in
  32194. -?*) ac_cv_sizeof_off_t=$ac_lo;;
  32195. -'') if test "$ac_cv_type_off_t" = yes; then
  32196. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  32197. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  32198. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  32199. -See \`config.log' for more details." >&5
  32200. -$as_echo "$as_me: error: cannot compute sizeof (off_t)
  32201. -See \`config.log' for more details." >&2;}
  32202. - { (exit 77); exit 77; }; }; }
  32203. - else
  32204. - ac_cv_sizeof_off_t=0
  32205. - fi ;;
  32206. -esac
  32207. -else
  32208. - cat >conftest.$ac_ext <<_ACEOF
  32209. -/* confdefs.h. */
  32210. -_ACEOF
  32211. -cat confdefs.h >>conftest.$ac_ext
  32212. -cat >>conftest.$ac_ext <<_ACEOF
  32213. -/* end confdefs.h. */
  32214. -$ac_includes_default
  32215. -static long int longval () { return (long int) (sizeof (off_t)); }
  32216. -static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
  32217. -#include <stdio.h>
  32218. -#include <stdlib.h>
  32219. -int
  32220. -main ()
  32221. -{
  32222. -
  32223. - FILE *f = fopen ("conftest.val", "w");
  32224. - if (! f)
  32225. - return 1;
  32226. - if (((long int) (sizeof (off_t))) < 0)
  32227. - {
  32228. - long int i = longval ();
  32229. - if (i != ((long int) (sizeof (off_t))))
  32230. - return 1;
  32231. - fprintf (f, "%ld", i);
  32232. - }
  32233. - else
  32234. - {
  32235. - unsigned long int i = ulongval ();
  32236. - if (i != ((long int) (sizeof (off_t))))
  32237. - return 1;
  32238. - fprintf (f, "%lu", i);
  32239. - }
  32240. - /* Do not output a trailing newline, as this causes \r\n confusion
  32241. - on some platforms. */
  32242. - return ferror (f) || fclose (f) != 0;
  32243. -
  32244. - ;
  32245. - return 0;
  32246. -}
  32247. -_ACEOF
  32248. -rm -f conftest$ac_exeext
  32249. -if { (ac_try="$ac_link"
  32250. -case "(($ac_try" in
  32251. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32252. - *) ac_try_echo=$ac_try;;
  32253. -esac
  32254. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32255. -$as_echo "$ac_try_echo") >&5
  32256. - (eval "$ac_link") 2>&5
  32257. - ac_status=$?
  32258. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32259. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32260. - { (case "(($ac_try" in
  32261. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32262. - *) ac_try_echo=$ac_try;;
  32263. -esac
  32264. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32265. -$as_echo "$ac_try_echo") >&5
  32266. - (eval "$ac_try") 2>&5
  32267. - ac_status=$?
  32268. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32269. - (exit $ac_status); }; }; then
  32270. - ac_cv_sizeof_off_t=`cat conftest.val`
  32271. -else
  32272. - $as_echo "$as_me: program exited with status $ac_status" >&5
  32273. -$as_echo "$as_me: failed program was:" >&5
  32274. -sed 's/^/| /' conftest.$ac_ext >&5
  32275. -
  32276. -( exit $ac_status )
  32277. -if test "$ac_cv_type_off_t" = yes; then
  32278. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  32279. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  32280. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  32281. -See \`config.log' for more details." >&5
  32282. -$as_echo "$as_me: error: cannot compute sizeof (off_t)
  32283. -See \`config.log' for more details." >&2;}
  32284. - { (exit 77); exit 77; }; }; }
  32285. - else
  32286. - ac_cv_sizeof_off_t=0
  32287. - fi
  32288. -fi
  32289. -rm -rf conftest.dSYM
  32290. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32291. -fi
  32292. -rm -f conftest.val
  32293. -fi
  32294. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  32295. -$as_echo "$ac_cv_sizeof_off_t" >&6; }
  32296. -
  32297. -
  32298. -
  32299. -cat >>confdefs.h <<_ACEOF
  32300. -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  32301. -_ACEOF
  32302. -
  32303. -
  32304. -
  32305. -if test "$ac_cv_sizeof_long" -ne "$ac_cv_sizeof_void_p"; then
  32306. - { { $as_echo "$as_me:$LINENO: error: sizes of long and void* are not identical" >&5
  32307. -$as_echo "$as_me: error: sizes of long and void* are not identical" >&2;}
  32308. - { (exit 1); exit 1; }; }
  32309. -fi
  32310. -
  32311. -if test "$ac_cv_sizeof_ptrdiff_t" -ne 0; then
  32312. - SCM_I_GSC_T_PTRDIFF='"ptrdiff_t"'
  32313. -else
  32314. - SCM_I_GSC_T_PTRDIFF='"long"'
  32315. -fi
  32316. -
  32317. -
  32318. -
  32319. -for ac_header in stdint.h
  32320. -do
  32321. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32322. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32323. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  32324. -$as_echo_n "checking for $ac_header... " >&6; }
  32325. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32326. - $as_echo_n "(cached) " >&6
  32327. -fi
  32328. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  32329. - $as_echo "$as_val"'`
  32330. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32331. -$as_echo "$ac_res" >&6; }
  32332. -else
  32333. - # Is the header compilable?
  32334. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  32335. -$as_echo_n "checking $ac_header usability... " >&6; }
  32336. -cat >conftest.$ac_ext <<_ACEOF
  32337. -/* confdefs.h. */
  32338. -_ACEOF
  32339. -cat confdefs.h >>conftest.$ac_ext
  32340. -cat >>conftest.$ac_ext <<_ACEOF
  32341. -/* end confdefs.h. */
  32342. -$ac_includes_default
  32343. -#include <$ac_header>
  32344. -_ACEOF
  32345. -rm -f conftest.$ac_objext
  32346. -if { (ac_try="$ac_compile"
  32347. -case "(($ac_try" in
  32348. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32349. - *) ac_try_echo=$ac_try;;
  32350. -esac
  32351. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32352. -$as_echo "$ac_try_echo") >&5
  32353. - (eval "$ac_compile") 2>conftest.er1
  32354. - ac_status=$?
  32355. - grep -v '^ *+' conftest.er1 >conftest.err
  32356. - rm -f conftest.er1
  32357. - cat conftest.err >&5
  32358. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32359. - (exit $ac_status); } && {
  32360. - test -z "$ac_c_werror_flag" ||
  32361. - test ! -s conftest.err
  32362. - } && test -s conftest.$ac_objext; then
  32363. - ac_header_compiler=yes
  32364. -else
  32365. - $as_echo "$as_me: failed program was:" >&5
  32366. -sed 's/^/| /' conftest.$ac_ext >&5
  32367. -
  32368. - ac_header_compiler=no
  32369. -fi
  32370. -
  32371. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32372. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32373. -$as_echo "$ac_header_compiler" >&6; }
  32374. -
  32375. -# Is the header present?
  32376. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  32377. -$as_echo_n "checking $ac_header presence... " >&6; }
  32378. -cat >conftest.$ac_ext <<_ACEOF
  32379. -/* confdefs.h. */
  32380. -_ACEOF
  32381. -cat confdefs.h >>conftest.$ac_ext
  32382. -cat >>conftest.$ac_ext <<_ACEOF
  32383. -/* end confdefs.h. */
  32384. -#include <$ac_header>
  32385. -_ACEOF
  32386. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  32387. -case "(($ac_try" in
  32388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32389. - *) ac_try_echo=$ac_try;;
  32390. -esac
  32391. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32392. -$as_echo "$ac_try_echo") >&5
  32393. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32394. - ac_status=$?
  32395. - grep -v '^ *+' conftest.er1 >conftest.err
  32396. - rm -f conftest.er1
  32397. - cat conftest.err >&5
  32398. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32399. - (exit $ac_status); } >/dev/null && {
  32400. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32401. - test ! -s conftest.err
  32402. - }; then
  32403. - ac_header_preproc=yes
  32404. -else
  32405. - $as_echo "$as_me: failed program was:" >&5
  32406. -sed 's/^/| /' conftest.$ac_ext >&5
  32407. -
  32408. - ac_header_preproc=no
  32409. -fi
  32410. -
  32411. -rm -f conftest.err conftest.$ac_ext
  32412. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32413. -$as_echo "$ac_header_preproc" >&6; }
  32414. -
  32415. -# So? What about this header?
  32416. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32417. - yes:no: )
  32418. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  32419. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32420. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  32421. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  32422. - ac_header_preproc=yes
  32423. - ;;
  32424. - no:yes:* )
  32425. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  32426. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  32427. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  32428. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  32429. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  32430. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  32431. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  32432. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  32433. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  32434. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  32435. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  32436. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  32437. - ( cat <<\_ASBOX
  32438. -## -------------------------------- ##
  32439. -## Report this to bug-guile@gnu.org ##
  32440. -## -------------------------------- ##
  32441. -_ASBOX
  32442. - ) | sed "s/^/$as_me: WARNING: /" >&2
  32443. - ;;
  32444. -esac
  32445. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  32446. -$as_echo_n "checking for $ac_header... " >&6; }
  32447. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32448. - $as_echo_n "(cached) " >&6
  32449. -else
  32450. - eval "$as_ac_Header=\$ac_header_preproc"
  32451. -fi
  32452. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  32453. - $as_echo "$as_val"'`
  32454. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32455. -$as_echo "$ac_res" >&6; }
  32456. -
  32457. -fi
  32458. -as_val=`eval 'as_val=${'$as_ac_Header'}
  32459. - $as_echo "$as_val"'`
  32460. - if test "x$as_val" = x""yes; then
  32461. - cat >>confdefs.h <<_ACEOF
  32462. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32463. -_ACEOF
  32464. -
  32465. -fi
  32466. -
  32467. -done
  32468. -
  32469. -
  32470. -for ac_header in inttypes.h
  32471. -do
  32472. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32473. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32474. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  32475. -$as_echo_n "checking for $ac_header... " >&6; }
  32476. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32477. - $as_echo_n "(cached) " >&6
  32478. -fi
  32479. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  32480. - $as_echo "$as_val"'`
  32481. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32482. -$as_echo "$ac_res" >&6; }
  32483. -else
  32484. - # Is the header compilable?
  32485. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  32486. -$as_echo_n "checking $ac_header usability... " >&6; }
  32487. -cat >conftest.$ac_ext <<_ACEOF
  32488. -/* confdefs.h. */
  32489. -_ACEOF
  32490. -cat confdefs.h >>conftest.$ac_ext
  32491. -cat >>conftest.$ac_ext <<_ACEOF
  32492. -/* end confdefs.h. */
  32493. -$ac_includes_default
  32494. -#include <$ac_header>
  32495. -_ACEOF
  32496. -rm -f conftest.$ac_objext
  32497. -if { (ac_try="$ac_compile"
  32498. -case "(($ac_try" in
  32499. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32500. - *) ac_try_echo=$ac_try;;
  32501. -esac
  32502. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32503. -$as_echo "$ac_try_echo") >&5
  32504. - (eval "$ac_compile") 2>conftest.er1
  32505. - ac_status=$?
  32506. - grep -v '^ *+' conftest.er1 >conftest.err
  32507. - rm -f conftest.er1
  32508. - cat conftest.err >&5
  32509. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32510. - (exit $ac_status); } && {
  32511. - test -z "$ac_c_werror_flag" ||
  32512. - test ! -s conftest.err
  32513. - } && test -s conftest.$ac_objext; then
  32514. - ac_header_compiler=yes
  32515. -else
  32516. - $as_echo "$as_me: failed program was:" >&5
  32517. -sed 's/^/| /' conftest.$ac_ext >&5
  32518. -
  32519. - ac_header_compiler=no
  32520. -fi
  32521. -
  32522. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32523. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32524. -$as_echo "$ac_header_compiler" >&6; }
  32525. -
  32526. -# Is the header present?
  32527. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  32528. -$as_echo_n "checking $ac_header presence... " >&6; }
  32529. -cat >conftest.$ac_ext <<_ACEOF
  32530. -/* confdefs.h. */
  32531. -_ACEOF
  32532. -cat confdefs.h >>conftest.$ac_ext
  32533. -cat >>conftest.$ac_ext <<_ACEOF
  32534. -/* end confdefs.h. */
  32535. -#include <$ac_header>
  32536. -_ACEOF
  32537. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  32538. -case "(($ac_try" in
  32539. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32540. - *) ac_try_echo=$ac_try;;
  32541. -esac
  32542. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32543. -$as_echo "$ac_try_echo") >&5
  32544. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32545. - ac_status=$?
  32546. - grep -v '^ *+' conftest.er1 >conftest.err
  32547. - rm -f conftest.er1
  32548. - cat conftest.err >&5
  32549. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32550. - (exit $ac_status); } >/dev/null && {
  32551. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32552. - test ! -s conftest.err
  32553. - }; then
  32554. - ac_header_preproc=yes
  32555. -else
  32556. - $as_echo "$as_me: failed program was:" >&5
  32557. -sed 's/^/| /' conftest.$ac_ext >&5
  32558. -
  32559. - ac_header_preproc=no
  32560. -fi
  32561. -
  32562. -rm -f conftest.err conftest.$ac_ext
  32563. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32564. -$as_echo "$ac_header_preproc" >&6; }
  32565. -
  32566. -# So? What about this header?
  32567. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32568. - yes:no: )
  32569. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  32570. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32571. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  32572. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  32573. - ac_header_preproc=yes
  32574. - ;;
  32575. - no:yes:* )
  32576. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  32577. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  32578. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  32579. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  32580. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  32581. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  32582. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  32583. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  32584. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  32585. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  32586. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  32587. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  32588. - ( cat <<\_ASBOX
  32589. -## -------------------------------- ##
  32590. -## Report this to bug-guile@gnu.org ##
  32591. -## -------------------------------- ##
  32592. -_ASBOX
  32593. - ) | sed "s/^/$as_me: WARNING: /" >&2
  32594. - ;;
  32595. -esac
  32596. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  32597. -$as_echo_n "checking for $ac_header... " >&6; }
  32598. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32599. - $as_echo_n "(cached) " >&6
  32600. -else
  32601. - eval "$as_ac_Header=\$ac_header_preproc"
  32602. -fi
  32603. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  32604. - $as_echo "$as_val"'`
  32605. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32606. -$as_echo "$ac_res" >&6; }
  32607. -
  32608. -fi
  32609. -as_val=`eval 'as_val=${'$as_ac_Header'}
  32610. - $as_echo "$as_val"'`
  32611. - if test "x$as_val" = x""yes; then
  32612. - cat >>confdefs.h <<_ACEOF
  32613. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32614. -_ACEOF
  32615. -
  32616. -fi
  32617. -
  32618. -done
  32619. -
  32620. -
  32621. -# The cast to long int works around a bug in the HP C Compiler
  32622. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  32623. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  32624. -# This bug is HP SR number 8606223364.
  32625. -{ $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
  32626. -$as_echo_n "checking size of intmax_t... " >&6; }
  32627. -if test "${ac_cv_sizeof_intmax_t+set}" = set; then
  32628. - $as_echo_n "(cached) " >&6
  32629. -else
  32630. - if test "$cross_compiling" = yes; then
  32631. - # Depending upon the size, compute the lo and hi bounds.
  32632. -cat >conftest.$ac_ext <<_ACEOF
  32633. -/* confdefs.h. */
  32634. -_ACEOF
  32635. -cat confdefs.h >>conftest.$ac_ext
  32636. -cat >>conftest.$ac_ext <<_ACEOF
  32637. -/* end confdefs.h. */
  32638. -$ac_includes_default
  32639. -int
  32640. -main ()
  32641. -{
  32642. -static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
  32643. -test_array [0] = 0
  32644. -
  32645. - ;
  32646. - return 0;
  32647. -}
  32648. -_ACEOF
  32649. -rm -f conftest.$ac_objext
  32650. -if { (ac_try="$ac_compile"
  32651. -case "(($ac_try" in
  32652. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32653. - *) ac_try_echo=$ac_try;;
  32654. -esac
  32655. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32656. -$as_echo "$ac_try_echo") >&5
  32657. - (eval "$ac_compile") 2>conftest.er1
  32658. - ac_status=$?
  32659. - grep -v '^ *+' conftest.er1 >conftest.err
  32660. - rm -f conftest.er1
  32661. - cat conftest.err >&5
  32662. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32663. - (exit $ac_status); } && {
  32664. - test -z "$ac_c_werror_flag" ||
  32665. - test ! -s conftest.err
  32666. - } && test -s conftest.$ac_objext; then
  32667. - ac_lo=0 ac_mid=0
  32668. - while :; do
  32669. - cat >conftest.$ac_ext <<_ACEOF
  32670. -/* confdefs.h. */
  32671. -_ACEOF
  32672. -cat confdefs.h >>conftest.$ac_ext
  32673. -cat >>conftest.$ac_ext <<_ACEOF
  32674. -/* end confdefs.h. */
  32675. -$ac_includes_default
  32676. -int
  32677. -main ()
  32678. -{
  32679. -static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
  32680. -test_array [0] = 0
  32681. -
  32682. - ;
  32683. - return 0;
  32684. -}
  32685. -_ACEOF
  32686. -rm -f conftest.$ac_objext
  32687. -if { (ac_try="$ac_compile"
  32688. -case "(($ac_try" in
  32689. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32690. - *) ac_try_echo=$ac_try;;
  32691. -esac
  32692. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32693. -$as_echo "$ac_try_echo") >&5
  32694. - (eval "$ac_compile") 2>conftest.er1
  32695. - ac_status=$?
  32696. - grep -v '^ *+' conftest.er1 >conftest.err
  32697. - rm -f conftest.er1
  32698. - cat conftest.err >&5
  32699. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32700. - (exit $ac_status); } && {
  32701. - test -z "$ac_c_werror_flag" ||
  32702. - test ! -s conftest.err
  32703. - } && test -s conftest.$ac_objext; then
  32704. - ac_hi=$ac_mid; break
  32705. -else
  32706. - $as_echo "$as_me: failed program was:" >&5
  32707. -sed 's/^/| /' conftest.$ac_ext >&5
  32708. -
  32709. - ac_lo=`expr $ac_mid + 1`
  32710. - if test $ac_lo -le $ac_mid; then
  32711. - ac_lo= ac_hi=
  32712. - break
  32713. - fi
  32714. - ac_mid=`expr 2 '*' $ac_mid + 1`
  32715. -fi
  32716. -
  32717. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32718. - done
  32719. -else
  32720. - $as_echo "$as_me: failed program was:" >&5
  32721. -sed 's/^/| /' conftest.$ac_ext >&5
  32722. -
  32723. - cat >conftest.$ac_ext <<_ACEOF
  32724. -/* confdefs.h. */
  32725. -_ACEOF
  32726. -cat confdefs.h >>conftest.$ac_ext
  32727. -cat >>conftest.$ac_ext <<_ACEOF
  32728. -/* end confdefs.h. */
  32729. -$ac_includes_default
  32730. -int
  32731. -main ()
  32732. -{
  32733. -static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
  32734. -test_array [0] = 0
  32735. -
  32736. - ;
  32737. - return 0;
  32738. -}
  32739. -_ACEOF
  32740. -rm -f conftest.$ac_objext
  32741. -if { (ac_try="$ac_compile"
  32742. -case "(($ac_try" in
  32743. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32744. - *) ac_try_echo=$ac_try;;
  32745. -esac
  32746. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32747. -$as_echo "$ac_try_echo") >&5
  32748. - (eval "$ac_compile") 2>conftest.er1
  32749. - ac_status=$?
  32750. - grep -v '^ *+' conftest.er1 >conftest.err
  32751. - rm -f conftest.er1
  32752. - cat conftest.err >&5
  32753. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32754. - (exit $ac_status); } && {
  32755. - test -z "$ac_c_werror_flag" ||
  32756. - test ! -s conftest.err
  32757. - } && test -s conftest.$ac_objext; then
  32758. - ac_hi=-1 ac_mid=-1
  32759. - while :; do
  32760. - cat >conftest.$ac_ext <<_ACEOF
  32761. -/* confdefs.h. */
  32762. -_ACEOF
  32763. -cat confdefs.h >>conftest.$ac_ext
  32764. -cat >>conftest.$ac_ext <<_ACEOF
  32765. -/* end confdefs.h. */
  32766. -$ac_includes_default
  32767. -int
  32768. -main ()
  32769. -{
  32770. -static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
  32771. -test_array [0] = 0
  32772. -
  32773. - ;
  32774. - return 0;
  32775. -}
  32776. -_ACEOF
  32777. -rm -f conftest.$ac_objext
  32778. -if { (ac_try="$ac_compile"
  32779. -case "(($ac_try" in
  32780. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32781. - *) ac_try_echo=$ac_try;;
  32782. -esac
  32783. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32784. -$as_echo "$ac_try_echo") >&5
  32785. - (eval "$ac_compile") 2>conftest.er1
  32786. - ac_status=$?
  32787. - grep -v '^ *+' conftest.er1 >conftest.err
  32788. - rm -f conftest.er1
  32789. - cat conftest.err >&5
  32790. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32791. - (exit $ac_status); } && {
  32792. - test -z "$ac_c_werror_flag" ||
  32793. - test ! -s conftest.err
  32794. - } && test -s conftest.$ac_objext; then
  32795. - ac_lo=$ac_mid; break
  32796. -else
  32797. - $as_echo "$as_me: failed program was:" >&5
  32798. -sed 's/^/| /' conftest.$ac_ext >&5
  32799. -
  32800. - ac_hi=`expr '(' $ac_mid ')' - 1`
  32801. - if test $ac_mid -le $ac_hi; then
  32802. - ac_lo= ac_hi=
  32803. - break
  32804. - fi
  32805. - ac_mid=`expr 2 '*' $ac_mid`
  32806. -fi
  32807. -
  32808. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32809. - done
  32810. -else
  32811. - $as_echo "$as_me: failed program was:" >&5
  32812. -sed 's/^/| /' conftest.$ac_ext >&5
  32813. -
  32814. - ac_lo= ac_hi=
  32815. -fi
  32816. -
  32817. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32818. -fi
  32819. -
  32820. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32821. -# Binary search between lo and hi bounds.
  32822. -while test "x$ac_lo" != "x$ac_hi"; do
  32823. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  32824. - cat >conftest.$ac_ext <<_ACEOF
  32825. -/* confdefs.h. */
  32826. -_ACEOF
  32827. -cat confdefs.h >>conftest.$ac_ext
  32828. -cat >>conftest.$ac_ext <<_ACEOF
  32829. -/* end confdefs.h. */
  32830. -$ac_includes_default
  32831. -int
  32832. -main ()
  32833. -{
  32834. -static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
  32835. -test_array [0] = 0
  32836. -
  32837. - ;
  32838. - return 0;
  32839. -}
  32840. -_ACEOF
  32841. -rm -f conftest.$ac_objext
  32842. -if { (ac_try="$ac_compile"
  32843. -case "(($ac_try" in
  32844. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32845. - *) ac_try_echo=$ac_try;;
  32846. -esac
  32847. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32848. -$as_echo "$ac_try_echo") >&5
  32849. - (eval "$ac_compile") 2>conftest.er1
  32850. - ac_status=$?
  32851. - grep -v '^ *+' conftest.er1 >conftest.err
  32852. - rm -f conftest.er1
  32853. - cat conftest.err >&5
  32854. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32855. - (exit $ac_status); } && {
  32856. - test -z "$ac_c_werror_flag" ||
  32857. - test ! -s conftest.err
  32858. - } && test -s conftest.$ac_objext; then
  32859. - ac_hi=$ac_mid
  32860. -else
  32861. - $as_echo "$as_me: failed program was:" >&5
  32862. -sed 's/^/| /' conftest.$ac_ext >&5
  32863. -
  32864. - ac_lo=`expr '(' $ac_mid ')' + 1`
  32865. -fi
  32866. -
  32867. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32868. -done
  32869. -case $ac_lo in
  32870. -?*) ac_cv_sizeof_intmax_t=$ac_lo;;
  32871. -'') if test "$ac_cv_type_intmax_t" = yes; then
  32872. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  32873. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  32874. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
  32875. -See \`config.log' for more details." >&5
  32876. -$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
  32877. -See \`config.log' for more details." >&2;}
  32878. - { (exit 77); exit 77; }; }; }
  32879. - else
  32880. - ac_cv_sizeof_intmax_t=0
  32881. - fi ;;
  32882. -esac
  32883. -else
  32884. - cat >conftest.$ac_ext <<_ACEOF
  32885. -/* confdefs.h. */
  32886. -_ACEOF
  32887. -cat confdefs.h >>conftest.$ac_ext
  32888. -cat >>conftest.$ac_ext <<_ACEOF
  32889. -/* end confdefs.h. */
  32890. -$ac_includes_default
  32891. -static long int longval () { return (long int) (sizeof (intmax_t)); }
  32892. -static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
  32893. -#include <stdio.h>
  32894. -#include <stdlib.h>
  32895. -int
  32896. -main ()
  32897. -{
  32898. -
  32899. - FILE *f = fopen ("conftest.val", "w");
  32900. - if (! f)
  32901. - return 1;
  32902. - if (((long int) (sizeof (intmax_t))) < 0)
  32903. - {
  32904. - long int i = longval ();
  32905. - if (i != ((long int) (sizeof (intmax_t))))
  32906. - return 1;
  32907. - fprintf (f, "%ld", i);
  32908. - }
  32909. - else
  32910. - {
  32911. - unsigned long int i = ulongval ();
  32912. - if (i != ((long int) (sizeof (intmax_t))))
  32913. - return 1;
  32914. - fprintf (f, "%lu", i);
  32915. - }
  32916. - /* Do not output a trailing newline, as this causes \r\n confusion
  32917. - on some platforms. */
  32918. - return ferror (f) || fclose (f) != 0;
  32919. -
  32920. - ;
  32921. - return 0;
  32922. -}
  32923. -_ACEOF
  32924. -rm -f conftest$ac_exeext
  32925. -if { (ac_try="$ac_link"
  32926. -case "(($ac_try" in
  32927. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32928. - *) ac_try_echo=$ac_try;;
  32929. -esac
  32930. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32931. -$as_echo "$ac_try_echo") >&5
  32932. - (eval "$ac_link") 2>&5
  32933. - ac_status=$?
  32934. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32935. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32936. - { (case "(($ac_try" in
  32937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32938. - *) ac_try_echo=$ac_try;;
  32939. -esac
  32940. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32941. -$as_echo "$ac_try_echo") >&5
  32942. - (eval "$ac_try") 2>&5
  32943. - ac_status=$?
  32944. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32945. - (exit $ac_status); }; }; then
  32946. - ac_cv_sizeof_intmax_t=`cat conftest.val`
  32947. -else
  32948. - $as_echo "$as_me: program exited with status $ac_status" >&5
  32949. -$as_echo "$as_me: failed program was:" >&5
  32950. -sed 's/^/| /' conftest.$ac_ext >&5
  32951. -
  32952. -( exit $ac_status )
  32953. -if test "$ac_cv_type_intmax_t" = yes; then
  32954. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  32955. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  32956. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
  32957. -See \`config.log' for more details." >&5
  32958. -$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
  32959. -See \`config.log' for more details." >&2;}
  32960. - { (exit 77); exit 77; }; }; }
  32961. - else
  32962. - ac_cv_sizeof_intmax_t=0
  32963. - fi
  32964. -fi
  32965. -rm -rf conftest.dSYM
  32966. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32967. -fi
  32968. -rm -f conftest.val
  32969. -fi
  32970. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
  32971. -$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  32972. -
  32973. -
  32974. -
  32975. -cat >>confdefs.h <<_ACEOF
  32976. -#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  32977. -_ACEOF
  32978. -
  32979. -
  32980. -
  32981. -SCM_I_GSC_NEEDS_STDINT_H=0
  32982. -SCM_I_GSC_NEEDS_INTTYPES_H=0
  32983. -
  32984. -### intptr and uintptr (try not to use inttypes if we don't have to)
  32985. -if test "$ac_cv_header_inttypes_h" = yes; then
  32986. - if test "$ac_cv_sizeof_intptr_t" -eq 0; then
  32987. - # The cast to long int works around a bug in the HP C Compiler
  32988. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  32989. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  32990. -# This bug is HP SR number 8606223364.
  32991. -{ $as_echo "$as_me:$LINENO: checking size of intptr_t" >&5
  32992. -$as_echo_n "checking size of intptr_t... " >&6; }
  32993. -if test "${ac_cv_sizeof_intptr_t+set}" = set; then
  32994. - $as_echo_n "(cached) " >&6
  32995. -else
  32996. - if test "$cross_compiling" = yes; then
  32997. - # Depending upon the size, compute the lo and hi bounds.
  32998. -cat >conftest.$ac_ext <<_ACEOF
  32999. -/* confdefs.h. */
  33000. -_ACEOF
  33001. -cat confdefs.h >>conftest.$ac_ext
  33002. -cat >>conftest.$ac_ext <<_ACEOF
  33003. -/* end confdefs.h. */
  33004. -#include <inttypes.h>
  33005. -#include <stdio.h>
  33006. -
  33007. -int
  33008. -main ()
  33009. -{
  33010. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= 0)];
  33011. -test_array [0] = 0
  33012. -
  33013. - ;
  33014. - return 0;
  33015. -}
  33016. -_ACEOF
  33017. -rm -f conftest.$ac_objext
  33018. -if { (ac_try="$ac_compile"
  33019. -case "(($ac_try" in
  33020. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33021. - *) ac_try_echo=$ac_try;;
  33022. -esac
  33023. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33024. -$as_echo "$ac_try_echo") >&5
  33025. - (eval "$ac_compile") 2>conftest.er1
  33026. - ac_status=$?
  33027. - grep -v '^ *+' conftest.er1 >conftest.err
  33028. - rm -f conftest.er1
  33029. - cat conftest.err >&5
  33030. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33031. - (exit $ac_status); } && {
  33032. - test -z "$ac_c_werror_flag" ||
  33033. - test ! -s conftest.err
  33034. - } && test -s conftest.$ac_objext; then
  33035. - ac_lo=0 ac_mid=0
  33036. - while :; do
  33037. - cat >conftest.$ac_ext <<_ACEOF
  33038. -/* confdefs.h. */
  33039. -_ACEOF
  33040. -cat confdefs.h >>conftest.$ac_ext
  33041. -cat >>conftest.$ac_ext <<_ACEOF
  33042. -/* end confdefs.h. */
  33043. -#include <inttypes.h>
  33044. -#include <stdio.h>
  33045. -
  33046. -int
  33047. -main ()
  33048. -{
  33049. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  33050. -test_array [0] = 0
  33051. -
  33052. - ;
  33053. - return 0;
  33054. -}
  33055. -_ACEOF
  33056. -rm -f conftest.$ac_objext
  33057. -if { (ac_try="$ac_compile"
  33058. -case "(($ac_try" in
  33059. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33060. - *) ac_try_echo=$ac_try;;
  33061. -esac
  33062. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33063. -$as_echo "$ac_try_echo") >&5
  33064. - (eval "$ac_compile") 2>conftest.er1
  33065. - ac_status=$?
  33066. - grep -v '^ *+' conftest.er1 >conftest.err
  33067. - rm -f conftest.er1
  33068. - cat conftest.err >&5
  33069. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33070. - (exit $ac_status); } && {
  33071. - test -z "$ac_c_werror_flag" ||
  33072. - test ! -s conftest.err
  33073. - } && test -s conftest.$ac_objext; then
  33074. - ac_hi=$ac_mid; break
  33075. -else
  33076. - $as_echo "$as_me: failed program was:" >&5
  33077. -sed 's/^/| /' conftest.$ac_ext >&5
  33078. -
  33079. - ac_lo=`expr $ac_mid + 1`
  33080. - if test $ac_lo -le $ac_mid; then
  33081. - ac_lo= ac_hi=
  33082. - break
  33083. - fi
  33084. - ac_mid=`expr 2 '*' $ac_mid + 1`
  33085. -fi
  33086. -
  33087. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33088. - done
  33089. -else
  33090. - $as_echo "$as_me: failed program was:" >&5
  33091. -sed 's/^/| /' conftest.$ac_ext >&5
  33092. -
  33093. - cat >conftest.$ac_ext <<_ACEOF
  33094. -/* confdefs.h. */
  33095. -_ACEOF
  33096. -cat confdefs.h >>conftest.$ac_ext
  33097. -cat >>conftest.$ac_ext <<_ACEOF
  33098. -/* end confdefs.h. */
  33099. -#include <inttypes.h>
  33100. -#include <stdio.h>
  33101. -
  33102. -int
  33103. -main ()
  33104. -{
  33105. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) < 0)];
  33106. -test_array [0] = 0
  33107. -
  33108. - ;
  33109. - return 0;
  33110. -}
  33111. -_ACEOF
  33112. -rm -f conftest.$ac_objext
  33113. -if { (ac_try="$ac_compile"
  33114. -case "(($ac_try" in
  33115. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33116. - *) ac_try_echo=$ac_try;;
  33117. -esac
  33118. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33119. -$as_echo "$ac_try_echo") >&5
  33120. - (eval "$ac_compile") 2>conftest.er1
  33121. - ac_status=$?
  33122. - grep -v '^ *+' conftest.er1 >conftest.err
  33123. - rm -f conftest.er1
  33124. - cat conftest.err >&5
  33125. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33126. - (exit $ac_status); } && {
  33127. - test -z "$ac_c_werror_flag" ||
  33128. - test ! -s conftest.err
  33129. - } && test -s conftest.$ac_objext; then
  33130. - ac_hi=-1 ac_mid=-1
  33131. - while :; do
  33132. - cat >conftest.$ac_ext <<_ACEOF
  33133. -/* confdefs.h. */
  33134. -_ACEOF
  33135. -cat confdefs.h >>conftest.$ac_ext
  33136. -cat >>conftest.$ac_ext <<_ACEOF
  33137. -/* end confdefs.h. */
  33138. -#include <inttypes.h>
  33139. -#include <stdio.h>
  33140. -
  33141. -int
  33142. -main ()
  33143. -{
  33144. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= $ac_mid)];
  33145. -test_array [0] = 0
  33146. -
  33147. - ;
  33148. - return 0;
  33149. -}
  33150. -_ACEOF
  33151. -rm -f conftest.$ac_objext
  33152. -if { (ac_try="$ac_compile"
  33153. -case "(($ac_try" in
  33154. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33155. - *) ac_try_echo=$ac_try;;
  33156. -esac
  33157. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33158. -$as_echo "$ac_try_echo") >&5
  33159. - (eval "$ac_compile") 2>conftest.er1
  33160. - ac_status=$?
  33161. - grep -v '^ *+' conftest.er1 >conftest.err
  33162. - rm -f conftest.er1
  33163. - cat conftest.err >&5
  33164. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33165. - (exit $ac_status); } && {
  33166. - test -z "$ac_c_werror_flag" ||
  33167. - test ! -s conftest.err
  33168. - } && test -s conftest.$ac_objext; then
  33169. - ac_lo=$ac_mid; break
  33170. -else
  33171. - $as_echo "$as_me: failed program was:" >&5
  33172. -sed 's/^/| /' conftest.$ac_ext >&5
  33173. -
  33174. - ac_hi=`expr '(' $ac_mid ')' - 1`
  33175. - if test $ac_mid -le $ac_hi; then
  33176. - ac_lo= ac_hi=
  33177. - break
  33178. - fi
  33179. - ac_mid=`expr 2 '*' $ac_mid`
  33180. -fi
  33181. -
  33182. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33183. - done
  33184. -else
  33185. - $as_echo "$as_me: failed program was:" >&5
  33186. -sed 's/^/| /' conftest.$ac_ext >&5
  33187. -
  33188. - ac_lo= ac_hi=
  33189. -fi
  33190. -
  33191. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33192. -fi
  33193. -
  33194. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33195. -# Binary search between lo and hi bounds.
  33196. -while test "x$ac_lo" != "x$ac_hi"; do
  33197. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  33198. - cat >conftest.$ac_ext <<_ACEOF
  33199. -/* confdefs.h. */
  33200. -_ACEOF
  33201. -cat confdefs.h >>conftest.$ac_ext
  33202. -cat >>conftest.$ac_ext <<_ACEOF
  33203. -/* end confdefs.h. */
  33204. -#include <inttypes.h>
  33205. -#include <stdio.h>
  33206. -
  33207. -int
  33208. -main ()
  33209. -{
  33210. -static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  33211. -test_array [0] = 0
  33212. -
  33213. - ;
  33214. - return 0;
  33215. -}
  33216. -_ACEOF
  33217. -rm -f conftest.$ac_objext
  33218. -if { (ac_try="$ac_compile"
  33219. -case "(($ac_try" in
  33220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33221. - *) ac_try_echo=$ac_try;;
  33222. -esac
  33223. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33224. -$as_echo "$ac_try_echo") >&5
  33225. - (eval "$ac_compile") 2>conftest.er1
  33226. - ac_status=$?
  33227. - grep -v '^ *+' conftest.er1 >conftest.err
  33228. - rm -f conftest.er1
  33229. - cat conftest.err >&5
  33230. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33231. - (exit $ac_status); } && {
  33232. - test -z "$ac_c_werror_flag" ||
  33233. - test ! -s conftest.err
  33234. - } && test -s conftest.$ac_objext; then
  33235. - ac_hi=$ac_mid
  33236. -else
  33237. - $as_echo "$as_me: failed program was:" >&5
  33238. -sed 's/^/| /' conftest.$ac_ext >&5
  33239. -
  33240. - ac_lo=`expr '(' $ac_mid ')' + 1`
  33241. -fi
  33242. -
  33243. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33244. -done
  33245. -case $ac_lo in
  33246. -?*) ac_cv_sizeof_intptr_t=$ac_lo;;
  33247. -'') if test "$ac_cv_type_intptr_t" = yes; then
  33248. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  33249. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  33250. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  33251. -See \`config.log' for more details." >&5
  33252. -$as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  33253. -See \`config.log' for more details." >&2;}
  33254. - { (exit 77); exit 77; }; }; }
  33255. - else
  33256. - ac_cv_sizeof_intptr_t=0
  33257. - fi ;;
  33258. -esac
  33259. -else
  33260. - cat >conftest.$ac_ext <<_ACEOF
  33261. -/* confdefs.h. */
  33262. -_ACEOF
  33263. -cat confdefs.h >>conftest.$ac_ext
  33264. -cat >>conftest.$ac_ext <<_ACEOF
  33265. -/* end confdefs.h. */
  33266. -#include <inttypes.h>
  33267. -#include <stdio.h>
  33268. -
  33269. -static long int longval () { return (long int) (sizeof (intptr_t)); }
  33270. -static unsigned long int ulongval () { return (long int) (sizeof (intptr_t)); }
  33271. -#include <stdio.h>
  33272. -#include <stdlib.h>
  33273. -int
  33274. -main ()
  33275. -{
  33276. -
  33277. - FILE *f = fopen ("conftest.val", "w");
  33278. - if (! f)
  33279. - return 1;
  33280. - if (((long int) (sizeof (intptr_t))) < 0)
  33281. - {
  33282. - long int i = longval ();
  33283. - if (i != ((long int) (sizeof (intptr_t))))
  33284. - return 1;
  33285. - fprintf (f, "%ld", i);
  33286. - }
  33287. - else
  33288. - {
  33289. - unsigned long int i = ulongval ();
  33290. - if (i != ((long int) (sizeof (intptr_t))))
  33291. - return 1;
  33292. - fprintf (f, "%lu", i);
  33293. - }
  33294. - /* Do not output a trailing newline, as this causes \r\n confusion
  33295. - on some platforms. */
  33296. - return ferror (f) || fclose (f) != 0;
  33297. -
  33298. - ;
  33299. - return 0;
  33300. -}
  33301. -_ACEOF
  33302. -rm -f conftest$ac_exeext
  33303. -if { (ac_try="$ac_link"
  33304. -case "(($ac_try" in
  33305. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33306. - *) ac_try_echo=$ac_try;;
  33307. -esac
  33308. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33309. -$as_echo "$ac_try_echo") >&5
  33310. - (eval "$ac_link") 2>&5
  33311. - ac_status=$?
  33312. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33313. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  33314. - { (case "(($ac_try" in
  33315. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33316. - *) ac_try_echo=$ac_try;;
  33317. -esac
  33318. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33319. -$as_echo "$ac_try_echo") >&5
  33320. - (eval "$ac_try") 2>&5
  33321. - ac_status=$?
  33322. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33323. - (exit $ac_status); }; }; then
  33324. - ac_cv_sizeof_intptr_t=`cat conftest.val`
  33325. -else
  33326. - $as_echo "$as_me: program exited with status $ac_status" >&5
  33327. -$as_echo "$as_me: failed program was:" >&5
  33328. -sed 's/^/| /' conftest.$ac_ext >&5
  33329. -
  33330. -( exit $ac_status )
  33331. -if test "$ac_cv_type_intptr_t" = yes; then
  33332. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  33333. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  33334. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  33335. -See \`config.log' for more details." >&5
  33336. -$as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  33337. -See \`config.log' for more details." >&2;}
  33338. - { (exit 77); exit 77; }; }; }
  33339. - else
  33340. - ac_cv_sizeof_intptr_t=0
  33341. - fi
  33342. -fi
  33343. -rm -rf conftest.dSYM
  33344. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  33345. -fi
  33346. -rm -f conftest.val
  33347. -fi
  33348. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
  33349. -$as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  33350. -
  33351. -
  33352. -
  33353. -cat >>confdefs.h <<_ACEOF
  33354. -#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  33355. -_ACEOF
  33356. -
  33357. -
  33358. - if test "$ac_cv_sizeof_intptr_t" -ne 0; then
  33359. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  33360. - fi
  33361. - fi
  33362. - if test "$ac_cv_sizeof_uintptr_t" -eq 0; then
  33363. - # The cast to long int works around a bug in the HP C Compiler
  33364. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  33365. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  33366. -# This bug is HP SR number 8606223364.
  33367. -{ $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
  33368. -$as_echo_n "checking size of uintptr_t... " >&6; }
  33369. -if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
  33370. - $as_echo_n "(cached) " >&6
  33371. -else
  33372. - if test "$cross_compiling" = yes; then
  33373. - # Depending upon the size, compute the lo and hi bounds.
  33374. -cat >conftest.$ac_ext <<_ACEOF
  33375. -/* confdefs.h. */
  33376. -_ACEOF
  33377. -cat confdefs.h >>conftest.$ac_ext
  33378. -cat >>conftest.$ac_ext <<_ACEOF
  33379. -/* end confdefs.h. */
  33380. -#include <inttypes.h>
  33381. -#include <stdio.h>
  33382. -
  33383. -int
  33384. -main ()
  33385. -{
  33386. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
  33387. -test_array [0] = 0
  33388. -
  33389. - ;
  33390. - return 0;
  33391. -}
  33392. -_ACEOF
  33393. -rm -f conftest.$ac_objext
  33394. -if { (ac_try="$ac_compile"
  33395. -case "(($ac_try" in
  33396. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33397. - *) ac_try_echo=$ac_try;;
  33398. -esac
  33399. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33400. -$as_echo "$ac_try_echo") >&5
  33401. - (eval "$ac_compile") 2>conftest.er1
  33402. - ac_status=$?
  33403. - grep -v '^ *+' conftest.er1 >conftest.err
  33404. - rm -f conftest.er1
  33405. - cat conftest.err >&5
  33406. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33407. - (exit $ac_status); } && {
  33408. - test -z "$ac_c_werror_flag" ||
  33409. - test ! -s conftest.err
  33410. - } && test -s conftest.$ac_objext; then
  33411. - ac_lo=0 ac_mid=0
  33412. - while :; do
  33413. - cat >conftest.$ac_ext <<_ACEOF
  33414. -/* confdefs.h. */
  33415. -_ACEOF
  33416. -cat confdefs.h >>conftest.$ac_ext
  33417. -cat >>conftest.$ac_ext <<_ACEOF
  33418. -/* end confdefs.h. */
  33419. -#include <inttypes.h>
  33420. -#include <stdio.h>
  33421. -
  33422. -int
  33423. -main ()
  33424. -{
  33425. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  33426. -test_array [0] = 0
  33427. -
  33428. - ;
  33429. - return 0;
  33430. -}
  33431. -_ACEOF
  33432. -rm -f conftest.$ac_objext
  33433. -if { (ac_try="$ac_compile"
  33434. -case "(($ac_try" in
  33435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33436. - *) ac_try_echo=$ac_try;;
  33437. -esac
  33438. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33439. -$as_echo "$ac_try_echo") >&5
  33440. - (eval "$ac_compile") 2>conftest.er1
  33441. - ac_status=$?
  33442. - grep -v '^ *+' conftest.er1 >conftest.err
  33443. - rm -f conftest.er1
  33444. - cat conftest.err >&5
  33445. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33446. - (exit $ac_status); } && {
  33447. - test -z "$ac_c_werror_flag" ||
  33448. - test ! -s conftest.err
  33449. - } && test -s conftest.$ac_objext; then
  33450. - ac_hi=$ac_mid; break
  33451. -else
  33452. - $as_echo "$as_me: failed program was:" >&5
  33453. -sed 's/^/| /' conftest.$ac_ext >&5
  33454. -
  33455. - ac_lo=`expr $ac_mid + 1`
  33456. - if test $ac_lo -le $ac_mid; then
  33457. - ac_lo= ac_hi=
  33458. - break
  33459. - fi
  33460. - ac_mid=`expr 2 '*' $ac_mid + 1`
  33461. -fi
  33462. -
  33463. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33464. - done
  33465. -else
  33466. - $as_echo "$as_me: failed program was:" >&5
  33467. -sed 's/^/| /' conftest.$ac_ext >&5
  33468. -
  33469. - cat >conftest.$ac_ext <<_ACEOF
  33470. -/* confdefs.h. */
  33471. -_ACEOF
  33472. -cat confdefs.h >>conftest.$ac_ext
  33473. -cat >>conftest.$ac_ext <<_ACEOF
  33474. -/* end confdefs.h. */
  33475. -#include <inttypes.h>
  33476. -#include <stdio.h>
  33477. -
  33478. -int
  33479. -main ()
  33480. -{
  33481. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
  33482. -test_array [0] = 0
  33483. -
  33484. - ;
  33485. - return 0;
  33486. -}
  33487. -_ACEOF
  33488. -rm -f conftest.$ac_objext
  33489. -if { (ac_try="$ac_compile"
  33490. -case "(($ac_try" in
  33491. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33492. - *) ac_try_echo=$ac_try;;
  33493. -esac
  33494. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33495. -$as_echo "$ac_try_echo") >&5
  33496. - (eval "$ac_compile") 2>conftest.er1
  33497. - ac_status=$?
  33498. - grep -v '^ *+' conftest.er1 >conftest.err
  33499. - rm -f conftest.er1
  33500. - cat conftest.err >&5
  33501. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33502. - (exit $ac_status); } && {
  33503. - test -z "$ac_c_werror_flag" ||
  33504. - test ! -s conftest.err
  33505. - } && test -s conftest.$ac_objext; then
  33506. - ac_hi=-1 ac_mid=-1
  33507. - while :; do
  33508. - cat >conftest.$ac_ext <<_ACEOF
  33509. -/* confdefs.h. */
  33510. -_ACEOF
  33511. -cat confdefs.h >>conftest.$ac_ext
  33512. -cat >>conftest.$ac_ext <<_ACEOF
  33513. -/* end confdefs.h. */
  33514. -#include <inttypes.h>
  33515. -#include <stdio.h>
  33516. -
  33517. -int
  33518. -main ()
  33519. -{
  33520. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
  33521. -test_array [0] = 0
  33522. -
  33523. - ;
  33524. - return 0;
  33525. -}
  33526. -_ACEOF
  33527. -rm -f conftest.$ac_objext
  33528. -if { (ac_try="$ac_compile"
  33529. -case "(($ac_try" in
  33530. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33531. - *) ac_try_echo=$ac_try;;
  33532. -esac
  33533. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33534. -$as_echo "$ac_try_echo") >&5
  33535. - (eval "$ac_compile") 2>conftest.er1
  33536. - ac_status=$?
  33537. - grep -v '^ *+' conftest.er1 >conftest.err
  33538. - rm -f conftest.er1
  33539. - cat conftest.err >&5
  33540. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33541. - (exit $ac_status); } && {
  33542. - test -z "$ac_c_werror_flag" ||
  33543. - test ! -s conftest.err
  33544. - } && test -s conftest.$ac_objext; then
  33545. - ac_lo=$ac_mid; break
  33546. -else
  33547. - $as_echo "$as_me: failed program was:" >&5
  33548. -sed 's/^/| /' conftest.$ac_ext >&5
  33549. -
  33550. - ac_hi=`expr '(' $ac_mid ')' - 1`
  33551. - if test $ac_mid -le $ac_hi; then
  33552. - ac_lo= ac_hi=
  33553. - break
  33554. - fi
  33555. - ac_mid=`expr 2 '*' $ac_mid`
  33556. -fi
  33557. -
  33558. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33559. - done
  33560. -else
  33561. - $as_echo "$as_me: failed program was:" >&5
  33562. -sed 's/^/| /' conftest.$ac_ext >&5
  33563. -
  33564. - ac_lo= ac_hi=
  33565. -fi
  33566. -
  33567. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33568. -fi
  33569. -
  33570. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33571. -# Binary search between lo and hi bounds.
  33572. -while test "x$ac_lo" != "x$ac_hi"; do
  33573. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  33574. - cat >conftest.$ac_ext <<_ACEOF
  33575. -/* confdefs.h. */
  33576. -_ACEOF
  33577. -cat confdefs.h >>conftest.$ac_ext
  33578. -cat >>conftest.$ac_ext <<_ACEOF
  33579. -/* end confdefs.h. */
  33580. -#include <inttypes.h>
  33581. -#include <stdio.h>
  33582. -
  33583. -int
  33584. -main ()
  33585. -{
  33586. -static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  33587. -test_array [0] = 0
  33588. -
  33589. - ;
  33590. - return 0;
  33591. -}
  33592. -_ACEOF
  33593. -rm -f conftest.$ac_objext
  33594. -if { (ac_try="$ac_compile"
  33595. -case "(($ac_try" in
  33596. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33597. - *) ac_try_echo=$ac_try;;
  33598. -esac
  33599. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33600. -$as_echo "$ac_try_echo") >&5
  33601. - (eval "$ac_compile") 2>conftest.er1
  33602. - ac_status=$?
  33603. - grep -v '^ *+' conftest.er1 >conftest.err
  33604. - rm -f conftest.er1
  33605. - cat conftest.err >&5
  33606. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33607. - (exit $ac_status); } && {
  33608. - test -z "$ac_c_werror_flag" ||
  33609. - test ! -s conftest.err
  33610. - } && test -s conftest.$ac_objext; then
  33611. - ac_hi=$ac_mid
  33612. -else
  33613. - $as_echo "$as_me: failed program was:" >&5
  33614. -sed 's/^/| /' conftest.$ac_ext >&5
  33615. -
  33616. - ac_lo=`expr '(' $ac_mid ')' + 1`
  33617. -fi
  33618. -
  33619. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33620. -done
  33621. -case $ac_lo in
  33622. -?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
  33623. -'') if test "$ac_cv_type_uintptr_t" = yes; then
  33624. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  33625. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  33626. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  33627. -See \`config.log' for more details." >&5
  33628. -$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  33629. -See \`config.log' for more details." >&2;}
  33630. - { (exit 77); exit 77; }; }; }
  33631. - else
  33632. - ac_cv_sizeof_uintptr_t=0
  33633. - fi ;;
  33634. -esac
  33635. -else
  33636. - cat >conftest.$ac_ext <<_ACEOF
  33637. -/* confdefs.h. */
  33638. -_ACEOF
  33639. -cat confdefs.h >>conftest.$ac_ext
  33640. -cat >>conftest.$ac_ext <<_ACEOF
  33641. -/* end confdefs.h. */
  33642. -#include <inttypes.h>
  33643. -#include <stdio.h>
  33644. -
  33645. -static long int longval () { return (long int) (sizeof (uintptr_t)); }
  33646. -static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
  33647. -#include <stdio.h>
  33648. -#include <stdlib.h>
  33649. -int
  33650. -main ()
  33651. -{
  33652. -
  33653. - FILE *f = fopen ("conftest.val", "w");
  33654. - if (! f)
  33655. - return 1;
  33656. - if (((long int) (sizeof (uintptr_t))) < 0)
  33657. - {
  33658. - long int i = longval ();
  33659. - if (i != ((long int) (sizeof (uintptr_t))))
  33660. - return 1;
  33661. - fprintf (f, "%ld", i);
  33662. - }
  33663. - else
  33664. - {
  33665. - unsigned long int i = ulongval ();
  33666. - if (i != ((long int) (sizeof (uintptr_t))))
  33667. - return 1;
  33668. - fprintf (f, "%lu", i);
  33669. - }
  33670. - /* Do not output a trailing newline, as this causes \r\n confusion
  33671. - on some platforms. */
  33672. - return ferror (f) || fclose (f) != 0;
  33673. -
  33674. - ;
  33675. - return 0;
  33676. -}
  33677. -_ACEOF
  33678. -rm -f conftest$ac_exeext
  33679. -if { (ac_try="$ac_link"
  33680. -case "(($ac_try" in
  33681. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33682. - *) ac_try_echo=$ac_try;;
  33683. -esac
  33684. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33685. -$as_echo "$ac_try_echo") >&5
  33686. - (eval "$ac_link") 2>&5
  33687. - ac_status=$?
  33688. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33689. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  33690. - { (case "(($ac_try" in
  33691. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33692. - *) ac_try_echo=$ac_try;;
  33693. -esac
  33694. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33695. -$as_echo "$ac_try_echo") >&5
  33696. - (eval "$ac_try") 2>&5
  33697. - ac_status=$?
  33698. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33699. - (exit $ac_status); }; }; then
  33700. - ac_cv_sizeof_uintptr_t=`cat conftest.val`
  33701. -else
  33702. - $as_echo "$as_me: program exited with status $ac_status" >&5
  33703. -$as_echo "$as_me: failed program was:" >&5
  33704. -sed 's/^/| /' conftest.$ac_ext >&5
  33705. -
  33706. -( exit $ac_status )
  33707. -if test "$ac_cv_type_uintptr_t" = yes; then
  33708. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  33709. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  33710. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  33711. -See \`config.log' for more details." >&5
  33712. -$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  33713. -See \`config.log' for more details." >&2;}
  33714. - { (exit 77); exit 77; }; }; }
  33715. - else
  33716. - ac_cv_sizeof_uintptr_t=0
  33717. - fi
  33718. -fi
  33719. -rm -rf conftest.dSYM
  33720. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  33721. -fi
  33722. -rm -f conftest.val
  33723. -fi
  33724. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
  33725. -$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  33726. -
  33727. -
  33728. -
  33729. -cat >>confdefs.h <<_ACEOF
  33730. -#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  33731. -_ACEOF
  33732. -
  33733. -
  33734. - if test "$ac_cv_sizeof_uintptr_t" -ne 0; then
  33735. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  33736. - fi
  33737. - fi
  33738. -fi
  33739. -
  33740. -### See what's provided by stdint.h
  33741. -if test "$ac_cv_header_stdint_h" = yes; then
  33742. - { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  33743. -$as_echo_n "checking for int8_t... " >&6; }
  33744. -if test "${ac_cv_type_int8_t+set}" = set; then
  33745. - $as_echo_n "(cached) " >&6
  33746. -else
  33747. - ac_cv_type_int8_t=no
  33748. -cat >conftest.$ac_ext <<_ACEOF
  33749. -/* confdefs.h. */
  33750. -_ACEOF
  33751. -cat confdefs.h >>conftest.$ac_ext
  33752. -cat >>conftest.$ac_ext <<_ACEOF
  33753. -/* end confdefs.h. */
  33754. -#include <stdint.h>
  33755. -
  33756. -int
  33757. -main ()
  33758. -{
  33759. -if (sizeof (int8_t))
  33760. - return 0;
  33761. - ;
  33762. - return 0;
  33763. -}
  33764. -_ACEOF
  33765. -rm -f conftest.$ac_objext
  33766. -if { (ac_try="$ac_compile"
  33767. -case "(($ac_try" in
  33768. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33769. - *) ac_try_echo=$ac_try;;
  33770. -esac
  33771. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33772. -$as_echo "$ac_try_echo") >&5
  33773. - (eval "$ac_compile") 2>conftest.er1
  33774. - ac_status=$?
  33775. - grep -v '^ *+' conftest.er1 >conftest.err
  33776. - rm -f conftest.er1
  33777. - cat conftest.err >&5
  33778. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33779. - (exit $ac_status); } && {
  33780. - test -z "$ac_c_werror_flag" ||
  33781. - test ! -s conftest.err
  33782. - } && test -s conftest.$ac_objext; then
  33783. - cat >conftest.$ac_ext <<_ACEOF
  33784. -/* confdefs.h. */
  33785. -_ACEOF
  33786. -cat confdefs.h >>conftest.$ac_ext
  33787. -cat >>conftest.$ac_ext <<_ACEOF
  33788. -/* end confdefs.h. */
  33789. -#include <stdint.h>
  33790. -
  33791. -int
  33792. -main ()
  33793. -{
  33794. -if (sizeof ((int8_t)))
  33795. - return 0;
  33796. - ;
  33797. - return 0;
  33798. -}
  33799. -_ACEOF
  33800. -rm -f conftest.$ac_objext
  33801. -if { (ac_try="$ac_compile"
  33802. -case "(($ac_try" in
  33803. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33804. - *) ac_try_echo=$ac_try;;
  33805. -esac
  33806. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33807. -$as_echo "$ac_try_echo") >&5
  33808. - (eval "$ac_compile") 2>conftest.er1
  33809. - ac_status=$?
  33810. - grep -v '^ *+' conftest.er1 >conftest.err
  33811. - rm -f conftest.er1
  33812. - cat conftest.err >&5
  33813. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33814. - (exit $ac_status); } && {
  33815. - test -z "$ac_c_werror_flag" ||
  33816. - test ! -s conftest.err
  33817. - } && test -s conftest.$ac_objext; then
  33818. - :
  33819. -else
  33820. - $as_echo "$as_me: failed program was:" >&5
  33821. -sed 's/^/| /' conftest.$ac_ext >&5
  33822. -
  33823. - ac_cv_type_int8_t=yes
  33824. -fi
  33825. -
  33826. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33827. -else
  33828. - $as_echo "$as_me: failed program was:" >&5
  33829. -sed 's/^/| /' conftest.$ac_ext >&5
  33830. -
  33831. -
  33832. -fi
  33833. -
  33834. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33835. -fi
  33836. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  33837. -$as_echo "$ac_cv_type_int8_t" >&6; }
  33838. -if test "x$ac_cv_type_int8_t" = x""yes; then
  33839. - scm_stdint_has_int8=1
  33840. -fi
  33841. -
  33842. - { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  33843. -$as_echo_n "checking for uint8_t... " >&6; }
  33844. -if test "${ac_cv_type_uint8_t+set}" = set; then
  33845. - $as_echo_n "(cached) " >&6
  33846. -else
  33847. - ac_cv_type_uint8_t=no
  33848. -cat >conftest.$ac_ext <<_ACEOF
  33849. -/* confdefs.h. */
  33850. -_ACEOF
  33851. -cat confdefs.h >>conftest.$ac_ext
  33852. -cat >>conftest.$ac_ext <<_ACEOF
  33853. -/* end confdefs.h. */
  33854. -#include <stdint.h>
  33855. -
  33856. -int
  33857. -main ()
  33858. -{
  33859. -if (sizeof (uint8_t))
  33860. - return 0;
  33861. - ;
  33862. - return 0;
  33863. -}
  33864. -_ACEOF
  33865. -rm -f conftest.$ac_objext
  33866. -if { (ac_try="$ac_compile"
  33867. -case "(($ac_try" in
  33868. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33869. - *) ac_try_echo=$ac_try;;
  33870. -esac
  33871. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33872. -$as_echo "$ac_try_echo") >&5
  33873. - (eval "$ac_compile") 2>conftest.er1
  33874. - ac_status=$?
  33875. - grep -v '^ *+' conftest.er1 >conftest.err
  33876. - rm -f conftest.er1
  33877. - cat conftest.err >&5
  33878. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33879. - (exit $ac_status); } && {
  33880. - test -z "$ac_c_werror_flag" ||
  33881. - test ! -s conftest.err
  33882. - } && test -s conftest.$ac_objext; then
  33883. - cat >conftest.$ac_ext <<_ACEOF
  33884. -/* confdefs.h. */
  33885. -_ACEOF
  33886. -cat confdefs.h >>conftest.$ac_ext
  33887. -cat >>conftest.$ac_ext <<_ACEOF
  33888. -/* end confdefs.h. */
  33889. -#include <stdint.h>
  33890. -
  33891. -int
  33892. -main ()
  33893. -{
  33894. -if (sizeof ((uint8_t)))
  33895. - return 0;
  33896. - ;
  33897. - return 0;
  33898. -}
  33899. -_ACEOF
  33900. -rm -f conftest.$ac_objext
  33901. -if { (ac_try="$ac_compile"
  33902. -case "(($ac_try" in
  33903. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33904. - *) ac_try_echo=$ac_try;;
  33905. -esac
  33906. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33907. -$as_echo "$ac_try_echo") >&5
  33908. - (eval "$ac_compile") 2>conftest.er1
  33909. - ac_status=$?
  33910. - grep -v '^ *+' conftest.er1 >conftest.err
  33911. - rm -f conftest.er1
  33912. - cat conftest.err >&5
  33913. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33914. - (exit $ac_status); } && {
  33915. - test -z "$ac_c_werror_flag" ||
  33916. - test ! -s conftest.err
  33917. - } && test -s conftest.$ac_objext; then
  33918. - :
  33919. -else
  33920. - $as_echo "$as_me: failed program was:" >&5
  33921. -sed 's/^/| /' conftest.$ac_ext >&5
  33922. -
  33923. - ac_cv_type_uint8_t=yes
  33924. -fi
  33925. -
  33926. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33927. -else
  33928. - $as_echo "$as_me: failed program was:" >&5
  33929. -sed 's/^/| /' conftest.$ac_ext >&5
  33930. -
  33931. -
  33932. -fi
  33933. -
  33934. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33935. -fi
  33936. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  33937. -$as_echo "$ac_cv_type_uint8_t" >&6; }
  33938. -if test "x$ac_cv_type_uint8_t" = x""yes; then
  33939. - scm_stdint_has_uint8=1
  33940. -fi
  33941. -
  33942. - { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  33943. -$as_echo_n "checking for int16_t... " >&6; }
  33944. -if test "${ac_cv_type_int16_t+set}" = set; then
  33945. - $as_echo_n "(cached) " >&6
  33946. -else
  33947. - ac_cv_type_int16_t=no
  33948. -cat >conftest.$ac_ext <<_ACEOF
  33949. -/* confdefs.h. */
  33950. -_ACEOF
  33951. -cat confdefs.h >>conftest.$ac_ext
  33952. -cat >>conftest.$ac_ext <<_ACEOF
  33953. -/* end confdefs.h. */
  33954. -#include <stdint.h>
  33955. -
  33956. -int
  33957. -main ()
  33958. -{
  33959. -if (sizeof (int16_t))
  33960. - return 0;
  33961. - ;
  33962. - return 0;
  33963. -}
  33964. -_ACEOF
  33965. -rm -f conftest.$ac_objext
  33966. -if { (ac_try="$ac_compile"
  33967. -case "(($ac_try" in
  33968. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33969. - *) ac_try_echo=$ac_try;;
  33970. -esac
  33971. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33972. -$as_echo "$ac_try_echo") >&5
  33973. - (eval "$ac_compile") 2>conftest.er1
  33974. - ac_status=$?
  33975. - grep -v '^ *+' conftest.er1 >conftest.err
  33976. - rm -f conftest.er1
  33977. - cat conftest.err >&5
  33978. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33979. - (exit $ac_status); } && {
  33980. - test -z "$ac_c_werror_flag" ||
  33981. - test ! -s conftest.err
  33982. - } && test -s conftest.$ac_objext; then
  33983. - cat >conftest.$ac_ext <<_ACEOF
  33984. -/* confdefs.h. */
  33985. -_ACEOF
  33986. -cat confdefs.h >>conftest.$ac_ext
  33987. -cat >>conftest.$ac_ext <<_ACEOF
  33988. -/* end confdefs.h. */
  33989. -#include <stdint.h>
  33990. -
  33991. -int
  33992. -main ()
  33993. -{
  33994. -if (sizeof ((int16_t)))
  33995. - return 0;
  33996. - ;
  33997. - return 0;
  33998. -}
  33999. -_ACEOF
  34000. -rm -f conftest.$ac_objext
  34001. -if { (ac_try="$ac_compile"
  34002. -case "(($ac_try" in
  34003. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34004. - *) ac_try_echo=$ac_try;;
  34005. -esac
  34006. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34007. -$as_echo "$ac_try_echo") >&5
  34008. - (eval "$ac_compile") 2>conftest.er1
  34009. - ac_status=$?
  34010. - grep -v '^ *+' conftest.er1 >conftest.err
  34011. - rm -f conftest.er1
  34012. - cat conftest.err >&5
  34013. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34014. - (exit $ac_status); } && {
  34015. - test -z "$ac_c_werror_flag" ||
  34016. - test ! -s conftest.err
  34017. - } && test -s conftest.$ac_objext; then
  34018. - :
  34019. -else
  34020. - $as_echo "$as_me: failed program was:" >&5
  34021. -sed 's/^/| /' conftest.$ac_ext >&5
  34022. -
  34023. - ac_cv_type_int16_t=yes
  34024. -fi
  34025. -
  34026. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34027. -else
  34028. - $as_echo "$as_me: failed program was:" >&5
  34029. -sed 's/^/| /' conftest.$ac_ext >&5
  34030. -
  34031. -
  34032. -fi
  34033. -
  34034. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34035. -fi
  34036. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  34037. -$as_echo "$ac_cv_type_int16_t" >&6; }
  34038. -if test "x$ac_cv_type_int16_t" = x""yes; then
  34039. - scm_stdint_has_int16=1
  34040. -fi
  34041. -
  34042. - { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  34043. -$as_echo_n "checking for uint16_t... " >&6; }
  34044. -if test "${ac_cv_type_uint16_t+set}" = set; then
  34045. - $as_echo_n "(cached) " >&6
  34046. -else
  34047. - ac_cv_type_uint16_t=no
  34048. -cat >conftest.$ac_ext <<_ACEOF
  34049. -/* confdefs.h. */
  34050. -_ACEOF
  34051. -cat confdefs.h >>conftest.$ac_ext
  34052. -cat >>conftest.$ac_ext <<_ACEOF
  34053. -/* end confdefs.h. */
  34054. -#include <stdint.h>
  34055. -
  34056. -int
  34057. -main ()
  34058. -{
  34059. -if (sizeof (uint16_t))
  34060. - return 0;
  34061. - ;
  34062. - return 0;
  34063. -}
  34064. -_ACEOF
  34065. -rm -f conftest.$ac_objext
  34066. -if { (ac_try="$ac_compile"
  34067. -case "(($ac_try" in
  34068. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34069. - *) ac_try_echo=$ac_try;;
  34070. -esac
  34071. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34072. -$as_echo "$ac_try_echo") >&5
  34073. - (eval "$ac_compile") 2>conftest.er1
  34074. - ac_status=$?
  34075. - grep -v '^ *+' conftest.er1 >conftest.err
  34076. - rm -f conftest.er1
  34077. - cat conftest.err >&5
  34078. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34079. - (exit $ac_status); } && {
  34080. - test -z "$ac_c_werror_flag" ||
  34081. - test ! -s conftest.err
  34082. - } && test -s conftest.$ac_objext; then
  34083. - cat >conftest.$ac_ext <<_ACEOF
  34084. -/* confdefs.h. */
  34085. -_ACEOF
  34086. -cat confdefs.h >>conftest.$ac_ext
  34087. -cat >>conftest.$ac_ext <<_ACEOF
  34088. -/* end confdefs.h. */
  34089. -#include <stdint.h>
  34090. -
  34091. -int
  34092. -main ()
  34093. -{
  34094. -if (sizeof ((uint16_t)))
  34095. - return 0;
  34096. - ;
  34097. - return 0;
  34098. -}
  34099. -_ACEOF
  34100. -rm -f conftest.$ac_objext
  34101. -if { (ac_try="$ac_compile"
  34102. -case "(($ac_try" in
  34103. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34104. - *) ac_try_echo=$ac_try;;
  34105. -esac
  34106. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34107. -$as_echo "$ac_try_echo") >&5
  34108. - (eval "$ac_compile") 2>conftest.er1
  34109. - ac_status=$?
  34110. - grep -v '^ *+' conftest.er1 >conftest.err
  34111. - rm -f conftest.er1
  34112. - cat conftest.err >&5
  34113. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34114. - (exit $ac_status); } && {
  34115. - test -z "$ac_c_werror_flag" ||
  34116. - test ! -s conftest.err
  34117. - } && test -s conftest.$ac_objext; then
  34118. - :
  34119. -else
  34120. - $as_echo "$as_me: failed program was:" >&5
  34121. -sed 's/^/| /' conftest.$ac_ext >&5
  34122. -
  34123. - ac_cv_type_uint16_t=yes
  34124. -fi
  34125. -
  34126. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34127. -else
  34128. - $as_echo "$as_me: failed program was:" >&5
  34129. -sed 's/^/| /' conftest.$ac_ext >&5
  34130. -
  34131. -
  34132. -fi
  34133. -
  34134. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34135. -fi
  34136. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  34137. -$as_echo "$ac_cv_type_uint16_t" >&6; }
  34138. -if test "x$ac_cv_type_uint16_t" = x""yes; then
  34139. - scm_stdint_has_uint16=1
  34140. -fi
  34141. -
  34142. - { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  34143. -$as_echo_n "checking for int32_t... " >&6; }
  34144. -if test "${ac_cv_type_int32_t+set}" = set; then
  34145. - $as_echo_n "(cached) " >&6
  34146. -else
  34147. - ac_cv_type_int32_t=no
  34148. -cat >conftest.$ac_ext <<_ACEOF
  34149. -/* confdefs.h. */
  34150. -_ACEOF
  34151. -cat confdefs.h >>conftest.$ac_ext
  34152. -cat >>conftest.$ac_ext <<_ACEOF
  34153. -/* end confdefs.h. */
  34154. -#include <stdint.h>
  34155. -
  34156. -int
  34157. -main ()
  34158. -{
  34159. -if (sizeof (int32_t))
  34160. - return 0;
  34161. - ;
  34162. - return 0;
  34163. -}
  34164. -_ACEOF
  34165. -rm -f conftest.$ac_objext
  34166. -if { (ac_try="$ac_compile"
  34167. -case "(($ac_try" in
  34168. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34169. - *) ac_try_echo=$ac_try;;
  34170. -esac
  34171. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34172. -$as_echo "$ac_try_echo") >&5
  34173. - (eval "$ac_compile") 2>conftest.er1
  34174. - ac_status=$?
  34175. - grep -v '^ *+' conftest.er1 >conftest.err
  34176. - rm -f conftest.er1
  34177. - cat conftest.err >&5
  34178. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34179. - (exit $ac_status); } && {
  34180. - test -z "$ac_c_werror_flag" ||
  34181. - test ! -s conftest.err
  34182. - } && test -s conftest.$ac_objext; then
  34183. - cat >conftest.$ac_ext <<_ACEOF
  34184. -/* confdefs.h. */
  34185. -_ACEOF
  34186. -cat confdefs.h >>conftest.$ac_ext
  34187. -cat >>conftest.$ac_ext <<_ACEOF
  34188. -/* end confdefs.h. */
  34189. -#include <stdint.h>
  34190. -
  34191. -int
  34192. -main ()
  34193. -{
  34194. -if (sizeof ((int32_t)))
  34195. - return 0;
  34196. - ;
  34197. - return 0;
  34198. -}
  34199. -_ACEOF
  34200. -rm -f conftest.$ac_objext
  34201. -if { (ac_try="$ac_compile"
  34202. -case "(($ac_try" in
  34203. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34204. - *) ac_try_echo=$ac_try;;
  34205. -esac
  34206. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34207. -$as_echo "$ac_try_echo") >&5
  34208. - (eval "$ac_compile") 2>conftest.er1
  34209. - ac_status=$?
  34210. - grep -v '^ *+' conftest.er1 >conftest.err
  34211. - rm -f conftest.er1
  34212. - cat conftest.err >&5
  34213. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34214. - (exit $ac_status); } && {
  34215. - test -z "$ac_c_werror_flag" ||
  34216. - test ! -s conftest.err
  34217. - } && test -s conftest.$ac_objext; then
  34218. - :
  34219. -else
  34220. - $as_echo "$as_me: failed program was:" >&5
  34221. -sed 's/^/| /' conftest.$ac_ext >&5
  34222. -
  34223. - ac_cv_type_int32_t=yes
  34224. -fi
  34225. -
  34226. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34227. -else
  34228. - $as_echo "$as_me: failed program was:" >&5
  34229. -sed 's/^/| /' conftest.$ac_ext >&5
  34230. -
  34231. -
  34232. -fi
  34233. -
  34234. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34235. -fi
  34236. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  34237. -$as_echo "$ac_cv_type_int32_t" >&6; }
  34238. -if test "x$ac_cv_type_int32_t" = x""yes; then
  34239. - scm_stdint_has_int32=1
  34240. -fi
  34241. -
  34242. - { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  34243. -$as_echo_n "checking for uint32_t... " >&6; }
  34244. -if test "${ac_cv_type_uint32_t+set}" = set; then
  34245. - $as_echo_n "(cached) " >&6
  34246. -else
  34247. - ac_cv_type_uint32_t=no
  34248. -cat >conftest.$ac_ext <<_ACEOF
  34249. -/* confdefs.h. */
  34250. -_ACEOF
  34251. -cat confdefs.h >>conftest.$ac_ext
  34252. -cat >>conftest.$ac_ext <<_ACEOF
  34253. -/* end confdefs.h. */
  34254. -#include <stdint.h>
  34255. -
  34256. -int
  34257. -main ()
  34258. -{
  34259. -if (sizeof (uint32_t))
  34260. - return 0;
  34261. - ;
  34262. - return 0;
  34263. -}
  34264. -_ACEOF
  34265. -rm -f conftest.$ac_objext
  34266. -if { (ac_try="$ac_compile"
  34267. -case "(($ac_try" in
  34268. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34269. - *) ac_try_echo=$ac_try;;
  34270. -esac
  34271. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34272. -$as_echo "$ac_try_echo") >&5
  34273. - (eval "$ac_compile") 2>conftest.er1
  34274. - ac_status=$?
  34275. - grep -v '^ *+' conftest.er1 >conftest.err
  34276. - rm -f conftest.er1
  34277. - cat conftest.err >&5
  34278. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34279. - (exit $ac_status); } && {
  34280. - test -z "$ac_c_werror_flag" ||
  34281. - test ! -s conftest.err
  34282. - } && test -s conftest.$ac_objext; then
  34283. - cat >conftest.$ac_ext <<_ACEOF
  34284. -/* confdefs.h. */
  34285. -_ACEOF
  34286. -cat confdefs.h >>conftest.$ac_ext
  34287. -cat >>conftest.$ac_ext <<_ACEOF
  34288. -/* end confdefs.h. */
  34289. -#include <stdint.h>
  34290. -
  34291. -int
  34292. -main ()
  34293. -{
  34294. -if (sizeof ((uint32_t)))
  34295. - return 0;
  34296. - ;
  34297. - return 0;
  34298. -}
  34299. -_ACEOF
  34300. -rm -f conftest.$ac_objext
  34301. -if { (ac_try="$ac_compile"
  34302. -case "(($ac_try" in
  34303. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34304. - *) ac_try_echo=$ac_try;;
  34305. -esac
  34306. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34307. -$as_echo "$ac_try_echo") >&5
  34308. - (eval "$ac_compile") 2>conftest.er1
  34309. - ac_status=$?
  34310. - grep -v '^ *+' conftest.er1 >conftest.err
  34311. - rm -f conftest.er1
  34312. - cat conftest.err >&5
  34313. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34314. - (exit $ac_status); } && {
  34315. - test -z "$ac_c_werror_flag" ||
  34316. - test ! -s conftest.err
  34317. - } && test -s conftest.$ac_objext; then
  34318. - :
  34319. -else
  34320. - $as_echo "$as_me: failed program was:" >&5
  34321. -sed 's/^/| /' conftest.$ac_ext >&5
  34322. -
  34323. - ac_cv_type_uint32_t=yes
  34324. -fi
  34325. -
  34326. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34327. -else
  34328. - $as_echo "$as_me: failed program was:" >&5
  34329. -sed 's/^/| /' conftest.$ac_ext >&5
  34330. -
  34331. -
  34332. -fi
  34333. -
  34334. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34335. -fi
  34336. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  34337. -$as_echo "$ac_cv_type_uint32_t" >&6; }
  34338. -if test "x$ac_cv_type_uint32_t" = x""yes; then
  34339. - scm_stdint_has_uint32=1
  34340. -fi
  34341. -
  34342. - { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  34343. -$as_echo_n "checking for int64_t... " >&6; }
  34344. -if test "${ac_cv_type_int64_t+set}" = set; then
  34345. - $as_echo_n "(cached) " >&6
  34346. -else
  34347. - ac_cv_type_int64_t=no
  34348. -cat >conftest.$ac_ext <<_ACEOF
  34349. -/* confdefs.h. */
  34350. -_ACEOF
  34351. -cat confdefs.h >>conftest.$ac_ext
  34352. -cat >>conftest.$ac_ext <<_ACEOF
  34353. -/* end confdefs.h. */
  34354. -#include <stdint.h>
  34355. -
  34356. -int
  34357. -main ()
  34358. -{
  34359. -if (sizeof (int64_t))
  34360. - return 0;
  34361. - ;
  34362. - return 0;
  34363. -}
  34364. -_ACEOF
  34365. -rm -f conftest.$ac_objext
  34366. -if { (ac_try="$ac_compile"
  34367. -case "(($ac_try" in
  34368. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34369. - *) ac_try_echo=$ac_try;;
  34370. -esac
  34371. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34372. -$as_echo "$ac_try_echo") >&5
  34373. - (eval "$ac_compile") 2>conftest.er1
  34374. - ac_status=$?
  34375. - grep -v '^ *+' conftest.er1 >conftest.err
  34376. - rm -f conftest.er1
  34377. - cat conftest.err >&5
  34378. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34379. - (exit $ac_status); } && {
  34380. - test -z "$ac_c_werror_flag" ||
  34381. - test ! -s conftest.err
  34382. - } && test -s conftest.$ac_objext; then
  34383. - cat >conftest.$ac_ext <<_ACEOF
  34384. -/* confdefs.h. */
  34385. -_ACEOF
  34386. -cat confdefs.h >>conftest.$ac_ext
  34387. -cat >>conftest.$ac_ext <<_ACEOF
  34388. -/* end confdefs.h. */
  34389. -#include <stdint.h>
  34390. -
  34391. -int
  34392. -main ()
  34393. -{
  34394. -if (sizeof ((int64_t)))
  34395. - return 0;
  34396. - ;
  34397. - return 0;
  34398. -}
  34399. -_ACEOF
  34400. -rm -f conftest.$ac_objext
  34401. -if { (ac_try="$ac_compile"
  34402. -case "(($ac_try" in
  34403. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34404. - *) ac_try_echo=$ac_try;;
  34405. -esac
  34406. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34407. -$as_echo "$ac_try_echo") >&5
  34408. - (eval "$ac_compile") 2>conftest.er1
  34409. - ac_status=$?
  34410. - grep -v '^ *+' conftest.er1 >conftest.err
  34411. - rm -f conftest.er1
  34412. - cat conftest.err >&5
  34413. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34414. - (exit $ac_status); } && {
  34415. - test -z "$ac_c_werror_flag" ||
  34416. - test ! -s conftest.err
  34417. - } && test -s conftest.$ac_objext; then
  34418. - :
  34419. -else
  34420. - $as_echo "$as_me: failed program was:" >&5
  34421. -sed 's/^/| /' conftest.$ac_ext >&5
  34422. -
  34423. - ac_cv_type_int64_t=yes
  34424. -fi
  34425. -
  34426. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34427. -else
  34428. - $as_echo "$as_me: failed program was:" >&5
  34429. -sed 's/^/| /' conftest.$ac_ext >&5
  34430. -
  34431. -
  34432. -fi
  34433. -
  34434. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34435. -fi
  34436. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  34437. -$as_echo "$ac_cv_type_int64_t" >&6; }
  34438. -if test "x$ac_cv_type_int64_t" = x""yes; then
  34439. - scm_stdint_has_int64=1
  34440. -fi
  34441. -
  34442. - { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  34443. -$as_echo_n "checking for uint64_t... " >&6; }
  34444. -if test "${ac_cv_type_uint64_t+set}" = set; then
  34445. - $as_echo_n "(cached) " >&6
  34446. -else
  34447. - ac_cv_type_uint64_t=no
  34448. -cat >conftest.$ac_ext <<_ACEOF
  34449. -/* confdefs.h. */
  34450. -_ACEOF
  34451. -cat confdefs.h >>conftest.$ac_ext
  34452. -cat >>conftest.$ac_ext <<_ACEOF
  34453. -/* end confdefs.h. */
  34454. -#include <stdint.h>
  34455. -
  34456. -int
  34457. -main ()
  34458. -{
  34459. -if (sizeof (uint64_t))
  34460. - return 0;
  34461. - ;
  34462. - return 0;
  34463. -}
  34464. -_ACEOF
  34465. -rm -f conftest.$ac_objext
  34466. -if { (ac_try="$ac_compile"
  34467. -case "(($ac_try" in
  34468. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34469. - *) ac_try_echo=$ac_try;;
  34470. -esac
  34471. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34472. -$as_echo "$ac_try_echo") >&5
  34473. - (eval "$ac_compile") 2>conftest.er1
  34474. - ac_status=$?
  34475. - grep -v '^ *+' conftest.er1 >conftest.err
  34476. - rm -f conftest.er1
  34477. - cat conftest.err >&5
  34478. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34479. - (exit $ac_status); } && {
  34480. - test -z "$ac_c_werror_flag" ||
  34481. - test ! -s conftest.err
  34482. - } && test -s conftest.$ac_objext; then
  34483. - cat >conftest.$ac_ext <<_ACEOF
  34484. -/* confdefs.h. */
  34485. -_ACEOF
  34486. -cat confdefs.h >>conftest.$ac_ext
  34487. -cat >>conftest.$ac_ext <<_ACEOF
  34488. -/* end confdefs.h. */
  34489. -#include <stdint.h>
  34490. -
  34491. -int
  34492. -main ()
  34493. -{
  34494. -if (sizeof ((uint64_t)))
  34495. - return 0;
  34496. - ;
  34497. - return 0;
  34498. -}
  34499. -_ACEOF
  34500. -rm -f conftest.$ac_objext
  34501. -if { (ac_try="$ac_compile"
  34502. -case "(($ac_try" in
  34503. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34504. - *) ac_try_echo=$ac_try;;
  34505. -esac
  34506. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34507. -$as_echo "$ac_try_echo") >&5
  34508. - (eval "$ac_compile") 2>conftest.er1
  34509. - ac_status=$?
  34510. - grep -v '^ *+' conftest.er1 >conftest.err
  34511. - rm -f conftest.er1
  34512. - cat conftest.err >&5
  34513. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34514. - (exit $ac_status); } && {
  34515. - test -z "$ac_c_werror_flag" ||
  34516. - test ! -s conftest.err
  34517. - } && test -s conftest.$ac_objext; then
  34518. - :
  34519. -else
  34520. - $as_echo "$as_me: failed program was:" >&5
  34521. -sed 's/^/| /' conftest.$ac_ext >&5
  34522. -
  34523. - ac_cv_type_uint64_t=yes
  34524. -fi
  34525. -
  34526. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34527. -else
  34528. - $as_echo "$as_me: failed program was:" >&5
  34529. -sed 's/^/| /' conftest.$ac_ext >&5
  34530. -
  34531. -
  34532. -fi
  34533. -
  34534. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34535. -fi
  34536. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  34537. -$as_echo "$ac_cv_type_uint64_t" >&6; }
  34538. -if test "x$ac_cv_type_uint64_t" = x""yes; then
  34539. - scm_stdint_has_uint64=1
  34540. -fi
  34541. -
  34542. - { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  34543. -$as_echo_n "checking for intmax_t... " >&6; }
  34544. -if test "${ac_cv_type_intmax_t+set}" = set; then
  34545. - $as_echo_n "(cached) " >&6
  34546. -else
  34547. - ac_cv_type_intmax_t=no
  34548. -cat >conftest.$ac_ext <<_ACEOF
  34549. -/* confdefs.h. */
  34550. -_ACEOF
  34551. -cat confdefs.h >>conftest.$ac_ext
  34552. -cat >>conftest.$ac_ext <<_ACEOF
  34553. -/* end confdefs.h. */
  34554. -#include <stdint.h>
  34555. -
  34556. -int
  34557. -main ()
  34558. -{
  34559. -if (sizeof (intmax_t))
  34560. - return 0;
  34561. - ;
  34562. - return 0;
  34563. -}
  34564. -_ACEOF
  34565. -rm -f conftest.$ac_objext
  34566. -if { (ac_try="$ac_compile"
  34567. -case "(($ac_try" in
  34568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34569. - *) ac_try_echo=$ac_try;;
  34570. -esac
  34571. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34572. -$as_echo "$ac_try_echo") >&5
  34573. - (eval "$ac_compile") 2>conftest.er1
  34574. - ac_status=$?
  34575. - grep -v '^ *+' conftest.er1 >conftest.err
  34576. - rm -f conftest.er1
  34577. - cat conftest.err >&5
  34578. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34579. - (exit $ac_status); } && {
  34580. - test -z "$ac_c_werror_flag" ||
  34581. - test ! -s conftest.err
  34582. - } && test -s conftest.$ac_objext; then
  34583. - cat >conftest.$ac_ext <<_ACEOF
  34584. -/* confdefs.h. */
  34585. -_ACEOF
  34586. -cat confdefs.h >>conftest.$ac_ext
  34587. -cat >>conftest.$ac_ext <<_ACEOF
  34588. -/* end confdefs.h. */
  34589. -#include <stdint.h>
  34590. -
  34591. -int
  34592. -main ()
  34593. -{
  34594. -if (sizeof ((intmax_t)))
  34595. - return 0;
  34596. - ;
  34597. - return 0;
  34598. -}
  34599. -_ACEOF
  34600. -rm -f conftest.$ac_objext
  34601. -if { (ac_try="$ac_compile"
  34602. -case "(($ac_try" in
  34603. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34604. - *) ac_try_echo=$ac_try;;
  34605. -esac
  34606. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34607. -$as_echo "$ac_try_echo") >&5
  34608. - (eval "$ac_compile") 2>conftest.er1
  34609. - ac_status=$?
  34610. - grep -v '^ *+' conftest.er1 >conftest.err
  34611. - rm -f conftest.er1
  34612. - cat conftest.err >&5
  34613. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34614. - (exit $ac_status); } && {
  34615. - test -z "$ac_c_werror_flag" ||
  34616. - test ! -s conftest.err
  34617. - } && test -s conftest.$ac_objext; then
  34618. - :
  34619. -else
  34620. - $as_echo "$as_me: failed program was:" >&5
  34621. -sed 's/^/| /' conftest.$ac_ext >&5
  34622. -
  34623. - ac_cv_type_intmax_t=yes
  34624. -fi
  34625. -
  34626. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34627. -else
  34628. - $as_echo "$as_me: failed program was:" >&5
  34629. -sed 's/^/| /' conftest.$ac_ext >&5
  34630. -
  34631. -
  34632. -fi
  34633. -
  34634. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34635. -fi
  34636. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  34637. -$as_echo "$ac_cv_type_intmax_t" >&6; }
  34638. -if test "x$ac_cv_type_intmax_t" = x""yes; then
  34639. - scm_stdint_has_intmax=1
  34640. -fi
  34641. -
  34642. - { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
  34643. -$as_echo_n "checking for uintmax_t... " >&6; }
  34644. -if test "${ac_cv_type_uintmax_t+set}" = set; then
  34645. - $as_echo_n "(cached) " >&6
  34646. -else
  34647. - ac_cv_type_uintmax_t=no
  34648. -cat >conftest.$ac_ext <<_ACEOF
  34649. -/* confdefs.h. */
  34650. -_ACEOF
  34651. -cat confdefs.h >>conftest.$ac_ext
  34652. -cat >>conftest.$ac_ext <<_ACEOF
  34653. -/* end confdefs.h. */
  34654. -#include <stdint.h>
  34655. -
  34656. -int
  34657. -main ()
  34658. -{
  34659. -if (sizeof (uintmax_t))
  34660. - return 0;
  34661. - ;
  34662. - return 0;
  34663. -}
  34664. -_ACEOF
  34665. -rm -f conftest.$ac_objext
  34666. -if { (ac_try="$ac_compile"
  34667. -case "(($ac_try" in
  34668. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34669. - *) ac_try_echo=$ac_try;;
  34670. -esac
  34671. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34672. -$as_echo "$ac_try_echo") >&5
  34673. - (eval "$ac_compile") 2>conftest.er1
  34674. - ac_status=$?
  34675. - grep -v '^ *+' conftest.er1 >conftest.err
  34676. - rm -f conftest.er1
  34677. - cat conftest.err >&5
  34678. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34679. - (exit $ac_status); } && {
  34680. - test -z "$ac_c_werror_flag" ||
  34681. - test ! -s conftest.err
  34682. - } && test -s conftest.$ac_objext; then
  34683. - cat >conftest.$ac_ext <<_ACEOF
  34684. -/* confdefs.h. */
  34685. -_ACEOF
  34686. -cat confdefs.h >>conftest.$ac_ext
  34687. -cat >>conftest.$ac_ext <<_ACEOF
  34688. -/* end confdefs.h. */
  34689. -#include <stdint.h>
  34690. -
  34691. -int
  34692. -main ()
  34693. -{
  34694. -if (sizeof ((uintmax_t)))
  34695. - return 0;
  34696. - ;
  34697. - return 0;
  34698. -}
  34699. -_ACEOF
  34700. -rm -f conftest.$ac_objext
  34701. -if { (ac_try="$ac_compile"
  34702. -case "(($ac_try" in
  34703. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34704. - *) ac_try_echo=$ac_try;;
  34705. -esac
  34706. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34707. -$as_echo "$ac_try_echo") >&5
  34708. - (eval "$ac_compile") 2>conftest.er1
  34709. - ac_status=$?
  34710. - grep -v '^ *+' conftest.er1 >conftest.err
  34711. - rm -f conftest.er1
  34712. - cat conftest.err >&5
  34713. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34714. - (exit $ac_status); } && {
  34715. - test -z "$ac_c_werror_flag" ||
  34716. - test ! -s conftest.err
  34717. - } && test -s conftest.$ac_objext; then
  34718. - :
  34719. -else
  34720. - $as_echo "$as_me: failed program was:" >&5
  34721. -sed 's/^/| /' conftest.$ac_ext >&5
  34722. -
  34723. - ac_cv_type_uintmax_t=yes
  34724. -fi
  34725. -
  34726. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34727. -else
  34728. - $as_echo "$as_me: failed program was:" >&5
  34729. -sed 's/^/| /' conftest.$ac_ext >&5
  34730. -
  34731. -
  34732. -fi
  34733. -
  34734. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34735. -fi
  34736. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  34737. -$as_echo "$ac_cv_type_uintmax_t" >&6; }
  34738. -if test "x$ac_cv_type_uintmax_t" = x""yes; then
  34739. - scm_stdint_has_uintmax=1
  34740. -fi
  34741. -
  34742. -fi
  34743. -
  34744. -# so we don't get confused by the cache (wish there was a better way
  34745. -# to check particular headers for the same type...)
  34746. -
  34747. -unset ac_cv_type_int8_t
  34748. -unset ac_cv_type_uint8_t
  34749. -unset ac_cv_type_int16_t
  34750. -unset ac_cv_type_uint16_t
  34751. -unset ac_cv_type_int32_t
  34752. -unset ac_cv_type_uint32_t
  34753. -unset ac_cv_type_int64_t
  34754. -unset ac_cv_type_uint64_t
  34755. -unset ac_cv_type_intmax_t
  34756. -unset ac_cv_type_uintmax_t
  34757. -
  34758. -### See what's provided by inttypes.h
  34759. -if test "$ac_cv_header_inttypes_h" = yes; then
  34760. - { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  34761. -$as_echo_n "checking for int8_t... " >&6; }
  34762. -if test "${ac_cv_type_int8_t+set}" = set; then
  34763. - $as_echo_n "(cached) " >&6
  34764. -else
  34765. - ac_cv_type_int8_t=no
  34766. -cat >conftest.$ac_ext <<_ACEOF
  34767. -/* confdefs.h. */
  34768. -_ACEOF
  34769. -cat confdefs.h >>conftest.$ac_ext
  34770. -cat >>conftest.$ac_ext <<_ACEOF
  34771. -/* end confdefs.h. */
  34772. -#include <inttypes.h>
  34773. -
  34774. -int
  34775. -main ()
  34776. -{
  34777. -if (sizeof (int8_t))
  34778. - return 0;
  34779. - ;
  34780. - return 0;
  34781. -}
  34782. -_ACEOF
  34783. -rm -f conftest.$ac_objext
  34784. -if { (ac_try="$ac_compile"
  34785. -case "(($ac_try" in
  34786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34787. - *) ac_try_echo=$ac_try;;
  34788. -esac
  34789. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34790. -$as_echo "$ac_try_echo") >&5
  34791. - (eval "$ac_compile") 2>conftest.er1
  34792. - ac_status=$?
  34793. - grep -v '^ *+' conftest.er1 >conftest.err
  34794. - rm -f conftest.er1
  34795. - cat conftest.err >&5
  34796. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34797. - (exit $ac_status); } && {
  34798. - test -z "$ac_c_werror_flag" ||
  34799. - test ! -s conftest.err
  34800. - } && test -s conftest.$ac_objext; then
  34801. - cat >conftest.$ac_ext <<_ACEOF
  34802. -/* confdefs.h. */
  34803. -_ACEOF
  34804. -cat confdefs.h >>conftest.$ac_ext
  34805. -cat >>conftest.$ac_ext <<_ACEOF
  34806. -/* end confdefs.h. */
  34807. -#include <inttypes.h>
  34808. -
  34809. -int
  34810. -main ()
  34811. -{
  34812. -if (sizeof ((int8_t)))
  34813. - return 0;
  34814. - ;
  34815. - return 0;
  34816. -}
  34817. -_ACEOF
  34818. -rm -f conftest.$ac_objext
  34819. -if { (ac_try="$ac_compile"
  34820. -case "(($ac_try" in
  34821. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34822. - *) ac_try_echo=$ac_try;;
  34823. -esac
  34824. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34825. -$as_echo "$ac_try_echo") >&5
  34826. - (eval "$ac_compile") 2>conftest.er1
  34827. - ac_status=$?
  34828. - grep -v '^ *+' conftest.er1 >conftest.err
  34829. - rm -f conftest.er1
  34830. - cat conftest.err >&5
  34831. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34832. - (exit $ac_status); } && {
  34833. - test -z "$ac_c_werror_flag" ||
  34834. - test ! -s conftest.err
  34835. - } && test -s conftest.$ac_objext; then
  34836. - :
  34837. -else
  34838. - $as_echo "$as_me: failed program was:" >&5
  34839. -sed 's/^/| /' conftest.$ac_ext >&5
  34840. -
  34841. - ac_cv_type_int8_t=yes
  34842. -fi
  34843. -
  34844. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34845. -else
  34846. - $as_echo "$as_me: failed program was:" >&5
  34847. -sed 's/^/| /' conftest.$ac_ext >&5
  34848. -
  34849. -
  34850. -fi
  34851. -
  34852. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34853. -fi
  34854. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  34855. -$as_echo "$ac_cv_type_int8_t" >&6; }
  34856. -if test "x$ac_cv_type_int8_t" = x""yes; then
  34857. - scm_inttypes_has_int8=1
  34858. -fi
  34859. -
  34860. - { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  34861. -$as_echo_n "checking for uint8_t... " >&6; }
  34862. -if test "${ac_cv_type_uint8_t+set}" = set; then
  34863. - $as_echo_n "(cached) " >&6
  34864. -else
  34865. - ac_cv_type_uint8_t=no
  34866. -cat >conftest.$ac_ext <<_ACEOF
  34867. -/* confdefs.h. */
  34868. -_ACEOF
  34869. -cat confdefs.h >>conftest.$ac_ext
  34870. -cat >>conftest.$ac_ext <<_ACEOF
  34871. -/* end confdefs.h. */
  34872. -#include <inttypes.h>
  34873. -
  34874. -int
  34875. -main ()
  34876. -{
  34877. -if (sizeof (uint8_t))
  34878. - return 0;
  34879. - ;
  34880. - return 0;
  34881. -}
  34882. -_ACEOF
  34883. -rm -f conftest.$ac_objext
  34884. -if { (ac_try="$ac_compile"
  34885. -case "(($ac_try" in
  34886. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34887. - *) ac_try_echo=$ac_try;;
  34888. -esac
  34889. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34890. -$as_echo "$ac_try_echo") >&5
  34891. - (eval "$ac_compile") 2>conftest.er1
  34892. - ac_status=$?
  34893. - grep -v '^ *+' conftest.er1 >conftest.err
  34894. - rm -f conftest.er1
  34895. - cat conftest.err >&5
  34896. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34897. - (exit $ac_status); } && {
  34898. - test -z "$ac_c_werror_flag" ||
  34899. - test ! -s conftest.err
  34900. - } && test -s conftest.$ac_objext; then
  34901. - cat >conftest.$ac_ext <<_ACEOF
  34902. -/* confdefs.h. */
  34903. -_ACEOF
  34904. -cat confdefs.h >>conftest.$ac_ext
  34905. -cat >>conftest.$ac_ext <<_ACEOF
  34906. -/* end confdefs.h. */
  34907. -#include <inttypes.h>
  34908. -
  34909. -int
  34910. -main ()
  34911. -{
  34912. -if (sizeof ((uint8_t)))
  34913. - return 0;
  34914. - ;
  34915. - return 0;
  34916. -}
  34917. -_ACEOF
  34918. -rm -f conftest.$ac_objext
  34919. -if { (ac_try="$ac_compile"
  34920. -case "(($ac_try" in
  34921. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34922. - *) ac_try_echo=$ac_try;;
  34923. -esac
  34924. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34925. -$as_echo "$ac_try_echo") >&5
  34926. - (eval "$ac_compile") 2>conftest.er1
  34927. - ac_status=$?
  34928. - grep -v '^ *+' conftest.er1 >conftest.err
  34929. - rm -f conftest.er1
  34930. - cat conftest.err >&5
  34931. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34932. - (exit $ac_status); } && {
  34933. - test -z "$ac_c_werror_flag" ||
  34934. - test ! -s conftest.err
  34935. - } && test -s conftest.$ac_objext; then
  34936. - :
  34937. -else
  34938. - $as_echo "$as_me: failed program was:" >&5
  34939. -sed 's/^/| /' conftest.$ac_ext >&5
  34940. -
  34941. - ac_cv_type_uint8_t=yes
  34942. -fi
  34943. -
  34944. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34945. -else
  34946. - $as_echo "$as_me: failed program was:" >&5
  34947. -sed 's/^/| /' conftest.$ac_ext >&5
  34948. -
  34949. -
  34950. -fi
  34951. -
  34952. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34953. -fi
  34954. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  34955. -$as_echo "$ac_cv_type_uint8_t" >&6; }
  34956. -if test "x$ac_cv_type_uint8_t" = x""yes; then
  34957. - scm_inttypes_has_uint8=1
  34958. -fi
  34959. -
  34960. - { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  34961. -$as_echo_n "checking for int16_t... " >&6; }
  34962. -if test "${ac_cv_type_int16_t+set}" = set; then
  34963. - $as_echo_n "(cached) " >&6
  34964. -else
  34965. - ac_cv_type_int16_t=no
  34966. -cat >conftest.$ac_ext <<_ACEOF
  34967. -/* confdefs.h. */
  34968. -_ACEOF
  34969. -cat confdefs.h >>conftest.$ac_ext
  34970. -cat >>conftest.$ac_ext <<_ACEOF
  34971. -/* end confdefs.h. */
  34972. -#include <inttypes.h>
  34973. -
  34974. -int
  34975. -main ()
  34976. -{
  34977. -if (sizeof (int16_t))
  34978. - return 0;
  34979. - ;
  34980. - return 0;
  34981. -}
  34982. -_ACEOF
  34983. -rm -f conftest.$ac_objext
  34984. -if { (ac_try="$ac_compile"
  34985. -case "(($ac_try" in
  34986. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34987. - *) ac_try_echo=$ac_try;;
  34988. -esac
  34989. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34990. -$as_echo "$ac_try_echo") >&5
  34991. - (eval "$ac_compile") 2>conftest.er1
  34992. - ac_status=$?
  34993. - grep -v '^ *+' conftest.er1 >conftest.err
  34994. - rm -f conftest.er1
  34995. - cat conftest.err >&5
  34996. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34997. - (exit $ac_status); } && {
  34998. - test -z "$ac_c_werror_flag" ||
  34999. - test ! -s conftest.err
  35000. - } && test -s conftest.$ac_objext; then
  35001. - cat >conftest.$ac_ext <<_ACEOF
  35002. -/* confdefs.h. */
  35003. -_ACEOF
  35004. -cat confdefs.h >>conftest.$ac_ext
  35005. -cat >>conftest.$ac_ext <<_ACEOF
  35006. -/* end confdefs.h. */
  35007. -#include <inttypes.h>
  35008. -
  35009. -int
  35010. -main ()
  35011. -{
  35012. -if (sizeof ((int16_t)))
  35013. - return 0;
  35014. - ;
  35015. - return 0;
  35016. -}
  35017. -_ACEOF
  35018. -rm -f conftest.$ac_objext
  35019. -if { (ac_try="$ac_compile"
  35020. -case "(($ac_try" in
  35021. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35022. - *) ac_try_echo=$ac_try;;
  35023. -esac
  35024. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35025. -$as_echo "$ac_try_echo") >&5
  35026. - (eval "$ac_compile") 2>conftest.er1
  35027. - ac_status=$?
  35028. - grep -v '^ *+' conftest.er1 >conftest.err
  35029. - rm -f conftest.er1
  35030. - cat conftest.err >&5
  35031. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35032. - (exit $ac_status); } && {
  35033. - test -z "$ac_c_werror_flag" ||
  35034. - test ! -s conftest.err
  35035. - } && test -s conftest.$ac_objext; then
  35036. - :
  35037. -else
  35038. - $as_echo "$as_me: failed program was:" >&5
  35039. -sed 's/^/| /' conftest.$ac_ext >&5
  35040. -
  35041. - ac_cv_type_int16_t=yes
  35042. -fi
  35043. -
  35044. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35045. -else
  35046. - $as_echo "$as_me: failed program was:" >&5
  35047. -sed 's/^/| /' conftest.$ac_ext >&5
  35048. -
  35049. -
  35050. -fi
  35051. -
  35052. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35053. -fi
  35054. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  35055. -$as_echo "$ac_cv_type_int16_t" >&6; }
  35056. -if test "x$ac_cv_type_int16_t" = x""yes; then
  35057. - scm_inttypes_has_int16=1
  35058. -fi
  35059. -
  35060. - { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  35061. -$as_echo_n "checking for uint16_t... " >&6; }
  35062. -if test "${ac_cv_type_uint16_t+set}" = set; then
  35063. - $as_echo_n "(cached) " >&6
  35064. -else
  35065. - ac_cv_type_uint16_t=no
  35066. -cat >conftest.$ac_ext <<_ACEOF
  35067. -/* confdefs.h. */
  35068. -_ACEOF
  35069. -cat confdefs.h >>conftest.$ac_ext
  35070. -cat >>conftest.$ac_ext <<_ACEOF
  35071. -/* end confdefs.h. */
  35072. -#include <inttypes.h>
  35073. -
  35074. -int
  35075. -main ()
  35076. -{
  35077. -if (sizeof (uint16_t))
  35078. - return 0;
  35079. - ;
  35080. - return 0;
  35081. -}
  35082. -_ACEOF
  35083. -rm -f conftest.$ac_objext
  35084. -if { (ac_try="$ac_compile"
  35085. -case "(($ac_try" in
  35086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35087. - *) ac_try_echo=$ac_try;;
  35088. -esac
  35089. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35090. -$as_echo "$ac_try_echo") >&5
  35091. - (eval "$ac_compile") 2>conftest.er1
  35092. - ac_status=$?
  35093. - grep -v '^ *+' conftest.er1 >conftest.err
  35094. - rm -f conftest.er1
  35095. - cat conftest.err >&5
  35096. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35097. - (exit $ac_status); } && {
  35098. - test -z "$ac_c_werror_flag" ||
  35099. - test ! -s conftest.err
  35100. - } && test -s conftest.$ac_objext; then
  35101. - cat >conftest.$ac_ext <<_ACEOF
  35102. -/* confdefs.h. */
  35103. -_ACEOF
  35104. -cat confdefs.h >>conftest.$ac_ext
  35105. -cat >>conftest.$ac_ext <<_ACEOF
  35106. -/* end confdefs.h. */
  35107. -#include <inttypes.h>
  35108. -
  35109. -int
  35110. -main ()
  35111. -{
  35112. -if (sizeof ((uint16_t)))
  35113. - return 0;
  35114. - ;
  35115. - return 0;
  35116. -}
  35117. -_ACEOF
  35118. -rm -f conftest.$ac_objext
  35119. -if { (ac_try="$ac_compile"
  35120. -case "(($ac_try" in
  35121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35122. - *) ac_try_echo=$ac_try;;
  35123. -esac
  35124. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35125. -$as_echo "$ac_try_echo") >&5
  35126. - (eval "$ac_compile") 2>conftest.er1
  35127. - ac_status=$?
  35128. - grep -v '^ *+' conftest.er1 >conftest.err
  35129. - rm -f conftest.er1
  35130. - cat conftest.err >&5
  35131. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35132. - (exit $ac_status); } && {
  35133. - test -z "$ac_c_werror_flag" ||
  35134. - test ! -s conftest.err
  35135. - } && test -s conftest.$ac_objext; then
  35136. - :
  35137. -else
  35138. - $as_echo "$as_me: failed program was:" >&5
  35139. -sed 's/^/| /' conftest.$ac_ext >&5
  35140. -
  35141. - ac_cv_type_uint16_t=yes
  35142. -fi
  35143. -
  35144. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35145. -else
  35146. - $as_echo "$as_me: failed program was:" >&5
  35147. -sed 's/^/| /' conftest.$ac_ext >&5
  35148. -
  35149. -
  35150. -fi
  35151. -
  35152. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35153. -fi
  35154. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  35155. -$as_echo "$ac_cv_type_uint16_t" >&6; }
  35156. -if test "x$ac_cv_type_uint16_t" = x""yes; then
  35157. - scm_inttypes_has_uint16=1
  35158. -fi
  35159. -
  35160. - { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  35161. -$as_echo_n "checking for int32_t... " >&6; }
  35162. -if test "${ac_cv_type_int32_t+set}" = set; then
  35163. - $as_echo_n "(cached) " >&6
  35164. -else
  35165. - ac_cv_type_int32_t=no
  35166. -cat >conftest.$ac_ext <<_ACEOF
  35167. -/* confdefs.h. */
  35168. -_ACEOF
  35169. -cat confdefs.h >>conftest.$ac_ext
  35170. -cat >>conftest.$ac_ext <<_ACEOF
  35171. -/* end confdefs.h. */
  35172. -#include <inttypes.h>
  35173. -
  35174. -int
  35175. -main ()
  35176. -{
  35177. -if (sizeof (int32_t))
  35178. - return 0;
  35179. - ;
  35180. - return 0;
  35181. -}
  35182. -_ACEOF
  35183. -rm -f conftest.$ac_objext
  35184. -if { (ac_try="$ac_compile"
  35185. -case "(($ac_try" in
  35186. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35187. - *) ac_try_echo=$ac_try;;
  35188. -esac
  35189. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35190. -$as_echo "$ac_try_echo") >&5
  35191. - (eval "$ac_compile") 2>conftest.er1
  35192. - ac_status=$?
  35193. - grep -v '^ *+' conftest.er1 >conftest.err
  35194. - rm -f conftest.er1
  35195. - cat conftest.err >&5
  35196. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35197. - (exit $ac_status); } && {
  35198. - test -z "$ac_c_werror_flag" ||
  35199. - test ! -s conftest.err
  35200. - } && test -s conftest.$ac_objext; then
  35201. - cat >conftest.$ac_ext <<_ACEOF
  35202. -/* confdefs.h. */
  35203. -_ACEOF
  35204. -cat confdefs.h >>conftest.$ac_ext
  35205. -cat >>conftest.$ac_ext <<_ACEOF
  35206. -/* end confdefs.h. */
  35207. -#include <inttypes.h>
  35208. -
  35209. -int
  35210. -main ()
  35211. -{
  35212. -if (sizeof ((int32_t)))
  35213. - return 0;
  35214. - ;
  35215. - return 0;
  35216. -}
  35217. -_ACEOF
  35218. -rm -f conftest.$ac_objext
  35219. -if { (ac_try="$ac_compile"
  35220. -case "(($ac_try" in
  35221. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35222. - *) ac_try_echo=$ac_try;;
  35223. -esac
  35224. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35225. -$as_echo "$ac_try_echo") >&5
  35226. - (eval "$ac_compile") 2>conftest.er1
  35227. - ac_status=$?
  35228. - grep -v '^ *+' conftest.er1 >conftest.err
  35229. - rm -f conftest.er1
  35230. - cat conftest.err >&5
  35231. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35232. - (exit $ac_status); } && {
  35233. - test -z "$ac_c_werror_flag" ||
  35234. - test ! -s conftest.err
  35235. - } && test -s conftest.$ac_objext; then
  35236. - :
  35237. -else
  35238. - $as_echo "$as_me: failed program was:" >&5
  35239. -sed 's/^/| /' conftest.$ac_ext >&5
  35240. -
  35241. - ac_cv_type_int32_t=yes
  35242. -fi
  35243. -
  35244. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35245. -else
  35246. - $as_echo "$as_me: failed program was:" >&5
  35247. -sed 's/^/| /' conftest.$ac_ext >&5
  35248. -
  35249. -
  35250. -fi
  35251. -
  35252. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35253. -fi
  35254. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  35255. -$as_echo "$ac_cv_type_int32_t" >&6; }
  35256. -if test "x$ac_cv_type_int32_t" = x""yes; then
  35257. - scm_inttypes_has_int32=1
  35258. -fi
  35259. -
  35260. - { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  35261. -$as_echo_n "checking for uint32_t... " >&6; }
  35262. -if test "${ac_cv_type_uint32_t+set}" = set; then
  35263. - $as_echo_n "(cached) " >&6
  35264. -else
  35265. - ac_cv_type_uint32_t=no
  35266. -cat >conftest.$ac_ext <<_ACEOF
  35267. -/* confdefs.h. */
  35268. -_ACEOF
  35269. -cat confdefs.h >>conftest.$ac_ext
  35270. -cat >>conftest.$ac_ext <<_ACEOF
  35271. -/* end confdefs.h. */
  35272. -#include <inttypes.h>
  35273. -
  35274. -int
  35275. -main ()
  35276. -{
  35277. -if (sizeof (uint32_t))
  35278. - return 0;
  35279. - ;
  35280. - return 0;
  35281. -}
  35282. -_ACEOF
  35283. -rm -f conftest.$ac_objext
  35284. -if { (ac_try="$ac_compile"
  35285. -case "(($ac_try" in
  35286. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35287. - *) ac_try_echo=$ac_try;;
  35288. -esac
  35289. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35290. -$as_echo "$ac_try_echo") >&5
  35291. - (eval "$ac_compile") 2>conftest.er1
  35292. - ac_status=$?
  35293. - grep -v '^ *+' conftest.er1 >conftest.err
  35294. - rm -f conftest.er1
  35295. - cat conftest.err >&5
  35296. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35297. - (exit $ac_status); } && {
  35298. - test -z "$ac_c_werror_flag" ||
  35299. - test ! -s conftest.err
  35300. - } && test -s conftest.$ac_objext; then
  35301. - cat >conftest.$ac_ext <<_ACEOF
  35302. -/* confdefs.h. */
  35303. -_ACEOF
  35304. -cat confdefs.h >>conftest.$ac_ext
  35305. -cat >>conftest.$ac_ext <<_ACEOF
  35306. -/* end confdefs.h. */
  35307. -#include <inttypes.h>
  35308. -
  35309. -int
  35310. -main ()
  35311. -{
  35312. -if (sizeof ((uint32_t)))
  35313. - return 0;
  35314. - ;
  35315. - return 0;
  35316. -}
  35317. -_ACEOF
  35318. -rm -f conftest.$ac_objext
  35319. -if { (ac_try="$ac_compile"
  35320. -case "(($ac_try" in
  35321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35322. - *) ac_try_echo=$ac_try;;
  35323. -esac
  35324. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35325. -$as_echo "$ac_try_echo") >&5
  35326. - (eval "$ac_compile") 2>conftest.er1
  35327. - ac_status=$?
  35328. - grep -v '^ *+' conftest.er1 >conftest.err
  35329. - rm -f conftest.er1
  35330. - cat conftest.err >&5
  35331. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35332. - (exit $ac_status); } && {
  35333. - test -z "$ac_c_werror_flag" ||
  35334. - test ! -s conftest.err
  35335. - } && test -s conftest.$ac_objext; then
  35336. - :
  35337. -else
  35338. - $as_echo "$as_me: failed program was:" >&5
  35339. -sed 's/^/| /' conftest.$ac_ext >&5
  35340. -
  35341. - ac_cv_type_uint32_t=yes
  35342. -fi
  35343. -
  35344. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35345. -else
  35346. - $as_echo "$as_me: failed program was:" >&5
  35347. -sed 's/^/| /' conftest.$ac_ext >&5
  35348. -
  35349. -
  35350. -fi
  35351. -
  35352. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35353. -fi
  35354. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  35355. -$as_echo "$ac_cv_type_uint32_t" >&6; }
  35356. -if test "x$ac_cv_type_uint32_t" = x""yes; then
  35357. - scm_inttypes_has_uint32=1
  35358. -fi
  35359. -
  35360. - { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  35361. -$as_echo_n "checking for int64_t... " >&6; }
  35362. -if test "${ac_cv_type_int64_t+set}" = set; then
  35363. - $as_echo_n "(cached) " >&6
  35364. -else
  35365. - ac_cv_type_int64_t=no
  35366. -cat >conftest.$ac_ext <<_ACEOF
  35367. -/* confdefs.h. */
  35368. -_ACEOF
  35369. -cat confdefs.h >>conftest.$ac_ext
  35370. -cat >>conftest.$ac_ext <<_ACEOF
  35371. -/* end confdefs.h. */
  35372. -#include <inttypes.h>
  35373. -
  35374. -int
  35375. -main ()
  35376. -{
  35377. -if (sizeof (int64_t))
  35378. - return 0;
  35379. - ;
  35380. - return 0;
  35381. -}
  35382. -_ACEOF
  35383. -rm -f conftest.$ac_objext
  35384. -if { (ac_try="$ac_compile"
  35385. -case "(($ac_try" in
  35386. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35387. - *) ac_try_echo=$ac_try;;
  35388. -esac
  35389. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35390. -$as_echo "$ac_try_echo") >&5
  35391. - (eval "$ac_compile") 2>conftest.er1
  35392. - ac_status=$?
  35393. - grep -v '^ *+' conftest.er1 >conftest.err
  35394. - rm -f conftest.er1
  35395. - cat conftest.err >&5
  35396. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35397. - (exit $ac_status); } && {
  35398. - test -z "$ac_c_werror_flag" ||
  35399. - test ! -s conftest.err
  35400. - } && test -s conftest.$ac_objext; then
  35401. - cat >conftest.$ac_ext <<_ACEOF
  35402. -/* confdefs.h. */
  35403. -_ACEOF
  35404. -cat confdefs.h >>conftest.$ac_ext
  35405. -cat >>conftest.$ac_ext <<_ACEOF
  35406. -/* end confdefs.h. */
  35407. -#include <inttypes.h>
  35408. -
  35409. -int
  35410. -main ()
  35411. -{
  35412. -if (sizeof ((int64_t)))
  35413. - return 0;
  35414. - ;
  35415. - return 0;
  35416. -}
  35417. -_ACEOF
  35418. -rm -f conftest.$ac_objext
  35419. -if { (ac_try="$ac_compile"
  35420. -case "(($ac_try" in
  35421. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35422. - *) ac_try_echo=$ac_try;;
  35423. -esac
  35424. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35425. -$as_echo "$ac_try_echo") >&5
  35426. - (eval "$ac_compile") 2>conftest.er1
  35427. - ac_status=$?
  35428. - grep -v '^ *+' conftest.er1 >conftest.err
  35429. - rm -f conftest.er1
  35430. - cat conftest.err >&5
  35431. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35432. - (exit $ac_status); } && {
  35433. - test -z "$ac_c_werror_flag" ||
  35434. - test ! -s conftest.err
  35435. - } && test -s conftest.$ac_objext; then
  35436. - :
  35437. -else
  35438. - $as_echo "$as_me: failed program was:" >&5
  35439. -sed 's/^/| /' conftest.$ac_ext >&5
  35440. -
  35441. - ac_cv_type_int64_t=yes
  35442. -fi
  35443. -
  35444. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35445. -else
  35446. - $as_echo "$as_me: failed program was:" >&5
  35447. -sed 's/^/| /' conftest.$ac_ext >&5
  35448. -
  35449. -
  35450. -fi
  35451. -
  35452. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35453. -fi
  35454. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  35455. -$as_echo "$ac_cv_type_int64_t" >&6; }
  35456. -if test "x$ac_cv_type_int64_t" = x""yes; then
  35457. - scm_inttypes_has_int64=1
  35458. -fi
  35459. -
  35460. - { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  35461. -$as_echo_n "checking for uint64_t... " >&6; }
  35462. -if test "${ac_cv_type_uint64_t+set}" = set; then
  35463. - $as_echo_n "(cached) " >&6
  35464. -else
  35465. - ac_cv_type_uint64_t=no
  35466. -cat >conftest.$ac_ext <<_ACEOF
  35467. -/* confdefs.h. */
  35468. -_ACEOF
  35469. -cat confdefs.h >>conftest.$ac_ext
  35470. -cat >>conftest.$ac_ext <<_ACEOF
  35471. -/* end confdefs.h. */
  35472. -#include <inttypes.h>
  35473. -
  35474. -int
  35475. -main ()
  35476. -{
  35477. -if (sizeof (uint64_t))
  35478. - return 0;
  35479. - ;
  35480. - return 0;
  35481. -}
  35482. -_ACEOF
  35483. -rm -f conftest.$ac_objext
  35484. -if { (ac_try="$ac_compile"
  35485. -case "(($ac_try" in
  35486. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35487. - *) ac_try_echo=$ac_try;;
  35488. -esac
  35489. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35490. -$as_echo "$ac_try_echo") >&5
  35491. - (eval "$ac_compile") 2>conftest.er1
  35492. - ac_status=$?
  35493. - grep -v '^ *+' conftest.er1 >conftest.err
  35494. - rm -f conftest.er1
  35495. - cat conftest.err >&5
  35496. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35497. - (exit $ac_status); } && {
  35498. - test -z "$ac_c_werror_flag" ||
  35499. - test ! -s conftest.err
  35500. - } && test -s conftest.$ac_objext; then
  35501. - cat >conftest.$ac_ext <<_ACEOF
  35502. -/* confdefs.h. */
  35503. -_ACEOF
  35504. -cat confdefs.h >>conftest.$ac_ext
  35505. -cat >>conftest.$ac_ext <<_ACEOF
  35506. -/* end confdefs.h. */
  35507. -#include <inttypes.h>
  35508. -
  35509. -int
  35510. -main ()
  35511. -{
  35512. -if (sizeof ((uint64_t)))
  35513. - return 0;
  35514. - ;
  35515. - return 0;
  35516. -}
  35517. -_ACEOF
  35518. -rm -f conftest.$ac_objext
  35519. -if { (ac_try="$ac_compile"
  35520. -case "(($ac_try" in
  35521. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35522. - *) ac_try_echo=$ac_try;;
  35523. -esac
  35524. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35525. -$as_echo "$ac_try_echo") >&5
  35526. - (eval "$ac_compile") 2>conftest.er1
  35527. - ac_status=$?
  35528. - grep -v '^ *+' conftest.er1 >conftest.err
  35529. - rm -f conftest.er1
  35530. - cat conftest.err >&5
  35531. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35532. - (exit $ac_status); } && {
  35533. - test -z "$ac_c_werror_flag" ||
  35534. - test ! -s conftest.err
  35535. - } && test -s conftest.$ac_objext; then
  35536. - :
  35537. -else
  35538. - $as_echo "$as_me: failed program was:" >&5
  35539. -sed 's/^/| /' conftest.$ac_ext >&5
  35540. -
  35541. - ac_cv_type_uint64_t=yes
  35542. -fi
  35543. -
  35544. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35545. -else
  35546. - $as_echo "$as_me: failed program was:" >&5
  35547. -sed 's/^/| /' conftest.$ac_ext >&5
  35548. -
  35549. -
  35550. -fi
  35551. -
  35552. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35553. -fi
  35554. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  35555. -$as_echo "$ac_cv_type_uint64_t" >&6; }
  35556. -if test "x$ac_cv_type_uint64_t" = x""yes; then
  35557. - scm_inttypes_has_uint64=1
  35558. -fi
  35559. -
  35560. - { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  35561. -$as_echo_n "checking for intmax_t... " >&6; }
  35562. -if test "${ac_cv_type_intmax_t+set}" = set; then
  35563. - $as_echo_n "(cached) " >&6
  35564. -else
  35565. - ac_cv_type_intmax_t=no
  35566. -cat >conftest.$ac_ext <<_ACEOF
  35567. -/* confdefs.h. */
  35568. -_ACEOF
  35569. -cat confdefs.h >>conftest.$ac_ext
  35570. -cat >>conftest.$ac_ext <<_ACEOF
  35571. -/* end confdefs.h. */
  35572. -#include <inttypes.h>
  35573. -
  35574. -int
  35575. -main ()
  35576. -{
  35577. -if (sizeof (intmax_t))
  35578. - return 0;
  35579. - ;
  35580. - return 0;
  35581. -}
  35582. -_ACEOF
  35583. -rm -f conftest.$ac_objext
  35584. -if { (ac_try="$ac_compile"
  35585. -case "(($ac_try" in
  35586. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35587. - *) ac_try_echo=$ac_try;;
  35588. -esac
  35589. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35590. -$as_echo "$ac_try_echo") >&5
  35591. - (eval "$ac_compile") 2>conftest.er1
  35592. - ac_status=$?
  35593. - grep -v '^ *+' conftest.er1 >conftest.err
  35594. - rm -f conftest.er1
  35595. - cat conftest.err >&5
  35596. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35597. - (exit $ac_status); } && {
  35598. - test -z "$ac_c_werror_flag" ||
  35599. - test ! -s conftest.err
  35600. - } && test -s conftest.$ac_objext; then
  35601. - cat >conftest.$ac_ext <<_ACEOF
  35602. -/* confdefs.h. */
  35603. -_ACEOF
  35604. -cat confdefs.h >>conftest.$ac_ext
  35605. -cat >>conftest.$ac_ext <<_ACEOF
  35606. -/* end confdefs.h. */
  35607. -#include <inttypes.h>
  35608. -
  35609. -int
  35610. -main ()
  35611. -{
  35612. -if (sizeof ((intmax_t)))
  35613. - return 0;
  35614. - ;
  35615. - return 0;
  35616. -}
  35617. -_ACEOF
  35618. -rm -f conftest.$ac_objext
  35619. -if { (ac_try="$ac_compile"
  35620. -case "(($ac_try" in
  35621. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35622. - *) ac_try_echo=$ac_try;;
  35623. -esac
  35624. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35625. -$as_echo "$ac_try_echo") >&5
  35626. - (eval "$ac_compile") 2>conftest.er1
  35627. - ac_status=$?
  35628. - grep -v '^ *+' conftest.er1 >conftest.err
  35629. - rm -f conftest.er1
  35630. - cat conftest.err >&5
  35631. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35632. - (exit $ac_status); } && {
  35633. - test -z "$ac_c_werror_flag" ||
  35634. - test ! -s conftest.err
  35635. - } && test -s conftest.$ac_objext; then
  35636. - :
  35637. -else
  35638. - $as_echo "$as_me: failed program was:" >&5
  35639. -sed 's/^/| /' conftest.$ac_ext >&5
  35640. -
  35641. - ac_cv_type_intmax_t=yes
  35642. -fi
  35643. -
  35644. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35645. -else
  35646. - $as_echo "$as_me: failed program was:" >&5
  35647. -sed 's/^/| /' conftest.$ac_ext >&5
  35648. -
  35649. -
  35650. -fi
  35651. -
  35652. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35653. -fi
  35654. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  35655. -$as_echo "$ac_cv_type_intmax_t" >&6; }
  35656. -if test "x$ac_cv_type_intmax_t" = x""yes; then
  35657. - scm_inttypes_has_intmax=1
  35658. -fi
  35659. -
  35660. - { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
  35661. -$as_echo_n "checking for uintmax_t... " >&6; }
  35662. -if test "${ac_cv_type_uintmax_t+set}" = set; then
  35663. - $as_echo_n "(cached) " >&6
  35664. -else
  35665. - ac_cv_type_uintmax_t=no
  35666. -cat >conftest.$ac_ext <<_ACEOF
  35667. -/* confdefs.h. */
  35668. -_ACEOF
  35669. -cat confdefs.h >>conftest.$ac_ext
  35670. -cat >>conftest.$ac_ext <<_ACEOF
  35671. -/* end confdefs.h. */
  35672. -#include <inttypes.h>
  35673. -
  35674. -int
  35675. -main ()
  35676. -{
  35677. -if (sizeof (uintmax_t))
  35678. - return 0;
  35679. - ;
  35680. - return 0;
  35681. -}
  35682. -_ACEOF
  35683. -rm -f conftest.$ac_objext
  35684. -if { (ac_try="$ac_compile"
  35685. -case "(($ac_try" in
  35686. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35687. - *) ac_try_echo=$ac_try;;
  35688. -esac
  35689. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35690. -$as_echo "$ac_try_echo") >&5
  35691. - (eval "$ac_compile") 2>conftest.er1
  35692. - ac_status=$?
  35693. - grep -v '^ *+' conftest.er1 >conftest.err
  35694. - rm -f conftest.er1
  35695. - cat conftest.err >&5
  35696. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35697. - (exit $ac_status); } && {
  35698. - test -z "$ac_c_werror_flag" ||
  35699. - test ! -s conftest.err
  35700. - } && test -s conftest.$ac_objext; then
  35701. - cat >conftest.$ac_ext <<_ACEOF
  35702. -/* confdefs.h. */
  35703. -_ACEOF
  35704. -cat confdefs.h >>conftest.$ac_ext
  35705. -cat >>conftest.$ac_ext <<_ACEOF
  35706. -/* end confdefs.h. */
  35707. -#include <inttypes.h>
  35708. -
  35709. -int
  35710. -main ()
  35711. -{
  35712. -if (sizeof ((uintmax_t)))
  35713. - return 0;
  35714. - ;
  35715. - return 0;
  35716. -}
  35717. -_ACEOF
  35718. -rm -f conftest.$ac_objext
  35719. -if { (ac_try="$ac_compile"
  35720. -case "(($ac_try" in
  35721. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35722. - *) ac_try_echo=$ac_try;;
  35723. -esac
  35724. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35725. -$as_echo "$ac_try_echo") >&5
  35726. - (eval "$ac_compile") 2>conftest.er1
  35727. - ac_status=$?
  35728. - grep -v '^ *+' conftest.er1 >conftest.err
  35729. - rm -f conftest.er1
  35730. - cat conftest.err >&5
  35731. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35732. - (exit $ac_status); } && {
  35733. - test -z "$ac_c_werror_flag" ||
  35734. - test ! -s conftest.err
  35735. - } && test -s conftest.$ac_objext; then
  35736. - :
  35737. -else
  35738. - $as_echo "$as_me: failed program was:" >&5
  35739. -sed 's/^/| /' conftest.$ac_ext >&5
  35740. -
  35741. - ac_cv_type_uintmax_t=yes
  35742. -fi
  35743. -
  35744. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35745. -else
  35746. - $as_echo "$as_me: failed program was:" >&5
  35747. -sed 's/^/| /' conftest.$ac_ext >&5
  35748. -
  35749. -
  35750. -fi
  35751. -
  35752. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35753. -fi
  35754. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  35755. -$as_echo "$ac_cv_type_uintmax_t" >&6; }
  35756. -if test "x$ac_cv_type_uintmax_t" = x""yes; then
  35757. - scm_inttypes_has_uintmax=1
  35758. -fi
  35759. -
  35760. -fi
  35761. -
  35762. -# Try hard to find definitions for some required scm_t_*int* types.
  35763. -
  35764. -### Required type scm_t_int8
  35765. -if test "$scm_stdint_has_int8"; then
  35766. - SCM_I_GSC_T_INT8='"int8_t"'
  35767. - SCM_I_GSC_NEEDS_STDINT_H=1
  35768. -elif test "$scm_inttypes_has_int8"; then
  35769. - SCM_I_GSC_T_INT8='"int8_t"'
  35770. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35771. -elif test "$ac_cv_sizeof_char" -eq 1; then
  35772. - SCM_I_GSC_T_INT8='"signed char"'
  35773. -else
  35774. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int8." >&5
  35775. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_int8." >&2;}
  35776. - { (exit 1); exit 1; }; }
  35777. -fi
  35778. -
  35779. -
  35780. -### Required type scm_t_uint8
  35781. -if test "$scm_stdint_has_uint8"; then
  35782. - SCM_I_GSC_T_UINT8='"uint8_t"'
  35783. - SCM_I_GSC_NEEDS_STDINT_H=1
  35784. -elif test "$scm_inttypes_has_uint8"; then
  35785. - SCM_I_GSC_T_UINT8='"uint8_t"'
  35786. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35787. -elif test "$ac_cv_sizeof_unsigned_char" -eq 1; then
  35788. - SCM_I_GSC_T_UINT8='"unsigned char"'
  35789. -else
  35790. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint8." >&5
  35791. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_uint8." >&2;}
  35792. - { (exit 1); exit 1; }; }
  35793. -fi
  35794. -
  35795. -
  35796. -### Required type scm_t_int16 (ANSI C says int or short might work)
  35797. -if test "$scm_stdint_has_int16"; then
  35798. - SCM_I_GSC_T_INT16='"int16_t"'
  35799. - SCM_I_GSC_NEEDS_STDINT_H=1
  35800. -elif test "$scm_inttypes_has_int16"; then
  35801. - SCM_I_GSC_T_INT16='"int16_t"'
  35802. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35803. -elif test "$ac_cv_sizeof_int" -eq 2; then
  35804. - SCM_I_GSC_T_INT16='"int"'
  35805. -elif test "$ac_cv_sizeof_short" -eq 2; then
  35806. - SCM_I_GSC_T_INT16='"short"'
  35807. -else
  35808. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int16." >&5
  35809. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_int16." >&2;}
  35810. - { (exit 1); exit 1; }; }
  35811. -fi
  35812. -
  35813. -
  35814. -### Required type scm_t_uint16 (ANSI C says int or short might work)
  35815. -if test "$scm_stdint_has_uint16"; then
  35816. - SCM_I_GSC_T_UINT16='"uint16_t"'
  35817. - SCM_I_GSC_NEEDS_STDINT_H=1
  35818. -elif test "$scm_inttypes_has_uint16"; then
  35819. - SCM_I_GSC_T_UINT16='"uint16_t"'
  35820. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35821. -elif test "$ac_cv_sizeof_unsigned_int" -eq 2; then
  35822. - SCM_I_GSC_T_UINT16='"unsigned int"'
  35823. -elif test "$ac_cv_sizeof_unsigned_short" -eq 2; then
  35824. - SCM_I_GSC_T_UINT16='"unsigned short"'
  35825. -else
  35826. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint16." >&5
  35827. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_uint16." >&2;}
  35828. - { (exit 1); exit 1; }; }
  35829. -fi
  35830. -
  35831. -
  35832. -
  35833. -### Required type scm_t_int32 (ANSI C says int, short, or long might work)
  35834. -if test "$scm_stdint_has_int32"; then
  35835. - SCM_I_GSC_T_INT32='"int32_t"'
  35836. - SCM_I_GSC_NEEDS_STDINT_H=1
  35837. -elif test "$scm_inttypes_has_int32"; then
  35838. - SCM_I_GSC_T_INT32='"int32_t"'
  35839. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35840. -elif test "$ac_cv_sizeof_int" -eq 4; then
  35841. - SCM_I_GSC_T_INT32='"int"'
  35842. -elif test "$ac_cv_sizeof_long" -eq 4; then
  35843. - SCM_I_GSC_T_INT32='"long"'
  35844. -elif test "$ac_cv_sizeof_short" -eq 4; then
  35845. - SCM_I_GSC_T_INT32='"short"'
  35846. -else
  35847. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int32." >&5
  35848. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_int32." >&2;}
  35849. - { (exit 1); exit 1; }; }
  35850. -fi
  35851. -
  35852. -
  35853. -### Required type scm_t_uint32 (ANSI C says int, short, or long might work)
  35854. -if test "$scm_stdint_has_uint32"; then
  35855. - SCM_I_GSC_T_UINT32='"uint32_t"'
  35856. - SCM_I_GSC_NEEDS_STDINT_H=1
  35857. -elif test "$scm_inttypes_has_uint32"; then
  35858. - SCM_I_GSC_T_UINT32='"uint32_t"'
  35859. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35860. -elif test "$ac_cv_sizeof_unsigned_int" -eq 4; then
  35861. - SCM_I_GSC_T_UINT32='"unsigned int"'
  35862. -elif test "$ac_cv_sizeof_unsigned_long" -eq 4; then
  35863. - SCM_I_GSC_T_UINT32='"unsigned long"'
  35864. -elif test "$ac_cv_sizeof_unsigned_short" -eq 4; then
  35865. - SCM_I_GSC_T_UINT32='"unsigned short"'
  35866. -else
  35867. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint32." >&5
  35868. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_uint32." >&2;}
  35869. - { (exit 1); exit 1; }; }
  35870. -fi
  35871. -
  35872. -
  35873. -### Optional type scm_t_int64 (ANSI C says int, short, or long might work)
  35874. -### Also try 'long long' and '__int64' if we have it.
  35875. -SCM_I_GSC_T_INT64=0
  35876. -if test "$scm_stdint_has_int64"; then
  35877. - SCM_I_GSC_T_INT64='"int64_t"'
  35878. - SCM_I_GSC_NEEDS_STDINT_H=1
  35879. -elif test "$scm_inttypes_has_int64"; then
  35880. - SCM_I_GSC_T_INT64='"int64_t"'
  35881. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35882. -elif test "$ac_cv_sizeof_int" -eq 8; then
  35883. - SCM_I_GSC_T_INT64='"int"'
  35884. -elif test "$ac_cv_sizeof_long" -eq 8; then
  35885. - SCM_I_GSC_T_INT64='"long"'
  35886. -elif test "$ac_cv_sizeof_short" -eq 8; then
  35887. - SCM_I_GSC_T_INT64='"short"'
  35888. -elif test "$ac_cv_sizeof_long_long" -eq 8; then
  35889. - SCM_I_GSC_T_INT64='"long long"'
  35890. -elif test "$ac_cv_sizeof___int64" -eq 8; then
  35891. - SCM_I_GSC_T_INT64='"__int64"'
  35892. -else
  35893. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int64." >&5
  35894. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_int64." >&2;}
  35895. - { (exit 1); exit 1; }; }
  35896. -fi
  35897. -
  35898. -
  35899. -
  35900. -### Optional type scm_t_uint64 (ANSI C says int, short, or long might work)
  35901. -### Also try 'long long' and '__int64' if we have it.
  35902. -SCM_I_GSC_T_UINT64=0
  35903. -if test "$scm_stdint_has_uint64"; then
  35904. - SCM_I_GSC_T_UINT64='"uint64_t"'
  35905. - SCM_I_GSC_NEEDS_STDINT_H=1
  35906. -elif test "$scm_inttypes_has_uint64"; then
  35907. - SCM_I_GSC_T_UINT64='"uint64_t"'
  35908. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35909. -elif test "$ac_cv_sizeof_unsigned_int" -eq 8; then
  35910. - SCM_I_GSC_T_UINT64='"unsigned int"'
  35911. -elif test "$ac_cv_sizeof_unsigned_long" -eq 8; then
  35912. - SCM_I_GSC_T_UINT64='"unsigned long"'
  35913. -elif test "$ac_cv_sizeof_unsigned_short" -eq 8; then
  35914. - SCM_I_GSC_T_UINT64='"unsigned short"'
  35915. -elif test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then
  35916. - SCM_I_GSC_T_UINT64='"unsigned long long"'
  35917. -elif test "$ac_cv_sizeof_unsigned___int64" -eq 8; then
  35918. - SCM_I_GSC_T_UINT64='"unsigned __int64"'
  35919. -else
  35920. - { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint64." >&5
  35921. -$as_echo "$as_me: error: Can't find appropriate type for scm_t_uint64." >&2;}
  35922. - { (exit 1); exit 1; }; }
  35923. -fi
  35924. -
  35925. -
  35926. -### Required type scm_t_intmax
  35927. -###
  35928. -### We try 'intmax_t', '__int64', 'long long' in this order. When
  35929. -### none of them is available, we use 'long'.
  35930. -###
  35931. -SCM_I_GSC_T_INTMAX=0
  35932. -if test "$scm_stdint_has_intmax"; then
  35933. - SCM_I_GSC_T_INTMAX='"intmax_t"'
  35934. - SCM_I_GSC_NEEDS_STDINT_H=1
  35935. -elif test "$scm_inttypes_has_intmax"; then
  35936. - SCM_I_GSC_T_INTMAX='"intmax_t"'
  35937. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35938. -elif test "$ac_cv_sizeof___int64" -ne 0; then
  35939. - SCM_I_GSC_T_INTMAX='"__int64"'
  35940. -elif test "$ac_cv_sizeof_long_long" -ne 0; then
  35941. - SCM_I_GSC_T_INTMAX='"long long"'
  35942. -else
  35943. - SCM_I_GSC_T_INTMAX='"long"'
  35944. -fi
  35945. -
  35946. -
  35947. -### Required type scm_t_uintmax
  35948. -###
  35949. -### We try 'uintmax_t', 'unsigned __int64', 'unsigned long long' in
  35950. -### this order. When none of them is available, we use 'unsigned long'.
  35951. -###
  35952. -SCM_I_GSC_T_UINTMAX=0
  35953. -if test "$scm_stdint_has_uintmax"; then
  35954. - SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  35955. - SCM_I_GSC_NEEDS_STDINT_H=1
  35956. -elif test "$scm_inttypes_has_uintmax"; then
  35957. - SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  35958. - SCM_I_GSC_NEEDS_INTTYPES_H=1
  35959. -elif test "$ac_cv_sizeof_unsigned___int64" -ne 0; then
  35960. - SCM_I_GSC_T_UINTMAX='"unsigned __int64"'
  35961. -elif test "$ac_cv_sizeof_unsigned_long_long" -ne 0; then
  35962. - SCM_I_GSC_T_UINTMAX='"unsigned long long"'
  35963. -else
  35964. - SCM_I_GSC_T_UINTMAX='"unsigned long"'
  35965. -fi
  35966. -
  35967. -
  35968. -
  35969. -
  35970. -
  35971. -
  35972. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  35973. -$as_echo_n "checking for ANSI C header files... " >&6; }
  35974. -if test "${ac_cv_header_stdc+set}" = set; then
  35975. - $as_echo_n "(cached) " >&6
  35976. -else
  35977. - cat >conftest.$ac_ext <<_ACEOF
  35978. -/* confdefs.h. */
  35979. -_ACEOF
  35980. -cat confdefs.h >>conftest.$ac_ext
  35981. -cat >>conftest.$ac_ext <<_ACEOF
  35982. -/* end confdefs.h. */
  35983. -#include <stdlib.h>
  35984. -#include <stdarg.h>
  35985. -#include <string.h>
  35986. -#include <float.h>
  35987. -
  35988. -int
  35989. -main ()
  35990. -{
  35991. -
  35992. - ;
  35993. - return 0;
  35994. -}
  35995. -_ACEOF
  35996. -rm -f conftest.$ac_objext
  35997. -if { (ac_try="$ac_compile"
  35998. -case "(($ac_try" in
  35999. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36000. - *) ac_try_echo=$ac_try;;
  36001. -esac
  36002. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36003. -$as_echo "$ac_try_echo") >&5
  36004. - (eval "$ac_compile") 2>conftest.er1
  36005. - ac_status=$?
  36006. - grep -v '^ *+' conftest.er1 >conftest.err
  36007. - rm -f conftest.er1
  36008. - cat conftest.err >&5
  36009. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36010. - (exit $ac_status); } && {
  36011. - test -z "$ac_c_werror_flag" ||
  36012. - test ! -s conftest.err
  36013. - } && test -s conftest.$ac_objext; then
  36014. - ac_cv_header_stdc=yes
  36015. -else
  36016. - $as_echo "$as_me: failed program was:" >&5
  36017. -sed 's/^/| /' conftest.$ac_ext >&5
  36018. -
  36019. - ac_cv_header_stdc=no
  36020. -fi
  36021. -
  36022. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36023. -
  36024. -if test $ac_cv_header_stdc = yes; then
  36025. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  36026. - cat >conftest.$ac_ext <<_ACEOF
  36027. -/* confdefs.h. */
  36028. -_ACEOF
  36029. -cat confdefs.h >>conftest.$ac_ext
  36030. -cat >>conftest.$ac_ext <<_ACEOF
  36031. -/* end confdefs.h. */
  36032. -#include <string.h>
  36033. -
  36034. -_ACEOF
  36035. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36036. - $EGREP "memchr" >/dev/null 2>&1; then
  36037. - :
  36038. -else
  36039. - ac_cv_header_stdc=no
  36040. -fi
  36041. -rm -f conftest*
  36042. -
  36043. -fi
  36044. -
  36045. -if test $ac_cv_header_stdc = yes; then
  36046. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  36047. - cat >conftest.$ac_ext <<_ACEOF
  36048. -/* confdefs.h. */
  36049. -_ACEOF
  36050. -cat confdefs.h >>conftest.$ac_ext
  36051. -cat >>conftest.$ac_ext <<_ACEOF
  36052. -/* end confdefs.h. */
  36053. -#include <stdlib.h>
  36054. -
  36055. -_ACEOF
  36056. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36057. - $EGREP "free" >/dev/null 2>&1; then
  36058. - :
  36059. -else
  36060. - ac_cv_header_stdc=no
  36061. -fi
  36062. -rm -f conftest*
  36063. -
  36064. -fi
  36065. -
  36066. -if test $ac_cv_header_stdc = yes; then
  36067. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  36068. - if test "$cross_compiling" = yes; then
  36069. - :
  36070. -else
  36071. - cat >conftest.$ac_ext <<_ACEOF
  36072. -/* confdefs.h. */
  36073. -_ACEOF
  36074. -cat confdefs.h >>conftest.$ac_ext
  36075. -cat >>conftest.$ac_ext <<_ACEOF
  36076. -/* end confdefs.h. */
  36077. -#include <ctype.h>
  36078. -#include <stdlib.h>
  36079. -#if ((' ' & 0x0FF) == 0x020)
  36080. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  36081. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  36082. -#else
  36083. -# define ISLOWER(c) \
  36084. - (('a' <= (c) && (c) <= 'i') \
  36085. - || ('j' <= (c) && (c) <= 'r') \
  36086. - || ('s' <= (c) && (c) <= 'z'))
  36087. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  36088. -#endif
  36089. -
  36090. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  36091. -int
  36092. -main ()
  36093. -{
  36094. - int i;
  36095. - for (i = 0; i < 256; i++)
  36096. - if (XOR (islower (i), ISLOWER (i))
  36097. - || toupper (i) != TOUPPER (i))
  36098. - return 2;
  36099. - return 0;
  36100. -}
  36101. -_ACEOF
  36102. -rm -f conftest$ac_exeext
  36103. -if { (ac_try="$ac_link"
  36104. -case "(($ac_try" in
  36105. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36106. - *) ac_try_echo=$ac_try;;
  36107. -esac
  36108. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36109. -$as_echo "$ac_try_echo") >&5
  36110. - (eval "$ac_link") 2>&5
  36111. - ac_status=$?
  36112. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36113. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36114. - { (case "(($ac_try" in
  36115. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36116. - *) ac_try_echo=$ac_try;;
  36117. -esac
  36118. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36119. -$as_echo "$ac_try_echo") >&5
  36120. - (eval "$ac_try") 2>&5
  36121. - ac_status=$?
  36122. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36123. - (exit $ac_status); }; }; then
  36124. - :
  36125. -else
  36126. - $as_echo "$as_me: program exited with status $ac_status" >&5
  36127. -$as_echo "$as_me: failed program was:" >&5
  36128. -sed 's/^/| /' conftest.$ac_ext >&5
  36129. -
  36130. -( exit $ac_status )
  36131. -ac_cv_header_stdc=no
  36132. -fi
  36133. -rm -rf conftest.dSYM
  36134. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36135. -fi
  36136. -
  36137. -
  36138. -fi
  36139. -fi
  36140. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  36141. -$as_echo "$ac_cv_header_stdc" >&6; }
  36142. -if test $ac_cv_header_stdc = yes; then
  36143. -
  36144. -cat >>confdefs.h <<\_ACEOF
  36145. -#define STDC_HEADERS 1
  36146. -_ACEOF
  36147. -
  36148. -fi
  36149. -
  36150. -{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  36151. -$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  36152. -if test "${ac_cv_header_time+set}" = set; then
  36153. - $as_echo_n "(cached) " >&6
  36154. -else
  36155. - cat >conftest.$ac_ext <<_ACEOF
  36156. -/* confdefs.h. */
  36157. -_ACEOF
  36158. -cat confdefs.h >>conftest.$ac_ext
  36159. -cat >>conftest.$ac_ext <<_ACEOF
  36160. -/* end confdefs.h. */
  36161. -#include <sys/types.h>
  36162. -#include <sys/time.h>
  36163. -#include <time.h>
  36164. -
  36165. -int
  36166. -main ()
  36167. -{
  36168. -if ((struct tm *) 0)
  36169. -return 0;
  36170. - ;
  36171. - return 0;
  36172. -}
  36173. -_ACEOF
  36174. -rm -f conftest.$ac_objext
  36175. -if { (ac_try="$ac_compile"
  36176. -case "(($ac_try" in
  36177. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36178. - *) ac_try_echo=$ac_try;;
  36179. -esac
  36180. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36181. -$as_echo "$ac_try_echo") >&5
  36182. - (eval "$ac_compile") 2>conftest.er1
  36183. - ac_status=$?
  36184. - grep -v '^ *+' conftest.er1 >conftest.err
  36185. - rm -f conftest.er1
  36186. - cat conftest.err >&5
  36187. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36188. - (exit $ac_status); } && {
  36189. - test -z "$ac_c_werror_flag" ||
  36190. - test ! -s conftest.err
  36191. - } && test -s conftest.$ac_objext; then
  36192. - ac_cv_header_time=yes
  36193. -else
  36194. - $as_echo "$as_me: failed program was:" >&5
  36195. -sed 's/^/| /' conftest.$ac_ext >&5
  36196. -
  36197. - ac_cv_header_time=no
  36198. -fi
  36199. -
  36200. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36201. -fi
  36202. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  36203. -$as_echo "$ac_cv_header_time" >&6; }
  36204. -if test $ac_cv_header_time = yes; then
  36205. -
  36206. -cat >>confdefs.h <<\_ACEOF
  36207. -#define TIME_WITH_SYS_TIME 1
  36208. -_ACEOF
  36209. -
  36210. -fi
  36211. -
  36212. -{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  36213. -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  36214. -if test "${ac_cv_header_sys_wait_h+set}" = set; then
  36215. - $as_echo_n "(cached) " >&6
  36216. -else
  36217. - cat >conftest.$ac_ext <<_ACEOF
  36218. -/* confdefs.h. */
  36219. -_ACEOF
  36220. -cat confdefs.h >>conftest.$ac_ext
  36221. -cat >>conftest.$ac_ext <<_ACEOF
  36222. -/* end confdefs.h. */
  36223. -#include <sys/types.h>
  36224. -#include <sys/wait.h>
  36225. -#ifndef WEXITSTATUS
  36226. -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  36227. -#endif
  36228. -#ifndef WIFEXITED
  36229. -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  36230. -#endif
  36231. -
  36232. -int
  36233. -main ()
  36234. -{
  36235. - int s;
  36236. - wait (&s);
  36237. - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  36238. - ;
  36239. - return 0;
  36240. -}
  36241. -_ACEOF
  36242. -rm -f conftest.$ac_objext
  36243. -if { (ac_try="$ac_compile"
  36244. -case "(($ac_try" in
  36245. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36246. - *) ac_try_echo=$ac_try;;
  36247. -esac
  36248. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36249. -$as_echo "$ac_try_echo") >&5
  36250. - (eval "$ac_compile") 2>conftest.er1
  36251. - ac_status=$?
  36252. - grep -v '^ *+' conftest.er1 >conftest.err
  36253. - rm -f conftest.er1
  36254. - cat conftest.err >&5
  36255. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36256. - (exit $ac_status); } && {
  36257. - test -z "$ac_c_werror_flag" ||
  36258. - test ! -s conftest.err
  36259. - } && test -s conftest.$ac_objext; then
  36260. - ac_cv_header_sys_wait_h=yes
  36261. -else
  36262. - $as_echo "$as_me: failed program was:" >&5
  36263. -sed 's/^/| /' conftest.$ac_ext >&5
  36264. -
  36265. - ac_cv_header_sys_wait_h=no
  36266. -fi
  36267. -
  36268. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36269. -fi
  36270. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  36271. -$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  36272. -if test $ac_cv_header_sys_wait_h = yes; then
  36273. -
  36274. -cat >>confdefs.h <<\_ACEOF
  36275. -#define HAVE_SYS_WAIT_H 1
  36276. -_ACEOF
  36277. -
  36278. -fi
  36279. -
  36280. -
  36281. -
  36282. -
  36283. -
  36284. -
  36285. -ac_header_dirent=no
  36286. -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  36287. - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  36288. -{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  36289. -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  36290. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36291. - $as_echo_n "(cached) " >&6
  36292. -else
  36293. - cat >conftest.$ac_ext <<_ACEOF
  36294. -/* confdefs.h. */
  36295. -_ACEOF
  36296. -cat confdefs.h >>conftest.$ac_ext
  36297. -cat >>conftest.$ac_ext <<_ACEOF
  36298. -/* end confdefs.h. */
  36299. -#include <sys/types.h>
  36300. -#include <$ac_hdr>
  36301. -
  36302. -int
  36303. -main ()
  36304. -{
  36305. -if ((DIR *) 0)
  36306. -return 0;
  36307. - ;
  36308. - return 0;
  36309. -}
  36310. -_ACEOF
  36311. -rm -f conftest.$ac_objext
  36312. -if { (ac_try="$ac_compile"
  36313. -case "(($ac_try" in
  36314. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36315. - *) ac_try_echo=$ac_try;;
  36316. -esac
  36317. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36318. -$as_echo "$ac_try_echo") >&5
  36319. - (eval "$ac_compile") 2>conftest.er1
  36320. - ac_status=$?
  36321. - grep -v '^ *+' conftest.er1 >conftest.err
  36322. - rm -f conftest.er1
  36323. - cat conftest.err >&5
  36324. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36325. - (exit $ac_status); } && {
  36326. - test -z "$ac_c_werror_flag" ||
  36327. - test ! -s conftest.err
  36328. - } && test -s conftest.$ac_objext; then
  36329. - eval "$as_ac_Header=yes"
  36330. -else
  36331. - $as_echo "$as_me: failed program was:" >&5
  36332. -sed 's/^/| /' conftest.$ac_ext >&5
  36333. -
  36334. - eval "$as_ac_Header=no"
  36335. -fi
  36336. -
  36337. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36338. -fi
  36339. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  36340. - $as_echo "$as_val"'`
  36341. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36342. -$as_echo "$ac_res" >&6; }
  36343. -as_val=`eval 'as_val=${'$as_ac_Header'}
  36344. - $as_echo "$as_val"'`
  36345. - if test "x$as_val" = x""yes; then
  36346. - cat >>confdefs.h <<_ACEOF
  36347. -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  36348. -_ACEOF
  36349. -
  36350. -ac_header_dirent=$ac_hdr; break
  36351. -fi
  36352. -
  36353. -done
  36354. -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  36355. -if test $ac_header_dirent = dirent.h; then
  36356. - { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  36357. -$as_echo_n "checking for library containing opendir... " >&6; }
  36358. -if test "${ac_cv_search_opendir+set}" = set; then
  36359. - $as_echo_n "(cached) " >&6
  36360. -else
  36361. - ac_func_search_save_LIBS=$LIBS
  36362. -cat >conftest.$ac_ext <<_ACEOF
  36363. -/* confdefs.h. */
  36364. -_ACEOF
  36365. -cat confdefs.h >>conftest.$ac_ext
  36366. -cat >>conftest.$ac_ext <<_ACEOF
  36367. -/* end confdefs.h. */
  36368. -
  36369. -/* Override any GCC internal prototype to avoid an error.
  36370. - Use char because int might match the return type of a GCC
  36371. - builtin and then its argument prototype would still apply. */
  36372. -#ifdef __cplusplus
  36373. -extern "C"
  36374. -#endif
  36375. -char opendir ();
  36376. -int
  36377. -main ()
  36378. -{
  36379. -return opendir ();
  36380. - ;
  36381. - return 0;
  36382. -}
  36383. -_ACEOF
  36384. -for ac_lib in '' dir; do
  36385. - if test -z "$ac_lib"; then
  36386. - ac_res="none required"
  36387. - else
  36388. - ac_res=-l$ac_lib
  36389. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  36390. - fi
  36391. - rm -f conftest.$ac_objext conftest$ac_exeext
  36392. -if { (ac_try="$ac_link"
  36393. -case "(($ac_try" in
  36394. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36395. - *) ac_try_echo=$ac_try;;
  36396. -esac
  36397. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36398. -$as_echo "$ac_try_echo") >&5
  36399. - (eval "$ac_link") 2>conftest.er1
  36400. - ac_status=$?
  36401. - grep -v '^ *+' conftest.er1 >conftest.err
  36402. - rm -f conftest.er1
  36403. - cat conftest.err >&5
  36404. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36405. - (exit $ac_status); } && {
  36406. - test -z "$ac_c_werror_flag" ||
  36407. - test ! -s conftest.err
  36408. - } && test -s conftest$ac_exeext && {
  36409. - test "$cross_compiling" = yes ||
  36410. - $as_test_x conftest$ac_exeext
  36411. - }; then
  36412. - ac_cv_search_opendir=$ac_res
  36413. -else
  36414. - $as_echo "$as_me: failed program was:" >&5
  36415. -sed 's/^/| /' conftest.$ac_ext >&5
  36416. -
  36417. -
  36418. -fi
  36419. -
  36420. -rm -rf conftest.dSYM
  36421. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36422. - conftest$ac_exeext
  36423. - if test "${ac_cv_search_opendir+set}" = set; then
  36424. - break
  36425. -fi
  36426. -done
  36427. -if test "${ac_cv_search_opendir+set}" = set; then
  36428. - :
  36429. -else
  36430. - ac_cv_search_opendir=no
  36431. -fi
  36432. -rm conftest.$ac_ext
  36433. -LIBS=$ac_func_search_save_LIBS
  36434. -fi
  36435. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  36436. -$as_echo "$ac_cv_search_opendir" >&6; }
  36437. -ac_res=$ac_cv_search_opendir
  36438. -if test "$ac_res" != no; then
  36439. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  36440. -
  36441. -fi
  36442. -
  36443. -else
  36444. - { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  36445. -$as_echo_n "checking for library containing opendir... " >&6; }
  36446. -if test "${ac_cv_search_opendir+set}" = set; then
  36447. - $as_echo_n "(cached) " >&6
  36448. -else
  36449. - ac_func_search_save_LIBS=$LIBS
  36450. -cat >conftest.$ac_ext <<_ACEOF
  36451. -/* confdefs.h. */
  36452. -_ACEOF
  36453. -cat confdefs.h >>conftest.$ac_ext
  36454. -cat >>conftest.$ac_ext <<_ACEOF
  36455. -/* end confdefs.h. */
  36456. -
  36457. -/* Override any GCC internal prototype to avoid an error.
  36458. - Use char because int might match the return type of a GCC
  36459. - builtin and then its argument prototype would still apply. */
  36460. -#ifdef __cplusplus
  36461. -extern "C"
  36462. -#endif
  36463. -char opendir ();
  36464. -int
  36465. -main ()
  36466. -{
  36467. -return opendir ();
  36468. - ;
  36469. - return 0;
  36470. -}
  36471. -_ACEOF
  36472. -for ac_lib in '' x; do
  36473. - if test -z "$ac_lib"; then
  36474. - ac_res="none required"
  36475. - else
  36476. - ac_res=-l$ac_lib
  36477. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  36478. - fi
  36479. - rm -f conftest.$ac_objext conftest$ac_exeext
  36480. -if { (ac_try="$ac_link"
  36481. -case "(($ac_try" in
  36482. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36483. - *) ac_try_echo=$ac_try;;
  36484. -esac
  36485. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36486. -$as_echo "$ac_try_echo") >&5
  36487. - (eval "$ac_link") 2>conftest.er1
  36488. - ac_status=$?
  36489. - grep -v '^ *+' conftest.er1 >conftest.err
  36490. - rm -f conftest.er1
  36491. - cat conftest.err >&5
  36492. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36493. - (exit $ac_status); } && {
  36494. - test -z "$ac_c_werror_flag" ||
  36495. - test ! -s conftest.err
  36496. - } && test -s conftest$ac_exeext && {
  36497. - test "$cross_compiling" = yes ||
  36498. - $as_test_x conftest$ac_exeext
  36499. - }; then
  36500. - ac_cv_search_opendir=$ac_res
  36501. -else
  36502. - $as_echo "$as_me: failed program was:" >&5
  36503. -sed 's/^/| /' conftest.$ac_ext >&5
  36504. -
  36505. -
  36506. -fi
  36507. -
  36508. -rm -rf conftest.dSYM
  36509. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36510. - conftest$ac_exeext
  36511. - if test "${ac_cv_search_opendir+set}" = set; then
  36512. - break
  36513. -fi
  36514. -done
  36515. -if test "${ac_cv_search_opendir+set}" = set; then
  36516. - :
  36517. -else
  36518. - ac_cv_search_opendir=no
  36519. -fi
  36520. -rm conftest.$ac_ext
  36521. -LIBS=$ac_func_search_save_LIBS
  36522. -fi
  36523. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  36524. -$as_echo "$ac_cv_search_opendir" >&6; }
  36525. -ac_res=$ac_cv_search_opendir
  36526. -if test "$ac_res" != no; then
  36527. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  36528. -
  36529. -fi
  36530. -
  36531. -fi
  36532. -
  36533. -
  36534. -# Reason for checking:
  36535. -#
  36536. -# HP-UX 11.11 (at least) doesn't provide `struct dirent64', even
  36537. -# with `_LARGEFILE64_SOURCE', so check whether it's available.
  36538. -#
  36539. -{ $as_echo "$as_me:$LINENO: checking for struct dirent64.d_name" >&5
  36540. -$as_echo_n "checking for struct dirent64.d_name... " >&6; }
  36541. -if test "${ac_cv_member_struct_dirent64_d_name+set}" = set; then
  36542. - $as_echo_n "(cached) " >&6
  36543. -else
  36544. - cat >conftest.$ac_ext <<_ACEOF
  36545. -/* confdefs.h. */
  36546. -_ACEOF
  36547. -cat confdefs.h >>conftest.$ac_ext
  36548. -cat >>conftest.$ac_ext <<_ACEOF
  36549. -/* end confdefs.h. */
  36550. - #ifndef _LARGEFILE64_SOURCE
  36551. - # define _LARGEFILE64_SOURCE
  36552. - #endif
  36553. -
  36554. - /* Per Autoconf manual. */
  36555. - #include <sys/types.h>
  36556. - #ifdef HAVE_DIRENT_H
  36557. - # include <dirent.h>
  36558. - #else
  36559. - # define dirent direct
  36560. - # ifdef HAVE_SYS_NDIR_H
  36561. - # include <sys/ndir.h>
  36562. - # endif
  36563. - # ifdef HAVE_SYS_DIR_H
  36564. - # include <sys/dir.h>
  36565. - # endif
  36566. - # ifdef HAVE_NDIR_H
  36567. - # include <ndir.h>
  36568. - # endif
  36569. - #endif
  36570. -
  36571. -int
  36572. -main ()
  36573. -{
  36574. -static struct dirent64 ac_aggr;
  36575. -if (ac_aggr.d_name)
  36576. -return 0;
  36577. - ;
  36578. - return 0;
  36579. -}
  36580. -_ACEOF
  36581. -rm -f conftest.$ac_objext
  36582. -if { (ac_try="$ac_compile"
  36583. -case "(($ac_try" in
  36584. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36585. - *) ac_try_echo=$ac_try;;
  36586. -esac
  36587. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36588. -$as_echo "$ac_try_echo") >&5
  36589. - (eval "$ac_compile") 2>conftest.er1
  36590. - ac_status=$?
  36591. - grep -v '^ *+' conftest.er1 >conftest.err
  36592. - rm -f conftest.er1
  36593. - cat conftest.err >&5
  36594. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36595. - (exit $ac_status); } && {
  36596. - test -z "$ac_c_werror_flag" ||
  36597. - test ! -s conftest.err
  36598. - } && test -s conftest.$ac_objext; then
  36599. - ac_cv_member_struct_dirent64_d_name=yes
  36600. -else
  36601. - $as_echo "$as_me: failed program was:" >&5
  36602. -sed 's/^/| /' conftest.$ac_ext >&5
  36603. -
  36604. - cat >conftest.$ac_ext <<_ACEOF
  36605. -/* confdefs.h. */
  36606. -_ACEOF
  36607. -cat confdefs.h >>conftest.$ac_ext
  36608. -cat >>conftest.$ac_ext <<_ACEOF
  36609. -/* end confdefs.h. */
  36610. - #ifndef _LARGEFILE64_SOURCE
  36611. - # define _LARGEFILE64_SOURCE
  36612. - #endif
  36613. -
  36614. - /* Per Autoconf manual. */
  36615. - #include <sys/types.h>
  36616. - #ifdef HAVE_DIRENT_H
  36617. - # include <dirent.h>
  36618. - #else
  36619. - # define dirent direct
  36620. - # ifdef HAVE_SYS_NDIR_H
  36621. - # include <sys/ndir.h>
  36622. - # endif
  36623. - # ifdef HAVE_SYS_DIR_H
  36624. - # include <sys/dir.h>
  36625. - # endif
  36626. - # ifdef HAVE_NDIR_H
  36627. - # include <ndir.h>
  36628. - # endif
  36629. - #endif
  36630. -
  36631. -int
  36632. -main ()
  36633. -{
  36634. -static struct dirent64 ac_aggr;
  36635. -if (sizeof ac_aggr.d_name)
  36636. -return 0;
  36637. - ;
  36638. - return 0;
  36639. -}
  36640. -_ACEOF
  36641. -rm -f conftest.$ac_objext
  36642. -if { (ac_try="$ac_compile"
  36643. -case "(($ac_try" in
  36644. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36645. - *) ac_try_echo=$ac_try;;
  36646. -esac
  36647. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36648. -$as_echo "$ac_try_echo") >&5
  36649. - (eval "$ac_compile") 2>conftest.er1
  36650. - ac_status=$?
  36651. - grep -v '^ *+' conftest.er1 >conftest.err
  36652. - rm -f conftest.er1
  36653. - cat conftest.err >&5
  36654. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36655. - (exit $ac_status); } && {
  36656. - test -z "$ac_c_werror_flag" ||
  36657. - test ! -s conftest.err
  36658. - } && test -s conftest.$ac_objext; then
  36659. - ac_cv_member_struct_dirent64_d_name=yes
  36660. -else
  36661. - $as_echo "$as_me: failed program was:" >&5
  36662. -sed 's/^/| /' conftest.$ac_ext >&5
  36663. -
  36664. - ac_cv_member_struct_dirent64_d_name=no
  36665. -fi
  36666. -
  36667. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36668. -fi
  36669. -
  36670. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36671. -fi
  36672. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent64_d_name" >&5
  36673. -$as_echo "$ac_cv_member_struct_dirent64_d_name" >&6; }
  36674. -if test "x$ac_cv_member_struct_dirent64_d_name" = x""yes; then
  36675. - SCM_I_GSC_HAVE_STRUCT_DIRENT64=1
  36676. -else
  36677. - SCM_I_GSC_HAVE_STRUCT_DIRENT64=0
  36678. -fi
  36679. -
  36680. -
  36681. -
  36682. -# Reasons for testing:
  36683. -# complex.h - new in C99
  36684. -# fenv.h - available in C99, but not older systems
  36685. -# machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in
  36686. -# this file instead of <fenv.h>
  36687. -# process.h - mingw specific
  36688. -#
  36689. -
  36690. -
  36691. -
  36692. -
  36693. -
  36694. -
  36695. -
  36696. -
  36697. -
  36698. -
  36699. -
  36700. -
  36701. -
  36702. -
  36703. -
  36704. -
  36705. -
  36706. -
  36707. -
  36708. -
  36709. -
  36710. -
  36711. -
  36712. -
  36713. -
  36714. -
  36715. -
  36716. -
  36717. -
  36718. -
  36719. -for ac_header in complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \
  36720. -regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \
  36721. -sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
  36722. -sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
  36723. -direct.h strings.h machine/fpu.h
  36724. -do
  36725. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  36726. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36727. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  36728. -$as_echo_n "checking for $ac_header... " >&6; }
  36729. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36730. - $as_echo_n "(cached) " >&6
  36731. -fi
  36732. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  36733. - $as_echo "$as_val"'`
  36734. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36735. -$as_echo "$ac_res" >&6; }
  36736. -else
  36737. - # Is the header compilable?
  36738. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  36739. -$as_echo_n "checking $ac_header usability... " >&6; }
  36740. -cat >conftest.$ac_ext <<_ACEOF
  36741. -/* confdefs.h. */
  36742. -_ACEOF
  36743. -cat confdefs.h >>conftest.$ac_ext
  36744. -cat >>conftest.$ac_ext <<_ACEOF
  36745. -/* end confdefs.h. */
  36746. -$ac_includes_default
  36747. -#include <$ac_header>
  36748. -_ACEOF
  36749. -rm -f conftest.$ac_objext
  36750. -if { (ac_try="$ac_compile"
  36751. -case "(($ac_try" in
  36752. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36753. - *) ac_try_echo=$ac_try;;
  36754. -esac
  36755. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36756. -$as_echo "$ac_try_echo") >&5
  36757. - (eval "$ac_compile") 2>conftest.er1
  36758. - ac_status=$?
  36759. - grep -v '^ *+' conftest.er1 >conftest.err
  36760. - rm -f conftest.er1
  36761. - cat conftest.err >&5
  36762. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36763. - (exit $ac_status); } && {
  36764. - test -z "$ac_c_werror_flag" ||
  36765. - test ! -s conftest.err
  36766. - } && test -s conftest.$ac_objext; then
  36767. - ac_header_compiler=yes
  36768. -else
  36769. - $as_echo "$as_me: failed program was:" >&5
  36770. -sed 's/^/| /' conftest.$ac_ext >&5
  36771. -
  36772. - ac_header_compiler=no
  36773. -fi
  36774. -
  36775. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36776. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36777. -$as_echo "$ac_header_compiler" >&6; }
  36778. -
  36779. -# Is the header present?
  36780. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  36781. -$as_echo_n "checking $ac_header presence... " >&6; }
  36782. -cat >conftest.$ac_ext <<_ACEOF
  36783. -/* confdefs.h. */
  36784. -_ACEOF
  36785. -cat confdefs.h >>conftest.$ac_ext
  36786. -cat >>conftest.$ac_ext <<_ACEOF
  36787. -/* end confdefs.h. */
  36788. -#include <$ac_header>
  36789. -_ACEOF
  36790. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  36791. -case "(($ac_try" in
  36792. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36793. - *) ac_try_echo=$ac_try;;
  36794. -esac
  36795. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36796. -$as_echo "$ac_try_echo") >&5
  36797. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36798. - ac_status=$?
  36799. - grep -v '^ *+' conftest.er1 >conftest.err
  36800. - rm -f conftest.er1
  36801. - cat conftest.err >&5
  36802. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36803. - (exit $ac_status); } >/dev/null && {
  36804. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36805. - test ! -s conftest.err
  36806. - }; then
  36807. - ac_header_preproc=yes
  36808. -else
  36809. - $as_echo "$as_me: failed program was:" >&5
  36810. -sed 's/^/| /' conftest.$ac_ext >&5
  36811. -
  36812. - ac_header_preproc=no
  36813. -fi
  36814. -
  36815. -rm -f conftest.err conftest.$ac_ext
  36816. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36817. -$as_echo "$ac_header_preproc" >&6; }
  36818. -
  36819. -# So? What about this header?
  36820. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36821. - yes:no: )
  36822. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  36823. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36824. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  36825. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  36826. - ac_header_preproc=yes
  36827. - ;;
  36828. - no:yes:* )
  36829. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  36830. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  36831. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  36832. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  36833. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  36834. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  36835. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  36836. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  36837. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  36838. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  36839. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  36840. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  36841. - ( cat <<\_ASBOX
  36842. -## -------------------------------- ##
  36843. -## Report this to bug-guile@gnu.org ##
  36844. -## -------------------------------- ##
  36845. -_ASBOX
  36846. - ) | sed "s/^/$as_me: WARNING: /" >&2
  36847. - ;;
  36848. -esac
  36849. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  36850. -$as_echo_n "checking for $ac_header... " >&6; }
  36851. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36852. - $as_echo_n "(cached) " >&6
  36853. -else
  36854. - eval "$as_ac_Header=\$ac_header_preproc"
  36855. -fi
  36856. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  36857. - $as_echo "$as_val"'`
  36858. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36859. -$as_echo "$ac_res" >&6; }
  36860. -
  36861. -fi
  36862. -as_val=`eval 'as_val=${'$as_ac_Header'}
  36863. - $as_echo "$as_val"'`
  36864. - if test "x$as_val" = x""yes; then
  36865. - cat >>confdefs.h <<_ACEOF
  36866. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  36867. -_ACEOF
  36868. -
  36869. -fi
  36870. -
  36871. -done
  36872. -
  36873. -
  36874. -# "complex double" is new in C99, and "complex" is only a keyword if
  36875. -# <complex.h> is included
  36876. -{ $as_echo "$as_me:$LINENO: checking for complex double" >&5
  36877. -$as_echo_n "checking for complex double... " >&6; }
  36878. -if test "${ac_cv_type_complex_double+set}" = set; then
  36879. - $as_echo_n "(cached) " >&6
  36880. -else
  36881. - ac_cv_type_complex_double=no
  36882. -cat >conftest.$ac_ext <<_ACEOF
  36883. -/* confdefs.h. */
  36884. -_ACEOF
  36885. -cat confdefs.h >>conftest.$ac_ext
  36886. -cat >>conftest.$ac_ext <<_ACEOF
  36887. -/* end confdefs.h. */
  36888. -#if HAVE_COMPLEX_H
  36889. -#include <complex.h>
  36890. -#endif
  36891. -
  36892. -int
  36893. -main ()
  36894. -{
  36895. -if (sizeof (complex double))
  36896. - return 0;
  36897. - ;
  36898. - return 0;
  36899. -}
  36900. -_ACEOF
  36901. -rm -f conftest.$ac_objext
  36902. -if { (ac_try="$ac_compile"
  36903. -case "(($ac_try" in
  36904. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36905. - *) ac_try_echo=$ac_try;;
  36906. -esac
  36907. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36908. -$as_echo "$ac_try_echo") >&5
  36909. - (eval "$ac_compile") 2>conftest.er1
  36910. - ac_status=$?
  36911. - grep -v '^ *+' conftest.er1 >conftest.err
  36912. - rm -f conftest.er1
  36913. - cat conftest.err >&5
  36914. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36915. - (exit $ac_status); } && {
  36916. - test -z "$ac_c_werror_flag" ||
  36917. - test ! -s conftest.err
  36918. - } && test -s conftest.$ac_objext; then
  36919. - cat >conftest.$ac_ext <<_ACEOF
  36920. -/* confdefs.h. */
  36921. -_ACEOF
  36922. -cat confdefs.h >>conftest.$ac_ext
  36923. -cat >>conftest.$ac_ext <<_ACEOF
  36924. -/* end confdefs.h. */
  36925. -#if HAVE_COMPLEX_H
  36926. -#include <complex.h>
  36927. -#endif
  36928. -
  36929. -int
  36930. -main ()
  36931. -{
  36932. -if (sizeof ((complex double)))
  36933. - return 0;
  36934. - ;
  36935. - return 0;
  36936. -}
  36937. -_ACEOF
  36938. -rm -f conftest.$ac_objext
  36939. -if { (ac_try="$ac_compile"
  36940. -case "(($ac_try" in
  36941. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36942. - *) ac_try_echo=$ac_try;;
  36943. -esac
  36944. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36945. -$as_echo "$ac_try_echo") >&5
  36946. - (eval "$ac_compile") 2>conftest.er1
  36947. - ac_status=$?
  36948. - grep -v '^ *+' conftest.er1 >conftest.err
  36949. - rm -f conftest.er1
  36950. - cat conftest.err >&5
  36951. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36952. - (exit $ac_status); } && {
  36953. - test -z "$ac_c_werror_flag" ||
  36954. - test ! -s conftest.err
  36955. - } && test -s conftest.$ac_objext; then
  36956. - :
  36957. -else
  36958. - $as_echo "$as_me: failed program was:" >&5
  36959. -sed 's/^/| /' conftest.$ac_ext >&5
  36960. -
  36961. - ac_cv_type_complex_double=yes
  36962. -fi
  36963. -
  36964. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36965. -else
  36966. - $as_echo "$as_me: failed program was:" >&5
  36967. -sed 's/^/| /' conftest.$ac_ext >&5
  36968. -
  36969. -
  36970. -fi
  36971. -
  36972. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36973. -fi
  36974. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_complex_double" >&5
  36975. -$as_echo "$ac_cv_type_complex_double" >&6; }
  36976. -if test "x$ac_cv_type_complex_double" = x""yes; then
  36977. -
  36978. -cat >>confdefs.h <<_ACEOF
  36979. -#define HAVE_COMPLEX_DOUBLE 1
  36980. -_ACEOF
  36981. -
  36982. -
  36983. -fi
  36984. -
  36985. -
  36986. -# On MacOS X <sys/socklen.h> contains socklen_t, so must include that
  36987. -# when testing.
  36988. -{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  36989. -$as_echo_n "checking for socklen_t... " >&6; }
  36990. -if test "${ac_cv_type_socklen_t+set}" = set; then
  36991. - $as_echo_n "(cached) " >&6
  36992. -else
  36993. - ac_cv_type_socklen_t=no
  36994. -cat >conftest.$ac_ext <<_ACEOF
  36995. -/* confdefs.h. */
  36996. -_ACEOF
  36997. -cat confdefs.h >>conftest.$ac_ext
  36998. -cat >>conftest.$ac_ext <<_ACEOF
  36999. -/* end confdefs.h. */
  37000. -#if HAVE_SYS_TYPES_H
  37001. -#include <sys/types.h>
  37002. -#endif
  37003. -#include <sys/socket.h>
  37004. -
  37005. -
  37006. -int
  37007. -main ()
  37008. -{
  37009. -if (sizeof (socklen_t))
  37010. - return 0;
  37011. - ;
  37012. - return 0;
  37013. -}
  37014. -_ACEOF
  37015. -rm -f conftest.$ac_objext
  37016. -if { (ac_try="$ac_compile"
  37017. -case "(($ac_try" in
  37018. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37019. - *) ac_try_echo=$ac_try;;
  37020. -esac
  37021. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37022. -$as_echo "$ac_try_echo") >&5
  37023. - (eval "$ac_compile") 2>conftest.er1
  37024. - ac_status=$?
  37025. - grep -v '^ *+' conftest.er1 >conftest.err
  37026. - rm -f conftest.er1
  37027. - cat conftest.err >&5
  37028. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37029. - (exit $ac_status); } && {
  37030. - test -z "$ac_c_werror_flag" ||
  37031. - test ! -s conftest.err
  37032. - } && test -s conftest.$ac_objext; then
  37033. - cat >conftest.$ac_ext <<_ACEOF
  37034. -/* confdefs.h. */
  37035. -_ACEOF
  37036. -cat confdefs.h >>conftest.$ac_ext
  37037. -cat >>conftest.$ac_ext <<_ACEOF
  37038. -/* end confdefs.h. */
  37039. -#if HAVE_SYS_TYPES_H
  37040. -#include <sys/types.h>
  37041. -#endif
  37042. -#include <sys/socket.h>
  37043. -
  37044. -
  37045. -int
  37046. -main ()
  37047. -{
  37048. -if (sizeof ((socklen_t)))
  37049. - return 0;
  37050. - ;
  37051. - return 0;
  37052. -}
  37053. -_ACEOF
  37054. -rm -f conftest.$ac_objext
  37055. -if { (ac_try="$ac_compile"
  37056. -case "(($ac_try" in
  37057. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37058. - *) ac_try_echo=$ac_try;;
  37059. -esac
  37060. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37061. -$as_echo "$ac_try_echo") >&5
  37062. - (eval "$ac_compile") 2>conftest.er1
  37063. - ac_status=$?
  37064. - grep -v '^ *+' conftest.er1 >conftest.err
  37065. - rm -f conftest.er1
  37066. - cat conftest.err >&5
  37067. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37068. - (exit $ac_status); } && {
  37069. - test -z "$ac_c_werror_flag" ||
  37070. - test ! -s conftest.err
  37071. - } && test -s conftest.$ac_objext; then
  37072. - :
  37073. -else
  37074. - $as_echo "$as_me: failed program was:" >&5
  37075. -sed 's/^/| /' conftest.$ac_ext >&5
  37076. -
  37077. - ac_cv_type_socklen_t=yes
  37078. -fi
  37079. -
  37080. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37081. -else
  37082. - $as_echo "$as_me: failed program was:" >&5
  37083. -sed 's/^/| /' conftest.$ac_ext >&5
  37084. -
  37085. -
  37086. -fi
  37087. -
  37088. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37089. -fi
  37090. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  37091. -$as_echo "$ac_cv_type_socklen_t" >&6; }
  37092. -if test "x$ac_cv_type_socklen_t" = x""yes; then
  37093. - :
  37094. -else
  37095. -
  37096. -cat >>confdefs.h <<_ACEOF
  37097. -#define socklen_t int
  37098. -_ACEOF
  37099. -
  37100. -fi
  37101. -
  37102. -{ $as_echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
  37103. -$as_echo_n "checking for struct ip_mreq... " >&6; }
  37104. -if test "${ac_cv_type_struct_ip_mreq+set}" = set; then
  37105. - $as_echo_n "(cached) " >&6
  37106. -else
  37107. - ac_cv_type_struct_ip_mreq=no
  37108. -cat >conftest.$ac_ext <<_ACEOF
  37109. -/* confdefs.h. */
  37110. -_ACEOF
  37111. -cat confdefs.h >>conftest.$ac_ext
  37112. -cat >>conftest.$ac_ext <<_ACEOF
  37113. -/* end confdefs.h. */
  37114. -$ac_includes_default
  37115. -int
  37116. -main ()
  37117. -{
  37118. -if (sizeof (struct ip_mreq))
  37119. - return 0;
  37120. - ;
  37121. - return 0;
  37122. -}
  37123. -_ACEOF
  37124. -rm -f conftest.$ac_objext
  37125. -if { (ac_try="$ac_compile"
  37126. -case "(($ac_try" in
  37127. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37128. - *) ac_try_echo=$ac_try;;
  37129. -esac
  37130. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37131. -$as_echo "$ac_try_echo") >&5
  37132. - (eval "$ac_compile") 2>conftest.er1
  37133. - ac_status=$?
  37134. - grep -v '^ *+' conftest.er1 >conftest.err
  37135. - rm -f conftest.er1
  37136. - cat conftest.err >&5
  37137. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37138. - (exit $ac_status); } && {
  37139. - test -z "$ac_c_werror_flag" ||
  37140. - test ! -s conftest.err
  37141. - } && test -s conftest.$ac_objext; then
  37142. - cat >conftest.$ac_ext <<_ACEOF
  37143. -/* confdefs.h. */
  37144. -_ACEOF
  37145. -cat confdefs.h >>conftest.$ac_ext
  37146. -cat >>conftest.$ac_ext <<_ACEOF
  37147. -/* end confdefs.h. */
  37148. -$ac_includes_default
  37149. -int
  37150. -main ()
  37151. -{
  37152. -if (sizeof ((struct ip_mreq)))
  37153. - return 0;
  37154. - ;
  37155. - return 0;
  37156. -}
  37157. -_ACEOF
  37158. -rm -f conftest.$ac_objext
  37159. -if { (ac_try="$ac_compile"
  37160. -case "(($ac_try" in
  37161. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37162. - *) ac_try_echo=$ac_try;;
  37163. -esac
  37164. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37165. -$as_echo "$ac_try_echo") >&5
  37166. - (eval "$ac_compile") 2>conftest.er1
  37167. - ac_status=$?
  37168. - grep -v '^ *+' conftest.er1 >conftest.err
  37169. - rm -f conftest.er1
  37170. - cat conftest.err >&5
  37171. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37172. - (exit $ac_status); } && {
  37173. - test -z "$ac_c_werror_flag" ||
  37174. - test ! -s conftest.err
  37175. - } && test -s conftest.$ac_objext; then
  37176. - :
  37177. -else
  37178. - $as_echo "$as_me: failed program was:" >&5
  37179. -sed 's/^/| /' conftest.$ac_ext >&5
  37180. -
  37181. - ac_cv_type_struct_ip_mreq=yes
  37182. -fi
  37183. -
  37184. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37185. -else
  37186. - $as_echo "$as_me: failed program was:" >&5
  37187. -sed 's/^/| /' conftest.$ac_ext >&5
  37188. -
  37189. -
  37190. -fi
  37191. -
  37192. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37193. -fi
  37194. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ip_mreq" >&5
  37195. -$as_echo "$ac_cv_type_struct_ip_mreq" >&6; }
  37196. -
  37197. -
  37198. -
  37199. -
  37200. -
  37201. -for ac_header in libc.h unistd.h
  37202. -do
  37203. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37204. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37205. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  37206. -$as_echo_n "checking for $ac_header... " >&6; }
  37207. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37208. - $as_echo_n "(cached) " >&6
  37209. -fi
  37210. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  37211. - $as_echo "$as_val"'`
  37212. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37213. -$as_echo "$ac_res" >&6; }
  37214. -else
  37215. - # Is the header compilable?
  37216. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  37217. -$as_echo_n "checking $ac_header usability... " >&6; }
  37218. -cat >conftest.$ac_ext <<_ACEOF
  37219. -/* confdefs.h. */
  37220. -_ACEOF
  37221. -cat confdefs.h >>conftest.$ac_ext
  37222. -cat >>conftest.$ac_ext <<_ACEOF
  37223. -/* end confdefs.h. */
  37224. -$ac_includes_default
  37225. -#include <$ac_header>
  37226. -_ACEOF
  37227. -rm -f conftest.$ac_objext
  37228. -if { (ac_try="$ac_compile"
  37229. -case "(($ac_try" in
  37230. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37231. - *) ac_try_echo=$ac_try;;
  37232. -esac
  37233. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37234. -$as_echo "$ac_try_echo") >&5
  37235. - (eval "$ac_compile") 2>conftest.er1
  37236. - ac_status=$?
  37237. - grep -v '^ *+' conftest.er1 >conftest.err
  37238. - rm -f conftest.er1
  37239. - cat conftest.err >&5
  37240. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37241. - (exit $ac_status); } && {
  37242. - test -z "$ac_c_werror_flag" ||
  37243. - test ! -s conftest.err
  37244. - } && test -s conftest.$ac_objext; then
  37245. - ac_header_compiler=yes
  37246. -else
  37247. - $as_echo "$as_me: failed program was:" >&5
  37248. -sed 's/^/| /' conftest.$ac_ext >&5
  37249. -
  37250. - ac_header_compiler=no
  37251. -fi
  37252. -
  37253. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37254. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37255. -$as_echo "$ac_header_compiler" >&6; }
  37256. -
  37257. -# Is the header present?
  37258. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  37259. -$as_echo_n "checking $ac_header presence... " >&6; }
  37260. -cat >conftest.$ac_ext <<_ACEOF
  37261. -/* confdefs.h. */
  37262. -_ACEOF
  37263. -cat confdefs.h >>conftest.$ac_ext
  37264. -cat >>conftest.$ac_ext <<_ACEOF
  37265. -/* end confdefs.h. */
  37266. -#include <$ac_header>
  37267. -_ACEOF
  37268. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  37269. -case "(($ac_try" in
  37270. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37271. - *) ac_try_echo=$ac_try;;
  37272. -esac
  37273. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37274. -$as_echo "$ac_try_echo") >&5
  37275. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37276. - ac_status=$?
  37277. - grep -v '^ *+' conftest.er1 >conftest.err
  37278. - rm -f conftest.er1
  37279. - cat conftest.err >&5
  37280. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37281. - (exit $ac_status); } >/dev/null && {
  37282. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37283. - test ! -s conftest.err
  37284. - }; then
  37285. - ac_header_preproc=yes
  37286. -else
  37287. - $as_echo "$as_me: failed program was:" >&5
  37288. -sed 's/^/| /' conftest.$ac_ext >&5
  37289. -
  37290. - ac_header_preproc=no
  37291. -fi
  37292. -
  37293. -rm -f conftest.err conftest.$ac_ext
  37294. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37295. -$as_echo "$ac_header_preproc" >&6; }
  37296. -
  37297. -# So? What about this header?
  37298. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37299. - yes:no: )
  37300. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  37301. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37302. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  37303. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  37304. - ac_header_preproc=yes
  37305. - ;;
  37306. - no:yes:* )
  37307. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  37308. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  37309. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  37310. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  37311. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  37312. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  37313. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  37314. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  37315. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  37316. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  37317. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  37318. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  37319. - ( cat <<\_ASBOX
  37320. -## -------------------------------- ##
  37321. -## Report this to bug-guile@gnu.org ##
  37322. -## -------------------------------- ##
  37323. -_ASBOX
  37324. - ) | sed "s/^/$as_me: WARNING: /" >&2
  37325. - ;;
  37326. -esac
  37327. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  37328. -$as_echo_n "checking for $ac_header... " >&6; }
  37329. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37330. - $as_echo_n "(cached) " >&6
  37331. -else
  37332. - eval "$as_ac_Header=\$ac_header_preproc"
  37333. -fi
  37334. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  37335. - $as_echo "$as_val"'`
  37336. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37337. -$as_echo "$ac_res" >&6; }
  37338. -
  37339. -fi
  37340. -as_val=`eval 'as_val=${'$as_ac_Header'}
  37341. - $as_echo "$as_val"'`
  37342. - if test "x$as_val" = x""yes; then
  37343. - cat >>confdefs.h <<_ACEOF
  37344. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37345. -_ACEOF
  37346. -
  37347. -fi
  37348. -
  37349. -done
  37350. -
  37351. - { $as_echo "$as_me:$LINENO: checking whether libc.h and unistd.h can be included together" >&5
  37352. -$as_echo_n "checking whether libc.h and unistd.h can be included together... " >&6; }
  37353. -if test "${guile_cv_header_libc_with_unistd+set}" = set; then
  37354. - $as_echo_n "(cached) " >&6
  37355. -else
  37356. -
  37357. - if test "$ac_cv_header_libc_h" = "no"; then
  37358. - guile_cv_header_libc_with_unistd="no"
  37359. - elif test "$ac_cv_header_unistd_h" = "no"; then
  37360. - guile_cv_header_libc_with_unistd="yes"
  37361. - else
  37362. - cat >conftest.$ac_ext <<_ACEOF
  37363. -/* confdefs.h. */
  37364. -_ACEOF
  37365. -cat confdefs.h >>conftest.$ac_ext
  37366. -cat >>conftest.$ac_ext <<_ACEOF
  37367. -/* end confdefs.h. */
  37368. -
  37369. -# include <libc.h>
  37370. -# include <unistd.h>
  37371. -
  37372. -int
  37373. -main ()
  37374. -{
  37375. -
  37376. - ;
  37377. - return 0;
  37378. -}
  37379. -_ACEOF
  37380. -rm -f conftest.$ac_objext
  37381. -if { (ac_try="$ac_compile"
  37382. -case "(($ac_try" in
  37383. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37384. - *) ac_try_echo=$ac_try;;
  37385. -esac
  37386. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37387. -$as_echo "$ac_try_echo") >&5
  37388. - (eval "$ac_compile") 2>conftest.er1
  37389. - ac_status=$?
  37390. - grep -v '^ *+' conftest.er1 >conftest.err
  37391. - rm -f conftest.er1
  37392. - cat conftest.err >&5
  37393. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37394. - (exit $ac_status); } && {
  37395. - test -z "$ac_c_werror_flag" ||
  37396. - test ! -s conftest.err
  37397. - } && test -s conftest.$ac_objext; then
  37398. - guile_cv_header_libc_with_unistd=yes
  37399. -else
  37400. - $as_echo "$as_me: failed program was:" >&5
  37401. -sed 's/^/| /' conftest.$ac_ext >&5
  37402. -
  37403. - guile_cv_header_libc_with_unistd=no
  37404. -
  37405. -fi
  37406. -
  37407. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37408. - fi
  37409. -
  37410. -
  37411. -fi
  37412. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_header_libc_with_unistd" >&5
  37413. -$as_echo "$guile_cv_header_libc_with_unistd" >&6; }
  37414. - if test "$guile_cv_header_libc_with_unistd" = yes; then
  37415. -
  37416. -cat >>confdefs.h <<\_ACEOF
  37417. -#define LIBC_H_WITH_UNISTD_H 1
  37418. -_ACEOF
  37419. -
  37420. - fi
  37421. -
  37422. -
  37423. -
  37424. -{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  37425. -$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  37426. -if test "${ac_cv_type_uid_t+set}" = set; then
  37427. - $as_echo_n "(cached) " >&6
  37428. -else
  37429. - cat >conftest.$ac_ext <<_ACEOF
  37430. -/* confdefs.h. */
  37431. -_ACEOF
  37432. -cat confdefs.h >>conftest.$ac_ext
  37433. -cat >>conftest.$ac_ext <<_ACEOF
  37434. -/* end confdefs.h. */
  37435. -#include <sys/types.h>
  37436. -
  37437. -_ACEOF
  37438. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37439. - $EGREP "uid_t" >/dev/null 2>&1; then
  37440. - ac_cv_type_uid_t=yes
  37441. -else
  37442. - ac_cv_type_uid_t=no
  37443. -fi
  37444. -rm -f conftest*
  37445. -
  37446. -fi
  37447. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  37448. -$as_echo "$ac_cv_type_uid_t" >&6; }
  37449. -if test $ac_cv_type_uid_t = no; then
  37450. -
  37451. -cat >>confdefs.h <<\_ACEOF
  37452. -#define uid_t int
  37453. -_ACEOF
  37454. -
  37455. -
  37456. -cat >>confdefs.h <<\_ACEOF
  37457. -#define gid_t int
  37458. -_ACEOF
  37459. -
  37460. -fi
  37461. -
  37462. -{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  37463. -$as_echo_n "checking type of array argument to getgroups... " >&6; }
  37464. -if test "${ac_cv_type_getgroups+set}" = set; then
  37465. - $as_echo_n "(cached) " >&6
  37466. -else
  37467. - if test "$cross_compiling" = yes; then
  37468. - ac_cv_type_getgroups=cross
  37469. -else
  37470. - cat >conftest.$ac_ext <<_ACEOF
  37471. -/* confdefs.h. */
  37472. -_ACEOF
  37473. -cat confdefs.h >>conftest.$ac_ext
  37474. -cat >>conftest.$ac_ext <<_ACEOF
  37475. -/* end confdefs.h. */
  37476. -/* Thanks to Mike Rendell for this test. */
  37477. -$ac_includes_default
  37478. -#define NGID 256
  37479. -#undef MAX
  37480. -#define MAX(x, y) ((x) > (y) ? (x) : (y))
  37481. -
  37482. -int
  37483. -main ()
  37484. -{
  37485. - gid_t gidset[NGID];
  37486. - int i, n;
  37487. - union { gid_t gval; long int lval; } val;
  37488. -
  37489. - val.lval = -1;
  37490. - for (i = 0; i < NGID; i++)
  37491. - gidset[i] = val.gval;
  37492. - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  37493. - gidset);
  37494. - /* Exit non-zero if getgroups seems to require an array of ints. This
  37495. - happens when gid_t is short int but getgroups modifies an array
  37496. - of ints. */
  37497. - return n > 0 && gidset[n] != val.gval;
  37498. -}
  37499. -_ACEOF
  37500. -rm -f conftest$ac_exeext
  37501. -if { (ac_try="$ac_link"
  37502. -case "(($ac_try" in
  37503. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37504. - *) ac_try_echo=$ac_try;;
  37505. -esac
  37506. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37507. -$as_echo "$ac_try_echo") >&5
  37508. - (eval "$ac_link") 2>&5
  37509. - ac_status=$?
  37510. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37511. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  37512. - { (case "(($ac_try" in
  37513. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37514. - *) ac_try_echo=$ac_try;;
  37515. -esac
  37516. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37517. -$as_echo "$ac_try_echo") >&5
  37518. - (eval "$ac_try") 2>&5
  37519. - ac_status=$?
  37520. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37521. - (exit $ac_status); }; }; then
  37522. - ac_cv_type_getgroups=gid_t
  37523. -else
  37524. - $as_echo "$as_me: program exited with status $ac_status" >&5
  37525. -$as_echo "$as_me: failed program was:" >&5
  37526. -sed 's/^/| /' conftest.$ac_ext >&5
  37527. -
  37528. -( exit $ac_status )
  37529. -ac_cv_type_getgroups=int
  37530. -fi
  37531. -rm -rf conftest.dSYM
  37532. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  37533. -fi
  37534. -
  37535. -
  37536. -if test $ac_cv_type_getgroups = cross; then
  37537. - cat >conftest.$ac_ext <<_ACEOF
  37538. -/* confdefs.h. */
  37539. -_ACEOF
  37540. -cat confdefs.h >>conftest.$ac_ext
  37541. -cat >>conftest.$ac_ext <<_ACEOF
  37542. -/* end confdefs.h. */
  37543. -#include <unistd.h>
  37544. -
  37545. -_ACEOF
  37546. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37547. - $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  37548. - ac_cv_type_getgroups=gid_t
  37549. -else
  37550. - ac_cv_type_getgroups=int
  37551. -fi
  37552. -rm -f conftest*
  37553. -
  37554. -fi
  37555. -fi
  37556. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  37557. -$as_echo "$ac_cv_type_getgroups" >&6; }
  37558. -
  37559. -cat >>confdefs.h <<_ACEOF
  37560. -#define GETGROUPS_T $ac_cv_type_getgroups
  37561. -_ACEOF
  37562. -
  37563. -
  37564. -{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  37565. -$as_echo_n "checking return type of signal handlers... " >&6; }
  37566. -if test "${ac_cv_type_signal+set}" = set; then
  37567. - $as_echo_n "(cached) " >&6
  37568. -else
  37569. - cat >conftest.$ac_ext <<_ACEOF
  37570. -/* confdefs.h. */
  37571. -_ACEOF
  37572. -cat confdefs.h >>conftest.$ac_ext
  37573. -cat >>conftest.$ac_ext <<_ACEOF
  37574. -/* end confdefs.h. */
  37575. -#include <sys/types.h>
  37576. -#include <signal.h>
  37577. -
  37578. -int
  37579. -main ()
  37580. -{
  37581. -return *(signal (0, 0)) (0) == 1;
  37582. - ;
  37583. - return 0;
  37584. -}
  37585. -_ACEOF
  37586. -rm -f conftest.$ac_objext
  37587. -if { (ac_try="$ac_compile"
  37588. -case "(($ac_try" in
  37589. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37590. - *) ac_try_echo=$ac_try;;
  37591. -esac
  37592. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37593. -$as_echo "$ac_try_echo") >&5
  37594. - (eval "$ac_compile") 2>conftest.er1
  37595. - ac_status=$?
  37596. - grep -v '^ *+' conftest.er1 >conftest.err
  37597. - rm -f conftest.er1
  37598. - cat conftest.err >&5
  37599. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37600. - (exit $ac_status); } && {
  37601. - test -z "$ac_c_werror_flag" ||
  37602. - test ! -s conftest.err
  37603. - } && test -s conftest.$ac_objext; then
  37604. - ac_cv_type_signal=int
  37605. -else
  37606. - $as_echo "$as_me: failed program was:" >&5
  37607. -sed 's/^/| /' conftest.$ac_ext >&5
  37608. -
  37609. - ac_cv_type_signal=void
  37610. -fi
  37611. -
  37612. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37613. -fi
  37614. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  37615. -$as_echo "$ac_cv_type_signal" >&6; }
  37616. -
  37617. -cat >>confdefs.h <<_ACEOF
  37618. -#define RETSIGTYPE $ac_cv_type_signal
  37619. -_ACEOF
  37620. -
  37621. -
  37622. -{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  37623. -$as_echo_n "checking for mode_t... " >&6; }
  37624. -if test "${ac_cv_type_mode_t+set}" = set; then
  37625. - $as_echo_n "(cached) " >&6
  37626. -else
  37627. - ac_cv_type_mode_t=no
  37628. -cat >conftest.$ac_ext <<_ACEOF
  37629. -/* confdefs.h. */
  37630. -_ACEOF
  37631. -cat confdefs.h >>conftest.$ac_ext
  37632. -cat >>conftest.$ac_ext <<_ACEOF
  37633. -/* end confdefs.h. */
  37634. -$ac_includes_default
  37635. -int
  37636. -main ()
  37637. -{
  37638. -if (sizeof (mode_t))
  37639. - return 0;
  37640. - ;
  37641. - return 0;
  37642. -}
  37643. -_ACEOF
  37644. -rm -f conftest.$ac_objext
  37645. -if { (ac_try="$ac_compile"
  37646. -case "(($ac_try" in
  37647. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37648. - *) ac_try_echo=$ac_try;;
  37649. -esac
  37650. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37651. -$as_echo "$ac_try_echo") >&5
  37652. - (eval "$ac_compile") 2>conftest.er1
  37653. - ac_status=$?
  37654. - grep -v '^ *+' conftest.er1 >conftest.err
  37655. - rm -f conftest.er1
  37656. - cat conftest.err >&5
  37657. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37658. - (exit $ac_status); } && {
  37659. - test -z "$ac_c_werror_flag" ||
  37660. - test ! -s conftest.err
  37661. - } && test -s conftest.$ac_objext; then
  37662. - cat >conftest.$ac_ext <<_ACEOF
  37663. -/* confdefs.h. */
  37664. -_ACEOF
  37665. -cat confdefs.h >>conftest.$ac_ext
  37666. -cat >>conftest.$ac_ext <<_ACEOF
  37667. -/* end confdefs.h. */
  37668. -$ac_includes_default
  37669. -int
  37670. -main ()
  37671. -{
  37672. -if (sizeof ((mode_t)))
  37673. - return 0;
  37674. - ;
  37675. - return 0;
  37676. -}
  37677. -_ACEOF
  37678. -rm -f conftest.$ac_objext
  37679. -if { (ac_try="$ac_compile"
  37680. -case "(($ac_try" in
  37681. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37682. - *) ac_try_echo=$ac_try;;
  37683. -esac
  37684. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37685. -$as_echo "$ac_try_echo") >&5
  37686. - (eval "$ac_compile") 2>conftest.er1
  37687. - ac_status=$?
  37688. - grep -v '^ *+' conftest.er1 >conftest.err
  37689. - rm -f conftest.er1
  37690. - cat conftest.err >&5
  37691. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37692. - (exit $ac_status); } && {
  37693. - test -z "$ac_c_werror_flag" ||
  37694. - test ! -s conftest.err
  37695. - } && test -s conftest.$ac_objext; then
  37696. - :
  37697. -else
  37698. - $as_echo "$as_me: failed program was:" >&5
  37699. -sed 's/^/| /' conftest.$ac_ext >&5
  37700. -
  37701. - ac_cv_type_mode_t=yes
  37702. -fi
  37703. -
  37704. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37705. -else
  37706. - $as_echo "$as_me: failed program was:" >&5
  37707. -sed 's/^/| /' conftest.$ac_ext >&5
  37708. -
  37709. -
  37710. -fi
  37711. -
  37712. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37713. -fi
  37714. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  37715. -$as_echo "$ac_cv_type_mode_t" >&6; }
  37716. -if test "x$ac_cv_type_mode_t" = x""yes; then
  37717. - :
  37718. -else
  37719. -
  37720. -cat >>confdefs.h <<_ACEOF
  37721. -#define mode_t int
  37722. -_ACEOF
  37723. -
  37724. -fi
  37725. -
  37726. -
  37727. -# On mingw -lm is empty, so this test is unnecessary, but it's
  37728. -# harmless so we don't hard-code to suppress it.
  37729. -#
  37730. -
  37731. -{ $as_echo "$as_me:$LINENO: checking for cos in -lm" >&5
  37732. -$as_echo_n "checking for cos in -lm... " >&6; }
  37733. -if test "${ac_cv_lib_m_cos+set}" = set; then
  37734. - $as_echo_n "(cached) " >&6
  37735. -else
  37736. - ac_check_lib_save_LIBS=$LIBS
  37737. -LIBS="-lm $LIBS"
  37738. -cat >conftest.$ac_ext <<_ACEOF
  37739. -/* confdefs.h. */
  37740. -_ACEOF
  37741. -cat confdefs.h >>conftest.$ac_ext
  37742. -cat >>conftest.$ac_ext <<_ACEOF
  37743. -/* end confdefs.h. */
  37744. -
  37745. -/* Override any GCC internal prototype to avoid an error.
  37746. - Use char because int might match the return type of a GCC
  37747. - builtin and then its argument prototype would still apply. */
  37748. -#ifdef __cplusplus
  37749. -extern "C"
  37750. -#endif
  37751. -char cos ();
  37752. -int
  37753. -main ()
  37754. -{
  37755. -return cos ();
  37756. - ;
  37757. - return 0;
  37758. -}
  37759. -_ACEOF
  37760. -rm -f conftest.$ac_objext conftest$ac_exeext
  37761. -if { (ac_try="$ac_link"
  37762. -case "(($ac_try" in
  37763. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37764. - *) ac_try_echo=$ac_try;;
  37765. -esac
  37766. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37767. -$as_echo "$ac_try_echo") >&5
  37768. - (eval "$ac_link") 2>conftest.er1
  37769. - ac_status=$?
  37770. - grep -v '^ *+' conftest.er1 >conftest.err
  37771. - rm -f conftest.er1
  37772. - cat conftest.err >&5
  37773. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37774. - (exit $ac_status); } && {
  37775. - test -z "$ac_c_werror_flag" ||
  37776. - test ! -s conftest.err
  37777. - } && test -s conftest$ac_exeext && {
  37778. - test "$cross_compiling" = yes ||
  37779. - $as_test_x conftest$ac_exeext
  37780. - }; then
  37781. - ac_cv_lib_m_cos=yes
  37782. -else
  37783. - $as_echo "$as_me: failed program was:" >&5
  37784. -sed 's/^/| /' conftest.$ac_ext >&5
  37785. -
  37786. - ac_cv_lib_m_cos=no
  37787. -fi
  37788. -
  37789. -rm -rf conftest.dSYM
  37790. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37791. - conftest$ac_exeext conftest.$ac_ext
  37792. -LIBS=$ac_check_lib_save_LIBS
  37793. -fi
  37794. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  37795. -$as_echo "$ac_cv_lib_m_cos" >&6; }
  37796. -if test "x$ac_cv_lib_m_cos" = x""yes; then
  37797. - cat >>confdefs.h <<_ACEOF
  37798. -#define HAVE_LIBM 1
  37799. -_ACEOF
  37800. -
  37801. - LIBS="-lm $LIBS"
  37802. -
  37803. -fi
  37804. -
  37805. -
  37806. -
  37807. -for ac_func in gethostbyname
  37808. -do
  37809. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37810. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  37811. -$as_echo_n "checking for $ac_func... " >&6; }
  37812. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  37813. - $as_echo_n "(cached) " >&6
  37814. -else
  37815. - cat >conftest.$ac_ext <<_ACEOF
  37816. -/* confdefs.h. */
  37817. -_ACEOF
  37818. -cat confdefs.h >>conftest.$ac_ext
  37819. -cat >>conftest.$ac_ext <<_ACEOF
  37820. -/* end confdefs.h. */
  37821. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  37822. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37823. -#define $ac_func innocuous_$ac_func
  37824. -
  37825. -/* System header to define __stub macros and hopefully few prototypes,
  37826. - which can conflict with char $ac_func (); below.
  37827. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37828. - <limits.h> exists even on freestanding compilers. */
  37829. -
  37830. -#ifdef __STDC__
  37831. -# include <limits.h>
  37832. -#else
  37833. -# include <assert.h>
  37834. -#endif
  37835. -
  37836. -#undef $ac_func
  37837. -
  37838. -/* Override any GCC internal prototype to avoid an error.
  37839. - Use char because int might match the return type of a GCC
  37840. - builtin and then its argument prototype would still apply. */
  37841. -#ifdef __cplusplus
  37842. -extern "C"
  37843. -#endif
  37844. -char $ac_func ();
  37845. -/* The GNU C library defines this for functions which it implements
  37846. - to always fail with ENOSYS. Some functions are actually named
  37847. - something starting with __ and the normal name is an alias. */
  37848. -#if defined __stub_$ac_func || defined __stub___$ac_func
  37849. -choke me
  37850. -#endif
  37851. -
  37852. -int
  37853. -main ()
  37854. -{
  37855. -return $ac_func ();
  37856. - ;
  37857. - return 0;
  37858. -}
  37859. -_ACEOF
  37860. -rm -f conftest.$ac_objext conftest$ac_exeext
  37861. -if { (ac_try="$ac_link"
  37862. -case "(($ac_try" in
  37863. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37864. - *) ac_try_echo=$ac_try;;
  37865. -esac
  37866. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37867. -$as_echo "$ac_try_echo") >&5
  37868. - (eval "$ac_link") 2>conftest.er1
  37869. - ac_status=$?
  37870. - grep -v '^ *+' conftest.er1 >conftest.err
  37871. - rm -f conftest.er1
  37872. - cat conftest.err >&5
  37873. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37874. - (exit $ac_status); } && {
  37875. - test -z "$ac_c_werror_flag" ||
  37876. - test ! -s conftest.err
  37877. - } && test -s conftest$ac_exeext && {
  37878. - test "$cross_compiling" = yes ||
  37879. - $as_test_x conftest$ac_exeext
  37880. - }; then
  37881. - eval "$as_ac_var=yes"
  37882. -else
  37883. - $as_echo "$as_me: failed program was:" >&5
  37884. -sed 's/^/| /' conftest.$ac_ext >&5
  37885. -
  37886. - eval "$as_ac_var=no"
  37887. -fi
  37888. -
  37889. -rm -rf conftest.dSYM
  37890. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37891. - conftest$ac_exeext conftest.$ac_ext
  37892. -fi
  37893. -ac_res=`eval 'as_val=${'$as_ac_var'}
  37894. - $as_echo "$as_val"'`
  37895. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37896. -$as_echo "$ac_res" >&6; }
  37897. -as_val=`eval 'as_val=${'$as_ac_var'}
  37898. - $as_echo "$as_val"'`
  37899. - if test "x$as_val" = x""yes; then
  37900. - cat >>confdefs.h <<_ACEOF
  37901. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37902. -_ACEOF
  37903. -
  37904. -fi
  37905. -done
  37906. -
  37907. -if test $ac_cv_func_gethostbyname = no; then
  37908. -
  37909. -{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  37910. -$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  37911. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  37912. - $as_echo_n "(cached) " >&6
  37913. -else
  37914. - ac_check_lib_save_LIBS=$LIBS
  37915. -LIBS="-lnsl $LIBS"
  37916. -cat >conftest.$ac_ext <<_ACEOF
  37917. -/* confdefs.h. */
  37918. -_ACEOF
  37919. -cat confdefs.h >>conftest.$ac_ext
  37920. -cat >>conftest.$ac_ext <<_ACEOF
  37921. -/* end confdefs.h. */
  37922. -
  37923. -/* Override any GCC internal prototype to avoid an error.
  37924. - Use char because int might match the return type of a GCC
  37925. - builtin and then its argument prototype would still apply. */
  37926. -#ifdef __cplusplus
  37927. -extern "C"
  37928. -#endif
  37929. -char gethostbyname ();
  37930. -int
  37931. -main ()
  37932. -{
  37933. -return gethostbyname ();
  37934. - ;
  37935. - return 0;
  37936. -}
  37937. -_ACEOF
  37938. -rm -f conftest.$ac_objext conftest$ac_exeext
  37939. -if { (ac_try="$ac_link"
  37940. -case "(($ac_try" in
  37941. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37942. - *) ac_try_echo=$ac_try;;
  37943. -esac
  37944. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37945. -$as_echo "$ac_try_echo") >&5
  37946. - (eval "$ac_link") 2>conftest.er1
  37947. - ac_status=$?
  37948. - grep -v '^ *+' conftest.er1 >conftest.err
  37949. - rm -f conftest.er1
  37950. - cat conftest.err >&5
  37951. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37952. - (exit $ac_status); } && {
  37953. - test -z "$ac_c_werror_flag" ||
  37954. - test ! -s conftest.err
  37955. - } && test -s conftest$ac_exeext && {
  37956. - test "$cross_compiling" = yes ||
  37957. - $as_test_x conftest$ac_exeext
  37958. - }; then
  37959. - ac_cv_lib_nsl_gethostbyname=yes
  37960. -else
  37961. - $as_echo "$as_me: failed program was:" >&5
  37962. -sed 's/^/| /' conftest.$ac_ext >&5
  37963. -
  37964. - ac_cv_lib_nsl_gethostbyname=no
  37965. -fi
  37966. -
  37967. -rm -rf conftest.dSYM
  37968. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37969. - conftest$ac_exeext conftest.$ac_ext
  37970. -LIBS=$ac_check_lib_save_LIBS
  37971. -fi
  37972. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  37973. -$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  37974. -if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  37975. - cat >>confdefs.h <<_ACEOF
  37976. -#define HAVE_LIBNSL 1
  37977. -_ACEOF
  37978. -
  37979. - LIBS="-lnsl $LIBS"
  37980. -
  37981. -fi
  37982. -
  37983. -fi
  37984. -
  37985. -
  37986. -for ac_func in connect
  37987. -do
  37988. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37989. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  37990. -$as_echo_n "checking for $ac_func... " >&6; }
  37991. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  37992. - $as_echo_n "(cached) " >&6
  37993. -else
  37994. - cat >conftest.$ac_ext <<_ACEOF
  37995. -/* confdefs.h. */
  37996. -_ACEOF
  37997. -cat confdefs.h >>conftest.$ac_ext
  37998. -cat >>conftest.$ac_ext <<_ACEOF
  37999. -/* end confdefs.h. */
  38000. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  38001. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38002. -#define $ac_func innocuous_$ac_func
  38003. -
  38004. -/* System header to define __stub macros and hopefully few prototypes,
  38005. - which can conflict with char $ac_func (); below.
  38006. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38007. - <limits.h> exists even on freestanding compilers. */
  38008. -
  38009. -#ifdef __STDC__
  38010. -# include <limits.h>
  38011. -#else
  38012. -# include <assert.h>
  38013. -#endif
  38014. -
  38015. -#undef $ac_func
  38016. -
  38017. -/* Override any GCC internal prototype to avoid an error.
  38018. - Use char because int might match the return type of a GCC
  38019. - builtin and then its argument prototype would still apply. */
  38020. -#ifdef __cplusplus
  38021. -extern "C"
  38022. -#endif
  38023. -char $ac_func ();
  38024. -/* The GNU C library defines this for functions which it implements
  38025. - to always fail with ENOSYS. Some functions are actually named
  38026. - something starting with __ and the normal name is an alias. */
  38027. -#if defined __stub_$ac_func || defined __stub___$ac_func
  38028. -choke me
  38029. -#endif
  38030. -
  38031. -int
  38032. -main ()
  38033. -{
  38034. -return $ac_func ();
  38035. - ;
  38036. - return 0;
  38037. -}
  38038. -_ACEOF
  38039. -rm -f conftest.$ac_objext conftest$ac_exeext
  38040. -if { (ac_try="$ac_link"
  38041. -case "(($ac_try" in
  38042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38043. - *) ac_try_echo=$ac_try;;
  38044. -esac
  38045. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38046. -$as_echo "$ac_try_echo") >&5
  38047. - (eval "$ac_link") 2>conftest.er1
  38048. - ac_status=$?
  38049. - grep -v '^ *+' conftest.er1 >conftest.err
  38050. - rm -f conftest.er1
  38051. - cat conftest.err >&5
  38052. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38053. - (exit $ac_status); } && {
  38054. - test -z "$ac_c_werror_flag" ||
  38055. - test ! -s conftest.err
  38056. - } && test -s conftest$ac_exeext && {
  38057. - test "$cross_compiling" = yes ||
  38058. - $as_test_x conftest$ac_exeext
  38059. - }; then
  38060. - eval "$as_ac_var=yes"
  38061. -else
  38062. - $as_echo "$as_me: failed program was:" >&5
  38063. -sed 's/^/| /' conftest.$ac_ext >&5
  38064. -
  38065. - eval "$as_ac_var=no"
  38066. -fi
  38067. -
  38068. -rm -rf conftest.dSYM
  38069. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38070. - conftest$ac_exeext conftest.$ac_ext
  38071. -fi
  38072. -ac_res=`eval 'as_val=${'$as_ac_var'}
  38073. - $as_echo "$as_val"'`
  38074. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38075. -$as_echo "$ac_res" >&6; }
  38076. -as_val=`eval 'as_val=${'$as_ac_var'}
  38077. - $as_echo "$as_val"'`
  38078. - if test "x$as_val" = x""yes; then
  38079. - cat >>confdefs.h <<_ACEOF
  38080. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38081. -_ACEOF
  38082. -
  38083. -fi
  38084. -done
  38085. -
  38086. -if test $ac_cv_func_connect = no; then
  38087. -
  38088. -{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  38089. -$as_echo_n "checking for connect in -lsocket... " >&6; }
  38090. -if test "${ac_cv_lib_socket_connect+set}" = set; then
  38091. - $as_echo_n "(cached) " >&6
  38092. -else
  38093. - ac_check_lib_save_LIBS=$LIBS
  38094. -LIBS="-lsocket $LIBS"
  38095. -cat >conftest.$ac_ext <<_ACEOF
  38096. -/* confdefs.h. */
  38097. -_ACEOF
  38098. -cat confdefs.h >>conftest.$ac_ext
  38099. -cat >>conftest.$ac_ext <<_ACEOF
  38100. -/* end confdefs.h. */
  38101. -
  38102. -/* Override any GCC internal prototype to avoid an error.
  38103. - Use char because int might match the return type of a GCC
  38104. - builtin and then its argument prototype would still apply. */
  38105. -#ifdef __cplusplus
  38106. -extern "C"
  38107. -#endif
  38108. -char connect ();
  38109. -int
  38110. -main ()
  38111. -{
  38112. -return connect ();
  38113. - ;
  38114. - return 0;
  38115. -}
  38116. -_ACEOF
  38117. -rm -f conftest.$ac_objext conftest$ac_exeext
  38118. -if { (ac_try="$ac_link"
  38119. -case "(($ac_try" in
  38120. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38121. - *) ac_try_echo=$ac_try;;
  38122. -esac
  38123. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38124. -$as_echo "$ac_try_echo") >&5
  38125. - (eval "$ac_link") 2>conftest.er1
  38126. - ac_status=$?
  38127. - grep -v '^ *+' conftest.er1 >conftest.err
  38128. - rm -f conftest.er1
  38129. - cat conftest.err >&5
  38130. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38131. - (exit $ac_status); } && {
  38132. - test -z "$ac_c_werror_flag" ||
  38133. - test ! -s conftest.err
  38134. - } && test -s conftest$ac_exeext && {
  38135. - test "$cross_compiling" = yes ||
  38136. - $as_test_x conftest$ac_exeext
  38137. - }; then
  38138. - ac_cv_lib_socket_connect=yes
  38139. -else
  38140. - $as_echo "$as_me: failed program was:" >&5
  38141. -sed 's/^/| /' conftest.$ac_ext >&5
  38142. -
  38143. - ac_cv_lib_socket_connect=no
  38144. -fi
  38145. -
  38146. -rm -rf conftest.dSYM
  38147. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38148. - conftest$ac_exeext conftest.$ac_ext
  38149. -LIBS=$ac_check_lib_save_LIBS
  38150. -fi
  38151. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  38152. -$as_echo "$ac_cv_lib_socket_connect" >&6; }
  38153. -if test "x$ac_cv_lib_socket_connect" = x""yes; then
  38154. - cat >>confdefs.h <<_ACEOF
  38155. -#define HAVE_LIBSOCKET 1
  38156. -_ACEOF
  38157. -
  38158. - LIBS="-lsocket $LIBS"
  38159. -
  38160. -fi
  38161. -
  38162. -fi
  38163. -
  38164. -EXTRA_DEFS=""
  38165. -case $host in
  38166. - *-*-mingw*)
  38167. - if test "${ac_cv_header_winsock2_h+set}" = set; then
  38168. - { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
  38169. -$as_echo_n "checking for winsock2.h... " >&6; }
  38170. -if test "${ac_cv_header_winsock2_h+set}" = set; then
  38171. - $as_echo_n "(cached) " >&6
  38172. -fi
  38173. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  38174. -$as_echo "$ac_cv_header_winsock2_h" >&6; }
  38175. -else
  38176. - # Is the header compilable?
  38177. -{ $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5
  38178. -$as_echo_n "checking winsock2.h usability... " >&6; }
  38179. -cat >conftest.$ac_ext <<_ACEOF
  38180. -/* confdefs.h. */
  38181. -_ACEOF
  38182. -cat confdefs.h >>conftest.$ac_ext
  38183. -cat >>conftest.$ac_ext <<_ACEOF
  38184. -/* end confdefs.h. */
  38185. -$ac_includes_default
  38186. -#include <winsock2.h>
  38187. -_ACEOF
  38188. -rm -f conftest.$ac_objext
  38189. -if { (ac_try="$ac_compile"
  38190. -case "(($ac_try" in
  38191. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38192. - *) ac_try_echo=$ac_try;;
  38193. -esac
  38194. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38195. -$as_echo "$ac_try_echo") >&5
  38196. - (eval "$ac_compile") 2>conftest.er1
  38197. - ac_status=$?
  38198. - grep -v '^ *+' conftest.er1 >conftest.err
  38199. - rm -f conftest.er1
  38200. - cat conftest.err >&5
  38201. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38202. - (exit $ac_status); } && {
  38203. - test -z "$ac_c_werror_flag" ||
  38204. - test ! -s conftest.err
  38205. - } && test -s conftest.$ac_objext; then
  38206. - ac_header_compiler=yes
  38207. -else
  38208. - $as_echo "$as_me: failed program was:" >&5
  38209. -sed 's/^/| /' conftest.$ac_ext >&5
  38210. -
  38211. - ac_header_compiler=no
  38212. -fi
  38213. -
  38214. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38215. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38216. -$as_echo "$ac_header_compiler" >&6; }
  38217. -
  38218. -# Is the header present?
  38219. -{ $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5
  38220. -$as_echo_n "checking winsock2.h presence... " >&6; }
  38221. -cat >conftest.$ac_ext <<_ACEOF
  38222. -/* confdefs.h. */
  38223. -_ACEOF
  38224. -cat confdefs.h >>conftest.$ac_ext
  38225. -cat >>conftest.$ac_ext <<_ACEOF
  38226. -/* end confdefs.h. */
  38227. -#include <winsock2.h>
  38228. -_ACEOF
  38229. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38230. -case "(($ac_try" in
  38231. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38232. - *) ac_try_echo=$ac_try;;
  38233. -esac
  38234. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38235. -$as_echo "$ac_try_echo") >&5
  38236. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38237. - ac_status=$?
  38238. - grep -v '^ *+' conftest.er1 >conftest.err
  38239. - rm -f conftest.er1
  38240. - cat conftest.err >&5
  38241. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38242. - (exit $ac_status); } >/dev/null && {
  38243. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38244. - test ! -s conftest.err
  38245. - }; then
  38246. - ac_header_preproc=yes
  38247. -else
  38248. - $as_echo "$as_me: failed program was:" >&5
  38249. -sed 's/^/| /' conftest.$ac_ext >&5
  38250. -
  38251. - ac_header_preproc=no
  38252. -fi
  38253. -
  38254. -rm -f conftest.err conftest.$ac_ext
  38255. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38256. -$as_echo "$ac_header_preproc" >&6; }
  38257. -
  38258. -# So? What about this header?
  38259. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38260. - yes:no: )
  38261. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38262. -$as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38263. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
  38264. -$as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
  38265. - ac_header_preproc=yes
  38266. - ;;
  38267. - no:yes:* )
  38268. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
  38269. -$as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
  38270. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
  38271. -$as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
  38272. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
  38273. -$as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
  38274. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
  38275. -$as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38276. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
  38277. -$as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
  38278. - { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
  38279. -$as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
  38280. - ( cat <<\_ASBOX
  38281. -## -------------------------------- ##
  38282. -## Report this to bug-guile@gnu.org ##
  38283. -## -------------------------------- ##
  38284. -_ASBOX
  38285. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38286. - ;;
  38287. -esac
  38288. -{ $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
  38289. -$as_echo_n "checking for winsock2.h... " >&6; }
  38290. -if test "${ac_cv_header_winsock2_h+set}" = set; then
  38291. - $as_echo_n "(cached) " >&6
  38292. -else
  38293. - ac_cv_header_winsock2_h=$ac_header_preproc
  38294. -fi
  38295. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  38296. -$as_echo "$ac_cv_header_winsock2_h" >&6; }
  38297. -
  38298. -fi
  38299. -if test "x$ac_cv_header_winsock2_h" = x""yes; then
  38300. -
  38301. -cat >>confdefs.h <<\_ACEOF
  38302. -#define HAVE_WINSOCK2_H 1
  38303. -_ACEOF
  38304. -
  38305. -fi
  38306. -
  38307. -
  38308. -
  38309. -{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
  38310. -$as_echo_n "checking for main in -lws2_32... " >&6; }
  38311. -if test "${ac_cv_lib_ws2_32_main+set}" = set; then
  38312. - $as_echo_n "(cached) " >&6
  38313. -else
  38314. - ac_check_lib_save_LIBS=$LIBS
  38315. -LIBS="-lws2_32 $LIBS"
  38316. -cat >conftest.$ac_ext <<_ACEOF
  38317. -/* confdefs.h. */
  38318. -_ACEOF
  38319. -cat confdefs.h >>conftest.$ac_ext
  38320. -cat >>conftest.$ac_ext <<_ACEOF
  38321. -/* end confdefs.h. */
  38322. -
  38323. -
  38324. -int
  38325. -main ()
  38326. -{
  38327. -return main ();
  38328. - ;
  38329. - return 0;
  38330. -}
  38331. -_ACEOF
  38332. -rm -f conftest.$ac_objext conftest$ac_exeext
  38333. -if { (ac_try="$ac_link"
  38334. -case "(($ac_try" in
  38335. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38336. - *) ac_try_echo=$ac_try;;
  38337. -esac
  38338. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38339. -$as_echo "$ac_try_echo") >&5
  38340. - (eval "$ac_link") 2>conftest.er1
  38341. - ac_status=$?
  38342. - grep -v '^ *+' conftest.er1 >conftest.err
  38343. - rm -f conftest.er1
  38344. - cat conftest.err >&5
  38345. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38346. - (exit $ac_status); } && {
  38347. - test -z "$ac_c_werror_flag" ||
  38348. - test ! -s conftest.err
  38349. - } && test -s conftest$ac_exeext && {
  38350. - test "$cross_compiling" = yes ||
  38351. - $as_test_x conftest$ac_exeext
  38352. - }; then
  38353. - ac_cv_lib_ws2_32_main=yes
  38354. -else
  38355. - $as_echo "$as_me: failed program was:" >&5
  38356. -sed 's/^/| /' conftest.$ac_ext >&5
  38357. -
  38358. - ac_cv_lib_ws2_32_main=no
  38359. -fi
  38360. -
  38361. -rm -rf conftest.dSYM
  38362. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38363. - conftest$ac_exeext conftest.$ac_ext
  38364. -LIBS=$ac_check_lib_save_LIBS
  38365. -fi
  38366. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
  38367. -$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  38368. -if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
  38369. - cat >>confdefs.h <<_ACEOF
  38370. -#define HAVE_LIBWS2_32 1
  38371. -_ACEOF
  38372. -
  38373. - LIBS="-lws2_32 $LIBS"
  38374. -
  38375. -fi
  38376. -
  38377. - case " $LIBOBJS " in
  38378. - *" win32-uname.$ac_objext "* ) ;;
  38379. - *) LIBOBJS="$LIBOBJS win32-uname.$ac_objext"
  38380. - ;;
  38381. -esac
  38382. -
  38383. - case " $LIBOBJS " in
  38384. - *" win32-dirent.$ac_objext "* ) ;;
  38385. - *) LIBOBJS="$LIBOBJS win32-dirent.$ac_objext"
  38386. - ;;
  38387. -esac
  38388. -
  38389. - if test "$enable_networking" = yes ; then
  38390. - case " $LIBOBJS " in
  38391. - *" win32-socket.$ac_objext "* ) ;;
  38392. - *) LIBOBJS="$LIBOBJS win32-socket.$ac_objext"
  38393. - ;;
  38394. -esac
  38395. -
  38396. - fi
  38397. - if test "$enable_shared" = yes ; then
  38398. - EXTRA_DEFS="-DSCM_IMPORT"
  38399. -
  38400. -cat >>confdefs.h <<\_ACEOF
  38401. -#define USE_DLL_IMPORT 1
  38402. -_ACEOF
  38403. -
  38404. - fi
  38405. - ;;
  38406. -esac
  38407. -
  38408. -
  38409. -# Reasons for testing:
  38410. -# crt_externs.h - Darwin specific
  38411. -#
  38412. -
  38413. -
  38414. -for ac_header in assert.h crt_externs.h
  38415. -do
  38416. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38417. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38418. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38419. -$as_echo_n "checking for $ac_header... " >&6; }
  38420. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38421. - $as_echo_n "(cached) " >&6
  38422. -fi
  38423. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38424. - $as_echo "$as_val"'`
  38425. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38426. -$as_echo "$ac_res" >&6; }
  38427. -else
  38428. - # Is the header compilable?
  38429. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38430. -$as_echo_n "checking $ac_header usability... " >&6; }
  38431. -cat >conftest.$ac_ext <<_ACEOF
  38432. -/* confdefs.h. */
  38433. -_ACEOF
  38434. -cat confdefs.h >>conftest.$ac_ext
  38435. -cat >>conftest.$ac_ext <<_ACEOF
  38436. -/* end confdefs.h. */
  38437. -$ac_includes_default
  38438. -#include <$ac_header>
  38439. -_ACEOF
  38440. -rm -f conftest.$ac_objext
  38441. -if { (ac_try="$ac_compile"
  38442. -case "(($ac_try" in
  38443. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38444. - *) ac_try_echo=$ac_try;;
  38445. -esac
  38446. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38447. -$as_echo "$ac_try_echo") >&5
  38448. - (eval "$ac_compile") 2>conftest.er1
  38449. - ac_status=$?
  38450. - grep -v '^ *+' conftest.er1 >conftest.err
  38451. - rm -f conftest.er1
  38452. - cat conftest.err >&5
  38453. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38454. - (exit $ac_status); } && {
  38455. - test -z "$ac_c_werror_flag" ||
  38456. - test ! -s conftest.err
  38457. - } && test -s conftest.$ac_objext; then
  38458. - ac_header_compiler=yes
  38459. -else
  38460. - $as_echo "$as_me: failed program was:" >&5
  38461. -sed 's/^/| /' conftest.$ac_ext >&5
  38462. -
  38463. - ac_header_compiler=no
  38464. -fi
  38465. -
  38466. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38467. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38468. -$as_echo "$ac_header_compiler" >&6; }
  38469. -
  38470. -# Is the header present?
  38471. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38472. -$as_echo_n "checking $ac_header presence... " >&6; }
  38473. -cat >conftest.$ac_ext <<_ACEOF
  38474. -/* confdefs.h. */
  38475. -_ACEOF
  38476. -cat confdefs.h >>conftest.$ac_ext
  38477. -cat >>conftest.$ac_ext <<_ACEOF
  38478. -/* end confdefs.h. */
  38479. -#include <$ac_header>
  38480. -_ACEOF
  38481. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38482. -case "(($ac_try" in
  38483. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38484. - *) ac_try_echo=$ac_try;;
  38485. -esac
  38486. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38487. -$as_echo "$ac_try_echo") >&5
  38488. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38489. - ac_status=$?
  38490. - grep -v '^ *+' conftest.er1 >conftest.err
  38491. - rm -f conftest.er1
  38492. - cat conftest.err >&5
  38493. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38494. - (exit $ac_status); } >/dev/null && {
  38495. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38496. - test ! -s conftest.err
  38497. - }; then
  38498. - ac_header_preproc=yes
  38499. -else
  38500. - $as_echo "$as_me: failed program was:" >&5
  38501. -sed 's/^/| /' conftest.$ac_ext >&5
  38502. -
  38503. - ac_header_preproc=no
  38504. -fi
  38505. -
  38506. -rm -f conftest.err conftest.$ac_ext
  38507. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38508. -$as_echo "$ac_header_preproc" >&6; }
  38509. -
  38510. -# So? What about this header?
  38511. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38512. - yes:no: )
  38513. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38514. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38515. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38516. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38517. - ac_header_preproc=yes
  38518. - ;;
  38519. - no:yes:* )
  38520. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38521. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38522. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38523. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38524. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38525. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38526. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38527. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38528. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38529. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38530. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38531. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38532. - ( cat <<\_ASBOX
  38533. -## -------------------------------- ##
  38534. -## Report this to bug-guile@gnu.org ##
  38535. -## -------------------------------- ##
  38536. -_ASBOX
  38537. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38538. - ;;
  38539. -esac
  38540. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38541. -$as_echo_n "checking for $ac_header... " >&6; }
  38542. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38543. - $as_echo_n "(cached) " >&6
  38544. -else
  38545. - eval "$as_ac_Header=\$ac_header_preproc"
  38546. -fi
  38547. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38548. - $as_echo "$as_val"'`
  38549. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38550. -$as_echo "$ac_res" >&6; }
  38551. -
  38552. -fi
  38553. -as_val=`eval 'as_val=${'$as_ac_Header'}
  38554. - $as_echo "$as_val"'`
  38555. - if test "x$as_val" = x""yes; then
  38556. - cat >>confdefs.h <<_ACEOF
  38557. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38558. -_ACEOF
  38559. -
  38560. -fi
  38561. -
  38562. -done
  38563. -
  38564. -
  38565. -# Reasons for testing:
  38566. -# DINFINITY - OSF specific
  38567. -# DQNAN - OSF specific
  38568. -# (DINFINITY and DQNAN are actually global variables, not functions)
  38569. -# chsize - an MS-DOS-ism, found in mingw
  38570. -# cexp, clog - not in various pre-c99 systems, and note that it's possible
  38571. -# for gcc to provide the "complex double" type but the system to not
  38572. -# have functions like cexp and clog
  38573. -# clog10 - not in mingw (though others like clog and csqrt are)
  38574. -# fesetround - available in C99, but not older systems
  38575. -# ftruncate - posix, but probably not older systems (current mingw
  38576. -# has it as an inline for chsize)
  38577. -# ioctl - not in mingw.
  38578. -# gmtime_r - recent posix, not on old systems
  38579. -# pipe - not in mingw
  38580. -# _pipe - specific to mingw, taking 3 args
  38581. -# readdir_r - recent posix, not on old systems
  38582. -# readdir64_r - not available on HP-UX 11.11
  38583. -# stat64 - SuS largefile stuff, not on old systems
  38584. -# sysconf - not on old systems
  38585. -# truncate - not in mingw
  38586. -# isblank - available as a GNU extension or in C99
  38587. -# _NSGetEnviron - Darwin specific
  38588. -#
  38589. -
  38590. -
  38591. -
  38592. -
  38593. -
  38594. -
  38595. -
  38596. -
  38597. -
  38598. -
  38599. -
  38600. -
  38601. -
  38602. -
  38603. -
  38604. -
  38605. -
  38606. -
  38607. -
  38608. -
  38609. -
  38610. -
  38611. -
  38612. -
  38613. -
  38614. -
  38615. -
  38616. -
  38617. -
  38618. -
  38619. -
  38620. -
  38621. -
  38622. -
  38623. -
  38624. -
  38625. -
  38626. -
  38627. -
  38628. -
  38629. -
  38630. -
  38631. -
  38632. -
  38633. -
  38634. -
  38635. -
  38636. -
  38637. -
  38638. -
  38639. -
  38640. -
  38641. -
  38642. -
  38643. -
  38644. -
  38645. -
  38646. -
  38647. -
  38648. -
  38649. -
  38650. -
  38651. -
  38652. -
  38653. -
  38654. -
  38655. -
  38656. -
  38657. -
  38658. -
  38659. -
  38660. -
  38661. -
  38662. -
  38663. -for ac_func in DINFINITY DQNAN cexp chsize clog clog10 ctermid fesetround ftime ftruncate fchown getcwd geteuid gettimeofday gmtime_r ioctl lstat mkdir mknod nice pipe _pipe readdir_r readdir64_r readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt stat64 strftime strptime symlink sync sysconf tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex truncate unsetenv isblank _NSGetEnviron strncasecmp
  38664. -do
  38665. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38666. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  38667. -$as_echo_n "checking for $ac_func... " >&6; }
  38668. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  38669. - $as_echo_n "(cached) " >&6
  38670. -else
  38671. - cat >conftest.$ac_ext <<_ACEOF
  38672. -/* confdefs.h. */
  38673. -_ACEOF
  38674. -cat confdefs.h >>conftest.$ac_ext
  38675. -cat >>conftest.$ac_ext <<_ACEOF
  38676. -/* end confdefs.h. */
  38677. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  38678. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38679. -#define $ac_func innocuous_$ac_func
  38680. -
  38681. -/* System header to define __stub macros and hopefully few prototypes,
  38682. - which can conflict with char $ac_func (); below.
  38683. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38684. - <limits.h> exists even on freestanding compilers. */
  38685. -
  38686. -#ifdef __STDC__
  38687. -# include <limits.h>
  38688. -#else
  38689. -# include <assert.h>
  38690. -#endif
  38691. -
  38692. -#undef $ac_func
  38693. -
  38694. -/* Override any GCC internal prototype to avoid an error.
  38695. - Use char because int might match the return type of a GCC
  38696. - builtin and then its argument prototype would still apply. */
  38697. -#ifdef __cplusplus
  38698. -extern "C"
  38699. -#endif
  38700. -char $ac_func ();
  38701. -/* The GNU C library defines this for functions which it implements
  38702. - to always fail with ENOSYS. Some functions are actually named
  38703. - something starting with __ and the normal name is an alias. */
  38704. -#if defined __stub_$ac_func || defined __stub___$ac_func
  38705. -choke me
  38706. -#endif
  38707. -
  38708. -int
  38709. -main ()
  38710. -{
  38711. -return $ac_func ();
  38712. - ;
  38713. - return 0;
  38714. -}
  38715. -_ACEOF
  38716. -rm -f conftest.$ac_objext conftest$ac_exeext
  38717. -if { (ac_try="$ac_link"
  38718. -case "(($ac_try" in
  38719. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38720. - *) ac_try_echo=$ac_try;;
  38721. -esac
  38722. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38723. -$as_echo "$ac_try_echo") >&5
  38724. - (eval "$ac_link") 2>conftest.er1
  38725. - ac_status=$?
  38726. - grep -v '^ *+' conftest.er1 >conftest.err
  38727. - rm -f conftest.er1
  38728. - cat conftest.err >&5
  38729. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38730. - (exit $ac_status); } && {
  38731. - test -z "$ac_c_werror_flag" ||
  38732. - test ! -s conftest.err
  38733. - } && test -s conftest$ac_exeext && {
  38734. - test "$cross_compiling" = yes ||
  38735. - $as_test_x conftest$ac_exeext
  38736. - }; then
  38737. - eval "$as_ac_var=yes"
  38738. -else
  38739. - $as_echo "$as_me: failed program was:" >&5
  38740. -sed 's/^/| /' conftest.$ac_ext >&5
  38741. -
  38742. - eval "$as_ac_var=no"
  38743. -fi
  38744. -
  38745. -rm -rf conftest.dSYM
  38746. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38747. - conftest$ac_exeext conftest.$ac_ext
  38748. -fi
  38749. -ac_res=`eval 'as_val=${'$as_ac_var'}
  38750. - $as_echo "$as_val"'`
  38751. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38752. -$as_echo "$ac_res" >&6; }
  38753. -as_val=`eval 'as_val=${'$as_ac_var'}
  38754. - $as_echo "$as_val"'`
  38755. - if test "x$as_val" = x""yes; then
  38756. - cat >>confdefs.h <<_ACEOF
  38757. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38758. -_ACEOF
  38759. -
  38760. -fi
  38761. -done
  38762. -
  38763. -
  38764. -# Reasons for testing:
  38765. -# netdb.h - not in mingw
  38766. -# sys/param.h - not in mingw
  38767. -# pthread.h - only available with pthreads. ACX_PTHREAD doesn't
  38768. -# check this specifically, we need it for the timespec test below.
  38769. -# sethostname - the function itself check because it's not in mingw,
  38770. -# the DECL is checked because Solaris 10 doens't have in any header
  38771. -# strncasecmp - on NetBSD 1.6 the symbol is available in libc but the
  38772. -# declaration cannot be found
  38773. -# unsetenv - on Tru64 5.1b the symbol is available in libc but the
  38774. -# declaration is only found if `_BSD' is defined; it's marked as
  38775. -# discouraged in <stdlib.h> and has type `void' instead of `int'
  38776. -# anyway.
  38777. -# hstrerror - on Tru64 5.1b the symbol is available in libc but the
  38778. -# declaration isn't anywhere.
  38779. -# cuserid - on Tru64 5.1b the declaration is documented to be available
  38780. -# only with `_XOPEN_SOURCE' or some such.
  38781. -# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
  38782. -# but only if `_BSD' is defined.
  38783. -# vsnprintf - on AIX 5.3, the declaration is only visible with
  38784. -# `_XOPEN_SOURCE >= 500' or `_ISOC99_SOURCE'.
  38785. -#
  38786. -
  38787. -
  38788. -
  38789. -
  38790. -
  38791. -
  38792. -for ac_header in crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h
  38793. -do
  38794. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38795. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38796. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38797. -$as_echo_n "checking for $ac_header... " >&6; }
  38798. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38799. - $as_echo_n "(cached) " >&6
  38800. -fi
  38801. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38802. - $as_echo "$as_val"'`
  38803. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38804. -$as_echo "$ac_res" >&6; }
  38805. -else
  38806. - # Is the header compilable?
  38807. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38808. -$as_echo_n "checking $ac_header usability... " >&6; }
  38809. -cat >conftest.$ac_ext <<_ACEOF
  38810. -/* confdefs.h. */
  38811. -_ACEOF
  38812. -cat confdefs.h >>conftest.$ac_ext
  38813. -cat >>conftest.$ac_ext <<_ACEOF
  38814. -/* end confdefs.h. */
  38815. -$ac_includes_default
  38816. -#include <$ac_header>
  38817. -_ACEOF
  38818. -rm -f conftest.$ac_objext
  38819. -if { (ac_try="$ac_compile"
  38820. -case "(($ac_try" in
  38821. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38822. - *) ac_try_echo=$ac_try;;
  38823. -esac
  38824. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38825. -$as_echo "$ac_try_echo") >&5
  38826. - (eval "$ac_compile") 2>conftest.er1
  38827. - ac_status=$?
  38828. - grep -v '^ *+' conftest.er1 >conftest.err
  38829. - rm -f conftest.er1
  38830. - cat conftest.err >&5
  38831. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38832. - (exit $ac_status); } && {
  38833. - test -z "$ac_c_werror_flag" ||
  38834. - test ! -s conftest.err
  38835. - } && test -s conftest.$ac_objext; then
  38836. - ac_header_compiler=yes
  38837. -else
  38838. - $as_echo "$as_me: failed program was:" >&5
  38839. -sed 's/^/| /' conftest.$ac_ext >&5
  38840. -
  38841. - ac_header_compiler=no
  38842. -fi
  38843. -
  38844. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38845. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38846. -$as_echo "$ac_header_compiler" >&6; }
  38847. -
  38848. -# Is the header present?
  38849. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38850. -$as_echo_n "checking $ac_header presence... " >&6; }
  38851. -cat >conftest.$ac_ext <<_ACEOF
  38852. -/* confdefs.h. */
  38853. -_ACEOF
  38854. -cat confdefs.h >>conftest.$ac_ext
  38855. -cat >>conftest.$ac_ext <<_ACEOF
  38856. -/* end confdefs.h. */
  38857. -#include <$ac_header>
  38858. -_ACEOF
  38859. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38860. -case "(($ac_try" in
  38861. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38862. - *) ac_try_echo=$ac_try;;
  38863. -esac
  38864. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38865. -$as_echo "$ac_try_echo") >&5
  38866. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38867. - ac_status=$?
  38868. - grep -v '^ *+' conftest.er1 >conftest.err
  38869. - rm -f conftest.er1
  38870. - cat conftest.err >&5
  38871. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38872. - (exit $ac_status); } >/dev/null && {
  38873. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38874. - test ! -s conftest.err
  38875. - }; then
  38876. - ac_header_preproc=yes
  38877. -else
  38878. - $as_echo "$as_me: failed program was:" >&5
  38879. -sed 's/^/| /' conftest.$ac_ext >&5
  38880. -
  38881. - ac_header_preproc=no
  38882. -fi
  38883. -
  38884. -rm -f conftest.err conftest.$ac_ext
  38885. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38886. -$as_echo "$ac_header_preproc" >&6; }
  38887. -
  38888. -# So? What about this header?
  38889. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38890. - yes:no: )
  38891. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38892. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38893. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38894. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38895. - ac_header_preproc=yes
  38896. - ;;
  38897. - no:yes:* )
  38898. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38899. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38900. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38901. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38902. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38903. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38904. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38905. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38906. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38907. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38908. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38909. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38910. - ( cat <<\_ASBOX
  38911. -## -------------------------------- ##
  38912. -## Report this to bug-guile@gnu.org ##
  38913. -## -------------------------------- ##
  38914. -_ASBOX
  38915. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38916. - ;;
  38917. -esac
  38918. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38919. -$as_echo_n "checking for $ac_header... " >&6; }
  38920. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38921. - $as_echo_n "(cached) " >&6
  38922. -else
  38923. - eval "$as_ac_Header=\$ac_header_preproc"
  38924. -fi
  38925. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38926. - $as_echo "$as_val"'`
  38927. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38928. -$as_echo "$ac_res" >&6; }
  38929. -
  38930. -fi
  38931. -as_val=`eval 'as_val=${'$as_ac_Header'}
  38932. - $as_echo "$as_val"'`
  38933. - if test "x$as_val" = x""yes; then
  38934. - cat >>confdefs.h <<_ACEOF
  38935. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38936. -_ACEOF
  38937. -
  38938. -fi
  38939. -
  38940. -done
  38941. -
  38942. -
  38943. -
  38944. -
  38945. -
  38946. -
  38947. -
  38948. -
  38949. -
  38950. -
  38951. -for ac_func in chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname
  38952. -do
  38953. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38954. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  38955. -$as_echo_n "checking for $ac_func... " >&6; }
  38956. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  38957. - $as_echo_n "(cached) " >&6
  38958. -else
  38959. - cat >conftest.$ac_ext <<_ACEOF
  38960. -/* confdefs.h. */
  38961. -_ACEOF
  38962. -cat confdefs.h >>conftest.$ac_ext
  38963. -cat >>conftest.$ac_ext <<_ACEOF
  38964. -/* end confdefs.h. */
  38965. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  38966. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38967. -#define $ac_func innocuous_$ac_func
  38968. -
  38969. -/* System header to define __stub macros and hopefully few prototypes,
  38970. - which can conflict with char $ac_func (); below.
  38971. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38972. - <limits.h> exists even on freestanding compilers. */
  38973. -
  38974. -#ifdef __STDC__
  38975. -# include <limits.h>
  38976. -#else
  38977. -# include <assert.h>
  38978. -#endif
  38979. -
  38980. -#undef $ac_func
  38981. -
  38982. -/* Override any GCC internal prototype to avoid an error.
  38983. - Use char because int might match the return type of a GCC
  38984. - builtin and then its argument prototype would still apply. */
  38985. -#ifdef __cplusplus
  38986. -extern "C"
  38987. -#endif
  38988. -char $ac_func ();
  38989. -/* The GNU C library defines this for functions which it implements
  38990. - to always fail with ENOSYS. Some functions are actually named
  38991. - something starting with __ and the normal name is an alias. */
  38992. -#if defined __stub_$ac_func || defined __stub___$ac_func
  38993. -choke me
  38994. -#endif
  38995. -
  38996. -int
  38997. -main ()
  38998. -{
  38999. -return $ac_func ();
  39000. - ;
  39001. - return 0;
  39002. -}
  39003. -_ACEOF
  39004. -rm -f conftest.$ac_objext conftest$ac_exeext
  39005. -if { (ac_try="$ac_link"
  39006. -case "(($ac_try" in
  39007. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39008. - *) ac_try_echo=$ac_try;;
  39009. -esac
  39010. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39011. -$as_echo "$ac_try_echo") >&5
  39012. - (eval "$ac_link") 2>conftest.er1
  39013. - ac_status=$?
  39014. - grep -v '^ *+' conftest.er1 >conftest.err
  39015. - rm -f conftest.er1
  39016. - cat conftest.err >&5
  39017. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39018. - (exit $ac_status); } && {
  39019. - test -z "$ac_c_werror_flag" ||
  39020. - test ! -s conftest.err
  39021. - } && test -s conftest$ac_exeext && {
  39022. - test "$cross_compiling" = yes ||
  39023. - $as_test_x conftest$ac_exeext
  39024. - }; then
  39025. - eval "$as_ac_var=yes"
  39026. -else
  39027. - $as_echo "$as_me: failed program was:" >&5
  39028. -sed 's/^/| /' conftest.$ac_ext >&5
  39029. -
  39030. - eval "$as_ac_var=no"
  39031. -fi
  39032. -
  39033. -rm -rf conftest.dSYM
  39034. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39035. - conftest$ac_exeext conftest.$ac_ext
  39036. -fi
  39037. -ac_res=`eval 'as_val=${'$as_ac_var'}
  39038. - $as_echo "$as_val"'`
  39039. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39040. -$as_echo "$ac_res" >&6; }
  39041. -as_val=`eval 'as_val=${'$as_ac_var'}
  39042. - $as_echo "$as_val"'`
  39043. - if test "x$as_val" = x""yes; then
  39044. - cat >>confdefs.h <<_ACEOF
  39045. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39046. -_ACEOF
  39047. -
  39048. -fi
  39049. -done
  39050. -
  39051. -{ $as_echo "$as_me:$LINENO: checking whether sethostname is declared" >&5
  39052. -$as_echo_n "checking whether sethostname is declared... " >&6; }
  39053. -if test "${ac_cv_have_decl_sethostname+set}" = set; then
  39054. - $as_echo_n "(cached) " >&6
  39055. -else
  39056. - cat >conftest.$ac_ext <<_ACEOF
  39057. -/* confdefs.h. */
  39058. -_ACEOF
  39059. -cat confdefs.h >>conftest.$ac_ext
  39060. -cat >>conftest.$ac_ext <<_ACEOF
  39061. -/* end confdefs.h. */
  39062. -$ac_includes_default
  39063. -int
  39064. -main ()
  39065. -{
  39066. -#ifndef sethostname
  39067. - (void) sethostname;
  39068. -#endif
  39069. -
  39070. - ;
  39071. - return 0;
  39072. -}
  39073. -_ACEOF
  39074. -rm -f conftest.$ac_objext
  39075. -if { (ac_try="$ac_compile"
  39076. -case "(($ac_try" in
  39077. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39078. - *) ac_try_echo=$ac_try;;
  39079. -esac
  39080. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39081. -$as_echo "$ac_try_echo") >&5
  39082. - (eval "$ac_compile") 2>conftest.er1
  39083. - ac_status=$?
  39084. - grep -v '^ *+' conftest.er1 >conftest.err
  39085. - rm -f conftest.er1
  39086. - cat conftest.err >&5
  39087. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39088. - (exit $ac_status); } && {
  39089. - test -z "$ac_c_werror_flag" ||
  39090. - test ! -s conftest.err
  39091. - } && test -s conftest.$ac_objext; then
  39092. - ac_cv_have_decl_sethostname=yes
  39093. -else
  39094. - $as_echo "$as_me: failed program was:" >&5
  39095. -sed 's/^/| /' conftest.$ac_ext >&5
  39096. -
  39097. - ac_cv_have_decl_sethostname=no
  39098. -fi
  39099. -
  39100. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39101. -fi
  39102. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sethostname" >&5
  39103. -$as_echo "$ac_cv_have_decl_sethostname" >&6; }
  39104. -if test "x$ac_cv_have_decl_sethostname" = x""yes; then
  39105. -
  39106. -cat >>confdefs.h <<_ACEOF
  39107. -#define HAVE_DECL_SETHOSTNAME 1
  39108. -_ACEOF
  39109. -
  39110. -
  39111. -else
  39112. - cat >>confdefs.h <<_ACEOF
  39113. -#define HAVE_DECL_SETHOSTNAME 0
  39114. -_ACEOF
  39115. -
  39116. -
  39117. -fi
  39118. -{ $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
  39119. -$as_echo_n "checking whether strncasecmp is declared... " >&6; }
  39120. -if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
  39121. - $as_echo_n "(cached) " >&6
  39122. -else
  39123. - cat >conftest.$ac_ext <<_ACEOF
  39124. -/* confdefs.h. */
  39125. -_ACEOF
  39126. -cat confdefs.h >>conftest.$ac_ext
  39127. -cat >>conftest.$ac_ext <<_ACEOF
  39128. -/* end confdefs.h. */
  39129. -$ac_includes_default
  39130. -int
  39131. -main ()
  39132. -{
  39133. -#ifndef strncasecmp
  39134. - (void) strncasecmp;
  39135. -#endif
  39136. -
  39137. - ;
  39138. - return 0;
  39139. -}
  39140. -_ACEOF
  39141. -rm -f conftest.$ac_objext
  39142. -if { (ac_try="$ac_compile"
  39143. -case "(($ac_try" in
  39144. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39145. - *) ac_try_echo=$ac_try;;
  39146. -esac
  39147. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39148. -$as_echo "$ac_try_echo") >&5
  39149. - (eval "$ac_compile") 2>conftest.er1
  39150. - ac_status=$?
  39151. - grep -v '^ *+' conftest.er1 >conftest.err
  39152. - rm -f conftest.er1
  39153. - cat conftest.err >&5
  39154. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39155. - (exit $ac_status); } && {
  39156. - test -z "$ac_c_werror_flag" ||
  39157. - test ! -s conftest.err
  39158. - } && test -s conftest.$ac_objext; then
  39159. - ac_cv_have_decl_strncasecmp=yes
  39160. -else
  39161. - $as_echo "$as_me: failed program was:" >&5
  39162. -sed 's/^/| /' conftest.$ac_ext >&5
  39163. -
  39164. - ac_cv_have_decl_strncasecmp=no
  39165. -fi
  39166. -
  39167. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39168. -fi
  39169. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
  39170. -$as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
  39171. -if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
  39172. -
  39173. -cat >>confdefs.h <<_ACEOF
  39174. -#define HAVE_DECL_STRNCASECMP 1
  39175. -_ACEOF
  39176. -
  39177. -
  39178. -else
  39179. - cat >>confdefs.h <<_ACEOF
  39180. -#define HAVE_DECL_STRNCASECMP 0
  39181. -_ACEOF
  39182. -
  39183. -
  39184. -fi
  39185. -{ $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
  39186. -$as_echo_n "checking whether unsetenv is declared... " >&6; }
  39187. -if test "${ac_cv_have_decl_unsetenv+set}" = set; then
  39188. - $as_echo_n "(cached) " >&6
  39189. -else
  39190. - cat >conftest.$ac_ext <<_ACEOF
  39191. -/* confdefs.h. */
  39192. -_ACEOF
  39193. -cat confdefs.h >>conftest.$ac_ext
  39194. -cat >>conftest.$ac_ext <<_ACEOF
  39195. -/* end confdefs.h. */
  39196. -$ac_includes_default
  39197. -int
  39198. -main ()
  39199. -{
  39200. -#ifndef unsetenv
  39201. - (void) unsetenv;
  39202. -#endif
  39203. -
  39204. - ;
  39205. - return 0;
  39206. -}
  39207. -_ACEOF
  39208. -rm -f conftest.$ac_objext
  39209. -if { (ac_try="$ac_compile"
  39210. -case "(($ac_try" in
  39211. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39212. - *) ac_try_echo=$ac_try;;
  39213. -esac
  39214. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39215. -$as_echo "$ac_try_echo") >&5
  39216. - (eval "$ac_compile") 2>conftest.er1
  39217. - ac_status=$?
  39218. - grep -v '^ *+' conftest.er1 >conftest.err
  39219. - rm -f conftest.er1
  39220. - cat conftest.err >&5
  39221. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39222. - (exit $ac_status); } && {
  39223. - test -z "$ac_c_werror_flag" ||
  39224. - test ! -s conftest.err
  39225. - } && test -s conftest.$ac_objext; then
  39226. - ac_cv_have_decl_unsetenv=yes
  39227. -else
  39228. - $as_echo "$as_me: failed program was:" >&5
  39229. -sed 's/^/| /' conftest.$ac_ext >&5
  39230. -
  39231. - ac_cv_have_decl_unsetenv=no
  39232. -fi
  39233. -
  39234. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39235. -fi
  39236. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
  39237. -$as_echo "$ac_cv_have_decl_unsetenv" >&6; }
  39238. -if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
  39239. -
  39240. -cat >>confdefs.h <<_ACEOF
  39241. -#define HAVE_DECL_UNSETENV 1
  39242. -_ACEOF
  39243. -
  39244. -
  39245. -else
  39246. - cat >>confdefs.h <<_ACEOF
  39247. -#define HAVE_DECL_UNSETENV 0
  39248. -_ACEOF
  39249. -
  39250. -
  39251. -fi
  39252. -{ $as_echo "$as_me:$LINENO: checking whether hstrerror is declared" >&5
  39253. -$as_echo_n "checking whether hstrerror is declared... " >&6; }
  39254. -if test "${ac_cv_have_decl_hstrerror+set}" = set; then
  39255. - $as_echo_n "(cached) " >&6
  39256. -else
  39257. - cat >conftest.$ac_ext <<_ACEOF
  39258. -/* confdefs.h. */
  39259. -_ACEOF
  39260. -cat confdefs.h >>conftest.$ac_ext
  39261. -cat >>conftest.$ac_ext <<_ACEOF
  39262. -/* end confdefs.h. */
  39263. -$ac_includes_default
  39264. -int
  39265. -main ()
  39266. -{
  39267. -#ifndef hstrerror
  39268. - (void) hstrerror;
  39269. -#endif
  39270. -
  39271. - ;
  39272. - return 0;
  39273. -}
  39274. -_ACEOF
  39275. -rm -f conftest.$ac_objext
  39276. -if { (ac_try="$ac_compile"
  39277. -case "(($ac_try" in
  39278. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39279. - *) ac_try_echo=$ac_try;;
  39280. -esac
  39281. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39282. -$as_echo "$ac_try_echo") >&5
  39283. - (eval "$ac_compile") 2>conftest.er1
  39284. - ac_status=$?
  39285. - grep -v '^ *+' conftest.er1 >conftest.err
  39286. - rm -f conftest.er1
  39287. - cat conftest.err >&5
  39288. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39289. - (exit $ac_status); } && {
  39290. - test -z "$ac_c_werror_flag" ||
  39291. - test ! -s conftest.err
  39292. - } && test -s conftest.$ac_objext; then
  39293. - ac_cv_have_decl_hstrerror=yes
  39294. -else
  39295. - $as_echo "$as_me: failed program was:" >&5
  39296. -sed 's/^/| /' conftest.$ac_ext >&5
  39297. -
  39298. - ac_cv_have_decl_hstrerror=no
  39299. -fi
  39300. -
  39301. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39302. -fi
  39303. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_hstrerror" >&5
  39304. -$as_echo "$ac_cv_have_decl_hstrerror" >&6; }
  39305. -if test "x$ac_cv_have_decl_hstrerror" = x""yes; then
  39306. -
  39307. -cat >>confdefs.h <<_ACEOF
  39308. -#define HAVE_DECL_HSTRERROR 1
  39309. -_ACEOF
  39310. -
  39311. -
  39312. -else
  39313. - cat >>confdefs.h <<_ACEOF
  39314. -#define HAVE_DECL_HSTRERROR 0
  39315. -_ACEOF
  39316. -
  39317. -
  39318. -fi
  39319. -{ $as_echo "$as_me:$LINENO: checking whether cuserid is declared" >&5
  39320. -$as_echo_n "checking whether cuserid is declared... " >&6; }
  39321. -if test "${ac_cv_have_decl_cuserid+set}" = set; then
  39322. - $as_echo_n "(cached) " >&6
  39323. -else
  39324. - cat >conftest.$ac_ext <<_ACEOF
  39325. -/* confdefs.h. */
  39326. -_ACEOF
  39327. -cat confdefs.h >>conftest.$ac_ext
  39328. -cat >>conftest.$ac_ext <<_ACEOF
  39329. -/* end confdefs.h. */
  39330. -$ac_includes_default
  39331. -int
  39332. -main ()
  39333. -{
  39334. -#ifndef cuserid
  39335. - (void) cuserid;
  39336. -#endif
  39337. -
  39338. - ;
  39339. - return 0;
  39340. -}
  39341. -_ACEOF
  39342. -rm -f conftest.$ac_objext
  39343. -if { (ac_try="$ac_compile"
  39344. -case "(($ac_try" in
  39345. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39346. - *) ac_try_echo=$ac_try;;
  39347. -esac
  39348. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39349. -$as_echo "$ac_try_echo") >&5
  39350. - (eval "$ac_compile") 2>conftest.er1
  39351. - ac_status=$?
  39352. - grep -v '^ *+' conftest.er1 >conftest.err
  39353. - rm -f conftest.er1
  39354. - cat conftest.err >&5
  39355. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39356. - (exit $ac_status); } && {
  39357. - test -z "$ac_c_werror_flag" ||
  39358. - test ! -s conftest.err
  39359. - } && test -s conftest.$ac_objext; then
  39360. - ac_cv_have_decl_cuserid=yes
  39361. -else
  39362. - $as_echo "$as_me: failed program was:" >&5
  39363. -sed 's/^/| /' conftest.$ac_ext >&5
  39364. -
  39365. - ac_cv_have_decl_cuserid=no
  39366. -fi
  39367. -
  39368. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39369. -fi
  39370. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cuserid" >&5
  39371. -$as_echo "$ac_cv_have_decl_cuserid" >&6; }
  39372. -if test "x$ac_cv_have_decl_cuserid" = x""yes; then
  39373. -
  39374. -cat >>confdefs.h <<_ACEOF
  39375. -#define HAVE_DECL_CUSERID 1
  39376. -_ACEOF
  39377. -
  39378. -
  39379. -else
  39380. - cat >>confdefs.h <<_ACEOF
  39381. -#define HAVE_DECL_CUSERID 0
  39382. -_ACEOF
  39383. -
  39384. -
  39385. -fi
  39386. -{ $as_echo "$as_me:$LINENO: checking whether flock is declared" >&5
  39387. -$as_echo_n "checking whether flock is declared... " >&6; }
  39388. -if test "${ac_cv_have_decl_flock+set}" = set; then
  39389. - $as_echo_n "(cached) " >&6
  39390. -else
  39391. - cat >conftest.$ac_ext <<_ACEOF
  39392. -/* confdefs.h. */
  39393. -_ACEOF
  39394. -cat confdefs.h >>conftest.$ac_ext
  39395. -cat >>conftest.$ac_ext <<_ACEOF
  39396. -/* end confdefs.h. */
  39397. -$ac_includes_default
  39398. -int
  39399. -main ()
  39400. -{
  39401. -#ifndef flock
  39402. - (void) flock;
  39403. -#endif
  39404. -
  39405. - ;
  39406. - return 0;
  39407. -}
  39408. -_ACEOF
  39409. -rm -f conftest.$ac_objext
  39410. -if { (ac_try="$ac_compile"
  39411. -case "(($ac_try" in
  39412. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39413. - *) ac_try_echo=$ac_try;;
  39414. -esac
  39415. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39416. -$as_echo "$ac_try_echo") >&5
  39417. - (eval "$ac_compile") 2>conftest.er1
  39418. - ac_status=$?
  39419. - grep -v '^ *+' conftest.er1 >conftest.err
  39420. - rm -f conftest.er1
  39421. - cat conftest.err >&5
  39422. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39423. - (exit $ac_status); } && {
  39424. - test -z "$ac_c_werror_flag" ||
  39425. - test ! -s conftest.err
  39426. - } && test -s conftest.$ac_objext; then
  39427. - ac_cv_have_decl_flock=yes
  39428. -else
  39429. - $as_echo "$as_me: failed program was:" >&5
  39430. -sed 's/^/| /' conftest.$ac_ext >&5
  39431. -
  39432. - ac_cv_have_decl_flock=no
  39433. -fi
  39434. -
  39435. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39436. -fi
  39437. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flock" >&5
  39438. -$as_echo "$ac_cv_have_decl_flock" >&6; }
  39439. -if test "x$ac_cv_have_decl_flock" = x""yes; then
  39440. -
  39441. -cat >>confdefs.h <<_ACEOF
  39442. -#define HAVE_DECL_FLOCK 1
  39443. -_ACEOF
  39444. -
  39445. -
  39446. -else
  39447. - cat >>confdefs.h <<_ACEOF
  39448. -#define HAVE_DECL_FLOCK 0
  39449. -_ACEOF
  39450. -
  39451. -
  39452. -fi
  39453. -{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
  39454. -$as_echo_n "checking whether vsnprintf is declared... " >&6; }
  39455. -if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
  39456. - $as_echo_n "(cached) " >&6
  39457. -else
  39458. - cat >conftest.$ac_ext <<_ACEOF
  39459. -/* confdefs.h. */
  39460. -_ACEOF
  39461. -cat confdefs.h >>conftest.$ac_ext
  39462. -cat >>conftest.$ac_ext <<_ACEOF
  39463. -/* end confdefs.h. */
  39464. -$ac_includes_default
  39465. -int
  39466. -main ()
  39467. -{
  39468. -#ifndef vsnprintf
  39469. - (void) vsnprintf;
  39470. -#endif
  39471. -
  39472. - ;
  39473. - return 0;
  39474. -}
  39475. -_ACEOF
  39476. -rm -f conftest.$ac_objext
  39477. -if { (ac_try="$ac_compile"
  39478. -case "(($ac_try" in
  39479. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39480. - *) ac_try_echo=$ac_try;;
  39481. -esac
  39482. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39483. -$as_echo "$ac_try_echo") >&5
  39484. - (eval "$ac_compile") 2>conftest.er1
  39485. - ac_status=$?
  39486. - grep -v '^ *+' conftest.er1 >conftest.err
  39487. - rm -f conftest.er1
  39488. - cat conftest.err >&5
  39489. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39490. - (exit $ac_status); } && {
  39491. - test -z "$ac_c_werror_flag" ||
  39492. - test ! -s conftest.err
  39493. - } && test -s conftest.$ac_objext; then
  39494. - ac_cv_have_decl_vsnprintf=yes
  39495. -else
  39496. - $as_echo "$as_me: failed program was:" >&5
  39497. -sed 's/^/| /' conftest.$ac_ext >&5
  39498. -
  39499. - ac_cv_have_decl_vsnprintf=no
  39500. -fi
  39501. -
  39502. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39503. -fi
  39504. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
  39505. -$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
  39506. -if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
  39507. -
  39508. -cat >>confdefs.h <<_ACEOF
  39509. -#define HAVE_DECL_VSNPRINTF 1
  39510. -_ACEOF
  39511. -
  39512. -
  39513. -else
  39514. - cat >>confdefs.h <<_ACEOF
  39515. -#define HAVE_DECL_VSNPRINTF 0
  39516. -_ACEOF
  39517. -
  39518. -
  39519. -fi
  39520. -
  39521. -
  39522. -
  39523. -# crypt() may or may not be available, for instance in some countries there
  39524. -# are restrictions on cryptography.
  39525. -#
  39526. -# crypt() might be in libc (eg. OpenBSD), or it might be in a separate
  39527. -# -lcrypt library (eg. Debian GNU/Linux).
  39528. -#
  39529. -# On HP-UX 11, crypt() is in libc and there's a dummy libcrypt.a. We must
  39530. -# be careful to avoid -lcrypt in this case, since libtool will see there's
  39531. -# only a static libcrypt and decide to build only a static libguile.
  39532. -#
  39533. -# AC_SEARCH_LIBS lets us add -lcrypt to LIBS only if crypt() is not in the
  39534. -# libraries already in that list.
  39535. -#
  39536. -{ $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
  39537. -$as_echo_n "checking for library containing crypt... " >&6; }
  39538. -if test "${ac_cv_search_crypt+set}" = set; then
  39539. - $as_echo_n "(cached) " >&6
  39540. -else
  39541. - ac_func_search_save_LIBS=$LIBS
  39542. -cat >conftest.$ac_ext <<_ACEOF
  39543. -/* confdefs.h. */
  39544. -_ACEOF
  39545. -cat confdefs.h >>conftest.$ac_ext
  39546. -cat >>conftest.$ac_ext <<_ACEOF
  39547. -/* end confdefs.h. */
  39548. -
  39549. -/* Override any GCC internal prototype to avoid an error.
  39550. - Use char because int might match the return type of a GCC
  39551. - builtin and then its argument prototype would still apply. */
  39552. -#ifdef __cplusplus
  39553. -extern "C"
  39554. -#endif
  39555. -char crypt ();
  39556. -int
  39557. -main ()
  39558. -{
  39559. -return crypt ();
  39560. - ;
  39561. - return 0;
  39562. -}
  39563. -_ACEOF
  39564. -for ac_lib in '' crypt; do
  39565. - if test -z "$ac_lib"; then
  39566. - ac_res="none required"
  39567. - else
  39568. - ac_res=-l$ac_lib
  39569. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  39570. - fi
  39571. - rm -f conftest.$ac_objext conftest$ac_exeext
  39572. -if { (ac_try="$ac_link"
  39573. -case "(($ac_try" in
  39574. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39575. - *) ac_try_echo=$ac_try;;
  39576. -esac
  39577. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39578. -$as_echo "$ac_try_echo") >&5
  39579. - (eval "$ac_link") 2>conftest.er1
  39580. - ac_status=$?
  39581. - grep -v '^ *+' conftest.er1 >conftest.err
  39582. - rm -f conftest.er1
  39583. - cat conftest.err >&5
  39584. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39585. - (exit $ac_status); } && {
  39586. - test -z "$ac_c_werror_flag" ||
  39587. - test ! -s conftest.err
  39588. - } && test -s conftest$ac_exeext && {
  39589. - test "$cross_compiling" = yes ||
  39590. - $as_test_x conftest$ac_exeext
  39591. - }; then
  39592. - ac_cv_search_crypt=$ac_res
  39593. -else
  39594. - $as_echo "$as_me: failed program was:" >&5
  39595. -sed 's/^/| /' conftest.$ac_ext >&5
  39596. -
  39597. -
  39598. -fi
  39599. -
  39600. -rm -rf conftest.dSYM
  39601. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39602. - conftest$ac_exeext
  39603. - if test "${ac_cv_search_crypt+set}" = set; then
  39604. - break
  39605. -fi
  39606. -done
  39607. -if test "${ac_cv_search_crypt+set}" = set; then
  39608. - :
  39609. -else
  39610. - ac_cv_search_crypt=no
  39611. -fi
  39612. -rm conftest.$ac_ext
  39613. -LIBS=$ac_func_search_save_LIBS
  39614. -fi
  39615. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
  39616. -$as_echo "$ac_cv_search_crypt" >&6; }
  39617. -ac_res=$ac_cv_search_crypt
  39618. -if test "$ac_res" != no; then
  39619. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  39620. -
  39621. -cat >>confdefs.h <<\_ACEOF
  39622. -#define HAVE_CRYPT 1
  39623. -_ACEOF
  39624. -
  39625. -fi
  39626. -
  39627. -
  39628. -# When compiling with GCC on some OSs (Solaris, AIX), _Complex_I doesn't
  39629. -# work; in the reported cases so far, 1.0fi works well instead. According
  39630. -# to the C99 spec, the complex.h header must provide a working definition
  39631. -# of _Complex_I, so we always try _Complex_I first. The 1.0fi fallback
  39632. -# is a workaround for the failure of some systems to conform to C99.
  39633. -if test "$ac_cv_type_complex_double" = yes; then
  39634. - { $as_echo "$as_me:$LINENO: checking for i" >&5
  39635. -$as_echo_n "checking for i... " >&6; }
  39636. - cat >conftest.$ac_ext <<_ACEOF
  39637. -/* confdefs.h. */
  39638. -_ACEOF
  39639. -cat confdefs.h >>conftest.$ac_ext
  39640. -cat >>conftest.$ac_ext <<_ACEOF
  39641. -/* end confdefs.h. */
  39642. -
  39643. -#if HAVE_COMPLEX_H
  39644. -#include <complex.h>
  39645. -#endif
  39646. -complex double z;
  39647. -
  39648. -int
  39649. -main ()
  39650. -{
  39651. -
  39652. -z = _Complex_I;
  39653. -
  39654. - ;
  39655. - return 0;
  39656. -}
  39657. -_ACEOF
  39658. -rm -f conftest.$ac_objext
  39659. -if { (ac_try="$ac_compile"
  39660. -case "(($ac_try" in
  39661. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39662. - *) ac_try_echo=$ac_try;;
  39663. -esac
  39664. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39665. -$as_echo "$ac_try_echo") >&5
  39666. - (eval "$ac_compile") 2>conftest.er1
  39667. - ac_status=$?
  39668. - grep -v '^ *+' conftest.er1 >conftest.err
  39669. - rm -f conftest.er1
  39670. - cat conftest.err >&5
  39671. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39672. - (exit $ac_status); } && {
  39673. - test -z "$ac_c_werror_flag" ||
  39674. - test ! -s conftest.err
  39675. - } && test -s conftest.$ac_objext; then
  39676. -
  39677. -cat >>confdefs.h <<\_ACEOF
  39678. -#define GUILE_I _Complex_I
  39679. -_ACEOF
  39680. -
  39681. - { $as_echo "$as_me:$LINENO: result: _Complex_I" >&5
  39682. -$as_echo "_Complex_I" >&6; }
  39683. -else
  39684. - $as_echo "$as_me: failed program was:" >&5
  39685. -sed 's/^/| /' conftest.$ac_ext >&5
  39686. -
  39687. - cat >conftest.$ac_ext <<_ACEOF
  39688. -/* confdefs.h. */
  39689. -_ACEOF
  39690. -cat confdefs.h >>conftest.$ac_ext
  39691. -cat >>conftest.$ac_ext <<_ACEOF
  39692. -/* end confdefs.h. */
  39693. -
  39694. -#if HAVE_COMPLEX_H
  39695. -#include <complex.h>
  39696. -#endif
  39697. -complex double z;
  39698. -
  39699. -int
  39700. -main ()
  39701. -{
  39702. -
  39703. -z = 1.0fi;
  39704. -
  39705. - ;
  39706. - return 0;
  39707. -}
  39708. -_ACEOF
  39709. -rm -f conftest.$ac_objext
  39710. -if { (ac_try="$ac_compile"
  39711. -case "(($ac_try" in
  39712. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39713. - *) ac_try_echo=$ac_try;;
  39714. -esac
  39715. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39716. -$as_echo "$ac_try_echo") >&5
  39717. - (eval "$ac_compile") 2>conftest.er1
  39718. - ac_status=$?
  39719. - grep -v '^ *+' conftest.er1 >conftest.err
  39720. - rm -f conftest.er1
  39721. - cat conftest.err >&5
  39722. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39723. - (exit $ac_status); } && {
  39724. - test -z "$ac_c_werror_flag" ||
  39725. - test ! -s conftest.err
  39726. - } && test -s conftest.$ac_objext; then
  39727. - cat >>confdefs.h <<\_ACEOF
  39728. -#define GUILE_I 1.0fi
  39729. -_ACEOF
  39730. -
  39731. - { $as_echo "$as_me:$LINENO: result: 1.0fi" >&5
  39732. -$as_echo "1.0fi" >&6; }
  39733. -else
  39734. - $as_echo "$as_me: failed program was:" >&5
  39735. -sed 's/^/| /' conftest.$ac_ext >&5
  39736. -
  39737. - ac_cv_type_complex_double=no
  39738. - { $as_echo "$as_me:$LINENO: result: not available" >&5
  39739. -$as_echo "not available" >&6; }
  39740. -fi
  39741. -
  39742. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39743. -fi
  39744. -
  39745. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39746. -fi
  39747. -
  39748. -# glibc 2.3.6 (circa 2006) and various prior versions had a bug where
  39749. -# csqrt(-i) returned a negative real part, when it should be positive
  39750. -# for the principal root.
  39751. -#
  39752. -if test "$ac_cv_type_complex_double" = yes; then
  39753. - { $as_echo "$as_me:$LINENO: checking whether csqrt is usable" >&5
  39754. -$as_echo_n "checking whether csqrt is usable... " >&6; }
  39755. -if test "${guile_cv_use_csqrt+set}" = set; then
  39756. - $as_echo_n "(cached) " >&6
  39757. -else
  39758. - if test "$cross_compiling" = yes; then
  39759. - guile_cv_use_csqrt="yes, hopefully (cross-compiling)"
  39760. -else
  39761. - cat >conftest.$ac_ext <<_ACEOF
  39762. -/* confdefs.h. */
  39763. -_ACEOF
  39764. -cat confdefs.h >>conftest.$ac_ext
  39765. -cat >>conftest.$ac_ext <<_ACEOF
  39766. -/* end confdefs.h. */
  39767. -
  39768. -#include <complex.h>
  39769. -/* "volatile" is meant to prevent gcc from calculating the sqrt as a
  39770. - constant, we want to test libc. */
  39771. -volatile complex double z = - _Complex_I;
  39772. -int
  39773. -main (void)
  39774. -{
  39775. - z = csqrt (z);
  39776. - if (creal (z) > 0.0)
  39777. - return 0; /* good */
  39778. - else
  39779. - return 1; /* bad */
  39780. -}
  39781. -_ACEOF
  39782. -rm -f conftest$ac_exeext
  39783. -if { (ac_try="$ac_link"
  39784. -case "(($ac_try" in
  39785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39786. - *) ac_try_echo=$ac_try;;
  39787. -esac
  39788. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39789. -$as_echo "$ac_try_echo") >&5
  39790. - (eval "$ac_link") 2>&5
  39791. - ac_status=$?
  39792. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39793. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39794. - { (case "(($ac_try" in
  39795. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39796. - *) ac_try_echo=$ac_try;;
  39797. -esac
  39798. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39799. -$as_echo "$ac_try_echo") >&5
  39800. - (eval "$ac_try") 2>&5
  39801. - ac_status=$?
  39802. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39803. - (exit $ac_status); }; }; then
  39804. - guile_cv_use_csqrt=yes
  39805. -else
  39806. - $as_echo "$as_me: program exited with status $ac_status" >&5
  39807. -$as_echo "$as_me: failed program was:" >&5
  39808. -sed 's/^/| /' conftest.$ac_ext >&5
  39809. -
  39810. -( exit $ac_status )
  39811. -guile_cv_use_csqrt="no, glibc 2.3 bug"
  39812. -fi
  39813. -rm -rf conftest.dSYM
  39814. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39815. -fi
  39816. -
  39817. -
  39818. -fi
  39819. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_use_csqrt" >&5
  39820. -$as_echo "$guile_cv_use_csqrt" >&6; }
  39821. - case $guile_cv_use_csqrt in
  39822. - yes*)
  39823. -
  39824. -cat >>confdefs.h <<\_ACEOF
  39825. -#define HAVE_USABLE_CSQRT 1
  39826. -_ACEOF
  39827. -
  39828. - ;;
  39829. - esac
  39830. -fi
  39831. -
  39832. -
  39833. -
  39834. -{ $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
  39835. -$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
  39836. -if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
  39837. - $as_echo_n "(cached) " >&6
  39838. -else
  39839. - ac_check_lib_save_LIBS=$LIBS
  39840. -LIBS="-lgmp $LIBS"
  39841. -cat >conftest.$ac_ext <<_ACEOF
  39842. -/* confdefs.h. */
  39843. -_ACEOF
  39844. -cat confdefs.h >>conftest.$ac_ext
  39845. -cat >>conftest.$ac_ext <<_ACEOF
  39846. -/* end confdefs.h. */
  39847. -
  39848. -/* Override any GCC internal prototype to avoid an error.
  39849. - Use char because int might match the return type of a GCC
  39850. - builtin and then its argument prototype would still apply. */
  39851. -#ifdef __cplusplus
  39852. -extern "C"
  39853. -#endif
  39854. -char __gmpz_init ();
  39855. -int
  39856. -main ()
  39857. -{
  39858. -return __gmpz_init ();
  39859. - ;
  39860. - return 0;
  39861. -}
  39862. -_ACEOF
  39863. -rm -f conftest.$ac_objext conftest$ac_exeext
  39864. -if { (ac_try="$ac_link"
  39865. -case "(($ac_try" in
  39866. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39867. - *) ac_try_echo=$ac_try;;
  39868. -esac
  39869. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39870. -$as_echo "$ac_try_echo") >&5
  39871. - (eval "$ac_link") 2>conftest.er1
  39872. - ac_status=$?
  39873. - grep -v '^ *+' conftest.er1 >conftest.err
  39874. - rm -f conftest.er1
  39875. - cat conftest.err >&5
  39876. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39877. - (exit $ac_status); } && {
  39878. - test -z "$ac_c_werror_flag" ||
  39879. - test ! -s conftest.err
  39880. - } && test -s conftest$ac_exeext && {
  39881. - test "$cross_compiling" = yes ||
  39882. - $as_test_x conftest$ac_exeext
  39883. - }; then
  39884. - ac_cv_lib_gmp___gmpz_init=yes
  39885. -else
  39886. - $as_echo "$as_me: failed program was:" >&5
  39887. -sed 's/^/| /' conftest.$ac_ext >&5
  39888. -
  39889. - ac_cv_lib_gmp___gmpz_init=no
  39890. -fi
  39891. -
  39892. -rm -rf conftest.dSYM
  39893. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39894. - conftest$ac_exeext conftest.$ac_ext
  39895. -LIBS=$ac_check_lib_save_LIBS
  39896. -fi
  39897. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
  39898. -$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
  39899. -if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
  39900. - cat >>confdefs.h <<_ACEOF
  39901. -#define HAVE_LIBGMP 1
  39902. -_ACEOF
  39903. -
  39904. - LIBS="-lgmp $LIBS"
  39905. -
  39906. -else
  39907. - { { $as_echo "$as_me:$LINENO: error: GNU MP not found, see README" >&5
  39908. -$as_echo "$as_me: error: GNU MP not found, see README" >&2;}
  39909. - { (exit 1); exit 1; }; }
  39910. -fi
  39911. -
  39912. -
  39913. -# mpz_import is a macro so we need to include <gmp.h>
  39914. -cat >conftest.$ac_ext <<_ACEOF
  39915. -/* confdefs.h. */
  39916. -_ACEOF
  39917. -cat confdefs.h >>conftest.$ac_ext
  39918. -cat >>conftest.$ac_ext <<_ACEOF
  39919. -/* end confdefs.h. */
  39920. -#include <gmp.h>
  39921. -int
  39922. -main ()
  39923. -{
  39924. -mpz_import (0, 0, 0, 0, 0, 0, 0);
  39925. - ;
  39926. - return 0;
  39927. -}
  39928. -_ACEOF
  39929. -rm -f conftest.$ac_objext conftest$ac_exeext
  39930. -if { (ac_try="$ac_link"
  39931. -case "(($ac_try" in
  39932. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39933. - *) ac_try_echo=$ac_try;;
  39934. -esac
  39935. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39936. -$as_echo "$ac_try_echo") >&5
  39937. - (eval "$ac_link") 2>conftest.er1
  39938. - ac_status=$?
  39939. - grep -v '^ *+' conftest.er1 >conftest.err
  39940. - rm -f conftest.er1
  39941. - cat conftest.err >&5
  39942. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39943. - (exit $ac_status); } && {
  39944. - test -z "$ac_c_werror_flag" ||
  39945. - test ! -s conftest.err
  39946. - } && test -s conftest$ac_exeext && {
  39947. - test "$cross_compiling" = yes ||
  39948. - $as_test_x conftest$ac_exeext
  39949. - }; then
  39950. - :
  39951. -else
  39952. - $as_echo "$as_me: failed program was:" >&5
  39953. -sed 's/^/| /' conftest.$ac_ext >&5
  39954. -
  39955. - { { $as_echo "$as_me:$LINENO: error: At least GNU MP 4.1 is required, see README" >&5
  39956. -$as_echo "$as_me: error: At least GNU MP 4.1 is required, see README" >&2;}
  39957. - { (exit 1); exit 1; }; }
  39958. -fi
  39959. -
  39960. -rm -rf conftest.dSYM
  39961. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39962. - conftest$ac_exeext conftest.$ac_ext
  39963. -
  39964. -#AC_CHECK_HEADERS([libintl.h])
  39965. -#AC_CHECK_FUNCS(gettext)
  39966. -#if test $ac_cv_func_gettext = no; then
  39967. -# AC_CHECK_LIB(intl, gettext)
  39968. -#fi
  39969. -#AC_CHECK_FUNCS([bindtextdomain textdomain])
  39970. -
  39971. - { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  39972. -$as_echo_n "checking whether NLS is requested... " >&6; }
  39973. - # Check whether --enable-nls was given.
  39974. -if test "${enable_nls+set}" = set; then
  39975. - enableval=$enable_nls; USE_NLS=$enableval
  39976. -else
  39977. - USE_NLS=yes
  39978. -fi
  39979. -
  39980. - { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  39981. -$as_echo "$USE_NLS" >&6; }
  39982. -
  39983. -
  39984. -
  39985. -
  39986. - GETTEXT_MACRO_VERSION=0.17
  39987. -
  39988. -
  39989. -
  39990. -
  39991. -# Prepare PATH_SEPARATOR.
  39992. -# The user is always right.
  39993. -if test "${PATH_SEPARATOR+set}" != set; then
  39994. - echo "#! /bin/sh" >conf$$.sh
  39995. - echo "exit 0" >>conf$$.sh
  39996. - chmod +x conf$$.sh
  39997. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39998. - PATH_SEPARATOR=';'
  39999. - else
  40000. - PATH_SEPARATOR=:
  40001. - fi
  40002. - rm -f conf$$.sh
  40003. -fi
  40004. -
  40005. -# Find out how to test for executable files. Don't use a zero-byte file,
  40006. -# as systems may use methods other than mode bits to determine executability.
  40007. -cat >conf$$.file <<_ASEOF
  40008. -#! /bin/sh
  40009. -exit 0
  40010. -_ASEOF
  40011. -chmod +x conf$$.file
  40012. -if test -x conf$$.file >/dev/null 2>&1; then
  40013. - ac_executable_p="test -x"
  40014. -else
  40015. - ac_executable_p="test -f"
  40016. -fi
  40017. -rm -f conf$$.file
  40018. -
  40019. -# Extract the first word of "msgfmt", so it can be a program name with args.
  40020. -set dummy msgfmt; ac_word=$2
  40021. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  40022. -$as_echo_n "checking for $ac_word... " >&6; }
  40023. -if test "${ac_cv_path_MSGFMT+set}" = set; then
  40024. - $as_echo_n "(cached) " >&6
  40025. -else
  40026. - case "$MSGFMT" in
  40027. - [\\/]* | ?:[\\/]*)
  40028. - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  40029. - ;;
  40030. - *)
  40031. - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  40032. - for ac_dir in $PATH; do
  40033. - IFS="$ac_save_IFS"
  40034. - test -z "$ac_dir" && ac_dir=.
  40035. - for ac_exec_ext in '' $ac_executable_extensions; do
  40036. - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  40037. - echo "$as_me: trying $ac_dir/$ac_word..." >&5
  40038. - if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  40039. - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  40040. - ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  40041. - break 2
  40042. - fi
  40043. - fi
  40044. - done
  40045. - done
  40046. - IFS="$ac_save_IFS"
  40047. - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  40048. - ;;
  40049. -esac
  40050. -fi
  40051. -MSGFMT="$ac_cv_path_MSGFMT"
  40052. -if test "$MSGFMT" != ":"; then
  40053. - { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  40054. -$as_echo "$MSGFMT" >&6; }
  40055. -else
  40056. - { $as_echo "$as_me:$LINENO: result: no" >&5
  40057. -$as_echo "no" >&6; }
  40058. -fi
  40059. -
  40060. - # Extract the first word of "gmsgfmt", so it can be a program name with args.
  40061. -set dummy gmsgfmt; ac_word=$2
  40062. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  40063. -$as_echo_n "checking for $ac_word... " >&6; }
  40064. -if test "${ac_cv_path_GMSGFMT+set}" = set; then
  40065. - $as_echo_n "(cached) " >&6
  40066. -else
  40067. - case $GMSGFMT in
  40068. - [\\/]* | ?:[\\/]*)
  40069. - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  40070. - ;;
  40071. - *)
  40072. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40073. -for as_dir in $PATH
  40074. -do
  40075. - IFS=$as_save_IFS
  40076. - test -z "$as_dir" && as_dir=.
  40077. - for ac_exec_ext in '' $ac_executable_extensions; do
  40078. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  40079. - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  40080. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40081. - break 2
  40082. - fi
  40083. -done
  40084. -done
  40085. -IFS=$as_save_IFS
  40086. -
  40087. - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  40088. - ;;
  40089. -esac
  40090. -fi
  40091. -GMSGFMT=$ac_cv_path_GMSGFMT
  40092. -if test -n "$GMSGFMT"; then
  40093. - { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  40094. -$as_echo "$GMSGFMT" >&6; }
  40095. -else
  40096. - { $as_echo "$as_me:$LINENO: result: no" >&5
  40097. -$as_echo "no" >&6; }
  40098. -fi
  40099. -
  40100. -
  40101. -
  40102. - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  40103. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  40104. - *) MSGFMT_015=$MSGFMT ;;
  40105. - esac
  40106. -
  40107. - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  40108. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  40109. - *) GMSGFMT_015=$GMSGFMT ;;
  40110. - esac
  40111. -
  40112. -
  40113. -
  40114. -# Prepare PATH_SEPARATOR.
  40115. -# The user is always right.
  40116. -if test "${PATH_SEPARATOR+set}" != set; then
  40117. - echo "#! /bin/sh" >conf$$.sh
  40118. - echo "exit 0" >>conf$$.sh
  40119. - chmod +x conf$$.sh
  40120. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40121. - PATH_SEPARATOR=';'
  40122. - else
  40123. - PATH_SEPARATOR=:
  40124. - fi
  40125. - rm -f conf$$.sh
  40126. -fi
  40127. -
  40128. -# Find out how to test for executable files. Don't use a zero-byte file,
  40129. -# as systems may use methods other than mode bits to determine executability.
  40130. -cat >conf$$.file <<_ASEOF
  40131. -#! /bin/sh
  40132. -exit 0
  40133. -_ASEOF
  40134. -chmod +x conf$$.file
  40135. -if test -x conf$$.file >/dev/null 2>&1; then
  40136. - ac_executable_p="test -x"
  40137. -else
  40138. - ac_executable_p="test -f"
  40139. -fi
  40140. -rm -f conf$$.file
  40141. -
  40142. -# Extract the first word of "xgettext", so it can be a program name with args.
  40143. -set dummy xgettext; ac_word=$2
  40144. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  40145. -$as_echo_n "checking for $ac_word... " >&6; }
  40146. -if test "${ac_cv_path_XGETTEXT+set}" = set; then
  40147. - $as_echo_n "(cached) " >&6
  40148. -else
  40149. - case "$XGETTEXT" in
  40150. - [\\/]* | ?:[\\/]*)
  40151. - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  40152. - ;;
  40153. - *)
  40154. - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  40155. - for ac_dir in $PATH; do
  40156. - IFS="$ac_save_IFS"
  40157. - test -z "$ac_dir" && ac_dir=.
  40158. - for ac_exec_ext in '' $ac_executable_extensions; do
  40159. - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  40160. - echo "$as_me: trying $ac_dir/$ac_word..." >&5
  40161. - if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  40162. - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  40163. - ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  40164. - break 2
  40165. - fi
  40166. - fi
  40167. - done
  40168. - done
  40169. - IFS="$ac_save_IFS"
  40170. - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  40171. - ;;
  40172. -esac
  40173. -fi
  40174. -XGETTEXT="$ac_cv_path_XGETTEXT"
  40175. -if test "$XGETTEXT" != ":"; then
  40176. - { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  40177. -$as_echo "$XGETTEXT" >&6; }
  40178. -else
  40179. - { $as_echo "$as_me:$LINENO: result: no" >&5
  40180. -$as_echo "no" >&6; }
  40181. -fi
  40182. -
  40183. - rm -f messages.po
  40184. -
  40185. - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  40186. - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  40187. - *) XGETTEXT_015=$XGETTEXT ;;
  40188. - esac
  40189. -
  40190. -
  40191. -
  40192. -# Prepare PATH_SEPARATOR.
  40193. -# The user is always right.
  40194. -if test "${PATH_SEPARATOR+set}" != set; then
  40195. - echo "#! /bin/sh" >conf$$.sh
  40196. - echo "exit 0" >>conf$$.sh
  40197. - chmod +x conf$$.sh
  40198. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40199. - PATH_SEPARATOR=';'
  40200. - else
  40201. - PATH_SEPARATOR=:
  40202. - fi
  40203. - rm -f conf$$.sh
  40204. -fi
  40205. -
  40206. -# Find out how to test for executable files. Don't use a zero-byte file,
  40207. -# as systems may use methods other than mode bits to determine executability.
  40208. -cat >conf$$.file <<_ASEOF
  40209. -#! /bin/sh
  40210. -exit 0
  40211. -_ASEOF
  40212. -chmod +x conf$$.file
  40213. -if test -x conf$$.file >/dev/null 2>&1; then
  40214. - ac_executable_p="test -x"
  40215. -else
  40216. - ac_executable_p="test -f"
  40217. -fi
  40218. -rm -f conf$$.file
  40219. -
  40220. -# Extract the first word of "msgmerge", so it can be a program name with args.
  40221. -set dummy msgmerge; ac_word=$2
  40222. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  40223. -$as_echo_n "checking for $ac_word... " >&6; }
  40224. -if test "${ac_cv_path_MSGMERGE+set}" = set; then
  40225. - $as_echo_n "(cached) " >&6
  40226. -else
  40227. - case "$MSGMERGE" in
  40228. - [\\/]* | ?:[\\/]*)
  40229. - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  40230. - ;;
  40231. - *)
  40232. - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  40233. - for ac_dir in $PATH; do
  40234. - IFS="$ac_save_IFS"
  40235. - test -z "$ac_dir" && ac_dir=.
  40236. - for ac_exec_ext in '' $ac_executable_extensions; do
  40237. - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  40238. - echo "$as_me: trying $ac_dir/$ac_word..." >&5
  40239. - if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  40240. - ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  40241. - break 2
  40242. - fi
  40243. - fi
  40244. - done
  40245. - done
  40246. - IFS="$ac_save_IFS"
  40247. - test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  40248. - ;;
  40249. -esac
  40250. -fi
  40251. -MSGMERGE="$ac_cv_path_MSGMERGE"
  40252. -if test "$MSGMERGE" != ":"; then
  40253. - { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  40254. -$as_echo "$MSGMERGE" >&6; }
  40255. -else
  40256. - { $as_echo "$as_me:$LINENO: result: no" >&5
  40257. -$as_echo "no" >&6; }
  40258. -fi
  40259. -
  40260. -
  40261. - test -n "$localedir" || localedir='${datadir}/locale'
  40262. -
  40263. -
  40264. - test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  40265. -
  40266. -
  40267. - ac_config_commands="$ac_config_commands po-directories"
  40268. -
  40269. -
  40270. -
  40271. - if test "X$prefix" = "XNONE"; then
  40272. - acl_final_prefix="$ac_default_prefix"
  40273. - else
  40274. - acl_final_prefix="$prefix"
  40275. - fi
  40276. - if test "X$exec_prefix" = "XNONE"; then
  40277. - acl_final_exec_prefix='${prefix}'
  40278. - else
  40279. - acl_final_exec_prefix="$exec_prefix"
  40280. - fi
  40281. - acl_save_prefix="$prefix"
  40282. - prefix="$acl_final_prefix"
  40283. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  40284. - prefix="$acl_save_prefix"
  40285. -
  40286. -
  40287. -# Check whether --with-gnu-ld was given.
  40288. -if test "${with_gnu_ld+set}" = set; then
  40289. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  40290. -else
  40291. - with_gnu_ld=no
  40292. -fi
  40293. -
  40294. -# Prepare PATH_SEPARATOR.
  40295. -# The user is always right.
  40296. -if test "${PATH_SEPARATOR+set}" != set; then
  40297. - echo "#! /bin/sh" >conf$$.sh
  40298. - echo "exit 0" >>conf$$.sh
  40299. - chmod +x conf$$.sh
  40300. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40301. - PATH_SEPARATOR=';'
  40302. - else
  40303. - PATH_SEPARATOR=:
  40304. - fi
  40305. - rm -f conf$$.sh
  40306. -fi
  40307. -ac_prog=ld
  40308. -if test "$GCC" = yes; then
  40309. - # Check if gcc -print-prog-name=ld gives a path.
  40310. - { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  40311. -$as_echo_n "checking for ld used by GCC... " >&6; }
  40312. - case $host in
  40313. - *-*-mingw*)
  40314. - # gcc leaves a trailing carriage return which upsets mingw
  40315. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  40316. - *)
  40317. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  40318. - esac
  40319. - case $ac_prog in
  40320. - # Accept absolute paths.
  40321. - [\\/]* | [A-Za-z]:[\\/]*)
  40322. - re_direlt='/[^/][^/]*/\.\./'
  40323. - # Canonicalize the path of ld
  40324. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  40325. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  40326. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  40327. - done
  40328. - test -z "$LD" && LD="$ac_prog"
  40329. - ;;
  40330. - "")
  40331. - # If it fails, then pretend we aren't using GCC.
  40332. - ac_prog=ld
  40333. - ;;
  40334. - *)
  40335. - # If it is relative, then search for the first ld in PATH.
  40336. - with_gnu_ld=unknown
  40337. - ;;
  40338. - esac
  40339. -elif test "$with_gnu_ld" = yes; then
  40340. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  40341. -$as_echo_n "checking for GNU ld... " >&6; }
  40342. -else
  40343. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  40344. -$as_echo_n "checking for non-GNU ld... " >&6; }
  40345. -fi
  40346. -if test "${acl_cv_path_LD+set}" = set; then
  40347. - $as_echo_n "(cached) " >&6
  40348. -else
  40349. - if test -z "$LD"; then
  40350. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  40351. - for ac_dir in $PATH; do
  40352. - test -z "$ac_dir" && ac_dir=.
  40353. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  40354. - acl_cv_path_LD="$ac_dir/$ac_prog"
  40355. - # Check to see if the program is GNU ld. I'd rather use --version,
  40356. - # but apparently some GNU ld's only accept -v.
  40357. - # Break only if it was the GNU/non-GNU ld that we prefer.
  40358. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  40359. - *GNU* | *'with BFD'*)
  40360. - test "$with_gnu_ld" != no && break ;;
  40361. - *)
  40362. - test "$with_gnu_ld" != yes && break ;;
  40363. - esac
  40364. - fi
  40365. - done
  40366. - IFS="$ac_save_ifs"
  40367. -else
  40368. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  40369. -fi
  40370. -fi
  40371. -
  40372. -LD="$acl_cv_path_LD"
  40373. -if test -n "$LD"; then
  40374. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  40375. -$as_echo "$LD" >&6; }
  40376. -else
  40377. - { $as_echo "$as_me:$LINENO: result: no" >&5
  40378. -$as_echo "no" >&6; }
  40379. -fi
  40380. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  40381. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  40382. - { (exit 1); exit 1; }; }
  40383. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  40384. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  40385. -if test "${acl_cv_prog_gnu_ld+set}" = set; then
  40386. - $as_echo_n "(cached) " >&6
  40387. -else
  40388. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  40389. -case `$LD -v 2>&1 </dev/null` in
  40390. -*GNU* | *'with BFD'*)
  40391. - acl_cv_prog_gnu_ld=yes ;;
  40392. -*)
  40393. - acl_cv_prog_gnu_ld=no ;;
  40394. -esac
  40395. -fi
  40396. -{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  40397. -$as_echo "$acl_cv_prog_gnu_ld" >&6; }
  40398. -with_gnu_ld=$acl_cv_prog_gnu_ld
  40399. -
  40400. -
  40401. -
  40402. -
  40403. - { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  40404. -$as_echo_n "checking for shared library run path origin... " >&6; }
  40405. -if test "${acl_cv_rpath+set}" = set; then
  40406. - $as_echo_n "(cached) " >&6
  40407. -else
  40408. -
  40409. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  40410. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  40411. - . ./conftest.sh
  40412. - rm -f ./conftest.sh
  40413. - acl_cv_rpath=done
  40414. -
  40415. -fi
  40416. -{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  40417. -$as_echo "$acl_cv_rpath" >&6; }
  40418. - wl="$acl_cv_wl"
  40419. - acl_libext="$acl_cv_libext"
  40420. - acl_shlibext="$acl_cv_shlibext"
  40421. - acl_libname_spec="$acl_cv_libname_spec"
  40422. - acl_library_names_spec="$acl_cv_library_names_spec"
  40423. - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  40424. - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  40425. - acl_hardcode_direct="$acl_cv_hardcode_direct"
  40426. - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  40427. - # Check whether --enable-rpath was given.
  40428. -if test "${enable_rpath+set}" = set; then
  40429. - enableval=$enable_rpath; :
  40430. -else
  40431. - enable_rpath=yes
  40432. -fi
  40433. -
  40434. -
  40435. -
  40436. - acl_libdirstem=lib
  40437. - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  40438. - if test -n "$searchpath"; then
  40439. - acl_save_IFS="${IFS= }"; IFS=":"
  40440. - for searchdir in $searchpath; do
  40441. - if test -d "$searchdir"; then
  40442. - case "$searchdir" in
  40443. - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  40444. - *) searchdir=`cd "$searchdir" && pwd`
  40445. - case "$searchdir" in
  40446. - */lib64 ) acl_libdirstem=lib64 ;;
  40447. - esac ;;
  40448. - esac
  40449. - fi
  40450. - done
  40451. - IFS="$acl_save_IFS"
  40452. - fi
  40453. -
  40454. -
  40455. -
  40456. -
  40457. -
  40458. -
  40459. -
  40460. -
  40461. -
  40462. - use_additional=yes
  40463. -
  40464. - acl_save_prefix="$prefix"
  40465. - prefix="$acl_final_prefix"
  40466. - acl_save_exec_prefix="$exec_prefix"
  40467. - exec_prefix="$acl_final_exec_prefix"
  40468. -
  40469. - eval additional_includedir=\"$includedir\"
  40470. - eval additional_libdir=\"$libdir\"
  40471. -
  40472. - exec_prefix="$acl_save_exec_prefix"
  40473. - prefix="$acl_save_prefix"
  40474. -
  40475. -
  40476. -# Check whether --with-libiconv-prefix was given.
  40477. -if test "${with_libiconv_prefix+set}" = set; then
  40478. - withval=$with_libiconv_prefix;
  40479. - if test "X$withval" = "Xno"; then
  40480. - use_additional=no
  40481. - else
  40482. - if test "X$withval" = "X"; then
  40483. -
  40484. - acl_save_prefix="$prefix"
  40485. - prefix="$acl_final_prefix"
  40486. - acl_save_exec_prefix="$exec_prefix"
  40487. - exec_prefix="$acl_final_exec_prefix"
  40488. -
  40489. - eval additional_includedir=\"$includedir\"
  40490. - eval additional_libdir=\"$libdir\"
  40491. -
  40492. - exec_prefix="$acl_save_exec_prefix"
  40493. - prefix="$acl_save_prefix"
  40494. -
  40495. - else
  40496. - additional_includedir="$withval/include"
  40497. - additional_libdir="$withval/$acl_libdirstem"
  40498. - fi
  40499. - fi
  40500. -
  40501. -fi
  40502. -
  40503. - LIBICONV=
  40504. - LTLIBICONV=
  40505. - INCICONV=
  40506. - LIBICONV_PREFIX=
  40507. - rpathdirs=
  40508. - ltrpathdirs=
  40509. - names_already_handled=
  40510. - names_next_round='iconv '
  40511. - while test -n "$names_next_round"; do
  40512. - names_this_round="$names_next_round"
  40513. - names_next_round=
  40514. - for name in $names_this_round; do
  40515. - already_handled=
  40516. - for n in $names_already_handled; do
  40517. - if test "$n" = "$name"; then
  40518. - already_handled=yes
  40519. - break
  40520. - fi
  40521. - done
  40522. - if test -z "$already_handled"; then
  40523. - names_already_handled="$names_already_handled $name"
  40524. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  40525. - eval value=\"\$HAVE_LIB$uppername\"
  40526. - if test -n "$value"; then
  40527. - if test "$value" = yes; then
  40528. - eval value=\"\$LIB$uppername\"
  40529. - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  40530. - eval value=\"\$LTLIB$uppername\"
  40531. - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  40532. - else
  40533. - :
  40534. - fi
  40535. - else
  40536. - found_dir=
  40537. - found_la=
  40538. - found_so=
  40539. - found_a=
  40540. - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  40541. - if test -n "$acl_shlibext"; then
  40542. - shrext=".$acl_shlibext" # typically: shrext=.so
  40543. - else
  40544. - shrext=
  40545. - fi
  40546. - if test $use_additional = yes; then
  40547. - dir="$additional_libdir"
  40548. - if test -n "$acl_shlibext"; then
  40549. - if test -f "$dir/$libname$shrext"; then
  40550. - found_dir="$dir"
  40551. - found_so="$dir/$libname$shrext"
  40552. - else
  40553. - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  40554. - ver=`(cd "$dir" && \
  40555. - for f in "$libname$shrext".*; do echo "$f"; done \
  40556. - | sed -e "s,^$libname$shrext\\\\.,," \
  40557. - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  40558. - | sed 1q ) 2>/dev/null`
  40559. - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  40560. - found_dir="$dir"
  40561. - found_so="$dir/$libname$shrext.$ver"
  40562. - fi
  40563. - else
  40564. - eval library_names=\"$acl_library_names_spec\"
  40565. - for f in $library_names; do
  40566. - if test -f "$dir/$f"; then
  40567. - found_dir="$dir"
  40568. - found_so="$dir/$f"
  40569. - break
  40570. - fi
  40571. - done
  40572. - fi
  40573. - fi
  40574. - fi
  40575. - if test "X$found_dir" = "X"; then
  40576. - if test -f "$dir/$libname.$acl_libext"; then
  40577. - found_dir="$dir"
  40578. - found_a="$dir/$libname.$acl_libext"
  40579. - fi
  40580. - fi
  40581. - if test "X$found_dir" != "X"; then
  40582. - if test -f "$dir/$libname.la"; then
  40583. - found_la="$dir/$libname.la"
  40584. - fi
  40585. - fi
  40586. - fi
  40587. - if test "X$found_dir" = "X"; then
  40588. - for x in $LDFLAGS $LTLIBICONV; do
  40589. -
  40590. - acl_save_prefix="$prefix"
  40591. - prefix="$acl_final_prefix"
  40592. - acl_save_exec_prefix="$exec_prefix"
  40593. - exec_prefix="$acl_final_exec_prefix"
  40594. - eval x=\"$x\"
  40595. - exec_prefix="$acl_save_exec_prefix"
  40596. - prefix="$acl_save_prefix"
  40597. -
  40598. - case "$x" in
  40599. - -L*)
  40600. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  40601. - if test -n "$acl_shlibext"; then
  40602. - if test -f "$dir/$libname$shrext"; then
  40603. - found_dir="$dir"
  40604. - found_so="$dir/$libname$shrext"
  40605. - else
  40606. - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  40607. - ver=`(cd "$dir" && \
  40608. - for f in "$libname$shrext".*; do echo "$f"; done \
  40609. - | sed -e "s,^$libname$shrext\\\\.,," \
  40610. - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  40611. - | sed 1q ) 2>/dev/null`
  40612. - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  40613. - found_dir="$dir"
  40614. - found_so="$dir/$libname$shrext.$ver"
  40615. - fi
  40616. - else
  40617. - eval library_names=\"$acl_library_names_spec\"
  40618. - for f in $library_names; do
  40619. - if test -f "$dir/$f"; then
  40620. - found_dir="$dir"
  40621. - found_so="$dir/$f"
  40622. - break
  40623. - fi
  40624. - done
  40625. - fi
  40626. - fi
  40627. - fi
  40628. - if test "X$found_dir" = "X"; then
  40629. - if test -f "$dir/$libname.$acl_libext"; then
  40630. - found_dir="$dir"
  40631. - found_a="$dir/$libname.$acl_libext"
  40632. - fi
  40633. - fi
  40634. - if test "X$found_dir" != "X"; then
  40635. - if test -f "$dir/$libname.la"; then
  40636. - found_la="$dir/$libname.la"
  40637. - fi
  40638. - fi
  40639. - ;;
  40640. - esac
  40641. - if test "X$found_dir" != "X"; then
  40642. - break
  40643. - fi
  40644. - done
  40645. - fi
  40646. - if test "X$found_dir" != "X"; then
  40647. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  40648. - if test "X$found_so" != "X"; then
  40649. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  40650. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  40651. - else
  40652. - haveit=
  40653. - for x in $ltrpathdirs; do
  40654. - if test "X$x" = "X$found_dir"; then
  40655. - haveit=yes
  40656. - break
  40657. - fi
  40658. - done
  40659. - if test -z "$haveit"; then
  40660. - ltrpathdirs="$ltrpathdirs $found_dir"
  40661. - fi
  40662. - if test "$acl_hardcode_direct" = yes; then
  40663. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  40664. - else
  40665. - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  40666. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  40667. - haveit=
  40668. - for x in $rpathdirs; do
  40669. - if test "X$x" = "X$found_dir"; then
  40670. - haveit=yes
  40671. - break
  40672. - fi
  40673. - done
  40674. - if test -z "$haveit"; then
  40675. - rpathdirs="$rpathdirs $found_dir"
  40676. - fi
  40677. - else
  40678. - haveit=
  40679. - for x in $LDFLAGS $LIBICONV; do
  40680. -
  40681. - acl_save_prefix="$prefix"
  40682. - prefix="$acl_final_prefix"
  40683. - acl_save_exec_prefix="$exec_prefix"
  40684. - exec_prefix="$acl_final_exec_prefix"
  40685. - eval x=\"$x\"
  40686. - exec_prefix="$acl_save_exec_prefix"
  40687. - prefix="$acl_save_prefix"
  40688. -
  40689. - if test "X$x" = "X-L$found_dir"; then
  40690. - haveit=yes
  40691. - break
  40692. - fi
  40693. - done
  40694. - if test -z "$haveit"; then
  40695. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  40696. - fi
  40697. - if test "$acl_hardcode_minus_L" != no; then
  40698. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  40699. - else
  40700. - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  40701. - fi
  40702. - fi
  40703. - fi
  40704. - fi
  40705. - else
  40706. - if test "X$found_a" != "X"; then
  40707. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  40708. - else
  40709. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  40710. - fi
  40711. - fi
  40712. - additional_includedir=
  40713. - case "$found_dir" in
  40714. - */$acl_libdirstem | */$acl_libdirstem/)
  40715. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  40716. - LIBICONV_PREFIX="$basedir"
  40717. - additional_includedir="$basedir/include"
  40718. - ;;
  40719. - esac
  40720. - if test "X$additional_includedir" != "X"; then
  40721. - if test "X$additional_includedir" != "X/usr/include"; then
  40722. - haveit=
  40723. - if test "X$additional_includedir" = "X/usr/local/include"; then
  40724. - if test -n "$GCC"; then
  40725. - case $host_os in
  40726. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  40727. - esac
  40728. - fi
  40729. - fi
  40730. - if test -z "$haveit"; then
  40731. - for x in $CPPFLAGS $INCICONV; do
  40732. -
  40733. - acl_save_prefix="$prefix"
  40734. - prefix="$acl_final_prefix"
  40735. - acl_save_exec_prefix="$exec_prefix"
  40736. - exec_prefix="$acl_final_exec_prefix"
  40737. - eval x=\"$x\"
  40738. - exec_prefix="$acl_save_exec_prefix"
  40739. - prefix="$acl_save_prefix"
  40740. -
  40741. - if test "X$x" = "X-I$additional_includedir"; then
  40742. - haveit=yes
  40743. - break
  40744. - fi
  40745. - done
  40746. - if test -z "$haveit"; then
  40747. - if test -d "$additional_includedir"; then
  40748. - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  40749. - fi
  40750. - fi
  40751. - fi
  40752. - fi
  40753. - fi
  40754. - if test -n "$found_la"; then
  40755. - save_libdir="$libdir"
  40756. - case "$found_la" in
  40757. - */* | *\\*) . "$found_la" ;;
  40758. - *) . "./$found_la" ;;
  40759. - esac
  40760. - libdir="$save_libdir"
  40761. - for dep in $dependency_libs; do
  40762. - case "$dep" in
  40763. - -L*)
  40764. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  40765. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  40766. - haveit=
  40767. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  40768. - if test -n "$GCC"; then
  40769. - case $host_os in
  40770. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  40771. - esac
  40772. - fi
  40773. - fi
  40774. - if test -z "$haveit"; then
  40775. - haveit=
  40776. - for x in $LDFLAGS $LIBICONV; do
  40777. -
  40778. - acl_save_prefix="$prefix"
  40779. - prefix="$acl_final_prefix"
  40780. - acl_save_exec_prefix="$exec_prefix"
  40781. - exec_prefix="$acl_final_exec_prefix"
  40782. - eval x=\"$x\"
  40783. - exec_prefix="$acl_save_exec_prefix"
  40784. - prefix="$acl_save_prefix"
  40785. -
  40786. - if test "X$x" = "X-L$additional_libdir"; then
  40787. - haveit=yes
  40788. - break
  40789. - fi
  40790. - done
  40791. - if test -z "$haveit"; then
  40792. - if test -d "$additional_libdir"; then
  40793. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  40794. - fi
  40795. - fi
  40796. - haveit=
  40797. - for x in $LDFLAGS $LTLIBICONV; do
  40798. -
  40799. - acl_save_prefix="$prefix"
  40800. - prefix="$acl_final_prefix"
  40801. - acl_save_exec_prefix="$exec_prefix"
  40802. - exec_prefix="$acl_final_exec_prefix"
  40803. - eval x=\"$x\"
  40804. - exec_prefix="$acl_save_exec_prefix"
  40805. - prefix="$acl_save_prefix"
  40806. -
  40807. - if test "X$x" = "X-L$additional_libdir"; then
  40808. - haveit=yes
  40809. - break
  40810. - fi
  40811. - done
  40812. - if test -z "$haveit"; then
  40813. - if test -d "$additional_libdir"; then
  40814. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  40815. - fi
  40816. - fi
  40817. - fi
  40818. - fi
  40819. - ;;
  40820. - -R*)
  40821. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  40822. - if test "$enable_rpath" != no; then
  40823. - haveit=
  40824. - for x in $rpathdirs; do
  40825. - if test "X$x" = "X$dir"; then
  40826. - haveit=yes
  40827. - break
  40828. - fi
  40829. - done
  40830. - if test -z "$haveit"; then
  40831. - rpathdirs="$rpathdirs $dir"
  40832. - fi
  40833. - haveit=
  40834. - for x in $ltrpathdirs; do
  40835. - if test "X$x" = "X$dir"; then
  40836. - haveit=yes
  40837. - break
  40838. - fi
  40839. - done
  40840. - if test -z "$haveit"; then
  40841. - ltrpathdirs="$ltrpathdirs $dir"
  40842. - fi
  40843. - fi
  40844. - ;;
  40845. - -l*)
  40846. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  40847. - ;;
  40848. - *.la)
  40849. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  40850. - ;;
  40851. - *)
  40852. - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  40853. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  40854. - ;;
  40855. - esac
  40856. - done
  40857. - fi
  40858. - else
  40859. - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  40860. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  40861. - fi
  40862. - fi
  40863. - fi
  40864. - done
  40865. - done
  40866. - if test "X$rpathdirs" != "X"; then
  40867. - if test -n "$acl_hardcode_libdir_separator"; then
  40868. - alldirs=
  40869. - for found_dir in $rpathdirs; do
  40870. - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  40871. - done
  40872. - acl_save_libdir="$libdir"
  40873. - libdir="$alldirs"
  40874. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  40875. - libdir="$acl_save_libdir"
  40876. - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  40877. - else
  40878. - for found_dir in $rpathdirs; do
  40879. - acl_save_libdir="$libdir"
  40880. - libdir="$found_dir"
  40881. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  40882. - libdir="$acl_save_libdir"
  40883. - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  40884. - done
  40885. - fi
  40886. - fi
  40887. - if test "X$ltrpathdirs" != "X"; then
  40888. - for found_dir in $ltrpathdirs; do
  40889. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  40890. - done
  40891. - fi
  40892. -
  40893. -
  40894. -
  40895. -
  40896. -
  40897. -
  40898. -
  40899. -
  40900. -
  40901. -
  40902. -
  40903. -
  40904. -
  40905. -
  40906. -
  40907. -
  40908. -
  40909. -
  40910. -
  40911. -
  40912. -
  40913. -
  40914. -
  40915. -
  40916. -
  40917. - { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  40918. -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  40919. -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  40920. - $as_echo_n "(cached) " >&6
  40921. -else
  40922. - gt_save_LIBS="$LIBS"
  40923. - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  40924. - cat >conftest.$ac_ext <<_ACEOF
  40925. -/* confdefs.h. */
  40926. -_ACEOF
  40927. -cat confdefs.h >>conftest.$ac_ext
  40928. -cat >>conftest.$ac_ext <<_ACEOF
  40929. -/* end confdefs.h. */
  40930. -#include <CoreFoundation/CFPreferences.h>
  40931. -int
  40932. -main ()
  40933. -{
  40934. -CFPreferencesCopyAppValue(NULL, NULL)
  40935. - ;
  40936. - return 0;
  40937. -}
  40938. -_ACEOF
  40939. -rm -f conftest.$ac_objext conftest$ac_exeext
  40940. -if { (ac_try="$ac_link"
  40941. -case "(($ac_try" in
  40942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40943. - *) ac_try_echo=$ac_try;;
  40944. -esac
  40945. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40946. -$as_echo "$ac_try_echo") >&5
  40947. - (eval "$ac_link") 2>conftest.er1
  40948. - ac_status=$?
  40949. - grep -v '^ *+' conftest.er1 >conftest.err
  40950. - rm -f conftest.er1
  40951. - cat conftest.err >&5
  40952. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40953. - (exit $ac_status); } && {
  40954. - test -z "$ac_c_werror_flag" ||
  40955. - test ! -s conftest.err
  40956. - } && test -s conftest$ac_exeext && {
  40957. - test "$cross_compiling" = yes ||
  40958. - $as_test_x conftest$ac_exeext
  40959. - }; then
  40960. - gt_cv_func_CFPreferencesCopyAppValue=yes
  40961. -else
  40962. - $as_echo "$as_me: failed program was:" >&5
  40963. -sed 's/^/| /' conftest.$ac_ext >&5
  40964. -
  40965. - gt_cv_func_CFPreferencesCopyAppValue=no
  40966. -fi
  40967. -
  40968. -rm -rf conftest.dSYM
  40969. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40970. - conftest$ac_exeext conftest.$ac_ext
  40971. - LIBS="$gt_save_LIBS"
  40972. -fi
  40973. -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  40974. -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  40975. - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  40976. -
  40977. -cat >>confdefs.h <<\_ACEOF
  40978. -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  40979. -_ACEOF
  40980. -
  40981. - fi
  40982. - { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  40983. -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  40984. -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  40985. - $as_echo_n "(cached) " >&6
  40986. -else
  40987. - gt_save_LIBS="$LIBS"
  40988. - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  40989. - cat >conftest.$ac_ext <<_ACEOF
  40990. -/* confdefs.h. */
  40991. -_ACEOF
  40992. -cat confdefs.h >>conftest.$ac_ext
  40993. -cat >>conftest.$ac_ext <<_ACEOF
  40994. -/* end confdefs.h. */
  40995. -#include <CoreFoundation/CFLocale.h>
  40996. -int
  40997. -main ()
  40998. -{
  40999. -CFLocaleCopyCurrent();
  41000. - ;
  41001. - return 0;
  41002. -}
  41003. -_ACEOF
  41004. -rm -f conftest.$ac_objext conftest$ac_exeext
  41005. -if { (ac_try="$ac_link"
  41006. -case "(($ac_try" in
  41007. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41008. - *) ac_try_echo=$ac_try;;
  41009. -esac
  41010. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41011. -$as_echo "$ac_try_echo") >&5
  41012. - (eval "$ac_link") 2>conftest.er1
  41013. - ac_status=$?
  41014. - grep -v '^ *+' conftest.er1 >conftest.err
  41015. - rm -f conftest.er1
  41016. - cat conftest.err >&5
  41017. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41018. - (exit $ac_status); } && {
  41019. - test -z "$ac_c_werror_flag" ||
  41020. - test ! -s conftest.err
  41021. - } && test -s conftest$ac_exeext && {
  41022. - test "$cross_compiling" = yes ||
  41023. - $as_test_x conftest$ac_exeext
  41024. - }; then
  41025. - gt_cv_func_CFLocaleCopyCurrent=yes
  41026. -else
  41027. - $as_echo "$as_me: failed program was:" >&5
  41028. -sed 's/^/| /' conftest.$ac_ext >&5
  41029. -
  41030. - gt_cv_func_CFLocaleCopyCurrent=no
  41031. -fi
  41032. -
  41033. -rm -rf conftest.dSYM
  41034. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41035. - conftest$ac_exeext conftest.$ac_ext
  41036. - LIBS="$gt_save_LIBS"
  41037. -fi
  41038. -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  41039. -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  41040. - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  41041. -
  41042. -cat >>confdefs.h <<\_ACEOF
  41043. -#define HAVE_CFLOCALECOPYCURRENT 1
  41044. -_ACEOF
  41045. -
  41046. - fi
  41047. - INTL_MACOSX_LIBS=
  41048. - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  41049. - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  41050. - fi
  41051. -
  41052. -
  41053. -
  41054. -
  41055. -
  41056. -
  41057. - LIBINTL=
  41058. - LTLIBINTL=
  41059. - POSUB=
  41060. -
  41061. - case " $gt_needs " in
  41062. - *" need-formatstring-macros "*) gt_api_version=3 ;;
  41063. - *" need-ngettext "*) gt_api_version=2 ;;
  41064. - *) gt_api_version=1 ;;
  41065. - esac
  41066. - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  41067. - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  41068. -
  41069. - if test "$USE_NLS" = "yes"; then
  41070. - gt_use_preinstalled_gnugettext=no
  41071. -
  41072. -
  41073. - if test $gt_api_version -ge 3; then
  41074. - gt_revision_test_code='
  41075. -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  41076. -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  41077. -#endif
  41078. -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  41079. -'
  41080. - else
  41081. - gt_revision_test_code=
  41082. - fi
  41083. - if test $gt_api_version -ge 2; then
  41084. - gt_expression_test_code=' + * ngettext ("", "", 0)'
  41085. - else
  41086. - gt_expression_test_code=
  41087. - fi
  41088. -
  41089. - { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  41090. -$as_echo_n "checking for GNU gettext in libc... " >&6; }
  41091. -if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  41092. - $as_echo_n "(cached) " >&6
  41093. -else
  41094. - cat >conftest.$ac_ext <<_ACEOF
  41095. -/* confdefs.h. */
  41096. -_ACEOF
  41097. -cat confdefs.h >>conftest.$ac_ext
  41098. -cat >>conftest.$ac_ext <<_ACEOF
  41099. -/* end confdefs.h. */
  41100. -#include <libintl.h>
  41101. -$gt_revision_test_code
  41102. -extern int _nl_msg_cat_cntr;
  41103. -extern int *_nl_domain_bindings;
  41104. -int
  41105. -main ()
  41106. -{
  41107. -bindtextdomain ("", "");
  41108. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  41109. - ;
  41110. - return 0;
  41111. -}
  41112. -_ACEOF
  41113. -rm -f conftest.$ac_objext conftest$ac_exeext
  41114. -if { (ac_try="$ac_link"
  41115. -case "(($ac_try" in
  41116. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41117. - *) ac_try_echo=$ac_try;;
  41118. -esac
  41119. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41120. -$as_echo "$ac_try_echo") >&5
  41121. - (eval "$ac_link") 2>conftest.er1
  41122. - ac_status=$?
  41123. - grep -v '^ *+' conftest.er1 >conftest.err
  41124. - rm -f conftest.er1
  41125. - cat conftest.err >&5
  41126. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41127. - (exit $ac_status); } && {
  41128. - test -z "$ac_c_werror_flag" ||
  41129. - test ! -s conftest.err
  41130. - } && test -s conftest$ac_exeext && {
  41131. - test "$cross_compiling" = yes ||
  41132. - $as_test_x conftest$ac_exeext
  41133. - }; then
  41134. - eval "$gt_func_gnugettext_libc=yes"
  41135. -else
  41136. - $as_echo "$as_me: failed program was:" >&5
  41137. -sed 's/^/| /' conftest.$ac_ext >&5
  41138. -
  41139. - eval "$gt_func_gnugettext_libc=no"
  41140. -fi
  41141. -
  41142. -rm -rf conftest.dSYM
  41143. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41144. - conftest$ac_exeext conftest.$ac_ext
  41145. -fi
  41146. -ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  41147. - $as_echo "$as_val"'`
  41148. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41149. -$as_echo "$ac_res" >&6; }
  41150. -
  41151. - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  41152. -
  41153. -
  41154. -
  41155. -
  41156. -
  41157. - am_save_CPPFLAGS="$CPPFLAGS"
  41158. -
  41159. - for element in $INCICONV; do
  41160. - haveit=
  41161. - for x in $CPPFLAGS; do
  41162. -
  41163. - acl_save_prefix="$prefix"
  41164. - prefix="$acl_final_prefix"
  41165. - acl_save_exec_prefix="$exec_prefix"
  41166. - exec_prefix="$acl_final_exec_prefix"
  41167. - eval x=\"$x\"
  41168. - exec_prefix="$acl_save_exec_prefix"
  41169. - prefix="$acl_save_prefix"
  41170. -
  41171. - if test "X$x" = "X$element"; then
  41172. - haveit=yes
  41173. - break
  41174. - fi
  41175. - done
  41176. - if test -z "$haveit"; then
  41177. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  41178. - fi
  41179. - done
  41180. -
  41181. -
  41182. - { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  41183. -$as_echo_n "checking for iconv... " >&6; }
  41184. -if test "${am_cv_func_iconv+set}" = set; then
  41185. - $as_echo_n "(cached) " >&6
  41186. -else
  41187. -
  41188. - am_cv_func_iconv="no, consider installing GNU libiconv"
  41189. - am_cv_lib_iconv=no
  41190. - cat >conftest.$ac_ext <<_ACEOF
  41191. -/* confdefs.h. */
  41192. -_ACEOF
  41193. -cat confdefs.h >>conftest.$ac_ext
  41194. -cat >>conftest.$ac_ext <<_ACEOF
  41195. -/* end confdefs.h. */
  41196. -#include <stdlib.h>
  41197. -#include <iconv.h>
  41198. -int
  41199. -main ()
  41200. -{
  41201. -iconv_t cd = iconv_open("","");
  41202. - iconv(cd,NULL,NULL,NULL,NULL);
  41203. - iconv_close(cd);
  41204. - ;
  41205. - return 0;
  41206. -}
  41207. -_ACEOF
  41208. -rm -f conftest.$ac_objext conftest$ac_exeext
  41209. -if { (ac_try="$ac_link"
  41210. -case "(($ac_try" in
  41211. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41212. - *) ac_try_echo=$ac_try;;
  41213. -esac
  41214. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41215. -$as_echo "$ac_try_echo") >&5
  41216. - (eval "$ac_link") 2>conftest.er1
  41217. - ac_status=$?
  41218. - grep -v '^ *+' conftest.er1 >conftest.err
  41219. - rm -f conftest.er1
  41220. - cat conftest.err >&5
  41221. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41222. - (exit $ac_status); } && {
  41223. - test -z "$ac_c_werror_flag" ||
  41224. - test ! -s conftest.err
  41225. - } && test -s conftest$ac_exeext && {
  41226. - test "$cross_compiling" = yes ||
  41227. - $as_test_x conftest$ac_exeext
  41228. - }; then
  41229. - am_cv_func_iconv=yes
  41230. -else
  41231. - $as_echo "$as_me: failed program was:" >&5
  41232. -sed 's/^/| /' conftest.$ac_ext >&5
  41233. -
  41234. -
  41235. -fi
  41236. -
  41237. -rm -rf conftest.dSYM
  41238. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41239. - conftest$ac_exeext conftest.$ac_ext
  41240. - if test "$am_cv_func_iconv" != yes; then
  41241. - am_save_LIBS="$LIBS"
  41242. - LIBS="$LIBS $LIBICONV"
  41243. - cat >conftest.$ac_ext <<_ACEOF
  41244. -/* confdefs.h. */
  41245. -_ACEOF
  41246. -cat confdefs.h >>conftest.$ac_ext
  41247. -cat >>conftest.$ac_ext <<_ACEOF
  41248. -/* end confdefs.h. */
  41249. -#include <stdlib.h>
  41250. -#include <iconv.h>
  41251. -int
  41252. -main ()
  41253. -{
  41254. -iconv_t cd = iconv_open("","");
  41255. - iconv(cd,NULL,NULL,NULL,NULL);
  41256. - iconv_close(cd);
  41257. - ;
  41258. - return 0;
  41259. -}
  41260. -_ACEOF
  41261. -rm -f conftest.$ac_objext conftest$ac_exeext
  41262. -if { (ac_try="$ac_link"
  41263. -case "(($ac_try" in
  41264. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41265. - *) ac_try_echo=$ac_try;;
  41266. -esac
  41267. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41268. -$as_echo "$ac_try_echo") >&5
  41269. - (eval "$ac_link") 2>conftest.er1
  41270. - ac_status=$?
  41271. - grep -v '^ *+' conftest.er1 >conftest.err
  41272. - rm -f conftest.er1
  41273. - cat conftest.err >&5
  41274. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41275. - (exit $ac_status); } && {
  41276. - test -z "$ac_c_werror_flag" ||
  41277. - test ! -s conftest.err
  41278. - } && test -s conftest$ac_exeext && {
  41279. - test "$cross_compiling" = yes ||
  41280. - $as_test_x conftest$ac_exeext
  41281. - }; then
  41282. - am_cv_lib_iconv=yes
  41283. - am_cv_func_iconv=yes
  41284. -else
  41285. - $as_echo "$as_me: failed program was:" >&5
  41286. -sed 's/^/| /' conftest.$ac_ext >&5
  41287. -
  41288. -
  41289. -fi
  41290. -
  41291. -rm -rf conftest.dSYM
  41292. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41293. - conftest$ac_exeext conftest.$ac_ext
  41294. - LIBS="$am_save_LIBS"
  41295. - fi
  41296. -
  41297. -fi
  41298. -{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  41299. -$as_echo "$am_cv_func_iconv" >&6; }
  41300. - if test "$am_cv_func_iconv" = yes; then
  41301. - { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  41302. -$as_echo_n "checking for working iconv... " >&6; }
  41303. -if test "${am_cv_func_iconv_works+set}" = set; then
  41304. - $as_echo_n "(cached) " >&6
  41305. -else
  41306. -
  41307. - am_save_LIBS="$LIBS"
  41308. - if test $am_cv_lib_iconv = yes; then
  41309. - LIBS="$LIBS $LIBICONV"
  41310. - fi
  41311. - if test "$cross_compiling" = yes; then
  41312. - case "$host_os" in
  41313. - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  41314. - *) am_cv_func_iconv_works="guessing yes" ;;
  41315. - esac
  41316. -else
  41317. - cat >conftest.$ac_ext <<_ACEOF
  41318. -/* confdefs.h. */
  41319. -_ACEOF
  41320. -cat confdefs.h >>conftest.$ac_ext
  41321. -cat >>conftest.$ac_ext <<_ACEOF
  41322. -/* end confdefs.h. */
  41323. -
  41324. -#include <iconv.h>
  41325. -#include <string.h>
  41326. -int main ()
  41327. -{
  41328. - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  41329. - returns. */
  41330. - {
  41331. - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  41332. - if (cd_utf8_to_88591 != (iconv_t)(-1))
  41333. - {
  41334. - static const char input[] = "\342\202\254"; /* EURO SIGN */
  41335. - char buf[10];
  41336. - const char *inptr = input;
  41337. - size_t inbytesleft = strlen (input);
  41338. - char *outptr = buf;
  41339. - size_t outbytesleft = sizeof (buf);
  41340. - size_t res = iconv (cd_utf8_to_88591,
  41341. - (char **) &inptr, &inbytesleft,
  41342. - &outptr, &outbytesleft);
  41343. - if (res == 0)
  41344. - return 1;
  41345. - }
  41346. - }
  41347. -#if 0 /* This bug could be worked around by the caller. */
  41348. - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  41349. - {
  41350. - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  41351. - if (cd_88591_to_utf8 != (iconv_t)(-1))
  41352. - {
  41353. - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  41354. - char buf[50];
  41355. - const char *inptr = input;
  41356. - size_t inbytesleft = strlen (input);
  41357. - char *outptr = buf;
  41358. - size_t outbytesleft = sizeof (buf);
  41359. - size_t res = iconv (cd_88591_to_utf8,
  41360. - (char **) &inptr, &inbytesleft,
  41361. - &outptr, &outbytesleft);
  41362. - if ((int)res > 0)
  41363. - return 1;
  41364. - }
  41365. - }
  41366. -#endif
  41367. - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  41368. - provided. */
  41369. - if (/* Try standardized names. */
  41370. - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  41371. - /* Try IRIX, OSF/1 names. */
  41372. - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  41373. - /* Try AIX names. */
  41374. - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  41375. - /* Try HP-UX names. */
  41376. - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  41377. - return 1;
  41378. - return 0;
  41379. -}
  41380. -_ACEOF
  41381. -rm -f conftest$ac_exeext
  41382. -if { (ac_try="$ac_link"
  41383. -case "(($ac_try" in
  41384. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41385. - *) ac_try_echo=$ac_try;;
  41386. -esac
  41387. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41388. -$as_echo "$ac_try_echo") >&5
  41389. - (eval "$ac_link") 2>&5
  41390. - ac_status=$?
  41391. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41392. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41393. - { (case "(($ac_try" in
  41394. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41395. - *) ac_try_echo=$ac_try;;
  41396. -esac
  41397. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41398. -$as_echo "$ac_try_echo") >&5
  41399. - (eval "$ac_try") 2>&5
  41400. - ac_status=$?
  41401. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41402. - (exit $ac_status); }; }; then
  41403. - am_cv_func_iconv_works=yes
  41404. -else
  41405. - $as_echo "$as_me: program exited with status $ac_status" >&5
  41406. -$as_echo "$as_me: failed program was:" >&5
  41407. -sed 's/^/| /' conftest.$ac_ext >&5
  41408. -
  41409. -( exit $ac_status )
  41410. -am_cv_func_iconv_works=no
  41411. -fi
  41412. -rm -rf conftest.dSYM
  41413. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41414. -fi
  41415. -
  41416. -
  41417. - LIBS="$am_save_LIBS"
  41418. -
  41419. -fi
  41420. -{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  41421. -$as_echo "$am_cv_func_iconv_works" >&6; }
  41422. - case "$am_cv_func_iconv_works" in
  41423. - *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  41424. - *) am_func_iconv=yes ;;
  41425. - esac
  41426. - else
  41427. - am_func_iconv=no am_cv_lib_iconv=no
  41428. - fi
  41429. - if test "$am_func_iconv" = yes; then
  41430. -
  41431. -cat >>confdefs.h <<\_ACEOF
  41432. -#define HAVE_ICONV 1
  41433. -_ACEOF
  41434. -
  41435. - fi
  41436. - if test "$am_cv_lib_iconv" = yes; then
  41437. - { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  41438. -$as_echo_n "checking how to link with libiconv... " >&6; }
  41439. - { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  41440. -$as_echo "$LIBICONV" >&6; }
  41441. - else
  41442. - CPPFLAGS="$am_save_CPPFLAGS"
  41443. - LIBICONV=
  41444. - LTLIBICONV=
  41445. - fi
  41446. -
  41447. -
  41448. -
  41449. -
  41450. -
  41451. -
  41452. -
  41453. -
  41454. - use_additional=yes
  41455. -
  41456. - acl_save_prefix="$prefix"
  41457. - prefix="$acl_final_prefix"
  41458. - acl_save_exec_prefix="$exec_prefix"
  41459. - exec_prefix="$acl_final_exec_prefix"
  41460. -
  41461. - eval additional_includedir=\"$includedir\"
  41462. - eval additional_libdir=\"$libdir\"
  41463. -
  41464. - exec_prefix="$acl_save_exec_prefix"
  41465. - prefix="$acl_save_prefix"
  41466. -
  41467. -
  41468. -# Check whether --with-libintl-prefix was given.
  41469. -if test "${with_libintl_prefix+set}" = set; then
  41470. - withval=$with_libintl_prefix;
  41471. - if test "X$withval" = "Xno"; then
  41472. - use_additional=no
  41473. - else
  41474. - if test "X$withval" = "X"; then
  41475. -
  41476. - acl_save_prefix="$prefix"
  41477. - prefix="$acl_final_prefix"
  41478. - acl_save_exec_prefix="$exec_prefix"
  41479. - exec_prefix="$acl_final_exec_prefix"
  41480. -
  41481. - eval additional_includedir=\"$includedir\"
  41482. - eval additional_libdir=\"$libdir\"
  41483. -
  41484. - exec_prefix="$acl_save_exec_prefix"
  41485. - prefix="$acl_save_prefix"
  41486. -
  41487. - else
  41488. - additional_includedir="$withval/include"
  41489. - additional_libdir="$withval/$acl_libdirstem"
  41490. - fi
  41491. - fi
  41492. -
  41493. -fi
  41494. -
  41495. - LIBINTL=
  41496. - LTLIBINTL=
  41497. - INCINTL=
  41498. - LIBINTL_PREFIX=
  41499. - rpathdirs=
  41500. - ltrpathdirs=
  41501. - names_already_handled=
  41502. - names_next_round='intl '
  41503. - while test -n "$names_next_round"; do
  41504. - names_this_round="$names_next_round"
  41505. - names_next_round=
  41506. - for name in $names_this_round; do
  41507. - already_handled=
  41508. - for n in $names_already_handled; do
  41509. - if test "$n" = "$name"; then
  41510. - already_handled=yes
  41511. - break
  41512. - fi
  41513. - done
  41514. - if test -z "$already_handled"; then
  41515. - names_already_handled="$names_already_handled $name"
  41516. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  41517. - eval value=\"\$HAVE_LIB$uppername\"
  41518. - if test -n "$value"; then
  41519. - if test "$value" = yes; then
  41520. - eval value=\"\$LIB$uppername\"
  41521. - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  41522. - eval value=\"\$LTLIB$uppername\"
  41523. - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  41524. - else
  41525. - :
  41526. - fi
  41527. - else
  41528. - found_dir=
  41529. - found_la=
  41530. - found_so=
  41531. - found_a=
  41532. - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  41533. - if test -n "$acl_shlibext"; then
  41534. - shrext=".$acl_shlibext" # typically: shrext=.so
  41535. - else
  41536. - shrext=
  41537. - fi
  41538. - if test $use_additional = yes; then
  41539. - dir="$additional_libdir"
  41540. - if test -n "$acl_shlibext"; then
  41541. - if test -f "$dir/$libname$shrext"; then
  41542. - found_dir="$dir"
  41543. - found_so="$dir/$libname$shrext"
  41544. - else
  41545. - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  41546. - ver=`(cd "$dir" && \
  41547. - for f in "$libname$shrext".*; do echo "$f"; done \
  41548. - | sed -e "s,^$libname$shrext\\\\.,," \
  41549. - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  41550. - | sed 1q ) 2>/dev/null`
  41551. - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  41552. - found_dir="$dir"
  41553. - found_so="$dir/$libname$shrext.$ver"
  41554. - fi
  41555. - else
  41556. - eval library_names=\"$acl_library_names_spec\"
  41557. - for f in $library_names; do
  41558. - if test -f "$dir/$f"; then
  41559. - found_dir="$dir"
  41560. - found_so="$dir/$f"
  41561. - break
  41562. - fi
  41563. - done
  41564. - fi
  41565. - fi
  41566. - fi
  41567. - if test "X$found_dir" = "X"; then
  41568. - if test -f "$dir/$libname.$acl_libext"; then
  41569. - found_dir="$dir"
  41570. - found_a="$dir/$libname.$acl_libext"
  41571. - fi
  41572. - fi
  41573. - if test "X$found_dir" != "X"; then
  41574. - if test -f "$dir/$libname.la"; then
  41575. - found_la="$dir/$libname.la"
  41576. - fi
  41577. - fi
  41578. - fi
  41579. - if test "X$found_dir" = "X"; then
  41580. - for x in $LDFLAGS $LTLIBINTL; do
  41581. -
  41582. - acl_save_prefix="$prefix"
  41583. - prefix="$acl_final_prefix"
  41584. - acl_save_exec_prefix="$exec_prefix"
  41585. - exec_prefix="$acl_final_exec_prefix"
  41586. - eval x=\"$x\"
  41587. - exec_prefix="$acl_save_exec_prefix"
  41588. - prefix="$acl_save_prefix"
  41589. + acl_save_prefix="$prefix"
  41590. + prefix="$acl_final_prefix"
  41591. + acl_save_exec_prefix="$exec_prefix"
  41592. + exec_prefix="$acl_final_exec_prefix"
  41593. + eval x=\"$x\"
  41594. + exec_prefix="$acl_save_exec_prefix"
  41595. + prefix="$acl_save_prefix"
  41596. case "$x" in
  41597. -L*)
  41598. @@ -29835,10 +15701,10 @@
  41599. done
  41600. fi
  41601. if test "X$found_dir" != "X"; then
  41602. - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  41603. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  41604. if test "X$found_so" != "X"; then
  41605. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  41606. - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  41607. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  41608. else
  41609. haveit=
  41610. for x in $ltrpathdirs; do
  41611. @@ -29847,439 +15713,145 @@
  41612. break
  41613. fi
  41614. done
  41615. - if test -z "$haveit"; then
  41616. - ltrpathdirs="$ltrpathdirs $found_dir"
  41617. - fi
  41618. - if test "$acl_hardcode_direct" = yes; then
  41619. - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  41620. - else
  41621. - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  41622. - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  41623. - haveit=
  41624. - for x in $rpathdirs; do
  41625. - if test "X$x" = "X$found_dir"; then
  41626. - haveit=yes
  41627. - break
  41628. - fi
  41629. - done
  41630. - if test -z "$haveit"; then
  41631. - rpathdirs="$rpathdirs $found_dir"
  41632. - fi
  41633. - else
  41634. - haveit=
  41635. - for x in $LDFLAGS $LIBINTL; do
  41636. -
  41637. - acl_save_prefix="$prefix"
  41638. - prefix="$acl_final_prefix"
  41639. - acl_save_exec_prefix="$exec_prefix"
  41640. - exec_prefix="$acl_final_exec_prefix"
  41641. - eval x=\"$x\"
  41642. - exec_prefix="$acl_save_exec_prefix"
  41643. - prefix="$acl_save_prefix"
  41644. -
  41645. - if test "X$x" = "X-L$found_dir"; then
  41646. - haveit=yes
  41647. - break
  41648. - fi
  41649. - done
  41650. - if test -z "$haveit"; then
  41651. - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  41652. - fi
  41653. - if test "$acl_hardcode_minus_L" != no; then
  41654. - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  41655. - else
  41656. - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  41657. - fi
  41658. - fi
  41659. - fi
  41660. - fi
  41661. - else
  41662. - if test "X$found_a" != "X"; then
  41663. - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  41664. - else
  41665. - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  41666. - fi
  41667. - fi
  41668. - additional_includedir=
  41669. - case "$found_dir" in
  41670. - */$acl_libdirstem | */$acl_libdirstem/)
  41671. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  41672. - LIBINTL_PREFIX="$basedir"
  41673. - additional_includedir="$basedir/include"
  41674. - ;;
  41675. - esac
  41676. - if test "X$additional_includedir" != "X"; then
  41677. - if test "X$additional_includedir" != "X/usr/include"; then
  41678. - haveit=
  41679. - if test "X$additional_includedir" = "X/usr/local/include"; then
  41680. - if test -n "$GCC"; then
  41681. - case $host_os in
  41682. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  41683. - esac
  41684. - fi
  41685. - fi
  41686. - if test -z "$haveit"; then
  41687. - for x in $CPPFLAGS $INCINTL; do
  41688. -
  41689. - acl_save_prefix="$prefix"
  41690. - prefix="$acl_final_prefix"
  41691. - acl_save_exec_prefix="$exec_prefix"
  41692. - exec_prefix="$acl_final_exec_prefix"
  41693. - eval x=\"$x\"
  41694. - exec_prefix="$acl_save_exec_prefix"
  41695. - prefix="$acl_save_prefix"
  41696. -
  41697. - if test "X$x" = "X-I$additional_includedir"; then
  41698. - haveit=yes
  41699. - break
  41700. - fi
  41701. - done
  41702. - if test -z "$haveit"; then
  41703. - if test -d "$additional_includedir"; then
  41704. - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  41705. - fi
  41706. - fi
  41707. - fi
  41708. - fi
  41709. - fi
  41710. - if test -n "$found_la"; then
  41711. - save_libdir="$libdir"
  41712. - case "$found_la" in
  41713. - */* | *\\*) . "$found_la" ;;
  41714. - *) . "./$found_la" ;;
  41715. - esac
  41716. - libdir="$save_libdir"
  41717. - for dep in $dependency_libs; do
  41718. - case "$dep" in
  41719. - -L*)
  41720. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  41721. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  41722. - haveit=
  41723. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  41724. - if test -n "$GCC"; then
  41725. - case $host_os in
  41726. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  41727. - esac
  41728. - fi
  41729. - fi
  41730. - if test -z "$haveit"; then
  41731. - haveit=
  41732. - for x in $LDFLAGS $LIBINTL; do
  41733. -
  41734. - acl_save_prefix="$prefix"
  41735. - prefix="$acl_final_prefix"
  41736. - acl_save_exec_prefix="$exec_prefix"
  41737. - exec_prefix="$acl_final_exec_prefix"
  41738. - eval x=\"$x\"
  41739. - exec_prefix="$acl_save_exec_prefix"
  41740. - prefix="$acl_save_prefix"
  41741. -
  41742. - if test "X$x" = "X-L$additional_libdir"; then
  41743. - haveit=yes
  41744. - break
  41745. - fi
  41746. - done
  41747. - if test -z "$haveit"; then
  41748. - if test -d "$additional_libdir"; then
  41749. - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  41750. - fi
  41751. - fi
  41752. - haveit=
  41753. - for x in $LDFLAGS $LTLIBINTL; do
  41754. -
  41755. - acl_save_prefix="$prefix"
  41756. - prefix="$acl_final_prefix"
  41757. - acl_save_exec_prefix="$exec_prefix"
  41758. - exec_prefix="$acl_final_exec_prefix"
  41759. - eval x=\"$x\"
  41760. - exec_prefix="$acl_save_exec_prefix"
  41761. - prefix="$acl_save_prefix"
  41762. -
  41763. - if test "X$x" = "X-L$additional_libdir"; then
  41764. - haveit=yes
  41765. - break
  41766. - fi
  41767. - done
  41768. - if test -z "$haveit"; then
  41769. - if test -d "$additional_libdir"; then
  41770. - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  41771. - fi
  41772. - fi
  41773. - fi
  41774. - fi
  41775. - ;;
  41776. - -R*)
  41777. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  41778. - if test "$enable_rpath" != no; then
  41779. - haveit=
  41780. - for x in $rpathdirs; do
  41781. - if test "X$x" = "X$dir"; then
  41782. - haveit=yes
  41783. - break
  41784. - fi
  41785. - done
  41786. - if test -z "$haveit"; then
  41787. - rpathdirs="$rpathdirs $dir"
  41788. - fi
  41789. - haveit=
  41790. - for x in $ltrpathdirs; do
  41791. - if test "X$x" = "X$dir"; then
  41792. - haveit=yes
  41793. - break
  41794. - fi
  41795. - done
  41796. - if test -z "$haveit"; then
  41797. - ltrpathdirs="$ltrpathdirs $dir"
  41798. + if test -z "$haveit"; then
  41799. + ltrpathdirs="$ltrpathdirs $found_dir"
  41800. + fi
  41801. + if test "$acl_hardcode_direct" = yes; then
  41802. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  41803. + else
  41804. + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  41805. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  41806. + haveit=
  41807. + for x in $rpathdirs; do
  41808. + if test "X$x" = "X$found_dir"; then
  41809. + haveit=yes
  41810. + break
  41811. fi
  41812. + done
  41813. + if test -z "$haveit"; then
  41814. + rpathdirs="$rpathdirs $found_dir"
  41815. fi
  41816. - ;;
  41817. - -l*)
  41818. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  41819. - ;;
  41820. - *.la)
  41821. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  41822. - ;;
  41823. - *)
  41824. - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  41825. - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  41826. - ;;
  41827. - esac
  41828. - done
  41829. - fi
  41830. - else
  41831. - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  41832. - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  41833. - fi
  41834. - fi
  41835. - fi
  41836. - done
  41837. - done
  41838. - if test "X$rpathdirs" != "X"; then
  41839. - if test -n "$acl_hardcode_libdir_separator"; then
  41840. - alldirs=
  41841. - for found_dir in $rpathdirs; do
  41842. - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  41843. - done
  41844. - acl_save_libdir="$libdir"
  41845. - libdir="$alldirs"
  41846. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  41847. - libdir="$acl_save_libdir"
  41848. - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  41849. - else
  41850. - for found_dir in $rpathdirs; do
  41851. - acl_save_libdir="$libdir"
  41852. - libdir="$found_dir"
  41853. - eval flag=\"$acl_hardcode_libdir_flag_spec\"
  41854. - libdir="$acl_save_libdir"
  41855. - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  41856. - done
  41857. - fi
  41858. - fi
  41859. - if test "X$ltrpathdirs" != "X"; then
  41860. - for found_dir in $ltrpathdirs; do
  41861. - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  41862. - done
  41863. - fi
  41864. -
  41865. - { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  41866. -$as_echo_n "checking for GNU gettext in libintl... " >&6; }
  41867. -if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  41868. - $as_echo_n "(cached) " >&6
  41869. -else
  41870. - gt_save_CPPFLAGS="$CPPFLAGS"
  41871. - CPPFLAGS="$CPPFLAGS $INCINTL"
  41872. - gt_save_LIBS="$LIBS"
  41873. - LIBS="$LIBS $LIBINTL"
  41874. - cat >conftest.$ac_ext <<_ACEOF
  41875. -/* confdefs.h. */
  41876. -_ACEOF
  41877. -cat confdefs.h >>conftest.$ac_ext
  41878. -cat >>conftest.$ac_ext <<_ACEOF
  41879. -/* end confdefs.h. */
  41880. -#include <libintl.h>
  41881. -$gt_revision_test_code
  41882. -extern int _nl_msg_cat_cntr;
  41883. -extern
  41884. -#ifdef __cplusplus
  41885. -"C"
  41886. -#endif
  41887. -const char *_nl_expand_alias (const char *);
  41888. -int
  41889. -main ()
  41890. -{
  41891. -bindtextdomain ("", "");
  41892. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  41893. - ;
  41894. - return 0;
  41895. -}
  41896. -_ACEOF
  41897. -rm -f conftest.$ac_objext conftest$ac_exeext
  41898. -if { (ac_try="$ac_link"
  41899. -case "(($ac_try" in
  41900. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41901. - *) ac_try_echo=$ac_try;;
  41902. -esac
  41903. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41904. -$as_echo "$ac_try_echo") >&5
  41905. - (eval "$ac_link") 2>conftest.er1
  41906. - ac_status=$?
  41907. - grep -v '^ *+' conftest.er1 >conftest.err
  41908. - rm -f conftest.er1
  41909. - cat conftest.err >&5
  41910. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41911. - (exit $ac_status); } && {
  41912. - test -z "$ac_c_werror_flag" ||
  41913. - test ! -s conftest.err
  41914. - } && test -s conftest$ac_exeext && {
  41915. - test "$cross_compiling" = yes ||
  41916. - $as_test_x conftest$ac_exeext
  41917. - }; then
  41918. - eval "$gt_func_gnugettext_libintl=yes"
  41919. -else
  41920. - $as_echo "$as_me: failed program was:" >&5
  41921. -sed 's/^/| /' conftest.$ac_ext >&5
  41922. -
  41923. - eval "$gt_func_gnugettext_libintl=no"
  41924. -fi
  41925. -
  41926. -rm -rf conftest.dSYM
  41927. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41928. - conftest$ac_exeext conftest.$ac_ext
  41929. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  41930. - LIBS="$LIBS $LIBICONV"
  41931. - cat >conftest.$ac_ext <<_ACEOF
  41932. -/* confdefs.h. */
  41933. -_ACEOF
  41934. -cat confdefs.h >>conftest.$ac_ext
  41935. -cat >>conftest.$ac_ext <<_ACEOF
  41936. -/* end confdefs.h. */
  41937. -#include <libintl.h>
  41938. -$gt_revision_test_code
  41939. -extern int _nl_msg_cat_cntr;
  41940. -extern
  41941. -#ifdef __cplusplus
  41942. -"C"
  41943. -#endif
  41944. -const char *_nl_expand_alias (const char *);
  41945. -int
  41946. -main ()
  41947. -{
  41948. -bindtextdomain ("", "");
  41949. -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  41950. - ;
  41951. - return 0;
  41952. -}
  41953. -_ACEOF
  41954. -rm -f conftest.$ac_objext conftest$ac_exeext
  41955. -if { (ac_try="$ac_link"
  41956. -case "(($ac_try" in
  41957. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41958. - *) ac_try_echo=$ac_try;;
  41959. -esac
  41960. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41961. -$as_echo "$ac_try_echo") >&5
  41962. - (eval "$ac_link") 2>conftest.er1
  41963. - ac_status=$?
  41964. - grep -v '^ *+' conftest.er1 >conftest.err
  41965. - rm -f conftest.er1
  41966. - cat conftest.err >&5
  41967. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41968. - (exit $ac_status); } && {
  41969. - test -z "$ac_c_werror_flag" ||
  41970. - test ! -s conftest.err
  41971. - } && test -s conftest$ac_exeext && {
  41972. - test "$cross_compiling" = yes ||
  41973. - $as_test_x conftest$ac_exeext
  41974. - }; then
  41975. - LIBINTL="$LIBINTL $LIBICONV"
  41976. - LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  41977. - eval "$gt_func_gnugettext_libintl=yes"
  41978. -
  41979. -else
  41980. - $as_echo "$as_me: failed program was:" >&5
  41981. -sed 's/^/| /' conftest.$ac_ext >&5
  41982. -
  41983. + else
  41984. + haveit=
  41985. + for x in $LDFLAGS $LIBICONV; do
  41986. -fi
  41987. + acl_save_prefix="$prefix"
  41988. + prefix="$acl_final_prefix"
  41989. + acl_save_exec_prefix="$exec_prefix"
  41990. + exec_prefix="$acl_final_exec_prefix"
  41991. + eval x=\"$x\"
  41992. + exec_prefix="$acl_save_exec_prefix"
  41993. + prefix="$acl_save_prefix"
  41994. -rm -rf conftest.dSYM
  41995. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41996. - conftest$ac_exeext conftest.$ac_ext
  41997. + if test "X$x" = "X-L$found_dir"; then
  41998. + haveit=yes
  41999. + break
  42000. + fi
  42001. + done
  42002. + if test -z "$haveit"; then
  42003. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  42004. + fi
  42005. + if test "$acl_hardcode_minus_L" != no; then
  42006. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  42007. + else
  42008. + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  42009. + fi
  42010. + fi
  42011. + fi
  42012. + fi
  42013. + else
  42014. + if test "X$found_a" != "X"; then
  42015. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  42016. + else
  42017. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  42018. + fi
  42019. fi
  42020. - CPPFLAGS="$gt_save_CPPFLAGS"
  42021. - LIBS="$gt_save_LIBS"
  42022. -fi
  42023. -ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  42024. - $as_echo "$as_val"'`
  42025. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42026. -$as_echo "$ac_res" >&6; }
  42027. - fi
  42028. -
  42029. - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  42030. - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  42031. - && test "$PACKAGE" != gettext-runtime \
  42032. - && test "$PACKAGE" != gettext-tools; }; then
  42033. - gt_use_preinstalled_gnugettext=yes
  42034. - else
  42035. - LIBINTL=
  42036. - LTLIBINTL=
  42037. - INCINTL=
  42038. - fi
  42039. -
  42040. -
  42041. -
  42042. - if test -n "$INTL_MACOSX_LIBS"; then
  42043. - if test "$gt_use_preinstalled_gnugettext" = "yes" \
  42044. - || test "$nls_cv_use_gnu_gettext" = "yes"; then
  42045. - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  42046. - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  42047. - fi
  42048. - fi
  42049. -
  42050. - if test "$gt_use_preinstalled_gnugettext" = "yes" \
  42051. - || test "$nls_cv_use_gnu_gettext" = "yes"; then
  42052. -
  42053. -cat >>confdefs.h <<\_ACEOF
  42054. -#define ENABLE_NLS 1
  42055. -_ACEOF
  42056. -
  42057. - else
  42058. - USE_NLS=no
  42059. - fi
  42060. - fi
  42061. + additional_includedir=
  42062. + case "$found_dir" in
  42063. + */$acl_libdirstem | */$acl_libdirstem/)
  42064. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  42065. + LIBICONV_PREFIX="$basedir"
  42066. + additional_includedir="$basedir/include"
  42067. + ;;
  42068. + esac
  42069. + if test "X$additional_includedir" != "X"; then
  42070. + if test "X$additional_includedir" != "X/usr/include"; then
  42071. + haveit=
  42072. + if test "X$additional_includedir" = "X/usr/local/include"; then
  42073. + if test -n "$GCC"; then
  42074. + case $host_os in
  42075. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  42076. + esac
  42077. + fi
  42078. + fi
  42079. + if test -z "$haveit"; then
  42080. + for x in $CPPFLAGS $INCICONV; do
  42081. - { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  42082. -$as_echo_n "checking whether to use NLS... " >&6; }
  42083. - { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  42084. -$as_echo "$USE_NLS" >&6; }
  42085. - if test "$USE_NLS" = "yes"; then
  42086. - { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  42087. -$as_echo_n "checking where the gettext function comes from... " >&6; }
  42088. - if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  42089. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  42090. - gt_source="external libintl"
  42091. - else
  42092. - gt_source="libc"
  42093. - fi
  42094. - else
  42095. - gt_source="included intl directory"
  42096. - fi
  42097. - { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  42098. -$as_echo "$gt_source" >&6; }
  42099. - fi
  42100. + acl_save_prefix="$prefix"
  42101. + prefix="$acl_final_prefix"
  42102. + acl_save_exec_prefix="$exec_prefix"
  42103. + exec_prefix="$acl_final_exec_prefix"
  42104. + eval x=\"$x\"
  42105. + exec_prefix="$acl_save_exec_prefix"
  42106. + prefix="$acl_save_prefix"
  42107. - if test "$USE_NLS" = "yes"; then
  42108. + if test "X$x" = "X-I$additional_includedir"; then
  42109. + haveit=yes
  42110. + break
  42111. + fi
  42112. + done
  42113. + if test -z "$haveit"; then
  42114. + if test -d "$additional_includedir"; then
  42115. + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  42116. + fi
  42117. + fi
  42118. + fi
  42119. + fi
  42120. + fi
  42121. + if test -n "$found_la"; then
  42122. + save_libdir="$libdir"
  42123. + case "$found_la" in
  42124. + */* | *\\*) . "$found_la" ;;
  42125. + *) . "./$found_la" ;;
  42126. + esac
  42127. + libdir="$save_libdir"
  42128. + for dep in $dependency_libs; do
  42129. + case "$dep" in
  42130. + -L*)
  42131. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  42132. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  42133. + haveit=
  42134. + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  42135. + if test -n "$GCC"; then
  42136. + case $host_os in
  42137. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  42138. + esac
  42139. + fi
  42140. + fi
  42141. + if test -z "$haveit"; then
  42142. + haveit=
  42143. + for x in $LDFLAGS $LIBICONV; do
  42144. - if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  42145. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  42146. - { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  42147. -$as_echo_n "checking how to link with libintl... " >&6; }
  42148. - { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  42149. -$as_echo "$LIBINTL" >&6; }
  42150. + acl_save_prefix="$prefix"
  42151. + prefix="$acl_final_prefix"
  42152. + acl_save_exec_prefix="$exec_prefix"
  42153. + exec_prefix="$acl_final_exec_prefix"
  42154. + eval x=\"$x\"
  42155. + exec_prefix="$acl_save_exec_prefix"
  42156. + prefix="$acl_save_prefix"
  42157. - for element in $INCINTL; do
  42158. - haveit=
  42159. - for x in $CPPFLAGS; do
  42160. + if test "X$x" = "X-L$additional_libdir"; then
  42161. + haveit=yes
  42162. + break
  42163. + fi
  42164. + done
  42165. + if test -z "$haveit"; then
  42166. + if test -d "$additional_libdir"; then
  42167. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  42168. + fi
  42169. + fi
  42170. + haveit=
  42171. + for x in $LDFLAGS $LTLIBICONV; do
  42172. acl_save_prefix="$prefix"
  42173. prefix="$acl_final_prefix"
  42174. @@ -30289,2862 +15861,2110 @@
  42175. exec_prefix="$acl_save_exec_prefix"
  42176. prefix="$acl_save_prefix"
  42177. - if test "X$x" = "X$element"; then
  42178. - haveit=yes
  42179. - break
  42180. + if test "X$x" = "X-L$additional_libdir"; then
  42181. + haveit=yes
  42182. + break
  42183. + fi
  42184. + done
  42185. + if test -z "$haveit"; then
  42186. + if test -d "$additional_libdir"; then
  42187. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  42188. + fi
  42189. + fi
  42190. + fi
  42191. + fi
  42192. + ;;
  42193. + -R*)
  42194. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  42195. + if test "$enable_rpath" != no; then
  42196. + haveit=
  42197. + for x in $rpathdirs; do
  42198. + if test "X$x" = "X$dir"; then
  42199. + haveit=yes
  42200. + break
  42201. + fi
  42202. + done
  42203. + if test -z "$haveit"; then
  42204. + rpathdirs="$rpathdirs $dir"
  42205. + fi
  42206. + haveit=
  42207. + for x in $ltrpathdirs; do
  42208. + if test "X$x" = "X$dir"; then
  42209. + haveit=yes
  42210. + break
  42211. + fi
  42212. + done
  42213. + if test -z "$haveit"; then
  42214. + ltrpathdirs="$ltrpathdirs $dir"
  42215. + fi
  42216. + fi
  42217. + ;;
  42218. + -l*)
  42219. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  42220. + ;;
  42221. + *.la)
  42222. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  42223. + ;;
  42224. + *)
  42225. + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  42226. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  42227. + ;;
  42228. + esac
  42229. + done
  42230. + fi
  42231. + else
  42232. + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  42233. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  42234. + fi
  42235. + fi
  42236. fi
  42237. done
  42238. - if test -z "$haveit"; then
  42239. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  42240. - fi
  42241. done
  42242. + if test "X$rpathdirs" != "X"; then
  42243. + if test -n "$acl_hardcode_libdir_separator"; then
  42244. + alldirs=
  42245. + for found_dir in $rpathdirs; do
  42246. + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  42247. + done
  42248. + acl_save_libdir="$libdir"
  42249. + libdir="$alldirs"
  42250. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  42251. + libdir="$acl_save_libdir"
  42252. + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  42253. + else
  42254. + for found_dir in $rpathdirs; do
  42255. + acl_save_libdir="$libdir"
  42256. + libdir="$found_dir"
  42257. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  42258. + libdir="$acl_save_libdir"
  42259. + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  42260. + done
  42261. + fi
  42262. + fi
  42263. + if test "X$ltrpathdirs" != "X"; then
  42264. + for found_dir in $ltrpathdirs; do
  42265. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  42266. + done
  42267. + fi
  42268. - fi
  42269. -
  42270. -
  42271. -cat >>confdefs.h <<\_ACEOF
  42272. -#define HAVE_GETTEXT 1
  42273. -_ACEOF
  42274. -
  42275. -
  42276. -cat >>confdefs.h <<\_ACEOF
  42277. -#define HAVE_DCGETTEXT 1
  42278. -_ACEOF
  42279. -
  42280. - fi
  42281. -
  42282. - POSUB=po
  42283. - fi
  42284. -
  42285. -
  42286. -
  42287. - INTLLIBS="$LIBINTL"
  42288. -
  42289. -
  42290. -
  42291. -
  42292. -
  42293. -
  42294. -
  42295. -### Some systems don't declare some functions. On such systems, we
  42296. -### need to at least provide our own K&R-style declarations.
  42297. -
  42298. -### GUILE_FUNC_DECLARED(function, headerfile)
  42299. -
  42300. -### Check for a declaration of FUNCTION in HEADERFILE; if it is
  42301. -### not there, #define MISSING_FUNCTION_DECL.
  42302. -
  42303. -
  42304. -
  42305. - { $as_echo "$as_me:$LINENO: checking for sleep declaration" >&5
  42306. -$as_echo_n "checking for sleep declaration... " >&6; }
  42307. -if test "${guile_cv_func_sleep_declared+set}" = set; then
  42308. - $as_echo_n "(cached) " >&6
  42309. -else
  42310. - cat >conftest.$ac_ext <<_ACEOF
  42311. -/* confdefs.h. */
  42312. -_ACEOF
  42313. -cat confdefs.h >>conftest.$ac_ext
  42314. -cat >>conftest.$ac_ext <<_ACEOF
  42315. -/* end confdefs.h. */
  42316. -#include <unistd.h>
  42317. -
  42318. -_ACEOF
  42319. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42320. - $EGREP "sleep" >/dev/null 2>&1; then
  42321. - guile_cv_func_sleep_declared=yes
  42322. -else
  42323. - guile_cv_func_sleep_declared=no
  42324. -fi
  42325. -rm -f conftest*
  42326. -
  42327. -fi
  42328. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_func_sleep_declared" >&5
  42329. -$as_echo "$guile_cv_func_sleep_declared" >&6; }
  42330. - if test x$guile_cv_func_sleep_declared = xno; then
  42331. -
  42332. -cat >>confdefs.h <<\_ACEOF
  42333. -#define MISSING_SLEEP_DECL 1
  42334. -_ACEOF
  42335. -
  42336. - fi
  42337. -
  42338. -
  42339. - { $as_echo "$as_me:$LINENO: checking for usleep declaration" >&5
  42340. -$as_echo_n "checking for usleep declaration... " >&6; }
  42341. -if test "${guile_cv_func_usleep_declared+set}" = set; then
  42342. - $as_echo_n "(cached) " >&6
  42343. -else
  42344. - cat >conftest.$ac_ext <<_ACEOF
  42345. -/* confdefs.h. */
  42346. -_ACEOF
  42347. -cat confdefs.h >>conftest.$ac_ext
  42348. -cat >>conftest.$ac_ext <<_ACEOF
  42349. -/* end confdefs.h. */
  42350. -#include <unistd.h>
  42351. -
  42352. -_ACEOF
  42353. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42354. - $EGREP "usleep" >/dev/null 2>&1; then
  42355. - guile_cv_func_usleep_declared=yes
  42356. -else
  42357. - guile_cv_func_usleep_declared=no
  42358. -fi
  42359. -rm -f conftest*
  42360. -
  42361. -fi
  42362. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_func_usleep_declared" >&5
  42363. -$as_echo "$guile_cv_func_usleep_declared" >&6; }
  42364. - if test x$guile_cv_func_usleep_declared = xno; then
  42365. -
  42366. -cat >>confdefs.h <<\_ACEOF
  42367. -#define MISSING_USLEEP_DECL 1
  42368. -_ACEOF
  42369. -
  42370. - fi
  42371. -
  42372. -
  42373. -{ $as_echo "$as_me:$LINENO: checking whether strptime is declared" >&5
  42374. -$as_echo_n "checking whether strptime is declared... " >&6; }
  42375. -if test "${ac_cv_have_decl_strptime+set}" = set; then
  42376. - $as_echo_n "(cached) " >&6
  42377. -else
  42378. - cat >conftest.$ac_ext <<_ACEOF
  42379. -/* confdefs.h. */
  42380. -_ACEOF
  42381. -cat confdefs.h >>conftest.$ac_ext
  42382. -cat >>conftest.$ac_ext <<_ACEOF
  42383. -/* end confdefs.h. */
  42384. -#define _GNU_SOURCE /* ask glibc to give strptime prototype */
  42385. -#include <time.h>
  42386. -
  42387. -int
  42388. -main ()
  42389. -{
  42390. -#ifndef strptime
  42391. - (void) strptime;
  42392. -#endif
  42393. -
  42394. - ;
  42395. - return 0;
  42396. -}
  42397. -_ACEOF
  42398. -rm -f conftest.$ac_objext
  42399. -if { (ac_try="$ac_compile"
  42400. -case "(($ac_try" in
  42401. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42402. - *) ac_try_echo=$ac_try;;
  42403. -esac
  42404. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42405. -$as_echo "$ac_try_echo") >&5
  42406. - (eval "$ac_compile") 2>conftest.er1
  42407. - ac_status=$?
  42408. - grep -v '^ *+' conftest.er1 >conftest.err
  42409. - rm -f conftest.er1
  42410. - cat conftest.err >&5
  42411. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42412. - (exit $ac_status); } && {
  42413. - test -z "$ac_c_werror_flag" ||
  42414. - test ! -s conftest.err
  42415. - } && test -s conftest.$ac_objext; then
  42416. - ac_cv_have_decl_strptime=yes
  42417. -else
  42418. - $as_echo "$as_me: failed program was:" >&5
  42419. -sed 's/^/| /' conftest.$ac_ext >&5
  42420. -
  42421. - ac_cv_have_decl_strptime=no
  42422. -fi
  42423. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42424. -fi
  42425. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strptime" >&5
  42426. -$as_echo "$ac_cv_have_decl_strptime" >&6; }
  42427. -if test "x$ac_cv_have_decl_strptime" = x""yes; then
  42428. -cat >>confdefs.h <<_ACEOF
  42429. -#define HAVE_DECL_STRPTIME 1
  42430. -_ACEOF
  42431. -else
  42432. - cat >>confdefs.h <<_ACEOF
  42433. -#define HAVE_DECL_STRPTIME 0
  42434. -_ACEOF
  42435. -fi
  42436. -### On some systems usleep has no return value. If it does have one,
  42437. -### we'd like to return it; otherwise, we'll fake it.
  42438. -{ $as_echo "$as_me:$LINENO: checking return type of usleep" >&5
  42439. -$as_echo_n "checking return type of usleep... " >&6; }
  42440. -if test "${guile_cv_func_usleep_return_type+set}" = set; then
  42441. - $as_echo_n "(cached) " >&6
  42442. -else
  42443. - cat >conftest.$ac_ext <<_ACEOF
  42444. -/* confdefs.h. */
  42445. -_ACEOF
  42446. -cat confdefs.h >>conftest.$ac_ext
  42447. -cat >>conftest.$ac_ext <<_ACEOF
  42448. -/* end confdefs.h. */
  42449. -#include <unistd.h>
  42450. -_ACEOF
  42451. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42452. - $EGREP "void[ ]+usleep" >/dev/null 2>&1; then
  42453. - guile_cv_func_usleep_return_type=void
  42454. -else
  42455. - guile_cv_func_usleep_return_type=int
  42456. -fi
  42457. -rm -f conftest*
  42458. -fi
  42459. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_func_usleep_return_type" >&5
  42460. -$as_echo "$guile_cv_func_usleep_return_type" >&6; }
  42461. -case "$guile_cv_func_usleep_return_type" in
  42462. - "void" )
  42463. -cat >>confdefs.h <<\_ACEOF
  42464. -#define USLEEP_RETURNS_VOID 1
  42465. -_ACEOF
  42466. - ;;
  42467. -esac
  42468. -if test "${ac_cv_header_sys_un_h+set}" = set; then
  42469. - { $as_echo "$as_me:$LINENO: checking for sys/un.h" >&5
  42470. -$as_echo_n "checking for sys/un.h... " >&6; }
  42471. -if test "${ac_cv_header_sys_un_h+set}" = set; then
  42472. - $as_echo_n "(cached) " >&6
  42473. -fi
  42474. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
  42475. -$as_echo "$ac_cv_header_sys_un_h" >&6; }
  42476. -else
  42477. - # Is the header compilable?
  42478. -{ $as_echo "$as_me:$LINENO: checking sys/un.h usability" >&5
  42479. -$as_echo_n "checking sys/un.h usability... " >&6; }
  42480. -cat >conftest.$ac_ext <<_ACEOF
  42481. -/* confdefs.h. */
  42482. -_ACEOF
  42483. -cat confdefs.h >>conftest.$ac_ext
  42484. -cat >>conftest.$ac_ext <<_ACEOF
  42485. -/* end confdefs.h. */
  42486. -$ac_includes_default
  42487. -#include <sys/un.h>
  42488. -_ACEOF
  42489. -rm -f conftest.$ac_objext
  42490. -if { (ac_try="$ac_compile"
  42491. -case "(($ac_try" in
  42492. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42493. - *) ac_try_echo=$ac_try;;
  42494. -esac
  42495. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42496. -$as_echo "$ac_try_echo") >&5
  42497. - (eval "$ac_compile") 2>conftest.er1
  42498. - ac_status=$?
  42499. - grep -v '^ *+' conftest.er1 >conftest.err
  42500. - rm -f conftest.er1
  42501. - cat conftest.err >&5
  42502. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42503. - (exit $ac_status); } && {
  42504. - test -z "$ac_c_werror_flag" ||
  42505. - test ! -s conftest.err
  42506. - } && test -s conftest.$ac_objext; then
  42507. - ac_header_compiler=yes
  42508. -else
  42509. - $as_echo "$as_me: failed program was:" >&5
  42510. -sed 's/^/| /' conftest.$ac_ext >&5
  42511. - ac_header_compiler=no
  42512. -fi
  42513. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42514. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42515. -$as_echo "$ac_header_compiler" >&6; }
  42516. -# Is the header present?
  42517. -{ $as_echo "$as_me:$LINENO: checking sys/un.h presence" >&5
  42518. -$as_echo_n "checking sys/un.h presence... " >&6; }
  42519. -cat >conftest.$ac_ext <<_ACEOF
  42520. -/* confdefs.h. */
  42521. -_ACEOF
  42522. -cat confdefs.h >>conftest.$ac_ext
  42523. -cat >>conftest.$ac_ext <<_ACEOF
  42524. -/* end confdefs.h. */
  42525. -#include <sys/un.h>
  42526. -_ACEOF
  42527. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  42528. -case "(($ac_try" in
  42529. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42530. - *) ac_try_echo=$ac_try;;
  42531. -esac
  42532. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42533. -$as_echo "$ac_try_echo") >&5
  42534. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42535. - ac_status=$?
  42536. - grep -v '^ *+' conftest.er1 >conftest.err
  42537. - rm -f conftest.er1
  42538. - cat conftest.err >&5
  42539. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42540. - (exit $ac_status); } >/dev/null && {
  42541. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  42542. - test ! -s conftest.err
  42543. - }; then
  42544. - ac_header_preproc=yes
  42545. -else
  42546. - $as_echo "$as_me: failed program was:" >&5
  42547. -sed 's/^/| /' conftest.$ac_ext >&5
  42548. - ac_header_preproc=no
  42549. -fi
  42550. -rm -f conftest.err conftest.$ac_ext
  42551. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42552. -$as_echo "$ac_header_preproc" >&6; }
  42553. -# So? What about this header?
  42554. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  42555. - yes:no: )
  42556. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42557. -$as_echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42558. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
  42559. -$as_echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
  42560. - ac_header_preproc=yes
  42561. - ;;
  42562. - no:yes:* )
  42563. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
  42564. -$as_echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
  42565. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
  42566. -$as_echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
  42567. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
  42568. -$as_echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
  42569. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
  42570. -$as_echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42571. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
  42572. -$as_echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
  42573. - { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
  42574. -$as_echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
  42575. - ( cat <<\_ASBOX
  42576. -## -------------------------------- ##
  42577. -## Report this to bug-guile@gnu.org ##
  42578. -## -------------------------------- ##
  42579. -_ASBOX
  42580. - ) | sed "s/^/$as_me: WARNING: /" >&2
  42581. - ;;
  42582. -esac
  42583. -{ $as_echo "$as_me:$LINENO: checking for sys/un.h" >&5
  42584. -$as_echo_n "checking for sys/un.h... " >&6; }
  42585. -if test "${ac_cv_header_sys_un_h+set}" = set; then
  42586. - $as_echo_n "(cached) " >&6
  42587. -else
  42588. - ac_cv_header_sys_un_h=$ac_header_preproc
  42589. -fi
  42590. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
  42591. -$as_echo "$ac_cv_header_sys_un_h" >&6; }
  42592. -fi
  42593. -if test "x$ac_cv_header_sys_un_h" = x""yes; then
  42594. - have_sys_un_h=1
  42595. -fi
  42596. -if test -n "$have_sys_un_h" ; then
  42597. -cat >>confdefs.h <<\_ACEOF
  42598. -#define HAVE_UNIX_DOMAIN_SOCKETS 1
  42599. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  42600. +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  42601. +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  42602. + $as_echo_n "(cached) " >&6
  42603. +else
  42604. + gt_save_LIBS="$LIBS"
  42605. + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  42606. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42607. +/* end confdefs.h. */
  42608. +#include <CoreFoundation/CFPreferences.h>
  42609. +int
  42610. +main ()
  42611. +{
  42612. +CFPreferencesCopyAppValue(NULL, NULL)
  42613. + ;
  42614. + return 0;
  42615. +}
  42616. _ACEOF
  42617. -
  42618. +if ac_fn_c_try_link "$LINENO"; then :
  42619. + gt_cv_func_CFPreferencesCopyAppValue=yes
  42620. +else
  42621. + gt_cv_func_CFPreferencesCopyAppValue=no
  42622. fi
  42623. +rm -f core conftest.err conftest.$ac_objext \
  42624. + conftest$ac_exeext conftest.$ac_ext
  42625. + LIBS="$gt_save_LIBS"
  42626. +fi
  42627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  42628. +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  42629. + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  42630. +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  42631. -
  42632. -
  42633. -
  42634. -
  42635. -
  42636. -for ac_func in socketpair getgroups setgroups setpwent pause tzset
  42637. -do
  42638. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42639. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  42640. -$as_echo_n "checking for $ac_func... " >&6; }
  42641. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  42642. + fi
  42643. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  42644. +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  42645. +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  42646. $as_echo_n "(cached) " >&6
  42647. else
  42648. - cat >conftest.$ac_ext <<_ACEOF
  42649. -/* confdefs.h. */
  42650. -_ACEOF
  42651. -cat confdefs.h >>conftest.$ac_ext
  42652. -cat >>conftest.$ac_ext <<_ACEOF
  42653. + gt_save_LIBS="$LIBS"
  42654. + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  42655. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42656. /* end confdefs.h. */
  42657. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  42658. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42659. -#define $ac_func innocuous_$ac_func
  42660. -
  42661. -/* System header to define __stub macros and hopefully few prototypes,
  42662. - which can conflict with char $ac_func (); below.
  42663. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42664. - <limits.h> exists even on freestanding compilers. */
  42665. -
  42666. -#ifdef __STDC__
  42667. -# include <limits.h>
  42668. -#else
  42669. -# include <assert.h>
  42670. -#endif
  42671. -
  42672. -#undef $ac_func
  42673. -
  42674. -/* Override any GCC internal prototype to avoid an error.
  42675. - Use char because int might match the return type of a GCC
  42676. - builtin and then its argument prototype would still apply. */
  42677. -#ifdef __cplusplus
  42678. -extern "C"
  42679. -#endif
  42680. -char $ac_func ();
  42681. -/* The GNU C library defines this for functions which it implements
  42682. - to always fail with ENOSYS. Some functions are actually named
  42683. - something starting with __ and the normal name is an alias. */
  42684. -#if defined __stub_$ac_func || defined __stub___$ac_func
  42685. -choke me
  42686. -#endif
  42687. -
  42688. +#include <CoreFoundation/CFLocale.h>
  42689. int
  42690. main ()
  42691. {
  42692. -return $ac_func ();
  42693. +CFLocaleCopyCurrent();
  42694. ;
  42695. return 0;
  42696. }
  42697. _ACEOF
  42698. -rm -f conftest.$ac_objext conftest$ac_exeext
  42699. -if { (ac_try="$ac_link"
  42700. -case "(($ac_try" in
  42701. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42702. - *) ac_try_echo=$ac_try;;
  42703. -esac
  42704. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42705. -$as_echo "$ac_try_echo") >&5
  42706. - (eval "$ac_link") 2>conftest.er1
  42707. - ac_status=$?
  42708. - grep -v '^ *+' conftest.er1 >conftest.err
  42709. - rm -f conftest.er1
  42710. - cat conftest.err >&5
  42711. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42712. - (exit $ac_status); } && {
  42713. - test -z "$ac_c_werror_flag" ||
  42714. - test ! -s conftest.err
  42715. - } && test -s conftest$ac_exeext && {
  42716. - test "$cross_compiling" = yes ||
  42717. - $as_test_x conftest$ac_exeext
  42718. - }; then
  42719. - eval "$as_ac_var=yes"
  42720. +if ac_fn_c_try_link "$LINENO"; then :
  42721. + gt_cv_func_CFLocaleCopyCurrent=yes
  42722. else
  42723. - $as_echo "$as_me: failed program was:" >&5
  42724. -sed 's/^/| /' conftest.$ac_ext >&5
  42725. -
  42726. - eval "$as_ac_var=no"
  42727. -fi
  42728. -
  42729. -rm -rf conftest.dSYM
  42730. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42731. - conftest$ac_exeext conftest.$ac_ext
  42732. + gt_cv_func_CFLocaleCopyCurrent=no
  42733. fi
  42734. -ac_res=`eval 'as_val=${'$as_ac_var'}
  42735. - $as_echo "$as_val"'`
  42736. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42737. -$as_echo "$ac_res" >&6; }
  42738. -as_val=`eval 'as_val=${'$as_ac_var'}
  42739. - $as_echo "$as_val"'`
  42740. - if test "x$as_val" = x""yes; then
  42741. - cat >>confdefs.h <<_ACEOF
  42742. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42743. -_ACEOF
  42744. -
  42745. +rm -f core conftest.err conftest.$ac_objext \
  42746. + conftest$ac_exeext conftest.$ac_ext
  42747. + LIBS="$gt_save_LIBS"
  42748. fi
  42749. -done
  42750. -
  42751. -
  42752. -
  42753. -
  42754. -
  42755. -
  42756. -
  42757. -
  42758. -
  42759. -
  42760. -
  42761. -
  42762. -
  42763. -
  42764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  42765. +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  42766. + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  42767. +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  42768. + fi
  42769. + INTL_MACOSX_LIBS=
  42770. + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  42771. + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  42772. + fi
  42773. -for ac_func in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof hstrerror inet_pton inet_ntop
  42774. -do
  42775. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42776. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  42777. -$as_echo_n "checking for $ac_func... " >&6; }
  42778. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  42779. - $as_echo_n "(cached) " >&6
  42780. -else
  42781. - cat >conftest.$ac_ext <<_ACEOF
  42782. -/* confdefs.h. */
  42783. -_ACEOF
  42784. -cat confdefs.h >>conftest.$ac_ext
  42785. -cat >>conftest.$ac_ext <<_ACEOF
  42786. -/* end confdefs.h. */
  42787. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  42788. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42789. -#define $ac_func innocuous_$ac_func
  42790. + LIBINTL=
  42791. + LTLIBINTL=
  42792. + POSUB=
  42793. -/* System header to define __stub macros and hopefully few prototypes,
  42794. - which can conflict with char $ac_func (); below.
  42795. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42796. - <limits.h> exists even on freestanding compilers. */
  42797. + case " $gt_needs " in
  42798. + *" need-formatstring-macros "*) gt_api_version=3 ;;
  42799. + *" need-ngettext "*) gt_api_version=2 ;;
  42800. + *) gt_api_version=1 ;;
  42801. + esac
  42802. + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  42803. + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  42804. -#ifdef __STDC__
  42805. -# include <limits.h>
  42806. -#else
  42807. -# include <assert.h>
  42808. -#endif
  42809. + if test "$USE_NLS" = "yes"; then
  42810. + gt_use_preinstalled_gnugettext=no
  42811. -#undef $ac_func
  42812. -/* Override any GCC internal prototype to avoid an error.
  42813. - Use char because int might match the return type of a GCC
  42814. - builtin and then its argument prototype would still apply. */
  42815. -#ifdef __cplusplus
  42816. -extern "C"
  42817. -#endif
  42818. -char $ac_func ();
  42819. -/* The GNU C library defines this for functions which it implements
  42820. - to always fail with ENOSYS. Some functions are actually named
  42821. - something starting with __ and the normal name is an alias. */
  42822. -#if defined __stub_$ac_func || defined __stub___$ac_func
  42823. -choke me
  42824. + if test $gt_api_version -ge 3; then
  42825. + gt_revision_test_code='
  42826. +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  42827. +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  42828. #endif
  42829. +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  42830. +'
  42831. + else
  42832. + gt_revision_test_code=
  42833. + fi
  42834. + if test $gt_api_version -ge 2; then
  42835. + gt_expression_test_code=' + * ngettext ("", "", 0)'
  42836. + else
  42837. + gt_expression_test_code=
  42838. + fi
  42839. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  42840. +$as_echo_n "checking for GNU gettext in libc... " >&6; }
  42841. +if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  42842. + $as_echo_n "(cached) " >&6
  42843. +else
  42844. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42845. +/* end confdefs.h. */
  42846. +#include <libintl.h>
  42847. +$gt_revision_test_code
  42848. +extern int _nl_msg_cat_cntr;
  42849. +extern int *_nl_domain_bindings;
  42850. int
  42851. main ()
  42852. {
  42853. -return $ac_func ();
  42854. +bindtextdomain ("", "");
  42855. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  42856. ;
  42857. return 0;
  42858. }
  42859. _ACEOF
  42860. -rm -f conftest.$ac_objext conftest$ac_exeext
  42861. -if { (ac_try="$ac_link"
  42862. -case "(($ac_try" in
  42863. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42864. - *) ac_try_echo=$ac_try;;
  42865. -esac
  42866. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42867. -$as_echo "$ac_try_echo") >&5
  42868. - (eval "$ac_link") 2>conftest.er1
  42869. - ac_status=$?
  42870. - grep -v '^ *+' conftest.er1 >conftest.err
  42871. - rm -f conftest.er1
  42872. - cat conftest.err >&5
  42873. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42874. - (exit $ac_status); } && {
  42875. - test -z "$ac_c_werror_flag" ||
  42876. - test ! -s conftest.err
  42877. - } && test -s conftest$ac_exeext && {
  42878. - test "$cross_compiling" = yes ||
  42879. - $as_test_x conftest$ac_exeext
  42880. - }; then
  42881. - eval "$as_ac_var=yes"
  42882. +if ac_fn_c_try_link "$LINENO"; then :
  42883. + eval "$gt_func_gnugettext_libc=yes"
  42884. else
  42885. - $as_echo "$as_me: failed program was:" >&5
  42886. -sed 's/^/| /' conftest.$ac_ext >&5
  42887. -
  42888. - eval "$as_ac_var=no"
  42889. + eval "$gt_func_gnugettext_libc=no"
  42890. fi
  42891. -
  42892. -rm -rf conftest.dSYM
  42893. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42894. - conftest$ac_exeext conftest.$ac_ext
  42895. +rm -f core conftest.err conftest.$ac_objext \
  42896. + conftest$ac_exeext conftest.$ac_ext
  42897. fi
  42898. -ac_res=`eval 'as_val=${'$as_ac_var'}
  42899. - $as_echo "$as_val"'`
  42900. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42901. +eval ac_res=\$$gt_func_gnugettext_libc
  42902. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  42903. $as_echo "$ac_res" >&6; }
  42904. -as_val=`eval 'as_val=${'$as_ac_var'}
  42905. - $as_echo "$as_val"'`
  42906. - if test "x$as_val" = x""yes; then
  42907. - cat >>confdefs.h <<_ACEOF
  42908. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42909. -_ACEOF
  42910. -fi
  42911. -done
  42912. + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  42913. -# struct sockaddr field sin_len is only present on BSD systems.
  42914. -# On 4.4BSD apparently a #define SIN_LEN exists, but on other BSD systems
  42915. -# (eg. FreeBSD 4.9) it doesn't and we must use this configure check
  42916. -{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sin_len" >&5
  42917. -$as_echo_n "checking for struct sockaddr.sin_len... " >&6; }
  42918. -if test "${ac_cv_member_struct_sockaddr_sin_len+set}" = set; then
  42919. +
  42920. +
  42921. +
  42922. + am_save_CPPFLAGS="$CPPFLAGS"
  42923. +
  42924. + for element in $INCICONV; do
  42925. + haveit=
  42926. + for x in $CPPFLAGS; do
  42927. +
  42928. + acl_save_prefix="$prefix"
  42929. + prefix="$acl_final_prefix"
  42930. + acl_save_exec_prefix="$exec_prefix"
  42931. + exec_prefix="$acl_final_exec_prefix"
  42932. + eval x=\"$x\"
  42933. + exec_prefix="$acl_save_exec_prefix"
  42934. + prefix="$acl_save_prefix"
  42935. +
  42936. + if test "X$x" = "X$element"; then
  42937. + haveit=yes
  42938. + break
  42939. + fi
  42940. + done
  42941. + if test -z "$haveit"; then
  42942. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  42943. + fi
  42944. + done
  42945. +
  42946. +
  42947. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  42948. +$as_echo_n "checking for iconv... " >&6; }
  42949. +if test "${am_cv_func_iconv+set}" = set; then :
  42950. $as_echo_n "(cached) " >&6
  42951. else
  42952. - cat >conftest.$ac_ext <<_ACEOF
  42953. -/* confdefs.h. */
  42954. -_ACEOF
  42955. -cat confdefs.h >>conftest.$ac_ext
  42956. -cat >>conftest.$ac_ext <<_ACEOF
  42957. -/* end confdefs.h. */
  42958. -#ifdef HAVE_SYS_TYPES_H
  42959. -#include <sys/types.h>
  42960. -#endif
  42961. -#include <netinet/in.h>
  42962. + am_cv_func_iconv="no, consider installing GNU libiconv"
  42963. + am_cv_lib_iconv=no
  42964. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42965. +/* end confdefs.h. */
  42966. +#include <stdlib.h>
  42967. +#include <iconv.h>
  42968. int
  42969. main ()
  42970. {
  42971. -static struct sockaddr ac_aggr;
  42972. -if (ac_aggr.sin_len)
  42973. -return 0;
  42974. +iconv_t cd = iconv_open("","");
  42975. + iconv(cd,NULL,NULL,NULL,NULL);
  42976. + iconv_close(cd);
  42977. ;
  42978. return 0;
  42979. }
  42980. _ACEOF
  42981. -rm -f conftest.$ac_objext
  42982. -if { (ac_try="$ac_compile"
  42983. -case "(($ac_try" in
  42984. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42985. - *) ac_try_echo=$ac_try;;
  42986. -esac
  42987. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42988. -$as_echo "$ac_try_echo") >&5
  42989. - (eval "$ac_compile") 2>conftest.er1
  42990. - ac_status=$?
  42991. - grep -v '^ *+' conftest.er1 >conftest.err
  42992. - rm -f conftest.er1
  42993. - cat conftest.err >&5
  42994. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42995. - (exit $ac_status); } && {
  42996. - test -z "$ac_c_werror_flag" ||
  42997. - test ! -s conftest.err
  42998. - } && test -s conftest.$ac_objext; then
  42999. - ac_cv_member_struct_sockaddr_sin_len=yes
  43000. -else
  43001. - $as_echo "$as_me: failed program was:" >&5
  43002. -sed 's/^/| /' conftest.$ac_ext >&5
  43003. -
  43004. - cat >conftest.$ac_ext <<_ACEOF
  43005. -/* confdefs.h. */
  43006. -_ACEOF
  43007. -cat confdefs.h >>conftest.$ac_ext
  43008. -cat >>conftest.$ac_ext <<_ACEOF
  43009. +if ac_fn_c_try_link "$LINENO"; then :
  43010. + am_cv_func_iconv=yes
  43011. +fi
  43012. +rm -f core conftest.err conftest.$ac_objext \
  43013. + conftest$ac_exeext conftest.$ac_ext
  43014. + if test "$am_cv_func_iconv" != yes; then
  43015. + am_save_LIBS="$LIBS"
  43016. + LIBS="$LIBS $LIBICONV"
  43017. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43018. /* end confdefs.h. */
  43019. -#ifdef HAVE_SYS_TYPES_H
  43020. -#include <sys/types.h>
  43021. -#endif
  43022. -#include <netinet/in.h>
  43023. -
  43024. +#include <stdlib.h>
  43025. +#include <iconv.h>
  43026. int
  43027. main ()
  43028. {
  43029. -static struct sockaddr ac_aggr;
  43030. -if (sizeof ac_aggr.sin_len)
  43031. -return 0;
  43032. +iconv_t cd = iconv_open("","");
  43033. + iconv(cd,NULL,NULL,NULL,NULL);
  43034. + iconv_close(cd);
  43035. ;
  43036. return 0;
  43037. }
  43038. _ACEOF
  43039. -rm -f conftest.$ac_objext
  43040. -if { (ac_try="$ac_compile"
  43041. -case "(($ac_try" in
  43042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43043. - *) ac_try_echo=$ac_try;;
  43044. -esac
  43045. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43046. -$as_echo "$ac_try_echo") >&5
  43047. - (eval "$ac_compile") 2>conftest.er1
  43048. - ac_status=$?
  43049. - grep -v '^ *+' conftest.er1 >conftest.err
  43050. - rm -f conftest.er1
  43051. - cat conftest.err >&5
  43052. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43053. - (exit $ac_status); } && {
  43054. - test -z "$ac_c_werror_flag" ||
  43055. - test ! -s conftest.err
  43056. - } && test -s conftest.$ac_objext; then
  43057. - ac_cv_member_struct_sockaddr_sin_len=yes
  43058. -else
  43059. - $as_echo "$as_me: failed program was:" >&5
  43060. -sed 's/^/| /' conftest.$ac_ext >&5
  43061. -
  43062. - ac_cv_member_struct_sockaddr_sin_len=no
  43063. -fi
  43064. -
  43065. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43066. -fi
  43067. -
  43068. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43069. +if ac_fn_c_try_link "$LINENO"; then :
  43070. + am_cv_lib_iconv=yes
  43071. + am_cv_func_iconv=yes
  43072. fi
  43073. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sin_len" >&5
  43074. -$as_echo "$ac_cv_member_struct_sockaddr_sin_len" >&6; }
  43075. -if test "x$ac_cv_member_struct_sockaddr_sin_len" = x""yes; then
  43076. -
  43077. -cat >>confdefs.h <<_ACEOF
  43078. -#define HAVE_STRUCT_SOCKADDR_SIN_LEN 1
  43079. -_ACEOF
  43080. -
  43081. +rm -f core conftest.err conftest.$ac_objext \
  43082. + conftest$ac_exeext conftest.$ac_ext
  43083. + LIBS="$am_save_LIBS"
  43084. + fi
  43085. fi
  43086. -
  43087. -
  43088. -{ $as_echo "$as_me:$LINENO: checking for __libc_stack_end" >&5
  43089. -$as_echo_n "checking for __libc_stack_end... " >&6; }
  43090. -if test "${guile_cv_have_libc_stack_end+set}" = set; then
  43091. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  43092. +$as_echo "$am_cv_func_iconv" >&6; }
  43093. + if test "$am_cv_func_iconv" = yes; then
  43094. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  43095. +$as_echo_n "checking for working iconv... " >&6; }
  43096. +if test "${am_cv_func_iconv_works+set}" = set; then :
  43097. $as_echo_n "(cached) " >&6
  43098. else
  43099. - cat >conftest.$ac_ext <<_ACEOF
  43100. -/* confdefs.h. */
  43101. -_ACEOF
  43102. -cat confdefs.h >>conftest.$ac_ext
  43103. -cat >>conftest.$ac_ext <<_ACEOF
  43104. +
  43105. + am_save_LIBS="$LIBS"
  43106. + if test $am_cv_lib_iconv = yes; then
  43107. + LIBS="$LIBS $LIBICONV"
  43108. + fi
  43109. + if test "$cross_compiling" = yes; then :
  43110. + case "$host_os" in
  43111. + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  43112. + *) am_cv_func_iconv_works="guessing yes" ;;
  43113. + esac
  43114. +else
  43115. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43116. /* end confdefs.h. */
  43117. -#include <stdio.h>
  43118. -extern char *__libc_stack_end;
  43119. -int
  43120. -main ()
  43121. +
  43122. +#include <iconv.h>
  43123. +#include <string.h>
  43124. +int main ()
  43125. {
  43126. -printf("%p", (char*) __libc_stack_end);
  43127. - ;
  43128. + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  43129. + returns. */
  43130. + {
  43131. + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  43132. + if (cd_utf8_to_88591 != (iconv_t)(-1))
  43133. + {
  43134. + static const char input[] = "\342\202\254"; /* EURO SIGN */
  43135. + char buf[10];
  43136. + const char *inptr = input;
  43137. + size_t inbytesleft = strlen (input);
  43138. + char *outptr = buf;
  43139. + size_t outbytesleft = sizeof (buf);
  43140. + size_t res = iconv (cd_utf8_to_88591,
  43141. + (char **) &inptr, &inbytesleft,
  43142. + &outptr, &outbytesleft);
  43143. + if (res == 0)
  43144. + return 1;
  43145. + }
  43146. + }
  43147. +#if 0 /* This bug could be worked around by the caller. */
  43148. + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  43149. + {
  43150. + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  43151. + if (cd_88591_to_utf8 != (iconv_t)(-1))
  43152. + {
  43153. + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  43154. + char buf[50];
  43155. + const char *inptr = input;
  43156. + size_t inbytesleft = strlen (input);
  43157. + char *outptr = buf;
  43158. + size_t outbytesleft = sizeof (buf);
  43159. + size_t res = iconv (cd_88591_to_utf8,
  43160. + (char **) &inptr, &inbytesleft,
  43161. + &outptr, &outbytesleft);
  43162. + if ((int)res > 0)
  43163. + return 1;
  43164. + }
  43165. + }
  43166. +#endif
  43167. + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  43168. + provided. */
  43169. + if (/* Try standardized names. */
  43170. + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  43171. + /* Try IRIX, OSF/1 names. */
  43172. + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  43173. + /* Try AIX names. */
  43174. + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  43175. + /* Try HP-UX names. */
  43176. + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  43177. + return 1;
  43178. return 0;
  43179. }
  43180. _ACEOF
  43181. -rm -f conftest.$ac_objext conftest$ac_exeext
  43182. -if { (ac_try="$ac_link"
  43183. -case "(($ac_try" in
  43184. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43185. - *) ac_try_echo=$ac_try;;
  43186. -esac
  43187. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43188. -$as_echo "$ac_try_echo") >&5
  43189. - (eval "$ac_link") 2>conftest.er1
  43190. - ac_status=$?
  43191. - grep -v '^ *+' conftest.er1 >conftest.err
  43192. - rm -f conftest.er1
  43193. - cat conftest.err >&5
  43194. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43195. - (exit $ac_status); } && {
  43196. - test -z "$ac_c_werror_flag" ||
  43197. - test ! -s conftest.err
  43198. - } && test -s conftest$ac_exeext && {
  43199. - test "$cross_compiling" = yes ||
  43200. - $as_test_x conftest$ac_exeext
  43201. - }; then
  43202. - guile_cv_have_libc_stack_end=yes
  43203. +if ac_fn_c_try_run "$LINENO"; then :
  43204. + am_cv_func_iconv_works=yes
  43205. else
  43206. - $as_echo "$as_me: failed program was:" >&5
  43207. -sed 's/^/| /' conftest.$ac_ext >&5
  43208. -
  43209. - guile_cv_have_libc_stack_end=no
  43210. + am_cv_func_iconv_works=no
  43211. +fi
  43212. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  43213. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  43214. fi
  43215. -rm -rf conftest.dSYM
  43216. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43217. - conftest$ac_exeext conftest.$ac_ext
  43218. + LIBS="$am_save_LIBS"
  43219. +
  43220. fi
  43221. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  43222. +$as_echo "$am_cv_func_iconv_works" >&6; }
  43223. + case "$am_cv_func_iconv_works" in
  43224. + *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  43225. + *) am_func_iconv=yes ;;
  43226. + esac
  43227. + else
  43228. + am_func_iconv=no am_cv_lib_iconv=no
  43229. + fi
  43230. + if test "$am_func_iconv" = yes; then
  43231. +
  43232. +$as_echo "#define HAVE_ICONV 1" >>confdefs.h
  43233. +
  43234. + fi
  43235. + if test "$am_cv_lib_iconv" = yes; then
  43236. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  43237. +$as_echo_n "checking how to link with libiconv... " >&6; }
  43238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  43239. +$as_echo "$LIBICONV" >&6; }
  43240. + else
  43241. + CPPFLAGS="$am_save_CPPFLAGS"
  43242. + LIBICONV=
  43243. + LTLIBICONV=
  43244. + fi
  43245. +
  43246. +
  43247. +
  43248. +
  43249. +
  43250. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_have_libc_stack_end" >&5
  43251. -$as_echo "$guile_cv_have_libc_stack_end" >&6; }
  43252. -if test $guile_cv_have_libc_stack_end = yes; then
  43253. -cat >>confdefs.h <<\_ACEOF
  43254. -#define HAVE_LIBC_STACK_END 1
  43255. -_ACEOF
  43256. + use_additional=yes
  43257. -fi
  43258. + acl_save_prefix="$prefix"
  43259. + prefix="$acl_final_prefix"
  43260. + acl_save_exec_prefix="$exec_prefix"
  43261. + exec_prefix="$acl_final_exec_prefix"
  43262. + eval additional_includedir=\"$includedir\"
  43263. + eval additional_libdir=\"$libdir\"
  43264. -{ $as_echo "$as_me:$LINENO: checking whether netdb.h declares h_errno" >&5
  43265. -$as_echo_n "checking whether netdb.h declares h_errno... " >&6; }
  43266. -if test "${guile_cv_have_h_errno+set}" = set; then
  43267. - $as_echo_n "(cached) " >&6
  43268. -else
  43269. - cat >conftest.$ac_ext <<_ACEOF
  43270. -/* confdefs.h. */
  43271. -_ACEOF
  43272. -cat confdefs.h >>conftest.$ac_ext
  43273. -cat >>conftest.$ac_ext <<_ACEOF
  43274. -/* end confdefs.h. */
  43275. -#include <netdb.h>
  43276. -int
  43277. -main ()
  43278. -{
  43279. -int a = h_errno;
  43280. - ;
  43281. - return 0;
  43282. -}
  43283. -_ACEOF
  43284. -rm -f conftest.$ac_objext
  43285. -if { (ac_try="$ac_compile"
  43286. -case "(($ac_try" in
  43287. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43288. - *) ac_try_echo=$ac_try;;
  43289. -esac
  43290. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43291. -$as_echo "$ac_try_echo") >&5
  43292. - (eval "$ac_compile") 2>conftest.er1
  43293. - ac_status=$?
  43294. - grep -v '^ *+' conftest.er1 >conftest.err
  43295. - rm -f conftest.er1
  43296. - cat conftest.err >&5
  43297. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43298. - (exit $ac_status); } && {
  43299. - test -z "$ac_c_werror_flag" ||
  43300. - test ! -s conftest.err
  43301. - } && test -s conftest.$ac_objext; then
  43302. - guile_cv_have_h_errno=yes
  43303. -else
  43304. - $as_echo "$as_me: failed program was:" >&5
  43305. -sed 's/^/| /' conftest.$ac_ext >&5
  43306. + exec_prefix="$acl_save_exec_prefix"
  43307. + prefix="$acl_save_prefix"
  43308. - guile_cv_have_h_errno=no
  43309. -fi
  43310. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43311. -fi
  43312. +# Check whether --with-libintl-prefix was given.
  43313. +if test "${with_libintl_prefix+set}" = set; then :
  43314. + withval=$with_libintl_prefix;
  43315. + if test "X$withval" = "Xno"; then
  43316. + use_additional=no
  43317. + else
  43318. + if test "X$withval" = "X"; then
  43319. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_have_h_errno" >&5
  43320. -$as_echo "$guile_cv_have_h_errno" >&6; }
  43321. -if test $guile_cv_have_h_errno = yes; then
  43322. + acl_save_prefix="$prefix"
  43323. + prefix="$acl_final_prefix"
  43324. + acl_save_exec_prefix="$exec_prefix"
  43325. + exec_prefix="$acl_final_exec_prefix"
  43326. -cat >>confdefs.h <<\_ACEOF
  43327. -#define HAVE_H_ERRNO 1
  43328. -_ACEOF
  43329. + eval additional_includedir=\"$includedir\"
  43330. + eval additional_libdir=\"$libdir\"
  43331. -fi
  43332. + exec_prefix="$acl_save_exec_prefix"
  43333. + prefix="$acl_save_prefix"
  43334. -{ $as_echo "$as_me:$LINENO: checking whether uint32_t is defined" >&5
  43335. -$as_echo_n "checking whether uint32_t is defined... " >&6; }
  43336. -if test "${guile_cv_have_uint32_t+set}" = set; then
  43337. - $as_echo_n "(cached) " >&6
  43338. -else
  43339. - cat >conftest.$ac_ext <<_ACEOF
  43340. -/* confdefs.h. */
  43341. -_ACEOF
  43342. -cat confdefs.h >>conftest.$ac_ext
  43343. -cat >>conftest.$ac_ext <<_ACEOF
  43344. -/* end confdefs.h. */
  43345. -#include <sys/types.h>
  43346. - #if HAVE_STDINT_H
  43347. - #include <stdint.h>
  43348. - #endif
  43349. - #ifndef HAVE_NETDB_H
  43350. - #include <netdb.h>
  43351. - #endif
  43352. -int
  43353. -main ()
  43354. -{
  43355. -uint32_t a;
  43356. - ;
  43357. - return 0;
  43358. -}
  43359. -_ACEOF
  43360. -rm -f conftest.$ac_objext
  43361. -if { (ac_try="$ac_compile"
  43362. -case "(($ac_try" in
  43363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43364. - *) ac_try_echo=$ac_try;;
  43365. -esac
  43366. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43367. -$as_echo "$ac_try_echo") >&5
  43368. - (eval "$ac_compile") 2>conftest.er1
  43369. - ac_status=$?
  43370. - grep -v '^ *+' conftest.er1 >conftest.err
  43371. - rm -f conftest.er1
  43372. - cat conftest.err >&5
  43373. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43374. - (exit $ac_status); } && {
  43375. - test -z "$ac_c_werror_flag" ||
  43376. - test ! -s conftest.err
  43377. - } && test -s conftest.$ac_objext; then
  43378. - guile_cv_have_uint32_t=yes
  43379. -else
  43380. - $as_echo "$as_me: failed program was:" >&5
  43381. -sed 's/^/| /' conftest.$ac_ext >&5
  43382. + else
  43383. + additional_includedir="$withval/include"
  43384. + additional_libdir="$withval/$acl_libdirstem"
  43385. + fi
  43386. + fi
  43387. - guile_cv_have_uint32_t=no
  43388. fi
  43389. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43390. -fi
  43391. + LIBINTL=
  43392. + LTLIBINTL=
  43393. + INCINTL=
  43394. + LIBINTL_PREFIX=
  43395. + rpathdirs=
  43396. + ltrpathdirs=
  43397. + names_already_handled=
  43398. + names_next_round='intl '
  43399. + while test -n "$names_next_round"; do
  43400. + names_this_round="$names_next_round"
  43401. + names_next_round=
  43402. + for name in $names_this_round; do
  43403. + already_handled=
  43404. + for n in $names_already_handled; do
  43405. + if test "$n" = "$name"; then
  43406. + already_handled=yes
  43407. + break
  43408. + fi
  43409. + done
  43410. + if test -z "$already_handled"; then
  43411. + names_already_handled="$names_already_handled $name"
  43412. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  43413. + eval value=\"\$HAVE_LIB$uppername\"
  43414. + if test -n "$value"; then
  43415. + if test "$value" = yes; then
  43416. + eval value=\"\$LIB$uppername\"
  43417. + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  43418. + eval value=\"\$LTLIB$uppername\"
  43419. + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  43420. + else
  43421. + :
  43422. + fi
  43423. + else
  43424. + found_dir=
  43425. + found_la=
  43426. + found_so=
  43427. + found_a=
  43428. + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  43429. + if test -n "$acl_shlibext"; then
  43430. + shrext=".$acl_shlibext" # typically: shrext=.so
  43431. + else
  43432. + shrext=
  43433. + fi
  43434. + if test $use_additional = yes; then
  43435. + dir="$additional_libdir"
  43436. + if test -n "$acl_shlibext"; then
  43437. + if test -f "$dir/$libname$shrext"; then
  43438. + found_dir="$dir"
  43439. + found_so="$dir/$libname$shrext"
  43440. + else
  43441. + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  43442. + ver=`(cd "$dir" && \
  43443. + for f in "$libname$shrext".*; do echo "$f"; done \
  43444. + | sed -e "s,^$libname$shrext\\\\.,," \
  43445. + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  43446. + | sed 1q ) 2>/dev/null`
  43447. + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  43448. + found_dir="$dir"
  43449. + found_so="$dir/$libname$shrext.$ver"
  43450. + fi
  43451. + else
  43452. + eval library_names=\"$acl_library_names_spec\"
  43453. + for f in $library_names; do
  43454. + if test -f "$dir/$f"; then
  43455. + found_dir="$dir"
  43456. + found_so="$dir/$f"
  43457. + break
  43458. + fi
  43459. + done
  43460. + fi
  43461. + fi
  43462. + fi
  43463. + if test "X$found_dir" = "X"; then
  43464. + if test -f "$dir/$libname.$acl_libext"; then
  43465. + found_dir="$dir"
  43466. + found_a="$dir/$libname.$acl_libext"
  43467. + fi
  43468. + fi
  43469. + if test "X$found_dir" != "X"; then
  43470. + if test -f "$dir/$libname.la"; then
  43471. + found_la="$dir/$libname.la"
  43472. + fi
  43473. + fi
  43474. + fi
  43475. + if test "X$found_dir" = "X"; then
  43476. + for x in $LDFLAGS $LTLIBINTL; do
  43477. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_have_uint32_t" >&5
  43478. -$as_echo "$guile_cv_have_uint32_t" >&6; }
  43479. -if test $guile_cv_have_uint32_t = yes; then
  43480. + acl_save_prefix="$prefix"
  43481. + prefix="$acl_final_prefix"
  43482. + acl_save_exec_prefix="$exec_prefix"
  43483. + exec_prefix="$acl_final_exec_prefix"
  43484. + eval x=\"$x\"
  43485. + exec_prefix="$acl_save_exec_prefix"
  43486. + prefix="$acl_save_prefix"
  43487. -cat >>confdefs.h <<\_ACEOF
  43488. -#define HAVE_UINT32_T 1
  43489. -_ACEOF
  43490. + case "$x" in
  43491. + -L*)
  43492. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  43493. + if test -n "$acl_shlibext"; then
  43494. + if test -f "$dir/$libname$shrext"; then
  43495. + found_dir="$dir"
  43496. + found_so="$dir/$libname$shrext"
  43497. + else
  43498. + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  43499. + ver=`(cd "$dir" && \
  43500. + for f in "$libname$shrext".*; do echo "$f"; done \
  43501. + | sed -e "s,^$libname$shrext\\\\.,," \
  43502. + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  43503. + | sed 1q ) 2>/dev/null`
  43504. + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  43505. + found_dir="$dir"
  43506. + found_so="$dir/$libname$shrext.$ver"
  43507. + fi
  43508. + else
  43509. + eval library_names=\"$acl_library_names_spec\"
  43510. + for f in $library_names; do
  43511. + if test -f "$dir/$f"; then
  43512. + found_dir="$dir"
  43513. + found_so="$dir/$f"
  43514. + break
  43515. + fi
  43516. + done
  43517. + fi
  43518. + fi
  43519. + fi
  43520. + if test "X$found_dir" = "X"; then
  43521. + if test -f "$dir/$libname.$acl_libext"; then
  43522. + found_dir="$dir"
  43523. + found_a="$dir/$libname.$acl_libext"
  43524. + fi
  43525. + fi
  43526. + if test "X$found_dir" != "X"; then
  43527. + if test -f "$dir/$libname.la"; then
  43528. + found_la="$dir/$libname.la"
  43529. + fi
  43530. + fi
  43531. + ;;
  43532. + esac
  43533. + if test "X$found_dir" != "X"; then
  43534. + break
  43535. + fi
  43536. + done
  43537. + fi
  43538. + if test "X$found_dir" != "X"; then
  43539. + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  43540. + if test "X$found_so" != "X"; then
  43541. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  43542. + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  43543. + else
  43544. + haveit=
  43545. + for x in $ltrpathdirs; do
  43546. + if test "X$x" = "X$found_dir"; then
  43547. + haveit=yes
  43548. + break
  43549. + fi
  43550. + done
  43551. + if test -z "$haveit"; then
  43552. + ltrpathdirs="$ltrpathdirs $found_dir"
  43553. + fi
  43554. + if test "$acl_hardcode_direct" = yes; then
  43555. + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  43556. + else
  43557. + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  43558. + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  43559. + haveit=
  43560. + for x in $rpathdirs; do
  43561. + if test "X$x" = "X$found_dir"; then
  43562. + haveit=yes
  43563. + break
  43564. + fi
  43565. + done
  43566. + if test -z "$haveit"; then
  43567. + rpathdirs="$rpathdirs $found_dir"
  43568. + fi
  43569. + else
  43570. + haveit=
  43571. + for x in $LDFLAGS $LIBINTL; do
  43572. -fi
  43573. + acl_save_prefix="$prefix"
  43574. + prefix="$acl_final_prefix"
  43575. + acl_save_exec_prefix="$exec_prefix"
  43576. + exec_prefix="$acl_final_exec_prefix"
  43577. + eval x=\"$x\"
  43578. + exec_prefix="$acl_save_exec_prefix"
  43579. + prefix="$acl_save_prefix"
  43580. -{ $as_echo "$as_me:$LINENO: checking for working IPv6 support" >&5
  43581. -$as_echo_n "checking for working IPv6 support... " >&6; }
  43582. -if test "${guile_cv_have_ipv6+set}" = set; then
  43583. - $as_echo_n "(cached) " >&6
  43584. -else
  43585. - cat >conftest.$ac_ext <<_ACEOF
  43586. -/* confdefs.h. */
  43587. -_ACEOF
  43588. -cat confdefs.h >>conftest.$ac_ext
  43589. -cat >>conftest.$ac_ext <<_ACEOF
  43590. -/* end confdefs.h. */
  43591. + if test "X$x" = "X-L$found_dir"; then
  43592. + haveit=yes
  43593. + break
  43594. + fi
  43595. + done
  43596. + if test -z "$haveit"; then
  43597. + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  43598. + fi
  43599. + if test "$acl_hardcode_minus_L" != no; then
  43600. + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  43601. + else
  43602. + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  43603. + fi
  43604. + fi
  43605. + fi
  43606. + fi
  43607. + else
  43608. + if test "X$found_a" != "X"; then
  43609. + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  43610. + else
  43611. + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  43612. + fi
  43613. + fi
  43614. + additional_includedir=
  43615. + case "$found_dir" in
  43616. + */$acl_libdirstem | */$acl_libdirstem/)
  43617. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  43618. + LIBINTL_PREFIX="$basedir"
  43619. + additional_includedir="$basedir/include"
  43620. + ;;
  43621. + esac
  43622. + if test "X$additional_includedir" != "X"; then
  43623. + if test "X$additional_includedir" != "X/usr/include"; then
  43624. + haveit=
  43625. + if test "X$additional_includedir" = "X/usr/local/include"; then
  43626. + if test -n "$GCC"; then
  43627. + case $host_os in
  43628. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  43629. + esac
  43630. + fi
  43631. + fi
  43632. + if test -z "$haveit"; then
  43633. + for x in $CPPFLAGS $INCINTL; do
  43634. -#ifdef HAVE_SYS_TYPES_H
  43635. -#include <sys/types.h>
  43636. -#endif
  43637. -#include <netinet/in.h>
  43638. -#include <sys/socket.h>
  43639. -int
  43640. -main ()
  43641. -{
  43642. -struct sockaddr_in6 a; a.sin6_family = AF_INET6;
  43643. - ;
  43644. - return 0;
  43645. -}
  43646. -_ACEOF
  43647. -rm -f conftest.$ac_objext
  43648. -if { (ac_try="$ac_compile"
  43649. -case "(($ac_try" in
  43650. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43651. - *) ac_try_echo=$ac_try;;
  43652. -esac
  43653. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43654. -$as_echo "$ac_try_echo") >&5
  43655. - (eval "$ac_compile") 2>conftest.er1
  43656. - ac_status=$?
  43657. - grep -v '^ *+' conftest.er1 >conftest.err
  43658. - rm -f conftest.er1
  43659. - cat conftest.err >&5
  43660. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43661. - (exit $ac_status); } && {
  43662. - test -z "$ac_c_werror_flag" ||
  43663. - test ! -s conftest.err
  43664. - } && test -s conftest.$ac_objext; then
  43665. - guile_cv_have_ipv6=yes
  43666. -else
  43667. - $as_echo "$as_me: failed program was:" >&5
  43668. -sed 's/^/| /' conftest.$ac_ext >&5
  43669. + acl_save_prefix="$prefix"
  43670. + prefix="$acl_final_prefix"
  43671. + acl_save_exec_prefix="$exec_prefix"
  43672. + exec_prefix="$acl_final_exec_prefix"
  43673. + eval x=\"$x\"
  43674. + exec_prefix="$acl_save_exec_prefix"
  43675. + prefix="$acl_save_prefix"
  43676. - guile_cv_have_ipv6=no
  43677. -fi
  43678. + if test "X$x" = "X-I$additional_includedir"; then
  43679. + haveit=yes
  43680. + break
  43681. + fi
  43682. + done
  43683. + if test -z "$haveit"; then
  43684. + if test -d "$additional_includedir"; then
  43685. + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  43686. + fi
  43687. + fi
  43688. + fi
  43689. + fi
  43690. + fi
  43691. + if test -n "$found_la"; then
  43692. + save_libdir="$libdir"
  43693. + case "$found_la" in
  43694. + */* | *\\*) . "$found_la" ;;
  43695. + *) . "./$found_la" ;;
  43696. + esac
  43697. + libdir="$save_libdir"
  43698. + for dep in $dependency_libs; do
  43699. + case "$dep" in
  43700. + -L*)
  43701. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  43702. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  43703. + haveit=
  43704. + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  43705. + if test -n "$GCC"; then
  43706. + case $host_os in
  43707. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  43708. + esac
  43709. + fi
  43710. + fi
  43711. + if test -z "$haveit"; then
  43712. + haveit=
  43713. + for x in $LDFLAGS $LIBINTL; do
  43714. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43715. -fi
  43716. + acl_save_prefix="$prefix"
  43717. + prefix="$acl_final_prefix"
  43718. + acl_save_exec_prefix="$exec_prefix"
  43719. + exec_prefix="$acl_final_exec_prefix"
  43720. + eval x=\"$x\"
  43721. + exec_prefix="$acl_save_exec_prefix"
  43722. + prefix="$acl_save_prefix"
  43723. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_have_ipv6" >&5
  43724. -$as_echo "$guile_cv_have_ipv6" >&6; }
  43725. -if test $guile_cv_have_ipv6 = yes; then
  43726. + if test "X$x" = "X-L$additional_libdir"; then
  43727. + haveit=yes
  43728. + break
  43729. + fi
  43730. + done
  43731. + if test -z "$haveit"; then
  43732. + if test -d "$additional_libdir"; then
  43733. + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  43734. + fi
  43735. + fi
  43736. + haveit=
  43737. + for x in $LDFLAGS $LTLIBINTL; do
  43738. -cat >>confdefs.h <<\_ACEOF
  43739. -#define HAVE_IPV6 1
  43740. -_ACEOF
  43741. + acl_save_prefix="$prefix"
  43742. + prefix="$acl_final_prefix"
  43743. + acl_save_exec_prefix="$exec_prefix"
  43744. + exec_prefix="$acl_final_exec_prefix"
  43745. + eval x=\"$x\"
  43746. + exec_prefix="$acl_save_exec_prefix"
  43747. + prefix="$acl_save_prefix"
  43748. -fi
  43749. + if test "X$x" = "X-L$additional_libdir"; then
  43750. + haveit=yes
  43751. + break
  43752. + fi
  43753. + done
  43754. + if test -z "$haveit"; then
  43755. + if test -d "$additional_libdir"; then
  43756. + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  43757. + fi
  43758. + fi
  43759. + fi
  43760. + fi
  43761. + ;;
  43762. + -R*)
  43763. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  43764. + if test "$enable_rpath" != no; then
  43765. + haveit=
  43766. + for x in $rpathdirs; do
  43767. + if test "X$x" = "X$dir"; then
  43768. + haveit=yes
  43769. + break
  43770. + fi
  43771. + done
  43772. + if test -z "$haveit"; then
  43773. + rpathdirs="$rpathdirs $dir"
  43774. + fi
  43775. + haveit=
  43776. + for x in $ltrpathdirs; do
  43777. + if test "X$x" = "X$dir"; then
  43778. + haveit=yes
  43779. + break
  43780. + fi
  43781. + done
  43782. + if test -z "$haveit"; then
  43783. + ltrpathdirs="$ltrpathdirs $dir"
  43784. + fi
  43785. + fi
  43786. + ;;
  43787. + -l*)
  43788. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  43789. + ;;
  43790. + *.la)
  43791. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  43792. + ;;
  43793. + *)
  43794. + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  43795. + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  43796. + ;;
  43797. + esac
  43798. + done
  43799. + fi
  43800. + else
  43801. + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  43802. + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  43803. + fi
  43804. + fi
  43805. + fi
  43806. + done
  43807. + done
  43808. + if test "X$rpathdirs" != "X"; then
  43809. + if test -n "$acl_hardcode_libdir_separator"; then
  43810. + alldirs=
  43811. + for found_dir in $rpathdirs; do
  43812. + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  43813. + done
  43814. + acl_save_libdir="$libdir"
  43815. + libdir="$alldirs"
  43816. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  43817. + libdir="$acl_save_libdir"
  43818. + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  43819. + else
  43820. + for found_dir in $rpathdirs; do
  43821. + acl_save_libdir="$libdir"
  43822. + libdir="$found_dir"
  43823. + eval flag=\"$acl_hardcode_libdir_flag_spec\"
  43824. + libdir="$acl_save_libdir"
  43825. + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  43826. + done
  43827. + fi
  43828. + fi
  43829. + if test "X$ltrpathdirs" != "X"; then
  43830. + for found_dir in $ltrpathdirs; do
  43831. + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  43832. + done
  43833. + fi
  43834. -# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
  43835. -{ $as_echo "$as_me:$LINENO: checking whether sockaddr_in6 has sin6_scope_id" >&5
  43836. -$as_echo_n "checking whether sockaddr_in6 has sin6_scope_id... " >&6; }
  43837. -if test "${guile_cv_have_sin6_scope_id+set}" = set; then
  43838. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  43839. +$as_echo_n "checking for GNU gettext in libintl... " >&6; }
  43840. +if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  43841. $as_echo_n "(cached) " >&6
  43842. else
  43843. - cat >conftest.$ac_ext <<_ACEOF
  43844. -/* confdefs.h. */
  43845. -_ACEOF
  43846. -cat confdefs.h >>conftest.$ac_ext
  43847. -cat >>conftest.$ac_ext <<_ACEOF
  43848. + gt_save_CPPFLAGS="$CPPFLAGS"
  43849. + CPPFLAGS="$CPPFLAGS $INCINTL"
  43850. + gt_save_LIBS="$LIBS"
  43851. + LIBS="$LIBS $LIBINTL"
  43852. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43853. /* end confdefs.h. */
  43854. -
  43855. -#ifdef HAVE_SYS_TYPES_H
  43856. -#include <sys/types.h>
  43857. +#include <libintl.h>
  43858. +$gt_revision_test_code
  43859. +extern int _nl_msg_cat_cntr;
  43860. +extern
  43861. +#ifdef __cplusplus
  43862. +"C"
  43863. #endif
  43864. -#include <netinet/in.h>
  43865. +const char *_nl_expand_alias (const char *);
  43866. int
  43867. main ()
  43868. {
  43869. -struct sockaddr_in6 sok; sok.sin6_scope_id = 0;
  43870. +bindtextdomain ("", "");
  43871. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  43872. ;
  43873. return 0;
  43874. }
  43875. _ACEOF
  43876. -rm -f conftest.$ac_objext
  43877. -if { (ac_try="$ac_compile"
  43878. -case "(($ac_try" in
  43879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43880. - *) ac_try_echo=$ac_try;;
  43881. -esac
  43882. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43883. -$as_echo "$ac_try_echo") >&5
  43884. - (eval "$ac_compile") 2>conftest.er1
  43885. - ac_status=$?
  43886. - grep -v '^ *+' conftest.er1 >conftest.err
  43887. - rm -f conftest.er1
  43888. - cat conftest.err >&5
  43889. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43890. - (exit $ac_status); } && {
  43891. - test -z "$ac_c_werror_flag" ||
  43892. - test ! -s conftest.err
  43893. - } && test -s conftest.$ac_objext; then
  43894. - guile_cv_have_sin6_scope_id=yes
  43895. +if ac_fn_c_try_link "$LINENO"; then :
  43896. + eval "$gt_func_gnugettext_libintl=yes"
  43897. else
  43898. - $as_echo "$as_me: failed program was:" >&5
  43899. -sed 's/^/| /' conftest.$ac_ext >&5
  43900. -
  43901. - guile_cv_have_sin6_scope_id=no
  43902. -fi
  43903. -
  43904. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43905. -fi
  43906. -
  43907. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_have_sin6_scope_id" >&5
  43908. -$as_echo "$guile_cv_have_sin6_scope_id" >&6; }
  43909. -if test $guile_cv_have_sin6_scope_id = yes; then
  43910. -
  43911. -cat >>confdefs.h <<\_ACEOF
  43912. -#define HAVE_SIN6_SCOPE_ID 1
  43913. -_ACEOF
  43914. -
  43915. + eval "$gt_func_gnugettext_libintl=no"
  43916. fi
  43917. -
  43918. -# struct sockaddr_in6 field sin_len is only present on BSD systems
  43919. -{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_len" >&5
  43920. -$as_echo_n "checking for struct sockaddr_in6.sin6_len... " >&6; }
  43921. -if test "${ac_cv_member_struct_sockaddr_in6_sin6_len+set}" = set; then
  43922. - $as_echo_n "(cached) " >&6
  43923. -else
  43924. - cat >conftest.$ac_ext <<_ACEOF
  43925. -/* confdefs.h. */
  43926. -_ACEOF
  43927. -cat confdefs.h >>conftest.$ac_ext
  43928. -cat >>conftest.$ac_ext <<_ACEOF
  43929. +rm -f core conftest.err conftest.$ac_objext \
  43930. + conftest$ac_exeext conftest.$ac_ext
  43931. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  43932. + LIBS="$LIBS $LIBICONV"
  43933. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43934. /* end confdefs.h. */
  43935. -#ifdef HAVE_SYS_TYPES_H
  43936. -#include <sys/types.h>
  43937. +#include <libintl.h>
  43938. +$gt_revision_test_code
  43939. +extern int _nl_msg_cat_cntr;
  43940. +extern
  43941. +#ifdef __cplusplus
  43942. +"C"
  43943. #endif
  43944. -#include <netinet/in.h>
  43945. -
  43946. +const char *_nl_expand_alias (const char *);
  43947. int
  43948. main ()
  43949. {
  43950. -static struct sockaddr_in6 ac_aggr;
  43951. -if (ac_aggr.sin6_len)
  43952. -return 0;
  43953. +bindtextdomain ("", "");
  43954. +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  43955. ;
  43956. return 0;
  43957. }
  43958. _ACEOF
  43959. -rm -f conftest.$ac_objext
  43960. -if { (ac_try="$ac_compile"
  43961. -case "(($ac_try" in
  43962. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43963. - *) ac_try_echo=$ac_try;;
  43964. -esac
  43965. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43966. -$as_echo "$ac_try_echo") >&5
  43967. - (eval "$ac_compile") 2>conftest.er1
  43968. - ac_status=$?
  43969. - grep -v '^ *+' conftest.er1 >conftest.err
  43970. - rm -f conftest.er1
  43971. - cat conftest.err >&5
  43972. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43973. - (exit $ac_status); } && {
  43974. - test -z "$ac_c_werror_flag" ||
  43975. - test ! -s conftest.err
  43976. - } && test -s conftest.$ac_objext; then
  43977. - ac_cv_member_struct_sockaddr_in6_sin6_len=yes
  43978. -else
  43979. - $as_echo "$as_me: failed program was:" >&5
  43980. -sed 's/^/| /' conftest.$ac_ext >&5
  43981. +if ac_fn_c_try_link "$LINENO"; then :
  43982. + LIBINTL="$LIBINTL $LIBICONV"
  43983. + LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  43984. + eval "$gt_func_gnugettext_libintl=yes"
  43985. - cat >conftest.$ac_ext <<_ACEOF
  43986. -/* confdefs.h. */
  43987. -_ACEOF
  43988. -cat confdefs.h >>conftest.$ac_ext
  43989. -cat >>conftest.$ac_ext <<_ACEOF
  43990. -/* end confdefs.h. */
  43991. -#ifdef HAVE_SYS_TYPES_H
  43992. -#include <sys/types.h>
  43993. -#endif
  43994. -#include <netinet/in.h>
  43995. +fi
  43996. +rm -f core conftest.err conftest.$ac_objext \
  43997. + conftest$ac_exeext conftest.$ac_ext
  43998. + fi
  43999. + CPPFLAGS="$gt_save_CPPFLAGS"
  44000. + LIBS="$gt_save_LIBS"
  44001. +fi
  44002. +eval ac_res=\$$gt_func_gnugettext_libintl
  44003. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  44004. +$as_echo "$ac_res" >&6; }
  44005. + fi
  44006. -int
  44007. -main ()
  44008. -{
  44009. -static struct sockaddr_in6 ac_aggr;
  44010. -if (sizeof ac_aggr.sin6_len)
  44011. -return 0;
  44012. - ;
  44013. - return 0;
  44014. -}
  44015. -_ACEOF
  44016. -rm -f conftest.$ac_objext
  44017. -if { (ac_try="$ac_compile"
  44018. -case "(($ac_try" in
  44019. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44020. - *) ac_try_echo=$ac_try;;
  44021. -esac
  44022. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44023. -$as_echo "$ac_try_echo") >&5
  44024. - (eval "$ac_compile") 2>conftest.er1
  44025. - ac_status=$?
  44026. - grep -v '^ *+' conftest.er1 >conftest.err
  44027. - rm -f conftest.er1
  44028. - cat conftest.err >&5
  44029. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44030. - (exit $ac_status); } && {
  44031. - test -z "$ac_c_werror_flag" ||
  44032. - test ! -s conftest.err
  44033. - } && test -s conftest.$ac_objext; then
  44034. - ac_cv_member_struct_sockaddr_in6_sin6_len=yes
  44035. -else
  44036. - $as_echo "$as_me: failed program was:" >&5
  44037. -sed 's/^/| /' conftest.$ac_ext >&5
  44038. + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  44039. + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  44040. + && test "$PACKAGE" != gettext-runtime \
  44041. + && test "$PACKAGE" != gettext-tools; }; then
  44042. + gt_use_preinstalled_gnugettext=yes
  44043. + else
  44044. + LIBINTL=
  44045. + LTLIBINTL=
  44046. + INCINTL=
  44047. + fi
  44048. - ac_cv_member_struct_sockaddr_in6_sin6_len=no
  44049. -fi
  44050. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44051. -fi
  44052. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44053. -fi
  44054. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_len" >&5
  44055. -$as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_len" >&6; }
  44056. -if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = x""yes; then
  44057. + if test -n "$INTL_MACOSX_LIBS"; then
  44058. + if test "$gt_use_preinstalled_gnugettext" = "yes" \
  44059. + || test "$nls_cv_use_gnu_gettext" = "yes"; then
  44060. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  44061. + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  44062. + fi
  44063. + fi
  44064. -cat >>confdefs.h <<_ACEOF
  44065. -#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
  44066. -_ACEOF
  44067. + if test "$gt_use_preinstalled_gnugettext" = "yes" \
  44068. + || test "$nls_cv_use_gnu_gettext" = "yes"; then
  44069. +$as_echo "#define ENABLE_NLS 1" >>confdefs.h
  44070. -fi
  44071. + else
  44072. + USE_NLS=no
  44073. + fi
  44074. + fi
  44075. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  44076. +$as_echo_n "checking whether to use NLS... " >&6; }
  44077. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  44078. +$as_echo "$USE_NLS" >&6; }
  44079. + if test "$USE_NLS" = "yes"; then
  44080. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  44081. +$as_echo_n "checking where the gettext function comes from... " >&6; }
  44082. + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  44083. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  44084. + gt_source="external libintl"
  44085. + else
  44086. + gt_source="libc"
  44087. + fi
  44088. + else
  44089. + gt_source="included intl directory"
  44090. + fi
  44091. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  44092. +$as_echo "$gt_source" >&6; }
  44093. + fi
  44094. -{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
  44095. -$as_echo_n "checking whether localtime caches TZ... " >&6; }
  44096. -if test "${guile_cv_localtime_cache+set}" = set; then
  44097. - $as_echo_n "(cached) " >&6
  44098. -else
  44099. - if test x$ac_cv_func_tzset = xyes; then
  44100. -if test "$cross_compiling" = yes; then
  44101. - # If we have tzset, assume the worst when cross-compiling.
  44102. -guile_cv_localtime_cache=yes
  44103. -else
  44104. - cat >conftest.$ac_ext <<_ACEOF
  44105. -/* confdefs.h. */
  44106. -_ACEOF
  44107. -cat confdefs.h >>conftest.$ac_ext
  44108. -cat >>conftest.$ac_ext <<_ACEOF
  44109. -/* end confdefs.h. */
  44110. -#include <time.h>
  44111. -#if STDC_HEADERS
  44112. -# include <stdlib.h>
  44113. -#endif
  44114. -extern char **environ;
  44115. -unset_TZ ()
  44116. -{
  44117. - char **from, **to;
  44118. - for (to = from = environ; (*to = *from); from++)
  44119. - if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
  44120. - to++;
  44121. -}
  44122. -char TZ_GMT0[] = "TZ=GMT0";
  44123. -char TZ_PST8[] = "TZ=PST8";
  44124. -main()
  44125. -{
  44126. - time_t now = time ((time_t *) 0);
  44127. - int hour_GMT0, hour_unset;
  44128. - if (putenv (TZ_GMT0) != 0)
  44129. - exit (1);
  44130. - hour_GMT0 = localtime (&now)->tm_hour;
  44131. - unset_TZ ();
  44132. - hour_unset = localtime (&now)->tm_hour;
  44133. - if (putenv (TZ_PST8) != 0)
  44134. - exit (1);
  44135. - if (localtime (&now)->tm_hour == hour_GMT0)
  44136. - exit (1);
  44137. - unset_TZ ();
  44138. - if (localtime (&now)->tm_hour != hour_unset)
  44139. - exit (1);
  44140. - exit (0);
  44141. -}
  44142. -_ACEOF
  44143. -rm -f conftest$ac_exeext
  44144. -if { (ac_try="$ac_link"
  44145. -case "(($ac_try" in
  44146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44147. - *) ac_try_echo=$ac_try;;
  44148. -esac
  44149. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44150. -$as_echo "$ac_try_echo") >&5
  44151. - (eval "$ac_link") 2>&5
  44152. - ac_status=$?
  44153. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44154. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44155. - { (case "(($ac_try" in
  44156. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44157. - *) ac_try_echo=$ac_try;;
  44158. -esac
  44159. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44160. -$as_echo "$ac_try_echo") >&5
  44161. - (eval "$ac_try") 2>&5
  44162. - ac_status=$?
  44163. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44164. - (exit $ac_status); }; }; then
  44165. - guile_cv_localtime_cache=no
  44166. -else
  44167. - $as_echo "$as_me: program exited with status $ac_status" >&5
  44168. -$as_echo "$as_me: failed program was:" >&5
  44169. -sed 's/^/| /' conftest.$ac_ext >&5
  44170. + if test "$USE_NLS" = "yes"; then
  44171. -( exit $ac_status )
  44172. -guile_cv_localtime_cache=yes
  44173. -fi
  44174. -rm -rf conftest.dSYM
  44175. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44176. -fi
  44177. + if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  44178. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  44179. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  44180. +$as_echo_n "checking how to link with libintl... " >&6; }
  44181. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  44182. +$as_echo "$LIBINTL" >&6; }
  44183. + for element in $INCINTL; do
  44184. + haveit=
  44185. + for x in $CPPFLAGS; do
  44186. -else
  44187. - # If we lack tzset, report that localtime does not cache TZ,
  44188. - # since we can't invalidate the cache if we don't have tzset.
  44189. - guile_cv_localtime_cache=no
  44190. -fi
  44191. -fi
  44192. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_localtime_cache" >&5
  44193. -$as_echo "$guile_cv_localtime_cache" >&6; }
  44194. -if test $guile_cv_localtime_cache = yes; then
  44195. + acl_save_prefix="$prefix"
  44196. + prefix="$acl_final_prefix"
  44197. + acl_save_exec_prefix="$exec_prefix"
  44198. + exec_prefix="$acl_final_exec_prefix"
  44199. + eval x=\"$x\"
  44200. + exec_prefix="$acl_save_exec_prefix"
  44201. + prefix="$acl_save_prefix"
  44202. +
  44203. + if test "X$x" = "X$element"; then
  44204. + haveit=yes
  44205. + break
  44206. + fi
  44207. + done
  44208. + if test -z "$haveit"; then
  44209. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  44210. + fi
  44211. + done
  44212. -cat >>confdefs.h <<\_ACEOF
  44213. -#define LOCALTIME_CACHE 1
  44214. -_ACEOF
  44215. + fi
  44216. -fi
  44217. -if test "$enable_regex" = yes; then
  44218. - if test "$ac_cv_header_regex_h" = yes ||
  44219. - test "$ac_cv_header_rxposix_h" = yes ||
  44220. - test "$ac_cv_header_rx_rxposix_h" = yes; then
  44221. - { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  44222. -$as_echo_n "checking for regcomp... " >&6; }
  44223. -if test "${ac_cv_func_regcomp_norx+set}" = set; then
  44224. - $as_echo_n "(cached) " >&6
  44225. -else
  44226. - cat >conftest.$ac_ext <<_ACEOF
  44227. -/* confdefs.h. */
  44228. -_ACEOF
  44229. -cat confdefs.h >>conftest.$ac_ext
  44230. -cat >>conftest.$ac_ext <<_ACEOF
  44231. -/* end confdefs.h. */
  44232. -/* System header to define __stub macros and hopefully few prototypes,
  44233. - which can conflict with char regcomp(); below. */
  44234. -#include <assert.h>
  44235. -/* Override any gcc2 internal prototype to avoid an error. */
  44236. -#ifdef __cplusplus
  44237. -extern "C"
  44238. -#endif
  44239. -/* We use char because int might match the return type of a gcc2
  44240. - builtin and then its argument prototype would still apply. */
  44241. -char regcomp();
  44242. +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  44243. -int
  44244. -main ()
  44245. -{
  44246. -/* The GNU C library defines this for functions which it implements
  44247. - to always fail with ENOSYS. Some functions are actually named
  44248. - something starting with __ and the normal name is an alias. */
  44249. -#if defined (__stub_regcomp) || defined (__stub___regcomp)
  44250. -choke me
  44251. -#else
  44252. -regcomp();
  44253. -#endif
  44254. +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  44255. - ;
  44256. - return 0;
  44257. -}
  44258. -_ACEOF
  44259. -rm -f conftest.$ac_objext conftest$ac_exeext
  44260. -if { (ac_try="$ac_link"
  44261. -case "(($ac_try" in
  44262. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44263. - *) ac_try_echo=$ac_try;;
  44264. -esac
  44265. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44266. -$as_echo "$ac_try_echo") >&5
  44267. - (eval "$ac_link") 2>conftest.er1
  44268. - ac_status=$?
  44269. - grep -v '^ *+' conftest.er1 >conftest.err
  44270. - rm -f conftest.er1
  44271. - cat conftest.err >&5
  44272. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44273. - (exit $ac_status); } && {
  44274. - test -z "$ac_c_werror_flag" ||
  44275. - test ! -s conftest.err
  44276. - } && test -s conftest$ac_exeext && {
  44277. - test "$cross_compiling" = yes ||
  44278. - $as_test_x conftest$ac_exeext
  44279. - }; then
  44280. - eval "ac_cv_func_regcomp_norx=yes"
  44281. -else
  44282. - $as_echo "$as_me: failed program was:" >&5
  44283. -sed 's/^/| /' conftest.$ac_ext >&5
  44284. + fi
  44285. - eval "ac_cv_func_regcomp_norx=no"
  44286. -fi
  44287. + POSUB=po
  44288. + fi
  44289. -rm -rf conftest.dSYM
  44290. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44291. - conftest$ac_exeext conftest.$ac_ext
  44292. -fi
  44293. -if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
  44294. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  44295. -$as_echo "yes" >&6; }
  44296. - case " $LIBOBJS " in
  44297. - *" regex-posix.$ac_objext "* ) ;;
  44298. - *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  44299. - ;;
  44300. -esac
  44301. -else
  44302. - { $as_echo "$as_me:$LINENO: result: no" >&5
  44303. -$as_echo "no" >&6; }
  44304. + INTLLIBS="$LIBINTL"
  44305. -{ $as_echo "$as_me:$LINENO: checking for main in -lrx" >&5
  44306. -$as_echo_n "checking for main in -lrx... " >&6; }
  44307. -if test "${ac_cv_lib_rx_main+set}" = set; then
  44308. - $as_echo_n "(cached) " >&6
  44309. -else
  44310. - ac_check_lib_save_LIBS=$LIBS
  44311. -LIBS="-lrx $LIBS"
  44312. -cat >conftest.$ac_ext <<_ACEOF
  44313. -/* confdefs.h. */
  44314. -_ACEOF
  44315. -cat confdefs.h >>conftest.$ac_ext
  44316. -cat >>conftest.$ac_ext <<_ACEOF
  44317. -/* end confdefs.h. */
  44318. -int
  44319. -main ()
  44320. -{
  44321. -return main ();
  44322. - ;
  44323. - return 0;
  44324. -}
  44325. -_ACEOF
  44326. -rm -f conftest.$ac_objext conftest$ac_exeext
  44327. -if { (ac_try="$ac_link"
  44328. -case "(($ac_try" in
  44329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44330. - *) ac_try_echo=$ac_try;;
  44331. -esac
  44332. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44333. -$as_echo "$ac_try_echo") >&5
  44334. - (eval "$ac_link") 2>conftest.er1
  44335. - ac_status=$?
  44336. - grep -v '^ *+' conftest.er1 >conftest.err
  44337. - rm -f conftest.er1
  44338. - cat conftest.err >&5
  44339. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44340. - (exit $ac_status); } && {
  44341. - test -z "$ac_c_werror_flag" ||
  44342. - test ! -s conftest.err
  44343. - } && test -s conftest$ac_exeext && {
  44344. - test "$cross_compiling" = yes ||
  44345. - $as_test_x conftest$ac_exeext
  44346. - }; then
  44347. - ac_cv_lib_rx_main=yes
  44348. -else
  44349. - $as_echo "$as_me: failed program was:" >&5
  44350. -sed 's/^/| /' conftest.$ac_ext >&5
  44351. - ac_cv_lib_rx_main=no
  44352. -fi
  44353. -rm -rf conftest.dSYM
  44354. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44355. - conftest$ac_exeext conftest.$ac_ext
  44356. -LIBS=$ac_check_lib_save_LIBS
  44357. -fi
  44358. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rx_main" >&5
  44359. -$as_echo "$ac_cv_lib_rx_main" >&6; }
  44360. -if test "x$ac_cv_lib_rx_main" = x""yes; then
  44361. - cat >>confdefs.h <<_ACEOF
  44362. -#define HAVE_LIBRX 1
  44363. -_ACEOF
  44364. - LIBS="-lrx $LIBS"
  44365. -fi
  44366. +### Some systems don't declare some functions. On such systems, we
  44367. +### need to at least provide our own K&R-style declarations.
  44368. - { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  44369. -$as_echo_n "checking for regcomp... " >&6; }
  44370. -if test "${ac_cv_func_regcomp_rx+set}" = set; then
  44371. +### GUILE_FUNC_DECLARED(function, headerfile)
  44372. +
  44373. +### Check for a declaration of FUNCTION in HEADERFILE; if it is
  44374. +### not there, #define MISSING_FUNCTION_DECL.
  44375. +
  44376. +
  44377. +
  44378. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep declaration" >&5
  44379. +$as_echo_n "checking for sleep declaration... " >&6; }
  44380. +if test "${guile_cv_func_sleep_declared+set}" = set; then :
  44381. $as_echo_n "(cached) " >&6
  44382. else
  44383. - cat >conftest.$ac_ext <<_ACEOF
  44384. -/* confdefs.h. */
  44385. -_ACEOF
  44386. -cat confdefs.h >>conftest.$ac_ext
  44387. -cat >>conftest.$ac_ext <<_ACEOF
  44388. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44389. /* end confdefs.h. */
  44390. -/* System header to define __stub macros and hopefully few prototypes,
  44391. - which can conflict with char regcomp(); below. */
  44392. -#include <assert.h>
  44393. -/* Override any gcc2 internal prototype to avoid an error. */
  44394. -#ifdef __cplusplus
  44395. -extern "C"
  44396. -#endif
  44397. -/* We use char because int might match the return type of a gcc2
  44398. - builtin and then its argument prototype would still apply. */
  44399. -char regcomp();
  44400. -
  44401. -int
  44402. -main ()
  44403. -{
  44404. -
  44405. -/* The GNU C library defines this for functions which it implements
  44406. - to always fail with ENOSYS. Some functions are actually named
  44407. - something starting with __ and the normal name is an alias. */
  44408. -#if defined (__stub_regcomp) || defined (__stub___regcomp)
  44409. -choke me
  44410. -#else
  44411. -regcomp();
  44412. -#endif
  44413. +#include <unistd.h>
  44414. - ;
  44415. - return 0;
  44416. -}
  44417. _ACEOF
  44418. -rm -f conftest.$ac_objext conftest$ac_exeext
  44419. -if { (ac_try="$ac_link"
  44420. -case "(($ac_try" in
  44421. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44422. - *) ac_try_echo=$ac_try;;
  44423. -esac
  44424. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44425. -$as_echo "$ac_try_echo") >&5
  44426. - (eval "$ac_link") 2>conftest.er1
  44427. - ac_status=$?
  44428. - grep -v '^ *+' conftest.er1 >conftest.err
  44429. - rm -f conftest.er1
  44430. - cat conftest.err >&5
  44431. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44432. - (exit $ac_status); } && {
  44433. - test -z "$ac_c_werror_flag" ||
  44434. - test ! -s conftest.err
  44435. - } && test -s conftest$ac_exeext && {
  44436. - test "$cross_compiling" = yes ||
  44437. - $as_test_x conftest$ac_exeext
  44438. - }; then
  44439. - eval "ac_cv_func_regcomp_rx=yes"
  44440. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44441. + $EGREP "sleep" >/dev/null 2>&1; then :
  44442. + guile_cv_func_sleep_declared=yes
  44443. else
  44444. - $as_echo "$as_me: failed program was:" >&5
  44445. -sed 's/^/| /' conftest.$ac_ext >&5
  44446. -
  44447. - eval "ac_cv_func_regcomp_rx=no"
  44448. + guile_cv_func_sleep_declared=no
  44449. fi
  44450. +rm -f conftest*
  44451. -rm -rf conftest.dSYM
  44452. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44453. - conftest$ac_exeext conftest.$ac_ext
  44454. fi
  44455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_func_sleep_declared" >&5
  44456. +$as_echo "$guile_cv_func_sleep_declared" >&6; }
  44457. + if test x$guile_cv_func_sleep_declared = xno; then
  44458. -if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
  44459. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  44460. -$as_echo "yes" >&6; }
  44461. - case " $LIBOBJS " in
  44462. - *" regex-posix.$ac_objext "* ) ;;
  44463. - *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  44464. - ;;
  44465. -esac
  44466. +$as_echo "#define MISSING_SLEEP_DECL 1" >>confdefs.h
  44467. -else
  44468. - { $as_echo "$as_me:$LINENO: result: no" >&5
  44469. -$as_echo "no" >&6; }
  44470. + fi
  44471. -{ $as_echo "$as_me:$LINENO: checking for main in -lregex" >&5
  44472. -$as_echo_n "checking for main in -lregex... " >&6; }
  44473. -if test "${ac_cv_lib_regex_main+set}" = set; then
  44474. +
  44475. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep declaration" >&5
  44476. +$as_echo_n "checking for usleep declaration... " >&6; }
  44477. +if test "${guile_cv_func_usleep_declared+set}" = set; then :
  44478. $as_echo_n "(cached) " >&6
  44479. else
  44480. - ac_check_lib_save_LIBS=$LIBS
  44481. -LIBS="-lregex $LIBS"
  44482. -cat >conftest.$ac_ext <<_ACEOF
  44483. -/* confdefs.h. */
  44484. -_ACEOF
  44485. -cat confdefs.h >>conftest.$ac_ext
  44486. -cat >>conftest.$ac_ext <<_ACEOF
  44487. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44488. /* end confdefs.h. */
  44489. +#include <unistd.h>
  44490. -
  44491. -int
  44492. -main ()
  44493. -{
  44494. -return main ();
  44495. - ;
  44496. - return 0;
  44497. -}
  44498. _ACEOF
  44499. -rm -f conftest.$ac_objext conftest$ac_exeext
  44500. -if { (ac_try="$ac_link"
  44501. -case "(($ac_try" in
  44502. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44503. - *) ac_try_echo=$ac_try;;
  44504. -esac
  44505. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44506. -$as_echo "$ac_try_echo") >&5
  44507. - (eval "$ac_link") 2>conftest.er1
  44508. - ac_status=$?
  44509. - grep -v '^ *+' conftest.er1 >conftest.err
  44510. - rm -f conftest.er1
  44511. - cat conftest.err >&5
  44512. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44513. - (exit $ac_status); } && {
  44514. - test -z "$ac_c_werror_flag" ||
  44515. - test ! -s conftest.err
  44516. - } && test -s conftest$ac_exeext && {
  44517. - test "$cross_compiling" = yes ||
  44518. - $as_test_x conftest$ac_exeext
  44519. - }; then
  44520. - ac_cv_lib_regex_main=yes
  44521. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44522. + $EGREP "usleep" >/dev/null 2>&1; then :
  44523. + guile_cv_func_usleep_declared=yes
  44524. else
  44525. - $as_echo "$as_me: failed program was:" >&5
  44526. -sed 's/^/| /' conftest.$ac_ext >&5
  44527. -
  44528. - ac_cv_lib_regex_main=no
  44529. + guile_cv_func_usleep_declared=no
  44530. fi
  44531. +rm -f conftest*
  44532. -rm -rf conftest.dSYM
  44533. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44534. - conftest$ac_exeext conftest.$ac_ext
  44535. -LIBS=$ac_check_lib_save_LIBS
  44536. fi
  44537. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
  44538. -$as_echo "$ac_cv_lib_regex_main" >&6; }
  44539. -if test "x$ac_cv_lib_regex_main" = x""yes; then
  44540. - cat >>confdefs.h <<_ACEOF
  44541. -#define HAVE_LIBREGEX 1
  44542. -_ACEOF
  44543. -
  44544. - LIBS="-lregex $LIBS"
  44545. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_func_usleep_declared" >&5
  44546. +$as_echo "$guile_cv_func_usleep_declared" >&6; }
  44547. + if test x$guile_cv_func_usleep_declared = xno; then
  44548. -fi
  44549. +$as_echo "#define MISSING_USLEEP_DECL 1" >>confdefs.h
  44550. - { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  44551. -$as_echo_n "checking for regcomp... " >&6; }
  44552. -if test "${ac_cv_func_regcomp_regex+set}" = set; then
  44553. - $as_echo_n "(cached) " >&6
  44554. -else
  44555. - cat >conftest.$ac_ext <<_ACEOF
  44556. -/* confdefs.h. */
  44557. -_ACEOF
  44558. -cat confdefs.h >>conftest.$ac_ext
  44559. -cat >>conftest.$ac_ext <<_ACEOF
  44560. -/* end confdefs.h. */
  44561. -/* System header to define __stub macros and hopefully few prototypes,
  44562. - which can conflict with char regcomp(); below. */
  44563. -#include <assert.h>
  44564. -/* Override any gcc2 internal prototype to avoid an error. */
  44565. -#ifdef __cplusplus
  44566. -extern "C"
  44567. -#endif
  44568. -/* We use char because int might match the return type of a gcc2
  44569. - builtin and then its argument prototype would still apply. */
  44570. -char regcomp();
  44571. + fi
  44572. -int
  44573. -main ()
  44574. -{
  44575. -/* The GNU C library defines this for functions which it implements
  44576. - to always fail with ENOSYS. Some functions are actually named
  44577. - something starting with __ and the normal name is an alias. */
  44578. -#if defined (__stub_regcomp) || defined (__stub___regcomp)
  44579. -choke me
  44580. -#else
  44581. -regcomp();
  44582. -#endif
  44583. +ac_fn_c_check_decl "$LINENO" "strptime" "ac_cv_have_decl_strptime" "#define _GNU_SOURCE /* ask glibc to give strptime prototype */
  44584. +#include <time.h>
  44585. +"
  44586. +if test "x$ac_cv_have_decl_strptime" = x""yes; then :
  44587. + ac_have_decl=1
  44588. +else
  44589. + ac_have_decl=0
  44590. +fi
  44591. - ;
  44592. - return 0;
  44593. -}
  44594. +cat >>confdefs.h <<_ACEOF
  44595. +#define HAVE_DECL_STRPTIME $ac_have_decl
  44596. _ACEOF
  44597. -rm -f conftest.$ac_objext conftest$ac_exeext
  44598. -if { (ac_try="$ac_link"
  44599. -case "(($ac_try" in
  44600. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44601. - *) ac_try_echo=$ac_try;;
  44602. -esac
  44603. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44604. -$as_echo "$ac_try_echo") >&5
  44605. - (eval "$ac_link") 2>conftest.er1
  44606. - ac_status=$?
  44607. - grep -v '^ *+' conftest.er1 >conftest.err
  44608. - rm -f conftest.er1
  44609. - cat conftest.err >&5
  44610. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44611. - (exit $ac_status); } && {
  44612. - test -z "$ac_c_werror_flag" ||
  44613. - test ! -s conftest.err
  44614. - } && test -s conftest$ac_exeext && {
  44615. - test "$cross_compiling" = yes ||
  44616. - $as_test_x conftest$ac_exeext
  44617. - }; then
  44618. - eval "ac_cv_func_regcomp_regex=yes"
  44619. +
  44620. +
  44621. +### On some systems usleep has no return value. If it does have one,
  44622. +### we'd like to return it; otherwise, we'll fake it.
  44623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of usleep" >&5
  44624. +$as_echo_n "checking return type of usleep... " >&6; }
  44625. +if test "${guile_cv_func_usleep_return_type+set}" = set; then :
  44626. + $as_echo_n "(cached) " >&6
  44627. else
  44628. - $as_echo "$as_me: failed program was:" >&5
  44629. -sed 's/^/| /' conftest.$ac_ext >&5
  44630. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44631. +/* end confdefs.h. */
  44632. +#include <unistd.h>
  44633. - eval "ac_cv_func_regcomp_regex=no"
  44634. +_ACEOF
  44635. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44636. + $EGREP "void[ ]+usleep" >/dev/null 2>&1; then :
  44637. + guile_cv_func_usleep_return_type=void
  44638. +else
  44639. + guile_cv_func_usleep_return_type=int
  44640. fi
  44641. +rm -f conftest*
  44642. -rm -rf conftest.dSYM
  44643. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44644. - conftest$ac_exeext conftest.$ac_ext
  44645. fi
  44646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_func_usleep_return_type" >&5
  44647. +$as_echo "$guile_cv_func_usleep_return_type" >&6; }
  44648. +case "$guile_cv_func_usleep_return_type" in
  44649. + "void" )
  44650. -if eval "test \"`echo '$ac_cv_func_'regcomp'_'regex`\" = yes"; then
  44651. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  44652. -$as_echo "yes" >&6; }
  44653. - case " $LIBOBJS " in
  44654. - *" regex-posix.$ac_objext "* ) ;;
  44655. - *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  44656. - ;;
  44657. +$as_echo "#define USLEEP_RETURNS_VOID 1" >>confdefs.h
  44658. +
  44659. + ;;
  44660. esac
  44661. -else
  44662. - { $as_echo "$as_me:$LINENO: result: no" >&5
  44663. -$as_echo "no" >&6; }
  44664. +ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  44665. +if test "x$ac_cv_header_sys_un_h" = x""yes; then :
  44666. + have_sys_un_h=1
  44667. fi
  44668. +
  44669. +if test -n "$have_sys_un_h" ; then
  44670. +
  44671. +$as_echo "#define HAVE_UNIX_DOMAIN_SOCKETS 1" >>confdefs.h
  44672. +
  44673. fi
  44674. +for ac_func in socketpair getgroups setgroups setpwent pause tzset
  44675. +do :
  44676. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44677. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  44678. +eval as_val=\$$as_ac_var
  44679. + if test "x$as_val" = x""yes; then :
  44680. + cat >>confdefs.h <<_ACEOF
  44681. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44682. +_ACEOF
  44683. fi
  44684. +done
  44685. - if test "$ac_cv_func_regcomp_norx" = yes ||
  44686. - test "$ac_cv_func_regcomp_regex" = yes ||
  44687. - test "$ac_cv_func_regcomp_rx" = yes; then
  44688. -cat >>confdefs.h <<\_ACEOF
  44689. -#define HAVE_REGCOMP 1
  44690. +for ac_func in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof hstrerror inet_pton inet_ntop
  44691. +do :
  44692. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44693. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  44694. +eval as_val=\$$as_ac_var
  44695. + if test "x$as_val" = x""yes; then :
  44696. + cat >>confdefs.h <<_ACEOF
  44697. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44698. _ACEOF
  44699. - fi
  44700. - fi
  44701. fi
  44702. +done
  44703. +
  44704. +# struct sockaddr field sin_len is only present on BSD systems.
  44705. +# On 4.4BSD apparently a #define SIN_LEN exists, but on other BSD systems
  44706. +# (eg. FreeBSD 4.9) it doesn't and we must use this configure check
  44707. +ac_fn_c_check_member "$LINENO" "struct sockaddr" "sin_len" "ac_cv_member_struct_sockaddr_sin_len" "#ifdef HAVE_SYS_TYPES_H
  44708. +#include <sys/types.h>
  44709. +#endif
  44710. +#include <netinet/in.h>
  44711. +"
  44712. +if test "x$ac_cv_member_struct_sockaddr_sin_len" = x""yes; then :
  44713. +cat >>confdefs.h <<_ACEOF
  44714. +#define HAVE_STRUCT_SOCKADDR_SIN_LEN 1
  44715. +_ACEOF
  44716. +fi
  44717. -for ac_func in inet_aton putenv strerror memmove mkstemp
  44718. -do
  44719. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44720. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  44721. -$as_echo_n "checking for $ac_func... " >&6; }
  44722. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  44723. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __libc_stack_end" >&5
  44724. +$as_echo_n "checking for __libc_stack_end... " >&6; }
  44725. +if test "${guile_cv_have_libc_stack_end+set}" = set; then :
  44726. $as_echo_n "(cached) " >&6
  44727. else
  44728. - cat >conftest.$ac_ext <<_ACEOF
  44729. -/* confdefs.h. */
  44730. -_ACEOF
  44731. -cat confdefs.h >>conftest.$ac_ext
  44732. -cat >>conftest.$ac_ext <<_ACEOF
  44733. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44734. /* end confdefs.h. */
  44735. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  44736. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  44737. -#define $ac_func innocuous_$ac_func
  44738. +#include <stdio.h>
  44739. +extern char *__libc_stack_end;
  44740. +int
  44741. +main ()
  44742. +{
  44743. +printf("%p", (char*) __libc_stack_end);
  44744. + ;
  44745. + return 0;
  44746. +}
  44747. +_ACEOF
  44748. +if ac_fn_c_try_link "$LINENO"; then :
  44749. + guile_cv_have_libc_stack_end=yes
  44750. +else
  44751. + guile_cv_have_libc_stack_end=no
  44752. +fi
  44753. +rm -f core conftest.err conftest.$ac_objext \
  44754. + conftest$ac_exeext conftest.$ac_ext
  44755. +fi
  44756. -/* System header to define __stub macros and hopefully few prototypes,
  44757. - which can conflict with char $ac_func (); below.
  44758. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  44759. - <limits.h> exists even on freestanding compilers. */
  44760. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_have_libc_stack_end" >&5
  44761. +$as_echo "$guile_cv_have_libc_stack_end" >&6; }
  44762. -#ifdef __STDC__
  44763. -# include <limits.h>
  44764. -#else
  44765. -# include <assert.h>
  44766. -#endif
  44767. +if test $guile_cv_have_libc_stack_end = yes; then
  44768. -#undef $ac_func
  44769. +$as_echo "#define HAVE_LIBC_STACK_END 1" >>confdefs.h
  44770. -/* Override any GCC internal prototype to avoid an error.
  44771. - Use char because int might match the return type of a GCC
  44772. - builtin and then its argument prototype would still apply. */
  44773. -#ifdef __cplusplus
  44774. -extern "C"
  44775. -#endif
  44776. -char $ac_func ();
  44777. -/* The GNU C library defines this for functions which it implements
  44778. - to always fail with ENOSYS. Some functions are actually named
  44779. - something starting with __ and the normal name is an alias. */
  44780. -#if defined __stub_$ac_func || defined __stub___$ac_func
  44781. -choke me
  44782. -#endif
  44783. +fi
  44784. +
  44785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb.h declares h_errno" >&5
  44786. +$as_echo_n "checking whether netdb.h declares h_errno... " >&6; }
  44787. +if test "${guile_cv_have_h_errno+set}" = set; then :
  44788. + $as_echo_n "(cached) " >&6
  44789. +else
  44790. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44791. +/* end confdefs.h. */
  44792. +#include <netdb.h>
  44793. int
  44794. main ()
  44795. {
  44796. -return $ac_func ();
  44797. +int a = h_errno;
  44798. ;
  44799. return 0;
  44800. }
  44801. _ACEOF
  44802. -rm -f conftest.$ac_objext conftest$ac_exeext
  44803. -if { (ac_try="$ac_link"
  44804. -case "(($ac_try" in
  44805. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44806. - *) ac_try_echo=$ac_try;;
  44807. -esac
  44808. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44809. -$as_echo "$ac_try_echo") >&5
  44810. - (eval "$ac_link") 2>conftest.er1
  44811. - ac_status=$?
  44812. - grep -v '^ *+' conftest.er1 >conftest.err
  44813. - rm -f conftest.er1
  44814. - cat conftest.err >&5
  44815. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44816. - (exit $ac_status); } && {
  44817. - test -z "$ac_c_werror_flag" ||
  44818. - test ! -s conftest.err
  44819. - } && test -s conftest$ac_exeext && {
  44820. - test "$cross_compiling" = yes ||
  44821. - $as_test_x conftest$ac_exeext
  44822. - }; then
  44823. - eval "$as_ac_var=yes"
  44824. +if ac_fn_c_try_compile "$LINENO"; then :
  44825. + guile_cv_have_h_errno=yes
  44826. else
  44827. - $as_echo "$as_me: failed program was:" >&5
  44828. -sed 's/^/| /' conftest.$ac_ext >&5
  44829. -
  44830. - eval "$as_ac_var=no"
  44831. + guile_cv_have_h_errno=no
  44832. fi
  44833. -
  44834. -rm -rf conftest.dSYM
  44835. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44836. - conftest$ac_exeext conftest.$ac_ext
  44837. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44838. fi
  44839. -ac_res=`eval 'as_val=${'$as_ac_var'}
  44840. - $as_echo "$as_val"'`
  44841. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44842. -$as_echo "$ac_res" >&6; }
  44843. -as_val=`eval 'as_val=${'$as_ac_var'}
  44844. - $as_echo "$as_val"'`
  44845. - if test "x$as_val" = x""yes; then
  44846. - cat >>confdefs.h <<_ACEOF
  44847. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44848. -_ACEOF
  44849. -else
  44850. - case " $LIBOBJS " in
  44851. - *" $ac_func.$ac_objext "* ) ;;
  44852. - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  44853. - ;;
  44854. -esac
  44855. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_have_h_errno" >&5
  44856. +$as_echo "$guile_cv_have_h_errno" >&6; }
  44857. +if test $guile_cv_have_h_errno = yes; then
  44858. -fi
  44859. -done
  44860. +$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
  44861. +fi
  44862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uint32_t is defined" >&5
  44863. +$as_echo_n "checking whether uint32_t is defined... " >&6; }
  44864. +if test "${guile_cv_have_uint32_t+set}" = set; then :
  44865. + $as_echo_n "(cached) " >&6
  44866. +else
  44867. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44868. +/* end confdefs.h. */
  44869. +#include <sys/types.h>
  44870. + #if HAVE_STDINT_H
  44871. + #include <stdint.h>
  44872. + #endif
  44873. + #ifndef HAVE_NETDB_H
  44874. + #include <netdb.h>
  44875. + #endif
  44876. +int
  44877. +main ()
  44878. +{
  44879. +uint32_t a;
  44880. + ;
  44881. + return 0;
  44882. +}
  44883. +_ACEOF
  44884. +if ac_fn_c_try_compile "$LINENO"; then :
  44885. + guile_cv_have_uint32_t=yes
  44886. +else
  44887. + guile_cv_have_uint32_t=no
  44888. +fi
  44889. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44890. +fi
  44891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_have_uint32_t" >&5
  44892. +$as_echo "$guile_cv_have_uint32_t" >&6; }
  44893. +if test $guile_cv_have_uint32_t = yes; then
  44894. +$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
  44895. +fi
  44896. -for ac_header in floatingpoint.h ieeefp.h nan.h
  44897. -do
  44898. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44899. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44900. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  44901. -$as_echo_n "checking for $ac_header... " >&6; }
  44902. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  44903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6 support" >&5
  44904. +$as_echo_n "checking for working IPv6 support... " >&6; }
  44905. +if test "${guile_cv_have_ipv6+set}" = set; then :
  44906. $as_echo_n "(cached) " >&6
  44907. -fi
  44908. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  44909. - $as_echo "$as_val"'`
  44910. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44911. -$as_echo "$ac_res" >&6; }
  44912. else
  44913. - # Is the header compilable?
  44914. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  44915. -$as_echo_n "checking $ac_header usability... " >&6; }
  44916. -cat >conftest.$ac_ext <<_ACEOF
  44917. -/* confdefs.h. */
  44918. -_ACEOF
  44919. -cat confdefs.h >>conftest.$ac_ext
  44920. -cat >>conftest.$ac_ext <<_ACEOF
  44921. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44922. /* end confdefs.h. */
  44923. -$ac_includes_default
  44924. -#include <$ac_header>
  44925. +
  44926. +#ifdef HAVE_SYS_TYPES_H
  44927. +#include <sys/types.h>
  44928. +#endif
  44929. +#include <netinet/in.h>
  44930. +#include <sys/socket.h>
  44931. +int
  44932. +main ()
  44933. +{
  44934. +struct sockaddr_in6 a; a.sin6_family = AF_INET6;
  44935. + ;
  44936. + return 0;
  44937. +}
  44938. _ACEOF
  44939. -rm -f conftest.$ac_objext
  44940. -if { (ac_try="$ac_compile"
  44941. -case "(($ac_try" in
  44942. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44943. - *) ac_try_echo=$ac_try;;
  44944. -esac
  44945. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44946. -$as_echo "$ac_try_echo") >&5
  44947. - (eval "$ac_compile") 2>conftest.er1
  44948. - ac_status=$?
  44949. - grep -v '^ *+' conftest.er1 >conftest.err
  44950. - rm -f conftest.er1
  44951. - cat conftest.err >&5
  44952. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44953. - (exit $ac_status); } && {
  44954. - test -z "$ac_c_werror_flag" ||
  44955. - test ! -s conftest.err
  44956. - } && test -s conftest.$ac_objext; then
  44957. - ac_header_compiler=yes
  44958. +if ac_fn_c_try_compile "$LINENO"; then :
  44959. + guile_cv_have_ipv6=yes
  44960. else
  44961. - $as_echo "$as_me: failed program was:" >&5
  44962. -sed 's/^/| /' conftest.$ac_ext >&5
  44963. -
  44964. - ac_header_compiler=no
  44965. + guile_cv_have_ipv6=no
  44966. fi
  44967. -
  44968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44969. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44970. -$as_echo "$ac_header_compiler" >&6; }
  44971. +fi
  44972. -# Is the header present?
  44973. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  44974. -$as_echo_n "checking $ac_header presence... " >&6; }
  44975. -cat >conftest.$ac_ext <<_ACEOF
  44976. -/* confdefs.h. */
  44977. -_ACEOF
  44978. -cat confdefs.h >>conftest.$ac_ext
  44979. -cat >>conftest.$ac_ext <<_ACEOF
  44980. -/* end confdefs.h. */
  44981. -#include <$ac_header>
  44982. -_ACEOF
  44983. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  44984. -case "(($ac_try" in
  44985. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44986. - *) ac_try_echo=$ac_try;;
  44987. -esac
  44988. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44989. -$as_echo "$ac_try_echo") >&5
  44990. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44991. - ac_status=$?
  44992. - grep -v '^ *+' conftest.er1 >conftest.err
  44993. - rm -f conftest.er1
  44994. - cat conftest.err >&5
  44995. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44996. - (exit $ac_status); } >/dev/null && {
  44997. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44998. - test ! -s conftest.err
  44999. - }; then
  45000. - ac_header_preproc=yes
  45001. -else
  45002. - $as_echo "$as_me: failed program was:" >&5
  45003. -sed 's/^/| /' conftest.$ac_ext >&5
  45004. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_have_ipv6" >&5
  45005. +$as_echo "$guile_cv_have_ipv6" >&6; }
  45006. +if test $guile_cv_have_ipv6 = yes; then
  45007. - ac_header_preproc=no
  45008. -fi
  45009. +$as_echo "#define HAVE_IPV6 1" >>confdefs.h
  45010. -rm -f conftest.err conftest.$ac_ext
  45011. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45012. -$as_echo "$ac_header_preproc" >&6; }
  45013. +fi
  45014. -# So? What about this header?
  45015. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45016. - yes:no: )
  45017. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  45018. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45019. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  45020. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  45021. - ac_header_preproc=yes
  45022. - ;;
  45023. - no:yes:* )
  45024. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  45025. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  45026. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  45027. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  45028. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  45029. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  45030. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  45031. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  45032. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  45033. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  45034. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  45035. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  45036. - ( cat <<\_ASBOX
  45037. -## -------------------------------- ##
  45038. -## Report this to bug-guile@gnu.org ##
  45039. -## -------------------------------- ##
  45040. -_ASBOX
  45041. - ) | sed "s/^/$as_me: WARNING: /" >&2
  45042. - ;;
  45043. -esac
  45044. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  45045. -$as_echo_n "checking for $ac_header... " >&6; }
  45046. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  45047. +# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
  45048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sockaddr_in6 has sin6_scope_id" >&5
  45049. +$as_echo_n "checking whether sockaddr_in6 has sin6_scope_id... " >&6; }
  45050. +if test "${guile_cv_have_sin6_scope_id+set}" = set; then :
  45051. $as_echo_n "(cached) " >&6
  45052. else
  45053. - eval "$as_ac_Header=\$ac_header_preproc"
  45054. -fi
  45055. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  45056. - $as_echo "$as_val"'`
  45057. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45058. -$as_echo "$ac_res" >&6; }
  45059. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45060. +/* end confdefs.h. */
  45061. -fi
  45062. -as_val=`eval 'as_val=${'$as_ac_Header'}
  45063. - $as_echo "$as_val"'`
  45064. - if test "x$as_val" = x""yes; then
  45065. - cat >>confdefs.h <<_ACEOF
  45066. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45067. +#ifdef HAVE_SYS_TYPES_H
  45068. +#include <sys/types.h>
  45069. +#endif
  45070. +#include <netinet/in.h>
  45071. +int
  45072. +main ()
  45073. +{
  45074. +struct sockaddr_in6 sok; sok.sin6_scope_id = 0;
  45075. + ;
  45076. + return 0;
  45077. +}
  45078. _ACEOF
  45079. -
  45080. +if ac_fn_c_try_compile "$LINENO"; then :
  45081. + guile_cv_have_sin6_scope_id=yes
  45082. +else
  45083. + guile_cv_have_sin6_scope_id=no
  45084. +fi
  45085. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45086. fi
  45087. -done
  45088. -
  45089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_have_sin6_scope_id" >&5
  45090. +$as_echo "$guile_cv_have_sin6_scope_id" >&6; }
  45091. +if test $guile_cv_have_sin6_scope_id = yes; then
  45092. -# Reasons for testing:
  45093. -# asinh, acosh, atanh, trunc - C99 standard, generally not available on
  45094. -# older systems
  45095. -# sincos - GLIBC extension
  45096. -#
  45097. +$as_echo "#define HAVE_SIN6_SCOPE_ID 1" >>confdefs.h
  45098. +fi
  45099. +# struct sockaddr_in6 field sin_len is only present on BSD systems
  45100. +ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#ifdef HAVE_SYS_TYPES_H
  45101. +#include <sys/types.h>
  45102. +#endif
  45103. +#include <netinet/in.h>
  45104. +"
  45105. +if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = x""yes; then :
  45106. +cat >>confdefs.h <<_ACEOF
  45107. +#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
  45108. +_ACEOF
  45109. +fi
  45110. -for ac_func in asinh acosh atanh copysign finite sincos trunc
  45111. -do
  45112. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  45113. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  45114. -$as_echo_n "checking for $ac_func... " >&6; }
  45115. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  45116. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
  45117. +$as_echo_n "checking whether localtime caches TZ... " >&6; }
  45118. +if test "${guile_cv_localtime_cache+set}" = set; then :
  45119. $as_echo_n "(cached) " >&6
  45120. else
  45121. - cat >conftest.$ac_ext <<_ACEOF
  45122. -/* confdefs.h. */
  45123. -_ACEOF
  45124. -cat confdefs.h >>conftest.$ac_ext
  45125. -cat >>conftest.$ac_ext <<_ACEOF
  45126. + if test x$ac_cv_func_tzset = xyes; then
  45127. +if test "$cross_compiling" = yes; then :
  45128. + # If we have tzset, assume the worst when cross-compiling.
  45129. +guile_cv_localtime_cache=yes
  45130. +else
  45131. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45132. /* end confdefs.h. */
  45133. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  45134. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  45135. -#define $ac_func innocuous_$ac_func
  45136. +#include <time.h>
  45137. +#if STDC_HEADERS
  45138. +# include <stdlib.h>
  45139. +#endif
  45140. +extern char **environ;
  45141. +unset_TZ ()
  45142. +{
  45143. + char **from, **to;
  45144. + for (to = from = environ; (*to = *from); from++)
  45145. + if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
  45146. + to++;
  45147. +}
  45148. +char TZ_GMT0[] = "TZ=GMT0";
  45149. +char TZ_PST8[] = "TZ=PST8";
  45150. +main()
  45151. +{
  45152. + time_t now = time ((time_t *) 0);
  45153. + int hour_GMT0, hour_unset;
  45154. + if (putenv (TZ_GMT0) != 0)
  45155. + exit (1);
  45156. + hour_GMT0 = localtime (&now)->tm_hour;
  45157. + unset_TZ ();
  45158. + hour_unset = localtime (&now)->tm_hour;
  45159. + if (putenv (TZ_PST8) != 0)
  45160. + exit (1);
  45161. + if (localtime (&now)->tm_hour == hour_GMT0)
  45162. + exit (1);
  45163. + unset_TZ ();
  45164. + if (localtime (&now)->tm_hour != hour_unset)
  45165. + exit (1);
  45166. + exit (0);
  45167. +}
  45168. +_ACEOF
  45169. +if ac_fn_c_try_run "$LINENO"; then :
  45170. + guile_cv_localtime_cache=no
  45171. +else
  45172. + guile_cv_localtime_cache=yes
  45173. +fi
  45174. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  45175. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  45176. +fi
  45177. -/* System header to define __stub macros and hopefully few prototypes,
  45178. - which can conflict with char $ac_func (); below.
  45179. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  45180. - <limits.h> exists even on freestanding compilers. */
  45181. +else
  45182. + # If we lack tzset, report that localtime does not cache TZ,
  45183. + # since we can't invalidate the cache if we don't have tzset.
  45184. + guile_cv_localtime_cache=no
  45185. +fi
  45186. +fi
  45187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_localtime_cache" >&5
  45188. +$as_echo "$guile_cv_localtime_cache" >&6; }
  45189. +if test $guile_cv_localtime_cache = yes; then
  45190. -#ifdef __STDC__
  45191. -# include <limits.h>
  45192. -#else
  45193. -# include <assert.h>
  45194. -#endif
  45195. +$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
  45196. -#undef $ac_func
  45197. +fi
  45198. -/* Override any GCC internal prototype to avoid an error.
  45199. - Use char because int might match the return type of a GCC
  45200. - builtin and then its argument prototype would still apply. */
  45201. +if test "$enable_regex" = yes; then
  45202. + if test "$ac_cv_header_regex_h" = yes ||
  45203. + test "$ac_cv_header_rxposix_h" = yes ||
  45204. + test "$ac_cv_header_rx_rxposix_h" = yes; then
  45205. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
  45206. +$as_echo_n "checking for regcomp... " >&6; }
  45207. +if test "${ac_cv_func_regcomp_norx+set}" = set; then :
  45208. + $as_echo_n "(cached) " >&6
  45209. +else
  45210. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45211. +/* end confdefs.h. */
  45212. +/* System header to define __stub macros and hopefully few prototypes,
  45213. + which can conflict with char regcomp(); below. */
  45214. +#include <assert.h>
  45215. +/* Override any gcc2 internal prototype to avoid an error. */
  45216. #ifdef __cplusplus
  45217. extern "C"
  45218. #endif
  45219. -char $ac_func ();
  45220. +/* We use char because int might match the return type of a gcc2
  45221. + builtin and then its argument prototype would still apply. */
  45222. +char regcomp();
  45223. +
  45224. +int
  45225. +main ()
  45226. +{
  45227. +
  45228. /* The GNU C library defines this for functions which it implements
  45229. to always fail with ENOSYS. Some functions are actually named
  45230. something starting with __ and the normal name is an alias. */
  45231. -#if defined __stub_$ac_func || defined __stub___$ac_func
  45232. +#if defined (__stub_regcomp) || defined (__stub___regcomp)
  45233. choke me
  45234. +#else
  45235. +regcomp();
  45236. #endif
  45237. -int
  45238. -main ()
  45239. -{
  45240. -return $ac_func ();
  45241. ;
  45242. return 0;
  45243. }
  45244. _ACEOF
  45245. -rm -f conftest.$ac_objext conftest$ac_exeext
  45246. -if { (ac_try="$ac_link"
  45247. -case "(($ac_try" in
  45248. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45249. - *) ac_try_echo=$ac_try;;
  45250. -esac
  45251. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45252. -$as_echo "$ac_try_echo") >&5
  45253. - (eval "$ac_link") 2>conftest.er1
  45254. - ac_status=$?
  45255. - grep -v '^ *+' conftest.er1 >conftest.err
  45256. - rm -f conftest.er1
  45257. - cat conftest.err >&5
  45258. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45259. - (exit $ac_status); } && {
  45260. - test -z "$ac_c_werror_flag" ||
  45261. - test ! -s conftest.err
  45262. - } && test -s conftest$ac_exeext && {
  45263. - test "$cross_compiling" = yes ||
  45264. - $as_test_x conftest$ac_exeext
  45265. - }; then
  45266. - eval "$as_ac_var=yes"
  45267. +if ac_fn_c_try_link "$LINENO"; then :
  45268. + eval "ac_cv_func_regcomp_norx=yes"
  45269. else
  45270. - $as_echo "$as_me: failed program was:" >&5
  45271. -sed 's/^/| /' conftest.$ac_ext >&5
  45272. -
  45273. - eval "$as_ac_var=no"
  45274. -fi
  45275. -
  45276. -rm -rf conftest.dSYM
  45277. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45278. - conftest$ac_exeext conftest.$ac_ext
  45279. + eval "ac_cv_func_regcomp_norx=no"
  45280. fi
  45281. -ac_res=`eval 'as_val=${'$as_ac_var'}
  45282. - $as_echo "$as_val"'`
  45283. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45284. -$as_echo "$ac_res" >&6; }
  45285. -as_val=`eval 'as_val=${'$as_ac_var'}
  45286. - $as_echo "$as_val"'`
  45287. - if test "x$as_val" = x""yes; then
  45288. - cat >>confdefs.h <<_ACEOF
  45289. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  45290. -_ACEOF
  45291. -
  45292. +rm -f core conftest.err conftest.$ac_objext \
  45293. + conftest$ac_exeext conftest.$ac_ext
  45294. fi
  45295. -done
  45296. -
  45297. -# C99 specifies isinf and isnan as macros.
  45298. -# HP-UX provides only macros, no functions.
  45299. -# glibc 2.3.2 provides both macros and functions.
  45300. -# IRIX 6.5 and Solaris 8 only provide functions.
  45301. -#
  45302. -# The following tests detect isinf and isnan either as functions or as
  45303. -# macros from <math.h>. Plain AC_CHECK_FUNCS is insufficient, it doesn't
  45304. -# use <math.h> so doesn't detect on macro-only systems like HP-UX.
  45305. -#
  45306. -{ $as_echo "$as_me:$LINENO: checking for isinf" >&5
  45307. -$as_echo_n "checking for isinf... " >&6; }
  45308. -cat >conftest.$ac_ext <<_ACEOF
  45309. -/* confdefs.h. */
  45310. -_ACEOF
  45311. -cat confdefs.h >>conftest.$ac_ext
  45312. -cat >>conftest.$ac_ext <<_ACEOF
  45313. -/* end confdefs.h. */
  45314. -#include <math.h>
  45315. -volatile double x = 0.0;
  45316. -int main () { return (isinf(x) != 0); }
  45317. -_ACEOF
  45318. -rm -f conftest.$ac_objext conftest$ac_exeext
  45319. -if { (ac_try="$ac_link"
  45320. -case "(($ac_try" in
  45321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45322. - *) ac_try_echo=$ac_try;;
  45323. -esac
  45324. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45325. -$as_echo "$ac_try_echo") >&5
  45326. - (eval "$ac_link") 2>conftest.er1
  45327. - ac_status=$?
  45328. - grep -v '^ *+' conftest.er1 >conftest.err
  45329. - rm -f conftest.er1
  45330. - cat conftest.err >&5
  45331. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45332. - (exit $ac_status); } && {
  45333. - test -z "$ac_c_werror_flag" ||
  45334. - test ! -s conftest.err
  45335. - } && test -s conftest$ac_exeext && {
  45336. - test "$cross_compiling" = yes ||
  45337. - $as_test_x conftest$ac_exeext
  45338. - }; then
  45339. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  45340. +if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
  45341. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45342. $as_echo "yes" >&6; }
  45343. -
  45344. -cat >>confdefs.h <<\_ACEOF
  45345. -#define HAVE_ISINF 1
  45346. -_ACEOF
  45347. -
  45348. -else
  45349. - $as_echo "$as_me: failed program was:" >&5
  45350. -sed 's/^/| /' conftest.$ac_ext >&5
  45351. -
  45352. - { $as_echo "$as_me:$LINENO: result: no" >&5
  45353. -$as_echo "no" >&6; }
  45354. -fi
  45355. -
  45356. -rm -rf conftest.dSYM
  45357. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45358. - conftest$ac_exeext conftest.$ac_ext
  45359. -{ $as_echo "$as_me:$LINENO: checking for isnan" >&5
  45360. -$as_echo_n "checking for isnan... " >&6; }
  45361. -cat >conftest.$ac_ext <<_ACEOF
  45362. -/* confdefs.h. */
  45363. -_ACEOF
  45364. -cat confdefs.h >>conftest.$ac_ext
  45365. -cat >>conftest.$ac_ext <<_ACEOF
  45366. -/* end confdefs.h. */
  45367. -#include <math.h>
  45368. -volatile double x = 0.0;
  45369. -int main () { return (isnan(x) != 0); }
  45370. -_ACEOF
  45371. -rm -f conftest.$ac_objext conftest$ac_exeext
  45372. -if { (ac_try="$ac_link"
  45373. -case "(($ac_try" in
  45374. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45375. - *) ac_try_echo=$ac_try;;
  45376. + case " $LIBOBJS " in
  45377. + *" regex-posix.$ac_objext "* ) ;;
  45378. + *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  45379. + ;;
  45380. esac
  45381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45382. -$as_echo "$ac_try_echo") >&5
  45383. - (eval "$ac_link") 2>conftest.er1
  45384. - ac_status=$?
  45385. - grep -v '^ *+' conftest.er1 >conftest.err
  45386. - rm -f conftest.er1
  45387. - cat conftest.err >&5
  45388. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45389. - (exit $ac_status); } && {
  45390. - test -z "$ac_c_werror_flag" ||
  45391. - test ! -s conftest.err
  45392. - } && test -s conftest$ac_exeext && {
  45393. - test "$cross_compiling" = yes ||
  45394. - $as_test_x conftest$ac_exeext
  45395. - }; then
  45396. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  45397. -$as_echo "yes" >&6; }
  45398. -
  45399. -cat >>confdefs.h <<\_ACEOF
  45400. -#define HAVE_ISNAN 1
  45401. -_ACEOF
  45402. else
  45403. - $as_echo "$as_me: failed program was:" >&5
  45404. -sed 's/^/| /' conftest.$ac_ext >&5
  45405. -
  45406. - { $as_echo "$as_me:$LINENO: result: no" >&5
  45407. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45408. $as_echo "no" >&6; }
  45409. -fi
  45410. -
  45411. -rm -rf conftest.dSYM
  45412. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45413. - conftest$ac_exeext conftest.$ac_ext
  45414. -
  45415. -# We must have a proper stack-using alloca in order for stack-copying
  45416. -# continuations to work properly. If we don't find a native one,
  45417. -# abort.
  45418. -
  45419. -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  45420. -# for constant arguments. Useless!
  45421. -{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  45422. -$as_echo_n "checking for working alloca.h... " >&6; }
  45423. -if test "${ac_cv_working_alloca_h+set}" = set; then
  45424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrx" >&5
  45425. +$as_echo_n "checking for main in -lrx... " >&6; }
  45426. +if test "${ac_cv_lib_rx_main+set}" = set; then :
  45427. $as_echo_n "(cached) " >&6
  45428. else
  45429. - cat >conftest.$ac_ext <<_ACEOF
  45430. -/* confdefs.h. */
  45431. -_ACEOF
  45432. -cat confdefs.h >>conftest.$ac_ext
  45433. -cat >>conftest.$ac_ext <<_ACEOF
  45434. + ac_check_lib_save_LIBS=$LIBS
  45435. +LIBS="-lrx $LIBS"
  45436. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45437. /* end confdefs.h. */
  45438. -#include <alloca.h>
  45439. +
  45440. +
  45441. int
  45442. main ()
  45443. {
  45444. -char *p = (char *) alloca (2 * sizeof (int));
  45445. - if (p) return 0;
  45446. +return main ();
  45447. ;
  45448. return 0;
  45449. }
  45450. _ACEOF
  45451. -rm -f conftest.$ac_objext conftest$ac_exeext
  45452. -if { (ac_try="$ac_link"
  45453. -case "(($ac_try" in
  45454. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45455. - *) ac_try_echo=$ac_try;;
  45456. -esac
  45457. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45458. -$as_echo "$ac_try_echo") >&5
  45459. - (eval "$ac_link") 2>conftest.er1
  45460. - ac_status=$?
  45461. - grep -v '^ *+' conftest.er1 >conftest.err
  45462. - rm -f conftest.er1
  45463. - cat conftest.err >&5
  45464. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45465. - (exit $ac_status); } && {
  45466. - test -z "$ac_c_werror_flag" ||
  45467. - test ! -s conftest.err
  45468. - } && test -s conftest$ac_exeext && {
  45469. - test "$cross_compiling" = yes ||
  45470. - $as_test_x conftest$ac_exeext
  45471. - }; then
  45472. - ac_cv_working_alloca_h=yes
  45473. -else
  45474. - $as_echo "$as_me: failed program was:" >&5
  45475. -sed 's/^/| /' conftest.$ac_ext >&5
  45476. -
  45477. - ac_cv_working_alloca_h=no
  45478. +if ac_fn_c_try_link "$LINENO"; then :
  45479. + ac_cv_lib_rx_main=yes
  45480. +else
  45481. + ac_cv_lib_rx_main=no
  45482. fi
  45483. -
  45484. -rm -rf conftest.dSYM
  45485. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45486. - conftest$ac_exeext conftest.$ac_ext
  45487. +rm -f core conftest.err conftest.$ac_objext \
  45488. + conftest$ac_exeext conftest.$ac_ext
  45489. +LIBS=$ac_check_lib_save_LIBS
  45490. fi
  45491. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  45492. -$as_echo "$ac_cv_working_alloca_h" >&6; }
  45493. -if test $ac_cv_working_alloca_h = yes; then
  45494. -
  45495. -cat >>confdefs.h <<\_ACEOF
  45496. -#define HAVE_ALLOCA_H 1
  45497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rx_main" >&5
  45498. +$as_echo "$ac_cv_lib_rx_main" >&6; }
  45499. +if test "x$ac_cv_lib_rx_main" = x""yes; then :
  45500. + cat >>confdefs.h <<_ACEOF
  45501. +#define HAVE_LIBRX 1
  45502. _ACEOF
  45503. + LIBS="-lrx $LIBS"
  45504. +
  45505. fi
  45506. -{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
  45507. -$as_echo_n "checking for alloca... " >&6; }
  45508. -if test "${ac_cv_func_alloca_works+set}" = set; then
  45509. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
  45510. +$as_echo_n "checking for regcomp... " >&6; }
  45511. +if test "${ac_cv_func_regcomp_rx+set}" = set; then :
  45512. $as_echo_n "(cached) " >&6
  45513. else
  45514. - cat >conftest.$ac_ext <<_ACEOF
  45515. -/* confdefs.h. */
  45516. -_ACEOF
  45517. -cat confdefs.h >>conftest.$ac_ext
  45518. -cat >>conftest.$ac_ext <<_ACEOF
  45519. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45520. /* end confdefs.h. */
  45521. -#ifdef __GNUC__
  45522. -# define alloca __builtin_alloca
  45523. -#else
  45524. -# ifdef _MSC_VER
  45525. -# include <malloc.h>
  45526. -# define alloca _alloca
  45527. -# else
  45528. -# ifdef HAVE_ALLOCA_H
  45529. -# include <alloca.h>
  45530. -# else
  45531. -# ifdef _AIX
  45532. - #pragma alloca
  45533. -# else
  45534. -# ifndef alloca /* predefined by HP cc +Olibcalls */
  45535. -char *alloca ();
  45536. -# endif
  45537. -# endif
  45538. -# endif
  45539. -# endif
  45540. +/* System header to define __stub macros and hopefully few prototypes,
  45541. + which can conflict with char regcomp(); below. */
  45542. +#include <assert.h>
  45543. +/* Override any gcc2 internal prototype to avoid an error. */
  45544. +#ifdef __cplusplus
  45545. +extern "C"
  45546. #endif
  45547. +/* We use char because int might match the return type of a gcc2
  45548. + builtin and then its argument prototype would still apply. */
  45549. +char regcomp();
  45550. int
  45551. main ()
  45552. {
  45553. -char *p = (char *) alloca (1);
  45554. - if (p) return 0;
  45555. +
  45556. +/* The GNU C library defines this for functions which it implements
  45557. + to always fail with ENOSYS. Some functions are actually named
  45558. + something starting with __ and the normal name is an alias. */
  45559. +#if defined (__stub_regcomp) || defined (__stub___regcomp)
  45560. +choke me
  45561. +#else
  45562. +regcomp();
  45563. +#endif
  45564. +
  45565. ;
  45566. return 0;
  45567. }
  45568. _ACEOF
  45569. -rm -f conftest.$ac_objext conftest$ac_exeext
  45570. -if { (ac_try="$ac_link"
  45571. -case "(($ac_try" in
  45572. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45573. - *) ac_try_echo=$ac_try;;
  45574. -esac
  45575. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45576. -$as_echo "$ac_try_echo") >&5
  45577. - (eval "$ac_link") 2>conftest.er1
  45578. - ac_status=$?
  45579. - grep -v '^ *+' conftest.er1 >conftest.err
  45580. - rm -f conftest.er1
  45581. - cat conftest.err >&5
  45582. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45583. - (exit $ac_status); } && {
  45584. - test -z "$ac_c_werror_flag" ||
  45585. - test ! -s conftest.err
  45586. - } && test -s conftest$ac_exeext && {
  45587. - test "$cross_compiling" = yes ||
  45588. - $as_test_x conftest$ac_exeext
  45589. - }; then
  45590. - ac_cv_func_alloca_works=yes
  45591. +if ac_fn_c_try_link "$LINENO"; then :
  45592. + eval "ac_cv_func_regcomp_rx=yes"
  45593. else
  45594. - $as_echo "$as_me: failed program was:" >&5
  45595. -sed 's/^/| /' conftest.$ac_ext >&5
  45596. -
  45597. - ac_cv_func_alloca_works=no
  45598. + eval "ac_cv_func_regcomp_rx=no"
  45599. fi
  45600. -
  45601. -rm -rf conftest.dSYM
  45602. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45603. - conftest$ac_exeext conftest.$ac_ext
  45604. +rm -f core conftest.err conftest.$ac_objext \
  45605. + conftest$ac_exeext conftest.$ac_ext
  45606. fi
  45607. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  45608. -$as_echo "$ac_cv_func_alloca_works" >&6; }
  45609. -if test $ac_cv_func_alloca_works = yes; then
  45610. -
  45611. -cat >>confdefs.h <<\_ACEOF
  45612. -#define HAVE_ALLOCA 1
  45613. -_ACEOF
  45614. +if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
  45615. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45616. +$as_echo "yes" >&6; }
  45617. + case " $LIBOBJS " in
  45618. + *" regex-posix.$ac_objext "* ) ;;
  45619. + *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  45620. + ;;
  45621. +esac
  45622. else
  45623. - # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  45624. -# that cause trouble. Some versions do not even contain alloca or
  45625. -# contain a buggy version. If you still want to use their alloca,
  45626. -# use ar to extract alloca.o from them instead of compiling alloca.c.
  45627. -
  45628. -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  45629. -
  45630. -cat >>confdefs.h <<\_ACEOF
  45631. -#define C_ALLOCA 1
  45632. -_ACEOF
  45633. -
  45634. -
  45635. -{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  45636. -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  45637. -if test "${ac_cv_os_cray+set}" = set; then
  45638. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45639. +$as_echo "no" >&6; }
  45640. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lregex" >&5
  45641. +$as_echo_n "checking for main in -lregex... " >&6; }
  45642. +if test "${ac_cv_lib_regex_main+set}" = set; then :
  45643. $as_echo_n "(cached) " >&6
  45644. else
  45645. - cat >conftest.$ac_ext <<_ACEOF
  45646. -/* confdefs.h. */
  45647. -_ACEOF
  45648. -cat confdefs.h >>conftest.$ac_ext
  45649. -cat >>conftest.$ac_ext <<_ACEOF
  45650. + ac_check_lib_save_LIBS=$LIBS
  45651. +LIBS="-lregex $LIBS"
  45652. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45653. /* end confdefs.h. */
  45654. -#if defined CRAY && ! defined CRAY2
  45655. -webecray
  45656. -#else
  45657. -wenotbecray
  45658. -#endif
  45659. +
  45660. +int
  45661. +main ()
  45662. +{
  45663. +return main ();
  45664. + ;
  45665. + return 0;
  45666. +}
  45667. _ACEOF
  45668. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  45669. - $EGREP "webecray" >/dev/null 2>&1; then
  45670. - ac_cv_os_cray=yes
  45671. +if ac_fn_c_try_link "$LINENO"; then :
  45672. + ac_cv_lib_regex_main=yes
  45673. else
  45674. - ac_cv_os_cray=no
  45675. + ac_cv_lib_regex_main=no
  45676. fi
  45677. -rm -f conftest*
  45678. +rm -f core conftest.err conftest.$ac_objext \
  45679. + conftest$ac_exeext conftest.$ac_ext
  45680. +LIBS=$ac_check_lib_save_LIBS
  45681. +fi
  45682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_main" >&5
  45683. +$as_echo "$ac_cv_lib_regex_main" >&6; }
  45684. +if test "x$ac_cv_lib_regex_main" = x""yes; then :
  45685. + cat >>confdefs.h <<_ACEOF
  45686. +#define HAVE_LIBREGEX 1
  45687. +_ACEOF
  45688. +
  45689. + LIBS="-lregex $LIBS"
  45690. fi
  45691. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  45692. -$as_echo "$ac_cv_os_cray" >&6; }
  45693. -if test $ac_cv_os_cray = yes; then
  45694. - for ac_func in _getb67 GETB67 getb67; do
  45695. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  45696. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  45697. -$as_echo_n "checking for $ac_func... " >&6; }
  45698. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  45699. +
  45700. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
  45701. +$as_echo_n "checking for regcomp... " >&6; }
  45702. +if test "${ac_cv_func_regcomp_regex+set}" = set; then :
  45703. $as_echo_n "(cached) " >&6
  45704. else
  45705. - cat >conftest.$ac_ext <<_ACEOF
  45706. -/* confdefs.h. */
  45707. -_ACEOF
  45708. -cat confdefs.h >>conftest.$ac_ext
  45709. -cat >>conftest.$ac_ext <<_ACEOF
  45710. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45711. /* end confdefs.h. */
  45712. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  45713. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  45714. -#define $ac_func innocuous_$ac_func
  45715. -
  45716. /* System header to define __stub macros and hopefully few prototypes,
  45717. - which can conflict with char $ac_func (); below.
  45718. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  45719. - <limits.h> exists even on freestanding compilers. */
  45720. -
  45721. -#ifdef __STDC__
  45722. -# include <limits.h>
  45723. -#else
  45724. -# include <assert.h>
  45725. -#endif
  45726. -
  45727. -#undef $ac_func
  45728. -
  45729. -/* Override any GCC internal prototype to avoid an error.
  45730. - Use char because int might match the return type of a GCC
  45731. - builtin and then its argument prototype would still apply. */
  45732. + which can conflict with char regcomp(); below. */
  45733. +#include <assert.h>
  45734. +/* Override any gcc2 internal prototype to avoid an error. */
  45735. #ifdef __cplusplus
  45736. extern "C"
  45737. #endif
  45738. -char $ac_func ();
  45739. +/* We use char because int might match the return type of a gcc2
  45740. + builtin and then its argument prototype would still apply. */
  45741. +char regcomp();
  45742. +
  45743. +int
  45744. +main ()
  45745. +{
  45746. +
  45747. /* The GNU C library defines this for functions which it implements
  45748. to always fail with ENOSYS. Some functions are actually named
  45749. something starting with __ and the normal name is an alias. */
  45750. -#if defined __stub_$ac_func || defined __stub___$ac_func
  45751. +#if defined (__stub_regcomp) || defined (__stub___regcomp)
  45752. choke me
  45753. +#else
  45754. +regcomp();
  45755. #endif
  45756. -int
  45757. -main ()
  45758. -{
  45759. -return $ac_func ();
  45760. ;
  45761. return 0;
  45762. }
  45763. _ACEOF
  45764. -rm -f conftest.$ac_objext conftest$ac_exeext
  45765. -if { (ac_try="$ac_link"
  45766. -case "(($ac_try" in
  45767. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45768. - *) ac_try_echo=$ac_try;;
  45769. -esac
  45770. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45771. -$as_echo "$ac_try_echo") >&5
  45772. - (eval "$ac_link") 2>conftest.er1
  45773. - ac_status=$?
  45774. - grep -v '^ *+' conftest.er1 >conftest.err
  45775. - rm -f conftest.er1
  45776. - cat conftest.err >&5
  45777. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45778. - (exit $ac_status); } && {
  45779. - test -z "$ac_c_werror_flag" ||
  45780. - test ! -s conftest.err
  45781. - } && test -s conftest$ac_exeext && {
  45782. - test "$cross_compiling" = yes ||
  45783. - $as_test_x conftest$ac_exeext
  45784. - }; then
  45785. - eval "$as_ac_var=yes"
  45786. +if ac_fn_c_try_link "$LINENO"; then :
  45787. + eval "ac_cv_func_regcomp_regex=yes"
  45788. else
  45789. - $as_echo "$as_me: failed program was:" >&5
  45790. -sed 's/^/| /' conftest.$ac_ext >&5
  45791. + eval "ac_cv_func_regcomp_regex=no"
  45792. +fi
  45793. +rm -f core conftest.err conftest.$ac_objext \
  45794. + conftest$ac_exeext conftest.$ac_ext
  45795. +fi
  45796. +
  45797. +if eval "test \"`echo '$ac_cv_func_'regcomp'_'regex`\" = yes"; then
  45798. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45799. +$as_echo "yes" >&6; }
  45800. + case " $LIBOBJS " in
  45801. + *" regex-posix.$ac_objext "* ) ;;
  45802. + *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  45803. + ;;
  45804. +esac
  45805. - eval "$as_ac_var=no"
  45806. +else
  45807. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  45808. +$as_echo "no" >&6; }
  45809. fi
  45810. -rm -rf conftest.dSYM
  45811. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45812. - conftest$ac_exeext conftest.$ac_ext
  45813. fi
  45814. -ac_res=`eval 'as_val=${'$as_ac_var'}
  45815. - $as_echo "$as_val"'`
  45816. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45817. -$as_echo "$ac_res" >&6; }
  45818. -as_val=`eval 'as_val=${'$as_ac_var'}
  45819. - $as_echo "$as_val"'`
  45820. - if test "x$as_val" = x""yes; then
  45821. -cat >>confdefs.h <<_ACEOF
  45822. -#define CRAY_STACKSEG_END $ac_func
  45823. -_ACEOF
  45824. - break
  45825. fi
  45826. - done
  45827. + if test "$ac_cv_func_regcomp_norx" = yes ||
  45828. + test "$ac_cv_func_regcomp_regex" = yes ||
  45829. + test "$ac_cv_func_regcomp_rx" = yes; then
  45830. +
  45831. +$as_echo "#define HAVE_REGCOMP 1" >>confdefs.h
  45832. +
  45833. + fi
  45834. + fi
  45835. fi
  45836. -{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  45837. -$as_echo_n "checking stack direction for C alloca... " >&6; }
  45838. -if test "${ac_cv_c_stack_direction+set}" = set; then
  45839. - $as_echo_n "(cached) " >&6
  45840. -else
  45841. - if test "$cross_compiling" = yes; then
  45842. - ac_cv_c_stack_direction=0
  45843. -else
  45844. - cat >conftest.$ac_ext <<_ACEOF
  45845. -/* confdefs.h. */
  45846. +for ac_func in inet_aton putenv strerror memmove mkstemp
  45847. +do :
  45848. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  45849. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  45850. +eval as_val=\$$as_ac_var
  45851. + if test "x$as_val" = x""yes; then :
  45852. + cat >>confdefs.h <<_ACEOF
  45853. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  45854. _ACEOF
  45855. -cat confdefs.h >>conftest.$ac_ext
  45856. -cat >>conftest.$ac_ext <<_ACEOF
  45857. -/* end confdefs.h. */
  45858. -$ac_includes_default
  45859. -int
  45860. -find_stack_direction ()
  45861. -{
  45862. - static char *addr = 0;
  45863. - auto char dummy;
  45864. - if (addr == 0)
  45865. - {
  45866. - addr = &dummy;
  45867. - return find_stack_direction ();
  45868. - }
  45869. - else
  45870. - return (&dummy > addr) ? 1 : -1;
  45871. -}
  45872. -int
  45873. -main ()
  45874. -{
  45875. - return find_stack_direction () < 0;
  45876. -}
  45877. -_ACEOF
  45878. -rm -f conftest$ac_exeext
  45879. -if { (ac_try="$ac_link"
  45880. -case "(($ac_try" in
  45881. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45882. - *) ac_try_echo=$ac_try;;
  45883. -esac
  45884. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45885. -$as_echo "$ac_try_echo") >&5
  45886. - (eval "$ac_link") 2>&5
  45887. - ac_status=$?
  45888. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45889. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  45890. - { (case "(($ac_try" in
  45891. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45892. - *) ac_try_echo=$ac_try;;
  45893. -esac
  45894. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45895. -$as_echo "$ac_try_echo") >&5
  45896. - (eval "$ac_try") 2>&5
  45897. - ac_status=$?
  45898. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45899. - (exit $ac_status); }; }; then
  45900. - ac_cv_c_stack_direction=1
  45901. else
  45902. - $as_echo "$as_me: program exited with status $ac_status" >&5
  45903. -$as_echo "$as_me: failed program was:" >&5
  45904. -sed 's/^/| /' conftest.$ac_ext >&5
  45905. + case " $LIBOBJS " in
  45906. + *" $ac_func.$ac_objext "* ) ;;
  45907. + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  45908. + ;;
  45909. +esac
  45910. +
  45911. +fi
  45912. +done
  45913. +
  45914. +
  45915. +
  45916. +for ac_header in floatingpoint.h ieeefp.h nan.h
  45917. +do :
  45918. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  45919. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  45920. +eval as_val=\$$as_ac_Header
  45921. + if test "x$as_val" = x""yes; then :
  45922. + cat >>confdefs.h <<_ACEOF
  45923. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45924. +_ACEOF
  45925. -( exit $ac_status )
  45926. -ac_cv_c_stack_direction=-1
  45927. -fi
  45928. -rm -rf conftest.dSYM
  45929. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  45930. fi
  45931. +done
  45932. -fi
  45933. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  45934. -$as_echo "$ac_cv_c_stack_direction" >&6; }
  45935. -cat >>confdefs.h <<_ACEOF
  45936. -#define STACK_DIRECTION $ac_cv_c_stack_direction
  45937. +# Reasons for testing:
  45938. +# asinh, acosh, atanh, trunc - C99 standard, generally not available on
  45939. +# older systems
  45940. +# sincos - GLIBC extension
  45941. +#
  45942. +for ac_func in asinh acosh atanh copysign finite sincos trunc
  45943. +do :
  45944. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  45945. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  45946. +eval as_val=\$$as_ac_var
  45947. + if test "x$as_val" = x""yes; then :
  45948. + cat >>confdefs.h <<_ACEOF
  45949. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  45950. _ACEOF
  45951. -
  45952. fi
  45953. +done
  45954. -if test "$ALLOCA" = "alloca.o"
  45955. -then
  45956. - { { $as_echo "$as_me:$LINENO: error: No native alloca found." >&5
  45957. -$as_echo "$as_me: error: No native alloca found." >&2;}
  45958. - { (exit 1); exit 1; }; }
  45959. -fi
  45960. -# Reasons for checking:
  45961. -#
  45962. -# st_rdev
  45963. -# st_blksize
  45964. -# st_blocks not in mingw
  45965. -# tm_gmtoff BSD+GNU, not in C99
  45966. +# C99 specifies isinf and isnan as macros.
  45967. +# HP-UX provides only macros, no functions.
  45968. +# glibc 2.3.2 provides both macros and functions.
  45969. +# IRIX 6.5 and Solaris 8 only provide functions.
  45970. #
  45971. -# Note AC_STRUCT_ST_BLOCKS is not used here because we don't want the
  45972. -# AC_LIBOBJ(fileblocks) replacement which that macro gives.
  45973. +# The following tests detect isinf and isnan either as functions or as
  45974. +# macros from <math.h>. Plain AC_CHECK_FUNCS is insufficient, it doesn't
  45975. +# use <math.h> so doesn't detect on macro-only systems like HP-UX.
  45976. #
  45977. -{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  45978. -$as_echo_n "checking for struct stat.st_rdev... " >&6; }
  45979. -if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  45980. - $as_echo_n "(cached) " >&6
  45981. -else
  45982. - cat >conftest.$ac_ext <<_ACEOF
  45983. -/* confdefs.h. */
  45984. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
  45985. +$as_echo_n "checking for isinf... " >&6; }
  45986. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45987. +/* end confdefs.h. */
  45988. +#include <math.h>
  45989. +volatile double x = 0.0;
  45990. +int main () { return (isinf(x) != 0); }
  45991. _ACEOF
  45992. -cat confdefs.h >>conftest.$ac_ext
  45993. -cat >>conftest.$ac_ext <<_ACEOF
  45994. +if ac_fn_c_try_link "$LINENO"; then :
  45995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45996. +$as_echo "yes" >&6; }
  45997. +
  45998. +$as_echo "#define HAVE_ISINF 1" >>confdefs.h
  45999. +
  46000. +else
  46001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  46002. +$as_echo "no" >&6; }
  46003. +fi
  46004. +rm -f core conftest.err conftest.$ac_objext \
  46005. + conftest$ac_exeext conftest.$ac_ext
  46006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
  46007. +$as_echo_n "checking for isnan... " >&6; }
  46008. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46009. /* end confdefs.h. */
  46010. -$ac_includes_default
  46011. -int
  46012. -main ()
  46013. -{
  46014. -static struct stat ac_aggr;
  46015. -if (ac_aggr.st_rdev)
  46016. -return 0;
  46017. - ;
  46018. - return 0;
  46019. -}
  46020. +#include <math.h>
  46021. +volatile double x = 0.0;
  46022. +int main () { return (isnan(x) != 0); }
  46023. _ACEOF
  46024. -rm -f conftest.$ac_objext
  46025. -if { (ac_try="$ac_compile"
  46026. -case "(($ac_try" in
  46027. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46028. - *) ac_try_echo=$ac_try;;
  46029. -esac
  46030. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46031. -$as_echo "$ac_try_echo") >&5
  46032. - (eval "$ac_compile") 2>conftest.er1
  46033. - ac_status=$?
  46034. - grep -v '^ *+' conftest.er1 >conftest.err
  46035. - rm -f conftest.er1
  46036. - cat conftest.err >&5
  46037. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46038. - (exit $ac_status); } && {
  46039. - test -z "$ac_c_werror_flag" ||
  46040. - test ! -s conftest.err
  46041. - } && test -s conftest.$ac_objext; then
  46042. - ac_cv_member_struct_stat_st_rdev=yes
  46043. +if ac_fn_c_try_link "$LINENO"; then :
  46044. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  46045. +$as_echo "yes" >&6; }
  46046. +
  46047. +$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  46048. +
  46049. else
  46050. - $as_echo "$as_me: failed program was:" >&5
  46051. -sed 's/^/| /' conftest.$ac_ext >&5
  46052. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  46053. +$as_echo "no" >&6; }
  46054. +fi
  46055. +rm -f core conftest.err conftest.$ac_objext \
  46056. + conftest$ac_exeext conftest.$ac_ext
  46057. - cat >conftest.$ac_ext <<_ACEOF
  46058. -/* confdefs.h. */
  46059. -_ACEOF
  46060. -cat confdefs.h >>conftest.$ac_ext
  46061. -cat >>conftest.$ac_ext <<_ACEOF
  46062. +# We must have a proper stack-using alloca in order for stack-copying
  46063. +# continuations to work properly. If we don't find a native one,
  46064. +# abort.
  46065. +
  46066. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  46067. +# for constant arguments. Useless!
  46068. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  46069. +$as_echo_n "checking for working alloca.h... " >&6; }
  46070. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  46071. + $as_echo_n "(cached) " >&6
  46072. +else
  46073. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46074. /* end confdefs.h. */
  46075. -$ac_includes_default
  46076. +#include <alloca.h>
  46077. int
  46078. main ()
  46079. {
  46080. -static struct stat ac_aggr;
  46081. -if (sizeof ac_aggr.st_rdev)
  46082. -return 0;
  46083. +char *p = (char *) alloca (2 * sizeof (int));
  46084. + if (p) return 0;
  46085. ;
  46086. return 0;
  46087. }
  46088. _ACEOF
  46089. -rm -f conftest.$ac_objext
  46090. -if { (ac_try="$ac_compile"
  46091. -case "(($ac_try" in
  46092. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46093. - *) ac_try_echo=$ac_try;;
  46094. -esac
  46095. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46096. -$as_echo "$ac_try_echo") >&5
  46097. - (eval "$ac_compile") 2>conftest.er1
  46098. - ac_status=$?
  46099. - grep -v '^ *+' conftest.er1 >conftest.err
  46100. - rm -f conftest.er1
  46101. - cat conftest.err >&5
  46102. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46103. - (exit $ac_status); } && {
  46104. - test -z "$ac_c_werror_flag" ||
  46105. - test ! -s conftest.err
  46106. - } && test -s conftest.$ac_objext; then
  46107. - ac_cv_member_struct_stat_st_rdev=yes
  46108. +if ac_fn_c_try_link "$LINENO"; then :
  46109. + ac_cv_working_alloca_h=yes
  46110. else
  46111. - $as_echo "$as_me: failed program was:" >&5
  46112. -sed 's/^/| /' conftest.$ac_ext >&5
  46113. -
  46114. - ac_cv_member_struct_stat_st_rdev=no
  46115. -fi
  46116. -
  46117. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46118. + ac_cv_working_alloca_h=no
  46119. fi
  46120. -
  46121. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46122. +rm -f core conftest.err conftest.$ac_objext \
  46123. + conftest$ac_exeext conftest.$ac_ext
  46124. fi
  46125. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  46126. -$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
  46127. -if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
  46128. -
  46129. -cat >>confdefs.h <<_ACEOF
  46130. -#define HAVE_STRUCT_STAT_ST_RDEV 1
  46131. -_ACEOF
  46132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  46133. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  46134. +if test $ac_cv_working_alloca_h = yes; then
  46135. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  46136. fi
  46137. -{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
  46138. -$as_echo_n "checking for struct stat.st_blksize... " >&6; }
  46139. -if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  46140. +
  46141. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  46142. +$as_echo_n "checking for alloca... " >&6; }
  46143. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  46144. $as_echo_n "(cached) " >&6
  46145. else
  46146. - cat >conftest.$ac_ext <<_ACEOF
  46147. -/* confdefs.h. */
  46148. -_ACEOF
  46149. -cat confdefs.h >>conftest.$ac_ext
  46150. -cat >>conftest.$ac_ext <<_ACEOF
  46151. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46152. /* end confdefs.h. */
  46153. -$ac_includes_default
  46154. +#ifdef __GNUC__
  46155. +# define alloca __builtin_alloca
  46156. +#else
  46157. +# ifdef _MSC_VER
  46158. +# include <malloc.h>
  46159. +# define alloca _alloca
  46160. +# else
  46161. +# ifdef HAVE_ALLOCA_H
  46162. +# include <alloca.h>
  46163. +# else
  46164. +# ifdef _AIX
  46165. + #pragma alloca
  46166. +# else
  46167. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  46168. +char *alloca ();
  46169. +# endif
  46170. +# endif
  46171. +# endif
  46172. +# endif
  46173. +#endif
  46174. +
  46175. int
  46176. main ()
  46177. {
  46178. -static struct stat ac_aggr;
  46179. -if (ac_aggr.st_blksize)
  46180. -return 0;
  46181. +char *p = (char *) alloca (1);
  46182. + if (p) return 0;
  46183. ;
  46184. return 0;
  46185. }
  46186. _ACEOF
  46187. -rm -f conftest.$ac_objext
  46188. -if { (ac_try="$ac_compile"
  46189. -case "(($ac_try" in
  46190. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46191. - *) ac_try_echo=$ac_try;;
  46192. -esac
  46193. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46194. -$as_echo "$ac_try_echo") >&5
  46195. - (eval "$ac_compile") 2>conftest.er1
  46196. - ac_status=$?
  46197. - grep -v '^ *+' conftest.er1 >conftest.err
  46198. - rm -f conftest.er1
  46199. - cat conftest.err >&5
  46200. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46201. - (exit $ac_status); } && {
  46202. - test -z "$ac_c_werror_flag" ||
  46203. - test ! -s conftest.err
  46204. - } && test -s conftest.$ac_objext; then
  46205. - ac_cv_member_struct_stat_st_blksize=yes
  46206. +if ac_fn_c_try_link "$LINENO"; then :
  46207. + ac_cv_func_alloca_works=yes
  46208. else
  46209. - $as_echo "$as_me: failed program was:" >&5
  46210. -sed 's/^/| /' conftest.$ac_ext >&5
  46211. + ac_cv_func_alloca_works=no
  46212. +fi
  46213. +rm -f core conftest.err conftest.$ac_objext \
  46214. + conftest$ac_exeext conftest.$ac_ext
  46215. +fi
  46216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  46217. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  46218. +
  46219. +if test $ac_cv_func_alloca_works = yes; then
  46220. +
  46221. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  46222. - cat >conftest.$ac_ext <<_ACEOF
  46223. -/* confdefs.h. */
  46224. -_ACEOF
  46225. -cat confdefs.h >>conftest.$ac_ext
  46226. -cat >>conftest.$ac_ext <<_ACEOF
  46227. -/* end confdefs.h. */
  46228. -$ac_includes_default
  46229. -int
  46230. -main ()
  46231. -{
  46232. -static struct stat ac_aggr;
  46233. -if (sizeof ac_aggr.st_blksize)
  46234. -return 0;
  46235. - ;
  46236. - return 0;
  46237. -}
  46238. -_ACEOF
  46239. -rm -f conftest.$ac_objext
  46240. -if { (ac_try="$ac_compile"
  46241. -case "(($ac_try" in
  46242. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46243. - *) ac_try_echo=$ac_try;;
  46244. -esac
  46245. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46246. -$as_echo "$ac_try_echo") >&5
  46247. - (eval "$ac_compile") 2>conftest.er1
  46248. - ac_status=$?
  46249. - grep -v '^ *+' conftest.er1 >conftest.err
  46250. - rm -f conftest.er1
  46251. - cat conftest.err >&5
  46252. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46253. - (exit $ac_status); } && {
  46254. - test -z "$ac_c_werror_flag" ||
  46255. - test ! -s conftest.err
  46256. - } && test -s conftest.$ac_objext; then
  46257. - ac_cv_member_struct_stat_st_blksize=yes
  46258. else
  46259. - $as_echo "$as_me: failed program was:" >&5
  46260. -sed 's/^/| /' conftest.$ac_ext >&5
  46261. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  46262. +# that cause trouble. Some versions do not even contain alloca or
  46263. +# contain a buggy version. If you still want to use their alloca,
  46264. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  46265. - ac_cv_member_struct_stat_st_blksize=no
  46266. -fi
  46267. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  46268. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46269. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  46270. +
  46271. +
  46272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  46273. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  46274. +if test "${ac_cv_os_cray+set}" = set; then :
  46275. + $as_echo_n "(cached) " >&6
  46276. +else
  46277. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46278. +/* end confdefs.h. */
  46279. +#if defined CRAY && ! defined CRAY2
  46280. +webecray
  46281. +#else
  46282. +wenotbecray
  46283. +#endif
  46284. +
  46285. +_ACEOF
  46286. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  46287. + $EGREP "webecray" >/dev/null 2>&1; then :
  46288. + ac_cv_os_cray=yes
  46289. +else
  46290. + ac_cv_os_cray=no
  46291. fi
  46292. +rm -f conftest*
  46293. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46294. fi
  46295. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
  46296. -$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
  46297. -if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
  46298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  46299. +$as_echo "$ac_cv_os_cray" >&6; }
  46300. +if test $ac_cv_os_cray = yes; then
  46301. + for ac_func in _getb67 GETB67 getb67; do
  46302. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46303. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  46304. +eval as_val=\$$as_ac_var
  46305. + if test "x$as_val" = x""yes; then :
  46306. cat >>confdefs.h <<_ACEOF
  46307. -#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  46308. +#define CRAY_STACKSEG_END $ac_func
  46309. _ACEOF
  46310. + break
  46311. +fi
  46312. + done
  46313. fi
  46314. -{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
  46315. -$as_echo_n "checking for struct stat.st_blocks... " >&6; }
  46316. -if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
  46317. +
  46318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  46319. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  46320. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  46321. $as_echo_n "(cached) " >&6
  46322. else
  46323. - cat >conftest.$ac_ext <<_ACEOF
  46324. -/* confdefs.h. */
  46325. -_ACEOF
  46326. -cat confdefs.h >>conftest.$ac_ext
  46327. -cat >>conftest.$ac_ext <<_ACEOF
  46328. + if test "$cross_compiling" = yes; then :
  46329. + ac_cv_c_stack_direction=0
  46330. +else
  46331. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46332. /* end confdefs.h. */
  46333. $ac_includes_default
  46334. int
  46335. -main ()
  46336. +find_stack_direction ()
  46337. {
  46338. -static struct stat ac_aggr;
  46339. -if (ac_aggr.st_blocks)
  46340. -return 0;
  46341. - ;
  46342. - return 0;
  46343. + static char *addr = 0;
  46344. + auto char dummy;
  46345. + if (addr == 0)
  46346. + {
  46347. + addr = &dummy;
  46348. + return find_stack_direction ();
  46349. + }
  46350. + else
  46351. + return (&dummy > addr) ? 1 : -1;
  46352. }
  46353. -_ACEOF
  46354. -rm -f conftest.$ac_objext
  46355. -if { (ac_try="$ac_compile"
  46356. -case "(($ac_try" in
  46357. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46358. - *) ac_try_echo=$ac_try;;
  46359. -esac
  46360. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46361. -$as_echo "$ac_try_echo") >&5
  46362. - (eval "$ac_compile") 2>conftest.er1
  46363. - ac_status=$?
  46364. - grep -v '^ *+' conftest.er1 >conftest.err
  46365. - rm -f conftest.er1
  46366. - cat conftest.err >&5
  46367. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46368. - (exit $ac_status); } && {
  46369. - test -z "$ac_c_werror_flag" ||
  46370. - test ! -s conftest.err
  46371. - } && test -s conftest.$ac_objext; then
  46372. - ac_cv_member_struct_stat_st_blocks=yes
  46373. -else
  46374. - $as_echo "$as_me: failed program was:" >&5
  46375. -sed 's/^/| /' conftest.$ac_ext >&5
  46376. - cat >conftest.$ac_ext <<_ACEOF
  46377. -/* confdefs.h. */
  46378. -_ACEOF
  46379. -cat confdefs.h >>conftest.$ac_ext
  46380. -cat >>conftest.$ac_ext <<_ACEOF
  46381. -/* end confdefs.h. */
  46382. -$ac_includes_default
  46383. int
  46384. main ()
  46385. -{
  46386. -static struct stat ac_aggr;
  46387. -if (sizeof ac_aggr.st_blocks)
  46388. -return 0;
  46389. - ;
  46390. - return 0;
  46391. +{
  46392. + return find_stack_direction () < 0;
  46393. }
  46394. _ACEOF
  46395. -rm -f conftest.$ac_objext
  46396. -if { (ac_try="$ac_compile"
  46397. -case "(($ac_try" in
  46398. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46399. - *) ac_try_echo=$ac_try;;
  46400. -esac
  46401. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46402. -$as_echo "$ac_try_echo") >&5
  46403. - (eval "$ac_compile") 2>conftest.er1
  46404. - ac_status=$?
  46405. - grep -v '^ *+' conftest.er1 >conftest.err
  46406. - rm -f conftest.er1
  46407. - cat conftest.err >&5
  46408. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46409. - (exit $ac_status); } && {
  46410. - test -z "$ac_c_werror_flag" ||
  46411. - test ! -s conftest.err
  46412. - } && test -s conftest.$ac_objext; then
  46413. - ac_cv_member_struct_stat_st_blocks=yes
  46414. +if ac_fn_c_try_run "$LINENO"; then :
  46415. + ac_cv_c_stack_direction=1
  46416. else
  46417. - $as_echo "$as_me: failed program was:" >&5
  46418. -sed 's/^/| /' conftest.$ac_ext >&5
  46419. + ac_cv_c_stack_direction=-1
  46420. +fi
  46421. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  46422. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  46423. +fi
  46424. +
  46425. +fi
  46426. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  46427. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  46428. +cat >>confdefs.h <<_ACEOF
  46429. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  46430. +_ACEOF
  46431. +
  46432. - ac_cv_member_struct_stat_st_blocks=no
  46433. fi
  46434. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46435. +if test "$ALLOCA" = "alloca.o"
  46436. +then
  46437. + as_fn_error "No native alloca found." "$LINENO" 5
  46438. fi
  46439. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46440. +# Reasons for checking:
  46441. +#
  46442. +# st_rdev
  46443. +# st_blksize
  46444. +# st_blocks not in mingw
  46445. +# tm_gmtoff BSD+GNU, not in C99
  46446. +#
  46447. +# Note AC_STRUCT_ST_BLOCKS is not used here because we don't want the
  46448. +# AC_LIBOBJ(fileblocks) replacement which that macro gives.
  46449. +#
  46450. +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  46451. +if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
  46452. +
  46453. +cat >>confdefs.h <<_ACEOF
  46454. +#define HAVE_STRUCT_STAT_ST_RDEV 1
  46455. +_ACEOF
  46456. +
  46457. +
  46458. +fi
  46459. +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  46460. +if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
  46461. +
  46462. +cat >>confdefs.h <<_ACEOF
  46463. +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  46464. +_ACEOF
  46465. +
  46466. +
  46467. fi
  46468. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
  46469. -$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
  46470. -if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
  46471. +ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  46472. +if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
  46473. cat >>confdefs.h <<_ACEOF
  46474. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  46475. @@ -33154,16 +17974,12 @@
  46476. fi
  46477. -{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  46478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  46479. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  46480. -if test "${ac_cv_struct_tm+set}" = set; then
  46481. +if test "${ac_cv_struct_tm+set}" = set; then :
  46482. $as_echo_n "(cached) " >&6
  46483. else
  46484. - cat >conftest.$ac_ext <<_ACEOF
  46485. -/* confdefs.h. */
  46486. -_ACEOF
  46487. -cat confdefs.h >>conftest.$ac_ext
  46488. -cat >>conftest.$ac_ext <<_ACEOF
  46489. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46490. /* end confdefs.h. */
  46491. #include <sys/types.h>
  46492. #include <time.h>
  46493. @@ -33178,146 +17994,26 @@
  46494. return 0;
  46495. }
  46496. _ACEOF
  46497. -rm -f conftest.$ac_objext
  46498. -if { (ac_try="$ac_compile"
  46499. -case "(($ac_try" in
  46500. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46501. - *) ac_try_echo=$ac_try;;
  46502. -esac
  46503. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46504. -$as_echo "$ac_try_echo") >&5
  46505. - (eval "$ac_compile") 2>conftest.er1
  46506. - ac_status=$?
  46507. - grep -v '^ *+' conftest.er1 >conftest.err
  46508. - rm -f conftest.er1
  46509. - cat conftest.err >&5
  46510. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46511. - (exit $ac_status); } && {
  46512. - test -z "$ac_c_werror_flag" ||
  46513. - test ! -s conftest.err
  46514. - } && test -s conftest.$ac_objext; then
  46515. +if ac_fn_c_try_compile "$LINENO"; then :
  46516. ac_cv_struct_tm=time.h
  46517. else
  46518. - $as_echo "$as_me: failed program was:" >&5
  46519. -sed 's/^/| /' conftest.$ac_ext >&5
  46520. -
  46521. - ac_cv_struct_tm=sys/time.h
  46522. + ac_cv_struct_tm=sys/time.h
  46523. fi
  46524. -
  46525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46526. fi
  46527. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  46528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  46529. $as_echo "$ac_cv_struct_tm" >&6; }
  46530. if test $ac_cv_struct_tm = sys/time.h; then
  46531. -cat >>confdefs.h <<\_ACEOF
  46532. -#define TM_IN_SYS_TIME 1
  46533. -_ACEOF
  46534. +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  46535. fi
  46536. -{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  46537. -$as_echo_n "checking for struct tm.tm_zone... " >&6; }
  46538. -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  46539. - $as_echo_n "(cached) " >&6
  46540. -else
  46541. - cat >conftest.$ac_ext <<_ACEOF
  46542. -/* confdefs.h. */
  46543. -_ACEOF
  46544. -cat confdefs.h >>conftest.$ac_ext
  46545. -cat >>conftest.$ac_ext <<_ACEOF
  46546. -/* end confdefs.h. */
  46547. -#include <sys/types.h>
  46548. -#include <$ac_cv_struct_tm>
  46549. -
  46550. -
  46551. -int
  46552. -main ()
  46553. -{
  46554. -static struct tm ac_aggr;
  46555. -if (ac_aggr.tm_zone)
  46556. -return 0;
  46557. - ;
  46558. - return 0;
  46559. -}
  46560. -_ACEOF
  46561. -rm -f conftest.$ac_objext
  46562. -if { (ac_try="$ac_compile"
  46563. -case "(($ac_try" in
  46564. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46565. - *) ac_try_echo=$ac_try;;
  46566. -esac
  46567. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46568. -$as_echo "$ac_try_echo") >&5
  46569. - (eval "$ac_compile") 2>conftest.er1
  46570. - ac_status=$?
  46571. - grep -v '^ *+' conftest.er1 >conftest.err
  46572. - rm -f conftest.er1
  46573. - cat conftest.err >&5
  46574. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46575. - (exit $ac_status); } && {
  46576. - test -z "$ac_c_werror_flag" ||
  46577. - test ! -s conftest.err
  46578. - } && test -s conftest.$ac_objext; then
  46579. - ac_cv_member_struct_tm_tm_zone=yes
  46580. -else
  46581. - $as_echo "$as_me: failed program was:" >&5
  46582. -sed 's/^/| /' conftest.$ac_ext >&5
  46583. -
  46584. - cat >conftest.$ac_ext <<_ACEOF
  46585. -/* confdefs.h. */
  46586. -_ACEOF
  46587. -cat confdefs.h >>conftest.$ac_ext
  46588. -cat >>conftest.$ac_ext <<_ACEOF
  46589. -/* end confdefs.h. */
  46590. -#include <sys/types.h>
  46591. +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  46592. #include <$ac_cv_struct_tm>
  46593. -
  46594. -int
  46595. -main ()
  46596. -{
  46597. -static struct tm ac_aggr;
  46598. -if (sizeof ac_aggr.tm_zone)
  46599. -return 0;
  46600. - ;
  46601. - return 0;
  46602. -}
  46603. -_ACEOF
  46604. -rm -f conftest.$ac_objext
  46605. -if { (ac_try="$ac_compile"
  46606. -case "(($ac_try" in
  46607. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46608. - *) ac_try_echo=$ac_try;;
  46609. -esac
  46610. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46611. -$as_echo "$ac_try_echo") >&5
  46612. - (eval "$ac_compile") 2>conftest.er1
  46613. - ac_status=$?
  46614. - grep -v '^ *+' conftest.er1 >conftest.err
  46615. - rm -f conftest.er1
  46616. - cat conftest.err >&5
  46617. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46618. - (exit $ac_status); } && {
  46619. - test -z "$ac_c_werror_flag" ||
  46620. - test ! -s conftest.err
  46621. - } && test -s conftest.$ac_objext; then
  46622. - ac_cv_member_struct_tm_tm_zone=yes
  46623. -else
  46624. - $as_echo "$as_me: failed program was:" >&5
  46625. -sed 's/^/| /' conftest.$ac_ext >&5
  46626. -
  46627. - ac_cv_member_struct_tm_tm_zone=no
  46628. -fi
  46629. -
  46630. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46631. -fi
  46632. -
  46633. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46634. -fi
  46635. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  46636. -$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  46637. -if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  46638. +"
  46639. +if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  46640. cat >>confdefs.h <<_ACEOF
  46641. #define HAVE_STRUCT_TM_TM_ZONE 1
  46642. @@ -33328,91 +18024,27 @@
  46643. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  46644. -cat >>confdefs.h <<\_ACEOF
  46645. -#define HAVE_TM_ZONE 1
  46646. -_ACEOF
  46647. +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  46648. else
  46649. - { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  46650. -$as_echo_n "checking whether tzname is declared... " >&6; }
  46651. -if test "${ac_cv_have_decl_tzname+set}" = set; then
  46652. - $as_echo_n "(cached) " >&6
  46653. -else
  46654. - cat >conftest.$ac_ext <<_ACEOF
  46655. -/* confdefs.h. */
  46656. -_ACEOF
  46657. -cat confdefs.h >>conftest.$ac_ext
  46658. -cat >>conftest.$ac_ext <<_ACEOF
  46659. -/* end confdefs.h. */
  46660. -#include <time.h>
  46661. -
  46662. -int
  46663. -main ()
  46664. -{
  46665. -#ifndef tzname
  46666. - (void) tzname;
  46667. -#endif
  46668. -
  46669. - ;
  46670. - return 0;
  46671. -}
  46672. -_ACEOF
  46673. -rm -f conftest.$ac_objext
  46674. -if { (ac_try="$ac_compile"
  46675. -case "(($ac_try" in
  46676. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46677. - *) ac_try_echo=$ac_try;;
  46678. -esac
  46679. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46680. -$as_echo "$ac_try_echo") >&5
  46681. - (eval "$ac_compile") 2>conftest.er1
  46682. - ac_status=$?
  46683. - grep -v '^ *+' conftest.er1 >conftest.err
  46684. - rm -f conftest.er1
  46685. - cat conftest.err >&5
  46686. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46687. - (exit $ac_status); } && {
  46688. - test -z "$ac_c_werror_flag" ||
  46689. - test ! -s conftest.err
  46690. - } && test -s conftest.$ac_objext; then
  46691. - ac_cv_have_decl_tzname=yes
  46692. + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  46693. +"
  46694. +if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  46695. + ac_have_decl=1
  46696. else
  46697. - $as_echo "$as_me: failed program was:" >&5
  46698. -sed 's/^/| /' conftest.$ac_ext >&5
  46699. -
  46700. - ac_cv_have_decl_tzname=no
  46701. -fi
  46702. -
  46703. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46704. + ac_have_decl=0
  46705. fi
  46706. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  46707. -$as_echo "$ac_cv_have_decl_tzname" >&6; }
  46708. -if test "x$ac_cv_have_decl_tzname" = x""yes; then
  46709. cat >>confdefs.h <<_ACEOF
  46710. -#define HAVE_DECL_TZNAME 1
  46711. -_ACEOF
  46712. -
  46713. -
  46714. -else
  46715. - cat >>confdefs.h <<_ACEOF
  46716. -#define HAVE_DECL_TZNAME 0
  46717. +#define HAVE_DECL_TZNAME $ac_have_decl
  46718. _ACEOF
  46719. -
  46720. -fi
  46721. -
  46722. -
  46723. - { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  46724. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  46725. $as_echo_n "checking for tzname... " >&6; }
  46726. -if test "${ac_cv_var_tzname+set}" = set; then
  46727. +if test "${ac_cv_var_tzname+set}" = set; then :
  46728. $as_echo_n "(cached) " >&6
  46729. else
  46730. - cat >conftest.$ac_ext <<_ACEOF
  46731. -/* confdefs.h. */
  46732. -_ACEOF
  46733. -cat confdefs.h >>conftest.$ac_ext
  46734. -cat >>conftest.$ac_ext <<_ACEOF
  46735. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46736. /* end confdefs.h. */
  46737. #include <time.h>
  46738. #if !HAVE_DECL_TZNAME
  46739. @@ -33427,170 +18059,37 @@
  46740. return 0;
  46741. }
  46742. _ACEOF
  46743. -rm -f conftest.$ac_objext conftest$ac_exeext
  46744. -if { (ac_try="$ac_link"
  46745. -case "(($ac_try" in
  46746. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46747. - *) ac_try_echo=$ac_try;;
  46748. -esac
  46749. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46750. -$as_echo "$ac_try_echo") >&5
  46751. - (eval "$ac_link") 2>conftest.er1
  46752. - ac_status=$?
  46753. - grep -v '^ *+' conftest.er1 >conftest.err
  46754. - rm -f conftest.er1
  46755. - cat conftest.err >&5
  46756. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46757. - (exit $ac_status); } && {
  46758. - test -z "$ac_c_werror_flag" ||
  46759. - test ! -s conftest.err
  46760. - } && test -s conftest$ac_exeext && {
  46761. - test "$cross_compiling" = yes ||
  46762. - $as_test_x conftest$ac_exeext
  46763. - }; then
  46764. +if ac_fn_c_try_link "$LINENO"; then :
  46765. ac_cv_var_tzname=yes
  46766. else
  46767. - $as_echo "$as_me: failed program was:" >&5
  46768. -sed 's/^/| /' conftest.$ac_ext >&5
  46769. -
  46770. - ac_cv_var_tzname=no
  46771. + ac_cv_var_tzname=no
  46772. fi
  46773. -
  46774. -rm -rf conftest.dSYM
  46775. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46776. - conftest$ac_exeext conftest.$ac_ext
  46777. +rm -f core conftest.err conftest.$ac_objext \
  46778. + conftest$ac_exeext conftest.$ac_ext
  46779. fi
  46780. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  46781. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  46782. $as_echo "$ac_cv_var_tzname" >&6; }
  46783. if test $ac_cv_var_tzname = yes; then
  46784. -cat >>confdefs.h <<\_ACEOF
  46785. -#define HAVE_TZNAME 1
  46786. -_ACEOF
  46787. -
  46788. - fi
  46789. -fi
  46790. -
  46791. -{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
  46792. -$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
  46793. -if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
  46794. - $as_echo_n "(cached) " >&6
  46795. -else
  46796. - cat >conftest.$ac_ext <<_ACEOF
  46797. -/* confdefs.h. */
  46798. -_ACEOF
  46799. -cat confdefs.h >>conftest.$ac_ext
  46800. -cat >>conftest.$ac_ext <<_ACEOF
  46801. -/* end confdefs.h. */
  46802. -#include <time.h>
  46803. -#ifdef TIME_WITH_SYS_TIME
  46804. -# include <sys/time.h>
  46805. -# include <time.h>
  46806. -#else
  46807. -# if HAVE_SYS_TIME_H
  46808. -# include <sys/time.h>
  46809. -# else
  46810. -# include <time.h>
  46811. -# endif
  46812. -#endif
  46813. -
  46814. -
  46815. -int
  46816. -main ()
  46817. -{
  46818. -static struct tm ac_aggr;
  46819. -if (ac_aggr.tm_gmtoff)
  46820. -return 0;
  46821. - ;
  46822. - return 0;
  46823. -}
  46824. -_ACEOF
  46825. -rm -f conftest.$ac_objext
  46826. -if { (ac_try="$ac_compile"
  46827. -case "(($ac_try" in
  46828. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46829. - *) ac_try_echo=$ac_try;;
  46830. -esac
  46831. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46832. -$as_echo "$ac_try_echo") >&5
  46833. - (eval "$ac_compile") 2>conftest.er1
  46834. - ac_status=$?
  46835. - grep -v '^ *+' conftest.er1 >conftest.err
  46836. - rm -f conftest.er1
  46837. - cat conftest.err >&5
  46838. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46839. - (exit $ac_status); } && {
  46840. - test -z "$ac_c_werror_flag" ||
  46841. - test ! -s conftest.err
  46842. - } && test -s conftest.$ac_objext; then
  46843. - ac_cv_member_struct_tm_tm_gmtoff=yes
  46844. -else
  46845. - $as_echo "$as_me: failed program was:" >&5
  46846. -sed 's/^/| /' conftest.$ac_ext >&5
  46847. -
  46848. - cat >conftest.$ac_ext <<_ACEOF
  46849. -/* confdefs.h. */
  46850. -_ACEOF
  46851. -cat confdefs.h >>conftest.$ac_ext
  46852. -cat >>conftest.$ac_ext <<_ACEOF
  46853. -/* end confdefs.h. */
  46854. -#include <time.h>
  46855. -#ifdef TIME_WITH_SYS_TIME
  46856. -# include <sys/time.h>
  46857. -# include <time.h>
  46858. -#else
  46859. -# if HAVE_SYS_TIME_H
  46860. -# include <sys/time.h>
  46861. -# else
  46862. -# include <time.h>
  46863. -# endif
  46864. -#endif
  46865. -
  46866. -
  46867. -int
  46868. -main ()
  46869. -{
  46870. -static struct tm ac_aggr;
  46871. -if (sizeof ac_aggr.tm_gmtoff)
  46872. -return 0;
  46873. - ;
  46874. - return 0;
  46875. -}
  46876. -_ACEOF
  46877. -rm -f conftest.$ac_objext
  46878. -if { (ac_try="$ac_compile"
  46879. -case "(($ac_try" in
  46880. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46881. - *) ac_try_echo=$ac_try;;
  46882. -esac
  46883. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46884. -$as_echo "$ac_try_echo") >&5
  46885. - (eval "$ac_compile") 2>conftest.er1
  46886. - ac_status=$?
  46887. - grep -v '^ *+' conftest.er1 >conftest.err
  46888. - rm -f conftest.er1
  46889. - cat conftest.err >&5
  46890. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46891. - (exit $ac_status); } && {
  46892. - test -z "$ac_c_werror_flag" ||
  46893. - test ! -s conftest.err
  46894. - } && test -s conftest.$ac_objext; then
  46895. - ac_cv_member_struct_tm_tm_gmtoff=yes
  46896. -else
  46897. - $as_echo "$as_me: failed program was:" >&5
  46898. -sed 's/^/| /' conftest.$ac_ext >&5
  46899. -
  46900. - ac_cv_member_struct_tm_tm_gmtoff=no
  46901. -fi
  46902. +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  46903. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46904. + fi
  46905. fi
  46906. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46907. -fi
  46908. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
  46909. -$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
  46910. -if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
  46911. +ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  46912. +#ifdef TIME_WITH_SYS_TIME
  46913. +# include <sys/time.h>
  46914. +# include <time.h>
  46915. +#else
  46916. +# if HAVE_SYS_TIME_H
  46917. +# include <sys/time.h>
  46918. +# else
  46919. +# include <time.h>
  46920. +# endif
  46921. +#endif
  46922. +
  46923. +"
  46924. +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
  46925. cat >>confdefs.h <<_ACEOF
  46926. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  46927. @@ -33600,16 +18099,12 @@
  46928. fi
  46929. - { $as_echo "$as_me:$LINENO: checking whether we need POSIX to get struct utimbuf" >&5
  46930. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need POSIX to get struct utimbuf" >&5
  46931. $as_echo_n "checking whether we need POSIX to get struct utimbuf... " >&6; }
  46932. -if test "${guile_cv_struct_utimbuf_needs_posix+set}" = set; then
  46933. +if test "${guile_cv_struct_utimbuf_needs_posix+set}" = set; then :
  46934. $as_echo_n "(cached) " >&6
  46935. else
  46936. - cat >conftest.$ac_ext <<_ACEOF
  46937. -/* confdefs.h. */
  46938. -_ACEOF
  46939. -cat confdefs.h >>conftest.$ac_ext
  46940. -cat >>conftest.$ac_ext <<_ACEOF
  46941. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46942. /* end confdefs.h. */
  46943. #ifdef __EMX__
  46944. @@ -33620,40 +18115,18 @@
  46945. struct utime blah;
  46946. _ACEOF
  46947. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46948. -case "(($ac_try" in
  46949. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46950. - *) ac_try_echo=$ac_try;;
  46951. -esac
  46952. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46953. -$as_echo "$ac_try_echo") >&5
  46954. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46955. - ac_status=$?
  46956. - grep -v '^ *+' conftest.er1 >conftest.err
  46957. - rm -f conftest.er1
  46958. - cat conftest.err >&5
  46959. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46960. - (exit $ac_status); } >/dev/null && {
  46961. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46962. - test ! -s conftest.err
  46963. - }; then
  46964. +if ac_fn_c_try_cpp "$LINENO"; then :
  46965. guile_cv_struct_utimbuf_needs_posix=no
  46966. else
  46967. - $as_echo "$as_me: failed program was:" >&5
  46968. -sed 's/^/| /' conftest.$ac_ext >&5
  46969. -
  46970. guile_cv_struct_utimbuf_needs_posix=yes
  46971. fi
  46972. -
  46973. rm -f conftest.err conftest.$ac_ext
  46974. fi
  46975. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_struct_utimbuf_needs_posix" >&5
  46976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_struct_utimbuf_needs_posix" >&5
  46977. $as_echo "$guile_cv_struct_utimbuf_needs_posix" >&6; }
  46978. if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
  46979. -cat >>confdefs.h <<\_ACEOF
  46980. -#define UTIMBUF_NEEDS_POSIX 1
  46981. -_ACEOF
  46982. +$as_echo "#define UTIMBUF_NEEDS_POSIX 1" >>confdefs.h
  46983. fi
  46984. @@ -33674,15 +18147,11 @@
  46985. #--------------------------------------------------------------------
  46986. SCM_I_GSC_STACK_GROWS_UP=0
  46987. -if test "$cross_compiling" = yes; then
  46988. - { $as_echo "$as_me:$LINENO: WARNING: Guessing that stack grows down -- see scmconfig.h" >&5
  46989. +if test "$cross_compiling" = yes; then :
  46990. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Guessing that stack grows down -- see scmconfig.h" >&5
  46991. $as_echo "$as_me: WARNING: Guessing that stack grows down -- see scmconfig.h" >&2;}
  46992. else
  46993. - cat >conftest.$ac_ext <<_ACEOF
  46994. -/* confdefs.h. */
  46995. -_ACEOF
  46996. -cat confdefs.h >>conftest.$ac_ext
  46997. -cat >>conftest.$ac_ext <<_ACEOF
  46998. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46999. /* end confdefs.h. */
  47000. $ac_includes_default
  47001. int
  47002. @@ -33692,404 +18161,52 @@
  47003. auto char dummy;
  47004. if (addr == 0)
  47005. {
  47006. - addr = &dummy;
  47007. - return find_stack_direction ();
  47008. - }
  47009. - else
  47010. - return (&dummy > addr) ? 1 : -1;
  47011. -}
  47012. -
  47013. -int
  47014. -main ()
  47015. -{
  47016. - return find_stack_direction () < 0;
  47017. -}
  47018. -_ACEOF
  47019. -rm -f conftest$ac_exeext
  47020. -if { (ac_try="$ac_link"
  47021. -case "(($ac_try" in
  47022. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47023. - *) ac_try_echo=$ac_try;;
  47024. -esac
  47025. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47026. -$as_echo "$ac_try_echo") >&5
  47027. - (eval "$ac_link") 2>&5
  47028. - ac_status=$?
  47029. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47030. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  47031. - { (case "(($ac_try" in
  47032. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47033. - *) ac_try_echo=$ac_try;;
  47034. -esac
  47035. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47036. -$as_echo "$ac_try_echo") >&5
  47037. - (eval "$ac_try") 2>&5
  47038. - ac_status=$?
  47039. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47040. - (exit $ac_status); }; }; then
  47041. - SCM_I_GSC_STACK_GROWS_UP=1
  47042. -else
  47043. - $as_echo "$as_me: program exited with status $ac_status" >&5
  47044. -$as_echo "$as_me: failed program was:" >&5
  47045. -sed 's/^/| /' conftest.$ac_ext >&5
  47046. -
  47047. -fi
  47048. -rm -rf conftest.dSYM
  47049. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  47050. -fi
  47051. -
  47052. -
  47053. -
  47054. -# The cast to long int works around a bug in the HP C Compiler
  47055. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  47056. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  47057. -# This bug is HP SR number 8606223364.
  47058. -{ $as_echo "$as_me:$LINENO: checking size of float" >&5
  47059. -$as_echo_n "checking size of float... " >&6; }
  47060. -if test "${ac_cv_sizeof_float+set}" = set; then
  47061. - $as_echo_n "(cached) " >&6
  47062. -else
  47063. - if test "$cross_compiling" = yes; then
  47064. - # Depending upon the size, compute the lo and hi bounds.
  47065. -cat >conftest.$ac_ext <<_ACEOF
  47066. -/* confdefs.h. */
  47067. -_ACEOF
  47068. -cat confdefs.h >>conftest.$ac_ext
  47069. -cat >>conftest.$ac_ext <<_ACEOF
  47070. -/* end confdefs.h. */
  47071. -$ac_includes_default
  47072. -int
  47073. -main ()
  47074. -{
  47075. -static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
  47076. -test_array [0] = 0
  47077. -
  47078. - ;
  47079. - return 0;
  47080. -}
  47081. -_ACEOF
  47082. -rm -f conftest.$ac_objext
  47083. -if { (ac_try="$ac_compile"
  47084. -case "(($ac_try" in
  47085. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47086. - *) ac_try_echo=$ac_try;;
  47087. -esac
  47088. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47089. -$as_echo "$ac_try_echo") >&5
  47090. - (eval "$ac_compile") 2>conftest.er1
  47091. - ac_status=$?
  47092. - grep -v '^ *+' conftest.er1 >conftest.err
  47093. - rm -f conftest.er1
  47094. - cat conftest.err >&5
  47095. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47096. - (exit $ac_status); } && {
  47097. - test -z "$ac_c_werror_flag" ||
  47098. - test ! -s conftest.err
  47099. - } && test -s conftest.$ac_objext; then
  47100. - ac_lo=0 ac_mid=0
  47101. - while :; do
  47102. - cat >conftest.$ac_ext <<_ACEOF
  47103. -/* confdefs.h. */
  47104. -_ACEOF
  47105. -cat confdefs.h >>conftest.$ac_ext
  47106. -cat >>conftest.$ac_ext <<_ACEOF
  47107. -/* end confdefs.h. */
  47108. -$ac_includes_default
  47109. -int
  47110. -main ()
  47111. -{
  47112. -static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
  47113. -test_array [0] = 0
  47114. -
  47115. - ;
  47116. - return 0;
  47117. -}
  47118. -_ACEOF
  47119. -rm -f conftest.$ac_objext
  47120. -if { (ac_try="$ac_compile"
  47121. -case "(($ac_try" in
  47122. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47123. - *) ac_try_echo=$ac_try;;
  47124. -esac
  47125. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47126. -$as_echo "$ac_try_echo") >&5
  47127. - (eval "$ac_compile") 2>conftest.er1
  47128. - ac_status=$?
  47129. - grep -v '^ *+' conftest.er1 >conftest.err
  47130. - rm -f conftest.er1
  47131. - cat conftest.err >&5
  47132. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47133. - (exit $ac_status); } && {
  47134. - test -z "$ac_c_werror_flag" ||
  47135. - test ! -s conftest.err
  47136. - } && test -s conftest.$ac_objext; then
  47137. - ac_hi=$ac_mid; break
  47138. -else
  47139. - $as_echo "$as_me: failed program was:" >&5
  47140. -sed 's/^/| /' conftest.$ac_ext >&5
  47141. -
  47142. - ac_lo=`expr $ac_mid + 1`
  47143. - if test $ac_lo -le $ac_mid; then
  47144. - ac_lo= ac_hi=
  47145. - break
  47146. - fi
  47147. - ac_mid=`expr 2 '*' $ac_mid + 1`
  47148. -fi
  47149. -
  47150. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47151. - done
  47152. -else
  47153. - $as_echo "$as_me: failed program was:" >&5
  47154. -sed 's/^/| /' conftest.$ac_ext >&5
  47155. -
  47156. - cat >conftest.$ac_ext <<_ACEOF
  47157. -/* confdefs.h. */
  47158. -_ACEOF
  47159. -cat confdefs.h >>conftest.$ac_ext
  47160. -cat >>conftest.$ac_ext <<_ACEOF
  47161. -/* end confdefs.h. */
  47162. -$ac_includes_default
  47163. -int
  47164. -main ()
  47165. -{
  47166. -static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
  47167. -test_array [0] = 0
  47168. -
  47169. - ;
  47170. - return 0;
  47171. -}
  47172. -_ACEOF
  47173. -rm -f conftest.$ac_objext
  47174. -if { (ac_try="$ac_compile"
  47175. -case "(($ac_try" in
  47176. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47177. - *) ac_try_echo=$ac_try;;
  47178. -esac
  47179. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47180. -$as_echo "$ac_try_echo") >&5
  47181. - (eval "$ac_compile") 2>conftest.er1
  47182. - ac_status=$?
  47183. - grep -v '^ *+' conftest.er1 >conftest.err
  47184. - rm -f conftest.er1
  47185. - cat conftest.err >&5
  47186. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47187. - (exit $ac_status); } && {
  47188. - test -z "$ac_c_werror_flag" ||
  47189. - test ! -s conftest.err
  47190. - } && test -s conftest.$ac_objext; then
  47191. - ac_hi=-1 ac_mid=-1
  47192. - while :; do
  47193. - cat >conftest.$ac_ext <<_ACEOF
  47194. -/* confdefs.h. */
  47195. -_ACEOF
  47196. -cat confdefs.h >>conftest.$ac_ext
  47197. -cat >>conftest.$ac_ext <<_ACEOF
  47198. -/* end confdefs.h. */
  47199. -$ac_includes_default
  47200. -int
  47201. -main ()
  47202. -{
  47203. -static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
  47204. -test_array [0] = 0
  47205. -
  47206. - ;
  47207. - return 0;
  47208. -}
  47209. -_ACEOF
  47210. -rm -f conftest.$ac_objext
  47211. -if { (ac_try="$ac_compile"
  47212. -case "(($ac_try" in
  47213. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47214. - *) ac_try_echo=$ac_try;;
  47215. -esac
  47216. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47217. -$as_echo "$ac_try_echo") >&5
  47218. - (eval "$ac_compile") 2>conftest.er1
  47219. - ac_status=$?
  47220. - grep -v '^ *+' conftest.er1 >conftest.err
  47221. - rm -f conftest.er1
  47222. - cat conftest.err >&5
  47223. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47224. - (exit $ac_status); } && {
  47225. - test -z "$ac_c_werror_flag" ||
  47226. - test ! -s conftest.err
  47227. - } && test -s conftest.$ac_objext; then
  47228. - ac_lo=$ac_mid; break
  47229. -else
  47230. - $as_echo "$as_me: failed program was:" >&5
  47231. -sed 's/^/| /' conftest.$ac_ext >&5
  47232. -
  47233. - ac_hi=`expr '(' $ac_mid ')' - 1`
  47234. - if test $ac_mid -le $ac_hi; then
  47235. - ac_lo= ac_hi=
  47236. - break
  47237. - fi
  47238. - ac_mid=`expr 2 '*' $ac_mid`
  47239. -fi
  47240. -
  47241. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47242. - done
  47243. -else
  47244. - $as_echo "$as_me: failed program was:" >&5
  47245. -sed 's/^/| /' conftest.$ac_ext >&5
  47246. -
  47247. - ac_lo= ac_hi=
  47248. -fi
  47249. -
  47250. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47251. -fi
  47252. -
  47253. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47254. -# Binary search between lo and hi bounds.
  47255. -while test "x$ac_lo" != "x$ac_hi"; do
  47256. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  47257. - cat >conftest.$ac_ext <<_ACEOF
  47258. -/* confdefs.h. */
  47259. -_ACEOF
  47260. -cat confdefs.h >>conftest.$ac_ext
  47261. -cat >>conftest.$ac_ext <<_ACEOF
  47262. -/* end confdefs.h. */
  47263. -$ac_includes_default
  47264. -int
  47265. -main ()
  47266. -{
  47267. -static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
  47268. -test_array [0] = 0
  47269. -
  47270. - ;
  47271. - return 0;
  47272. -}
  47273. -_ACEOF
  47274. -rm -f conftest.$ac_objext
  47275. -if { (ac_try="$ac_compile"
  47276. -case "(($ac_try" in
  47277. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47278. - *) ac_try_echo=$ac_try;;
  47279. -esac
  47280. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47281. -$as_echo "$ac_try_echo") >&5
  47282. - (eval "$ac_compile") 2>conftest.er1
  47283. - ac_status=$?
  47284. - grep -v '^ *+' conftest.er1 >conftest.err
  47285. - rm -f conftest.er1
  47286. - cat conftest.err >&5
  47287. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47288. - (exit $ac_status); } && {
  47289. - test -z "$ac_c_werror_flag" ||
  47290. - test ! -s conftest.err
  47291. - } && test -s conftest.$ac_objext; then
  47292. - ac_hi=$ac_mid
  47293. -else
  47294. - $as_echo "$as_me: failed program was:" >&5
  47295. -sed 's/^/| /' conftest.$ac_ext >&5
  47296. -
  47297. - ac_lo=`expr '(' $ac_mid ')' + 1`
  47298. -fi
  47299. -
  47300. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47301. -done
  47302. -case $ac_lo in
  47303. -?*) ac_cv_sizeof_float=$ac_lo;;
  47304. -'') if test "$ac_cv_type_float" = yes; then
  47305. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  47306. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  47307. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
  47308. -See \`config.log' for more details." >&5
  47309. -$as_echo "$as_me: error: cannot compute sizeof (float)
  47310. -See \`config.log' for more details." >&2;}
  47311. - { (exit 77); exit 77; }; }; }
  47312. - else
  47313. - ac_cv_sizeof_float=0
  47314. - fi ;;
  47315. -esac
  47316. -else
  47317. - cat >conftest.$ac_ext <<_ACEOF
  47318. -/* confdefs.h. */
  47319. -_ACEOF
  47320. -cat confdefs.h >>conftest.$ac_ext
  47321. -cat >>conftest.$ac_ext <<_ACEOF
  47322. -/* end confdefs.h. */
  47323. -$ac_includes_default
  47324. -static long int longval () { return (long int) (sizeof (float)); }
  47325. -static unsigned long int ulongval () { return (long int) (sizeof (float)); }
  47326. -#include <stdio.h>
  47327. -#include <stdlib.h>
  47328. -int
  47329. -main ()
  47330. -{
  47331. -
  47332. - FILE *f = fopen ("conftest.val", "w");
  47333. - if (! f)
  47334. - return 1;
  47335. - if (((long int) (sizeof (float))) < 0)
  47336. - {
  47337. - long int i = longval ();
  47338. - if (i != ((long int) (sizeof (float))))
  47339. - return 1;
  47340. - fprintf (f, "%ld", i);
  47341. - }
  47342. - else
  47343. - {
  47344. - unsigned long int i = ulongval ();
  47345. - if (i != ((long int) (sizeof (float))))
  47346. - return 1;
  47347. - fprintf (f, "%lu", i);
  47348. + addr = &dummy;
  47349. + return find_stack_direction ();
  47350. }
  47351. - /* Do not output a trailing newline, as this causes \r\n confusion
  47352. - on some platforms. */
  47353. - return ferror (f) || fclose (f) != 0;
  47354. + else
  47355. + return (&dummy > addr) ? 1 : -1;
  47356. +}
  47357. - ;
  47358. - return 0;
  47359. +int
  47360. +main ()
  47361. +{
  47362. + return find_stack_direction () < 0;
  47363. }
  47364. _ACEOF
  47365. -rm -f conftest$ac_exeext
  47366. -if { (ac_try="$ac_link"
  47367. -case "(($ac_try" in
  47368. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47369. - *) ac_try_echo=$ac_try;;
  47370. -esac
  47371. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47372. -$as_echo "$ac_try_echo") >&5
  47373. - (eval "$ac_link") 2>&5
  47374. - ac_status=$?
  47375. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47376. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  47377. - { (case "(($ac_try" in
  47378. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47379. - *) ac_try_echo=$ac_try;;
  47380. -esac
  47381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47382. -$as_echo "$ac_try_echo") >&5
  47383. - (eval "$ac_try") 2>&5
  47384. - ac_status=$?
  47385. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47386. - (exit $ac_status); }; }; then
  47387. - ac_cv_sizeof_float=`cat conftest.val`
  47388. +if ac_fn_c_try_run "$LINENO"; then :
  47389. + SCM_I_GSC_STACK_GROWS_UP=1
  47390. +fi
  47391. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  47392. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  47393. +fi
  47394. +
  47395. +
  47396. +# The cast to long int works around a bug in the HP C Compiler
  47397. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  47398. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  47399. +# This bug is HP SR number 8606223364.
  47400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
  47401. +$as_echo_n "checking size of float... " >&6; }
  47402. +if test "${ac_cv_sizeof_float+set}" = set; then :
  47403. + $as_echo_n "(cached) " >&6
  47404. else
  47405. - $as_echo "$as_me: program exited with status $ac_status" >&5
  47406. -$as_echo "$as_me: failed program was:" >&5
  47407. -sed 's/^/| /' conftest.$ac_ext >&5
  47408. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
  47409. -( exit $ac_status )
  47410. -if test "$ac_cv_type_float" = yes; then
  47411. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  47412. +else
  47413. + if test "$ac_cv_type_float" = yes; then
  47414. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  47415. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  47416. -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
  47417. -See \`config.log' for more details." >&5
  47418. -$as_echo "$as_me: error: cannot compute sizeof (float)
  47419. -See \`config.log' for more details." >&2;}
  47420. - { (exit 77); exit 77; }; }; }
  47421. +{ as_fn_set_status 77
  47422. +as_fn_error "cannot compute sizeof (float)
  47423. +See \`config.log' for more details." "$LINENO" 5; }; }
  47424. else
  47425. ac_cv_sizeof_float=0
  47426. fi
  47427. fi
  47428. -rm -rf conftest.dSYM
  47429. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  47430. -fi
  47431. -rm -f conftest.val
  47432. +
  47433. fi
  47434. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
  47435. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
  47436. $as_echo "$ac_cv_sizeof_float" >&6; }
  47437. @@ -34101,22 +18218,16 @@
  47438. if test "$ac_cv_sizeof_float" -le "$ac_cv_sizeof_long"; then
  47439. -cat >>confdefs.h <<\_ACEOF
  47440. -#define SCM_SINGLES 1
  47441. -_ACEOF
  47442. +$as_echo "#define SCM_SINGLES 1" >>confdefs.h
  47443. fi
  47444. -{ $as_echo "$as_me:$LINENO: checking for struct linger" >&5
  47445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct linger" >&5
  47446. $as_echo_n "checking for struct linger... " >&6; }
  47447. -if test "${scm_cv_struct_linger+set}" = set; then
  47448. +if test "${scm_cv_struct_linger+set}" = set; then :
  47449. $as_echo_n "(cached) " >&6
  47450. else
  47451. - cat >conftest.$ac_ext <<_ACEOF
  47452. -/* confdefs.h. */
  47453. -_ACEOF
  47454. -cat confdefs.h >>conftest.$ac_ext
  47455. -cat >>conftest.$ac_ext <<_ACEOF
  47456. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47457. /* end confdefs.h. */
  47458. #include <sys/types.h>
  47459. @@ -34129,58 +18240,31 @@
  47460. return 0;
  47461. }
  47462. _ACEOF
  47463. -rm -f conftest.$ac_objext
  47464. -if { (ac_try="$ac_compile"
  47465. -case "(($ac_try" in
  47466. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47467. - *) ac_try_echo=$ac_try;;
  47468. -esac
  47469. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47470. -$as_echo "$ac_try_echo") >&5
  47471. - (eval "$ac_compile") 2>conftest.er1
  47472. - ac_status=$?
  47473. - grep -v '^ *+' conftest.er1 >conftest.err
  47474. - rm -f conftest.er1
  47475. - cat conftest.err >&5
  47476. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47477. - (exit $ac_status); } && {
  47478. - test -z "$ac_c_werror_flag" ||
  47479. - test ! -s conftest.err
  47480. - } && test -s conftest.$ac_objext; then
  47481. +if ac_fn_c_try_compile "$LINENO"; then :
  47482. scm_cv_struct_linger="yes"
  47483. else
  47484. - $as_echo "$as_me: failed program was:" >&5
  47485. -sed 's/^/| /' conftest.$ac_ext >&5
  47486. -
  47487. - scm_cv_struct_linger="no"
  47488. + scm_cv_struct_linger="no"
  47489. fi
  47490. -
  47491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47492. fi
  47493. -{ $as_echo "$as_me:$LINENO: result: $scm_cv_struct_linger" >&5
  47494. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $scm_cv_struct_linger" >&5
  47495. $as_echo "$scm_cv_struct_linger" >&6; }
  47496. if test $scm_cv_struct_linger = yes; then
  47497. -cat >>confdefs.h <<\_ACEOF
  47498. -#define HAVE_STRUCT_LINGER 1
  47499. -_ACEOF
  47500. +$as_echo "#define HAVE_STRUCT_LINGER 1" >>confdefs.h
  47501. fi
  47502. # On mingw, struct timespec is in <pthread.h>.
  47503. #
  47504. -{ $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  47505. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
  47506. $as_echo_n "checking for struct timespec... " >&6; }
  47507. -if test "${scm_cv_struct_timespec+set}" = set; then
  47508. +if test "${scm_cv_struct_timespec+set}" = set; then :
  47509. $as_echo_n "(cached) " >&6
  47510. else
  47511. - cat >conftest.$ac_ext <<_ACEOF
  47512. -/* confdefs.h. */
  47513. -_ACEOF
  47514. -cat confdefs.h >>conftest.$ac_ext
  47515. -cat >>conftest.$ac_ext <<_ACEOF
  47516. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47517. /* end confdefs.h. */
  47518. #include <time.h>
  47519. @@ -34195,42 +18279,19 @@
  47520. return 0;
  47521. }
  47522. _ACEOF
  47523. -rm -f conftest.$ac_objext
  47524. -if { (ac_try="$ac_compile"
  47525. -case "(($ac_try" in
  47526. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47527. - *) ac_try_echo=$ac_try;;
  47528. -esac
  47529. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47530. -$as_echo "$ac_try_echo") >&5
  47531. - (eval "$ac_compile") 2>conftest.er1
  47532. - ac_status=$?
  47533. - grep -v '^ *+' conftest.er1 >conftest.err
  47534. - rm -f conftest.er1
  47535. - cat conftest.err >&5
  47536. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47537. - (exit $ac_status); } && {
  47538. - test -z "$ac_c_werror_flag" ||
  47539. - test ! -s conftest.err
  47540. - } && test -s conftest.$ac_objext; then
  47541. +if ac_fn_c_try_compile "$LINENO"; then :
  47542. scm_cv_struct_timespec="yes"
  47543. else
  47544. - $as_echo "$as_me: failed program was:" >&5
  47545. -sed 's/^/| /' conftest.$ac_ext >&5
  47546. -
  47547. - scm_cv_struct_timespec="no"
  47548. + scm_cv_struct_timespec="no"
  47549. fi
  47550. -
  47551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47552. fi
  47553. -{ $as_echo "$as_me:$LINENO: result: $scm_cv_struct_timespec" >&5
  47554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $scm_cv_struct_timespec" >&5
  47555. $as_echo "$scm_cv_struct_timespec" >&6; }
  47556. if test $scm_cv_struct_timespec = yes; then
  47557. -cat >>confdefs.h <<\_ACEOF
  47558. -#define HAVE_STRUCT_TIMESPEC 1
  47559. -_ACEOF
  47560. +$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
  47561. fi
  47562. @@ -34248,7 +18309,7 @@
  47563. ### What thread package has the user asked for?
  47564. # Check whether --with-threads was given.
  47565. -if test "${with_threads+set}" = set; then
  47566. +if test "${with_threads+set}" = set; then :
  47567. withval=$with_threads;
  47568. else
  47569. with_threads=yes
  47570. @@ -34288,13 +18349,9 @@
  47571. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  47572. save_LIBS="$LIBS"
  47573. LIBS="$PTHREAD_LIBS $LIBS"
  47574. - { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  47575. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  47576. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  47577. - cat >conftest.$ac_ext <<_ACEOF
  47578. -/* confdefs.h. */
  47579. -_ACEOF
  47580. -cat confdefs.h >>conftest.$ac_ext
  47581. -cat >>conftest.$ac_ext <<_ACEOF
  47582. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47583. /* end confdefs.h. */
  47584. /* Override any GCC internal prototype to avoid an error.
  47585. @@ -34312,39 +18369,12 @@
  47586. return 0;
  47587. }
  47588. _ACEOF
  47589. -rm -f conftest.$ac_objext conftest$ac_exeext
  47590. -if { (ac_try="$ac_link"
  47591. -case "(($ac_try" in
  47592. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47593. - *) ac_try_echo=$ac_try;;
  47594. -esac
  47595. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47596. -$as_echo "$ac_try_echo") >&5
  47597. - (eval "$ac_link") 2>conftest.er1
  47598. - ac_status=$?
  47599. - grep -v '^ *+' conftest.er1 >conftest.err
  47600. - rm -f conftest.er1
  47601. - cat conftest.err >&5
  47602. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47603. - (exit $ac_status); } && {
  47604. - test -z "$ac_c_werror_flag" ||
  47605. - test ! -s conftest.err
  47606. - } && test -s conftest$ac_exeext && {
  47607. - test "$cross_compiling" = yes ||
  47608. - $as_test_x conftest$ac_exeext
  47609. - }; then
  47610. +if ac_fn_c_try_link "$LINENO"; then :
  47611. acx_pthread_ok=yes
  47612. -else
  47613. - $as_echo "$as_me: failed program was:" >&5
  47614. -sed 's/^/| /' conftest.$ac_ext >&5
  47615. -
  47616. -
  47617. fi
  47618. -
  47619. -rm -rf conftest.dSYM
  47620. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47621. - conftest$ac_exeext conftest.$ac_ext
  47622. - { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  47623. +rm -f core conftest.err conftest.$ac_objext \
  47624. + conftest$ac_exeext conftest.$ac_ext
  47625. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  47626. $as_echo "$acx_pthread_ok" >&6; }
  47627. if test x"$acx_pthread_ok" = xno; then
  47628. PTHREAD_LIBS=""
  47629. @@ -34406,12 +18436,12 @@
  47630. case $flag in
  47631. none)
  47632. - { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  47633. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  47634. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  47635. ;;
  47636. -*)
  47637. - { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  47638. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  47639. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  47640. PTHREAD_CFLAGS="$flag"
  47641. ;;
  47642. @@ -34419,9 +18449,9 @@
  47643. pthread-config)
  47644. # Extract the first word of "pthread-config", so it can be a program name with args.
  47645. set dummy pthread-config; ac_word=$2
  47646. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  47647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  47648. $as_echo_n "checking for $ac_word... " >&6; }
  47649. -if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  47650. +if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  47651. $as_echo_n "(cached) " >&6
  47652. else
  47653. if test -n "$acx_pthread_config"; then
  47654. @@ -34432,14 +18462,14 @@
  47655. do
  47656. IFS=$as_save_IFS
  47657. test -z "$as_dir" && as_dir=.
  47658. - for ac_exec_ext in '' $ac_executable_extensions; do
  47659. + for ac_exec_ext in '' $ac_executable_extensions; do
  47660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  47661. ac_cv_prog_acx_pthread_config="yes"
  47662. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  47663. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  47664. break 2
  47665. fi
  47666. done
  47667. -done
  47668. + done
  47669. IFS=$as_save_IFS
  47670. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  47671. @@ -34447,10 +18477,10 @@
  47672. fi
  47673. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  47674. if test -n "$acx_pthread_config"; then
  47675. - { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  47676. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  47677. $as_echo "$acx_pthread_config" >&6; }
  47678. else
  47679. - { $as_echo "$as_me:$LINENO: result: no" >&5
  47680. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  47681. $as_echo "no" >&6; }
  47682. fi
  47683. @@ -34461,7 +18491,7 @@
  47684. ;;
  47685. *)
  47686. - { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  47687. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  47688. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  47689. PTHREAD_LIBS="-l$flag"
  47690. ;;
  47691. @@ -34481,11 +18511,7 @@
  47692. # pthread_cleanup_push because it is one of the few pthread
  47693. # functions on Solaris that doesn't have a non-functional libc stub.
  47694. # We try pthread_create on general principles.
  47695. - cat >conftest.$ac_ext <<_ACEOF
  47696. -/* confdefs.h. */
  47697. -_ACEOF
  47698. -cat confdefs.h >>conftest.$ac_ext
  47699. -cat >>conftest.$ac_ext <<_ACEOF
  47700. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47701. /* end confdefs.h. */
  47702. #include <pthread.h>
  47703. int
  47704. @@ -34498,43 +18524,16 @@
  47705. return 0;
  47706. }
  47707. _ACEOF
  47708. -rm -f conftest.$ac_objext conftest$ac_exeext
  47709. -if { (ac_try="$ac_link"
  47710. -case "(($ac_try" in
  47711. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47712. - *) ac_try_echo=$ac_try;;
  47713. -esac
  47714. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47715. -$as_echo "$ac_try_echo") >&5
  47716. - (eval "$ac_link") 2>conftest.er1
  47717. - ac_status=$?
  47718. - grep -v '^ *+' conftest.er1 >conftest.err
  47719. - rm -f conftest.er1
  47720. - cat conftest.err >&5
  47721. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47722. - (exit $ac_status); } && {
  47723. - test -z "$ac_c_werror_flag" ||
  47724. - test ! -s conftest.err
  47725. - } && test -s conftest$ac_exeext && {
  47726. - test "$cross_compiling" = yes ||
  47727. - $as_test_x conftest$ac_exeext
  47728. - }; then
  47729. +if ac_fn_c_try_link "$LINENO"; then :
  47730. acx_pthread_ok=yes
  47731. -else
  47732. - $as_echo "$as_me: failed program was:" >&5
  47733. -sed 's/^/| /' conftest.$ac_ext >&5
  47734. -
  47735. -
  47736. fi
  47737. -
  47738. -rm -rf conftest.dSYM
  47739. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47740. - conftest$ac_exeext conftest.$ac_ext
  47741. +rm -f core conftest.err conftest.$ac_objext \
  47742. + conftest$ac_exeext conftest.$ac_ext
  47743. LIBS="$save_LIBS"
  47744. CFLAGS="$save_CFLAGS"
  47745. - { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  47746. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  47747. $as_echo "$acx_pthread_ok" >&6; }
  47748. if test "x$acx_pthread_ok" = xyes; then
  47749. break;
  47750. @@ -34553,15 +18552,11 @@
  47751. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  47752. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  47753. - { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  47754. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  47755. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  47756. attr_name=unknown
  47757. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  47758. - cat >conftest.$ac_ext <<_ACEOF
  47759. -/* confdefs.h. */
  47760. -_ACEOF
  47761. -cat confdefs.h >>conftest.$ac_ext
  47762. -cat >>conftest.$ac_ext <<_ACEOF
  47763. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47764. /* end confdefs.h. */
  47765. #include <pthread.h>
  47766. int
  47767. @@ -34572,40 +18567,13 @@
  47768. return 0;
  47769. }
  47770. _ACEOF
  47771. -rm -f conftest.$ac_objext conftest$ac_exeext
  47772. -if { (ac_try="$ac_link"
  47773. -case "(($ac_try" in
  47774. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47775. - *) ac_try_echo=$ac_try;;
  47776. -esac
  47777. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47778. -$as_echo "$ac_try_echo") >&5
  47779. - (eval "$ac_link") 2>conftest.er1
  47780. - ac_status=$?
  47781. - grep -v '^ *+' conftest.er1 >conftest.err
  47782. - rm -f conftest.er1
  47783. - cat conftest.err >&5
  47784. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47785. - (exit $ac_status); } && {
  47786. - test -z "$ac_c_werror_flag" ||
  47787. - test ! -s conftest.err
  47788. - } && test -s conftest$ac_exeext && {
  47789. - test "$cross_compiling" = yes ||
  47790. - $as_test_x conftest$ac_exeext
  47791. - }; then
  47792. +if ac_fn_c_try_link "$LINENO"; then :
  47793. attr_name=$attr; break
  47794. -else
  47795. - $as_echo "$as_me: failed program was:" >&5
  47796. -sed 's/^/| /' conftest.$ac_ext >&5
  47797. -
  47798. -
  47799. fi
  47800. -
  47801. -rm -rf conftest.dSYM
  47802. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47803. - conftest$ac_exeext conftest.$ac_ext
  47804. +rm -f core conftest.err conftest.$ac_objext \
  47805. + conftest$ac_exeext conftest.$ac_ext
  47806. done
  47807. - { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
  47808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  47809. $as_echo "$attr_name" >&6; }
  47810. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  47811. @@ -34615,14 +18583,14 @@
  47812. fi
  47813. - { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  47814. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  47815. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  47816. flag=no
  47817. case "${host_cpu}-${host_os}" in
  47818. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  47819. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  47820. esac
  47821. - { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
  47822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  47823. $as_echo "${flag}" >&6; }
  47824. if test "x$flag" != xno; then
  47825. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  47826. @@ -34637,9 +18605,9 @@
  47827. do
  47828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  47829. set dummy $ac_prog; ac_word=$2
  47830. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  47831. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  47832. $as_echo_n "checking for $ac_word... " >&6; }
  47833. -if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  47834. +if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  47835. $as_echo_n "(cached) " >&6
  47836. else
  47837. if test -n "$PTHREAD_CC"; then
  47838. @@ -34650,24 +18618,24 @@
  47839. do
  47840. IFS=$as_save_IFS
  47841. test -z "$as_dir" && as_dir=.
  47842. - for ac_exec_ext in '' $ac_executable_extensions; do
  47843. + for ac_exec_ext in '' $ac_executable_extensions; do
  47844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  47845. ac_cv_prog_PTHREAD_CC="$ac_prog"
  47846. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  47847. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  47848. break 2
  47849. fi
  47850. done
  47851. -done
  47852. + done
  47853. IFS=$as_save_IFS
  47854. fi
  47855. fi
  47856. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  47857. if test -n "$PTHREAD_CC"; then
  47858. - { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  47859. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  47860. $as_echo "$PTHREAD_CC" >&6; }
  47861. else
  47862. - { $as_echo "$as_me:$LINENO: result: no" >&5
  47863. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  47864. $as_echo "no" >&6; }
  47865. fi
  47866. @@ -34717,103 +18685,12 @@
  47867. # all; specific to MacOS X
  47868. # pthread_sigmask - not available on mingw
  47869. #
  47870. -
  47871. -
  47872. -
  47873. -
  47874. -for ac_func in pthread_attr_getstack pthread_getattr_np pthread_get_stackaddr_np pthread_sigmask
  47875. -do
  47876. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47877. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  47878. -$as_echo_n "checking for $ac_func... " >&6; }
  47879. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  47880. - $as_echo_n "(cached) " >&6
  47881. -else
  47882. - cat >conftest.$ac_ext <<_ACEOF
  47883. -/* confdefs.h. */
  47884. -_ACEOF
  47885. -cat confdefs.h >>conftest.$ac_ext
  47886. -cat >>conftest.$ac_ext <<_ACEOF
  47887. -/* end confdefs.h. */
  47888. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  47889. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47890. -#define $ac_func innocuous_$ac_func
  47891. -
  47892. -/* System header to define __stub macros and hopefully few prototypes,
  47893. - which can conflict with char $ac_func (); below.
  47894. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47895. - <limits.h> exists even on freestanding compilers. */
  47896. -
  47897. -#ifdef __STDC__
  47898. -# include <limits.h>
  47899. -#else
  47900. -# include <assert.h>
  47901. -#endif
  47902. -
  47903. -#undef $ac_func
  47904. -
  47905. -/* Override any GCC internal prototype to avoid an error.
  47906. - Use char because int might match the return type of a GCC
  47907. - builtin and then its argument prototype would still apply. */
  47908. -#ifdef __cplusplus
  47909. -extern "C"
  47910. -#endif
  47911. -char $ac_func ();
  47912. -/* The GNU C library defines this for functions which it implements
  47913. - to always fail with ENOSYS. Some functions are actually named
  47914. - something starting with __ and the normal name is an alias. */
  47915. -#if defined __stub_$ac_func || defined __stub___$ac_func
  47916. -choke me
  47917. -#endif
  47918. -
  47919. -int
  47920. -main ()
  47921. -{
  47922. -return $ac_func ();
  47923. - ;
  47924. - return 0;
  47925. -}
  47926. -_ACEOF
  47927. -rm -f conftest.$ac_objext conftest$ac_exeext
  47928. -if { (ac_try="$ac_link"
  47929. -case "(($ac_try" in
  47930. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47931. - *) ac_try_echo=$ac_try;;
  47932. -esac
  47933. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47934. -$as_echo "$ac_try_echo") >&5
  47935. - (eval "$ac_link") 2>conftest.er1
  47936. - ac_status=$?
  47937. - grep -v '^ *+' conftest.er1 >conftest.err
  47938. - rm -f conftest.er1
  47939. - cat conftest.err >&5
  47940. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47941. - (exit $ac_status); } && {
  47942. - test -z "$ac_c_werror_flag" ||
  47943. - test ! -s conftest.err
  47944. - } && test -s conftest$ac_exeext && {
  47945. - test "$cross_compiling" = yes ||
  47946. - $as_test_x conftest$ac_exeext
  47947. - }; then
  47948. - eval "$as_ac_var=yes"
  47949. -else
  47950. - $as_echo "$as_me: failed program was:" >&5
  47951. -sed 's/^/| /' conftest.$ac_ext >&5
  47952. -
  47953. - eval "$as_ac_var=no"
  47954. -fi
  47955. -
  47956. -rm -rf conftest.dSYM
  47957. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47958. - conftest$ac_exeext conftest.$ac_ext
  47959. -fi
  47960. -ac_res=`eval 'as_val=${'$as_ac_var'}
  47961. - $as_echo "$as_val"'`
  47962. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47963. -$as_echo "$ac_res" >&6; }
  47964. -as_val=`eval 'as_val=${'$as_ac_var'}
  47965. - $as_echo "$as_val"'`
  47966. - if test "x$as_val" = x""yes; then
  47967. + for ac_func in pthread_attr_getstack pthread_getattr_np pthread_get_stackaddr_np pthread_sigmask
  47968. +do :
  47969. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47970. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  47971. +eval as_val=\$$as_ac_var
  47972. + if test "x$as_val" = x""yes; then :
  47973. cat >>confdefs.h <<_ACEOF
  47974. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47975. _ACEOF
  47976. @@ -34838,44 +18715,24 @@
  47977. CFLAGS="-Werror -Wmissing-braces $CFLAGS"
  47978. fi
  47979. - { $as_echo "$as_me:$LINENO: checking whether PTHREAD_ONCE_INIT needs braces" >&5
  47980. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTHREAD_ONCE_INIT needs braces" >&5
  47981. $as_echo_n "checking whether PTHREAD_ONCE_INIT needs braces... " >&6; }
  47982. -if test "${guile_cv_need_braces_on_pthread_once_init+set}" = set; then
  47983. +if test "${guile_cv_need_braces_on_pthread_once_init+set}" = set; then :
  47984. $as_echo_n "(cached) " >&6
  47985. else
  47986. - cat >conftest.$ac_ext <<_ACEOF
  47987. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47988. +/* end confdefs.h. */
  47989. #include <pthread.h>
  47990. pthread_once_t foo = PTHREAD_ONCE_INIT;
  47991. _ACEOF
  47992. -rm -f conftest.$ac_objext
  47993. -if { (ac_try="$ac_compile"
  47994. -case "(($ac_try" in
  47995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47996. - *) ac_try_echo=$ac_try;;
  47997. -esac
  47998. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47999. -$as_echo "$ac_try_echo") >&5
  48000. - (eval "$ac_compile") 2>conftest.er1
  48001. - ac_status=$?
  48002. - grep -v '^ *+' conftest.er1 >conftest.err
  48003. - rm -f conftest.er1
  48004. - cat conftest.err >&5
  48005. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48006. - (exit $ac_status); } && {
  48007. - test -z "$ac_c_werror_flag" ||
  48008. - test ! -s conftest.err
  48009. - } && test -s conftest.$ac_objext; then
  48010. +if ac_fn_c_try_compile "$LINENO"; then :
  48011. guile_cv_need_braces_on_pthread_once_init=no
  48012. else
  48013. - $as_echo "$as_me: failed program was:" >&5
  48014. -sed 's/^/| /' conftest.$ac_ext >&5
  48015. -
  48016. - guile_cv_need_braces_on_pthread_once_init=yes
  48017. + guile_cv_need_braces_on_pthread_once_init=yes
  48018. fi
  48019. -
  48020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48021. fi
  48022. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_once_init" >&5
  48023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_need_braces_on_pthread_once_init" >&5
  48024. $as_echo "$guile_cv_need_braces_on_pthread_once_init" >&6; }
  48025. if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
  48026. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=1
  48027. @@ -34883,44 +18740,24 @@
  48028. # Same problem with `PTHREAD_MUTEX_INITIALIZER', e.g., on IRIX
  48029. # 6.5.30m with GCC 3.3.
  48030. - { $as_echo "$as_me:$LINENO: checking whether PTHREAD_MUTEX_INITIALIZER needs braces" >&5
  48031. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTHREAD_MUTEX_INITIALIZER needs braces" >&5
  48032. $as_echo_n "checking whether PTHREAD_MUTEX_INITIALIZER needs braces... " >&6; }
  48033. -if test "${guile_cv_need_braces_on_pthread_mutex_initializer+set}" = set; then
  48034. +if test "${guile_cv_need_braces_on_pthread_mutex_initializer+set}" = set; then :
  48035. $as_echo_n "(cached) " >&6
  48036. else
  48037. - cat >conftest.$ac_ext <<_ACEOF
  48038. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48039. +/* end confdefs.h. */
  48040. #include <pthread.h>
  48041. pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;
  48042. _ACEOF
  48043. -rm -f conftest.$ac_objext
  48044. -if { (ac_try="$ac_compile"
  48045. -case "(($ac_try" in
  48046. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48047. - *) ac_try_echo=$ac_try;;
  48048. -esac
  48049. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48050. -$as_echo "$ac_try_echo") >&5
  48051. - (eval "$ac_compile") 2>conftest.er1
  48052. - ac_status=$?
  48053. - grep -v '^ *+' conftest.er1 >conftest.err
  48054. - rm -f conftest.er1
  48055. - cat conftest.err >&5
  48056. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48057. - (exit $ac_status); } && {
  48058. - test -z "$ac_c_werror_flag" ||
  48059. - test ! -s conftest.err
  48060. - } && test -s conftest.$ac_objext; then
  48061. +if ac_fn_c_try_compile "$LINENO"; then :
  48062. guile_cv_need_braces_on_pthread_mutex_initializer=no
  48063. else
  48064. - $as_echo "$as_me: failed program was:" >&5
  48065. -sed 's/^/| /' conftest.$ac_ext >&5
  48066. -
  48067. - guile_cv_need_braces_on_pthread_mutex_initializer=yes
  48068. + guile_cv_need_braces_on_pthread_mutex_initializer=yes
  48069. fi
  48070. -
  48071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48072. fi
  48073. -{ $as_echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_mutex_initializer" >&5
  48074. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_cv_need_braces_on_pthread_mutex_initializer" >&5
  48075. $as_echo "$guile_cv_need_braces_on_pthread_mutex_initializer" >&6; }
  48076. if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
  48077. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER=1
  48078. @@ -34929,17 +18766,13 @@
  48079. CFLAGS="$old_CFLAGS"
  48080. # On Solaris, sched_yield lives in -lrt.
  48081. - { $as_echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
  48082. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
  48083. $as_echo_n "checking for library containing sched_yield... " >&6; }
  48084. -if test "${ac_cv_search_sched_yield+set}" = set; then
  48085. +if test "${ac_cv_search_sched_yield+set}" = set; then :
  48086. $as_echo_n "(cached) " >&6
  48087. else
  48088. ac_func_search_save_LIBS=$LIBS
  48089. -cat >conftest.$ac_ext <<_ACEOF
  48090. -/* confdefs.h. */
  48091. -_ACEOF
  48092. -cat confdefs.h >>conftest.$ac_ext
  48093. -cat >>conftest.$ac_ext <<_ACEOF
  48094. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48095. /* end confdefs.h. */
  48096. /* Override any GCC internal prototype to avoid an error.
  48097. @@ -34964,54 +18797,27 @@
  48098. ac_res=-l$ac_lib
  48099. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  48100. fi
  48101. - rm -f conftest.$ac_objext conftest$ac_exeext
  48102. -if { (ac_try="$ac_link"
  48103. -case "(($ac_try" in
  48104. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48105. - *) ac_try_echo=$ac_try;;
  48106. -esac
  48107. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48108. -$as_echo "$ac_try_echo") >&5
  48109. - (eval "$ac_link") 2>conftest.er1
  48110. - ac_status=$?
  48111. - grep -v '^ *+' conftest.er1 >conftest.err
  48112. - rm -f conftest.er1
  48113. - cat conftest.err >&5
  48114. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48115. - (exit $ac_status); } && {
  48116. - test -z "$ac_c_werror_flag" ||
  48117. - test ! -s conftest.err
  48118. - } && test -s conftest$ac_exeext && {
  48119. - test "$cross_compiling" = yes ||
  48120. - $as_test_x conftest$ac_exeext
  48121. - }; then
  48122. + if ac_fn_c_try_link "$LINENO"; then :
  48123. ac_cv_search_sched_yield=$ac_res
  48124. -else
  48125. - $as_echo "$as_me: failed program was:" >&5
  48126. -sed 's/^/| /' conftest.$ac_ext >&5
  48127. -
  48128. -
  48129. fi
  48130. -
  48131. -rm -rf conftest.dSYM
  48132. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48133. - conftest$ac_exeext
  48134. - if test "${ac_cv_search_sched_yield+set}" = set; then
  48135. +rm -f core conftest.err conftest.$ac_objext \
  48136. + conftest$ac_exeext
  48137. + if test "${ac_cv_search_sched_yield+set}" = set; then :
  48138. break
  48139. fi
  48140. done
  48141. -if test "${ac_cv_search_sched_yield+set}" = set; then
  48142. - :
  48143. +if test "${ac_cv_search_sched_yield+set}" = set; then :
  48144. +
  48145. else
  48146. ac_cv_search_sched_yield=no
  48147. fi
  48148. rm conftest.$ac_ext
  48149. LIBS=$ac_func_search_save_LIBS
  48150. fi
  48151. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
  48152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
  48153. $as_echo "$ac_cv_search_sched_yield" >&6; }
  48154. ac_res=$ac_cv_search_sched_yield
  48155. -if test "$ac_res" != no; then
  48156. +if test "$ac_res" != no; then :
  48157. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  48158. fi
  48159. @@ -35028,15 +18834,13 @@
  48160. with_threads="null-threads"
  48161. ;;
  48162. * )
  48163. - { { $as_echo "$as_me:$LINENO: error: invalid value for --with-threads: $with_threads" >&5
  48164. -$as_echo "$as_me: error: invalid value for --with-threads: $with_threads" >&2;}
  48165. - { (exit 1); exit 1; }; }
  48166. + as_fn_error "invalid value for --with-threads: $with_threads" "$LINENO" 5
  48167. ;;
  48168. esac
  48169. -{ $as_echo "$as_me:$LINENO: checking what kind of threads to support" >&5
  48170. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of threads to support" >&5
  48171. $as_echo_n "checking what kind of threads to support... " >&6; }
  48172. -{ $as_echo "$as_me:$LINENO: result: $with_threads" >&5
  48173. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
  48174. $as_echo "$with_threads" >&6; }
  48175. if test "x$build_pthread_support" = "xyes"; then
  48176. @@ -35053,24 +18857,17 @@
  48177. if test "$with_threads" = pthreads; then
  48178. -{ $as_echo "$as_me:$LINENO: checking whether pthread_attr_getstack works for the main thread" >&5
  48179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getstack works for the main thread" >&5
  48180. $as_echo_n "checking whether pthread_attr_getstack works for the main thread... " >&6; }
  48181. old_CFLAGS="$CFLAGS"
  48182. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  48183. -if test "$cross_compiling" = yes; then
  48184. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  48185. +if test "$cross_compiling" = yes; then :
  48186. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  48187. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  48188. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  48189. -See \`config.log' for more details." >&5
  48190. -$as_echo "$as_me: error: cannot run test program while cross compiling
  48191. -See \`config.log' for more details." >&2;}
  48192. - { (exit 1); exit 1; }; }; }
  48193. +as_fn_error "cannot run test program while cross compiling
  48194. +See \`config.log' for more details." "$LINENO" 5; }
  48195. else
  48196. - cat >conftest.$ac_ext <<_ACEOF
  48197. -/* confdefs.h. */
  48198. -_ACEOF
  48199. -cat confdefs.h >>conftest.$ac_ext
  48200. -cat >>conftest.$ac_ext <<_ACEOF
  48201. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48202. /* end confdefs.h. */
  48203. #if HAVE_PTHREAD_ATTR_GETSTACK
  48204. @@ -35094,54 +18891,25 @@
  48205. #else
  48206. int main ()
  48207. {
  48208. - return 1;
  48209. -}
  48210. -#endif
  48211. -
  48212. -_ACEOF
  48213. -rm -f conftest$ac_exeext
  48214. -if { (ac_try="$ac_link"
  48215. -case "(($ac_try" in
  48216. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48217. - *) ac_try_echo=$ac_try;;
  48218. -esac
  48219. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48220. -$as_echo "$ac_try_echo") >&5
  48221. - (eval "$ac_link") 2>&5
  48222. - ac_status=$?
  48223. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48224. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  48225. - { (case "(($ac_try" in
  48226. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48227. - *) ac_try_echo=$ac_try;;
  48228. -esac
  48229. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48230. -$as_echo "$ac_try_echo") >&5
  48231. - (eval "$ac_try") 2>&5
  48232. - ac_status=$?
  48233. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48234. - (exit $ac_status); }; }; then
  48235. - works=yes
  48236. + return 1;
  48237. +}
  48238. +#endif
  48239. -cat >>confdefs.h <<\_ACEOF
  48240. -#define PTHREAD_ATTR_GETSTACK_WORKS 1
  48241. _ACEOF
  48242. +if ac_fn_c_try_run "$LINENO"; then :
  48243. + works=yes
  48244. -else
  48245. - $as_echo "$as_me: program exited with status $ac_status" >&5
  48246. -$as_echo "$as_me: failed program was:" >&5
  48247. -sed 's/^/| /' conftest.$ac_ext >&5
  48248. +$as_echo "#define PTHREAD_ATTR_GETSTACK_WORKS 1" >>confdefs.h
  48249. -( exit $ac_status )
  48250. -works=no
  48251. +else
  48252. + works=no
  48253. fi
  48254. -rm -rf conftest.dSYM
  48255. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  48256. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  48257. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  48258. fi
  48259. -
  48260. CFLAGS="$old_CFLAGS"
  48261. -{ $as_echo "$as_me:$LINENO: result: $works" >&5
  48262. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
  48263. $as_echo "$works" >&6; }
  48264. fi # with_threads=pthreads
  48265. @@ -35149,7 +18917,7 @@
  48266. ## Cross building
  48267. if test "$cross_compiling" = "yes"; then
  48268. - { $as_echo "$as_me:$LINENO: checking cc for build" >&5
  48269. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking cc for build" >&5
  48270. $as_echo_n "checking cc for build... " >&6; }
  48271. ## /usr/bin/cc still uses wrong assembler
  48272. ## CC_FOR_BUILD="${CC_FOR_BUILD-/usr/bincc}"
  48273. @@ -35161,7 +18929,7 @@
  48274. ## AC_MSG_CHECKING("if we are cross compiling")
  48275. ## AC_MSG_RESULT($cross_compiling)
  48276. if test "$cross_compiling" = "yes"; then
  48277. - { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  48278. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  48279. $as_echo "$CC_FOR_BUILD" >&6; }
  48280. fi
  48281. @@ -35178,7 +18946,7 @@
  48282. if test "$cross_compiling" = "yes"; then
  48283. - { $as_echo "$as_me:$LINENO: checking guile for build" >&5
  48284. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking guile for build" >&5
  48285. $as_echo_n "checking guile for build... " >&6; }
  48286. GUILE_FOR_BUILD="${GUILE_FOR_BUILD-guile}"
  48287. else
  48288. @@ -35188,7 +18956,7 @@
  48289. ## AC_MSG_CHECKING("if we are cross compiling")
  48290. ## AC_MSG_RESULT($cross_compiling)
  48291. if test "$cross_compiling" = "yes"; then
  48292. - { $as_echo "$as_me:$LINENO: result: $GUILE_FOR_BUILD" >&5
  48293. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_FOR_BUILD" >&5
  48294. $as_echo "$GUILE_FOR_BUILD" >&6; }
  48295. fi
  48296. @@ -35292,7 +19060,7 @@
  48297. ac_config_files="$ac_config_files libguile/gen-scmconfig.h"
  48298. -ac_config_files="$ac_config_files Makefile am/Makefile benchmark-suite/Makefile doc/Makefile doc/goops/Makefile doc/r5rs/Makefile doc/ref/Makefile doc/tutorial/Makefile emacs/Makefile examples/Makefile guile-config/Makefile ice-9/Makefile lang/Makefile libguile/Makefile oop/Makefile oop/goops/Makefile scripts/Makefile srfi/Makefile test-suite/Makefile test-suite/standalone/Makefile"
  48299. +ac_config_files="$ac_config_files Makefile am/Makefile benchmark-suite/Makefile doc/Makefile doc/r5rs/Makefile doc/tutorial/Makefile emacs/Makefile examples/Makefile guile-config/Makefile ice-9/Makefile lang/Makefile libguile/Makefile oop/Makefile oop/goops/Makefile scripts/Makefile srfi/Makefile test-suite/Makefile test-suite/standalone/Makefile"
  48300. ac_config_files="$ac_config_files guile-1.8.pc"
  48301. @@ -35347,13 +19115,13 @@
  48302. case $ac_val in #(
  48303. *${as_nl}*)
  48304. case $ac_var in #(
  48305. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  48306. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  48307. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  48308. esac
  48309. case $ac_var in #(
  48310. _ | IFS | as_nl) ;; #(
  48311. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  48312. - *) $as_unset $ac_var ;;
  48313. + *) { eval $ac_var=; unset $ac_var;} ;;
  48314. esac ;;
  48315. esac
  48316. done
  48317. @@ -35361,8 +19129,8 @@
  48318. (set) 2>&1 |
  48319. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  48320. *${as_nl}ac_space=\ *)
  48321. - # `set' does not quote correctly, so add quotes (double-quote
  48322. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  48323. + # `set' does not quote correctly, so add quotes: double-quote
  48324. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  48325. sed -n \
  48326. "s/'/'\\\\''/g;
  48327. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  48328. @@ -35385,11 +19153,11 @@
  48329. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  48330. if test -w "$cache_file"; then
  48331. test "x$cache_file" != "x/dev/null" &&
  48332. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  48333. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  48334. $as_echo "$as_me: updating cache $cache_file" >&6;}
  48335. cat confcache >$cache_file
  48336. else
  48337. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  48338. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  48339. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  48340. fi
  48341. fi
  48342. @@ -35409,8 +19177,8 @@
  48343. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  48344. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  48345. # will be set to the directory where LIBOBJS objects are built.
  48346. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  48347. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  48348. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  48349. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  48350. done
  48351. LIBOBJS=$ac_libobjs
  48352. @@ -35426,42 +19194,31 @@
  48353. fi
  48354. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  48355. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  48356. -Usually this means the macro was only invoked conditionally." >&5
  48357. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  48358. -Usually this means the macro was only invoked conditionally." >&2;}
  48359. - { (exit 1); exit 1; }; }
  48360. + as_fn_error "conditional \"AMDEP\" was never defined.
  48361. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  48362. fi
  48363. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  48364. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  48365. -Usually this means the macro was only invoked conditionally." >&5
  48366. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  48367. -Usually this means the macro was only invoked conditionally." >&2;}
  48368. - { (exit 1); exit 1; }; }
  48369. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  48370. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  48371. fi
  48372. if test -z "${HAVE_MAKEINFO_TRUE}" && test -z "${HAVE_MAKEINFO_FALSE}"; then
  48373. - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MAKEINFO\" was never defined.
  48374. -Usually this means the macro was only invoked conditionally." >&5
  48375. -$as_echo "$as_me: error: conditional \"HAVE_MAKEINFO\" was never defined.
  48376. -Usually this means the macro was only invoked conditionally." >&2;}
  48377. - { (exit 1); exit 1; }; }
  48378. + as_fn_error "conditional \"HAVE_MAKEINFO\" was never defined.
  48379. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  48380. fi
  48381. if test -z "${BUILD_PTHREAD_SUPPORT_TRUE}" && test -z "${BUILD_PTHREAD_SUPPORT_FALSE}"; then
  48382. - { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PTHREAD_SUPPORT\" was never defined.
  48383. -Usually this means the macro was only invoked conditionally." >&5
  48384. -$as_echo "$as_me: error: conditional \"BUILD_PTHREAD_SUPPORT\" was never defined.
  48385. -Usually this means the macro was only invoked conditionally." >&2;}
  48386. - { (exit 1); exit 1; }; }
  48387. + as_fn_error "conditional \"BUILD_PTHREAD_SUPPORT\" was never defined.
  48388. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  48389. fi
  48390. : ${CONFIG_STATUS=./config.status}
  48391. ac_write_fail=0
  48392. ac_clean_files_save=$ac_clean_files
  48393. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  48394. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  48395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  48396. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  48397. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48398. +as_write_fail=0
  48399. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  48400. #! $SHELL
  48401. # Generated by $as_me.
  48402. # Run this file to recreate the current configuration.
  48403. @@ -35471,17 +19228,18 @@
  48404. debug=false
  48405. ac_cs_recheck=false
  48406. ac_cs_silent=false
  48407. -SHELL=\${CONFIG_SHELL-$SHELL}
  48408. -_ACEOF
  48409. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48410. -## --------------------- ##
  48411. -## M4sh Initialization. ##
  48412. -## --------------------- ##
  48413. +SHELL=\${CONFIG_SHELL-$SHELL}
  48414. +export SHELL
  48415. +_ASEOF
  48416. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  48417. +## -------------------- ##
  48418. +## M4sh Initialization. ##
  48419. +## -------------------- ##
  48420. # Be more Bourne compatible
  48421. DUALCASE=1; export DUALCASE # for MKS sh
  48422. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  48423. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  48424. emulate sh
  48425. NULLCMD=:
  48426. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  48427. @@ -35489,23 +19247,15 @@
  48428. alias -g '${1+"$@"}'='"$@"'
  48429. setopt NO_GLOB_SUBST
  48430. else
  48431. - case `(set -o) 2>/dev/null` in
  48432. - *posix*) set -o posix ;;
  48433. + case `(set -o) 2>/dev/null` in #(
  48434. + *posix*) :
  48435. + set -o posix ;; #(
  48436. + *) :
  48437. + ;;
  48438. esac
  48439. -
  48440. fi
  48441. -
  48442. -
  48443. -# PATH needs CR
  48444. -# Avoid depending upon Character Ranges.
  48445. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  48446. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  48447. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  48448. -as_cr_digits='0123456789'
  48449. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  48450. -
  48451. as_nl='
  48452. '
  48453. export as_nl
  48454. @@ -35513,7 +19263,13 @@
  48455. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  48456. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48457. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  48458. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48459. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  48460. +# but without wasting forks for bash or zsh.
  48461. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  48462. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  48463. + as_echo='print -r --'
  48464. + as_echo_n='print -rn --'
  48465. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48466. as_echo='printf %s\n'
  48467. as_echo_n='printf %s'
  48468. else
  48469. @@ -35524,7 +19280,7 @@
  48470. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  48471. as_echo_n_body='eval
  48472. arg=$1;
  48473. - case $arg in
  48474. + case $arg in #(
  48475. *"$as_nl"*)
  48476. expr "X$arg" : "X\\(.*\\)$as_nl";
  48477. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  48478. @@ -35547,13 +19303,6 @@
  48479. }
  48480. fi
  48481. -# Support unset when possible.
  48482. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  48483. - as_unset=unset
  48484. -else
  48485. - as_unset=false
  48486. -fi
  48487. -
  48488. # IFS
  48489. # We need space, tab and new line, in precisely that order. Quoting is
  48490. @@ -35563,15 +19312,15 @@
  48491. IFS=" "" $as_nl"
  48492. # Find who we are. Look in the path if we contain no directory separator.
  48493. -case $0 in
  48494. +case $0 in #((
  48495. *[\\/]* ) as_myself=$0 ;;
  48496. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48497. for as_dir in $PATH
  48498. do
  48499. IFS=$as_save_IFS
  48500. test -z "$as_dir" && as_dir=.
  48501. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  48502. -done
  48503. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  48504. + done
  48505. IFS=$as_save_IFS
  48506. ;;
  48507. @@ -35583,12 +19332,16 @@
  48508. fi
  48509. if test ! -f "$as_myself"; then
  48510. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  48511. - { (exit 1); exit 1; }
  48512. + exit 1
  48513. fi
  48514. -# Work around bugs in pre-3.0 UWIN ksh.
  48515. -for as_var in ENV MAIL MAILPATH
  48516. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  48517. +# Unset variables that we do not need and which cause bugs (e.g. in
  48518. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  48519. +# suppresses any "Segmentation fault" message there. '((' could
  48520. +# trigger a bug in pdksh 5.2.14.
  48521. +for as_var in BASH_ENV ENV MAIL MAILPATH
  48522. +do eval test x\${$as_var+set} = xset \
  48523. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  48524. done
  48525. PS1='$ '
  48526. PS2='> '
  48527. @@ -35600,7 +19353,89 @@
  48528. LANGUAGE=C
  48529. export LANGUAGE
  48530. -# Required to use basename.
  48531. +# CDPATH.
  48532. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  48533. +
  48534. +
  48535. +# as_fn_error ERROR [LINENO LOG_FD]
  48536. +# ---------------------------------
  48537. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  48538. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  48539. +# script with status $?, using 1 if that was 0.
  48540. +as_fn_error ()
  48541. +{
  48542. + as_status=$?; test $as_status -eq 0 && as_status=1
  48543. + if test "$3"; then
  48544. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  48545. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  48546. + fi
  48547. + $as_echo "$as_me: error: $1" >&2
  48548. + as_fn_exit $as_status
  48549. +} # as_fn_error
  48550. +
  48551. +
  48552. +# as_fn_set_status STATUS
  48553. +# -----------------------
  48554. +# Set $? to STATUS, without forking.
  48555. +as_fn_set_status ()
  48556. +{
  48557. + return $1
  48558. +} # as_fn_set_status
  48559. +
  48560. +# as_fn_exit STATUS
  48561. +# -----------------
  48562. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  48563. +as_fn_exit ()
  48564. +{
  48565. + set +e
  48566. + as_fn_set_status $1
  48567. + exit $1
  48568. +} # as_fn_exit
  48569. +
  48570. +# as_fn_unset VAR
  48571. +# ---------------
  48572. +# Portably unset VAR.
  48573. +as_fn_unset ()
  48574. +{
  48575. + { eval $1=; unset $1;}
  48576. +}
  48577. +as_unset=as_fn_unset
  48578. +# as_fn_append VAR VALUE
  48579. +# ----------------------
  48580. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  48581. +# advantage of any shell optimizations that allow amortized linear growth over
  48582. +# repeated appends, instead of the typical quadratic growth present in naive
  48583. +# implementations.
  48584. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  48585. + eval 'as_fn_append ()
  48586. + {
  48587. + eval $1+=\$2
  48588. + }'
  48589. +else
  48590. + as_fn_append ()
  48591. + {
  48592. + eval $1=\$$1\$2
  48593. + }
  48594. +fi # as_fn_append
  48595. +
  48596. +# as_fn_arith ARG...
  48597. +# ------------------
  48598. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  48599. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  48600. +# must be portable across $(()) and expr.
  48601. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  48602. + eval 'as_fn_arith ()
  48603. + {
  48604. + as_val=$(( $* ))
  48605. + }'
  48606. +else
  48607. + as_fn_arith ()
  48608. + {
  48609. + as_val=`expr "$@" || test $? -eq 1`
  48610. + }
  48611. +fi # as_fn_arith
  48612. +
  48613. +
  48614. if expr a : '\(a\)' >/dev/null 2>&1 &&
  48615. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48616. as_expr=expr
  48617. @@ -35614,8 +19449,12 @@
  48618. as_basename=false
  48619. fi
  48620. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  48621. + as_dirname=dirname
  48622. +else
  48623. + as_dirname=false
  48624. +fi
  48625. -# Name of the executable.
  48626. as_me=`$as_basename -- "$0" ||
  48627. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  48628. X"$0" : 'X\(//\)$' \| \
  48629. @@ -35635,76 +19474,25 @@
  48630. }
  48631. s/.*/./; q'`
  48632. -# CDPATH.
  48633. -$as_unset CDPATH
  48634. -
  48635. -
  48636. -
  48637. - as_lineno_1=$LINENO
  48638. - as_lineno_2=$LINENO
  48639. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  48640. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  48641. -
  48642. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  48643. - # uniformly replaced by the line number. The first 'sed' inserts a
  48644. - # line-number line after each line using $LINENO; the second 'sed'
  48645. - # does the real work. The second script uses 'N' to pair each
  48646. - # line-number line with the line containing $LINENO, and appends
  48647. - # trailing '-' during substitution so that $LINENO is not a special
  48648. - # case at line end.
  48649. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  48650. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  48651. - # E. McMahon (1931-1989) for sed's syntax. :-)
  48652. - sed -n '
  48653. - p
  48654. - /[$]LINENO/=
  48655. - ' <$as_myself |
  48656. - sed '
  48657. - s/[$]LINENO.*/&-/
  48658. - t lineno
  48659. - b
  48660. - :lineno
  48661. - N
  48662. - :loop
  48663. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  48664. - t loop
  48665. - s/-\n.*//
  48666. - ' >$as_me.lineno &&
  48667. - chmod +x "$as_me.lineno" ||
  48668. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  48669. - { (exit 1); exit 1; }; }
  48670. -
  48671. - # Don't try to exec as it changes $[0], causing all sort of problems
  48672. - # (the dirname of $[0] is not the place where we might find the
  48673. - # original and so on. Autoconf is especially sensitive to this).
  48674. - . "./$as_me.lineno"
  48675. - # Exit status is that of the last command.
  48676. - exit
  48677. -}
  48678. -
  48679. -
  48680. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  48681. - as_dirname=dirname
  48682. -else
  48683. - as_dirname=false
  48684. -fi
  48685. +# Avoid depending upon Character Ranges.
  48686. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  48687. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  48688. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  48689. +as_cr_digits='0123456789'
  48690. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  48691. ECHO_C= ECHO_N= ECHO_T=
  48692. -case `echo -n x` in
  48693. +case `echo -n x` in #(((((
  48694. -n*)
  48695. - case `echo 'x\c'` in
  48696. + case `echo 'xy\c'` in
  48697. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  48698. - *) ECHO_C='\c';;
  48699. + xy) ECHO_C='\c';;
  48700. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  48701. + ECHO_T=' ';;
  48702. esac;;
  48703. *)
  48704. ECHO_N='-n';;
  48705. esac
  48706. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  48707. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48708. - as_expr=expr
  48709. -else
  48710. - as_expr=false
  48711. -fi
  48712. rm -f conf$$ conf$$.exe conf$$.file
  48713. if test -d conf$$.dir; then
  48714. @@ -35733,8 +19521,56 @@
  48715. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  48716. rmdir conf$$.dir 2>/dev/null
  48717. +
  48718. +# as_fn_mkdir_p
  48719. +# -------------
  48720. +# Create "$as_dir" as a directory, including parents if necessary.
  48721. +as_fn_mkdir_p ()
  48722. +{
  48723. +
  48724. + case $as_dir in #(
  48725. + -*) as_dir=./$as_dir;;
  48726. + esac
  48727. + test -d "$as_dir" || eval $as_mkdir_p || {
  48728. + as_dirs=
  48729. + while :; do
  48730. + case $as_dir in #(
  48731. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  48732. + *) as_qdir=$as_dir;;
  48733. + esac
  48734. + as_dirs="'$as_qdir' $as_dirs"
  48735. + as_dir=`$as_dirname -- "$as_dir" ||
  48736. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48737. + X"$as_dir" : 'X\(//\)[^/]' \| \
  48738. + X"$as_dir" : 'X\(//\)$' \| \
  48739. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  48740. +$as_echo X"$as_dir" |
  48741. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48742. + s//\1/
  48743. + q
  48744. + }
  48745. + /^X\(\/\/\)[^/].*/{
  48746. + s//\1/
  48747. + q
  48748. + }
  48749. + /^X\(\/\/\)$/{
  48750. + s//\1/
  48751. + q
  48752. + }
  48753. + /^X\(\/\).*/{
  48754. + s//\1/
  48755. + q
  48756. + }
  48757. + s/.*/./; q'`
  48758. + test -d "$as_dir" && break
  48759. + done
  48760. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  48761. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  48762. +
  48763. +
  48764. +} # as_fn_mkdir_p
  48765. if mkdir -p . 2>/dev/null; then
  48766. - as_mkdir_p=:
  48767. + as_mkdir_p='mkdir -p "$as_dir"'
  48768. else
  48769. test -d ./-p && rmdir ./-p
  48770. as_mkdir_p=false
  48771. @@ -35753,10 +19589,10 @@
  48772. if test -d "$1"; then
  48773. test -d "$1/.";
  48774. else
  48775. - case $1 in
  48776. + case $1 in #(
  48777. -*)set "./$1";;
  48778. esac;
  48779. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  48780. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  48781. ???[sx]*):;;*)false;;esac;fi
  48782. '\'' sh
  48783. '
  48784. @@ -35771,13 +19607,19 @@
  48785. exec 6>&1
  48786. +## ----------------------------------- ##
  48787. +## Main body of $CONFIG_STATUS script. ##
  48788. +## ----------------------------------- ##
  48789. +_ASEOF
  48790. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  48791. -# Save the log message, to keep $[0] and so on meaningful, and to
  48792. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48793. +# Save the log message, to keep $0 and so on meaningful, and to
  48794. # report actual input values of CONFIG_FILES etc. instead of their
  48795. # values after options handling.
  48796. ac_log="
  48797. This file was extended by guile $as_me 1.8.7, which was
  48798. -generated by GNU Autoconf 2.63. Invocation command line was
  48799. +generated by GNU Autoconf 2.64. Invocation command line was
  48800. CONFIG_FILES = $CONFIG_FILES
  48801. CONFIG_HEADERS = $CONFIG_HEADERS
  48802. @@ -35809,10 +19651,11 @@
  48803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48804. ac_cs_usage="\
  48805. -\`$as_me' instantiates files from templates according to the
  48806. -current configuration.
  48807. +\`$as_me' instantiates files and other configuration actions
  48808. +from templates according to the current configuration. Unless the files
  48809. +and actions are specified as TAGs, all are instantiated by default.
  48810. -Usage: $0 [OPTION]... [FILE]...
  48811. +Usage: $0 [OPTION]... [TAG]...
  48812. -h, --help print this help, then exit
  48813. -V, --version print version number and configuration settings, then exit
  48814. @@ -35834,16 +19677,16 @@
  48815. Configuration commands:
  48816. $config_commands
  48817. -Report bugs to <bug-autoconf@gnu.org>."
  48818. +Report bugs to <bug-guile@gnu.org>."
  48819. _ACEOF
  48820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48821. ac_cs_version="\\
  48822. guile config.status 1.8.7
  48823. -configured by $0, generated by GNU Autoconf 2.63,
  48824. +configured by $0, generated by GNU Autoconf 2.64,
  48825. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  48826. -Copyright (C) 2008 Free Software Foundation, Inc.
  48827. +Copyright (C) 2009 Free Software Foundation, Inc.
  48828. This config.status script is free software; the Free Software Foundation
  48829. gives unlimited permission to copy, distribute and modify it."
  48830. @@ -35886,20 +19729,19 @@
  48831. case $ac_optarg in
  48832. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  48833. esac
  48834. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  48835. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  48836. ac_need_defaults=false;;
  48837. --header | --heade | --head | --hea )
  48838. $ac_shift
  48839. case $ac_optarg in
  48840. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  48841. esac
  48842. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  48843. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  48844. ac_need_defaults=false;;
  48845. --he | --h)
  48846. # Conflict between --help and --header
  48847. - { $as_echo "$as_me: error: ambiguous option: $1
  48848. -Try \`$0 --help' for more information." >&2
  48849. - { (exit 1); exit 1; }; };;
  48850. + as_fn_error "ambiguous option: \`$1'
  48851. +Try \`$0 --help' for more information.";;
  48852. --help | --hel | -h )
  48853. $as_echo "$ac_cs_usage"; exit ;;
  48854. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  48855. @@ -35907,11 +19749,10 @@
  48856. ac_cs_silent=: ;;
  48857. # This is an error.
  48858. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  48859. -Try \`$0 --help' for more information." >&2
  48860. - { (exit 1); exit 1; }; } ;;
  48861. + -*) as_fn_error "unrecognized option: \`$1'
  48862. +Try \`$0 --help' for more information." ;;
  48863. - *) ac_config_targets="$ac_config_targets $1"
  48864. + *) as_fn_append ac_config_targets " $1"
  48865. ac_need_defaults=false ;;
  48866. esac
  48867. @@ -36234,9 +20075,7 @@
  48868. "am/Makefile") CONFIG_FILES="$CONFIG_FILES am/Makefile" ;;
  48869. "benchmark-suite/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark-suite/Makefile" ;;
  48870. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  48871. - "doc/goops/Makefile") CONFIG_FILES="$CONFIG_FILES doc/goops/Makefile" ;;
  48872. "doc/r5rs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/r5rs/Makefile" ;;
  48873. - "doc/ref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ref/Makefile" ;;
  48874. "doc/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tutorial/Makefile" ;;
  48875. "emacs/Makefile") CONFIG_FILES="$CONFIG_FILES emacs/Makefile" ;;
  48876. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  48877. @@ -36263,9 +20102,7 @@
  48878. "test-suite/standalone/test-use-srfi") CONFIG_FILES="$CONFIG_FILES test-suite/standalone/test-use-srfi" ;;
  48879. "test-suite/standalone/test-fast-slot-ref") CONFIG_FILES="$CONFIG_FILES test-suite/standalone/test-fast-slot-ref" ;;
  48880. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  48881. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  48882. - { (exit 1); exit 1; }; };;
  48883. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  48884. esac
  48885. done
  48886. @@ -36292,7 +20129,7 @@
  48887. trap 'exit_status=$?
  48888. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  48889. ' 0
  48890. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  48891. + trap 'as_fn_exit 1' 1 2 13 15
  48892. }
  48893. # Create a (secure) tmp directory for tmp files.
  48894. @@ -36303,11 +20140,7 @@
  48895. {
  48896. tmp=./conf$$-$RANDOM
  48897. (umask 077 && mkdir "$tmp")
  48898. -} ||
  48899. -{
  48900. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  48901. - { (exit 1); exit 1; }
  48902. -}
  48903. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  48904. # Set up the scripts for CONFIG_FILES section.
  48905. # No need to generate them if there are no CONFIG_FILES.
  48906. @@ -36315,10 +20148,16 @@
  48907. if test -n "$CONFIG_FILES"; then
  48908. -ac_cr=' '
  48909. +ac_cr=`echo X | tr X '\015'`
  48910. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  48911. +# But we know of no other shell where ac_cr would be empty at this
  48912. +# point, so we can use a bashism as a fallback.
  48913. +if test "x$ac_cr" = x; then
  48914. + eval ac_cr=\$\'\\r\'
  48915. +fi
  48916. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  48917. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  48918. - ac_cs_awk_cr='\\r'
  48919. + ac_cs_awk_cr='\r'
  48920. else
  48921. ac_cs_awk_cr=$ac_cr
  48922. fi
  48923. @@ -36332,24 +20171,18 @@
  48924. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  48925. echo "_ACEOF"
  48926. } >conf$$subs.sh ||
  48927. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48928. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48929. - { (exit 1); exit 1; }; }
  48930. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48931. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  48932. ac_delim='%!_!# '
  48933. for ac_last_try in false false false false false :; do
  48934. . ./conf$$subs.sh ||
  48935. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48936. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48937. - { (exit 1); exit 1; }; }
  48938. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48939. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  48940. if test $ac_delim_n = $ac_delim_num; then
  48941. break
  48942. elif $ac_last_try; then
  48943. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48944. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48945. - { (exit 1); exit 1; }; }
  48946. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48947. else
  48948. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48949. fi
  48950. @@ -36438,9 +20271,7 @@
  48951. else
  48952. cat
  48953. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  48954. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  48955. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  48956. - { (exit 1); exit 1; }; }
  48957. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  48958. _ACEOF
  48959. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  48960. @@ -36481,9 +20312,7 @@
  48961. if test -z "$ac_t"; then
  48962. break
  48963. elif $ac_last_try; then
  48964. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  48965. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  48966. - { (exit 1); exit 1; }; }
  48967. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  48968. else
  48969. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48970. fi
  48971. @@ -36568,9 +20397,7 @@
  48972. _ACAWK
  48973. _ACEOF
  48974. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48975. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  48976. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  48977. - { (exit 1); exit 1; }; }
  48978. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  48979. fi # test -n "$CONFIG_HEADERS"
  48980. @@ -36583,9 +20410,7 @@
  48981. esac
  48982. case $ac_mode$ac_tag in
  48983. :[FHL]*:*);;
  48984. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  48985. -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  48986. - { (exit 1); exit 1; }; };;
  48987. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  48988. :[FH]-) ac_tag=-:-;;
  48989. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  48990. esac
  48991. @@ -36613,12 +20438,10 @@
  48992. [\\/$]*) false;;
  48993. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  48994. esac ||
  48995. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  48996. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  48997. - { (exit 1); exit 1; }; };;
  48998. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  48999. esac
  49000. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  49001. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  49002. + as_fn_append ac_file_inputs " '$ac_f'"
  49003. done
  49004. # Let's still pretend it is `configure' which instantiates (i.e., don't
  49005. @@ -36629,7 +20452,7 @@
  49006. `' by configure.'
  49007. if test x"$ac_file" != x-; then
  49008. configure_input="$ac_file. $configure_input"
  49009. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  49010. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  49011. $as_echo "$as_me: creating $ac_file" >&6;}
  49012. fi
  49013. # Neutralize special characters interpreted by sed in replacement strings.
  49014. @@ -36642,9 +20465,7 @@
  49015. case $ac_tag in
  49016. *:-:* | *:-) cat >"$tmp/stdin" \
  49017. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  49018. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  49019. - { (exit 1); exit 1; }; } ;;
  49020. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  49021. esac
  49022. ;;
  49023. esac
  49024. @@ -36672,47 +20493,7 @@
  49025. q
  49026. }
  49027. s/.*/./; q'`
  49028. - { as_dir="$ac_dir"
  49029. - case $as_dir in #(
  49030. - -*) as_dir=./$as_dir;;
  49031. - esac
  49032. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  49033. - as_dirs=
  49034. - while :; do
  49035. - case $as_dir in #(
  49036. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  49037. - *) as_qdir=$as_dir;;
  49038. - esac
  49039. - as_dirs="'$as_qdir' $as_dirs"
  49040. - as_dir=`$as_dirname -- "$as_dir" ||
  49041. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49042. - X"$as_dir" : 'X\(//\)[^/]' \| \
  49043. - X"$as_dir" : 'X\(//\)$' \| \
  49044. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  49045. -$as_echo X"$as_dir" |
  49046. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49047. - s//\1/
  49048. - q
  49049. - }
  49050. - /^X\(\/\/\)[^/].*/{
  49051. - s//\1/
  49052. - q
  49053. - }
  49054. - /^X\(\/\/\)$/{
  49055. - s//\1/
  49056. - q
  49057. - }
  49058. - /^X\(\/\).*/{
  49059. - s//\1/
  49060. - q
  49061. - }
  49062. - s/.*/./; q'`
  49063. - test -d "$as_dir" && break
  49064. - done
  49065. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  49066. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  49067. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  49068. - { (exit 1); exit 1; }; }; }
  49069. + as_dir="$ac_dir"; as_fn_mkdir_p
  49070. ac_builddir=.
  49071. case "$ac_dir" in
  49072. @@ -36769,7 +20550,6 @@
  49073. # If the template does not know about datarootdir, expand it.
  49074. # FIXME: This hack should be removed a few years after 2.60.
  49075. ac_datarootdir_hack=; ac_datarootdir_seen=
  49076. -
  49077. ac_sed_dataroot='
  49078. /datarootdir/ {
  49079. p
  49080. @@ -36779,12 +20559,11 @@
  49081. /@docdir@/p
  49082. /@infodir@/p
  49083. /@localedir@/p
  49084. -/@mandir@/p
  49085. -'
  49086. +/@mandir@/p'
  49087. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  49088. *datarootdir*) ac_datarootdir_seen=yes;;
  49089. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  49090. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  49091. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  49092. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  49093. _ACEOF
  49094. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  49095. @@ -36794,7 +20573,7 @@
  49096. s&@infodir@&$infodir&g
  49097. s&@localedir@&$localedir&g
  49098. s&@mandir@&$mandir&g
  49099. - s&\\\${datarootdir}&$datarootdir&g' ;;
  49100. + s&\\\${datarootdir}&$datarootdir&g' ;;
  49101. esac
  49102. _ACEOF
  49103. @@ -36823,14 +20602,12 @@
  49104. $ac_datarootdir_hack
  49105. "
  49106. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  49107. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  49108. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  49109. - { (exit 1); exit 1; }; }
  49110. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49111. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  49112. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  49113. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  49114. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49115. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49116. which seems to be undefined. Please make sure it is defined." >&5
  49117. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49118. which seems to be undefined. Please make sure it is defined." >&2;}
  49119. @@ -36840,9 +20617,7 @@
  49120. -) cat "$tmp/out" && rm -f "$tmp/out";;
  49121. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  49122. esac \
  49123. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  49124. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  49125. - { (exit 1); exit 1; }; }
  49126. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49127. ;;
  49128. :H)
  49129. #
  49130. @@ -36853,25 +20628,19 @@
  49131. $as_echo "/* $configure_input */" \
  49132. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  49133. } >"$tmp/config.h" \
  49134. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  49135. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  49136. - { (exit 1); exit 1; }; }
  49137. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49138. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  49139. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  49140. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  49141. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  49142. else
  49143. rm -f "$ac_file"
  49144. mv "$tmp/config.h" "$ac_file" \
  49145. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  49146. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  49147. - { (exit 1); exit 1; }; }
  49148. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49149. fi
  49150. else
  49151. $as_echo "/* $configure_input */" \
  49152. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  49153. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  49154. -$as_echo "$as_me: error: could not create -" >&2;}
  49155. - { (exit 1); exit 1; }; }
  49156. + || as_fn_error "could not create -" "$LINENO" 5
  49157. fi
  49158. # Compute "$ac_file"'s index in $config_headers.
  49159. _am_arg="$ac_file"
  49160. @@ -36909,7 +20678,7 @@
  49161. s/.*/./; q'`/stamp-h$_am_stamp_count
  49162. ;;
  49163. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  49164. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  49165. $as_echo "$as_me: executing $ac_file commands" >&6;}
  49166. ;;
  49167. esac
  49168. @@ -37004,47 +20773,7 @@
  49169. q
  49170. }
  49171. s/.*/./; q'`
  49172. - { as_dir=$dirpart/$fdir
  49173. - case $as_dir in #(
  49174. - -*) as_dir=./$as_dir;;
  49175. - esac
  49176. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  49177. - as_dirs=
  49178. - while :; do
  49179. - case $as_dir in #(
  49180. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  49181. - *) as_qdir=$as_dir;;
  49182. - esac
  49183. - as_dirs="'$as_qdir' $as_dirs"
  49184. - as_dir=`$as_dirname -- "$as_dir" ||
  49185. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49186. - X"$as_dir" : 'X\(//\)[^/]' \| \
  49187. - X"$as_dir" : 'X\(//\)$' \| \
  49188. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  49189. -$as_echo X"$as_dir" |
  49190. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49191. - s//\1/
  49192. - q
  49193. - }
  49194. - /^X\(\/\/\)[^/].*/{
  49195. - s//\1/
  49196. - q
  49197. - }
  49198. - /^X\(\/\/\)$/{
  49199. - s//\1/
  49200. - q
  49201. - }
  49202. - /^X\(\/\).*/{
  49203. - s//\1/
  49204. - q
  49205. - }
  49206. - s/.*/./; q'`
  49207. - test -d "$as_dir" && break
  49208. - done
  49209. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  49210. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  49211. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  49212. - { (exit 1); exit 1; }; }; }
  49213. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  49214. # echo "creating $dirpart/$file"
  49215. echo '# dummy' > "$dirpart/$file"
  49216. done
  49217. @@ -37821,15 +21550,12 @@
  49218. done # for ac_tag
  49219. -{ (exit 0); exit 0; }
  49220. +as_fn_exit 0
  49221. _ACEOF
  49222. -chmod +x $CONFIG_STATUS
  49223. ac_clean_files=$ac_clean_files_save
  49224. test $ac_write_fail = 0 ||
  49225. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  49226. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  49227. - { (exit 1); exit 1; }; }
  49228. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  49229. # configure is writing to config.log, and then calls config.status.
  49230. @@ -37850,7 +21576,7 @@
  49231. exec 5>>config.log
  49232. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  49233. # would make configure fail if this is the last instruction.
  49234. - $ac_cs_success || { (exit 1); exit 1; }
  49235. + $ac_cs_success || as_fn_exit $?
  49236. fi
  49237. #
  49238. @@ -37894,7 +21620,7 @@
  49239. case $ac_arg in
  49240. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  49241. esac
  49242. - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  49243. + as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  49244. esac
  49245. done
  49246. @@ -37923,49 +21649,9 @@
  49247. test -d "$srcdir/$ac_dir" || continue
  49248. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  49249. - $as_echo "$as_me:$LINENO: $ac_msg" >&5
  49250. + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  49251. $as_echo "$ac_msg" >&6
  49252. - { as_dir="$ac_dir"
  49253. - case $as_dir in #(
  49254. - -*) as_dir=./$as_dir;;
  49255. - esac
  49256. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  49257. - as_dirs=
  49258. - while :; do
  49259. - case $as_dir in #(
  49260. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  49261. - *) as_qdir=$as_dir;;
  49262. - esac
  49263. - as_dirs="'$as_qdir' $as_dirs"
  49264. - as_dir=`$as_dirname -- "$as_dir" ||
  49265. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49266. - X"$as_dir" : 'X\(//\)[^/]' \| \
  49267. - X"$as_dir" : 'X\(//\)$' \| \
  49268. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  49269. -$as_echo X"$as_dir" |
  49270. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49271. - s//\1/
  49272. - q
  49273. - }
  49274. - /^X\(\/\/\)[^/].*/{
  49275. - s//\1/
  49276. - q
  49277. - }
  49278. - /^X\(\/\/\)$/{
  49279. - s//\1/
  49280. - q
  49281. - }
  49282. - /^X\(\/\).*/{
  49283. - s//\1/
  49284. - q
  49285. - }
  49286. - s/.*/./; q'`
  49287. - test -d "$as_dir" && break
  49288. - done
  49289. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  49290. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  49291. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  49292. - { (exit 1); exit 1; }; }; }
  49293. + as_dir="$ac_dir"; as_fn_mkdir_p
  49294. ac_builddir=.
  49295. case "$ac_dir" in
  49296. @@ -38012,7 +21698,7 @@
  49297. # This should be Cygnus configure.
  49298. ac_sub_configure=$ac_aux_dir/configure
  49299. else
  49300. - { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  49301. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  49302. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  49303. ac_sub_configure=
  49304. fi
  49305. @@ -38026,21 +21712,19 @@
  49306. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  49307. esac
  49308. - { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  49309. + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  49310. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  49311. # The eval makes quoting arguments work.
  49312. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  49313. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  49314. - { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  49315. -$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  49316. - { (exit 1); exit 1; }; }
  49317. + as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  49318. fi
  49319. cd "$ac_popdir"
  49320. done
  49321. fi
  49322. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  49323. - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  49324. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  49325. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  49326. fi
  49327. Index: sid/doc/Makefile.in
  49328. ===================================================================
  49329. --- sid.orig/doc/Makefile.in
  49330. +++ sid/doc/Makefile.in
  49331. @@ -39,7 +39,10 @@
  49332. subdir = doc
  49333. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49334. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49335. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49336. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49337. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49338. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49339. + $(top_srcdir)/configure.in
  49340. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49341. $(ACLOCAL_M4)
  49342. mkinstalldirs = $(install_sh) -d
  49343. @@ -220,6 +223,7 @@
  49344. PACKAGE_NAME = @PACKAGE_NAME@
  49345. PACKAGE_STRING = @PACKAGE_STRING@
  49346. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49347. +PACKAGE_URL = @PACKAGE_URL@
  49348. PACKAGE_VERSION = @PACKAGE_VERSION@
  49349. PATH_SEPARATOR = @PATH_SEPARATOR@
  49350. POSUB = @POSUB@
  49351. @@ -322,11 +326,8 @@
  49352. top_srcdir = @top_srcdir@
  49353. top_srcdir_absolute = @top_srcdir_absolute@
  49354. AUTOMAKE_OPTIONS = gnu
  49355. -SUBDIRS = ref tutorial goops r5rs
  49356. +SUBDIRS = tutorial r5rs
  49357. dist_man1_MANS = guile.1
  49358. -EXAMPLE_SMOB_FILES = \
  49359. - ChangeLog-2008 Makefile README image-type.c image-type.h myguile.c
  49360. -
  49361. OLDFMT = oldfmt.c
  49362. EXTRA_DIST = groupings.alist ChangeLog-2008 # guile-api.alist
  49363. workbook = $(top_srcdir_absolute)/../workbook
  49364. @@ -736,10 +737,6 @@
  49365. dist-hook:
  49366. cp $(srcdir)/$(OLDFMT) $(distdir)/
  49367. - mkdir $(distdir)/example-smob
  49368. - for f in $(EXAMPLE_SMOB_FILES); do \
  49369. - cp $(srcdir)/example-smob/$$f $(distdir)/example-smob/; \
  49370. - done
  49371. guile-api.alist: guile-api.alist-FORCE
  49372. ( cd $(top_builddir) ; $(mscripts)/update-guile-api.alist )
  49373. Index: sid/doc/r5rs/Makefile.in
  49374. ===================================================================
  49375. --- sid.orig/doc/r5rs/Makefile.in
  49376. +++ sid/doc/r5rs/Makefile.in
  49377. @@ -37,7 +37,10 @@
  49378. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  49379. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49380. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49381. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49382. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49383. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49384. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49385. + $(top_srcdir)/configure.in
  49386. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49387. $(ACLOCAL_M4)
  49388. mkinstalldirs = $(install_sh) -d
  49389. @@ -188,6 +191,7 @@
  49390. PACKAGE_NAME = @PACKAGE_NAME@
  49391. PACKAGE_STRING = @PACKAGE_STRING@
  49392. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49393. +PACKAGE_URL = @PACKAGE_URL@
  49394. PACKAGE_VERSION = @PACKAGE_VERSION@
  49395. PATH_SEPARATOR = @PATH_SEPARATOR@
  49396. POSUB = @POSUB@
  49397. Index: sid/doc/tutorial/Makefile.in
  49398. ===================================================================
  49399. --- sid.orig/doc/tutorial/Makefile.in
  49400. +++ sid/doc/tutorial/Makefile.in
  49401. @@ -38,7 +38,10 @@
  49402. $(srcdir)/stamp-vti $(srcdir)/version.texi
  49403. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49404. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49405. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49406. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49407. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49408. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49409. + $(top_srcdir)/configure.in
  49410. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49411. $(ACLOCAL_M4)
  49412. mkinstalldirs = $(install_sh) -d
  49413. @@ -47,14 +50,14 @@
  49414. CONFIG_CLEAN_VPATH_FILES =
  49415. SOURCES =
  49416. DIST_SOURCES =
  49417. -INFO_DEPS = $(srcdir)/guile-tut.info
  49418. +INFO_DEPS = $(srcdir)/guile-tut-1.8.info
  49419. TEXINFO_TEX = $(top_srcdir)/build-aux/texinfo.tex
  49420. am__TEXINFO_TEX_DIR = $(top_srcdir)/build-aux
  49421. -DVIS = guile-tut.dvi
  49422. -PDFS = guile-tut.pdf
  49423. -PSS = guile-tut.ps
  49424. -HTMLS = guile-tut.html
  49425. -TEXINFOS = guile-tut.texi
  49426. +DVIS = guile-tut-1.8.dvi
  49427. +PDFS = guile-tut-1.8.pdf
  49428. +PSS = guile-tut-1.8.ps
  49429. +HTMLS = guile-tut-1.8.html
  49430. +TEXINFOS = guile-tut-1.8.texi
  49431. TEXI2DVI = texi2dvi
  49432. TEXI2PDF = $(TEXI2DVI) --pdf --batch
  49433. MAKEINFOHTML = $(MAKEINFO) --html
  49434. @@ -189,6 +192,7 @@
  49435. PACKAGE_NAME = @PACKAGE_NAME@
  49436. PACKAGE_STRING = @PACKAGE_STRING@
  49437. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49438. +PACKAGE_URL = @PACKAGE_URL@
  49439. PACKAGE_VERSION = @PACKAGE_VERSION@
  49440. PATH_SEPARATOR = @PATH_SEPARATOR@
  49441. POSUB = @POSUB@
  49442. @@ -291,7 +295,7 @@
  49443. top_srcdir = @top_srcdir@
  49444. top_srcdir_absolute = @top_srcdir_absolute@
  49445. AUTOMAKE_OPTIONS = gnu
  49446. -info_TEXINFOS = guile-tut.texi
  49447. +info_TEXINFOS = guile-tut-1.8.texi
  49448. EXTRA_DIST = ChangeLog-2008
  49449. all: all-am
  49450. @@ -379,14 +383,14 @@
  49451. rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
  49452. exit 1; \
  49453. fi
  49454. -$(srcdir)/guile-tut.info: guile-tut.texi $(srcdir)/version.texi
  49455. -guile-tut.dvi: guile-tut.texi $(srcdir)/version.texi
  49456. -guile-tut.pdf: guile-tut.texi $(srcdir)/version.texi
  49457. -guile-tut.html: guile-tut.texi $(srcdir)/version.texi
  49458. +$(srcdir)/guile-tut-1.8.info: guile-tut-1.8.texi $(srcdir)/version.texi
  49459. +guile-tut-1.8.dvi: guile-tut-1.8.texi $(srcdir)/version.texi
  49460. +guile-tut-1.8.pdf: guile-tut-1.8.texi $(srcdir)/version.texi
  49461. +guile-tut-1.8.html: guile-tut-1.8.texi $(srcdir)/version.texi
  49462. $(srcdir)/version.texi: $(srcdir)/stamp-vti
  49463. -$(srcdir)/stamp-vti: guile-tut.texi $(top_srcdir)/configure
  49464. - @(dir=.; test -f ./guile-tut.texi || dir=$(srcdir); \
  49465. - set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/guile-tut.texi`; \
  49466. +$(srcdir)/stamp-vti: guile-tut-1.8.texi $(top_srcdir)/configure
  49467. + @(dir=.; test -f ./guile-tut-1.8.texi || dir=$(srcdir); \
  49468. + set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/guile-tut-1.8.texi`; \
  49469. echo "@set UPDATED $$1 $$2 $$3"; \
  49470. echo "@set UPDATED-MONTH $$2 $$3"; \
  49471. echo "@set EDITION $(VERSION)"; \
  49472. @@ -485,14 +489,18 @@
  49473. done
  49474. mostlyclean-aminfo:
  49475. - -rm -rf guile-tut.aux guile-tut.cp guile-tut.cps guile-tut.fn guile-tut.fns \
  49476. - guile-tut.ky guile-tut.kys guile-tut.log guile-tut.pg \
  49477. - guile-tut.pgs guile-tut.tmp guile-tut.toc guile-tut.tp \
  49478. - guile-tut.tps guile-tut.vr guile-tut.vrs
  49479. + -rm -rf guile-tut-1.8.aux guile-tut-1.8.cp guile-tut-1.8.cps \
  49480. + guile-tut-1.8.fn guile-tut-1.8.fns guile-tut-1.8.ky \
  49481. + guile-tut-1.8.kys guile-tut-1.8.log guile-tut-1.8.pg \
  49482. + guile-tut-1.8.pgs guile-tut-1.8.tmp guile-tut-1.8.toc \
  49483. + guile-tut-1.8.tp guile-tut-1.8.tps guile-tut-1.8.vr \
  49484. + guile-tut-1.8.vrs
  49485. clean-aminfo:
  49486. - -test -z "guile-tut.dvi guile-tut.pdf guile-tut.ps guile-tut.html" \
  49487. - || rm -rf guile-tut.dvi guile-tut.pdf guile-tut.ps guile-tut.html
  49488. + -test -z "guile-tut-1.8.dvi guile-tut-1.8.pdf guile-tut-1.8.ps \
  49489. + guile-tut-1.8.html" \
  49490. + || rm -rf guile-tut-1.8.dvi guile-tut-1.8.pdf guile-tut-1.8.ps \
  49491. + guile-tut-1.8.html
  49492. maintainer-clean-aminfo:
  49493. @list='$(INFO_DEPS)'; for i in $$list; do \
  49494. Index: sid/emacs/Makefile.in
  49495. ===================================================================
  49496. --- sid.orig/emacs/Makefile.in
  49497. +++ sid/emacs/Makefile.in
  49498. @@ -39,7 +39,10 @@
  49499. $(srcdir)/Makefile.in
  49500. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49501. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49502. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49503. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49504. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49505. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49506. + $(top_srcdir)/configure.in
  49507. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49508. $(ACLOCAL_M4)
  49509. mkinstalldirs = $(install_sh) -d
  49510. @@ -184,6 +187,7 @@
  49511. PACKAGE_NAME = @PACKAGE_NAME@
  49512. PACKAGE_STRING = @PACKAGE_STRING@
  49513. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49514. +PACKAGE_URL = @PACKAGE_URL@
  49515. PACKAGE_VERSION = @PACKAGE_VERSION@
  49516. PATH_SEPARATOR = @PATH_SEPARATOR@
  49517. POSUB = @POSUB@
  49518. Index: sid/examples/Makefile.in
  49519. ===================================================================
  49520. --- sid.orig/examples/Makefile.in
  49521. +++ sid/examples/Makefile.in
  49522. @@ -37,7 +37,10 @@
  49523. DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  49524. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49525. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49526. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49527. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49528. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49529. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49530. + $(top_srcdir)/configure.in
  49531. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49532. $(ACLOCAL_M4)
  49533. mkinstalldirs = $(install_sh) -d
  49534. @@ -153,6 +156,7 @@
  49535. PACKAGE_NAME = @PACKAGE_NAME@
  49536. PACKAGE_STRING = @PACKAGE_STRING@
  49537. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49538. +PACKAGE_URL = @PACKAGE_URL@
  49539. PACKAGE_VERSION = @PACKAGE_VERSION@
  49540. PATH_SEPARATOR = @PATH_SEPARATOR@
  49541. POSUB = @POSUB@
  49542. Index: sid/guile-config/Makefile.in
  49543. ===================================================================
  49544. --- sid.orig/guile-config/Makefile.in
  49545. +++ sid/guile-config/Makefile.in
  49546. @@ -39,7 +39,10 @@
  49547. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  49548. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  49549. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  49550. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  49551. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  49552. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  49553. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  49554. + $(top_srcdir)/configure.in
  49555. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  49556. $(ACLOCAL_M4)
  49557. mkinstalldirs = $(install_sh) -d
  49558. @@ -179,6 +182,7 @@
  49559. PACKAGE_NAME = @PACKAGE_NAME@
  49560. PACKAGE_STRING = @PACKAGE_STRING@
  49561. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49562. +PACKAGE_URL = @PACKAGE_URL@
  49563. PACKAGE_VERSION = @PACKAGE_VERSION@
  49564. PATH_SEPARATOR = @PATH_SEPARATOR@
  49565. POSUB = @POSUB@
  49566. Index: sid/guile-readline/Makefile.in
  49567. ===================================================================
  49568. --- sid.orig/guile-readline/Makefile.in
  49569. +++ sid/guile-readline/Makefile.in
  49570. @@ -211,6 +211,7 @@
  49571. PACKAGE_NAME = @PACKAGE_NAME@
  49572. PACKAGE_STRING = @PACKAGE_STRING@
  49573. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  49574. +PACKAGE_URL = @PACKAGE_URL@
  49575. PACKAGE_VERSION = @PACKAGE_VERSION@
  49576. PATH_SEPARATOR = @PATH_SEPARATOR@
  49577. RANLIB = @RANLIB@
  49578. Index: sid/guile-readline/aclocal.m4
  49579. ===================================================================
  49580. --- sid.orig/guile-readline/aclocal.m4
  49581. +++ sid/guile-readline/aclocal.m4
  49582. @@ -13,4126 +13,3173 @@
  49583. m4_ifndef([AC_AUTOCONF_VERSION],
  49584. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  49585. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  49586. -[m4_warning([this file was generated for autoconf 2.63.
  49587. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
  49588. +[m4_warning([this file was generated for autoconf 2.64.
  49589. You have another version of autoconf. It may work, but is not guaranteed to.
  49590. If you have problems, you may need to regenerate the build system entirely.
  49591. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  49592. -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  49593. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  49594. #
  49595. -# This file is free software; the Free Software Foundation
  49596. -# gives unlimited permission to copy and/or distribute it,
  49597. -# with or without modifications, as long as this notice is preserved.
  49598. -
  49599. -# AM_AUTOMAKE_VERSION(VERSION)
  49600. -# ----------------------------
  49601. -# Automake X.Y traces this macro to ensure aclocal.m4 has been
  49602. -# generated from the m4 files accompanying Automake X.Y.
  49603. -# (This private macro should not be called outside this file.)
  49604. -AC_DEFUN([AM_AUTOMAKE_VERSION],
  49605. -[am__api_version='1.11'
  49606. -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  49607. -dnl require some minimum version. Point them to the right macro.
  49608. -m4_if([$1], [1.11], [],
  49609. - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  49610. -])
  49611. -
  49612. -# _AM_AUTOCONF_VERSION(VERSION)
  49613. -# -----------------------------
  49614. -# aclocal traces this macro to find the Autoconf version.
  49615. -# This is a private macro too. Using m4_define simplifies
  49616. -# the logic in aclocal, which can simply ignore this definition.
  49617. -m4_define([_AM_AUTOCONF_VERSION], [])
  49618. -
  49619. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  49620. -# -------------------------------
  49621. -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  49622. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  49623. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  49624. -[AM_AUTOMAKE_VERSION([1.11])dnl
  49625. -m4_ifndef([AC_AUTOCONF_VERSION],
  49626. - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  49627. -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  49628. -
  49629. -# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  49630. -
  49631. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  49632. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49633. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  49634. +# Written by Gordon Matzigkeit, 1996
  49635. #
  49636. -# This file is free software; the Free Software Foundation
  49637. -# gives unlimited permission to copy and/or distribute it,
  49638. -# with or without modifications, as long as this notice is preserved.
  49639. +# This file is free software; the Free Software Foundation gives
  49640. +# unlimited permission to copy and/or distribute it, with or without
  49641. +# modifications, as long as this notice is preserved.
  49642. -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  49643. -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  49644. -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  49645. +m4_define([_LT_COPYING], [dnl
  49646. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49647. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  49648. +# Written by Gordon Matzigkeit, 1996
  49649. #
  49650. -# Of course, Automake must honor this variable whenever it calls a
  49651. -# tool from the auxiliary directory. The problem is that $srcdir (and
  49652. -# therefore $ac_aux_dir as well) can be either absolute or relative,
  49653. -# depending on how configure is run. This is pretty annoying, since
  49654. -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  49655. -# source directory, any form will work fine, but in subdirectories a
  49656. -# relative path needs to be adjusted first.
  49657. +# This file is part of GNU Libtool.
  49658. #
  49659. -# $ac_aux_dir/missing
  49660. -# fails when called from a subdirectory if $ac_aux_dir is relative
  49661. -# $top_srcdir/$ac_aux_dir/missing
  49662. -# fails if $ac_aux_dir is absolute,
  49663. -# fails when called from a subdirectory in a VPATH build with
  49664. -# a relative $ac_aux_dir
  49665. +# GNU Libtool is free software; you can redistribute it and/or
  49666. +# modify it under the terms of the GNU General Public License as
  49667. +# published by the Free Software Foundation; either version 2 of
  49668. +# the License, or (at your option) any later version.
  49669. #
  49670. -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  49671. -# are both prefixed by $srcdir. In an in-source build this is usually
  49672. -# harmless because $srcdir is `.', but things will broke when you
  49673. -# start a VPATH build or use an absolute $srcdir.
  49674. +# As a special exception to the GNU General Public License,
  49675. +# if you distribute this file as part of a program or library that
  49676. +# is built using GNU Libtool, you may include this file under the
  49677. +# same distribution terms that you use for the rest of that program.
  49678. #
  49679. -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  49680. -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  49681. -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  49682. -# and then we would define $MISSING as
  49683. -# MISSING="\${SHELL} $am_aux_dir/missing"
  49684. -# This will work as long as MISSING is not called from configure, because
  49685. -# unfortunately $(top_srcdir) has no meaning in configure.
  49686. -# However there are other variables, like CC, which are often used in
  49687. -# configure, and could therefore not use this "fixed" $ac_aux_dir.
  49688. +# GNU Libtool is distributed in the hope that it will be useful,
  49689. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  49690. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49691. +# GNU General Public License for more details.
  49692. #
  49693. -# Another solution, used here, is to always expand $ac_aux_dir to an
  49694. -# absolute PATH. The drawback is that using absolute paths prevent a
  49695. -# configured tree to be moved without reconfiguration.
  49696. -
  49697. -AC_DEFUN([AM_AUX_DIR_EXPAND],
  49698. -[dnl Rely on autoconf to set up CDPATH properly.
  49699. -AC_PREREQ([2.50])dnl
  49700. -# expand $ac_aux_dir to an absolute path
  49701. -am_aux_dir=`cd $ac_aux_dir && pwd`
  49702. +# You should have received a copy of the GNU General Public License
  49703. +# along with GNU Libtool; see the file COPYING. If not, a copy
  49704. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  49705. +# obtained by writing to the Free Software Foundation, Inc.,
  49706. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  49707. ])
  49708. +# serial 56 LT_INIT
  49709. -# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
  49710. -# Free Software Foundation, Inc.
  49711. -#
  49712. -# This file is free software; the Free Software Foundation
  49713. -# gives unlimited permission to copy and/or distribute it,
  49714. -# with or without modifications, as long as this notice is preserved.
  49715. -# serial 4
  49716. +# LT_PREREQ(VERSION)
  49717. +# ------------------
  49718. +# Complain and exit if this libtool version is less that VERSION.
  49719. +m4_defun([LT_PREREQ],
  49720. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  49721. + [m4_default([$3],
  49722. + [m4_fatal([Libtool version $1 or higher is required],
  49723. + 63)])],
  49724. + [$2])])
  49725. -# This was merged into AC_PROG_CC in Autoconf.
  49726. -AU_DEFUN([AM_PROG_CC_STDC],
  49727. -[AC_PROG_CC
  49728. -AC_DIAGNOSE([obsolete], [$0:
  49729. - your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
  49730. - `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
  49731. - you adjust the code. You can also remove the above call to
  49732. - AC_PROG_CC if you already called it elsewhere.])
  49733. -am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  49734. +# _LT_CHECK_BUILDDIR
  49735. +# ------------------
  49736. +# Complain if the absolute build directory name contains unusual characters
  49737. +m4_defun([_LT_CHECK_BUILDDIR],
  49738. +[case `pwd` in
  49739. + *\ * | *\ *)
  49740. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  49741. +esac
  49742. ])
  49743. -AU_DEFUN([fp_PROG_CC_STDC])
  49744. -# AM_CONDITIONAL -*- Autoconf -*-
  49745. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  49746. -# Free Software Foundation, Inc.
  49747. -#
  49748. -# This file is free software; the Free Software Foundation
  49749. -# gives unlimited permission to copy and/or distribute it,
  49750. -# with or without modifications, as long as this notice is preserved.
  49751. +# LT_INIT([OPTIONS])
  49752. +# ------------------
  49753. +AC_DEFUN([LT_INIT],
  49754. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  49755. +AC_BEFORE([$0], [LT_LANG])dnl
  49756. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  49757. +AC_BEFORE([$0], [LTDL_INIT])dnl
  49758. +m4_require([_LT_CHECK_BUILDDIR])dnl
  49759. -# serial 9
  49760. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  49761. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  49762. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  49763. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  49764. +dnl unless we require an AC_DEFUNed macro:
  49765. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  49766. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  49767. +AC_REQUIRE([LTVERSION_VERSION])dnl
  49768. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  49769. +m4_require([_LT_PROG_LTMAIN])dnl
  49770. -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  49771. -# -------------------------------------
  49772. -# Define a conditional.
  49773. -AC_DEFUN([AM_CONDITIONAL],
  49774. -[AC_PREREQ(2.52)dnl
  49775. - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  49776. - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  49777. -AC_SUBST([$1_TRUE])dnl
  49778. -AC_SUBST([$1_FALSE])dnl
  49779. -_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  49780. -_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  49781. -m4_define([_AM_COND_VALUE_$1], [$2])dnl
  49782. -if $2; then
  49783. - $1_TRUE=
  49784. - $1_FALSE='#'
  49785. -else
  49786. - $1_TRUE='#'
  49787. - $1_FALSE=
  49788. -fi
  49789. -AC_CONFIG_COMMANDS_PRE(
  49790. -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  49791. - AC_MSG_ERROR([[conditional "$1" was never defined.
  49792. -Usually this means the macro was only invoked conditionally.]])
  49793. -fi])])
  49794. +dnl Parse OPTIONS
  49795. +_LT_SET_OPTIONS([$0], [$1])
  49796. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  49797. -# Free Software Foundation, Inc.
  49798. -#
  49799. -# This file is free software; the Free Software Foundation
  49800. -# gives unlimited permission to copy and/or distribute it,
  49801. -# with or without modifications, as long as this notice is preserved.
  49802. +# This can be used to rebuild libtool when needed
  49803. +LIBTOOL_DEPS="$ltmain"
  49804. -# serial 10
  49805. +# Always use our own libtool.
  49806. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  49807. +AC_SUBST(LIBTOOL)dnl
  49808. -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  49809. -# written in clear, in which case automake, when reading aclocal.m4,
  49810. -# will think it sees a *use*, and therefore will trigger all it's
  49811. -# C support machinery. Also note that it means that autoscan, seeing
  49812. -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  49813. +_LT_SETUP
  49814. +# Only expand once:
  49815. +m4_define([LT_INIT])
  49816. +])# LT_INIT
  49817. -# _AM_DEPENDENCIES(NAME)
  49818. -# ----------------------
  49819. -# See how the compiler implements dependency checking.
  49820. -# NAME is "CC", "CXX", "GCJ", or "OBJC".
  49821. -# We try a few techniques and use that to set a single cache variable.
  49822. -#
  49823. -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  49824. -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  49825. -# dependency, and given that the user is not expected to run this macro,
  49826. -# just rely on AC_PROG_CC.
  49827. -AC_DEFUN([_AM_DEPENDENCIES],
  49828. -[AC_REQUIRE([AM_SET_DEPDIR])dnl
  49829. -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  49830. -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  49831. -AC_REQUIRE([AM_DEP_TRACK])dnl
  49832. +# Old names:
  49833. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  49834. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  49835. +dnl aclocal-1.4 backwards compatibility:
  49836. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  49837. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  49838. -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  49839. - [$1], CXX, [depcc="$CXX" am_compiler_list=],
  49840. - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  49841. - [$1], UPC, [depcc="$UPC" am_compiler_list=],
  49842. - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  49843. - [depcc="$$1" am_compiler_list=])
  49844. -AC_CACHE_CHECK([dependency style of $depcc],
  49845. - [am_cv_$1_dependencies_compiler_type],
  49846. -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  49847. - # We make a subdir and do the tests there. Otherwise we can end up
  49848. - # making bogus files that we don't know about and never remove. For
  49849. - # instance it was reported that on HP-UX the gcc test will end up
  49850. - # making a dummy file named `D' -- because `-MD' means `put the output
  49851. - # in D'.
  49852. - mkdir conftest.dir
  49853. - # Copy depcomp to subdir because otherwise we won't find it if we're
  49854. - # using a relative directory.
  49855. - cp "$am_depcomp" conftest.dir
  49856. - cd conftest.dir
  49857. - # We will build objects and dependencies in a subdirectory because
  49858. - # it helps to detect inapplicable dependency modes. For instance
  49859. - # both Tru64's cc and ICC support -MD to output dependencies as a
  49860. - # side effect of compilation, but ICC will put the dependencies in
  49861. - # the current directory while Tru64 will put them in the object
  49862. - # directory.
  49863. - mkdir sub
  49864. +# _LT_CC_BASENAME(CC)
  49865. +# -------------------
  49866. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  49867. +m4_defun([_LT_CC_BASENAME],
  49868. +[for cc_temp in $1""; do
  49869. + case $cc_temp in
  49870. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  49871. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  49872. + \-*) ;;
  49873. + *) break;;
  49874. + esac
  49875. +done
  49876. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  49877. +])
  49878. - am_cv_$1_dependencies_compiler_type=none
  49879. - if test "$am_compiler_list" = ""; then
  49880. - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  49881. - fi
  49882. - am__universal=false
  49883. - m4_case([$1], [CC],
  49884. - [case " $depcc " in #(
  49885. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  49886. - esac],
  49887. - [CXX],
  49888. - [case " $depcc " in #(
  49889. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  49890. - esac])
  49891. - for depmode in $am_compiler_list; do
  49892. - # Setup a source with many dependencies, because some compilers
  49893. - # like to wrap large dependency lists on column 80 (with \), and
  49894. - # we should not choose a depcomp mode which is confused by this.
  49895. - #
  49896. - # We need to recreate these files for each test, as the compiler may
  49897. - # overwrite some of them when testing with obscure command lines.
  49898. - # This happens at least with the AIX C compiler.
  49899. - : > sub/conftest.c
  49900. - for i in 1 2 3 4 5 6; do
  49901. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  49902. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  49903. - # Solaris 8's {/usr,}/bin/sh.
  49904. - touch sub/conftst$i.h
  49905. - done
  49906. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  49907. +# _LT_FILEUTILS_DEFAULTS
  49908. +# ----------------------
  49909. +# It is okay to use these file commands and assume they have been set
  49910. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  49911. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  49912. +[: ${CP="cp -f"}
  49913. +: ${MV="mv -f"}
  49914. +: ${RM="rm -f"}
  49915. +])# _LT_FILEUTILS_DEFAULTS
  49916. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  49917. - # mode. It turns out that the SunPro C++ compiler does not properly
  49918. - # handle `-M -o', and we need to detect this. Also, some Intel
  49919. - # versions had trouble with output in subdirs
  49920. - am__obj=sub/conftest.${OBJEXT-o}
  49921. - am__minus_obj="-o $am__obj"
  49922. - case $depmode in
  49923. - gcc)
  49924. - # This depmode causes a compiler race in universal mode.
  49925. - test "$am__universal" = false || continue
  49926. - ;;
  49927. - nosideeffect)
  49928. - # after this tag, mechanisms are not by side-effect, so they'll
  49929. - # only be used when explicitly requested
  49930. - if test "x$enable_dependency_tracking" = xyes; then
  49931. - continue
  49932. - else
  49933. - break
  49934. - fi
  49935. - ;;
  49936. - msvisualcpp | msvcmsys)
  49937. - # This compiler won't grok `-c -o', but also, the minuso test has
  49938. - # not run yet. These depmodes are late enough in the game, and
  49939. - # so weak that their functioning should not be impacted.
  49940. - am__obj=conftest.${OBJEXT-o}
  49941. - am__minus_obj=
  49942. - ;;
  49943. - none) break ;;
  49944. - esac
  49945. - if depmode=$depmode \
  49946. - source=sub/conftest.c object=$am__obj \
  49947. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  49948. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  49949. - >/dev/null 2>conftest.err &&
  49950. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  49951. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  49952. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  49953. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  49954. - # icc doesn't choke on unknown options, it will just issue warnings
  49955. - # or remarks (even with -Werror). So we grep stderr for any message
  49956. - # that says an option was ignored or not supported.
  49957. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  49958. - # icc: Command line warning: ignoring option '-M'; no argument required
  49959. - # The diagnosis changed in icc 8.0:
  49960. - # icc: Command line remark: option '-MP' not supported
  49961. - if (grep 'ignoring option' conftest.err ||
  49962. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  49963. - am_cv_$1_dependencies_compiler_type=$depmode
  49964. - break
  49965. - fi
  49966. - fi
  49967. - done
  49968. - cd ..
  49969. - rm -rf conftest.dir
  49970. -else
  49971. - am_cv_$1_dependencies_compiler_type=none
  49972. +# _LT_SETUP
  49973. +# ---------
  49974. +m4_defun([_LT_SETUP],
  49975. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  49976. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  49977. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  49978. +_LT_DECL([], [host], [0])dnl
  49979. +_LT_DECL([], [host_os], [0])dnl
  49980. +dnl
  49981. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  49982. +_LT_DECL([], [build], [0])dnl
  49983. +_LT_DECL([], [build_os], [0])dnl
  49984. +dnl
  49985. +AC_REQUIRE([AC_PROG_CC])dnl
  49986. +AC_REQUIRE([LT_PATH_LD])dnl
  49987. +AC_REQUIRE([LT_PATH_NM])dnl
  49988. +dnl
  49989. +AC_REQUIRE([AC_PROG_LN_S])dnl
  49990. +test -z "$LN_S" && LN_S="ln -s"
  49991. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  49992. +dnl
  49993. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  49994. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  49995. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  49996. +dnl
  49997. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  49998. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  49999. +m4_require([_LT_CMD_RELOAD])dnl
  50000. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  50001. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  50002. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  50003. +
  50004. +_LT_CONFIG_LIBTOOL_INIT([
  50005. +# See if we are running on zsh, and set the options which allow our
  50006. +# commands through without removal of \ escapes INIT.
  50007. +if test -n "\${ZSH_VERSION+set}" ; then
  50008. + setopt NO_GLOB_SUBST
  50009. fi
  50010. ])
  50011. -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  50012. -AM_CONDITIONAL([am__fastdep$1], [
  50013. - test "x$enable_dependency_tracking" != xno \
  50014. - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  50015. -])
  50016. +if test -n "${ZSH_VERSION+set}" ; then
  50017. + setopt NO_GLOB_SUBST
  50018. +fi
  50019. +_LT_CHECK_OBJDIR
  50020. -# AM_SET_DEPDIR
  50021. -# -------------
  50022. -# Choose a directory name for dependency files.
  50023. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  50024. -AC_DEFUN([AM_SET_DEPDIR],
  50025. -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  50026. -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  50027. -])
  50028. +m4_require([_LT_TAG_COMPILER])dnl
  50029. +_LT_PROG_ECHO_BACKSLASH
  50030. +case $host_os in
  50031. +aix3*)
  50032. + # AIX sometimes has problems with the GCC collect2 program. For some
  50033. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  50034. + # vanish in a puff of smoke.
  50035. + if test "X${COLLECT_NAMES+set}" != Xset; then
  50036. + COLLECT_NAMES=
  50037. + export COLLECT_NAMES
  50038. + fi
  50039. + ;;
  50040. +esac
  50041. -# AM_DEP_TRACK
  50042. -# ------------
  50043. -AC_DEFUN([AM_DEP_TRACK],
  50044. -[AC_ARG_ENABLE(dependency-tracking,
  50045. -[ --disable-dependency-tracking speeds up one-time build
  50046. - --enable-dependency-tracking do not reject slow dependency extractors])
  50047. -if test "x$enable_dependency_tracking" != xno; then
  50048. - am_depcomp="$ac_aux_dir/depcomp"
  50049. - AMDEPBACKSLASH='\'
  50050. -fi
  50051. -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  50052. -AC_SUBST([AMDEPBACKSLASH])dnl
  50053. -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  50054. -])
  50055. +# Sed substitution that helps us do robust quoting. It backslashifies
  50056. +# metacharacters that are still active within double-quoted strings.
  50057. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  50058. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  50059. +# Same as above, but do not quote variable references.
  50060. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  50061. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  50062. -# Free Software Foundation, Inc.
  50063. -#
  50064. -# This file is free software; the Free Software Foundation
  50065. -# gives unlimited permission to copy and/or distribute it,
  50066. -# with or without modifications, as long as this notice is preserved.
  50067. +# Sed substitution to delay expansion of an escaped shell variable in a
  50068. +# double_quote_subst'ed string.
  50069. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  50070. -#serial 5
  50071. +# Sed substitution to delay expansion of an escaped single quote.
  50072. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  50073. -# _AM_OUTPUT_DEPENDENCY_COMMANDS
  50074. -# ------------------------------
  50075. -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  50076. -[{
  50077. - # Autoconf 2.62 quotes --file arguments for eval, but not when files
  50078. - # are listed without --file. Let's play safe and only enable the eval
  50079. - # if we detect the quoting.
  50080. - case $CONFIG_FILES in
  50081. - *\'*) eval set x "$CONFIG_FILES" ;;
  50082. - *) set x $CONFIG_FILES ;;
  50083. - esac
  50084. - shift
  50085. - for mf
  50086. - do
  50087. - # Strip MF so we end up with the name of the file.
  50088. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  50089. - # Check whether this is an Automake generated Makefile or not.
  50090. - # We used to match only the files named `Makefile.in', but
  50091. - # some people rename them; so instead we look at the file content.
  50092. - # Grep'ing the first line is not enough: some people post-process
  50093. - # each Makefile.in and add a new line on top of each file to say so.
  50094. - # Grep'ing the whole file is not good either: AIX grep has a line
  50095. - # limit of 2048, but all sed's we know have understand at least 4000.
  50096. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  50097. - dirpart=`AS_DIRNAME("$mf")`
  50098. - else
  50099. - continue
  50100. - fi
  50101. - # Extract the definition of DEPDIR, am__include, and am__quote
  50102. - # from the Makefile without running `make'.
  50103. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  50104. - test -z "$DEPDIR" && continue
  50105. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  50106. - test -z "am__include" && continue
  50107. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  50108. - # When using ansi2knr, U may be empty or an underscore; expand it
  50109. - U=`sed -n 's/^U = //p' < "$mf"`
  50110. - # Find all dependency output files, they are included files with
  50111. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  50112. - # simplest approach to changing $(DEPDIR) to its actual value in the
  50113. - # expansion.
  50114. - for file in `sed -n "
  50115. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  50116. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  50117. - # Make sure the directory exists.
  50118. - test -f "$dirpart/$file" && continue
  50119. - fdir=`AS_DIRNAME(["$file"])`
  50120. - AS_MKDIR_P([$dirpart/$fdir])
  50121. - # echo "creating $dirpart/$file"
  50122. - echo '# dummy' > "$dirpart/$file"
  50123. - done
  50124. - done
  50125. -}
  50126. -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  50127. -
  50128. -
  50129. -# AM_OUTPUT_DEPENDENCY_COMMANDS
  50130. -# -----------------------------
  50131. -# This macro should only be invoked once -- use via AC_REQUIRE.
  50132. -#
  50133. -# This code is only required when automatic dependency tracking
  50134. -# is enabled. FIXME. This creates each `.P' file that we will
  50135. -# need in order to bootstrap the dependency handling code.
  50136. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  50137. -[AC_CONFIG_COMMANDS([depfiles],
  50138. - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  50139. - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  50140. -])
  50141. -
  50142. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  50143. -# Free Software Foundation, Inc.
  50144. -#
  50145. -# This file is free software; the Free Software Foundation
  50146. -# gives unlimited permission to copy and/or distribute it,
  50147. -# with or without modifications, as long as this notice is preserved.
  50148. +# Sed substitution to avoid accidental globbing in evaled expressions
  50149. +no_glob_subst='s/\*/\\\*/g'
  50150. -# serial 8
  50151. +# Global variables:
  50152. +ofile=libtool
  50153. +can_build_shared=yes
  50154. -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  50155. -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  50156. +# All known linkers require a `.a' archive for static linking (except MSVC,
  50157. +# which needs '.lib').
  50158. +libext=a
  50159. -# Do all the work for Automake. -*- Autoconf -*-
  50160. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  50161. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  50162. -# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  50163. -#
  50164. -# This file is free software; the Free Software Foundation
  50165. -# gives unlimited permission to copy and/or distribute it,
  50166. -# with or without modifications, as long as this notice is preserved.
  50167. +old_CC="$CC"
  50168. +old_CFLAGS="$CFLAGS"
  50169. -# serial 16
  50170. +# Set sane defaults for various variables
  50171. +test -z "$CC" && CC=cc
  50172. +test -z "$LTCC" && LTCC=$CC
  50173. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  50174. +test -z "$LD" && LD=ld
  50175. +test -z "$ac_objext" && ac_objext=o
  50176. -# This macro actually does too much. Some checks are only needed if
  50177. -# your package does certain things. But this isn't really a big deal.
  50178. +_LT_CC_BASENAME([$compiler])
  50179. -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  50180. -# AM_INIT_AUTOMAKE([OPTIONS])
  50181. -# -----------------------------------------------
  50182. -# The call with PACKAGE and VERSION arguments is the old style
  50183. -# call (pre autoconf-2.50), which is being phased out. PACKAGE
  50184. -# and VERSION should now be passed to AC_INIT and removed from
  50185. -# the call to AM_INIT_AUTOMAKE.
  50186. -# We support both call styles for the transition. After
  50187. -# the next Automake release, Autoconf can make the AC_INIT
  50188. -# arguments mandatory, and then we can depend on a new Autoconf
  50189. -# release and drop the old call support.
  50190. -AC_DEFUN([AM_INIT_AUTOMAKE],
  50191. -[AC_PREREQ([2.62])dnl
  50192. -dnl Autoconf wants to disallow AM_ names. We explicitly allow
  50193. -dnl the ones we care about.
  50194. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  50195. -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  50196. -AC_REQUIRE([AC_PROG_INSTALL])dnl
  50197. -if test "`cd $srcdir && pwd`" != "`pwd`"; then
  50198. - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  50199. - # is not polluted with repeated "-I."
  50200. - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  50201. - # test to see if srcdir already configured
  50202. - if test -f $srcdir/config.status; then
  50203. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  50204. +# Only perform the check for file, if the check method requires it
  50205. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  50206. +case $deplibs_check_method in
  50207. +file_magic*)
  50208. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  50209. + _LT_PATH_MAGIC
  50210. fi
  50211. -fi
  50212. + ;;
  50213. +esac
  50214. -# test whether we have cygpath
  50215. -if test -z "$CYGPATH_W"; then
  50216. - if (cygpath --version) >/dev/null 2>/dev/null; then
  50217. - CYGPATH_W='cygpath -w'
  50218. - else
  50219. - CYGPATH_W=echo
  50220. - fi
  50221. -fi
  50222. -AC_SUBST([CYGPATH_W])
  50223. +# Use C for the default configuration in the libtool script
  50224. +LT_SUPPORTED_TAG([CC])
  50225. +_LT_LANG_C_CONFIG
  50226. +_LT_LANG_DEFAULT_CONFIG
  50227. +_LT_CONFIG_COMMANDS
  50228. +])# _LT_SETUP
  50229. -# Define the identity of the package.
  50230. -dnl Distinguish between old-style and new-style calls.
  50231. -m4_ifval([$2],
  50232. -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  50233. - AC_SUBST([PACKAGE], [$1])dnl
  50234. - AC_SUBST([VERSION], [$2])],
  50235. -[_AM_SET_OPTIONS([$1])dnl
  50236. -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  50237. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  50238. - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  50239. - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  50240. - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  50241. -_AM_IF_OPTION([no-define],,
  50242. -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  50243. - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  50244. +# _LT_PROG_LTMAIN
  50245. +# ---------------
  50246. +# Note that this code is called both from `configure', and `config.status'
  50247. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  50248. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  50249. +# so we pass a copy along to make sure it has a sensible value anyway.
  50250. +m4_defun([_LT_PROG_LTMAIN],
  50251. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  50252. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  50253. +ltmain="$ac_aux_dir/ltmain.sh"
  50254. +])# _LT_PROG_LTMAIN
  50255. -# Some tools Automake needs.
  50256. -AC_REQUIRE([AM_SANITY_CHECK])dnl
  50257. -AC_REQUIRE([AC_ARG_PROGRAM])dnl
  50258. -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  50259. -AM_MISSING_PROG(AUTOCONF, autoconf)
  50260. -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  50261. -AM_MISSING_PROG(AUTOHEADER, autoheader)
  50262. -AM_MISSING_PROG(MAKEINFO, makeinfo)
  50263. -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  50264. -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  50265. -AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  50266. -# We need awk for the "check" target. The system "awk" is bad on
  50267. -# some platforms.
  50268. -AC_REQUIRE([AC_PROG_AWK])dnl
  50269. -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  50270. -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  50271. -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  50272. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  50273. - [_AM_PROG_TAR([v7])])])
  50274. -_AM_IF_OPTION([no-dependencies],,
  50275. -[AC_PROVIDE_IFELSE([AC_PROG_CC],
  50276. - [_AM_DEPENDENCIES(CC)],
  50277. - [define([AC_PROG_CC],
  50278. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  50279. -AC_PROVIDE_IFELSE([AC_PROG_CXX],
  50280. - [_AM_DEPENDENCIES(CXX)],
  50281. - [define([AC_PROG_CXX],
  50282. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  50283. -AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  50284. - [_AM_DEPENDENCIES(OBJC)],
  50285. - [define([AC_PROG_OBJC],
  50286. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  50287. -])
  50288. -_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  50289. -dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  50290. -dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  50291. -dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  50292. -AC_CONFIG_COMMANDS_PRE(dnl
  50293. -[m4_provide_if([_AM_COMPILER_EXEEXT],
  50294. - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  50295. -])
  50296. -dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  50297. -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  50298. -dnl mangled by Autoconf and run in a shell conditional statement.
  50299. -m4_define([_AC_COMPILER_EXEEXT],
  50300. -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  50301. +# So that we can recreate a full libtool script including additional
  50302. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  50303. +# in macros and then make a single call at the end using the `libtool'
  50304. +# label.
  50305. -# When config.status generates a header, we must update the stamp-h file.
  50306. -# This file resides in the same directory as the config header
  50307. -# that is generated. The stamp files are numbered to have different names.
  50308. -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  50309. -# loop where config.status creates the headers, so we can generate
  50310. -# our stamp files there.
  50311. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  50312. -[# Compute $1's index in $config_headers.
  50313. -_am_arg=$1
  50314. -_am_stamp_count=1
  50315. -for _am_header in $config_headers :; do
  50316. - case $_am_header in
  50317. - $_am_arg | $_am_arg:* )
  50318. - break ;;
  50319. - * )
  50320. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  50321. - esac
  50322. -done
  50323. -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  50324. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  50325. +# ----------------------------------------
  50326. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  50327. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  50328. +[m4_ifval([$1],
  50329. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  50330. + [$1
  50331. +])])])
  50332. -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  50333. -#
  50334. -# This file is free software; the Free Software Foundation
  50335. -# gives unlimited permission to copy and/or distribute it,
  50336. -# with or without modifications, as long as this notice is preserved.
  50337. +# Initialize.
  50338. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  50339. -# AM_PROG_INSTALL_SH
  50340. -# ------------------
  50341. -# Define $install_sh.
  50342. -AC_DEFUN([AM_PROG_INSTALL_SH],
  50343. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  50344. -if test x"${install_sh}" != xset; then
  50345. - case $am_aux_dir in
  50346. - *\ * | *\ *)
  50347. - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  50348. - *)
  50349. - install_sh="\${SHELL} $am_aux_dir/install-sh"
  50350. - esac
  50351. -fi
  50352. -AC_SUBST(install_sh)])
  50353. -# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  50354. -#
  50355. -# This file is free software; the Free Software Foundation
  50356. -# gives unlimited permission to copy and/or distribute it,
  50357. -# with or without modifications, as long as this notice is preserved.
  50358. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  50359. +# ------------------------------
  50360. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  50361. +m4_define([_LT_CONFIG_LIBTOOL],
  50362. +[m4_ifval([$1],
  50363. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  50364. + [$1
  50365. +])])])
  50366. -# serial 2
  50367. +# Initialize.
  50368. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  50369. -# Check whether the underlying file-system supports filenames
  50370. -# with a leading dot. For instance MS-DOS doesn't.
  50371. -AC_DEFUN([AM_SET_LEADING_DOT],
  50372. -[rm -rf .tst 2>/dev/null
  50373. -mkdir .tst 2>/dev/null
  50374. -if test -d .tst; then
  50375. - am__leading_dot=.
  50376. -else
  50377. - am__leading_dot=_
  50378. -fi
  50379. -rmdir .tst 2>/dev/null
  50380. -AC_SUBST([am__leading_dot])])
  50381. -# Check to see how 'make' treats includes. -*- Autoconf -*-
  50382. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  50383. +# -----------------------------------------------------
  50384. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  50385. +[_LT_CONFIG_LIBTOOL([$1])
  50386. +_LT_CONFIG_LIBTOOL_INIT([$2])
  50387. +])
  50388. -# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  50389. -#
  50390. -# This file is free software; the Free Software Foundation
  50391. -# gives unlimited permission to copy and/or distribute it,
  50392. -# with or without modifications, as long as this notice is preserved.
  50393. -# serial 4
  50394. +# _LT_FORMAT_COMMENT([COMMENT])
  50395. +# -----------------------------
  50396. +# Add leading comment marks to the start of each line, and a trailing
  50397. +# full-stop to the whole comment if one is not present already.
  50398. +m4_define([_LT_FORMAT_COMMENT],
  50399. +[m4_ifval([$1], [
  50400. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  50401. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  50402. +)])
  50403. -# AM_MAKE_INCLUDE()
  50404. -# -----------------
  50405. -# Check to see how make treats includes.
  50406. -AC_DEFUN([AM_MAKE_INCLUDE],
  50407. -[am_make=${MAKE-make}
  50408. -cat > confinc << 'END'
  50409. -am__doit:
  50410. - @echo this is the am__doit target
  50411. -.PHONY: am__doit
  50412. -END
  50413. -# If we don't find an include directive, just comment out the code.
  50414. -AC_MSG_CHECKING([for style of include used by $am_make])
  50415. -am__include="#"
  50416. -am__quote=
  50417. -_am_result=none
  50418. -# First try GNU make style include.
  50419. -echo "include confinc" > confmf
  50420. -# Ignore all kinds of additional output from `make'.
  50421. -case `$am_make -s -f confmf 2> /dev/null` in #(
  50422. -*the\ am__doit\ target*)
  50423. - am__include=include
  50424. - am__quote=
  50425. - _am_result=GNU
  50426. - ;;
  50427. -esac
  50428. -# Now try BSD make style include.
  50429. -if test "$am__include" = "#"; then
  50430. - echo '.include "confinc"' > confmf
  50431. - case `$am_make -s -f confmf 2> /dev/null` in #(
  50432. - *the\ am__doit\ target*)
  50433. - am__include=.include
  50434. - am__quote="\""
  50435. - _am_result=BSD
  50436. - ;;
  50437. - esac
  50438. -fi
  50439. -AC_SUBST([am__include])
  50440. -AC_SUBST([am__quote])
  50441. -AC_MSG_RESULT([$_am_result])
  50442. -rm -f confinc confmf
  50443. +
  50444. +
  50445. +
  50446. +
  50447. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  50448. +# -------------------------------------------------------------------
  50449. +# CONFIGNAME is the name given to the value in the libtool script.
  50450. +# VARNAME is the (base) name used in the configure script.
  50451. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  50452. +# VARNAME. Any other value will be used directly.
  50453. +m4_define([_LT_DECL],
  50454. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  50455. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  50456. + [m4_ifval([$1], [$1], [$2])])
  50457. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  50458. + m4_ifval([$4],
  50459. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  50460. + lt_dict_add_subkey([lt_decl_dict], [$2],
  50461. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  50462. ])
  50463. -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  50464. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  50465. -# Free Software Foundation, Inc.
  50466. -#
  50467. -# This file is free software; the Free Software Foundation
  50468. -# gives unlimited permission to copy and/or distribute it,
  50469. -# with or without modifications, as long as this notice is preserved.
  50470. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  50471. +# --------------------------------------------------------
  50472. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  50473. -# serial 6
  50474. -# AM_MISSING_PROG(NAME, PROGRAM)
  50475. -# ------------------------------
  50476. -AC_DEFUN([AM_MISSING_PROG],
  50477. -[AC_REQUIRE([AM_MISSING_HAS_RUN])
  50478. -$1=${$1-"${am_missing_run}$2"}
  50479. -AC_SUBST($1)])
  50480. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  50481. +# ------------------------------------------------
  50482. +m4_define([lt_decl_tag_varnames],
  50483. +[_lt_decl_filter([tagged?], [yes], $@)])
  50484. -# AM_MISSING_HAS_RUN
  50485. -# ------------------
  50486. -# Define MISSING if not defined so far and test if it supports --run.
  50487. -# If it does, set am_missing_run to use it, otherwise, to nothing.
  50488. -AC_DEFUN([AM_MISSING_HAS_RUN],
  50489. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  50490. -AC_REQUIRE_AUX_FILE([missing])dnl
  50491. -if test x"${MISSING+set}" != xset; then
  50492. - case $am_aux_dir in
  50493. - *\ * | *\ *)
  50494. - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  50495. - *)
  50496. - MISSING="\${SHELL} $am_aux_dir/missing" ;;
  50497. - esac
  50498. -fi
  50499. -# Use eval to expand $SHELL
  50500. -if eval "$MISSING --run true"; then
  50501. - am_missing_run="$MISSING --run "
  50502. -else
  50503. - am_missing_run=
  50504. - AC_MSG_WARN([`missing' script is too old or missing])
  50505. -fi
  50506. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  50507. +# ---------------------------------------------------------
  50508. +m4_define([_lt_decl_filter],
  50509. +[m4_case([$#],
  50510. + [0], [m4_fatal([$0: too few arguments: $#])],
  50511. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  50512. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  50513. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  50514. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  50515. ])
  50516. -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  50517. -#
  50518. -# This file is free software; the Free Software Foundation
  50519. -# gives unlimited permission to copy and/or distribute it,
  50520. -# with or without modifications, as long as this notice is preserved.
  50521. -# AM_PROG_MKDIR_P
  50522. -# ---------------
  50523. -# Check for `mkdir -p'.
  50524. -AC_DEFUN([AM_PROG_MKDIR_P],
  50525. -[AC_PREREQ([2.60])dnl
  50526. -AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  50527. -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  50528. -dnl while keeping a definition of mkdir_p for backward compatibility.
  50529. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  50530. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  50531. -dnl Makefile.ins that do not define MKDIR_P, so we do our own
  50532. -dnl adjustment using top_builddir (which is defined more often than
  50533. -dnl MKDIR_P).
  50534. -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  50535. -case $mkdir_p in
  50536. - [[\\/$]]* | ?:[[\\/]]*) ;;
  50537. - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  50538. -esac
  50539. -])
  50540. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  50541. +# --------------------------------------------------
  50542. +m4_define([lt_decl_quote_varnames],
  50543. +[_lt_decl_filter([value], [1], $@)])
  50544. -# Helper functions for option handling. -*- Autoconf -*-
  50545. -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  50546. -#
  50547. -# This file is free software; the Free Software Foundation
  50548. -# gives unlimited permission to copy and/or distribute it,
  50549. -# with or without modifications, as long as this notice is preserved.
  50550. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  50551. +# ---------------------------------------------------
  50552. +m4_define([lt_decl_dquote_varnames],
  50553. +[_lt_decl_filter([value], [2], $@)])
  50554. -# serial 4
  50555. -# _AM_MANGLE_OPTION(NAME)
  50556. -# -----------------------
  50557. -AC_DEFUN([_AM_MANGLE_OPTION],
  50558. -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  50559. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  50560. +# ---------------------------------------------------
  50561. +m4_define([lt_decl_varnames_tagged],
  50562. +[m4_assert([$# <= 2])dnl
  50563. +_$0(m4_quote(m4_default([$1], [[, ]])),
  50564. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  50565. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  50566. +m4_define([_lt_decl_varnames_tagged],
  50567. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  50568. -# _AM_SET_OPTION(NAME)
  50569. -# ------------------------------
  50570. -# Set option NAME. Presently that only means defining a flag for this option.
  50571. -AC_DEFUN([_AM_SET_OPTION],
  50572. -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  50573. -# _AM_SET_OPTIONS(OPTIONS)
  50574. -# ----------------------------------
  50575. -# OPTIONS is a space-separated list of Automake options.
  50576. -AC_DEFUN([_AM_SET_OPTIONS],
  50577. -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  50578. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  50579. +# ------------------------------------------------
  50580. +m4_define([lt_decl_all_varnames],
  50581. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  50582. + m4_if([$2], [],
  50583. + m4_quote(lt_decl_varnames),
  50584. + m4_quote(m4_shift($@))))[]dnl
  50585. +])
  50586. +m4_define([_lt_decl_all_varnames],
  50587. +[lt_join($@, lt_decl_varnames_tagged([$1],
  50588. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  50589. +])
  50590. -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  50591. -# -------------------------------------------
  50592. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  50593. -AC_DEFUN([_AM_IF_OPTION],
  50594. -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  50595. -# Check to make sure that the build environment is sane. -*- Autoconf -*-
  50596. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  50597. +# ------------------------------------
  50598. +# Quote a variable value, and forward it to `config.status' so that its
  50599. +# declaration there will have the same value as in `configure'. VARNAME
  50600. +# must have a single quote delimited value for this to work.
  50601. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  50602. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  50603. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  50604. -# Free Software Foundation, Inc.
  50605. +
  50606. +# _LT_CONFIG_STATUS_DECLARATIONS
  50607. +# ------------------------------
  50608. +# We delimit libtool config variables with single quotes, so when
  50609. +# we write them to config.status, we have to be sure to quote all
  50610. +# embedded single quotes properly. In configure, this macro expands
  50611. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  50612. #
  50613. -# This file is free software; the Free Software Foundation
  50614. -# gives unlimited permission to copy and/or distribute it,
  50615. -# with or without modifications, as long as this notice is preserved.
  50616. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  50617. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  50618. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  50619. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  50620. -# serial 5
  50621. -# AM_SANITY_CHECK
  50622. -# ---------------
  50623. -AC_DEFUN([AM_SANITY_CHECK],
  50624. -[AC_MSG_CHECKING([whether build environment is sane])
  50625. -# Just in case
  50626. -sleep 1
  50627. -echo timestamp > conftest.file
  50628. -# Reject unsafe characters in $srcdir or the absolute working directory
  50629. -# name. Accept space and tab only in the latter.
  50630. -am_lf='
  50631. -'
  50632. -case `pwd` in
  50633. - *[[\\\"\#\$\&\'\`$am_lf]]*)
  50634. - AC_MSG_ERROR([unsafe absolute working directory name]);;
  50635. -esac
  50636. -case $srcdir in
  50637. - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  50638. - AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  50639. -esac
  50640. +# _LT_LIBTOOL_TAGS
  50641. +# ----------------
  50642. +# Output comment and list of tags supported by the script
  50643. +m4_defun([_LT_LIBTOOL_TAGS],
  50644. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  50645. +available_tags="_LT_TAGS"dnl
  50646. +])
  50647. -# Do `set' in a subshell so we don't clobber the current shell's
  50648. -# arguments. Must try -L first in case configure is actually a
  50649. -# symlink; some systems play weird games with the mod time of symlinks
  50650. -# (eg FreeBSD returns the mod time of the symlink's containing
  50651. -# directory).
  50652. -if (
  50653. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  50654. - if test "$[*]" = "X"; then
  50655. - # -L didn't work.
  50656. - set X `ls -t "$srcdir/configure" conftest.file`
  50657. - fi
  50658. - rm -f conftest.file
  50659. - if test "$[*]" != "X $srcdir/configure conftest.file" \
  50660. - && test "$[*]" != "X conftest.file $srcdir/configure"; then
  50661. - # If neither matched, then we have a broken ls. This can happen
  50662. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  50663. - # broken ls alias from the environment. This has actually
  50664. - # happened. Such a system could not be considered "sane".
  50665. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  50666. -alias in your environment])
  50667. - fi
  50668. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  50669. +# -----------------------------------
  50670. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  50671. +# expand to a commented shell variable setting:
  50672. +#
  50673. +# # Some comment about what VAR is for.
  50674. +# visible_name=$lt_internal_name
  50675. +m4_define([_LT_LIBTOOL_DECLARE],
  50676. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  50677. + [description])))[]dnl
  50678. +m4_pushdef([_libtool_name],
  50679. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  50680. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  50681. + [0], [_libtool_name=[$]$1],
  50682. + [1], [_libtool_name=$lt_[]$1],
  50683. + [2], [_libtool_name=$lt_[]$1],
  50684. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  50685. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  50686. +])
  50687. - test "$[2]" = conftest.file
  50688. - )
  50689. -then
  50690. - # Ok.
  50691. - :
  50692. -else
  50693. - AC_MSG_ERROR([newly created file is older than distributed files!
  50694. -Check your system clock])
  50695. -fi
  50696. -AC_MSG_RESULT(yes)])
  50697. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  50698. -#
  50699. -# This file is free software; the Free Software Foundation
  50700. -# gives unlimited permission to copy and/or distribute it,
  50701. -# with or without modifications, as long as this notice is preserved.
  50702. +# _LT_LIBTOOL_CONFIG_VARS
  50703. +# -----------------------
  50704. +# Produce commented declarations of non-tagged libtool config variables
  50705. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  50706. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  50707. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  50708. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  50709. +[m4_foreach([_lt_var],
  50710. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  50711. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  50712. -# AM_PROG_INSTALL_STRIP
  50713. -# ---------------------
  50714. -# One issue with vendor `install' (even GNU) is that you can't
  50715. -# specify the program used to strip binaries. This is especially
  50716. -# annoying in cross-compiling environments, where the build's strip
  50717. -# is unlikely to handle the host's binaries.
  50718. -# Fortunately install-sh will honor a STRIPPROG variable, so we
  50719. -# always use install-sh in `make install-strip', and initialize
  50720. -# STRIPPROG with the value of the STRIP variable (set by the user).
  50721. -AC_DEFUN([AM_PROG_INSTALL_STRIP],
  50722. -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  50723. -# Installed binaries are usually stripped using `strip' when the user
  50724. -# run `make install-strip'. However `strip' might not be the right
  50725. -# tool to use in cross-compilation environments, therefore Automake
  50726. -# will honor the `STRIP' environment variable to overrule this program.
  50727. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  50728. -if test "$cross_compiling" != no; then
  50729. - AC_CHECK_TOOL([STRIP], [strip], :)
  50730. -fi
  50731. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  50732. -AC_SUBST([INSTALL_STRIP_PROGRAM])])
  50733. -# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  50734. -#
  50735. -# This file is free software; the Free Software Foundation
  50736. -# gives unlimited permission to copy and/or distribute it,
  50737. -# with or without modifications, as long as this notice is preserved.
  50738. +# _LT_LIBTOOL_TAG_VARS(TAG)
  50739. +# -------------------------
  50740. +m4_define([_LT_LIBTOOL_TAG_VARS],
  50741. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  50742. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  50743. -# serial 2
  50744. -# _AM_SUBST_NOTMAKE(VARIABLE)
  50745. -# ---------------------------
  50746. -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  50747. -# This macro is traced by Automake.
  50748. -AC_DEFUN([_AM_SUBST_NOTMAKE])
  50749. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  50750. +# ------------------------------
  50751. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  50752. -# AM_SUBST_NOTMAKE(VARIABLE)
  50753. -# ---------------------------
  50754. -# Public sister of _AM_SUBST_NOTMAKE.
  50755. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  50756. -# Check how to create a tarball. -*- Autoconf -*-
  50757. +# _LT_CONFIG_COMMANDS
  50758. +# -------------------
  50759. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  50760. +# variables for single and double quote escaping we saved from calls
  50761. +# to _LT_DECL, we can put quote escaped variables declarations
  50762. +# into `config.status', and then the shell code to quote escape them in
  50763. +# for loops in `config.status'. Finally, any additional code accumulated
  50764. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  50765. +m4_defun([_LT_CONFIG_COMMANDS],
  50766. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  50767. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  50768. + dnl instead of duplicating it all over again into config.status,
  50769. + dnl then we will have config.status run $CONFIG_LT later, so it
  50770. + dnl needs to know what name is stored there:
  50771. + [AC_CONFIG_COMMANDS([libtool],
  50772. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  50773. + dnl If the libtool generation code is destined for config.status,
  50774. + dnl expand the accumulated commands and init code now:
  50775. + [AC_CONFIG_COMMANDS([libtool],
  50776. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  50777. +])#_LT_CONFIG_COMMANDS
  50778. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  50779. -#
  50780. -# This file is free software; the Free Software Foundation
  50781. -# gives unlimited permission to copy and/or distribute it,
  50782. -# with or without modifications, as long as this notice is preserved.
  50783. -# serial 2
  50784. +# Initialize.
  50785. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  50786. +[
  50787. -# _AM_PROG_TAR(FORMAT)
  50788. -# --------------------
  50789. -# Check how to create a tarball in format FORMAT.
  50790. -# FORMAT should be one of `v7', `ustar', or `pax'.
  50791. -#
  50792. -# Substitute a variable $(am__tar) that is a command
  50793. -# writing to stdout a FORMAT-tarball containing the directory
  50794. -# $tardir.
  50795. -# tardir=directory && $(am__tar) > result.tar
  50796. -#
  50797. -# Substitute a variable $(am__untar) that extract such
  50798. -# a tarball read from stdin.
  50799. -# $(am__untar) < result.tar
  50800. -AC_DEFUN([_AM_PROG_TAR],
  50801. -[# Always define AMTAR for backward compatibility.
  50802. -AM_MISSING_PROG([AMTAR], [tar])
  50803. -m4_if([$1], [v7],
  50804. - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  50805. - [m4_case([$1], [ustar],, [pax],,
  50806. - [m4_fatal([Unknown tar format])])
  50807. -AC_MSG_CHECKING([how to create a $1 tar archive])
  50808. -# Loop over all known methods to create a tar archive until one works.
  50809. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  50810. -_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  50811. -# Do not fold the above two line into one, because Tru64 sh and
  50812. -# Solaris sh will not grok spaces in the rhs of `-'.
  50813. -for _am_tool in $_am_tools
  50814. -do
  50815. - case $_am_tool in
  50816. - gnutar)
  50817. - for _am_tar in tar gnutar gtar;
  50818. - do
  50819. - AM_RUN_LOG([$_am_tar --version]) && break
  50820. - done
  50821. - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  50822. - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  50823. - am__untar="$_am_tar -xf -"
  50824. - ;;
  50825. - plaintar)
  50826. - # Must skip GNU tar: if it does not support --format= it doesn't create
  50827. - # ustar tarball either.
  50828. - (tar --version) >/dev/null 2>&1 && continue
  50829. - am__tar='tar chf - "$$tardir"'
  50830. - am__tar_='tar chf - "$tardir"'
  50831. - am__untar='tar xf -'
  50832. - ;;
  50833. - pax)
  50834. - am__tar='pax -L -x $1 -w "$$tardir"'
  50835. - am__tar_='pax -L -x $1 -w "$tardir"'
  50836. - am__untar='pax -r'
  50837. - ;;
  50838. - cpio)
  50839. - am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  50840. - am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  50841. - am__untar='cpio -i -H $1 -d'
  50842. - ;;
  50843. - none)
  50844. - am__tar=false
  50845. - am__tar_=false
  50846. - am__untar=false
  50847. - ;;
  50848. - esac
  50849. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50850. +# if CDPATH is set.
  50851. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50852. - # If the value was cached, stop now. We just wanted to have am__tar
  50853. - # and am__untar set.
  50854. - test -n "${am_cv_prog_tar_$1}" && break
  50855. +sed_quote_subst='$sed_quote_subst'
  50856. +double_quote_subst='$double_quote_subst'
  50857. +delay_variable_subst='$delay_variable_subst'
  50858. +_LT_CONFIG_STATUS_DECLARATIONS
  50859. +LTCC='$LTCC'
  50860. +LTCFLAGS='$LTCFLAGS'
  50861. +compiler='$compiler_DEFAULT'
  50862. - # tar/untar a dummy directory, and stop if the command works
  50863. - rm -rf conftest.dir
  50864. - mkdir conftest.dir
  50865. - echo GrepMe > conftest.dir/file
  50866. - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  50867. - rm -rf conftest.dir
  50868. - if test -s conftest.tar; then
  50869. - AM_RUN_LOG([$am__untar <conftest.tar])
  50870. - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  50871. - fi
  50872. +# Quote evaled strings.
  50873. +for var in lt_decl_all_varnames([[ \
  50874. +]], lt_decl_quote_varnames); do
  50875. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  50876. + *[[\\\\\\\`\\"\\\$]]*)
  50877. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  50878. + ;;
  50879. + *)
  50880. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  50881. + ;;
  50882. + esac
  50883. done
  50884. -rm -rf conftest.dir
  50885. -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  50886. -AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  50887. -AC_SUBST([am__tar])
  50888. -AC_SUBST([am__untar])
  50889. -]) # _AM_PROG_TAR
  50890. +# Double-quote double-evaled strings.
  50891. +for var in lt_decl_all_varnames([[ \
  50892. +]], lt_decl_dquote_varnames); do
  50893. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  50894. + *[[\\\\\\\`\\"\\\$]]*)
  50895. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  50896. + ;;
  50897. + *)
  50898. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  50899. + ;;
  50900. + esac
  50901. +done
  50902. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  50903. -#
  50904. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  50905. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  50906. -# Written by Gordon Matzigkeit, 1996
  50907. -#
  50908. -# This file is free software; the Free Software Foundation gives
  50909. -# unlimited permission to copy and/or distribute it, with or without
  50910. -# modifications, as long as this notice is preserved.
  50911. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  50912. +case \$lt_ECHO in
  50913. +*'\\\[$]0 --fallback-echo"')dnl "
  50914. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  50915. + ;;
  50916. +esac
  50917. -m4_define([_LT_COPYING], [dnl
  50918. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  50919. -# 2006, 2007, 2008 Free Software Foundation, Inc.
  50920. -# Written by Gordon Matzigkeit, 1996
  50921. -#
  50922. -# This file is part of GNU Libtool.
  50923. -#
  50924. -# GNU Libtool is free software; you can redistribute it and/or
  50925. -# modify it under the terms of the GNU General Public License as
  50926. -# published by the Free Software Foundation; either version 2 of
  50927. -# the License, or (at your option) any later version.
  50928. -#
  50929. -# As a special exception to the GNU General Public License,
  50930. -# if you distribute this file as part of a program or library that
  50931. -# is built using GNU Libtool, you may include this file under the
  50932. -# same distribution terms that you use for the rest of that program.
  50933. -#
  50934. -# GNU Libtool is distributed in the hope that it will be useful,
  50935. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  50936. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  50937. -# GNU General Public License for more details.
  50938. -#
  50939. -# You should have received a copy of the GNU General Public License
  50940. -# along with GNU Libtool; see the file COPYING. If not, a copy
  50941. -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  50942. -# obtained by writing to the Free Software Foundation, Inc.,
  50943. -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  50944. +_LT_OUTPUT_LIBTOOL_INIT
  50945. ])
  50946. -# serial 56 LT_INIT
  50947. -
  50948. -
  50949. -# LT_PREREQ(VERSION)
  50950. -# ------------------
  50951. -# Complain and exit if this libtool version is less that VERSION.
  50952. -m4_defun([LT_PREREQ],
  50953. -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  50954. - [m4_default([$3],
  50955. - [m4_fatal([Libtool version $1 or higher is required],
  50956. - 63)])],
  50957. - [$2])])
  50958. +# LT_OUTPUT
  50959. +# ---------
  50960. +# This macro allows early generation of the libtool script (before
  50961. +# AC_OUTPUT is called), incase it is used in configure for compilation
  50962. +# tests.
  50963. +AC_DEFUN([LT_OUTPUT],
  50964. +[: ${CONFIG_LT=./config.lt}
  50965. +AC_MSG_NOTICE([creating $CONFIG_LT])
  50966. +cat >"$CONFIG_LT" <<_LTEOF
  50967. +#! $SHELL
  50968. +# Generated by $as_me.
  50969. +# Run this file to recreate a libtool stub with the current configuration.
  50970. -# _LT_CHECK_BUILDDIR
  50971. -# ------------------
  50972. -# Complain if the absolute build directory name contains unusual characters
  50973. -m4_defun([_LT_CHECK_BUILDDIR],
  50974. -[case `pwd` in
  50975. - *\ * | *\ *)
  50976. - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  50977. -esac
  50978. -])
  50979. +lt_cl_silent=false
  50980. +SHELL=\${CONFIG_SHELL-$SHELL}
  50981. +_LTEOF
  50982. +cat >>"$CONFIG_LT" <<\_LTEOF
  50983. +AS_SHELL_SANITIZE
  50984. +_AS_PREPARE
  50985. -# LT_INIT([OPTIONS])
  50986. -# ------------------
  50987. -AC_DEFUN([LT_INIT],
  50988. -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  50989. -AC_BEFORE([$0], [LT_LANG])dnl
  50990. -AC_BEFORE([$0], [LT_OUTPUT])dnl
  50991. -AC_BEFORE([$0], [LTDL_INIT])dnl
  50992. -m4_require([_LT_CHECK_BUILDDIR])dnl
  50993. +exec AS_MESSAGE_FD>&1
  50994. +exec AS_MESSAGE_LOG_FD>>config.log
  50995. +{
  50996. + echo
  50997. + AS_BOX([Running $as_me.])
  50998. +} >&AS_MESSAGE_LOG_FD
  50999. -dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  51000. -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  51001. -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  51002. -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  51003. -dnl unless we require an AC_DEFUNed macro:
  51004. -AC_REQUIRE([LTOPTIONS_VERSION])dnl
  51005. -AC_REQUIRE([LTSUGAR_VERSION])dnl
  51006. -AC_REQUIRE([LTVERSION_VERSION])dnl
  51007. -AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  51008. -m4_require([_LT_PROG_LTMAIN])dnl
  51009. +lt_cl_help="\
  51010. +\`$as_me' creates a local libtool stub from the current configuration,
  51011. +for use in further configure time tests before the real libtool is
  51012. +generated.
  51013. -dnl Parse OPTIONS
  51014. -_LT_SET_OPTIONS([$0], [$1])
  51015. +Usage: $[0] [[OPTIONS]]
  51016. -# This can be used to rebuild libtool when needed
  51017. -LIBTOOL_DEPS="$ltmain"
  51018. + -h, --help print this help, then exit
  51019. + -V, --version print version number, then exit
  51020. + -q, --quiet do not print progress messages
  51021. + -d, --debug don't remove temporary files
  51022. -# Always use our own libtool.
  51023. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  51024. -AC_SUBST(LIBTOOL)dnl
  51025. +Report bugs to <bug-libtool@gnu.org>."
  51026. -_LT_SETUP
  51027. +lt_cl_version="\
  51028. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  51029. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  51030. +configured by $[0], generated by m4_PACKAGE_STRING.
  51031. -# Only expand once:
  51032. -m4_define([LT_INIT])
  51033. -])# LT_INIT
  51034. +Copyright (C) 2008 Free Software Foundation, Inc.
  51035. +This config.lt script is free software; the Free Software Foundation
  51036. +gives unlimited permision to copy, distribute and modify it."
  51037. -# Old names:
  51038. -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  51039. -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  51040. -dnl aclocal-1.4 backwards compatibility:
  51041. -dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  51042. -dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  51043. +while test $[#] != 0
  51044. +do
  51045. + case $[1] in
  51046. + --version | --v* | -V )
  51047. + echo "$lt_cl_version"; exit 0 ;;
  51048. + --help | --h* | -h )
  51049. + echo "$lt_cl_help"; exit 0 ;;
  51050. + --debug | --d* | -d )
  51051. + debug=: ;;
  51052. + --quiet | --q* | --silent | --s* | -q )
  51053. + lt_cl_silent=: ;;
  51054. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  51055. +Try \`$[0] --help' for more information.]) ;;
  51056. -# _LT_CC_BASENAME(CC)
  51057. -# -------------------
  51058. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  51059. -m4_defun([_LT_CC_BASENAME],
  51060. -[for cc_temp in $1""; do
  51061. - case $cc_temp in
  51062. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  51063. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  51064. - \-*) ;;
  51065. - *) break;;
  51066. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  51067. +Try \`$[0] --help' for more information.]) ;;
  51068. esac
  51069. + shift
  51070. done
  51071. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  51072. -])
  51073. -
  51074. -
  51075. -# _LT_FILEUTILS_DEFAULTS
  51076. -# ----------------------
  51077. -# It is okay to use these file commands and assume they have been set
  51078. -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  51079. -m4_defun([_LT_FILEUTILS_DEFAULTS],
  51080. -[: ${CP="cp -f"}
  51081. -: ${MV="mv -f"}
  51082. -: ${RM="rm -f"}
  51083. -])# _LT_FILEUTILS_DEFAULTS
  51084. -
  51085. -
  51086. -# _LT_SETUP
  51087. -# ---------
  51088. -m4_defun([_LT_SETUP],
  51089. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  51090. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  51091. -_LT_DECL([], [host_alias], [0], [The host system])dnl
  51092. -_LT_DECL([], [host], [0])dnl
  51093. -_LT_DECL([], [host_os], [0])dnl
  51094. -dnl
  51095. -_LT_DECL([], [build_alias], [0], [The build system])dnl
  51096. -_LT_DECL([], [build], [0])dnl
  51097. -_LT_DECL([], [build_os], [0])dnl
  51098. -dnl
  51099. -AC_REQUIRE([AC_PROG_CC])dnl
  51100. -AC_REQUIRE([LT_PATH_LD])dnl
  51101. -AC_REQUIRE([LT_PATH_NM])dnl
  51102. -dnl
  51103. -AC_REQUIRE([AC_PROG_LN_S])dnl
  51104. -test -z "$LN_S" && LN_S="ln -s"
  51105. -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  51106. -dnl
  51107. -AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  51108. -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  51109. -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  51110. -dnl
  51111. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51112. -m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  51113. -m4_require([_LT_CMD_RELOAD])dnl
  51114. -m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  51115. -m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  51116. -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  51117. -_LT_CONFIG_LIBTOOL_INIT([
  51118. -# See if we are running on zsh, and set the options which allow our
  51119. -# commands through without removal of \ escapes INIT.
  51120. -if test -n "\${ZSH_VERSION+set}" ; then
  51121. - setopt NO_GLOB_SUBST
  51122. -fi
  51123. -])
  51124. -if test -n "${ZSH_VERSION+set}" ; then
  51125. - setopt NO_GLOB_SUBST
  51126. +if $lt_cl_silent; then
  51127. + exec AS_MESSAGE_FD>/dev/null
  51128. fi
  51129. +_LTEOF
  51130. -_LT_CHECK_OBJDIR
  51131. +cat >>"$CONFIG_LT" <<_LTEOF
  51132. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  51133. +_LTEOF
  51134. -m4_require([_LT_TAG_COMPILER])dnl
  51135. -_LT_PROG_ECHO_BACKSLASH
  51136. +cat >>"$CONFIG_LT" <<\_LTEOF
  51137. +AC_MSG_NOTICE([creating $ofile])
  51138. +_LT_OUTPUT_LIBTOOL_COMMANDS
  51139. +AS_EXIT(0)
  51140. +_LTEOF
  51141. +chmod +x "$CONFIG_LT"
  51142. -case $host_os in
  51143. -aix3*)
  51144. - # AIX sometimes has problems with the GCC collect2 program. For some
  51145. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  51146. - # vanish in a puff of smoke.
  51147. - if test "X${COLLECT_NAMES+set}" != Xset; then
  51148. - COLLECT_NAMES=
  51149. - export COLLECT_NAMES
  51150. - fi
  51151. - ;;
  51152. -esac
  51153. -
  51154. -# Sed substitution that helps us do robust quoting. It backslashifies
  51155. -# metacharacters that are still active within double-quoted strings.
  51156. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  51157. -
  51158. -# Same as above, but do not quote variable references.
  51159. -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  51160. -
  51161. -# Sed substitution to delay expansion of an escaped shell variable in a
  51162. -# double_quote_subst'ed string.
  51163. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  51164. +# configure is writing to config.log, but config.lt does its own redirection,
  51165. +# appending to config.log, which fails on DOS, as config.log is still kept
  51166. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  51167. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  51168. +if test "$no_create" != yes; then
  51169. + lt_cl_success=:
  51170. + test "$silent" = yes &&
  51171. + lt_config_lt_args="$lt_config_lt_args --quiet"
  51172. + exec AS_MESSAGE_LOG_FD>/dev/null
  51173. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  51174. + exec AS_MESSAGE_LOG_FD>>config.log
  51175. + $lt_cl_success || AS_EXIT(1)
  51176. +fi
  51177. +])# LT_OUTPUT
  51178. -# Sed substitution to delay expansion of an escaped single quote.
  51179. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  51180. -# Sed substitution to avoid accidental globbing in evaled expressions
  51181. -no_glob_subst='s/\*/\\\*/g'
  51182. +# _LT_CONFIG(TAG)
  51183. +# ---------------
  51184. +# If TAG is the built-in tag, create an initial libtool script with a
  51185. +# default configuration from the untagged config vars. Otherwise add code
  51186. +# to config.status for appending the configuration named by TAG from the
  51187. +# matching tagged config vars.
  51188. +m4_defun([_LT_CONFIG],
  51189. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51190. +_LT_CONFIG_SAVE_COMMANDS([
  51191. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  51192. + m4_if(_LT_TAG, [C], [
  51193. + # See if we are running on zsh, and set the options which allow our
  51194. + # commands through without removal of \ escapes.
  51195. + if test -n "${ZSH_VERSION+set}" ; then
  51196. + setopt NO_GLOB_SUBST
  51197. + fi
  51198. -# Global variables:
  51199. -ofile=libtool
  51200. -can_build_shared=yes
  51201. + cfgfile="${ofile}T"
  51202. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  51203. + $RM "$cfgfile"
  51204. -# All known linkers require a `.a' archive for static linking (except MSVC,
  51205. -# which needs '.lib').
  51206. -libext=a
  51207. + cat <<_LT_EOF >> "$cfgfile"
  51208. +#! $SHELL
  51209. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  51210. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  51211. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  51212. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  51213. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  51214. +#
  51215. +_LT_COPYING
  51216. +_LT_LIBTOOL_TAGS
  51217. -old_CC="$CC"
  51218. -old_CFLAGS="$CFLAGS"
  51219. +# ### BEGIN LIBTOOL CONFIG
  51220. +_LT_LIBTOOL_CONFIG_VARS
  51221. +_LT_LIBTOOL_TAG_VARS
  51222. +# ### END LIBTOOL CONFIG
  51223. -# Set sane defaults for various variables
  51224. -test -z "$CC" && CC=cc
  51225. -test -z "$LTCC" && LTCC=$CC
  51226. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  51227. -test -z "$LD" && LD=ld
  51228. -test -z "$ac_objext" && ac_objext=o
  51229. +_LT_EOF
  51230. -_LT_CC_BASENAME([$compiler])
  51231. + case $host_os in
  51232. + aix3*)
  51233. + cat <<\_LT_EOF >> "$cfgfile"
  51234. +# AIX sometimes has problems with the GCC collect2 program. For some
  51235. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  51236. +# vanish in a puff of smoke.
  51237. +if test "X${COLLECT_NAMES+set}" != Xset; then
  51238. + COLLECT_NAMES=
  51239. + export COLLECT_NAMES
  51240. +fi
  51241. +_LT_EOF
  51242. + ;;
  51243. + esac
  51244. -# Only perform the check for file, if the check method requires it
  51245. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  51246. -case $deplibs_check_method in
  51247. -file_magic*)
  51248. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  51249. - _LT_PATH_MAGIC
  51250. - fi
  51251. - ;;
  51252. -esac
  51253. + _LT_PROG_LTMAIN
  51254. -# Use C for the default configuration in the libtool script
  51255. -LT_SUPPORTED_TAG([CC])
  51256. -_LT_LANG_C_CONFIG
  51257. -_LT_LANG_DEFAULT_CONFIG
  51258. -_LT_CONFIG_COMMANDS
  51259. -])# _LT_SETUP
  51260. + # We use sed instead of cat because bash on DJGPP gets confused if
  51261. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  51262. + # text mode, it properly converts lines to CR/LF. This bash problem
  51263. + # is reportedly fixed, but why not run on old versions too?
  51264. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  51265. + || (rm -f "$cfgfile"; exit 1)
  51266. + _LT_PROG_XSI_SHELLFNS
  51267. -# _LT_PROG_LTMAIN
  51268. -# ---------------
  51269. -# Note that this code is called both from `configure', and `config.status'
  51270. -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  51271. -# `config.status' has no value for ac_aux_dir unless we are using Automake,
  51272. -# so we pass a copy along to make sure it has a sensible value anyway.
  51273. -m4_defun([_LT_PROG_LTMAIN],
  51274. -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  51275. -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  51276. -ltmain="$ac_aux_dir/ltmain.sh"
  51277. -])# _LT_PROG_LTMAIN
  51278. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  51279. + || (rm -f "$cfgfile"; exit 1)
  51280. + mv -f "$cfgfile" "$ofile" ||
  51281. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  51282. + chmod +x "$ofile"
  51283. +],
  51284. +[cat <<_LT_EOF >> "$ofile"
  51285. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  51286. +dnl in a comment (ie after a #).
  51287. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  51288. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  51289. +# ### END LIBTOOL TAG CONFIG: $1
  51290. +_LT_EOF
  51291. +])dnl /m4_if
  51292. +],
  51293. +[m4_if([$1], [], [
  51294. + PACKAGE='$PACKAGE'
  51295. + VERSION='$VERSION'
  51296. + TIMESTAMP='$TIMESTAMP'
  51297. + RM='$RM'
  51298. + ofile='$ofile'], [])
  51299. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  51300. +])# _LT_CONFIG
  51301. -# So that we can recreate a full libtool script including additional
  51302. -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  51303. -# in macros and then make a single call at the end using the `libtool'
  51304. -# label.
  51305. +# LT_SUPPORTED_TAG(TAG)
  51306. +# ---------------------
  51307. +# Trace this macro to discover what tags are supported by the libtool
  51308. +# --tag option, using:
  51309. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  51310. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  51311. -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  51312. -# ----------------------------------------
  51313. -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  51314. -m4_define([_LT_CONFIG_LIBTOOL_INIT],
  51315. -[m4_ifval([$1],
  51316. - [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  51317. - [$1
  51318. -])])])
  51319. -# Initialize.
  51320. -m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  51321. +# C support is built-in for now
  51322. +m4_define([_LT_LANG_C_enabled], [])
  51323. +m4_define([_LT_TAGS], [])
  51324. -# _LT_CONFIG_LIBTOOL([COMMANDS])
  51325. -# ------------------------------
  51326. -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  51327. -m4_define([_LT_CONFIG_LIBTOOL],
  51328. -[m4_ifval([$1],
  51329. - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  51330. - [$1
  51331. -])])])
  51332. +# LT_LANG(LANG)
  51333. +# -------------
  51334. +# Enable libtool support for the given language if not already enabled.
  51335. +AC_DEFUN([LT_LANG],
  51336. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  51337. +m4_case([$1],
  51338. + [C], [_LT_LANG(C)],
  51339. + [C++], [_LT_LANG(CXX)],
  51340. + [Java], [_LT_LANG(GCJ)],
  51341. + [Fortran 77], [_LT_LANG(F77)],
  51342. + [Fortran], [_LT_LANG(FC)],
  51343. + [Windows Resource], [_LT_LANG(RC)],
  51344. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  51345. + [_LT_LANG($1)],
  51346. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  51347. +])# LT_LANG
  51348. -# Initialize.
  51349. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  51350. +# _LT_LANG(LANGNAME)
  51351. +# ------------------
  51352. +m4_defun([_LT_LANG],
  51353. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  51354. + [LT_SUPPORTED_TAG([$1])dnl
  51355. + m4_append([_LT_TAGS], [$1 ])dnl
  51356. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  51357. + _LT_LANG_$1_CONFIG($1)])dnl
  51358. +])# _LT_LANG
  51359. -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  51360. -# -----------------------------------------------------
  51361. -m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  51362. -[_LT_CONFIG_LIBTOOL([$1])
  51363. -_LT_CONFIG_LIBTOOL_INIT([$2])
  51364. -])
  51365. +# _LT_LANG_DEFAULT_CONFIG
  51366. +# -----------------------
  51367. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  51368. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  51369. + [LT_LANG(CXX)],
  51370. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  51371. -# _LT_FORMAT_COMMENT([COMMENT])
  51372. -# -----------------------------
  51373. -# Add leading comment marks to the start of each line, and a trailing
  51374. -# full-stop to the whole comment if one is not present already.
  51375. -m4_define([_LT_FORMAT_COMMENT],
  51376. -[m4_ifval([$1], [
  51377. -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  51378. - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  51379. -)])
  51380. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  51381. + [LT_LANG(F77)],
  51382. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  51383. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  51384. + [LT_LANG(FC)],
  51385. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  51386. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  51387. +dnl pulling things in needlessly.
  51388. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  51389. + [LT_LANG(GCJ)],
  51390. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  51391. + [LT_LANG(GCJ)],
  51392. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  51393. + [LT_LANG(GCJ)],
  51394. + [m4_ifdef([AC_PROG_GCJ],
  51395. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  51396. + m4_ifdef([A][M_PROG_GCJ],
  51397. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  51398. + m4_ifdef([LT_PROG_GCJ],
  51399. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  51400. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  51401. + [LT_LANG(RC)],
  51402. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  51403. +])# _LT_LANG_DEFAULT_CONFIG
  51404. -
  51405. -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  51406. -# -------------------------------------------------------------------
  51407. -# CONFIGNAME is the name given to the value in the libtool script.
  51408. -# VARNAME is the (base) name used in the configure script.
  51409. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  51410. -# VARNAME. Any other value will be used directly.
  51411. -m4_define([_LT_DECL],
  51412. -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  51413. - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  51414. - [m4_ifval([$1], [$1], [$2])])
  51415. - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  51416. - m4_ifval([$4],
  51417. - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  51418. - lt_dict_add_subkey([lt_decl_dict], [$2],
  51419. - [tagged?], [m4_ifval([$5], [yes], [no])])])
  51420. -])
  51421. +# Obsolete macros:
  51422. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  51423. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  51424. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  51425. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  51426. +dnl aclocal-1.4 backwards compatibility:
  51427. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  51428. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  51429. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  51430. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  51431. -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  51432. -# --------------------------------------------------------
  51433. -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  51434. +# _LT_TAG_COMPILER
  51435. +# ----------------
  51436. +m4_defun([_LT_TAG_COMPILER],
  51437. +[AC_REQUIRE([AC_PROG_CC])dnl
  51438. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  51439. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  51440. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  51441. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  51442. -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  51443. -# ------------------------------------------------
  51444. -m4_define([lt_decl_tag_varnames],
  51445. -[_lt_decl_filter([tagged?], [yes], $@)])
  51446. +# If no C compiler was specified, use CC.
  51447. +LTCC=${LTCC-"$CC"}
  51448. +# If no C compiler flags were specified, use CFLAGS.
  51449. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  51450. -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  51451. -# ---------------------------------------------------------
  51452. -m4_define([_lt_decl_filter],
  51453. -[m4_case([$#],
  51454. - [0], [m4_fatal([$0: too few arguments: $#])],
  51455. - [1], [m4_fatal([$0: too few arguments: $#: $1])],
  51456. - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  51457. - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  51458. - [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  51459. -])
  51460. +# Allow CC to be a program name with arguments.
  51461. +compiler=$CC
  51462. +])# _LT_TAG_COMPILER
  51463. -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  51464. -# --------------------------------------------------
  51465. -m4_define([lt_decl_quote_varnames],
  51466. -[_lt_decl_filter([value], [1], $@)])
  51467. +# _LT_COMPILER_BOILERPLATE
  51468. +# ------------------------
  51469. +# Check for compiler boilerplate output or warnings with
  51470. +# the simple compiler test code.
  51471. +m4_defun([_LT_COMPILER_BOILERPLATE],
  51472. +[m4_require([_LT_DECL_SED])dnl
  51473. +ac_outfile=conftest.$ac_objext
  51474. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  51475. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  51476. +_lt_compiler_boilerplate=`cat conftest.err`
  51477. +$RM conftest*
  51478. +])# _LT_COMPILER_BOILERPLATE
  51479. -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  51480. -# ---------------------------------------------------
  51481. -m4_define([lt_decl_dquote_varnames],
  51482. -[_lt_decl_filter([value], [2], $@)])
  51483. +# _LT_LINKER_BOILERPLATE
  51484. +# ----------------------
  51485. +# Check for linker boilerplate output or warnings with
  51486. +# the simple link test code.
  51487. +m4_defun([_LT_LINKER_BOILERPLATE],
  51488. +[m4_require([_LT_DECL_SED])dnl
  51489. +ac_outfile=conftest.$ac_objext
  51490. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  51491. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  51492. +_lt_linker_boilerplate=`cat conftest.err`
  51493. +$RM -r conftest*
  51494. +])# _LT_LINKER_BOILERPLATE
  51495. +# _LT_REQUIRED_DARWIN_CHECKS
  51496. +# -------------------------
  51497. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  51498. + case $host_os in
  51499. + rhapsody* | darwin*)
  51500. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  51501. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  51502. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  51503. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  51504. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  51505. + _LT_DECL([], [DSYMUTIL], [1],
  51506. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  51507. + _LT_DECL([], [NMEDIT], [1],
  51508. + [Tool to change global to local symbols on Mac OS X])
  51509. + _LT_DECL([], [LIPO], [1],
  51510. + [Tool to manipulate fat objects and archives on Mac OS X])
  51511. + _LT_DECL([], [OTOOL], [1],
  51512. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  51513. + _LT_DECL([], [OTOOL64], [1],
  51514. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  51515. -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  51516. -# ---------------------------------------------------
  51517. -m4_define([lt_decl_varnames_tagged],
  51518. -[m4_assert([$# <= 2])dnl
  51519. -_$0(m4_quote(m4_default([$1], [[, ]])),
  51520. - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  51521. - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  51522. -m4_define([_lt_decl_varnames_tagged],
  51523. -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  51524. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  51525. + [lt_cv_apple_cc_single_mod=no
  51526. + if test -z "${LT_MULTI_MODULE}"; then
  51527. + # By default we will add the -single_module flag. You can override
  51528. + # by either setting the environment variable LT_MULTI_MODULE
  51529. + # non-empty at configure time, or by adding -multi_module to the
  51530. + # link flags.
  51531. + rm -rf libconftest.dylib*
  51532. + echo "int foo(void){return 1;}" > conftest.c
  51533. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  51534. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  51535. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  51536. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  51537. + _lt_result=$?
  51538. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  51539. + lt_cv_apple_cc_single_mod=yes
  51540. + else
  51541. + cat conftest.err >&AS_MESSAGE_LOG_FD
  51542. + fi
  51543. + rm -rf libconftest.dylib*
  51544. + rm -f conftest.*
  51545. + fi])
  51546. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  51547. + [lt_cv_ld_exported_symbols_list],
  51548. + [lt_cv_ld_exported_symbols_list=no
  51549. + save_LDFLAGS=$LDFLAGS
  51550. + echo "_main" > conftest.sym
  51551. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  51552. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  51553. + [lt_cv_ld_exported_symbols_list=yes],
  51554. + [lt_cv_ld_exported_symbols_list=no])
  51555. + LDFLAGS="$save_LDFLAGS"
  51556. + ])
  51557. + case $host_os in
  51558. + rhapsody* | darwin1.[[012]])
  51559. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  51560. + darwin1.*)
  51561. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  51562. + darwin*) # darwin 5.x on
  51563. + # if running on 10.5 or later, the deployment target defaults
  51564. + # to the OS version, if on x86, and 10.4, the deployment
  51565. + # target defaults to 10.4. Don't you love it?
  51566. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  51567. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  51568. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  51569. + 10.[[012]]*)
  51570. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  51571. + 10.*)
  51572. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  51573. + esac
  51574. + ;;
  51575. + esac
  51576. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  51577. + _lt_dar_single_mod='$single_module'
  51578. + fi
  51579. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  51580. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  51581. + else
  51582. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  51583. + fi
  51584. + if test "$DSYMUTIL" != ":"; then
  51585. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  51586. + else
  51587. + _lt_dsymutil=
  51588. + fi
  51589. + ;;
  51590. + esac
  51591. +])
  51592. -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  51593. -# ------------------------------------------------
  51594. -m4_define([lt_decl_all_varnames],
  51595. -[_$0(m4_quote(m4_default([$1], [[, ]])),
  51596. - m4_if([$2], [],
  51597. - m4_quote(lt_decl_varnames),
  51598. - m4_quote(m4_shift($@))))[]dnl
  51599. -])
  51600. -m4_define([_lt_decl_all_varnames],
  51601. -[lt_join($@, lt_decl_varnames_tagged([$1],
  51602. - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  51603. +# _LT_DARWIN_LINKER_FEATURES
  51604. +# --------------------------
  51605. +# Checks for linker and compiler features on darwin
  51606. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  51607. +[
  51608. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  51609. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  51610. + _LT_TAGVAR(hardcode_direct, $1)=no
  51611. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  51612. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  51613. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  51614. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  51615. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  51616. + case $cc_basename in
  51617. + ifort*) _lt_dar_can_shared=yes ;;
  51618. + *) _lt_dar_can_shared=$GCC ;;
  51619. + esac
  51620. + if test "$_lt_dar_can_shared" = "yes"; then
  51621. + output_verbose_link_cmd=echo
  51622. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  51623. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  51624. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  51625. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  51626. + m4_if([$1], [CXX],
  51627. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  51628. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  51629. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  51630. + fi
  51631. +],[])
  51632. + else
  51633. + _LT_TAGVAR(ld_shlibs, $1)=no
  51634. + fi
  51635. ])
  51636. +# _LT_SYS_MODULE_PATH_AIX
  51637. +# -----------------------
  51638. +# Links a minimal program and checks the executable
  51639. +# for the system default hardcoded library path. In most cases,
  51640. +# this is /usr/lib:/lib, but when the MPI compilers are used
  51641. +# the location of the communication and MPI libs are included too.
  51642. +# If we don't find anything, use the default library path according
  51643. +# to the aix ld manual.
  51644. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  51645. +[m4_require([_LT_DECL_SED])dnl
  51646. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  51647. +lt_aix_libpath_sed='
  51648. + /Import File Strings/,/^$/ {
  51649. + /^0/ {
  51650. + s/^0 *\(.*\)$/\1/
  51651. + p
  51652. + }
  51653. + }'
  51654. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  51655. +# Check for a 64-bit object if we didn't find anything.
  51656. +if test -z "$aix_libpath"; then
  51657. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  51658. +fi],[])
  51659. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  51660. +])# _LT_SYS_MODULE_PATH_AIX
  51661. -# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  51662. -# ------------------------------------
  51663. -# Quote a variable value, and forward it to `config.status' so that its
  51664. -# declaration there will have the same value as in `configure'. VARNAME
  51665. -# must have a single quote delimited value for this to work.
  51666. -m4_define([_LT_CONFIG_STATUS_DECLARE],
  51667. -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  51668. +# _LT_SHELL_INIT(ARG)
  51669. +# -------------------
  51670. +m4_define([_LT_SHELL_INIT],
  51671. +[ifdef([AC_DIVERSION_NOTICE],
  51672. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  51673. + [AC_DIVERT_PUSH(NOTICE)])
  51674. +$1
  51675. +AC_DIVERT_POP
  51676. +])# _LT_SHELL_INIT
  51677. -# _LT_CONFIG_STATUS_DECLARATIONS
  51678. -# ------------------------------
  51679. -# We delimit libtool config variables with single quotes, so when
  51680. -# we write them to config.status, we have to be sure to quote all
  51681. -# embedded single quotes properly. In configure, this macro expands
  51682. -# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  51683. -#
  51684. -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  51685. -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  51686. -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  51687. - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  51688. +# _LT_PROG_ECHO_BACKSLASH
  51689. +# -----------------------
  51690. +# Add some code to the start of the generated configure script which
  51691. +# will find an echo command which doesn't interpret backslashes.
  51692. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  51693. +[_LT_SHELL_INIT([
  51694. +# Check that we are running under the correct shell.
  51695. +SHELL=${CONFIG_SHELL-/bin/sh}
  51696. -# _LT_LIBTOOL_TAGS
  51697. -# ----------------
  51698. -# Output comment and list of tags supported by the script
  51699. -m4_defun([_LT_LIBTOOL_TAGS],
  51700. -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  51701. -available_tags="_LT_TAGS"dnl
  51702. -])
  51703. +case X$lt_ECHO in
  51704. +X*--fallback-echo)
  51705. + # Remove one level of quotation (which was required for Make).
  51706. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  51707. + ;;
  51708. +esac
  51709. +ECHO=${lt_ECHO-echo}
  51710. +if test "X[$]1" = X--no-reexec; then
  51711. + # Discard the --no-reexec flag, and continue.
  51712. + shift
  51713. +elif test "X[$]1" = X--fallback-echo; then
  51714. + # Avoid inline document here, it may be left over
  51715. + :
  51716. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  51717. + # Yippee, $ECHO works!
  51718. + :
  51719. +else
  51720. + # Restart under the correct shell.
  51721. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  51722. +fi
  51723. -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  51724. -# -----------------------------------
  51725. -# Extract the dictionary values for VARNAME (optionally with TAG) and
  51726. -# expand to a commented shell variable setting:
  51727. -#
  51728. -# # Some comment about what VAR is for.
  51729. -# visible_name=$lt_internal_name
  51730. -m4_define([_LT_LIBTOOL_DECLARE],
  51731. -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  51732. - [description])))[]dnl
  51733. -m4_pushdef([_libtool_name],
  51734. - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  51735. -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  51736. - [0], [_libtool_name=[$]$1],
  51737. - [1], [_libtool_name=$lt_[]$1],
  51738. - [2], [_libtool_name=$lt_[]$1],
  51739. - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  51740. -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  51741. -])
  51742. +if test "X[$]1" = X--fallback-echo; then
  51743. + # used as fallback echo
  51744. + shift
  51745. + cat <<_LT_EOF
  51746. +[$]*
  51747. +_LT_EOF
  51748. + exit 0
  51749. +fi
  51750. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  51751. +# if CDPATH is set.
  51752. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  51753. -# _LT_LIBTOOL_CONFIG_VARS
  51754. -# -----------------------
  51755. -# Produce commented declarations of non-tagged libtool config variables
  51756. -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  51757. -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  51758. -# section) are produced by _LT_LIBTOOL_TAG_VARS.
  51759. -m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  51760. -[m4_foreach([_lt_var],
  51761. - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  51762. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  51763. +if test -z "$lt_ECHO"; then
  51764. + if test "X${echo_test_string+set}" != Xset; then
  51765. + # find a string as large as possible, as long as the shell can cope with it
  51766. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  51767. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  51768. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  51769. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  51770. + then
  51771. + break
  51772. + fi
  51773. + done
  51774. + fi
  51775. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  51776. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  51777. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51778. + :
  51779. + else
  51780. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  51781. + # backslashes. This makes it impossible to quote backslashes using
  51782. + # echo "$something" | sed 's/\\/\\\\/g'
  51783. + #
  51784. + # So, first we look for a working echo in the user's PATH.
  51785. -# _LT_LIBTOOL_TAG_VARS(TAG)
  51786. -# -------------------------
  51787. -m4_define([_LT_LIBTOOL_TAG_VARS],
  51788. -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  51789. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  51790. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  51791. + for dir in $PATH /usr/ucb; do
  51792. + IFS="$lt_save_ifs"
  51793. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  51794. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  51795. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  51796. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51797. + ECHO="$dir/echo"
  51798. + break
  51799. + fi
  51800. + done
  51801. + IFS="$lt_save_ifs"
  51802. + if test "X$ECHO" = Xecho; then
  51803. + # We didn't find a better echo, so look for alternatives.
  51804. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  51805. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  51806. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51807. + # This shell has a builtin print -r that does the trick.
  51808. + ECHO='print -r'
  51809. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  51810. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  51811. + # If we have ksh, try running configure again with it.
  51812. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  51813. + export ORIGINAL_CONFIG_SHELL
  51814. + CONFIG_SHELL=/bin/ksh
  51815. + export CONFIG_SHELL
  51816. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  51817. + else
  51818. + # Try using printf.
  51819. + ECHO='printf %s\n'
  51820. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  51821. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  51822. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51823. + # Cool, printf works
  51824. + :
  51825. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51826. + test "X$echo_testing_string" = 'X\t' &&
  51827. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51828. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51829. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  51830. + export CONFIG_SHELL
  51831. + SHELL="$CONFIG_SHELL"
  51832. + export SHELL
  51833. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  51834. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51835. + test "X$echo_testing_string" = 'X\t' &&
  51836. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51837. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51838. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  51839. + else
  51840. + # maybe with a smaller string...
  51841. + prev=:
  51842. -# _LT_TAGVAR(VARNAME, [TAGNAME])
  51843. -# ------------------------------
  51844. -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  51845. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  51846. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  51847. + then
  51848. + break
  51849. + fi
  51850. + prev="$cmd"
  51851. + done
  51852. + if test "$prev" != 'sed 50q "[$]0"'; then
  51853. + echo_test_string=`eval $prev`
  51854. + export echo_test_string
  51855. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  51856. + else
  51857. + # Oops. We lost completely, so just stick with echo.
  51858. + ECHO=echo
  51859. + fi
  51860. + fi
  51861. + fi
  51862. + fi
  51863. + fi
  51864. +fi
  51865. -# _LT_CONFIG_COMMANDS
  51866. -# -------------------
  51867. -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  51868. -# variables for single and double quote escaping we saved from calls
  51869. -# to _LT_DECL, we can put quote escaped variables declarations
  51870. -# into `config.status', and then the shell code to quote escape them in
  51871. -# for loops in `config.status'. Finally, any additional code accumulated
  51872. -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  51873. -m4_defun([_LT_CONFIG_COMMANDS],
  51874. -[AC_PROVIDE_IFELSE([LT_OUTPUT],
  51875. - dnl If the libtool generation code has been placed in $CONFIG_LT,
  51876. - dnl instead of duplicating it all over again into config.status,
  51877. - dnl then we will have config.status run $CONFIG_LT later, so it
  51878. - dnl needs to know what name is stored there:
  51879. - [AC_CONFIG_COMMANDS([libtool],
  51880. - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  51881. - dnl If the libtool generation code is destined for config.status,
  51882. - dnl expand the accumulated commands and init code now:
  51883. - [AC_CONFIG_COMMANDS([libtool],
  51884. - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  51885. -])#_LT_CONFIG_COMMANDS
  51886. +# Copy echo and quote the copy suitably for passing to libtool from
  51887. +# the Makefile, instead of quoting the original, which is used later.
  51888. +lt_ECHO=$ECHO
  51889. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  51890. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  51891. +fi
  51892. +AC_SUBST(lt_ECHO)
  51893. +])
  51894. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  51895. +_LT_DECL([], [ECHO], [1],
  51896. + [An echo program that does not interpret backslashes])
  51897. +])# _LT_PROG_ECHO_BACKSLASH
  51898. -# Initialize.
  51899. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  51900. -[
  51901. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  51902. -# if CDPATH is set.
  51903. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  51904. +# _LT_ENABLE_LOCK
  51905. +# ---------------
  51906. +m4_defun([_LT_ENABLE_LOCK],
  51907. +[AC_ARG_ENABLE([libtool-lock],
  51908. + [AS_HELP_STRING([--disable-libtool-lock],
  51909. + [avoid locking (might break parallel builds)])])
  51910. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  51911. -sed_quote_subst='$sed_quote_subst'
  51912. -double_quote_subst='$double_quote_subst'
  51913. -delay_variable_subst='$delay_variable_subst'
  51914. -_LT_CONFIG_STATUS_DECLARATIONS
  51915. -LTCC='$LTCC'
  51916. -LTCFLAGS='$LTCFLAGS'
  51917. -compiler='$compiler_DEFAULT'
  51918. +# Some flags need to be propagated to the compiler or linker for good
  51919. +# libtool support.
  51920. +case $host in
  51921. +ia64-*-hpux*)
  51922. + # Find out which ABI we are using.
  51923. + echo 'int i;' > conftest.$ac_ext
  51924. + if AC_TRY_EVAL(ac_compile); then
  51925. + case `/usr/bin/file conftest.$ac_objext` in
  51926. + *ELF-32*)
  51927. + HPUX_IA64_MODE="32"
  51928. + ;;
  51929. + *ELF-64*)
  51930. + HPUX_IA64_MODE="64"
  51931. + ;;
  51932. + esac
  51933. + fi
  51934. + rm -rf conftest*
  51935. + ;;
  51936. +*-*-irix6*)
  51937. + # Find out which ABI we are using.
  51938. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  51939. + if AC_TRY_EVAL(ac_compile); then
  51940. + if test "$lt_cv_prog_gnu_ld" = yes; then
  51941. + case `/usr/bin/file conftest.$ac_objext` in
  51942. + *32-bit*)
  51943. + LD="${LD-ld} -melf32bsmip"
  51944. + ;;
  51945. + *N32*)
  51946. + LD="${LD-ld} -melf32bmipn32"
  51947. + ;;
  51948. + *64-bit*)
  51949. + LD="${LD-ld} -melf64bmip"
  51950. + ;;
  51951. + esac
  51952. + else
  51953. + case `/usr/bin/file conftest.$ac_objext` in
  51954. + *32-bit*)
  51955. + LD="${LD-ld} -32"
  51956. + ;;
  51957. + *N32*)
  51958. + LD="${LD-ld} -n32"
  51959. + ;;
  51960. + *64-bit*)
  51961. + LD="${LD-ld} -64"
  51962. + ;;
  51963. + esac
  51964. + fi
  51965. + fi
  51966. + rm -rf conftest*
  51967. + ;;
  51968. -# Quote evaled strings.
  51969. -for var in lt_decl_all_varnames([[ \
  51970. -]], lt_decl_quote_varnames); do
  51971. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  51972. - *[[\\\\\\\`\\"\\\$]]*)
  51973. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  51974. - ;;
  51975. - *)
  51976. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  51977. - ;;
  51978. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  51979. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  51980. + # Find out which ABI we are using.
  51981. + echo 'int i;' > conftest.$ac_ext
  51982. + if AC_TRY_EVAL(ac_compile); then
  51983. + case `/usr/bin/file conftest.o` in
  51984. + *32-bit*)
  51985. + case $host in
  51986. + x86_64-*kfreebsd*-gnu)
  51987. + LD="${LD-ld} -m elf_i386_fbsd"
  51988. + ;;
  51989. + x86_64-*linux*)
  51990. + LD="${LD-ld} -m elf_i386"
  51991. + ;;
  51992. + ppc64-*linux*|powerpc64-*linux*)
  51993. + LD="${LD-ld} -m elf32ppclinux"
  51994. + ;;
  51995. + s390x-*linux*)
  51996. + LD="${LD-ld} -m elf_s390"
  51997. + ;;
  51998. + sparc64-*linux*)
  51999. + LD="${LD-ld} -m elf32_sparc"
  52000. + ;;
  52001. + esac
  52002. + ;;
  52003. + *64-bit*)
  52004. + case $host in
  52005. + x86_64-*kfreebsd*-gnu)
  52006. + LD="${LD-ld} -m elf_x86_64_fbsd"
  52007. + ;;
  52008. + x86_64-*linux*)
  52009. + LD="${LD-ld} -m elf_x86_64"
  52010. + ;;
  52011. + ppc*-*linux*|powerpc*-*linux*)
  52012. + LD="${LD-ld} -m elf64ppc"
  52013. + ;;
  52014. + s390*-*linux*|s390*-*tpf*)
  52015. + LD="${LD-ld} -m elf64_s390"
  52016. + ;;
  52017. + sparc*-*linux*)
  52018. + LD="${LD-ld} -m elf64_sparc"
  52019. + ;;
  52020. + esac
  52021. + ;;
  52022. esac
  52023. -done
  52024. + fi
  52025. + rm -rf conftest*
  52026. + ;;
  52027. -# Double-quote double-evaled strings.
  52028. -for var in lt_decl_all_varnames([[ \
  52029. -]], lt_decl_dquote_varnames); do
  52030. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  52031. - *[[\\\\\\\`\\"\\\$]]*)
  52032. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  52033. - ;;
  52034. - *)
  52035. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  52036. +*-*-sco3.2v5*)
  52037. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  52038. + SAVE_CFLAGS="$CFLAGS"
  52039. + CFLAGS="$CFLAGS -belf"
  52040. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  52041. + [AC_LANG_PUSH(C)
  52042. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  52043. + AC_LANG_POP])
  52044. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  52045. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  52046. + CFLAGS="$SAVE_CFLAGS"
  52047. + fi
  52048. + ;;
  52049. +sparc*-*solaris*)
  52050. + # Find out which ABI we are using.
  52051. + echo 'int i;' > conftest.$ac_ext
  52052. + if AC_TRY_EVAL(ac_compile); then
  52053. + case `/usr/bin/file conftest.o` in
  52054. + *64-bit*)
  52055. + case $lt_cv_prog_gnu_ld in
  52056. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  52057. + *)
  52058. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  52059. + LD="${LD-ld} -64"
  52060. + fi
  52061. + ;;
  52062. + esac
  52063. ;;
  52064. esac
  52065. -done
  52066. -
  52067. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  52068. -case \$lt_ECHO in
  52069. -*'\\\[$]0 --fallback-echo"')dnl "
  52070. - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  52071. + fi
  52072. + rm -rf conftest*
  52073. ;;
  52074. esac
  52075. -_LT_OUTPUT_LIBTOOL_INIT
  52076. -])
  52077. -
  52078. -
  52079. -# LT_OUTPUT
  52080. -# ---------
  52081. -# This macro allows early generation of the libtool script (before
  52082. -# AC_OUTPUT is called), incase it is used in configure for compilation
  52083. -# tests.
  52084. -AC_DEFUN([LT_OUTPUT],
  52085. -[: ${CONFIG_LT=./config.lt}
  52086. -AC_MSG_NOTICE([creating $CONFIG_LT])
  52087. -cat >"$CONFIG_LT" <<_LTEOF
  52088. -#! $SHELL
  52089. -# Generated by $as_me.
  52090. -# Run this file to recreate a libtool stub with the current configuration.
  52091. -
  52092. -lt_cl_silent=false
  52093. -SHELL=\${CONFIG_SHELL-$SHELL}
  52094. -_LTEOF
  52095. -
  52096. -cat >>"$CONFIG_LT" <<\_LTEOF
  52097. -AS_SHELL_SANITIZE
  52098. -_AS_PREPARE
  52099. -
  52100. -exec AS_MESSAGE_FD>&1
  52101. -exec AS_MESSAGE_LOG_FD>>config.log
  52102. -{
  52103. - echo
  52104. - AS_BOX([Running $as_me.])
  52105. -} >&AS_MESSAGE_LOG_FD
  52106. -
  52107. -lt_cl_help="\
  52108. -\`$as_me' creates a local libtool stub from the current configuration,
  52109. -for use in further configure time tests before the real libtool is
  52110. -generated.
  52111. -
  52112. -Usage: $[0] [[OPTIONS]]
  52113. -
  52114. - -h, --help print this help, then exit
  52115. - -V, --version print version number, then exit
  52116. - -q, --quiet do not print progress messages
  52117. - -d, --debug don't remove temporary files
  52118. +need_locks="$enable_libtool_lock"
  52119. +])# _LT_ENABLE_LOCK
  52120. -Report bugs to <bug-libtool@gnu.org>."
  52121. -lt_cl_version="\
  52122. -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  52123. -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  52124. -configured by $[0], generated by m4_PACKAGE_STRING.
  52125. +# _LT_CMD_OLD_ARCHIVE
  52126. +# -------------------
  52127. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  52128. +[AC_CHECK_TOOL(AR, ar, false)
  52129. +test -z "$AR" && AR=ar
  52130. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  52131. +_LT_DECL([], [AR], [1], [The archiver])
  52132. +_LT_DECL([], [AR_FLAGS], [1])
  52133. -Copyright (C) 2008 Free Software Foundation, Inc.
  52134. -This config.lt script is free software; the Free Software Foundation
  52135. -gives unlimited permision to copy, distribute and modify it."
  52136. +AC_CHECK_TOOL(STRIP, strip, :)
  52137. +test -z "$STRIP" && STRIP=:
  52138. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  52139. -while test $[#] != 0
  52140. -do
  52141. - case $[1] in
  52142. - --version | --v* | -V )
  52143. - echo "$lt_cl_version"; exit 0 ;;
  52144. - --help | --h* | -h )
  52145. - echo "$lt_cl_help"; exit 0 ;;
  52146. - --debug | --d* | -d )
  52147. - debug=: ;;
  52148. - --quiet | --q* | --silent | --s* | -q )
  52149. - lt_cl_silent=: ;;
  52150. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  52151. +test -z "$RANLIB" && RANLIB=:
  52152. +_LT_DECL([], [RANLIB], [1],
  52153. + [Commands used to install an old-style archive])
  52154. - -*) AC_MSG_ERROR([unrecognized option: $[1]
  52155. -Try \`$[0] --help' for more information.]) ;;
  52156. +# Determine commands to create old-style static archives.
  52157. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  52158. +old_postinstall_cmds='chmod 644 $oldlib'
  52159. +old_postuninstall_cmds=
  52160. - *) AC_MSG_ERROR([unrecognized argument: $[1]
  52161. -Try \`$[0] --help' for more information.]) ;;
  52162. +if test -n "$RANLIB"; then
  52163. + case $host_os in
  52164. + openbsd*)
  52165. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  52166. + ;;
  52167. + *)
  52168. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  52169. + ;;
  52170. esac
  52171. - shift
  52172. -done
  52173. -
  52174. -if $lt_cl_silent; then
  52175. - exec AS_MESSAGE_FD>/dev/null
  52176. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  52177. fi
  52178. -_LTEOF
  52179. -
  52180. -cat >>"$CONFIG_LT" <<_LTEOF
  52181. -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  52182. -_LTEOF
  52183. -
  52184. -cat >>"$CONFIG_LT" <<\_LTEOF
  52185. -AC_MSG_NOTICE([creating $ofile])
  52186. -_LT_OUTPUT_LIBTOOL_COMMANDS
  52187. -AS_EXIT(0)
  52188. -_LTEOF
  52189. -chmod +x "$CONFIG_LT"
  52190. -
  52191. -# configure is writing to config.log, but config.lt does its own redirection,
  52192. -# appending to config.log, which fails on DOS, as config.log is still kept
  52193. -# open by configure. Here we exec the FD to /dev/null, effectively closing
  52194. -# config.log, so it can be properly (re)opened and appended to by config.lt.
  52195. -if test "$no_create" != yes; then
  52196. - lt_cl_success=:
  52197. - test "$silent" = yes &&
  52198. - lt_config_lt_args="$lt_config_lt_args --quiet"
  52199. - exec AS_MESSAGE_LOG_FD>/dev/null
  52200. - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  52201. - exec AS_MESSAGE_LOG_FD>>config.log
  52202. - $lt_cl_success || AS_EXIT(1)
  52203. -fi
  52204. -])# LT_OUTPUT
  52205. +_LT_DECL([], [old_postinstall_cmds], [2])
  52206. +_LT_DECL([], [old_postuninstall_cmds], [2])
  52207. +_LT_TAGDECL([], [old_archive_cmds], [2],
  52208. + [Commands used to build an old-style archive])
  52209. +])# _LT_CMD_OLD_ARCHIVE
  52210. -# _LT_CONFIG(TAG)
  52211. -# ---------------
  52212. -# If TAG is the built-in tag, create an initial libtool script with a
  52213. -# default configuration from the untagged config vars. Otherwise add code
  52214. -# to config.status for appending the configuration named by TAG from the
  52215. -# matching tagged config vars.
  52216. -m4_defun([_LT_CONFIG],
  52217. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  52218. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  52219. +# ----------------------------------------------------------------
  52220. +# Check whether the given compiler option works
  52221. +AC_DEFUN([_LT_COMPILER_OPTION],
  52222. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  52223. -_LT_CONFIG_SAVE_COMMANDS([
  52224. - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  52225. - m4_if(_LT_TAG, [C], [
  52226. - # See if we are running on zsh, and set the options which allow our
  52227. - # commands through without removal of \ escapes.
  52228. - if test -n "${ZSH_VERSION+set}" ; then
  52229. - setopt NO_GLOB_SUBST
  52230. - fi
  52231. -
  52232. - cfgfile="${ofile}T"
  52233. - trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  52234. - $RM "$cfgfile"
  52235. +m4_require([_LT_DECL_SED])dnl
  52236. +AC_CACHE_CHECK([$1], [$2],
  52237. + [$2=no
  52238. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  52239. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  52240. + lt_compiler_flag="$3"
  52241. + # Insert the option either (1) after the last *FLAGS variable, or
  52242. + # (2) before a word containing "conftest.", or (3) at the end.
  52243. + # Note that $ac_compile itself does not contain backslashes and begins
  52244. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  52245. + # The option is referenced via a variable to avoid confusing sed.
  52246. + lt_compile=`echo "$ac_compile" | $SED \
  52247. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  52248. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  52249. + -e 's:$: $lt_compiler_flag:'`
  52250. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  52251. + (eval "$lt_compile" 2>conftest.err)
  52252. + ac_status=$?
  52253. + cat conftest.err >&AS_MESSAGE_LOG_FD
  52254. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  52255. + if (exit $ac_status) && test -s "$ac_outfile"; then
  52256. + # The compiler can only warn and ignore the option if not recognized
  52257. + # So say no if there are warnings other than the usual output.
  52258. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  52259. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  52260. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  52261. + $2=yes
  52262. + fi
  52263. + fi
  52264. + $RM conftest*
  52265. +])
  52266. - cat <<_LT_EOF >> "$cfgfile"
  52267. -#! $SHELL
  52268. +if test x"[$]$2" = xyes; then
  52269. + m4_if([$5], , :, [$5])
  52270. +else
  52271. + m4_if([$6], , :, [$6])
  52272. +fi
  52273. +])# _LT_COMPILER_OPTION
  52274. -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  52275. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  52276. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  52277. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  52278. -#
  52279. -_LT_COPYING
  52280. -_LT_LIBTOOL_TAGS
  52281. +# Old name:
  52282. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  52283. +dnl aclocal-1.4 backwards compatibility:
  52284. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  52285. -# ### BEGIN LIBTOOL CONFIG
  52286. -_LT_LIBTOOL_CONFIG_VARS
  52287. -_LT_LIBTOOL_TAG_VARS
  52288. -# ### END LIBTOOL CONFIG
  52289. -_LT_EOF
  52290. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  52291. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  52292. +# ----------------------------------------------------
  52293. +# Check whether the given linker option works
  52294. +AC_DEFUN([_LT_LINKER_OPTION],
  52295. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  52296. +m4_require([_LT_DECL_SED])dnl
  52297. +AC_CACHE_CHECK([$1], [$2],
  52298. + [$2=no
  52299. + save_LDFLAGS="$LDFLAGS"
  52300. + LDFLAGS="$LDFLAGS $3"
  52301. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  52302. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  52303. + # The linker can only warn and ignore the option if not recognized
  52304. + # So say no if there are warnings
  52305. + if test -s conftest.err; then
  52306. + # Append any errors to the config.log.
  52307. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  52308. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  52309. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  52310. + if diff conftest.exp conftest.er2 >/dev/null; then
  52311. + $2=yes
  52312. + fi
  52313. + else
  52314. + $2=yes
  52315. + fi
  52316. + fi
  52317. + $RM -r conftest*
  52318. + LDFLAGS="$save_LDFLAGS"
  52319. +])
  52320. - case $host_os in
  52321. - aix3*)
  52322. - cat <<\_LT_EOF >> "$cfgfile"
  52323. -# AIX sometimes has problems with the GCC collect2 program. For some
  52324. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  52325. -# vanish in a puff of smoke.
  52326. -if test "X${COLLECT_NAMES+set}" != Xset; then
  52327. - COLLECT_NAMES=
  52328. - export COLLECT_NAMES
  52329. +if test x"[$]$2" = xyes; then
  52330. + m4_if([$4], , :, [$4])
  52331. +else
  52332. + m4_if([$5], , :, [$5])
  52333. fi
  52334. -_LT_EOF
  52335. - ;;
  52336. - esac
  52337. -
  52338. - _LT_PROG_LTMAIN
  52339. +])# _LT_LINKER_OPTION
  52340. - # We use sed instead of cat because bash on DJGPP gets confused if
  52341. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  52342. - # text mode, it properly converts lines to CR/LF. This bash problem
  52343. - # is reportedly fixed, but why not run on old versions too?
  52344. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  52345. - || (rm -f "$cfgfile"; exit 1)
  52346. +# Old name:
  52347. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  52348. +dnl aclocal-1.4 backwards compatibility:
  52349. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  52350. - _LT_PROG_XSI_SHELLFNS
  52351. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  52352. - || (rm -f "$cfgfile"; exit 1)
  52353. +# LT_CMD_MAX_LEN
  52354. +#---------------
  52355. +AC_DEFUN([LT_CMD_MAX_LEN],
  52356. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  52357. +# find the maximum length of command line arguments
  52358. +AC_MSG_CHECKING([the maximum length of command line arguments])
  52359. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  52360. + i=0
  52361. + teststring="ABCD"
  52362. - mv -f "$cfgfile" "$ofile" ||
  52363. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  52364. - chmod +x "$ofile"
  52365. -],
  52366. -[cat <<_LT_EOF >> "$ofile"
  52367. + case $build_os in
  52368. + msdosdjgpp*)
  52369. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  52370. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  52371. + # during glob expansion). Even if it were fixed, the result of this
  52372. + # check would be larger than it should be.
  52373. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  52374. + ;;
  52375. -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  52376. -dnl in a comment (ie after a #).
  52377. -# ### BEGIN LIBTOOL TAG CONFIG: $1
  52378. -_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  52379. -# ### END LIBTOOL TAG CONFIG: $1
  52380. -_LT_EOF
  52381. -])dnl /m4_if
  52382. -],
  52383. -[m4_if([$1], [], [
  52384. - PACKAGE='$PACKAGE'
  52385. - VERSION='$VERSION'
  52386. - TIMESTAMP='$TIMESTAMP'
  52387. - RM='$RM'
  52388. - ofile='$ofile'], [])
  52389. -])dnl /_LT_CONFIG_SAVE_COMMANDS
  52390. -])# _LT_CONFIG
  52391. + gnu*)
  52392. + # Under GNU Hurd, this test is not required because there is
  52393. + # no limit to the length of command line arguments.
  52394. + # Libtool will interpret -1 as no limit whatsoever
  52395. + lt_cv_sys_max_cmd_len=-1;
  52396. + ;;
  52397. + cygwin* | mingw* | cegcc*)
  52398. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  52399. + # about 5 minutes as the teststring grows exponentially.
  52400. + # Worse, since 9x/ME are not pre-emptively multitasking,
  52401. + # you end up with a "frozen" computer, even though with patience
  52402. + # the test eventually succeeds (with a max line length of 256k).
  52403. + # Instead, let's just punt: use the minimum linelength reported by
  52404. + # all of the supported platforms: 8192 (on NT/2K/XP).
  52405. + lt_cv_sys_max_cmd_len=8192;
  52406. + ;;
  52407. -# LT_SUPPORTED_TAG(TAG)
  52408. -# ---------------------
  52409. -# Trace this macro to discover what tags are supported by the libtool
  52410. -# --tag option, using:
  52411. -# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  52412. -AC_DEFUN([LT_SUPPORTED_TAG], [])
  52413. + amigaos*)
  52414. + # On AmigaOS with pdksh, this test takes hours, literally.
  52415. + # So we just punt and use a minimum line length of 8192.
  52416. + lt_cv_sys_max_cmd_len=8192;
  52417. + ;;
  52418. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  52419. + # This has been around since 386BSD, at least. Likely further.
  52420. + if test -x /sbin/sysctl; then
  52421. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  52422. + elif test -x /usr/sbin/sysctl; then
  52423. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  52424. + else
  52425. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  52426. + fi
  52427. + # And add a safety zone
  52428. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  52429. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  52430. + ;;
  52431. -# C support is built-in for now
  52432. -m4_define([_LT_LANG_C_enabled], [])
  52433. -m4_define([_LT_TAGS], [])
  52434. + interix*)
  52435. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  52436. + lt_cv_sys_max_cmd_len=196608
  52437. + ;;
  52438. + osf*)
  52439. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  52440. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  52441. + # nice to cause kernel panics so lets avoid the loop below.
  52442. + # First set a reasonable default.
  52443. + lt_cv_sys_max_cmd_len=16384
  52444. + #
  52445. + if test -x /sbin/sysconfig; then
  52446. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  52447. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  52448. + esac
  52449. + fi
  52450. + ;;
  52451. + sco3.2v5*)
  52452. + lt_cv_sys_max_cmd_len=102400
  52453. + ;;
  52454. + sysv5* | sco5v6* | sysv4.2uw2*)
  52455. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  52456. + if test -n "$kargmax"; then
  52457. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  52458. + else
  52459. + lt_cv_sys_max_cmd_len=32768
  52460. + fi
  52461. + ;;
  52462. + *)
  52463. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  52464. + if test -n "$lt_cv_sys_max_cmd_len"; then
  52465. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  52466. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  52467. + else
  52468. + # Make teststring a little bigger before we do anything with it.
  52469. + # a 1K string should be a reasonable start.
  52470. + for i in 1 2 3 4 5 6 7 8 ; do
  52471. + teststring=$teststring$teststring
  52472. + done
  52473. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  52474. + # If test is not a shell built-in, we'll probably end up computing a
  52475. + # maximum length that is only half of the actual maximum length, but
  52476. + # we can't tell.
  52477. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  52478. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  52479. + test $i != 17 # 1/2 MB should be enough
  52480. + do
  52481. + i=`expr $i + 1`
  52482. + teststring=$teststring$teststring
  52483. + done
  52484. + # Only check the string length outside the loop.
  52485. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  52486. + teststring=
  52487. + # Add a significant safety factor because C++ compilers can tack on
  52488. + # massive amounts of additional arguments before passing them to the
  52489. + # linker. It appears as though 1/2 is a usable value.
  52490. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  52491. + fi
  52492. + ;;
  52493. + esac
  52494. +])
  52495. +if test -n $lt_cv_sys_max_cmd_len ; then
  52496. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  52497. +else
  52498. + AC_MSG_RESULT(none)
  52499. +fi
  52500. +max_cmd_len=$lt_cv_sys_max_cmd_len
  52501. +_LT_DECL([], [max_cmd_len], [0],
  52502. + [What is the maximum length of a command?])
  52503. +])# LT_CMD_MAX_LEN
  52504. -# LT_LANG(LANG)
  52505. -# -------------
  52506. -# Enable libtool support for the given language if not already enabled.
  52507. -AC_DEFUN([LT_LANG],
  52508. -[AC_BEFORE([$0], [LT_OUTPUT])dnl
  52509. -m4_case([$1],
  52510. - [C], [_LT_LANG(C)],
  52511. - [C++], [_LT_LANG(CXX)],
  52512. - [Java], [_LT_LANG(GCJ)],
  52513. - [Fortran 77], [_LT_LANG(F77)],
  52514. - [Fortran], [_LT_LANG(FC)],
  52515. - [Windows Resource], [_LT_LANG(RC)],
  52516. - [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  52517. - [_LT_LANG($1)],
  52518. - [m4_fatal([$0: unsupported language: "$1"])])])dnl
  52519. -])# LT_LANG
  52520. -
  52521. +# Old name:
  52522. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  52523. +dnl aclocal-1.4 backwards compatibility:
  52524. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  52525. -# _LT_LANG(LANGNAME)
  52526. -# ------------------
  52527. -m4_defun([_LT_LANG],
  52528. -[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  52529. - [LT_SUPPORTED_TAG([$1])dnl
  52530. - m4_append([_LT_TAGS], [$1 ])dnl
  52531. - m4_define([_LT_LANG_]$1[_enabled], [])dnl
  52532. - _LT_LANG_$1_CONFIG($1)])dnl
  52533. -])# _LT_LANG
  52534. +# _LT_HEADER_DLFCN
  52535. +# ----------------
  52536. +m4_defun([_LT_HEADER_DLFCN],
  52537. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  52538. +])# _LT_HEADER_DLFCN
  52539. -# _LT_LANG_DEFAULT_CONFIG
  52540. -# -----------------------
  52541. -m4_defun([_LT_LANG_DEFAULT_CONFIG],
  52542. -[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  52543. - [LT_LANG(CXX)],
  52544. - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  52545. -AC_PROVIDE_IFELSE([AC_PROG_F77],
  52546. - [LT_LANG(F77)],
  52547. - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  52548. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  52549. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  52550. +# ----------------------------------------------------------------
  52551. +m4_defun([_LT_TRY_DLOPEN_SELF],
  52552. +[m4_require([_LT_HEADER_DLFCN])dnl
  52553. +if test "$cross_compiling" = yes; then :
  52554. + [$4]
  52555. +else
  52556. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  52557. + lt_status=$lt_dlunknown
  52558. + cat > conftest.$ac_ext <<_LT_EOF
  52559. +[#line __oline__ "configure"
  52560. +#include "confdefs.h"
  52561. -AC_PROVIDE_IFELSE([AC_PROG_FC],
  52562. - [LT_LANG(FC)],
  52563. - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  52564. +#if HAVE_DLFCN_H
  52565. +#include <dlfcn.h>
  52566. +#endif
  52567. -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  52568. -dnl pulling things in needlessly.
  52569. -AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  52570. - [LT_LANG(GCJ)],
  52571. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  52572. - [LT_LANG(GCJ)],
  52573. - [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  52574. - [LT_LANG(GCJ)],
  52575. - [m4_ifdef([AC_PROG_GCJ],
  52576. - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  52577. - m4_ifdef([A][M_PROG_GCJ],
  52578. - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  52579. - m4_ifdef([LT_PROG_GCJ],
  52580. - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  52581. +#include <stdio.h>
  52582. -AC_PROVIDE_IFELSE([LT_PROG_RC],
  52583. - [LT_LANG(RC)],
  52584. - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  52585. -])# _LT_LANG_DEFAULT_CONFIG
  52586. +#ifdef RTLD_GLOBAL
  52587. +# define LT_DLGLOBAL RTLD_GLOBAL
  52588. +#else
  52589. +# ifdef DL_GLOBAL
  52590. +# define LT_DLGLOBAL DL_GLOBAL
  52591. +# else
  52592. +# define LT_DLGLOBAL 0
  52593. +# endif
  52594. +#endif
  52595. -# Obsolete macros:
  52596. -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  52597. -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  52598. -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  52599. -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  52600. -dnl aclocal-1.4 backwards compatibility:
  52601. -dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  52602. -dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  52603. -dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  52604. -dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  52605. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  52606. + find out it does not work in some platform. */
  52607. +#ifndef LT_DLLAZY_OR_NOW
  52608. +# ifdef RTLD_LAZY
  52609. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  52610. +# else
  52611. +# ifdef DL_LAZY
  52612. +# define LT_DLLAZY_OR_NOW DL_LAZY
  52613. +# else
  52614. +# ifdef RTLD_NOW
  52615. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  52616. +# else
  52617. +# ifdef DL_NOW
  52618. +# define LT_DLLAZY_OR_NOW DL_NOW
  52619. +# else
  52620. +# define LT_DLLAZY_OR_NOW 0
  52621. +# endif
  52622. +# endif
  52623. +# endif
  52624. +# endif
  52625. +#endif
  52626. +void fnord() { int i=42;}
  52627. +int main ()
  52628. +{
  52629. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  52630. + int status = $lt_dlunknown;
  52631. -# _LT_TAG_COMPILER
  52632. -# ----------------
  52633. -m4_defun([_LT_TAG_COMPILER],
  52634. -[AC_REQUIRE([AC_PROG_CC])dnl
  52635. + if (self)
  52636. + {
  52637. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  52638. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  52639. + /* dlclose (self); */
  52640. + }
  52641. + else
  52642. + puts (dlerror ());
  52643. -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  52644. -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  52645. -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  52646. -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  52647. + return status;
  52648. +}]
  52649. +_LT_EOF
  52650. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  52651. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  52652. + lt_status=$?
  52653. + case x$lt_status in
  52654. + x$lt_dlno_uscore) $1 ;;
  52655. + x$lt_dlneed_uscore) $2 ;;
  52656. + x$lt_dlunknown|x*) $3 ;;
  52657. + esac
  52658. + else :
  52659. + # compilation failed
  52660. + $3
  52661. + fi
  52662. +fi
  52663. +rm -fr conftest*
  52664. +])# _LT_TRY_DLOPEN_SELF
  52665. -# If no C compiler was specified, use CC.
  52666. -LTCC=${LTCC-"$CC"}
  52667. -# If no C compiler flags were specified, use CFLAGS.
  52668. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  52669. +# LT_SYS_DLOPEN_SELF
  52670. +# ------------------
  52671. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  52672. +[m4_require([_LT_HEADER_DLFCN])dnl
  52673. +if test "x$enable_dlopen" != xyes; then
  52674. + enable_dlopen=unknown
  52675. + enable_dlopen_self=unknown
  52676. + enable_dlopen_self_static=unknown
  52677. +else
  52678. + lt_cv_dlopen=no
  52679. + lt_cv_dlopen_libs=
  52680. -# Allow CC to be a program name with arguments.
  52681. -compiler=$CC
  52682. -])# _LT_TAG_COMPILER
  52683. + case $host_os in
  52684. + beos*)
  52685. + lt_cv_dlopen="load_add_on"
  52686. + lt_cv_dlopen_libs=
  52687. + lt_cv_dlopen_self=yes
  52688. + ;;
  52689. + mingw* | pw32* | cegcc*)
  52690. + lt_cv_dlopen="LoadLibrary"
  52691. + lt_cv_dlopen_libs=
  52692. + ;;
  52693. -# _LT_COMPILER_BOILERPLATE
  52694. -# ------------------------
  52695. -# Check for compiler boilerplate output or warnings with
  52696. -# the simple compiler test code.
  52697. -m4_defun([_LT_COMPILER_BOILERPLATE],
  52698. -[m4_require([_LT_DECL_SED])dnl
  52699. -ac_outfile=conftest.$ac_objext
  52700. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  52701. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  52702. -_lt_compiler_boilerplate=`cat conftest.err`
  52703. -$RM conftest*
  52704. -])# _LT_COMPILER_BOILERPLATE
  52705. -
  52706. -
  52707. -# _LT_LINKER_BOILERPLATE
  52708. -# ----------------------
  52709. -# Check for linker boilerplate output or warnings with
  52710. -# the simple link test code.
  52711. -m4_defun([_LT_LINKER_BOILERPLATE],
  52712. -[m4_require([_LT_DECL_SED])dnl
  52713. -ac_outfile=conftest.$ac_objext
  52714. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  52715. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  52716. -_lt_linker_boilerplate=`cat conftest.err`
  52717. -$RM -r conftest*
  52718. -])# _LT_LINKER_BOILERPLATE
  52719. -
  52720. -# _LT_REQUIRED_DARWIN_CHECKS
  52721. -# -------------------------
  52722. -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  52723. - case $host_os in
  52724. - rhapsody* | darwin*)
  52725. - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  52726. - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  52727. - AC_CHECK_TOOL([LIPO], [lipo], [:])
  52728. - AC_CHECK_TOOL([OTOOL], [otool], [:])
  52729. - AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  52730. - _LT_DECL([], [DSYMUTIL], [1],
  52731. - [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  52732. - _LT_DECL([], [NMEDIT], [1],
  52733. - [Tool to change global to local symbols on Mac OS X])
  52734. - _LT_DECL([], [LIPO], [1],
  52735. - [Tool to manipulate fat objects and archives on Mac OS X])
  52736. - _LT_DECL([], [OTOOL], [1],
  52737. - [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  52738. - _LT_DECL([], [OTOOL64], [1],
  52739. - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  52740. + cygwin*)
  52741. + lt_cv_dlopen="dlopen"
  52742. + lt_cv_dlopen_libs=
  52743. + ;;
  52744. - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  52745. - [lt_cv_apple_cc_single_mod=no
  52746. - if test -z "${LT_MULTI_MODULE}"; then
  52747. - # By default we will add the -single_module flag. You can override
  52748. - # by either setting the environment variable LT_MULTI_MODULE
  52749. - # non-empty at configure time, or by adding -multi_module to the
  52750. - # link flags.
  52751. - rm -rf libconftest.dylib*
  52752. - echo "int foo(void){return 1;}" > conftest.c
  52753. - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  52754. --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  52755. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  52756. - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  52757. - _lt_result=$?
  52758. - if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  52759. - lt_cv_apple_cc_single_mod=yes
  52760. - else
  52761. - cat conftest.err >&AS_MESSAGE_LOG_FD
  52762. - fi
  52763. - rm -rf libconftest.dylib*
  52764. - rm -f conftest.*
  52765. - fi])
  52766. - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  52767. - [lt_cv_ld_exported_symbols_list],
  52768. - [lt_cv_ld_exported_symbols_list=no
  52769. - save_LDFLAGS=$LDFLAGS
  52770. - echo "_main" > conftest.sym
  52771. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  52772. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  52773. - [lt_cv_ld_exported_symbols_list=yes],
  52774. - [lt_cv_ld_exported_symbols_list=no])
  52775. - LDFLAGS="$save_LDFLAGS"
  52776. + darwin*)
  52777. + # if libdl is installed we need to link against it
  52778. + AC_CHECK_LIB([dl], [dlopen],
  52779. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  52780. + lt_cv_dlopen="dyld"
  52781. + lt_cv_dlopen_libs=
  52782. + lt_cv_dlopen_self=yes
  52783. ])
  52784. - case $host_os in
  52785. - rhapsody* | darwin1.[[012]])
  52786. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  52787. - darwin1.*)
  52788. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  52789. - darwin*) # darwin 5.x on
  52790. - # if running on 10.5 or later, the deployment target defaults
  52791. - # to the OS version, if on x86, and 10.4, the deployment
  52792. - # target defaults to 10.4. Don't you love it?
  52793. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  52794. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  52795. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  52796. - 10.[[012]]*)
  52797. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  52798. - 10.*)
  52799. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  52800. - esac
  52801. ;;
  52802. - esac
  52803. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  52804. - _lt_dar_single_mod='$single_module'
  52805. - fi
  52806. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  52807. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  52808. - else
  52809. - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  52810. - fi
  52811. - if test "$DSYMUTIL" != ":"; then
  52812. - _lt_dsymutil='~$DSYMUTIL $lib || :'
  52813. - else
  52814. - _lt_dsymutil=
  52815. - fi
  52816. +
  52817. + *)
  52818. + AC_CHECK_FUNC([shl_load],
  52819. + [lt_cv_dlopen="shl_load"],
  52820. + [AC_CHECK_LIB([dld], [shl_load],
  52821. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  52822. + [AC_CHECK_FUNC([dlopen],
  52823. + [lt_cv_dlopen="dlopen"],
  52824. + [AC_CHECK_LIB([dl], [dlopen],
  52825. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  52826. + [AC_CHECK_LIB([svld], [dlopen],
  52827. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  52828. + [AC_CHECK_LIB([dld], [dld_link],
  52829. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  52830. + ])
  52831. + ])
  52832. + ])
  52833. + ])
  52834. + ])
  52835. ;;
  52836. esac
  52837. -])
  52838. -
  52839. -# _LT_DARWIN_LINKER_FEATURES
  52840. -# --------------------------
  52841. -# Checks for linker and compiler features on darwin
  52842. -m4_defun([_LT_DARWIN_LINKER_FEATURES],
  52843. -[
  52844. - m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  52845. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  52846. - _LT_TAGVAR(hardcode_direct, $1)=no
  52847. - _LT_TAGVAR(hardcode_automatic, $1)=yes
  52848. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  52849. - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  52850. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  52851. - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  52852. - case $cc_basename in
  52853. - ifort*) _lt_dar_can_shared=yes ;;
  52854. - *) _lt_dar_can_shared=$GCC ;;
  52855. - esac
  52856. - if test "$_lt_dar_can_shared" = "yes"; then
  52857. - output_verbose_link_cmd=echo
  52858. - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  52859. - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  52860. - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  52861. - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  52862. - m4_if([$1], [CXX],
  52863. -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  52864. - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  52865. - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  52866. - fi
  52867. -],[])
  52868. + if test "x$lt_cv_dlopen" != xno; then
  52869. + enable_dlopen=yes
  52870. else
  52871. - _LT_TAGVAR(ld_shlibs, $1)=no
  52872. + enable_dlopen=no
  52873. fi
  52874. -])
  52875. -# _LT_SYS_MODULE_PATH_AIX
  52876. -# -----------------------
  52877. -# Links a minimal program and checks the executable
  52878. -# for the system default hardcoded library path. In most cases,
  52879. -# this is /usr/lib:/lib, but when the MPI compilers are used
  52880. -# the location of the communication and MPI libs are included too.
  52881. -# If we don't find anything, use the default library path according
  52882. -# to the aix ld manual.
  52883. -m4_defun([_LT_SYS_MODULE_PATH_AIX],
  52884. -[m4_require([_LT_DECL_SED])dnl
  52885. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  52886. -lt_aix_libpath_sed='
  52887. - /Import File Strings/,/^$/ {
  52888. - /^0/ {
  52889. - s/^0 *\(.*\)$/\1/
  52890. - p
  52891. - }
  52892. - }'
  52893. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  52894. -# Check for a 64-bit object if we didn't find anything.
  52895. -if test -z "$aix_libpath"; then
  52896. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  52897. -fi],[])
  52898. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  52899. -])# _LT_SYS_MODULE_PATH_AIX
  52900. + case $lt_cv_dlopen in
  52901. + dlopen)
  52902. + save_CPPFLAGS="$CPPFLAGS"
  52903. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  52904. + save_LDFLAGS="$LDFLAGS"
  52905. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  52906. -# _LT_SHELL_INIT(ARG)
  52907. -# -------------------
  52908. -m4_define([_LT_SHELL_INIT],
  52909. -[ifdef([AC_DIVERSION_NOTICE],
  52910. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  52911. - [AC_DIVERT_PUSH(NOTICE)])
  52912. -$1
  52913. -AC_DIVERT_POP
  52914. -])# _LT_SHELL_INIT
  52915. + save_LIBS="$LIBS"
  52916. + LIBS="$lt_cv_dlopen_libs $LIBS"
  52917. + AC_CACHE_CHECK([whether a program can dlopen itself],
  52918. + lt_cv_dlopen_self, [dnl
  52919. + _LT_TRY_DLOPEN_SELF(
  52920. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  52921. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  52922. + ])
  52923. -# _LT_PROG_ECHO_BACKSLASH
  52924. -# -----------------------
  52925. -# Add some code to the start of the generated configure script which
  52926. -# will find an echo command which doesn't interpret backslashes.
  52927. -m4_defun([_LT_PROG_ECHO_BACKSLASH],
  52928. -[_LT_SHELL_INIT([
  52929. -# Check that we are running under the correct shell.
  52930. -SHELL=${CONFIG_SHELL-/bin/sh}
  52931. + if test "x$lt_cv_dlopen_self" = xyes; then
  52932. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  52933. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  52934. + lt_cv_dlopen_self_static, [dnl
  52935. + _LT_TRY_DLOPEN_SELF(
  52936. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  52937. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  52938. + ])
  52939. + fi
  52940. -case X$lt_ECHO in
  52941. -X*--fallback-echo)
  52942. - # Remove one level of quotation (which was required for Make).
  52943. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  52944. - ;;
  52945. -esac
  52946. + CPPFLAGS="$save_CPPFLAGS"
  52947. + LDFLAGS="$save_LDFLAGS"
  52948. + LIBS="$save_LIBS"
  52949. + ;;
  52950. + esac
  52951. -ECHO=${lt_ECHO-echo}
  52952. -if test "X[$]1" = X--no-reexec; then
  52953. - # Discard the --no-reexec flag, and continue.
  52954. - shift
  52955. -elif test "X[$]1" = X--fallback-echo; then
  52956. - # Avoid inline document here, it may be left over
  52957. - :
  52958. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  52959. - # Yippee, $ECHO works!
  52960. - :
  52961. -else
  52962. - # Restart under the correct shell.
  52963. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  52964. -fi
  52965. + case $lt_cv_dlopen_self in
  52966. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  52967. + *) enable_dlopen_self=unknown ;;
  52968. + esac
  52969. -if test "X[$]1" = X--fallback-echo; then
  52970. - # used as fallback echo
  52971. - shift
  52972. - cat <<_LT_EOF
  52973. -[$]*
  52974. -_LT_EOF
  52975. - exit 0
  52976. + case $lt_cv_dlopen_self_static in
  52977. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  52978. + *) enable_dlopen_self_static=unknown ;;
  52979. + esac
  52980. fi
  52981. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  52982. + [Whether dlopen is supported])
  52983. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  52984. + [Whether dlopen of programs is supported])
  52985. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  52986. + [Whether dlopen of statically linked programs is supported])
  52987. +])# LT_SYS_DLOPEN_SELF
  52988. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  52989. -# if CDPATH is set.
  52990. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  52991. +# Old name:
  52992. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  52993. +dnl aclocal-1.4 backwards compatibility:
  52994. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  52995. -if test -z "$lt_ECHO"; then
  52996. - if test "X${echo_test_string+set}" != Xset; then
  52997. - # find a string as large as possible, as long as the shell can cope with it
  52998. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  52999. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  53000. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  53001. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  53002. - then
  53003. - break
  53004. - fi
  53005. - done
  53006. - fi
  53007. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  53008. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  53009. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53010. - :
  53011. - else
  53012. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  53013. - # backslashes. This makes it impossible to quote backslashes using
  53014. - # echo "$something" | sed 's/\\/\\\\/g'
  53015. - #
  53016. - # So, first we look for a working echo in the user's PATH.
  53017. +# _LT_COMPILER_C_O([TAGNAME])
  53018. +# ---------------------------
  53019. +# Check to see if options -c and -o are simultaneously supported by compiler.
  53020. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  53021. +m4_defun([_LT_COMPILER_C_O],
  53022. +[m4_require([_LT_DECL_SED])dnl
  53023. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53024. +m4_require([_LT_TAG_COMPILER])dnl
  53025. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  53026. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  53027. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  53028. + $RM -r conftest 2>/dev/null
  53029. + mkdir conftest
  53030. + cd conftest
  53031. + mkdir out
  53032. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  53033. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  53034. - for dir in $PATH /usr/ucb; do
  53035. - IFS="$lt_save_ifs"
  53036. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  53037. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  53038. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  53039. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53040. - ECHO="$dir/echo"
  53041. - break
  53042. - fi
  53043. - done
  53044. - IFS="$lt_save_ifs"
  53045. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  53046. + # Insert the option either (1) after the last *FLAGS variable, or
  53047. + # (2) before a word containing "conftest.", or (3) at the end.
  53048. + # Note that $ac_compile itself does not contain backslashes and begins
  53049. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  53050. + lt_compile=`echo "$ac_compile" | $SED \
  53051. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  53052. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  53053. + -e 's:$: $lt_compiler_flag:'`
  53054. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  53055. + (eval "$lt_compile" 2>out/conftest.err)
  53056. + ac_status=$?
  53057. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  53058. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  53059. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  53060. + then
  53061. + # The compiler can only warn and ignore the option if not recognized
  53062. + # So say no if there are warnings
  53063. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  53064. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  53065. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  53066. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  53067. + fi
  53068. + fi
  53069. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  53070. + $RM conftest*
  53071. + # SGI C++ compiler will create directory out/ii_files/ for
  53072. + # template instantiation
  53073. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  53074. + $RM out/* && rmdir out
  53075. + cd ..
  53076. + $RM -r conftest
  53077. + $RM conftest*
  53078. +])
  53079. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  53080. + [Does compiler simultaneously support -c and -o options?])
  53081. +])# _LT_COMPILER_C_O
  53082. - if test "X$ECHO" = Xecho; then
  53083. - # We didn't find a better echo, so look for alternatives.
  53084. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  53085. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  53086. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53087. - # This shell has a builtin print -r that does the trick.
  53088. - ECHO='print -r'
  53089. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  53090. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  53091. - # If we have ksh, try running configure again with it.
  53092. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  53093. - export ORIGINAL_CONFIG_SHELL
  53094. - CONFIG_SHELL=/bin/ksh
  53095. - export CONFIG_SHELL
  53096. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  53097. - else
  53098. - # Try using printf.
  53099. - ECHO='printf %s\n'
  53100. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  53101. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  53102. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53103. - # Cool, printf works
  53104. - :
  53105. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  53106. - test "X$echo_testing_string" = 'X\t' &&
  53107. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  53108. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53109. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  53110. - export CONFIG_SHELL
  53111. - SHELL="$CONFIG_SHELL"
  53112. - export SHELL
  53113. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  53114. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  53115. - test "X$echo_testing_string" = 'X\t' &&
  53116. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  53117. - test "X$echo_testing_string" = "X$echo_test_string"; then
  53118. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  53119. - else
  53120. - # maybe with a smaller string...
  53121. - prev=:
  53122. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  53123. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  53124. - then
  53125. - break
  53126. - fi
  53127. - prev="$cmd"
  53128. - done
  53129. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  53130. +# ----------------------------------
  53131. +# Check to see if we can do hard links to lock some files if needed
  53132. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  53133. +[m4_require([_LT_ENABLE_LOCK])dnl
  53134. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53135. +_LT_COMPILER_C_O([$1])
  53136. - if test "$prev" != 'sed 50q "[$]0"'; then
  53137. - echo_test_string=`eval $prev`
  53138. - export echo_test_string
  53139. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  53140. - else
  53141. - # Oops. We lost completely, so just stick with echo.
  53142. - ECHO=echo
  53143. - fi
  53144. - fi
  53145. - fi
  53146. - fi
  53147. +hard_links="nottested"
  53148. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  53149. + # do not overwrite the value of need_locks provided by the user
  53150. + AC_MSG_CHECKING([if we can lock with hard links])
  53151. + hard_links=yes
  53152. + $RM conftest*
  53153. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  53154. + touch conftest.a
  53155. + ln conftest.a conftest.b 2>&5 || hard_links=no
  53156. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  53157. + AC_MSG_RESULT([$hard_links])
  53158. + if test "$hard_links" = no; then
  53159. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  53160. + need_locks=warn
  53161. fi
  53162. +else
  53163. + need_locks=no
  53164. fi
  53165. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  53166. +])# _LT_COMPILER_FILE_LOCKS
  53167. -# Copy echo and quote the copy suitably for passing to libtool from
  53168. -# the Makefile, instead of quoting the original, which is used later.
  53169. -lt_ECHO=$ECHO
  53170. -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  53171. - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  53172. -fi
  53173. -AC_SUBST(lt_ECHO)
  53174. -])
  53175. -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  53176. -_LT_DECL([], [ECHO], [1],
  53177. - [An echo program that does not interpret backslashes])
  53178. -])# _LT_PROG_ECHO_BACKSLASH
  53179. +# _LT_CHECK_OBJDIR
  53180. +# ----------------
  53181. +m4_defun([_LT_CHECK_OBJDIR],
  53182. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  53183. +[rm -f .libs 2>/dev/null
  53184. +mkdir .libs 2>/dev/null
  53185. +if test -d .libs; then
  53186. + lt_cv_objdir=.libs
  53187. +else
  53188. + # MS-DOS does not allow filenames that begin with a dot.
  53189. + lt_cv_objdir=_libs
  53190. +fi
  53191. +rmdir .libs 2>/dev/null])
  53192. +objdir=$lt_cv_objdir
  53193. +_LT_DECL([], [objdir], [0],
  53194. + [The name of the directory that contains temporary libtool files])dnl
  53195. +m4_pattern_allow([LT_OBJDIR])dnl
  53196. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  53197. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  53198. +])# _LT_CHECK_OBJDIR
  53199. -# _LT_ENABLE_LOCK
  53200. -# ---------------
  53201. -m4_defun([_LT_ENABLE_LOCK],
  53202. -[AC_ARG_ENABLE([libtool-lock],
  53203. - [AS_HELP_STRING([--disable-libtool-lock],
  53204. - [avoid locking (might break parallel builds)])])
  53205. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  53206. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  53207. +# --------------------------------------
  53208. +# Check hardcoding attributes.
  53209. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  53210. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  53211. +_LT_TAGVAR(hardcode_action, $1)=
  53212. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  53213. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  53214. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  53215. -# Some flags need to be propagated to the compiler or linker for good
  53216. -# libtool support.
  53217. -case $host in
  53218. -ia64-*-hpux*)
  53219. - # Find out which ABI we are using.
  53220. - echo 'int i;' > conftest.$ac_ext
  53221. - if AC_TRY_EVAL(ac_compile); then
  53222. - case `/usr/bin/file conftest.$ac_objext` in
  53223. - *ELF-32*)
  53224. - HPUX_IA64_MODE="32"
  53225. - ;;
  53226. - *ELF-64*)
  53227. - HPUX_IA64_MODE="64"
  53228. - ;;
  53229. - esac
  53230. - fi
  53231. - rm -rf conftest*
  53232. - ;;
  53233. -*-*-irix6*)
  53234. - # Find out which ABI we are using.
  53235. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  53236. - if AC_TRY_EVAL(ac_compile); then
  53237. - if test "$lt_cv_prog_gnu_ld" = yes; then
  53238. - case `/usr/bin/file conftest.$ac_objext` in
  53239. - *32-bit*)
  53240. - LD="${LD-ld} -melf32bsmip"
  53241. - ;;
  53242. - *N32*)
  53243. - LD="${LD-ld} -melf32bmipn32"
  53244. - ;;
  53245. - *64-bit*)
  53246. - LD="${LD-ld} -melf64bmip"
  53247. - ;;
  53248. - esac
  53249. - else
  53250. - case `/usr/bin/file conftest.$ac_objext` in
  53251. - *32-bit*)
  53252. - LD="${LD-ld} -32"
  53253. - ;;
  53254. - *N32*)
  53255. - LD="${LD-ld} -n32"
  53256. - ;;
  53257. - *64-bit*)
  53258. - LD="${LD-ld} -64"
  53259. - ;;
  53260. - esac
  53261. - fi
  53262. - fi
  53263. - rm -rf conftest*
  53264. - ;;
  53265. -
  53266. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  53267. -s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  53268. - # Find out which ABI we are using.
  53269. - echo 'int i;' > conftest.$ac_ext
  53270. - if AC_TRY_EVAL(ac_compile); then
  53271. - case `/usr/bin/file conftest.o` in
  53272. - *32-bit*)
  53273. - case $host in
  53274. - x86_64-*kfreebsd*-gnu)
  53275. - LD="${LD-ld} -m elf_i386_fbsd"
  53276. - ;;
  53277. - x86_64-*linux*)
  53278. - LD="${LD-ld} -m elf_i386"
  53279. - ;;
  53280. - ppc64-*linux*|powerpc64-*linux*)
  53281. - LD="${LD-ld} -m elf32ppclinux"
  53282. - ;;
  53283. - s390x-*linux*)
  53284. - LD="${LD-ld} -m elf_s390"
  53285. - ;;
  53286. - sparc64-*linux*)
  53287. - LD="${LD-ld} -m elf32_sparc"
  53288. - ;;
  53289. - esac
  53290. - ;;
  53291. - *64-bit*)
  53292. - case $host in
  53293. - x86_64-*kfreebsd*-gnu)
  53294. - LD="${LD-ld} -m elf_x86_64_fbsd"
  53295. - ;;
  53296. - x86_64-*linux*)
  53297. - LD="${LD-ld} -m elf_x86_64"
  53298. - ;;
  53299. - ppc*-*linux*|powerpc*-*linux*)
  53300. - LD="${LD-ld} -m elf64ppc"
  53301. - ;;
  53302. - s390*-*linux*|s390*-*tpf*)
  53303. - LD="${LD-ld} -m elf64_s390"
  53304. - ;;
  53305. - sparc*-*linux*)
  53306. - LD="${LD-ld} -m elf64_sparc"
  53307. - ;;
  53308. - esac
  53309. - ;;
  53310. - esac
  53311. - fi
  53312. - rm -rf conftest*
  53313. - ;;
  53314. -
  53315. -*-*-sco3.2v5*)
  53316. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  53317. - SAVE_CFLAGS="$CFLAGS"
  53318. - CFLAGS="$CFLAGS -belf"
  53319. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  53320. - [AC_LANG_PUSH(C)
  53321. - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  53322. - AC_LANG_POP])
  53323. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  53324. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  53325. - CFLAGS="$SAVE_CFLAGS"
  53326. - fi
  53327. - ;;
  53328. -sparc*-*solaris*)
  53329. - # Find out which ABI we are using.
  53330. - echo 'int i;' > conftest.$ac_ext
  53331. - if AC_TRY_EVAL(ac_compile); then
  53332. - case `/usr/bin/file conftest.o` in
  53333. - *64-bit*)
  53334. - case $lt_cv_prog_gnu_ld in
  53335. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  53336. - *)
  53337. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  53338. - LD="${LD-ld} -64"
  53339. - fi
  53340. - ;;
  53341. - esac
  53342. - ;;
  53343. - esac
  53344. + # We can hardcode non-existent directories.
  53345. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  53346. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  53347. + # have to relink, otherwise we might link with an installed library
  53348. + # when we should be linking with a yet-to-be-installed one
  53349. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  53350. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  53351. + # Linking always hardcodes the temporary library directory.
  53352. + _LT_TAGVAR(hardcode_action, $1)=relink
  53353. + else
  53354. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  53355. + _LT_TAGVAR(hardcode_action, $1)=immediate
  53356. fi
  53357. - rm -rf conftest*
  53358. - ;;
  53359. -esac
  53360. -
  53361. -need_locks="$enable_libtool_lock"
  53362. -])# _LT_ENABLE_LOCK
  53363. -
  53364. -
  53365. -# _LT_CMD_OLD_ARCHIVE
  53366. -# -------------------
  53367. -m4_defun([_LT_CMD_OLD_ARCHIVE],
  53368. -[AC_CHECK_TOOL(AR, ar, false)
  53369. -test -z "$AR" && AR=ar
  53370. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  53371. -_LT_DECL([], [AR], [1], [The archiver])
  53372. -_LT_DECL([], [AR_FLAGS], [1])
  53373. -
  53374. -AC_CHECK_TOOL(STRIP, strip, :)
  53375. -test -z "$STRIP" && STRIP=:
  53376. -_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  53377. +else
  53378. + # We cannot hardcode anything, or else we can only hardcode existing
  53379. + # directories.
  53380. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  53381. +fi
  53382. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  53383. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  53384. -test -z "$RANLIB" && RANLIB=:
  53385. -_LT_DECL([], [RANLIB], [1],
  53386. - [Commands used to install an old-style archive])
  53387. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  53388. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  53389. + # Fast installation is not supported
  53390. + enable_fast_install=no
  53391. +elif test "$shlibpath_overrides_runpath" = yes ||
  53392. + test "$enable_shared" = no; then
  53393. + # Fast installation is not necessary
  53394. + enable_fast_install=needless
  53395. +fi
  53396. +_LT_TAGDECL([], [hardcode_action], [0],
  53397. + [How to hardcode a shared library path into an executable])
  53398. +])# _LT_LINKER_HARDCODE_LIBPATH
  53399. -# Determine commands to create old-style static archives.
  53400. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  53401. -old_postinstall_cmds='chmod 644 $oldlib'
  53402. -old_postuninstall_cmds=
  53403. -if test -n "$RANLIB"; then
  53404. +# _LT_CMD_STRIPLIB
  53405. +# ----------------
  53406. +m4_defun([_LT_CMD_STRIPLIB],
  53407. +[m4_require([_LT_DECL_EGREP])
  53408. +striplib=
  53409. +old_striplib=
  53410. +AC_MSG_CHECKING([whether stripping libraries is possible])
  53411. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  53412. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  53413. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  53414. + AC_MSG_RESULT([yes])
  53415. +else
  53416. +# FIXME - insert some real tests, host_os isn't really good enough
  53417. case $host_os in
  53418. - openbsd*)
  53419. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  53420. + darwin*)
  53421. + if test -n "$STRIP" ; then
  53422. + striplib="$STRIP -x"
  53423. + old_striplib="$STRIP -S"
  53424. + AC_MSG_RESULT([yes])
  53425. + else
  53426. + AC_MSG_RESULT([no])
  53427. + fi
  53428. ;;
  53429. *)
  53430. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  53431. + AC_MSG_RESULT([no])
  53432. ;;
  53433. esac
  53434. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  53435. fi
  53436. -_LT_DECL([], [old_postinstall_cmds], [2])
  53437. -_LT_DECL([], [old_postuninstall_cmds], [2])
  53438. -_LT_TAGDECL([], [old_archive_cmds], [2],
  53439. - [Commands used to build an old-style archive])
  53440. -])# _LT_CMD_OLD_ARCHIVE
  53441. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  53442. +_LT_DECL([], [striplib], [1])
  53443. +])# _LT_CMD_STRIPLIB
  53444. -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  53445. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  53446. -# ----------------------------------------------------------------
  53447. -# Check whether the given compiler option works
  53448. -AC_DEFUN([_LT_COMPILER_OPTION],
  53449. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53450. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  53451. +# -----------------------------
  53452. +# PORTME Fill in your ld.so characteristics
  53453. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  53454. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  53455. +m4_require([_LT_DECL_EGREP])dnl
  53456. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53457. +m4_require([_LT_DECL_OBJDUMP])dnl
  53458. m4_require([_LT_DECL_SED])dnl
  53459. -AC_CACHE_CHECK([$1], [$2],
  53460. - [$2=no
  53461. - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  53462. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  53463. - lt_compiler_flag="$3"
  53464. - # Insert the option either (1) after the last *FLAGS variable, or
  53465. - # (2) before a word containing "conftest.", or (3) at the end.
  53466. - # Note that $ac_compile itself does not contain backslashes and begins
  53467. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  53468. - # The option is referenced via a variable to avoid confusing sed.
  53469. - lt_compile=`echo "$ac_compile" | $SED \
  53470. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  53471. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  53472. - -e 's:$: $lt_compiler_flag:'`
  53473. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  53474. - (eval "$lt_compile" 2>conftest.err)
  53475. - ac_status=$?
  53476. - cat conftest.err >&AS_MESSAGE_LOG_FD
  53477. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  53478. - if (exit $ac_status) && test -s "$ac_outfile"; then
  53479. - # The compiler can only warn and ignore the option if not recognized
  53480. - # So say no if there are warnings other than the usual output.
  53481. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  53482. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  53483. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  53484. - $2=yes
  53485. - fi
  53486. - fi
  53487. - $RM conftest*
  53488. -])
  53489. -
  53490. -if test x"[$]$2" = xyes; then
  53491. - m4_if([$5], , :, [$5])
  53492. +AC_MSG_CHECKING([dynamic linker characteristics])
  53493. +m4_if([$1],
  53494. + [], [
  53495. +if test "$GCC" = yes; then
  53496. + case $host_os in
  53497. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  53498. + *) lt_awk_arg="/^libraries:/" ;;
  53499. + esac
  53500. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  53501. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  53502. + # if the path contains ";" then we assume it to be the separator
  53503. + # otherwise default to the standard path separator (i.e. ":") - it is
  53504. + # assumed that no part of a normal pathname contains ";" but that should
  53505. + # okay in the real world where ";" in dirpaths is itself problematic.
  53506. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  53507. + else
  53508. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  53509. + fi
  53510. + # Ok, now we have the path, separated by spaces, we can step through it
  53511. + # and add multilib dir if necessary.
  53512. + lt_tmp_lt_search_path_spec=
  53513. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  53514. + for lt_sys_path in $lt_search_path_spec; do
  53515. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  53516. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  53517. + else
  53518. + test -d "$lt_sys_path" && \
  53519. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  53520. + fi
  53521. + done
  53522. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  53523. +BEGIN {RS=" "; FS="/|\n";} {
  53524. + lt_foo="";
  53525. + lt_count=0;
  53526. + for (lt_i = NF; lt_i > 0; lt_i--) {
  53527. + if ($lt_i != "" && $lt_i != ".") {
  53528. + if ($lt_i == "..") {
  53529. + lt_count++;
  53530. + } else {
  53531. + if (lt_count == 0) {
  53532. + lt_foo="/" $lt_i lt_foo;
  53533. + } else {
  53534. + lt_count--;
  53535. + }
  53536. + }
  53537. + }
  53538. + }
  53539. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  53540. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  53541. +}'`
  53542. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  53543. else
  53544. - m4_if([$6], , :, [$6])
  53545. -fi
  53546. -])# _LT_COMPILER_OPTION
  53547. -
  53548. -# Old name:
  53549. -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  53550. -dnl aclocal-1.4 backwards compatibility:
  53551. -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  53552. -
  53553. -
  53554. -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  53555. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  53556. -# ----------------------------------------------------
  53557. -# Check whether the given linker option works
  53558. -AC_DEFUN([_LT_LINKER_OPTION],
  53559. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53560. -m4_require([_LT_DECL_SED])dnl
  53561. -AC_CACHE_CHECK([$1], [$2],
  53562. - [$2=no
  53563. - save_LDFLAGS="$LDFLAGS"
  53564. - LDFLAGS="$LDFLAGS $3"
  53565. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  53566. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  53567. - # The linker can only warn and ignore the option if not recognized
  53568. - # So say no if there are warnings
  53569. - if test -s conftest.err; then
  53570. - # Append any errors to the config.log.
  53571. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  53572. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  53573. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  53574. - if diff conftest.exp conftest.er2 >/dev/null; then
  53575. - $2=yes
  53576. - fi
  53577. - else
  53578. - $2=yes
  53579. - fi
  53580. - fi
  53581. - $RM -r conftest*
  53582. - LDFLAGS="$save_LDFLAGS"
  53583. -])
  53584. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  53585. +fi])
  53586. +library_names_spec=
  53587. +libname_spec='lib$name'
  53588. +soname_spec=
  53589. +shrext_cmds=".so"
  53590. +postinstall_cmds=
  53591. +postuninstall_cmds=
  53592. +finish_cmds=
  53593. +finish_eval=
  53594. +shlibpath_var=
  53595. +shlibpath_overrides_runpath=unknown
  53596. +version_type=none
  53597. +dynamic_linker="$host_os ld.so"
  53598. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  53599. +need_lib_prefix=unknown
  53600. +hardcode_into_libs=no
  53601. -if test x"[$]$2" = xyes; then
  53602. - m4_if([$4], , :, [$4])
  53603. -else
  53604. - m4_if([$5], , :, [$5])
  53605. -fi
  53606. -])# _LT_LINKER_OPTION
  53607. +# when you set need_version to no, make sure it does not cause -set_version
  53608. +# flags to be left without arguments
  53609. +need_version=unknown
  53610. -# Old name:
  53611. -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  53612. -dnl aclocal-1.4 backwards compatibility:
  53613. -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  53614. +case $host_os in
  53615. +aix3*)
  53616. + version_type=linux
  53617. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  53618. + shlibpath_var=LIBPATH
  53619. + # AIX 3 has no versioning support, so we append a major version to the name.
  53620. + soname_spec='${libname}${release}${shared_ext}$major'
  53621. + ;;
  53622. -# LT_CMD_MAX_LEN
  53623. -#---------------
  53624. -AC_DEFUN([LT_CMD_MAX_LEN],
  53625. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  53626. -# find the maximum length of command line arguments
  53627. -AC_MSG_CHECKING([the maximum length of command line arguments])
  53628. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  53629. - i=0
  53630. - teststring="ABCD"
  53631. +aix[[4-9]]*)
  53632. + version_type=linux
  53633. + need_lib_prefix=no
  53634. + need_version=no
  53635. + hardcode_into_libs=yes
  53636. + if test "$host_cpu" = ia64; then
  53637. + # AIX 5 supports IA64
  53638. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  53639. + shlibpath_var=LD_LIBRARY_PATH
  53640. + else
  53641. + # With GCC up to 2.95.x, collect2 would create an import file
  53642. + # for dependence libraries. The import file would start with
  53643. + # the line `#! .'. This would cause the generated library to
  53644. + # depend on `.', always an invalid library. This was fixed in
  53645. + # development snapshots of GCC prior to 3.0.
  53646. + case $host_os in
  53647. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  53648. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  53649. + echo ' yes '
  53650. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  53651. + :
  53652. + else
  53653. + can_build_shared=no
  53654. + fi
  53655. + ;;
  53656. + esac
  53657. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  53658. + # soname into executable. Probably we can add versioning support to
  53659. + # collect2, so additional links can be useful in future.
  53660. + if test "$aix_use_runtimelinking" = yes; then
  53661. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  53662. + # instead of lib<name>.a to let people know that these are not
  53663. + # typical AIX shared libraries.
  53664. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  53665. + else
  53666. + # We preserve .a as extension for shared libraries through AIX4.2
  53667. + # and later when we are not doing run time linking.
  53668. + library_names_spec='${libname}${release}.a $libname.a'
  53669. + soname_spec='${libname}${release}${shared_ext}$major'
  53670. + fi
  53671. + shlibpath_var=LIBPATH
  53672. + fi
  53673. + ;;
  53674. - case $build_os in
  53675. - msdosdjgpp*)
  53676. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  53677. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  53678. - # during glob expansion). Even if it were fixed, the result of this
  53679. - # check would be larger than it should be.
  53680. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  53681. +amigaos*)
  53682. + case $host_cpu in
  53683. + powerpc)
  53684. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  53685. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  53686. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  53687. ;;
  53688. -
  53689. - gnu*)
  53690. - # Under GNU Hurd, this test is not required because there is
  53691. - # no limit to the length of command line arguments.
  53692. - # Libtool will interpret -1 as no limit whatsoever
  53693. - lt_cv_sys_max_cmd_len=-1;
  53694. + m68k)
  53695. + library_names_spec='$libname.ixlibrary $libname.a'
  53696. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  53697. + 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'
  53698. ;;
  53699. + esac
  53700. + ;;
  53701. - cygwin* | mingw* | cegcc*)
  53702. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  53703. - # about 5 minutes as the teststring grows exponentially.
  53704. - # Worse, since 9x/ME are not pre-emptively multitasking,
  53705. - # you end up with a "frozen" computer, even though with patience
  53706. - # the test eventually succeeds (with a max line length of 256k).
  53707. - # Instead, let's just punt: use the minimum linelength reported by
  53708. - # all of the supported platforms: 8192 (on NT/2K/XP).
  53709. - lt_cv_sys_max_cmd_len=8192;
  53710. - ;;
  53711. +beos*)
  53712. + library_names_spec='${libname}${shared_ext}'
  53713. + dynamic_linker="$host_os ld.so"
  53714. + shlibpath_var=LIBRARY_PATH
  53715. + ;;
  53716. - amigaos*)
  53717. - # On AmigaOS with pdksh, this test takes hours, literally.
  53718. - # So we just punt and use a minimum line length of 8192.
  53719. - lt_cv_sys_max_cmd_len=8192;
  53720. - ;;
  53721. +bsdi[[45]]*)
  53722. + version_type=linux
  53723. + need_version=no
  53724. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  53725. + soname_spec='${libname}${release}${shared_ext}$major'
  53726. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  53727. + shlibpath_var=LD_LIBRARY_PATH
  53728. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  53729. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  53730. + # the default ld.so.conf also contains /usr/contrib/lib and
  53731. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  53732. + # libtool to hard-code these into programs
  53733. + ;;
  53734. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  53735. - # This has been around since 386BSD, at least. Likely further.
  53736. - if test -x /sbin/sysctl; then
  53737. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  53738. - elif test -x /usr/sbin/sysctl; then
  53739. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  53740. - else
  53741. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  53742. - fi
  53743. - # And add a safety zone
  53744. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  53745. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  53746. - ;;
  53747. +cygwin* | mingw* | pw32* | cegcc*)
  53748. + version_type=windows
  53749. + shrext_cmds=".dll"
  53750. + need_version=no
  53751. + need_lib_prefix=no
  53752. - interix*)
  53753. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  53754. - lt_cv_sys_max_cmd_len=196608
  53755. - ;;
  53756. + case $GCC,$host_os in
  53757. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  53758. + library_names_spec='$libname.dll.a'
  53759. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  53760. + postinstall_cmds='base_file=`basename \${file}`~
  53761. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  53762. + dldir=$destdir/`dirname \$dlpath`~
  53763. + test -d \$dldir || mkdir -p \$dldir~
  53764. + $install_prog $dir/$dlname \$dldir/$dlname~
  53765. + chmod a+x \$dldir/$dlname~
  53766. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  53767. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  53768. + fi'
  53769. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  53770. + dlpath=$dir/\$dldll~
  53771. + $RM \$dlpath'
  53772. + shlibpath_overrides_runpath=yes
  53773. - osf*)
  53774. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  53775. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  53776. - # nice to cause kernel panics so lets avoid the loop below.
  53777. - # First set a reasonable default.
  53778. - lt_cv_sys_max_cmd_len=16384
  53779. - #
  53780. - if test -x /sbin/sysconfig; then
  53781. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  53782. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  53783. - esac
  53784. - fi
  53785. - ;;
  53786. - sco3.2v5*)
  53787. - lt_cv_sys_max_cmd_len=102400
  53788. - ;;
  53789. - sysv5* | sco5v6* | sysv4.2uw2*)
  53790. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  53791. - if test -n "$kargmax"; then
  53792. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  53793. - else
  53794. - lt_cv_sys_max_cmd_len=32768
  53795. - fi
  53796. + case $host_os in
  53797. + cygwin*)
  53798. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  53799. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  53800. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  53801. + ;;
  53802. + mingw* | cegcc*)
  53803. + # MinGW DLLs use traditional 'lib' prefix
  53804. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  53805. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  53806. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  53807. + # It is most probably a Windows format PATH printed by
  53808. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  53809. + # path with ; separators, and with drive letters. We can handle the
  53810. + # drive letters (cygwin fileutils understands them), so leave them,
  53811. + # especially as we might pass files found there to a mingw objdump,
  53812. + # which wouldn't understand a cygwinified path. Ahh.
  53813. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  53814. + else
  53815. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  53816. + fi
  53817. + ;;
  53818. + pw32*)
  53819. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  53820. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  53821. + ;;
  53822. + esac
  53823. ;;
  53824. +
  53825. *)
  53826. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  53827. - if test -n "$lt_cv_sys_max_cmd_len"; then
  53828. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  53829. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  53830. - else
  53831. - # Make teststring a little bigger before we do anything with it.
  53832. - # a 1K string should be a reasonable start.
  53833. - for i in 1 2 3 4 5 6 7 8 ; do
  53834. - teststring=$teststring$teststring
  53835. - done
  53836. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  53837. - # If test is not a shell built-in, we'll probably end up computing a
  53838. - # maximum length that is only half of the actual maximum length, but
  53839. - # we can't tell.
  53840. - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  53841. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  53842. - test $i != 17 # 1/2 MB should be enough
  53843. - do
  53844. - i=`expr $i + 1`
  53845. - teststring=$teststring$teststring
  53846. - done
  53847. - # Only check the string length outside the loop.
  53848. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  53849. - teststring=
  53850. - # Add a significant safety factor because C++ compilers can tack on
  53851. - # massive amounts of additional arguments before passing them to the
  53852. - # linker. It appears as though 1/2 is a usable value.
  53853. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  53854. - fi
  53855. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  53856. ;;
  53857. esac
  53858. -])
  53859. -if test -n $lt_cv_sys_max_cmd_len ; then
  53860. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  53861. -else
  53862. - AC_MSG_RESULT(none)
  53863. -fi
  53864. -max_cmd_len=$lt_cv_sys_max_cmd_len
  53865. -_LT_DECL([], [max_cmd_len], [0],
  53866. - [What is the maximum length of a command?])
  53867. -])# LT_CMD_MAX_LEN
  53868. -
  53869. -# Old name:
  53870. -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  53871. -dnl aclocal-1.4 backwards compatibility:
  53872. -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  53873. -
  53874. -
  53875. -# _LT_HEADER_DLFCN
  53876. -# ----------------
  53877. -m4_defun([_LT_HEADER_DLFCN],
  53878. -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  53879. -])# _LT_HEADER_DLFCN
  53880. -
  53881. -
  53882. -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  53883. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  53884. -# ----------------------------------------------------------------
  53885. -m4_defun([_LT_TRY_DLOPEN_SELF],
  53886. -[m4_require([_LT_HEADER_DLFCN])dnl
  53887. -if test "$cross_compiling" = yes; then :
  53888. - [$4]
  53889. -else
  53890. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  53891. - lt_status=$lt_dlunknown
  53892. - cat > conftest.$ac_ext <<_LT_EOF
  53893. -[#line __oline__ "configure"
  53894. -#include "confdefs.h"
  53895. -
  53896. -#if HAVE_DLFCN_H
  53897. -#include <dlfcn.h>
  53898. -#endif
  53899. -
  53900. -#include <stdio.h>
  53901. + dynamic_linker='Win32 ld.exe'
  53902. + # FIXME: first we should search . and the directory the executable is in
  53903. + shlibpath_var=PATH
  53904. + ;;
  53905. -#ifdef RTLD_GLOBAL
  53906. -# define LT_DLGLOBAL RTLD_GLOBAL
  53907. -#else
  53908. -# ifdef DL_GLOBAL
  53909. -# define LT_DLGLOBAL DL_GLOBAL
  53910. -# else
  53911. -# define LT_DLGLOBAL 0
  53912. -# endif
  53913. -#endif
  53914. +darwin* | rhapsody*)
  53915. + dynamic_linker="$host_os dyld"
  53916. + version_type=darwin
  53917. + need_lib_prefix=no
  53918. + need_version=no
  53919. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  53920. + soname_spec='${libname}${release}${major}$shared_ext'
  53921. + shlibpath_overrides_runpath=yes
  53922. + shlibpath_var=DYLD_LIBRARY_PATH
  53923. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  53924. +m4_if([$1], [],[
  53925. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  53926. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  53927. + ;;
  53928. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  53929. - find out it does not work in some platform. */
  53930. -#ifndef LT_DLLAZY_OR_NOW
  53931. -# ifdef RTLD_LAZY
  53932. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  53933. -# else
  53934. -# ifdef DL_LAZY
  53935. -# define LT_DLLAZY_OR_NOW DL_LAZY
  53936. -# else
  53937. -# ifdef RTLD_NOW
  53938. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  53939. -# else
  53940. -# ifdef DL_NOW
  53941. -# define LT_DLLAZY_OR_NOW DL_NOW
  53942. -# else
  53943. -# define LT_DLLAZY_OR_NOW 0
  53944. -# endif
  53945. -# endif
  53946. -# endif
  53947. -# endif
  53948. -#endif
  53949. +dgux*)
  53950. + version_type=linux
  53951. + need_lib_prefix=no
  53952. + need_version=no
  53953. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  53954. + soname_spec='${libname}${release}${shared_ext}$major'
  53955. + shlibpath_var=LD_LIBRARY_PATH
  53956. + ;;
  53957. -void fnord() { int i=42;}
  53958. -int main ()
  53959. -{
  53960. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  53961. - int status = $lt_dlunknown;
  53962. +freebsd1*)
  53963. + dynamic_linker=no
  53964. + ;;
  53965. - if (self)
  53966. - {
  53967. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  53968. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  53969. - /* dlclose (self); */
  53970. - }
  53971. +freebsd* | dragonfly*)
  53972. + # DragonFly does not have aout. When/if they implement a new
  53973. + # versioning mechanism, adjust this.
  53974. + if test -x /usr/bin/objformat; then
  53975. + objformat=`/usr/bin/objformat`
  53976. else
  53977. - puts (dlerror ());
  53978. -
  53979. - return status;
  53980. -}]
  53981. -_LT_EOF
  53982. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  53983. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  53984. - lt_status=$?
  53985. - case x$lt_status in
  53986. - x$lt_dlno_uscore) $1 ;;
  53987. - x$lt_dlneed_uscore) $2 ;;
  53988. - x$lt_dlunknown|x*) $3 ;;
  53989. + case $host_os in
  53990. + freebsd[[123]]*) objformat=aout ;;
  53991. + *) objformat=elf ;;
  53992. esac
  53993. - else :
  53994. - # compilation failed
  53995. - $3
  53996. fi
  53997. -fi
  53998. -rm -fr conftest*
  53999. -])# _LT_TRY_DLOPEN_SELF
  54000. -
  54001. -
  54002. -# LT_SYS_DLOPEN_SELF
  54003. -# ------------------
  54004. -AC_DEFUN([LT_SYS_DLOPEN_SELF],
  54005. -[m4_require([_LT_HEADER_DLFCN])dnl
  54006. -if test "x$enable_dlopen" != xyes; then
  54007. - enable_dlopen=unknown
  54008. - enable_dlopen_self=unknown
  54009. - enable_dlopen_self_static=unknown
  54010. -else
  54011. - lt_cv_dlopen=no
  54012. - lt_cv_dlopen_libs=
  54013. -
  54014. + version_type=freebsd-$objformat
  54015. + case $version_type in
  54016. + freebsd-elf*)
  54017. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  54018. + need_version=no
  54019. + need_lib_prefix=no
  54020. + ;;
  54021. + freebsd-*)
  54022. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  54023. + need_version=yes
  54024. + ;;
  54025. + esac
  54026. + shlibpath_var=LD_LIBRARY_PATH
  54027. case $host_os in
  54028. - beos*)
  54029. - lt_cv_dlopen="load_add_on"
  54030. - lt_cv_dlopen_libs=
  54031. - lt_cv_dlopen_self=yes
  54032. - ;;
  54033. -
  54034. - mingw* | pw32* | cegcc*)
  54035. - lt_cv_dlopen="LoadLibrary"
  54036. - lt_cv_dlopen_libs=
  54037. + freebsd2*)
  54038. + shlibpath_overrides_runpath=yes
  54039. ;;
  54040. -
  54041. - cygwin*)
  54042. - lt_cv_dlopen="dlopen"
  54043. - lt_cv_dlopen_libs=
  54044. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  54045. + shlibpath_overrides_runpath=yes
  54046. + hardcode_into_libs=yes
  54047. ;;
  54048. -
  54049. - darwin*)
  54050. - # if libdl is installed we need to link against it
  54051. - AC_CHECK_LIB([dl], [dlopen],
  54052. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  54053. - lt_cv_dlopen="dyld"
  54054. - lt_cv_dlopen_libs=
  54055. - lt_cv_dlopen_self=yes
  54056. - ])
  54057. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  54058. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  54059. + shlibpath_overrides_runpath=no
  54060. + hardcode_into_libs=yes
  54061. ;;
  54062. -
  54063. - *)
  54064. - AC_CHECK_FUNC([shl_load],
  54065. - [lt_cv_dlopen="shl_load"],
  54066. - [AC_CHECK_LIB([dld], [shl_load],
  54067. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  54068. - [AC_CHECK_FUNC([dlopen],
  54069. - [lt_cv_dlopen="dlopen"],
  54070. - [AC_CHECK_LIB([dl], [dlopen],
  54071. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  54072. - [AC_CHECK_LIB([svld], [dlopen],
  54073. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  54074. - [AC_CHECK_LIB([dld], [dld_link],
  54075. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  54076. - ])
  54077. - ])
  54078. - ])
  54079. - ])
  54080. - ])
  54081. + *) # from 4.6 on, and DragonFly
  54082. + shlibpath_overrides_runpath=yes
  54083. + hardcode_into_libs=yes
  54084. ;;
  54085. esac
  54086. + ;;
  54087. - if test "x$lt_cv_dlopen" != xno; then
  54088. - enable_dlopen=yes
  54089. - else
  54090. - enable_dlopen=no
  54091. - fi
  54092. -
  54093. - case $lt_cv_dlopen in
  54094. - dlopen)
  54095. - save_CPPFLAGS="$CPPFLAGS"
  54096. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  54097. -
  54098. - save_LDFLAGS="$LDFLAGS"
  54099. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  54100. -
  54101. - save_LIBS="$LIBS"
  54102. - LIBS="$lt_cv_dlopen_libs $LIBS"
  54103. -
  54104. - AC_CACHE_CHECK([whether a program can dlopen itself],
  54105. - lt_cv_dlopen_self, [dnl
  54106. - _LT_TRY_DLOPEN_SELF(
  54107. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  54108. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  54109. - ])
  54110. +gnu*)
  54111. + version_type=linux
  54112. + need_lib_prefix=no
  54113. + need_version=no
  54114. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  54115. + soname_spec='${libname}${release}${shared_ext}$major'
  54116. + shlibpath_var=LD_LIBRARY_PATH
  54117. + hardcode_into_libs=yes
  54118. + ;;
  54119. - if test "x$lt_cv_dlopen_self" = xyes; then
  54120. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  54121. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  54122. - lt_cv_dlopen_self_static, [dnl
  54123. - _LT_TRY_DLOPEN_SELF(
  54124. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  54125. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  54126. - ])
  54127. +hpux9* | hpux10* | hpux11*)
  54128. + # Give a soname corresponding to the major version so that dld.sl refuses to
  54129. + # link against other versions.
  54130. + version_type=sunos
  54131. + need_lib_prefix=no
  54132. + need_version=no
  54133. + case $host_cpu in
  54134. + ia64*)
  54135. + shrext_cmds='.so'
  54136. + hardcode_into_libs=yes
  54137. + dynamic_linker="$host_os dld.so"
  54138. + shlibpath_var=LD_LIBRARY_PATH
  54139. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  54140. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54141. + soname_spec='${libname}${release}${shared_ext}$major'
  54142. + if test "X$HPUX_IA64_MODE" = X32; then
  54143. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  54144. + else
  54145. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  54146. fi
  54147. -
  54148. - CPPFLAGS="$save_CPPFLAGS"
  54149. - LDFLAGS="$save_LDFLAGS"
  54150. - LIBS="$save_LIBS"
  54151. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  54152. + ;;
  54153. + hppa*64*)
  54154. + shrext_cmds='.sl'
  54155. + hardcode_into_libs=yes
  54156. + dynamic_linker="$host_os dld.sl"
  54157. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  54158. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  54159. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54160. + soname_spec='${libname}${release}${shared_ext}$major'
  54161. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  54162. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  54163. + ;;
  54164. + *)
  54165. + shrext_cmds='.sl'
  54166. + dynamic_linker="$host_os dld.sl"
  54167. + shlibpath_var=SHLIB_PATH
  54168. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  54169. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54170. + soname_spec='${libname}${release}${shared_ext}$major'
  54171. ;;
  54172. esac
  54173. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  54174. + postinstall_cmds='chmod 555 $lib'
  54175. + ;;
  54176. - case $lt_cv_dlopen_self in
  54177. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  54178. - *) enable_dlopen_self=unknown ;;
  54179. - esac
  54180. +interix[[3-9]]*)
  54181. + version_type=linux
  54182. + need_lib_prefix=no
  54183. + need_version=no
  54184. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  54185. + soname_spec='${libname}${release}${shared_ext}$major'
  54186. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  54187. + shlibpath_var=LD_LIBRARY_PATH
  54188. + shlibpath_overrides_runpath=no
  54189. + hardcode_into_libs=yes
  54190. + ;;
  54191. - case $lt_cv_dlopen_self_static in
  54192. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  54193. - *) enable_dlopen_self_static=unknown ;;
  54194. +irix5* | irix6* | nonstopux*)
  54195. + case $host_os in
  54196. + nonstopux*) version_type=nonstopux ;;
  54197. + *)
  54198. + if test "$lt_cv_prog_gnu_ld" = yes; then
  54199. + version_type=linux
  54200. + else
  54201. + version_type=irix
  54202. + fi ;;
  54203. esac
  54204. -fi
  54205. -_LT_DECL([dlopen_support], [enable_dlopen], [0],
  54206. - [Whether dlopen is supported])
  54207. -_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  54208. - [Whether dlopen of programs is supported])
  54209. -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  54210. - [Whether dlopen of statically linked programs is supported])
  54211. -])# LT_SYS_DLOPEN_SELF
  54212. + need_lib_prefix=no
  54213. + need_version=no
  54214. + soname_spec='${libname}${release}${shared_ext}$major'
  54215. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  54216. + case $host_os in
  54217. + irix5* | nonstopux*)
  54218. + libsuff= shlibsuff=
  54219. + ;;
  54220. + *)
  54221. + case $LD in # libtool.m4 will add one of these switches to LD
  54222. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  54223. + libsuff= shlibsuff= libmagic=32-bit;;
  54224. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  54225. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  54226. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  54227. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  54228. + *) libsuff= shlibsuff= libmagic=never-match;;
  54229. + esac
  54230. + ;;
  54231. + esac
  54232. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  54233. + shlibpath_overrides_runpath=no
  54234. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  54235. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  54236. + hardcode_into_libs=yes
  54237. + ;;
  54238. -# Old name:
  54239. -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  54240. -dnl aclocal-1.4 backwards compatibility:
  54241. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  54242. +# No shared lib support for Linux oldld, aout, or coff.
  54243. +linux*oldld* | linux*aout* | linux*coff*)
  54244. + dynamic_linker=no
  54245. + ;;
  54246. +# This must be Linux ELF.
  54247. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  54248. + version_type=linux
  54249. + need_lib_prefix=no
  54250. + need_version=no
  54251. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54252. + soname_spec='${libname}${release}${shared_ext}$major'
  54253. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  54254. + shlibpath_var=LD_LIBRARY_PATH
  54255. + shlibpath_overrides_runpath=no
  54256. + # Some binutils ld are patched to set DT_RUNPATH
  54257. + save_LDFLAGS=$LDFLAGS
  54258. + save_libdir=$libdir
  54259. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  54260. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  54261. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  54262. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  54263. + [shlibpath_overrides_runpath=yes])])
  54264. + LDFLAGS=$save_LDFLAGS
  54265. + libdir=$save_libdir
  54266. -# _LT_COMPILER_C_O([TAGNAME])
  54267. -# ---------------------------
  54268. -# Check to see if options -c and -o are simultaneously supported by compiler.
  54269. -# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  54270. -m4_defun([_LT_COMPILER_C_O],
  54271. -[m4_require([_LT_DECL_SED])dnl
  54272. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54273. -m4_require([_LT_TAG_COMPILER])dnl
  54274. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  54275. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  54276. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  54277. - $RM -r conftest 2>/dev/null
  54278. - mkdir conftest
  54279. - cd conftest
  54280. - mkdir out
  54281. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  54282. -
  54283. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  54284. - # Insert the option either (1) after the last *FLAGS variable, or
  54285. - # (2) before a word containing "conftest.", or (3) at the end.
  54286. - # Note that $ac_compile itself does not contain backslashes and begins
  54287. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  54288. - lt_compile=`echo "$ac_compile" | $SED \
  54289. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  54290. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  54291. - -e 's:$: $lt_compiler_flag:'`
  54292. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  54293. - (eval "$lt_compile" 2>out/conftest.err)
  54294. - ac_status=$?
  54295. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  54296. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  54297. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  54298. - then
  54299. - # The compiler can only warn and ignore the option if not recognized
  54300. - # So say no if there are warnings
  54301. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  54302. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  54303. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  54304. - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  54305. - fi
  54306. - fi
  54307. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  54308. - $RM conftest*
  54309. - # SGI C++ compiler will create directory out/ii_files/ for
  54310. - # template instantiation
  54311. - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  54312. - $RM out/* && rmdir out
  54313. - cd ..
  54314. - $RM -r conftest
  54315. - $RM conftest*
  54316. -])
  54317. -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  54318. - [Does compiler simultaneously support -c and -o options?])
  54319. -])# _LT_COMPILER_C_O
  54320. -
  54321. -
  54322. -# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  54323. -# ----------------------------------
  54324. -# Check to see if we can do hard links to lock some files if needed
  54325. -m4_defun([_LT_COMPILER_FILE_LOCKS],
  54326. -[m4_require([_LT_ENABLE_LOCK])dnl
  54327. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54328. -_LT_COMPILER_C_O([$1])
  54329. + # This implies no fast_install, which is unacceptable.
  54330. + # Some rework will be needed to allow for fast_install
  54331. + # before this can be enabled.
  54332. + hardcode_into_libs=yes
  54333. -hard_links="nottested"
  54334. -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  54335. - # do not overwrite the value of need_locks provided by the user
  54336. - AC_MSG_CHECKING([if we can lock with hard links])
  54337. - hard_links=yes
  54338. - $RM conftest*
  54339. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  54340. - touch conftest.a
  54341. - ln conftest.a conftest.b 2>&5 || hard_links=no
  54342. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  54343. - AC_MSG_RESULT([$hard_links])
  54344. - if test "$hard_links" = no; then
  54345. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  54346. - need_locks=warn
  54347. + # Append ld.so.conf contents to the search path
  54348. + if test -f /etc/ld.so.conf; then
  54349. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  54350. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  54351. fi
  54352. -else
  54353. - need_locks=no
  54354. -fi
  54355. -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  54356. -])# _LT_COMPILER_FILE_LOCKS
  54357. -
  54358. -
  54359. -# _LT_CHECK_OBJDIR
  54360. -# ----------------
  54361. -m4_defun([_LT_CHECK_OBJDIR],
  54362. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  54363. -[rm -f .libs 2>/dev/null
  54364. -mkdir .libs 2>/dev/null
  54365. -if test -d .libs; then
  54366. - lt_cv_objdir=.libs
  54367. -else
  54368. - # MS-DOS does not allow filenames that begin with a dot.
  54369. - lt_cv_objdir=_libs
  54370. -fi
  54371. -rmdir .libs 2>/dev/null])
  54372. -objdir=$lt_cv_objdir
  54373. -_LT_DECL([], [objdir], [0],
  54374. - [The name of the directory that contains temporary libtool files])dnl
  54375. -m4_pattern_allow([LT_OBJDIR])dnl
  54376. -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  54377. - [Define to the sub-directory in which libtool stores uninstalled libraries.])
  54378. -])# _LT_CHECK_OBJDIR
  54379. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  54380. + # powerpc, because MkLinux only supported shared libraries with the
  54381. + # GNU dynamic linker. Since this was broken with cross compilers,
  54382. + # most powerpc-linux boxes support dynamic linking these days and
  54383. + # people can always --disable-shared, the test was removed, and we
  54384. + # assume the GNU/Linux dynamic linker is in use.
  54385. + dynamic_linker='GNU/Linux ld.so'
  54386. + ;;
  54387. -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  54388. -# --------------------------------------
  54389. -# Check hardcoding attributes.
  54390. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  54391. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  54392. -_LT_TAGVAR(hardcode_action, $1)=
  54393. -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  54394. - test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  54395. - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  54396. +netbsdelf*-gnu)
  54397. + version_type=linux
  54398. + need_lib_prefix=no
  54399. + need_version=no
  54400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  54401. + soname_spec='${libname}${release}${shared_ext}$major'
  54402. + shlibpath_var=LD_LIBRARY_PATH
  54403. + shlibpath_overrides_runpath=no
  54404. + hardcode_into_libs=yes
  54405. + dynamic_linker='NetBSD ld.elf_so'
  54406. + ;;
  54407. - # We can hardcode non-existent directories.
  54408. - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  54409. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  54410. - # have to relink, otherwise we might link with an installed library
  54411. - # when we should be linking with a yet-to-be-installed one
  54412. - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  54413. - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  54414. - # Linking always hardcodes the temporary library directory.
  54415. - _LT_TAGVAR(hardcode_action, $1)=relink
  54416. +netbsd*)
  54417. + version_type=sunos
  54418. + need_lib_prefix=no
  54419. + need_version=no
  54420. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  54421. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  54422. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  54423. + dynamic_linker='NetBSD (a.out) ld.so'
  54424. else
  54425. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  54426. - _LT_TAGVAR(hardcode_action, $1)=immediate
  54427. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  54428. + soname_spec='${libname}${release}${shared_ext}$major'
  54429. + dynamic_linker='NetBSD ld.elf_so'
  54430. fi
  54431. -else
  54432. - # We cannot hardcode anything, or else we can only hardcode existing
  54433. - # directories.
  54434. - _LT_TAGVAR(hardcode_action, $1)=unsupported
  54435. -fi
  54436. -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  54437. + shlibpath_var=LD_LIBRARY_PATH
  54438. + shlibpath_overrides_runpath=yes
  54439. + hardcode_into_libs=yes
  54440. + ;;
  54441. -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  54442. - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  54443. - # Fast installation is not supported
  54444. - enable_fast_install=no
  54445. -elif test "$shlibpath_overrides_runpath" = yes ||
  54446. - test "$enable_shared" = no; then
  54447. - # Fast installation is not necessary
  54448. - enable_fast_install=needless
  54449. -fi
  54450. -_LT_TAGDECL([], [hardcode_action], [0],
  54451. - [How to hardcode a shared library path into an executable])
  54452. -])# _LT_LINKER_HARDCODE_LIBPATH
  54453. +newsos6)
  54454. + version_type=linux
  54455. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54456. + shlibpath_var=LD_LIBRARY_PATH
  54457. + shlibpath_overrides_runpath=yes
  54458. + ;;
  54459. +*nto* | *qnx*)
  54460. + version_type=qnx
  54461. + need_lib_prefix=no
  54462. + need_version=no
  54463. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54464. + soname_spec='${libname}${release}${shared_ext}$major'
  54465. + shlibpath_var=LD_LIBRARY_PATH
  54466. + shlibpath_overrides_runpath=no
  54467. + hardcode_into_libs=yes
  54468. + dynamic_linker='ldqnx.so'
  54469. + ;;
  54470. -# _LT_CMD_STRIPLIB
  54471. -# ----------------
  54472. -m4_defun([_LT_CMD_STRIPLIB],
  54473. -[m4_require([_LT_DECL_EGREP])
  54474. -striplib=
  54475. -old_striplib=
  54476. -AC_MSG_CHECKING([whether stripping libraries is possible])
  54477. -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  54478. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  54479. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  54480. - AC_MSG_RESULT([yes])
  54481. -else
  54482. -# FIXME - insert some real tests, host_os isn't really good enough
  54483. +openbsd*)
  54484. + version_type=sunos
  54485. + sys_lib_dlsearch_path_spec="/usr/lib"
  54486. + need_lib_prefix=no
  54487. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  54488. case $host_os in
  54489. - darwin*)
  54490. - if test -n "$STRIP" ; then
  54491. - striplib="$STRIP -x"
  54492. - old_striplib="$STRIP -S"
  54493. - AC_MSG_RESULT([yes])
  54494. - else
  54495. - AC_MSG_RESULT([no])
  54496. - fi
  54497. - ;;
  54498. - *)
  54499. - AC_MSG_RESULT([no])
  54500. - ;;
  54501. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  54502. + *) need_version=no ;;
  54503. esac
  54504. -fi
  54505. -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  54506. -_LT_DECL([], [striplib], [1])
  54507. -])# _LT_CMD_STRIPLIB
  54508. -
  54509. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  54510. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  54511. + shlibpath_var=LD_LIBRARY_PATH
  54512. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  54513. + case $host_os in
  54514. + openbsd2.[[89]] | openbsd2.[[89]].*)
  54515. + shlibpath_overrides_runpath=no
  54516. + ;;
  54517. + *)
  54518. + shlibpath_overrides_runpath=yes
  54519. + ;;
  54520. + esac
  54521. + else
  54522. + shlibpath_overrides_runpath=yes
  54523. + fi
  54524. + ;;
  54525. -# _LT_SYS_DYNAMIC_LINKER([TAG])
  54526. -# -----------------------------
  54527. -# PORTME Fill in your ld.so characteristics
  54528. -m4_defun([_LT_SYS_DYNAMIC_LINKER],
  54529. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  54530. -m4_require([_LT_DECL_EGREP])dnl
  54531. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54532. -m4_require([_LT_DECL_OBJDUMP])dnl
  54533. -m4_require([_LT_DECL_SED])dnl
  54534. -AC_MSG_CHECKING([dynamic linker characteristics])
  54535. -m4_if([$1],
  54536. - [], [
  54537. -if test "$GCC" = yes; then
  54538. - case $host_os in
  54539. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  54540. - *) lt_awk_arg="/^libraries:/" ;;
  54541. - esac
  54542. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  54543. - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  54544. - # if the path contains ";" then we assume it to be the separator
  54545. - # otherwise default to the standard path separator (i.e. ":") - it is
  54546. - # assumed that no part of a normal pathname contains ";" but that should
  54547. - # okay in the real world where ";" in dirpaths is itself problematic.
  54548. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  54549. - else
  54550. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  54551. - fi
  54552. - # Ok, now we have the path, separated by spaces, we can step through it
  54553. - # and add multilib dir if necessary.
  54554. - lt_tmp_lt_search_path_spec=
  54555. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  54556. - for lt_sys_path in $lt_search_path_spec; do
  54557. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  54558. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  54559. - else
  54560. - test -d "$lt_sys_path" && \
  54561. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  54562. - fi
  54563. - done
  54564. - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  54565. -BEGIN {RS=" "; FS="/|\n";} {
  54566. - lt_foo="";
  54567. - lt_count=0;
  54568. - for (lt_i = NF; lt_i > 0; lt_i--) {
  54569. - if ($lt_i != "" && $lt_i != ".") {
  54570. - if ($lt_i == "..") {
  54571. - lt_count++;
  54572. - } else {
  54573. - if (lt_count == 0) {
  54574. - lt_foo="/" $lt_i lt_foo;
  54575. - } else {
  54576. - lt_count--;
  54577. - }
  54578. - }
  54579. - }
  54580. - }
  54581. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  54582. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  54583. -}'`
  54584. - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  54585. -else
  54586. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  54587. -fi])
  54588. -library_names_spec=
  54589. -libname_spec='lib$name'
  54590. -soname_spec=
  54591. -shrext_cmds=".so"
  54592. -postinstall_cmds=
  54593. -postuninstall_cmds=
  54594. -finish_cmds=
  54595. -finish_eval=
  54596. -shlibpath_var=
  54597. -shlibpath_overrides_runpath=unknown
  54598. -version_type=none
  54599. -dynamic_linker="$host_os ld.so"
  54600. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  54601. -need_lib_prefix=unknown
  54602. -hardcode_into_libs=no
  54603. -
  54604. -# when you set need_version to no, make sure it does not cause -set_version
  54605. -# flags to be left without arguments
  54606. -need_version=unknown
  54607. -
  54608. -case $host_os in
  54609. -aix3*)
  54610. - version_type=linux
  54611. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  54612. +os2*)
  54613. + libname_spec='$name'
  54614. + shrext_cmds=".dll"
  54615. + need_lib_prefix=no
  54616. + library_names_spec='$libname${shared_ext} $libname.a'
  54617. + dynamic_linker='OS/2 ld.exe'
  54618. shlibpath_var=LIBPATH
  54619. + ;;
  54620. - # AIX 3 has no versioning support, so we append a major version to the name.
  54621. +osf3* | osf4* | osf5*)
  54622. + version_type=osf
  54623. + need_lib_prefix=no
  54624. + need_version=no
  54625. soname_spec='${libname}${release}${shared_ext}$major'
  54626. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54627. + shlibpath_var=LD_LIBRARY_PATH
  54628. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  54629. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  54630. ;;
  54631. -aix[[4-9]]*)
  54632. +rdos*)
  54633. + dynamic_linker=no
  54634. + ;;
  54635. +
  54636. +solaris*)
  54637. version_type=linux
  54638. need_lib_prefix=no
  54639. need_version=no
  54640. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54641. + soname_spec='${libname}${release}${shared_ext}$major'
  54642. + shlibpath_var=LD_LIBRARY_PATH
  54643. + shlibpath_overrides_runpath=yes
  54644. hardcode_into_libs=yes
  54645. - if test "$host_cpu" = ia64; then
  54646. - # AIX 5 supports IA64
  54647. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  54648. - shlibpath_var=LD_LIBRARY_PATH
  54649. - else
  54650. - # With GCC up to 2.95.x, collect2 would create an import file
  54651. - # for dependence libraries. The import file would start with
  54652. - # the line `#! .'. This would cause the generated library to
  54653. - # depend on `.', always an invalid library. This was fixed in
  54654. - # development snapshots of GCC prior to 3.0.
  54655. - case $host_os in
  54656. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  54657. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  54658. - echo ' yes '
  54659. - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  54660. - :
  54661. - else
  54662. - can_build_shared=no
  54663. - fi
  54664. - ;;
  54665. - esac
  54666. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  54667. - # soname into executable. Probably we can add versioning support to
  54668. - # collect2, so additional links can be useful in future.
  54669. - if test "$aix_use_runtimelinking" = yes; then
  54670. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  54671. - # instead of lib<name>.a to let people know that these are not
  54672. - # typical AIX shared libraries.
  54673. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54674. - else
  54675. - # We preserve .a as extension for shared libraries through AIX4.2
  54676. - # and later when we are not doing run time linking.
  54677. - library_names_spec='${libname}${release}.a $libname.a'
  54678. - soname_spec='${libname}${release}${shared_ext}$major'
  54679. - fi
  54680. - shlibpath_var=LIBPATH
  54681. + # ldd complains unless libraries are executable
  54682. + postinstall_cmds='chmod +x $lib'
  54683. + ;;
  54684. +
  54685. +sunos4*)
  54686. + version_type=sunos
  54687. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  54688. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  54689. + shlibpath_var=LD_LIBRARY_PATH
  54690. + shlibpath_overrides_runpath=yes
  54691. + if test "$with_gnu_ld" = yes; then
  54692. + need_lib_prefix=no
  54693. fi
  54694. + need_version=yes
  54695. ;;
  54696. -amigaos*)
  54697. - case $host_cpu in
  54698. - powerpc)
  54699. - # Since July 2007 AmigaOS4 officially supports .so libraries.
  54700. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  54701. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54702. - ;;
  54703. - m68k)
  54704. - library_names_spec='$libname.ixlibrary $libname.a'
  54705. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  54706. - 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'
  54707. - ;;
  54708. +sysv4 | sysv4.3*)
  54709. + version_type=linux
  54710. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54711. + soname_spec='${libname}${release}${shared_ext}$major'
  54712. + shlibpath_var=LD_LIBRARY_PATH
  54713. + case $host_vendor in
  54714. + sni)
  54715. + shlibpath_overrides_runpath=no
  54716. + need_lib_prefix=no
  54717. + runpath_var=LD_RUN_PATH
  54718. + ;;
  54719. + siemens)
  54720. + need_lib_prefix=no
  54721. + ;;
  54722. + motorola)
  54723. + need_lib_prefix=no
  54724. + need_version=no
  54725. + shlibpath_overrides_runpath=no
  54726. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  54727. + ;;
  54728. esac
  54729. ;;
  54730. -beos*)
  54731. - library_names_spec='${libname}${shared_ext}'
  54732. - dynamic_linker="$host_os ld.so"
  54733. - shlibpath_var=LIBRARY_PATH
  54734. +sysv4*MP*)
  54735. + if test -d /usr/nec ;then
  54736. + version_type=linux
  54737. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  54738. + soname_spec='$libname${shared_ext}.$major'
  54739. + shlibpath_var=LD_LIBRARY_PATH
  54740. + fi
  54741. ;;
  54742. -bsdi[[45]]*)
  54743. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  54744. + version_type=freebsd-elf
  54745. + need_lib_prefix=no
  54746. + need_version=no
  54747. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  54748. + soname_spec='${libname}${release}${shared_ext}$major'
  54749. + shlibpath_var=LD_LIBRARY_PATH
  54750. + shlibpath_overrides_runpath=yes
  54751. + hardcode_into_libs=yes
  54752. + if test "$with_gnu_ld" = yes; then
  54753. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  54754. + else
  54755. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  54756. + case $host_os in
  54757. + sco3.2v5*)
  54758. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  54759. + ;;
  54760. + esac
  54761. + fi
  54762. + sys_lib_dlsearch_path_spec='/usr/lib'
  54763. + ;;
  54764. +
  54765. +tpf*)
  54766. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  54767. version_type=linux
  54768. + need_lib_prefix=no
  54769. need_version=no
  54770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54771. + shlibpath_var=LD_LIBRARY_PATH
  54772. + shlibpath_overrides_runpath=no
  54773. + hardcode_into_libs=yes
  54774. + ;;
  54775. +
  54776. +uts4*)
  54777. + version_type=linux
  54778. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  54779. soname_spec='${libname}${release}${shared_ext}$major'
  54780. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  54781. shlibpath_var=LD_LIBRARY_PATH
  54782. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  54783. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  54784. - # the default ld.so.conf also contains /usr/contrib/lib and
  54785. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  54786. - # libtool to hard-code these into programs
  54787. ;;
  54788. -cygwin* | mingw* | pw32* | cegcc*)
  54789. - version_type=windows
  54790. - shrext_cmds=".dll"
  54791. - need_version=no
  54792. - need_lib_prefix=no
  54793. +*)
  54794. + dynamic_linker=no
  54795. + ;;
  54796. +esac
  54797. +AC_MSG_RESULT([$dynamic_linker])
  54798. +test "$dynamic_linker" = no && can_build_shared=no
  54799. - case $GCC,$host_os in
  54800. - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  54801. - library_names_spec='$libname.dll.a'
  54802. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  54803. - postinstall_cmds='base_file=`basename \${file}`~
  54804. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  54805. - dldir=$destdir/`dirname \$dlpath`~
  54806. - test -d \$dldir || mkdir -p \$dldir~
  54807. - $install_prog $dir/$dlname \$dldir/$dlname~
  54808. - chmod a+x \$dldir/$dlname~
  54809. - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  54810. - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  54811. - fi'
  54812. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  54813. - dlpath=$dir/\$dldll~
  54814. - $RM \$dlpath'
  54815. - shlibpath_overrides_runpath=yes
  54816. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  54817. +if test "$GCC" = yes; then
  54818. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  54819. +fi
  54820. - case $host_os in
  54821. - cygwin*)
  54822. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  54823. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  54824. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  54825. - ;;
  54826. - mingw* | cegcc*)
  54827. - # MinGW DLLs use traditional 'lib' prefix
  54828. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  54829. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  54830. - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  54831. - # It is most probably a Windows format PATH printed by
  54832. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  54833. - # path with ; separators, and with drive letters. We can handle the
  54834. - # drive letters (cygwin fileutils understands them), so leave them,
  54835. - # especially as we might pass files found there to a mingw objdump,
  54836. - # which wouldn't understand a cygwinified path. Ahh.
  54837. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  54838. - else
  54839. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  54840. - fi
  54841. - ;;
  54842. - pw32*)
  54843. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  54844. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  54845. - ;;
  54846. - esac
  54847. - ;;
  54848. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  54849. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  54850. +fi
  54851. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  54852. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  54853. +fi
  54854. - *)
  54855. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  54856. - ;;
  54857. - esac
  54858. - dynamic_linker='Win32 ld.exe'
  54859. - # FIXME: first we should search . and the directory the executable is in
  54860. - shlibpath_var=PATH
  54861. - ;;
  54862. +_LT_DECL([], [variables_saved_for_relink], [1],
  54863. + [Variables whose values should be saved in libtool wrapper scripts and
  54864. + restored at link time])
  54865. +_LT_DECL([], [need_lib_prefix], [0],
  54866. + [Do we need the "lib" prefix for modules?])
  54867. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  54868. +_LT_DECL([], [version_type], [0], [Library versioning type])
  54869. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  54870. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  54871. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  54872. + [Is shlibpath searched before the hard-coded library search path?])
  54873. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  54874. +_LT_DECL([], [library_names_spec], [1],
  54875. + [[List of archive names. First name is the real one, the rest are links.
  54876. + The last name is the one that the linker finds with -lNAME]])
  54877. +_LT_DECL([], [soname_spec], [1],
  54878. + [[The coded name of the library, if different from the real name]])
  54879. +_LT_DECL([], [postinstall_cmds], [2],
  54880. + [Command to use after installation of a shared archive])
  54881. +_LT_DECL([], [postuninstall_cmds], [2],
  54882. + [Command to use after uninstallation of a shared archive])
  54883. +_LT_DECL([], [finish_cmds], [2],
  54884. + [Commands used to finish a libtool library installation in a directory])
  54885. +_LT_DECL([], [finish_eval], [1],
  54886. + [[As "finish_cmds", except a single script fragment to be evaled but
  54887. + not shown]])
  54888. +_LT_DECL([], [hardcode_into_libs], [0],
  54889. + [Whether we should hardcode library paths into libraries])
  54890. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  54891. + [Compile-time system search path for libraries])
  54892. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  54893. + [Run-time system search path for libraries])
  54894. +])# _LT_SYS_DYNAMIC_LINKER
  54895. -darwin* | rhapsody*)
  54896. - dynamic_linker="$host_os dyld"
  54897. - version_type=darwin
  54898. - need_lib_prefix=no
  54899. - need_version=no
  54900. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  54901. - soname_spec='${libname}${release}${major}$shared_ext'
  54902. - shlibpath_overrides_runpath=yes
  54903. - shlibpath_var=DYLD_LIBRARY_PATH
  54904. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  54905. -m4_if([$1], [],[
  54906. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  54907. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  54908. - ;;
  54909. -dgux*)
  54910. - version_type=linux
  54911. - need_lib_prefix=no
  54912. - need_version=no
  54913. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  54914. - soname_spec='${libname}${release}${shared_ext}$major'
  54915. - shlibpath_var=LD_LIBRARY_PATH
  54916. +# _LT_PATH_TOOL_PREFIX(TOOL)
  54917. +# --------------------------
  54918. +# find a file program which can recognize shared library
  54919. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  54920. +[m4_require([_LT_DECL_EGREP])dnl
  54921. +AC_MSG_CHECKING([for $1])
  54922. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  54923. +[case $MAGIC_CMD in
  54924. +[[\\/*] | ?:[\\/]*])
  54925. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  54926. ;;
  54927. +*)
  54928. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  54929. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  54930. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  54931. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  54932. +dnl not every word. This closes a longstanding sh security hole.
  54933. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  54934. + for ac_dir in $ac_dummy; do
  54935. + IFS="$lt_save_ifs"
  54936. + test -z "$ac_dir" && ac_dir=.
  54937. + if test -f $ac_dir/$1; then
  54938. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  54939. + if test -n "$file_magic_test_file"; then
  54940. + case $deplibs_check_method in
  54941. + "file_magic "*)
  54942. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  54943. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  54944. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  54945. + $EGREP "$file_magic_regex" > /dev/null; then
  54946. + :
  54947. + else
  54948. + cat <<_LT_EOF 1>&2
  54949. -freebsd1*)
  54950. - dynamic_linker=no
  54951. +*** Warning: the command libtool uses to detect shared libraries,
  54952. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  54953. +*** The result is that libtool may fail to recognize shared libraries
  54954. +*** as such. This will affect the creation of libtool libraries that
  54955. +*** depend on shared libraries, but programs linked with such libtool
  54956. +*** libraries will work regardless of this problem. Nevertheless, you
  54957. +*** may want to report the problem to your system manager and/or to
  54958. +*** bug-libtool@gnu.org
  54959. +
  54960. +_LT_EOF
  54961. + fi ;;
  54962. + esac
  54963. + fi
  54964. + break
  54965. + fi
  54966. + done
  54967. + IFS="$lt_save_ifs"
  54968. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  54969. ;;
  54970. +esac])
  54971. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  54972. +if test -n "$MAGIC_CMD"; then
  54973. + AC_MSG_RESULT($MAGIC_CMD)
  54974. +else
  54975. + AC_MSG_RESULT(no)
  54976. +fi
  54977. +_LT_DECL([], [MAGIC_CMD], [0],
  54978. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  54979. +])# _LT_PATH_TOOL_PREFIX
  54980. -freebsd* | dragonfly*)
  54981. - # DragonFly does not have aout. When/if they implement a new
  54982. - # versioning mechanism, adjust this.
  54983. - if test -x /usr/bin/objformat; then
  54984. - objformat=`/usr/bin/objformat`
  54985. +# Old name:
  54986. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  54987. +dnl aclocal-1.4 backwards compatibility:
  54988. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  54989. +
  54990. +
  54991. +# _LT_PATH_MAGIC
  54992. +# --------------
  54993. +# find a file program which can recognize a shared library
  54994. +m4_defun([_LT_PATH_MAGIC],
  54995. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  54996. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  54997. + if test -n "$ac_tool_prefix"; then
  54998. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  54999. else
  55000. - case $host_os in
  55001. - freebsd[[123]]*) objformat=aout ;;
  55002. - *) objformat=elf ;;
  55003. - esac
  55004. + MAGIC_CMD=:
  55005. fi
  55006. - version_type=freebsd-$objformat
  55007. - case $version_type in
  55008. - freebsd-elf*)
  55009. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  55010. - need_version=no
  55011. - need_lib_prefix=no
  55012. - ;;
  55013. - freebsd-*)
  55014. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  55015. - need_version=yes
  55016. - ;;
  55017. - esac
  55018. - shlibpath_var=LD_LIBRARY_PATH
  55019. - case $host_os in
  55020. - freebsd2*)
  55021. - shlibpath_overrides_runpath=yes
  55022. - ;;
  55023. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  55024. - shlibpath_overrides_runpath=yes
  55025. - hardcode_into_libs=yes
  55026. - ;;
  55027. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  55028. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  55029. - shlibpath_overrides_runpath=no
  55030. - hardcode_into_libs=yes
  55031. - ;;
  55032. - *) # from 4.6 on, and DragonFly
  55033. - shlibpath_overrides_runpath=yes
  55034. - hardcode_into_libs=yes
  55035. - ;;
  55036. - esac
  55037. - ;;
  55038. +fi
  55039. +])# _LT_PATH_MAGIC
  55040. -gnu*)
  55041. - version_type=linux
  55042. - need_lib_prefix=no
  55043. - need_version=no
  55044. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  55045. - soname_spec='${libname}${release}${shared_ext}$major'
  55046. - shlibpath_var=LD_LIBRARY_PATH
  55047. - hardcode_into_libs=yes
  55048. - ;;
  55049. -hpux9* | hpux10* | hpux11*)
  55050. - # Give a soname corresponding to the major version so that dld.sl refuses to
  55051. - # link against other versions.
  55052. - version_type=sunos
  55053. - need_lib_prefix=no
  55054. - need_version=no
  55055. - case $host_cpu in
  55056. - ia64*)
  55057. - shrext_cmds='.so'
  55058. - hardcode_into_libs=yes
  55059. - dynamic_linker="$host_os dld.so"
  55060. - shlibpath_var=LD_LIBRARY_PATH
  55061. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  55062. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55063. - soname_spec='${libname}${release}${shared_ext}$major'
  55064. - if test "X$HPUX_IA64_MODE" = X32; then
  55065. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  55066. - else
  55067. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  55068. - fi
  55069. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  55070. - ;;
  55071. - hppa*64*)
  55072. - shrext_cmds='.sl'
  55073. - hardcode_into_libs=yes
  55074. - dynamic_linker="$host_os dld.sl"
  55075. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  55076. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  55077. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55078. - soname_spec='${libname}${release}${shared_ext}$major'
  55079. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  55080. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  55081. - ;;
  55082. - *)
  55083. - shrext_cmds='.sl'
  55084. - dynamic_linker="$host_os dld.sl"
  55085. - shlibpath_var=SHLIB_PATH
  55086. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  55087. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55088. - soname_spec='${libname}${release}${shared_ext}$major'
  55089. - ;;
  55090. - esac
  55091. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  55092. - postinstall_cmds='chmod 555 $lib'
  55093. - ;;
  55094. +# LT_PATH_LD
  55095. +# ----------
  55096. +# find the pathname to the GNU or non-GNU linker
  55097. +AC_DEFUN([LT_PATH_LD],
  55098. +[AC_REQUIRE([AC_PROG_CC])dnl
  55099. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  55100. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  55101. +m4_require([_LT_DECL_SED])dnl
  55102. +m4_require([_LT_DECL_EGREP])dnl
  55103. -interix[[3-9]]*)
  55104. - version_type=linux
  55105. - need_lib_prefix=no
  55106. - need_version=no
  55107. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  55108. - soname_spec='${libname}${release}${shared_ext}$major'
  55109. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  55110. - shlibpath_var=LD_LIBRARY_PATH
  55111. - shlibpath_overrides_runpath=no
  55112. - hardcode_into_libs=yes
  55113. - ;;
  55114. +AC_ARG_WITH([gnu-ld],
  55115. + [AS_HELP_STRING([--with-gnu-ld],
  55116. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  55117. + [test "$withval" = no || with_gnu_ld=yes],
  55118. + [with_gnu_ld=no])dnl
  55119. -irix5* | irix6* | nonstopux*)
  55120. - case $host_os in
  55121. - nonstopux*) version_type=nonstopux ;;
  55122. - *)
  55123. - if test "$lt_cv_prog_gnu_ld" = yes; then
  55124. - version_type=linux
  55125. - else
  55126. - version_type=irix
  55127. - fi ;;
  55128. +ac_prog=ld
  55129. +if test "$GCC" = yes; then
  55130. + # Check if gcc -print-prog-name=ld gives a path.
  55131. + AC_MSG_CHECKING([for ld used by $CC])
  55132. + case $host in
  55133. + *-*-mingw*)
  55134. + # gcc leaves a trailing carriage return which upsets mingw
  55135. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  55136. + *)
  55137. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  55138. esac
  55139. - need_lib_prefix=no
  55140. - need_version=no
  55141. - soname_spec='${libname}${release}${shared_ext}$major'
  55142. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  55143. - case $host_os in
  55144. - irix5* | nonstopux*)
  55145. - libsuff= shlibsuff=
  55146. + case $ac_prog in
  55147. + # Accept absolute paths.
  55148. + [[\\/]]* | ?:[[\\/]]*)
  55149. + re_direlt='/[[^/]][[^/]]*/\.\./'
  55150. + # Canonicalize the pathname of ld
  55151. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  55152. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  55153. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  55154. + done
  55155. + test -z "$LD" && LD="$ac_prog"
  55156. + ;;
  55157. + "")
  55158. + # If it fails, then pretend we aren't using GCC.
  55159. + ac_prog=ld
  55160. ;;
  55161. *)
  55162. - case $LD in # libtool.m4 will add one of these switches to LD
  55163. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  55164. - libsuff= shlibsuff= libmagic=32-bit;;
  55165. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  55166. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  55167. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  55168. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  55169. - *) libsuff= shlibsuff= libmagic=never-match;;
  55170. - esac
  55171. + # If it is relative, then search for the first ld in PATH.
  55172. + with_gnu_ld=unknown
  55173. ;;
  55174. esac
  55175. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  55176. - shlibpath_overrides_runpath=no
  55177. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  55178. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  55179. - hardcode_into_libs=yes
  55180. - ;;
  55181. -
  55182. -# No shared lib support for Linux oldld, aout, or coff.
  55183. -linux*oldld* | linux*aout* | linux*coff*)
  55184. - dynamic_linker=no
  55185. - ;;
  55186. -
  55187. -# This must be Linux ELF.
  55188. -linux* | k*bsd*-gnu)
  55189. - version_type=linux
  55190. - need_lib_prefix=no
  55191. - need_version=no
  55192. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55193. - soname_spec='${libname}${release}${shared_ext}$major'
  55194. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  55195. - shlibpath_var=LD_LIBRARY_PATH
  55196. - shlibpath_overrides_runpath=no
  55197. - # Some binutils ld are patched to set DT_RUNPATH
  55198. - save_LDFLAGS=$LDFLAGS
  55199. - save_libdir=$libdir
  55200. - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  55201. - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  55202. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  55203. - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  55204. - [shlibpath_overrides_runpath=yes])])
  55205. - LDFLAGS=$save_LDFLAGS
  55206. - libdir=$save_libdir
  55207. +elif test "$with_gnu_ld" = yes; then
  55208. + AC_MSG_CHECKING([for GNU ld])
  55209. +else
  55210. + AC_MSG_CHECKING([for non-GNU ld])
  55211. +fi
  55212. +AC_CACHE_VAL(lt_cv_path_LD,
  55213. +[if test -z "$LD"; then
  55214. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  55215. + for ac_dir in $PATH; do
  55216. + IFS="$lt_save_ifs"
  55217. + test -z "$ac_dir" && ac_dir=.
  55218. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  55219. + lt_cv_path_LD="$ac_dir/$ac_prog"
  55220. + # Check to see if the program is GNU ld. I'd rather use --version,
  55221. + # but apparently some variants of GNU ld only accept -v.
  55222. + # Break only if it was the GNU/non-GNU ld that we prefer.
  55223. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  55224. + *GNU* | *'with BFD'*)
  55225. + test "$with_gnu_ld" != no && break
  55226. + ;;
  55227. + *)
  55228. + test "$with_gnu_ld" != yes && break
  55229. + ;;
  55230. + esac
  55231. + fi
  55232. + done
  55233. + IFS="$lt_save_ifs"
  55234. +else
  55235. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  55236. +fi])
  55237. +LD="$lt_cv_path_LD"
  55238. +if test -n "$LD"; then
  55239. + AC_MSG_RESULT($LD)
  55240. +else
  55241. + AC_MSG_RESULT(no)
  55242. +fi
  55243. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  55244. +_LT_PATH_LD_GNU
  55245. +AC_SUBST([LD])
  55246. - # This implies no fast_install, which is unacceptable.
  55247. - # Some rework will be needed to allow for fast_install
  55248. - # before this can be enabled.
  55249. - hardcode_into_libs=yes
  55250. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  55251. +])# LT_PATH_LD
  55252. - # Append ld.so.conf contents to the search path
  55253. - if test -f /etc/ld.so.conf; then
  55254. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  55255. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  55256. - fi
  55257. +# Old names:
  55258. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  55259. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  55260. +dnl aclocal-1.4 backwards compatibility:
  55261. +dnl AC_DEFUN([AM_PROG_LD], [])
  55262. +dnl AC_DEFUN([AC_PROG_LD], [])
  55263. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  55264. - # powerpc, because MkLinux only supported shared libraries with the
  55265. - # GNU dynamic linker. Since this was broken with cross compilers,
  55266. - # most powerpc-linux boxes support dynamic linking these days and
  55267. - # people can always --disable-shared, the test was removed, and we
  55268. - # assume the GNU/Linux dynamic linker is in use.
  55269. - dynamic_linker='GNU/Linux ld.so'
  55270. - ;;
  55271. -netbsd*)
  55272. - version_type=sunos
  55273. - need_lib_prefix=no
  55274. - need_version=no
  55275. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  55276. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55277. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  55278. - dynamic_linker='NetBSD (a.out) ld.so'
  55279. - else
  55280. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  55281. - soname_spec='${libname}${release}${shared_ext}$major'
  55282. - dynamic_linker='NetBSD ld.elf_so'
  55283. - fi
  55284. - shlibpath_var=LD_LIBRARY_PATH
  55285. - shlibpath_overrides_runpath=yes
  55286. - hardcode_into_libs=yes
  55287. +# _LT_PATH_LD_GNU
  55288. +#- --------------
  55289. +m4_defun([_LT_PATH_LD_GNU],
  55290. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  55291. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  55292. +case `$LD -v 2>&1 </dev/null` in
  55293. +*GNU* | *'with BFD'*)
  55294. + lt_cv_prog_gnu_ld=yes
  55295. ;;
  55296. -
  55297. -newsos6)
  55298. - version_type=linux
  55299. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55300. - shlibpath_var=LD_LIBRARY_PATH
  55301. - shlibpath_overrides_runpath=yes
  55302. +*)
  55303. + lt_cv_prog_gnu_ld=no
  55304. ;;
  55305. +esac])
  55306. +with_gnu_ld=$lt_cv_prog_gnu_ld
  55307. +])# _LT_PATH_LD_GNU
  55308. -*nto* | *qnx*)
  55309. - version_type=qnx
  55310. - need_lib_prefix=no
  55311. - need_version=no
  55312. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55313. - soname_spec='${libname}${release}${shared_ext}$major'
  55314. - shlibpath_var=LD_LIBRARY_PATH
  55315. - shlibpath_overrides_runpath=no
  55316. - hardcode_into_libs=yes
  55317. - dynamic_linker='ldqnx.so'
  55318. - ;;
  55319. -openbsd*)
  55320. - version_type=sunos
  55321. - sys_lib_dlsearch_path_spec="/usr/lib"
  55322. - need_lib_prefix=no
  55323. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  55324. - case $host_os in
  55325. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  55326. - *) need_version=no ;;
  55327. - esac
  55328. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55329. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  55330. - shlibpath_var=LD_LIBRARY_PATH
  55331. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  55332. - case $host_os in
  55333. - openbsd2.[[89]] | openbsd2.[[89]].*)
  55334. - shlibpath_overrides_runpath=no
  55335. - ;;
  55336. - *)
  55337. - shlibpath_overrides_runpath=yes
  55338. - ;;
  55339. - esac
  55340. - else
  55341. - shlibpath_overrides_runpath=yes
  55342. - fi
  55343. - ;;
  55344. +# _LT_CMD_RELOAD
  55345. +# --------------
  55346. +# find reload flag for linker
  55347. +# -- PORTME Some linkers may need a different reload flag.
  55348. +m4_defun([_LT_CMD_RELOAD],
  55349. +[AC_CACHE_CHECK([for $LD option to reload object files],
  55350. + lt_cv_ld_reload_flag,
  55351. + [lt_cv_ld_reload_flag='-r'])
  55352. +reload_flag=$lt_cv_ld_reload_flag
  55353. +case $reload_flag in
  55354. +"" | " "*) ;;
  55355. +*) reload_flag=" $reload_flag" ;;
  55356. +esac
  55357. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55358. +case $host_os in
  55359. + darwin*)
  55360. + if test "$GCC" = yes; then
  55361. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  55362. + else
  55363. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55364. + fi
  55365. + ;;
  55366. +esac
  55367. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  55368. +_LT_DECL([], [reload_cmds], [2])dnl
  55369. +])# _LT_CMD_RELOAD
  55370. -os2*)
  55371. - libname_spec='$name'
  55372. - shrext_cmds=".dll"
  55373. - need_lib_prefix=no
  55374. - library_names_spec='$libname${shared_ext} $libname.a'
  55375. - dynamic_linker='OS/2 ld.exe'
  55376. - shlibpath_var=LIBPATH
  55377. +
  55378. +# _LT_CHECK_MAGIC_METHOD
  55379. +# ----------------------
  55380. +# how to check for library dependencies
  55381. +# -- PORTME fill in with the dynamic library characteristics
  55382. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  55383. +[m4_require([_LT_DECL_EGREP])
  55384. +m4_require([_LT_DECL_OBJDUMP])
  55385. +AC_CACHE_CHECK([how to recognize dependent libraries],
  55386. +lt_cv_deplibs_check_method,
  55387. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  55388. +lt_cv_file_magic_test_file=
  55389. +lt_cv_deplibs_check_method='unknown'
  55390. +# Need to set the preceding variable on all platforms that support
  55391. +# interlibrary dependencies.
  55392. +# 'none' -- dependencies not supported.
  55393. +# `unknown' -- same as none, but documents that we really don't know.
  55394. +# 'pass_all' -- all dependencies passed with no checks.
  55395. +# 'test_compile' -- check by making test program.
  55396. +# 'file_magic [[regex]]' -- check by looking for files in library path
  55397. +# which responds to the $file_magic_cmd with a given extended regex.
  55398. +# If you have `file' or equivalent on your system and you're not sure
  55399. +# whether `pass_all' will *always* work, you probably want this one.
  55400. +
  55401. +case $host_os in
  55402. +aix[[4-9]]*)
  55403. + lt_cv_deplibs_check_method=pass_all
  55404. ;;
  55405. -osf3* | osf4* | osf5*)
  55406. - version_type=osf
  55407. - need_lib_prefix=no
  55408. - need_version=no
  55409. - soname_spec='${libname}${release}${shared_ext}$major'
  55410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55411. - shlibpath_var=LD_LIBRARY_PATH
  55412. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  55413. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  55414. +beos*)
  55415. + lt_cv_deplibs_check_method=pass_all
  55416. ;;
  55417. -rdos*)
  55418. - dynamic_linker=no
  55419. +bsdi[[45]]*)
  55420. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  55421. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  55422. + lt_cv_file_magic_test_file=/shlib/libc.so
  55423. ;;
  55424. -solaris*)
  55425. - version_type=linux
  55426. - need_lib_prefix=no
  55427. - need_version=no
  55428. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55429. - soname_spec='${libname}${release}${shared_ext}$major'
  55430. - shlibpath_var=LD_LIBRARY_PATH
  55431. - shlibpath_overrides_runpath=yes
  55432. - hardcode_into_libs=yes
  55433. - # ldd complains unless libraries are executable
  55434. - postinstall_cmds='chmod +x $lib'
  55435. +cygwin*)
  55436. + # func_win32_libid is a shell function defined in ltmain.sh
  55437. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  55438. + lt_cv_file_magic_cmd='func_win32_libid'
  55439. ;;
  55440. -sunos4*)
  55441. - version_type=sunos
  55442. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55443. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  55444. - shlibpath_var=LD_LIBRARY_PATH
  55445. - shlibpath_overrides_runpath=yes
  55446. - if test "$with_gnu_ld" = yes; then
  55447. - need_lib_prefix=no
  55448. +mingw* | pw32*)
  55449. + # Base MSYS/MinGW do not provide the 'file' command needed by
  55450. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  55451. + # unless we find 'file', for example because we are cross-compiling.
  55452. + if ( file / ) >/dev/null 2>&1; then
  55453. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  55454. + lt_cv_file_magic_cmd='func_win32_libid'
  55455. + else
  55456. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  55457. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  55458. fi
  55459. - need_version=yes
  55460. ;;
  55461. -sysv4 | sysv4.3*)
  55462. - version_type=linux
  55463. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55464. - soname_spec='${libname}${release}${shared_ext}$major'
  55465. - shlibpath_var=LD_LIBRARY_PATH
  55466. - case $host_vendor in
  55467. - sni)
  55468. - shlibpath_overrides_runpath=no
  55469. - need_lib_prefix=no
  55470. - runpath_var=LD_RUN_PATH
  55471. - ;;
  55472. - siemens)
  55473. - need_lib_prefix=no
  55474. - ;;
  55475. - motorola)
  55476. - need_lib_prefix=no
  55477. - need_version=no
  55478. - shlibpath_overrides_runpath=no
  55479. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  55480. - ;;
  55481. - esac
  55482. +cegcc)
  55483. + # use the weaker test based on 'objdump'. See mingw*.
  55484. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  55485. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  55486. ;;
  55487. -sysv4*MP*)
  55488. - if test -d /usr/nec ;then
  55489. - version_type=linux
  55490. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  55491. - soname_spec='$libname${shared_ext}.$major'
  55492. - shlibpath_var=LD_LIBRARY_PATH
  55493. - fi
  55494. +darwin* | rhapsody*)
  55495. + lt_cv_deplibs_check_method=pass_all
  55496. ;;
  55497. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  55498. - version_type=freebsd-elf
  55499. - need_lib_prefix=no
  55500. - need_version=no
  55501. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  55502. - soname_spec='${libname}${release}${shared_ext}$major'
  55503. - shlibpath_var=LD_LIBRARY_PATH
  55504. - shlibpath_overrides_runpath=yes
  55505. - hardcode_into_libs=yes
  55506. - if test "$with_gnu_ld" = yes; then
  55507. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  55508. - else
  55509. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  55510. - case $host_os in
  55511. - sco3.2v5*)
  55512. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  55513. - ;;
  55514. +freebsd* | dragonfly*)
  55515. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  55516. + case $host_cpu in
  55517. + i*86 )
  55518. + # Not sure whether the presence of OpenBSD here was a mistake.
  55519. + # Let's accept both of them until this is cleared up.
  55520. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  55521. + lt_cv_file_magic_cmd=/usr/bin/file
  55522. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  55523. + ;;
  55524. esac
  55525. + else
  55526. + lt_cv_deplibs_check_method=pass_all
  55527. fi
  55528. - sys_lib_dlsearch_path_spec='/usr/lib'
  55529. ;;
  55530. -tpf*)
  55531. - # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  55532. - version_type=linux
  55533. - need_lib_prefix=no
  55534. - need_version=no
  55535. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55536. - shlibpath_var=LD_LIBRARY_PATH
  55537. - shlibpath_overrides_runpath=no
  55538. - hardcode_into_libs=yes
  55539. +gnu*)
  55540. + lt_cv_deplibs_check_method=pass_all
  55541. ;;
  55542. -uts4*)
  55543. - version_type=linux
  55544. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55545. - soname_spec='${libname}${release}${shared_ext}$major'
  55546. - shlibpath_var=LD_LIBRARY_PATH
  55547. +hpux10.20* | hpux11*)
  55548. + lt_cv_file_magic_cmd=/usr/bin/file
  55549. + case $host_cpu in
  55550. + ia64*)
  55551. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  55552. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  55553. + ;;
  55554. + hppa*64*)
  55555. + [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]']
  55556. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  55557. + ;;
  55558. + *)
  55559. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  55560. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  55561. + ;;
  55562. + esac
  55563. ;;
  55564. -*)
  55565. - dynamic_linker=no
  55566. +interix[[3-9]]*)
  55567. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  55568. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  55569. ;;
  55570. -esac
  55571. -AC_MSG_RESULT([$dynamic_linker])
  55572. -test "$dynamic_linker" = no && can_build_shared=no
  55573. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  55574. -if test "$GCC" = yes; then
  55575. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  55576. -fi
  55577. +irix5* | irix6* | nonstopux*)
  55578. + case $LD in
  55579. + *-32|*"-32 ") libmagic=32-bit;;
  55580. + *-n32|*"-n32 ") libmagic=N32;;
  55581. + *-64|*"-64 ") libmagic=64-bit;;
  55582. + *) libmagic=never-match;;
  55583. + esac
  55584. + lt_cv_deplibs_check_method=pass_all
  55585. + ;;
  55586. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  55587. - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  55588. -fi
  55589. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  55590. - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  55591. -fi
  55592. +# This must be Linux ELF.
  55593. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  55594. + lt_cv_deplibs_check_method=pass_all
  55595. + ;;
  55596. -_LT_DECL([], [variables_saved_for_relink], [1],
  55597. - [Variables whose values should be saved in libtool wrapper scripts and
  55598. - restored at link time])
  55599. -_LT_DECL([], [need_lib_prefix], [0],
  55600. - [Do we need the "lib" prefix for modules?])
  55601. -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  55602. -_LT_DECL([], [version_type], [0], [Library versioning type])
  55603. -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  55604. -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  55605. -_LT_DECL([], [shlibpath_overrides_runpath], [0],
  55606. - [Is shlibpath searched before the hard-coded library search path?])
  55607. -_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  55608. -_LT_DECL([], [library_names_spec], [1],
  55609. - [[List of archive names. First name is the real one, the rest are links.
  55610. - The last name is the one that the linker finds with -lNAME]])
  55611. -_LT_DECL([], [soname_spec], [1],
  55612. - [[The coded name of the library, if different from the real name]])
  55613. -_LT_DECL([], [postinstall_cmds], [2],
  55614. - [Command to use after installation of a shared archive])
  55615. -_LT_DECL([], [postuninstall_cmds], [2],
  55616. - [Command to use after uninstallation of a shared archive])
  55617. -_LT_DECL([], [finish_cmds], [2],
  55618. - [Commands used to finish a libtool library installation in a directory])
  55619. -_LT_DECL([], [finish_eval], [1],
  55620. - [[As "finish_cmds", except a single script fragment to be evaled but
  55621. - not shown]])
  55622. -_LT_DECL([], [hardcode_into_libs], [0],
  55623. - [Whether we should hardcode library paths into libraries])
  55624. -_LT_DECL([], [sys_lib_search_path_spec], [2],
  55625. - [Compile-time system search path for libraries])
  55626. -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  55627. - [Run-time system search path for libraries])
  55628. -])# _LT_SYS_DYNAMIC_LINKER
  55629. -
  55630. -
  55631. -# _LT_PATH_TOOL_PREFIX(TOOL)
  55632. -# --------------------------
  55633. -# find a file program which can recognize shared library
  55634. -AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  55635. -[m4_require([_LT_DECL_EGREP])dnl
  55636. -AC_MSG_CHECKING([for $1])
  55637. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  55638. -[case $MAGIC_CMD in
  55639. -[[\\/*] | ?:[\\/]*])
  55640. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  55641. +netbsd* | netbsdelf*-gnu)
  55642. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  55643. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  55644. + else
  55645. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  55646. + fi
  55647. ;;
  55648. -*)
  55649. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  55650. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  55651. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  55652. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  55653. -dnl not every word. This closes a longstanding sh security hole.
  55654. - ac_dummy="m4_if([$2], , $PATH, [$2])"
  55655. - for ac_dir in $ac_dummy; do
  55656. - IFS="$lt_save_ifs"
  55657. - test -z "$ac_dir" && ac_dir=.
  55658. - if test -f $ac_dir/$1; then
  55659. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  55660. - if test -n "$file_magic_test_file"; then
  55661. - case $deplibs_check_method in
  55662. - "file_magic "*)
  55663. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  55664. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  55665. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  55666. - $EGREP "$file_magic_regex" > /dev/null; then
  55667. - :
  55668. - else
  55669. - cat <<_LT_EOF 1>&2
  55670. -
  55671. -*** Warning: the command libtool uses to detect shared libraries,
  55672. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  55673. -*** The result is that libtool may fail to recognize shared libraries
  55674. -*** as such. This will affect the creation of libtool libraries that
  55675. -*** depend on shared libraries, but programs linked with such libtool
  55676. -*** libraries will work regardless of this problem. Nevertheless, you
  55677. -*** may want to report the problem to your system manager and/or to
  55678. -*** bug-libtool@gnu.org
  55679. -_LT_EOF
  55680. - fi ;;
  55681. - esac
  55682. - fi
  55683. - break
  55684. - fi
  55685. - done
  55686. - IFS="$lt_save_ifs"
  55687. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  55688. +newos6*)
  55689. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  55690. + lt_cv_file_magic_cmd=/usr/bin/file
  55691. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  55692. ;;
  55693. -esac])
  55694. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  55695. -if test -n "$MAGIC_CMD"; then
  55696. - AC_MSG_RESULT($MAGIC_CMD)
  55697. -else
  55698. - AC_MSG_RESULT(no)
  55699. -fi
  55700. -_LT_DECL([], [MAGIC_CMD], [0],
  55701. - [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  55702. -])# _LT_PATH_TOOL_PREFIX
  55703. -
  55704. -# Old name:
  55705. -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  55706. -dnl aclocal-1.4 backwards compatibility:
  55707. -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  55708. +*nto* | *qnx*)
  55709. + lt_cv_deplibs_check_method=pass_all
  55710. + ;;
  55711. -# _LT_PATH_MAGIC
  55712. -# --------------
  55713. -# find a file program which can recognize a shared library
  55714. -m4_defun([_LT_PATH_MAGIC],
  55715. -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  55716. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  55717. - if test -n "$ac_tool_prefix"; then
  55718. - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  55719. +openbsd*)
  55720. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  55721. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  55722. else
  55723. - MAGIC_CMD=:
  55724. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  55725. fi
  55726. -fi
  55727. -])# _LT_PATH_MAGIC
  55728. + ;;
  55729. +osf3* | osf4* | osf5*)
  55730. + lt_cv_deplibs_check_method=pass_all
  55731. + ;;
  55732. -# LT_PATH_LD
  55733. -# ----------
  55734. -# find the pathname to the GNU or non-GNU linker
  55735. -AC_DEFUN([LT_PATH_LD],
  55736. -[AC_REQUIRE([AC_PROG_CC])dnl
  55737. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  55738. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  55739. -m4_require([_LT_DECL_SED])dnl
  55740. -m4_require([_LT_DECL_EGREP])dnl
  55741. +rdos*)
  55742. + lt_cv_deplibs_check_method=pass_all
  55743. + ;;
  55744. -AC_ARG_WITH([gnu-ld],
  55745. - [AS_HELP_STRING([--with-gnu-ld],
  55746. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  55747. - [test "$withval" = no || with_gnu_ld=yes],
  55748. - [with_gnu_ld=no])dnl
  55749. +solaris*)
  55750. + lt_cv_deplibs_check_method=pass_all
  55751. + ;;
  55752. -ac_prog=ld
  55753. -if test "$GCC" = yes; then
  55754. - # Check if gcc -print-prog-name=ld gives a path.
  55755. - AC_MSG_CHECKING([for ld used by $CC])
  55756. - case $host in
  55757. - *-*-mingw*)
  55758. - # gcc leaves a trailing carriage return which upsets mingw
  55759. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  55760. - *)
  55761. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  55762. - esac
  55763. - case $ac_prog in
  55764. - # Accept absolute paths.
  55765. - [[\\/]]* | ?:[[\\/]]*)
  55766. - re_direlt='/[[^/]][[^/]]*/\.\./'
  55767. - # Canonicalize the pathname of ld
  55768. - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  55769. - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  55770. - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  55771. - done
  55772. - test -z "$LD" && LD="$ac_prog"
  55773. - ;;
  55774. - "")
  55775. - # If it fails, then pretend we aren't using GCC.
  55776. - ac_prog=ld
  55777. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  55778. + lt_cv_deplibs_check_method=pass_all
  55779. + ;;
  55780. +
  55781. +sysv4 | sysv4.3*)
  55782. + case $host_vendor in
  55783. + motorola)
  55784. + 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]]'
  55785. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  55786. ;;
  55787. - *)
  55788. - # If it is relative, then search for the first ld in PATH.
  55789. - with_gnu_ld=unknown
  55790. + ncr)
  55791. + lt_cv_deplibs_check_method=pass_all
  55792. + ;;
  55793. + sequent)
  55794. + lt_cv_file_magic_cmd='/bin/file'
  55795. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  55796. + ;;
  55797. + sni)
  55798. + lt_cv_file_magic_cmd='/bin/file'
  55799. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  55800. + lt_cv_file_magic_test_file=/lib/libc.so
  55801. + ;;
  55802. + siemens)
  55803. + lt_cv_deplibs_check_method=pass_all
  55804. + ;;
  55805. + pc)
  55806. + lt_cv_deplibs_check_method=pass_all
  55807. ;;
  55808. esac
  55809. -elif test "$with_gnu_ld" = yes; then
  55810. - AC_MSG_CHECKING([for GNU ld])
  55811. -else
  55812. - AC_MSG_CHECKING([for non-GNU ld])
  55813. -fi
  55814. -AC_CACHE_VAL(lt_cv_path_LD,
  55815. -[if test -z "$LD"; then
  55816. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  55817. - for ac_dir in $PATH; do
  55818. - IFS="$lt_save_ifs"
  55819. - test -z "$ac_dir" && ac_dir=.
  55820. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  55821. - lt_cv_path_LD="$ac_dir/$ac_prog"
  55822. - # Check to see if the program is GNU ld. I'd rather use --version,
  55823. - # but apparently some variants of GNU ld only accept -v.
  55824. - # Break only if it was the GNU/non-GNU ld that we prefer.
  55825. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  55826. - *GNU* | *'with BFD'*)
  55827. - test "$with_gnu_ld" != no && break
  55828. - ;;
  55829. - *)
  55830. - test "$with_gnu_ld" != yes && break
  55831. - ;;
  55832. - esac
  55833. - fi
  55834. - done
  55835. - IFS="$lt_save_ifs"
  55836. -else
  55837. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  55838. -fi])
  55839. -LD="$lt_cv_path_LD"
  55840. -if test -n "$LD"; then
  55841. - AC_MSG_RESULT($LD)
  55842. -else
  55843. - AC_MSG_RESULT(no)
  55844. -fi
  55845. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  55846. -_LT_PATH_LD_GNU
  55847. -AC_SUBST([LD])
  55848. + ;;
  55849. -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  55850. -])# LT_PATH_LD
  55851. -
  55852. -# Old names:
  55853. -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  55854. -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  55855. -dnl aclocal-1.4 backwards compatibility:
  55856. -dnl AC_DEFUN([AM_PROG_LD], [])
  55857. -dnl AC_DEFUN([AC_PROG_LD], [])
  55858. -
  55859. -
  55860. -# _LT_PATH_LD_GNU
  55861. -#- --------------
  55862. -m4_defun([_LT_PATH_LD_GNU],
  55863. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  55864. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  55865. -case `$LD -v 2>&1 </dev/null` in
  55866. -*GNU* | *'with BFD'*)
  55867. - lt_cv_prog_gnu_ld=yes
  55868. - ;;
  55869. -*)
  55870. - lt_cv_prog_gnu_ld=no
  55871. - ;;
  55872. -esac])
  55873. -with_gnu_ld=$lt_cv_prog_gnu_ld
  55874. -])# _LT_PATH_LD_GNU
  55875. -
  55876. -
  55877. -# _LT_CMD_RELOAD
  55878. -# --------------
  55879. -# find reload flag for linker
  55880. -# -- PORTME Some linkers may need a different reload flag.
  55881. -m4_defun([_LT_CMD_RELOAD],
  55882. -[AC_CACHE_CHECK([for $LD option to reload object files],
  55883. - lt_cv_ld_reload_flag,
  55884. - [lt_cv_ld_reload_flag='-r'])
  55885. -reload_flag=$lt_cv_ld_reload_flag
  55886. -case $reload_flag in
  55887. -"" | " "*) ;;
  55888. -*) reload_flag=" $reload_flag" ;;
  55889. -esac
  55890. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55891. -case $host_os in
  55892. - darwin*)
  55893. - if test "$GCC" = yes; then
  55894. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  55895. - else
  55896. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55897. - fi
  55898. - ;;
  55899. -esac
  55900. -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  55901. -_LT_DECL([], [reload_cmds], [2])dnl
  55902. -])# _LT_CMD_RELOAD
  55903. -
  55904. -
  55905. -# _LT_CHECK_MAGIC_METHOD
  55906. -# ----------------------
  55907. -# how to check for library dependencies
  55908. -# -- PORTME fill in with the dynamic library characteristics
  55909. -m4_defun([_LT_CHECK_MAGIC_METHOD],
  55910. -[m4_require([_LT_DECL_EGREP])
  55911. -m4_require([_LT_DECL_OBJDUMP])
  55912. -AC_CACHE_CHECK([how to recognize dependent libraries],
  55913. -lt_cv_deplibs_check_method,
  55914. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  55915. -lt_cv_file_magic_test_file=
  55916. -lt_cv_deplibs_check_method='unknown'
  55917. -# Need to set the preceding variable on all platforms that support
  55918. -# interlibrary dependencies.
  55919. -# 'none' -- dependencies not supported.
  55920. -# `unknown' -- same as none, but documents that we really don't know.
  55921. -# 'pass_all' -- all dependencies passed with no checks.
  55922. -# 'test_compile' -- check by making test program.
  55923. -# 'file_magic [[regex]]' -- check by looking for files in library path
  55924. -# which responds to the $file_magic_cmd with a given extended regex.
  55925. -# If you have `file' or equivalent on your system and you're not sure
  55926. -# whether `pass_all' will *always* work, you probably want this one.
  55927. -
  55928. -case $host_os in
  55929. -aix[[4-9]]*)
  55930. - lt_cv_deplibs_check_method=pass_all
  55931. - ;;
  55932. -
  55933. -beos*)
  55934. - lt_cv_deplibs_check_method=pass_all
  55935. - ;;
  55936. -
  55937. -bsdi[[45]]*)
  55938. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  55939. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  55940. - lt_cv_file_magic_test_file=/shlib/libc.so
  55941. - ;;
  55942. -
  55943. -cygwin*)
  55944. - # func_win32_libid is a shell function defined in ltmain.sh
  55945. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  55946. - lt_cv_file_magic_cmd='func_win32_libid'
  55947. - ;;
  55948. -
  55949. -mingw* | pw32*)
  55950. - # Base MSYS/MinGW do not provide the 'file' command needed by
  55951. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  55952. - # unless we find 'file', for example because we are cross-compiling.
  55953. - if ( file / ) >/dev/null 2>&1; then
  55954. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  55955. - lt_cv_file_magic_cmd='func_win32_libid'
  55956. - else
  55957. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  55958. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  55959. - fi
  55960. - ;;
  55961. -
  55962. -cegcc)
  55963. - # use the weaker test based on 'objdump'. See mingw*.
  55964. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  55965. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  55966. - ;;
  55967. -
  55968. -darwin* | rhapsody*)
  55969. - lt_cv_deplibs_check_method=pass_all
  55970. - ;;
  55971. -
  55972. -freebsd* | dragonfly*)
  55973. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  55974. - case $host_cpu in
  55975. - i*86 )
  55976. - # Not sure whether the presence of OpenBSD here was a mistake.
  55977. - # Let's accept both of them until this is cleared up.
  55978. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  55979. - lt_cv_file_magic_cmd=/usr/bin/file
  55980. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  55981. - ;;
  55982. - esac
  55983. - else
  55984. - lt_cv_deplibs_check_method=pass_all
  55985. - fi
  55986. - ;;
  55987. -
  55988. -gnu*)
  55989. - lt_cv_deplibs_check_method=pass_all
  55990. - ;;
  55991. -
  55992. -hpux10.20* | hpux11*)
  55993. - lt_cv_file_magic_cmd=/usr/bin/file
  55994. - case $host_cpu in
  55995. - ia64*)
  55996. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  55997. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  55998. - ;;
  55999. - hppa*64*)
  56000. - [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]']
  56001. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  56002. - ;;
  56003. - *)
  56004. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  56005. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  56006. - ;;
  56007. - esac
  56008. - ;;
  56009. -
  56010. -interix[[3-9]]*)
  56011. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  56012. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  56013. - ;;
  56014. -
  56015. -irix5* | irix6* | nonstopux*)
  56016. - case $LD in
  56017. - *-32|*"-32 ") libmagic=32-bit;;
  56018. - *-n32|*"-n32 ") libmagic=N32;;
  56019. - *-64|*"-64 ") libmagic=64-bit;;
  56020. - *) libmagic=never-match;;
  56021. - esac
  56022. - lt_cv_deplibs_check_method=pass_all
  56023. - ;;
  56024. -
  56025. -# This must be Linux ELF.
  56026. -linux* | k*bsd*-gnu)
  56027. - lt_cv_deplibs_check_method=pass_all
  56028. - ;;
  56029. -
  56030. -netbsd*)
  56031. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  56032. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  56033. - else
  56034. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  56035. - fi
  56036. - ;;
  56037. -
  56038. -newos6*)
  56039. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  56040. - lt_cv_file_magic_cmd=/usr/bin/file
  56041. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  56042. - ;;
  56043. -
  56044. -*nto* | *qnx*)
  56045. - lt_cv_deplibs_check_method=pass_all
  56046. - ;;
  56047. -
  56048. -openbsd*)
  56049. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  56050. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  56051. - else
  56052. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  56053. - fi
  56054. - ;;
  56055. -
  56056. -osf3* | osf4* | osf5*)
  56057. - lt_cv_deplibs_check_method=pass_all
  56058. - ;;
  56059. -
  56060. -rdos*)
  56061. - lt_cv_deplibs_check_method=pass_all
  56062. - ;;
  56063. -
  56064. -solaris*)
  56065. - lt_cv_deplibs_check_method=pass_all
  56066. - ;;
  56067. -
  56068. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  56069. - lt_cv_deplibs_check_method=pass_all
  56070. - ;;
  56071. -
  56072. -sysv4 | sysv4.3*)
  56073. - case $host_vendor in
  56074. - motorola)
  56075. - 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]]'
  56076. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  56077. - ;;
  56078. - ncr)
  56079. - lt_cv_deplibs_check_method=pass_all
  56080. - ;;
  56081. - sequent)
  56082. - lt_cv_file_magic_cmd='/bin/file'
  56083. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  56084. - ;;
  56085. - sni)
  56086. - lt_cv_file_magic_cmd='/bin/file'
  56087. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  56088. - lt_cv_file_magic_test_file=/lib/libc.so
  56089. - ;;
  56090. - siemens)
  56091. - lt_cv_deplibs_check_method=pass_all
  56092. - ;;
  56093. - pc)
  56094. - lt_cv_deplibs_check_method=pass_all
  56095. - ;;
  56096. - esac
  56097. - ;;
  56098. -
  56099. -tpf*)
  56100. - lt_cv_deplibs_check_method=pass_all
  56101. - ;;
  56102. -esac
  56103. -])
  56104. -file_magic_cmd=$lt_cv_file_magic_cmd
  56105. -deplibs_check_method=$lt_cv_deplibs_check_method
  56106. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  56107. +tpf*)
  56108. + lt_cv_deplibs_check_method=pass_all
  56109. + ;;
  56110. +esac
  56111. +])
  56112. +file_magic_cmd=$lt_cv_file_magic_cmd
  56113. +deplibs_check_method=$lt_cv_deplibs_check_method
  56114. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  56115. _LT_DECL([], [deplibs_check_method], [1],
  56116. [Method to check whether dependent libraries are shared objects])
  56117. @@ -4673,7 +3720,7 @@
  56118. ;;
  56119. esac
  56120. ;;
  56121. - linux* | k*bsd*-gnu)
  56122. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56123. case $cc_basename in
  56124. KCC*)
  56125. # KAI C++ Compiler
  56126. @@ -4737,7 +3784,7 @@
  56127. ;;
  56128. esac
  56129. ;;
  56130. - netbsd*)
  56131. + netbsd* | netbsdelf*-gnu)
  56132. ;;
  56133. *qnx* | *nto*)
  56134. # QNX uses GNU C++, but need to define -shared option too, otherwise
  56135. @@ -4957,7 +4004,7 @@
  56136. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  56137. ;;
  56138. - linux* | k*bsd*-gnu)
  56139. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56140. case $cc_basename in
  56141. # old Intel for x86_64 which still supported -KPIC.
  56142. ecc*)
  56143. @@ -5162,6 +4209,9 @@
  56144. cygwin* | mingw* | cegcc*)
  56145. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  56146. ;;
  56147. + linux* | k*bsd*-gnu)
  56148. + _LT_TAGVAR(link_all_deplibs, $1)=no
  56149. + ;;
  56150. *)
  56151. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  56152. ;;
  56153. @@ -5226,6 +4276,9 @@
  56154. openbsd*)
  56155. with_gnu_ld=no
  56156. ;;
  56157. + linux* | k*bsd*-gnu)
  56158. + _LT_TAGVAR(link_all_deplibs, $1)=no
  56159. + ;;
  56160. esac
  56161. _LT_TAGVAR(ld_shlibs, $1)=yes
  56162. @@ -5247,6 +4300,7 @@
  56163. fi
  56164. supports_anon_versioning=no
  56165. case `$LD -v 2>&1` in
  56166. + *GNU\ gold*) supports_anon_versioning=yes ;;
  56167. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  56168. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  56169. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  56170. @@ -5338,7 +4392,7 @@
  56171. _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  56172. ;;
  56173. - gnu* | linux* | tpf* | k*bsd*-gnu)
  56174. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  56175. tmp_diet=no
  56176. if test "$host_os" = linux-dietlibc; then
  56177. case $cc_basename in
  56178. @@ -5408,7 +4462,7 @@
  56179. fi
  56180. ;;
  56181. - netbsd*)
  56182. + netbsd* | netbsdelf*-gnu)
  56183. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  56184. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  56185. wlarc=
  56186. @@ -5583,6 +4637,7 @@
  56187. if test "$aix_use_runtimelinking" = yes; then
  56188. shared_flag="$shared_flag "'${wl}-G'
  56189. fi
  56190. + _LT_TAGVAR(link_all_deplibs, $1)=no
  56191. else
  56192. # not using gcc
  56193. if test "$host_cpu" = ia64; then
  56194. @@ -5821,7 +4876,7 @@
  56195. _LT_TAGVAR(link_all_deplibs, $1)=yes
  56196. ;;
  56197. - netbsd*)
  56198. + netbsd* | netbsdelf*-gnu)
  56199. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  56200. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  56201. else
  56202. @@ -6817,7 +5872,7 @@
  56203. _LT_TAGVAR(inherit_rpath, $1)=yes
  56204. ;;
  56205. - linux* | k*bsd*-gnu)
  56206. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56207. case $cc_basename in
  56208. KCC*)
  56209. # Kuck and Associates, Inc. (KAI) C++ Compiler
  56210. @@ -6897,389 +5952,906 @@
  56211. ;;
  56212. esac
  56213. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  56214. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  56215. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  56216. - ;;
  56217. - cxx*)
  56218. - # Compaq C++
  56219. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  56220. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  56221. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  56222. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  56223. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  56224. + ;;
  56225. + cxx*)
  56226. + # Compaq C++
  56227. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  56228. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  56229. +
  56230. + runpath_var=LD_RUN_PATH
  56231. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  56232. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56233. +
  56234. + # Commands to make compiler produce verbose output that lists
  56235. + # what "hidden" libraries, object files and flags are used when
  56236. + # linking a shared library.
  56237. + #
  56238. + # There doesn't appear to be a way to prevent this compiler from
  56239. + # explicitly linking system object files so we need to strip them
  56240. + # from the output so that they don't get included in the library
  56241. + # dependencies.
  56242. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  56243. + ;;
  56244. + xl*)
  56245. + # IBM XL 8.0 on PPC, with GNU ld
  56246. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56247. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  56248. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  56249. + if test "x$supports_anon_versioning" = xyes; then
  56250. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  56251. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  56252. + echo "local: *; };" >> $output_objdir/$libname.ver~
  56253. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  56254. + fi
  56255. + ;;
  56256. + *)
  56257. + case `$CC -V 2>&1 | sed 5q` in
  56258. + *Sun\ C*)
  56259. + # Sun C++ 5.9
  56260. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  56261. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  56262. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  56263. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56264. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  56265. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  56266. +
  56267. + # Not sure whether something based on
  56268. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  56269. + # would be better.
  56270. + output_verbose_link_cmd='echo'
  56271. +
  56272. + # Archives containing C++ object files must be created using
  56273. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  56274. + # necessary to make sure instantiated templates are included
  56275. + # in the archive.
  56276. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  56277. + ;;
  56278. + esac
  56279. + ;;
  56280. + esac
  56281. + ;;
  56282. +
  56283. + lynxos*)
  56284. + # FIXME: insert proper C++ library support
  56285. + _LT_TAGVAR(ld_shlibs, $1)=no
  56286. + ;;
  56287. +
  56288. + m88k*)
  56289. + # FIXME: insert proper C++ library support
  56290. + _LT_TAGVAR(ld_shlibs, $1)=no
  56291. + ;;
  56292. +
  56293. + mvs*)
  56294. + case $cc_basename in
  56295. + cxx*)
  56296. + # FIXME: insert proper C++ library support
  56297. + _LT_TAGVAR(ld_shlibs, $1)=no
  56298. + ;;
  56299. + *)
  56300. + # FIXME: insert proper C++ library support
  56301. + _LT_TAGVAR(ld_shlibs, $1)=no
  56302. + ;;
  56303. + esac
  56304. + ;;
  56305. +
  56306. + netbsd*)
  56307. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  56308. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  56309. + wlarc=
  56310. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56311. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56312. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56313. + fi
  56314. + # Workaround some broken pre-1.5 toolchains
  56315. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  56316. + ;;
  56317. +
  56318. + *nto* | *qnx*)
  56319. + _LT_TAGVAR(ld_shlibs, $1)=yes
  56320. + ;;
  56321. +
  56322. + openbsd2*)
  56323. + # C++ shared libraries are fairly broken
  56324. + _LT_TAGVAR(ld_shlibs, $1)=no
  56325. + ;;
  56326. +
  56327. + openbsd*)
  56328. + if test -f /usr/libexec/ld.so; then
  56329. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56330. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56331. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56332. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  56333. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  56334. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  56335. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  56336. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56337. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  56338. + fi
  56339. + output_verbose_link_cmd=echo
  56340. + else
  56341. + _LT_TAGVAR(ld_shlibs, $1)=no
  56342. + fi
  56343. + ;;
  56344. +
  56345. + osf3* | osf4* | osf5*)
  56346. + case $cc_basename in
  56347. + KCC*)
  56348. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  56349. +
  56350. + # KCC will only create a shared library if the output file
  56351. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  56352. + # to its proper name (with version) after linking.
  56353. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  56354. +
  56355. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  56356. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56357. +
  56358. + # Archives containing C++ object files must be created using
  56359. + # the KAI C++ compiler.
  56360. + case $host in
  56361. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  56362. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  56363. + esac
  56364. + ;;
  56365. + RCC*)
  56366. + # Rational C++ 2.4.1
  56367. + # FIXME: insert proper C++ library support
  56368. + _LT_TAGVAR(ld_shlibs, $1)=no
  56369. + ;;
  56370. + cxx*)
  56371. + case $host in
  56372. + osf3*)
  56373. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  56374. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  56375. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56376. + ;;
  56377. + *)
  56378. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  56379. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  56380. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  56381. + echo "-hidden">> $lib.exp~
  56382. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  56383. + $RM $lib.exp'
  56384. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  56385. + ;;
  56386. + esac
  56387. +
  56388. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56389. +
  56390. + # Commands to make compiler produce verbose output that lists
  56391. + # what "hidden" libraries, object files and flags are used when
  56392. + # linking a shared library.
  56393. + #
  56394. + # There doesn't appear to be a way to prevent this compiler from
  56395. + # explicitly linking system object files so we need to strip them
  56396. + # from the output so that they don't get included in the library
  56397. + # dependencies.
  56398. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  56399. + ;;
  56400. + *)
  56401. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  56402. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  56403. + case $host in
  56404. + osf3*)
  56405. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  56406. + ;;
  56407. + *)
  56408. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  56409. + ;;
  56410. + esac
  56411. +
  56412. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56413. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56414. +
  56415. + # Commands to make compiler produce verbose output that lists
  56416. + # what "hidden" libraries, object files and flags are used when
  56417. + # linking a shared library.
  56418. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  56419. +
  56420. + else
  56421. + # FIXME: insert proper C++ library support
  56422. + _LT_TAGVAR(ld_shlibs, $1)=no
  56423. + fi
  56424. + ;;
  56425. + esac
  56426. + ;;
  56427. +
  56428. + psos*)
  56429. + # FIXME: insert proper C++ library support
  56430. + _LT_TAGVAR(ld_shlibs, $1)=no
  56431. + ;;
  56432. +
  56433. + sunos4*)
  56434. + case $cc_basename in
  56435. + CC*)
  56436. + # Sun C++ 4.x
  56437. + # FIXME: insert proper C++ library support
  56438. + _LT_TAGVAR(ld_shlibs, $1)=no
  56439. + ;;
  56440. + lcc*)
  56441. + # Lucid
  56442. + # FIXME: insert proper C++ library support
  56443. + _LT_TAGVAR(ld_shlibs, $1)=no
  56444. + ;;
  56445. + *)
  56446. + # FIXME: insert proper C++ library support
  56447. + _LT_TAGVAR(ld_shlibs, $1)=no
  56448. + ;;
  56449. + esac
  56450. + ;;
  56451. +
  56452. + solaris*)
  56453. + case $cc_basename in
  56454. + CC*)
  56455. + # Sun C++ 4.2, 5.x and Centerline C++
  56456. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  56457. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  56458. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  56459. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56460. + $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'
  56461. +
  56462. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56463. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56464. + case $host_os in
  56465. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  56466. + *)
  56467. + # The compiler driver will combine and reorder linker options,
  56468. + # but understands `-z linker_flag'.
  56469. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  56470. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  56471. + ;;
  56472. + esac
  56473. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56474. +
  56475. + output_verbose_link_cmd='echo'
  56476. +
  56477. + # Archives containing C++ object files must be created using
  56478. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  56479. + # necessary to make sure instantiated templates are included
  56480. + # in the archive.
  56481. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  56482. + ;;
  56483. + gcx*)
  56484. + # Green Hills C++ Compiler
  56485. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  56486. +
  56487. + # The C++ compiler must be used to create the archive.
  56488. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  56489. + ;;
  56490. + *)
  56491. + # GNU C++ compiler with Solaris linker
  56492. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  56493. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  56494. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  56495. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  56496. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56497. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  56498. +
  56499. + # Commands to make compiler produce verbose output that lists
  56500. + # what "hidden" libraries, object files and flags are used when
  56501. + # linking a shared library.
  56502. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  56503. + else
  56504. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  56505. + # platform.
  56506. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  56507. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56508. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  56509. +
  56510. + # Commands to make compiler produce verbose output that lists
  56511. + # what "hidden" libraries, object files and flags are used when
  56512. + # linking a shared library.
  56513. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  56514. + fi
  56515. +
  56516. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  56517. + case $host_os in
  56518. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  56519. + *)
  56520. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  56521. + ;;
  56522. + esac
  56523. + fi
  56524. + ;;
  56525. + esac
  56526. + ;;
  56527. +
  56528. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  56529. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  56530. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56531. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56532. + runpath_var='LD_RUN_PATH'
  56533. +
  56534. + case $cc_basename in
  56535. + CC*)
  56536. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56537. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56538. + ;;
  56539. + *)
  56540. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56541. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56542. + ;;
  56543. + esac
  56544. + ;;
  56545. +
  56546. + sysv5* | sco3.2v5* | sco5v6*)
  56547. + # Note: We can NOT use -z defs as we might desire, because we do not
  56548. + # link with -lc, and that would cause any symbols used from libc to
  56549. + # always be unresolved, which means just about no library would
  56550. + # ever link correctly. If we're not using GNU ld we use -z text
  56551. + # though, which does catch some bad symbols but isn't as heavy-handed
  56552. + # as -z defs.
  56553. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  56554. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  56555. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56556. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56557. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  56558. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  56559. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56560. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  56561. + runpath_var='LD_RUN_PATH'
  56562. +
  56563. + case $cc_basename in
  56564. + CC*)
  56565. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56566. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56567. + ;;
  56568. + *)
  56569. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56570. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56571. + ;;
  56572. + esac
  56573. + ;;
  56574. +
  56575. + tandem*)
  56576. + case $cc_basename in
  56577. + NCC*)
  56578. + # NonStop-UX NCC 3.20
  56579. + # FIXME: insert proper C++ library support
  56580. + _LT_TAGVAR(ld_shlibs, $1)=no
  56581. + ;;
  56582. + *)
  56583. + # FIXME: insert proper C++ library support
  56584. + _LT_TAGVAR(ld_shlibs, $1)=no
  56585. + ;;
  56586. + esac
  56587. + ;;
  56588. +
  56589. + vxworks*)
  56590. + # FIXME: insert proper C++ library support
  56591. + _LT_TAGVAR(ld_shlibs, $1)=no
  56592. + ;;
  56593. +
  56594. + *)
  56595. + # FIXME: insert proper C++ library support
  56596. + _LT_TAGVAR(ld_shlibs, $1)=no
  56597. + ;;
  56598. + esac
  56599. +
  56600. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  56601. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  56602. +
  56603. + _LT_TAGVAR(GCC, $1)="$GXX"
  56604. + _LT_TAGVAR(LD, $1)="$LD"
  56605. +
  56606. + ## CAVEAT EMPTOR:
  56607. + ## There is no encapsulation within the following macros, do not change
  56608. + ## the running order or otherwise move them around unless you know exactly
  56609. + ## what you are doing...
  56610. + _LT_SYS_HIDDEN_LIBDEPS($1)
  56611. + _LT_COMPILER_PIC($1)
  56612. + _LT_COMPILER_C_O($1)
  56613. + _LT_COMPILER_FILE_LOCKS($1)
  56614. + _LT_LINKER_SHLIBS($1)
  56615. + _LT_SYS_DYNAMIC_LINKER($1)
  56616. + _LT_LINKER_HARDCODE_LIBPATH($1)
  56617. +
  56618. + _LT_CONFIG($1)
  56619. + fi # test -n "$compiler"
  56620. +
  56621. + CC=$lt_save_CC
  56622. + LDCXX=$LD
  56623. + LD=$lt_save_LD
  56624. + GCC=$lt_save_GCC
  56625. + with_gnu_ld=$lt_save_with_gnu_ld
  56626. + lt_cv_path_LDCXX=$lt_cv_path_LD
  56627. + lt_cv_path_LD=$lt_save_path_LD
  56628. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  56629. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  56630. +fi # test "$_lt_caught_CXX_error" != yes
  56631. +
  56632. +AC_LANG_POP
  56633. +])# _LT_LANG_CXX_CONFIG
  56634. +
  56635. +
  56636. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  56637. +# ---------------------------------
  56638. +# Figure out "hidden" library dependencies from verbose
  56639. +# compiler output when linking a shared library.
  56640. +# Parse the compiler output and extract the necessary
  56641. +# objects, libraries and library flags.
  56642. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  56643. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  56644. +# Dependencies to place before and after the object being linked:
  56645. +_LT_TAGVAR(predep_objects, $1)=
  56646. +_LT_TAGVAR(postdep_objects, $1)=
  56647. +_LT_TAGVAR(predeps, $1)=
  56648. +_LT_TAGVAR(postdeps, $1)=
  56649. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  56650. +
  56651. +dnl we can't use the lt_simple_compile_test_code here,
  56652. +dnl because it contains code intended for an executable,
  56653. +dnl not a library. It's possible we should let each
  56654. +dnl tag define a new lt_????_link_test_code variable,
  56655. +dnl but it's only used here...
  56656. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  56657. +int a;
  56658. +void foo (void) { a = 0; }
  56659. +_LT_EOF
  56660. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  56661. +class Foo
  56662. +{
  56663. +public:
  56664. + Foo (void) { a = 0; }
  56665. +private:
  56666. + int a;
  56667. +};
  56668. +_LT_EOF
  56669. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  56670. + subroutine foo
  56671. + implicit none
  56672. + integer*4 a
  56673. + a=0
  56674. + return
  56675. + end
  56676. +_LT_EOF
  56677. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  56678. + subroutine foo
  56679. + implicit none
  56680. + integer a
  56681. + a=0
  56682. + return
  56683. + end
  56684. +_LT_EOF
  56685. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  56686. +public class foo {
  56687. + private int a;
  56688. + public void bar (void) {
  56689. + a = 0;
  56690. + }
  56691. +};
  56692. +_LT_EOF
  56693. +])
  56694. +dnl Parse the compiler output and extract the necessary
  56695. +dnl objects, libraries and library flags.
  56696. +if AC_TRY_EVAL(ac_compile); then
  56697. + # Parse the compiler output and extract the necessary
  56698. + # objects, libraries and library flags.
  56699. +
  56700. + # Sentinel used to keep track of whether or not we are before
  56701. + # the conftest object file.
  56702. + pre_test_object_deps_done=no
  56703. +
  56704. + for p in `eval "$output_verbose_link_cmd"`; do
  56705. + case $p in
  56706. +
  56707. + -L* | -R* | -l*)
  56708. + # Some compilers place space between "-{L,R}" and the path.
  56709. + # Remove the space.
  56710. + if test $p = "-L" ||
  56711. + test $p = "-R"; then
  56712. + prev=$p
  56713. + continue
  56714. + else
  56715. + prev=
  56716. + fi
  56717. +
  56718. + if test "$pre_test_object_deps_done" = no; then
  56719. + case $p in
  56720. + -L* | -R*)
  56721. + # Internal compiler library paths should come after those
  56722. + # provided the user. The postdeps already come after the
  56723. + # user supplied libs so there is no need to process them.
  56724. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  56725. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  56726. + else
  56727. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  56728. + fi
  56729. + ;;
  56730. + # The "-l" case would never come before the object being
  56731. + # linked, so don't bother handling this case.
  56732. + esac
  56733. + else
  56734. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  56735. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  56736. + else
  56737. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  56738. + fi
  56739. + fi
  56740. + ;;
  56741. +
  56742. + *.$objext)
  56743. + # This assumes that the test object file only shows up
  56744. + # once in the compiler output.
  56745. + if test "$p" = "conftest.$objext"; then
  56746. + pre_test_object_deps_done=yes
  56747. + continue
  56748. + fi
  56749. +
  56750. + if test "$pre_test_object_deps_done" = no; then
  56751. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  56752. + _LT_TAGVAR(predep_objects, $1)="$p"
  56753. + else
  56754. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  56755. + fi
  56756. + else
  56757. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  56758. + _LT_TAGVAR(postdep_objects, $1)="$p"
  56759. + else
  56760. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  56761. + fi
  56762. + fi
  56763. + ;;
  56764. +
  56765. + *) ;; # Ignore the rest.
  56766. +
  56767. + esac
  56768. + done
  56769. +
  56770. + # Clean up.
  56771. + rm -f a.out a.exe
  56772. +else
  56773. + echo "libtool.m4: error: problem compiling $1 test program"
  56774. +fi
  56775. +
  56776. +$RM -f confest.$objext
  56777. +
  56778. +# PORTME: override above test on systems where it is broken
  56779. +m4_if([$1], [CXX],
  56780. +[case $host_os in
  56781. +interix[[3-9]]*)
  56782. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  56783. + # hack all around it, let's just trust "g++" to DTRT.
  56784. + _LT_TAGVAR(predep_objects,$1)=
  56785. + _LT_TAGVAR(postdep_objects,$1)=
  56786. + _LT_TAGVAR(postdeps,$1)=
  56787. + ;;
  56788. +
  56789. +linux*)
  56790. + case `$CC -V 2>&1 | sed 5q` in
  56791. + *Sun\ C*)
  56792. + # Sun C++ 5.9
  56793. +
  56794. + # The more standards-conforming stlport4 library is
  56795. + # incompatible with the Cstd library. Avoid specifying
  56796. + # it if it's in CXXFLAGS. Ignore libCrun as
  56797. + # -library=stlport4 depends on it.
  56798. + case " $CXX $CXXFLAGS " in
  56799. + *" -library=stlport4 "*)
  56800. + solaris_use_stlport4=yes
  56801. + ;;
  56802. + esac
  56803. - runpath_var=LD_RUN_PATH
  56804. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  56805. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56806. + if test "$solaris_use_stlport4" != yes; then
  56807. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  56808. + fi
  56809. + ;;
  56810. + esac
  56811. + ;;
  56812. - # Commands to make compiler produce verbose output that lists
  56813. - # what "hidden" libraries, object files and flags are used when
  56814. - # linking a shared library.
  56815. - #
  56816. - # There doesn't appear to be a way to prevent this compiler from
  56817. - # explicitly linking system object files so we need to strip them
  56818. - # from the output so that they don't get included in the library
  56819. - # dependencies.
  56820. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  56821. - ;;
  56822. - xl*)
  56823. - # IBM XL 8.0 on PPC, with GNU ld
  56824. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56825. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  56826. - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  56827. - if test "x$supports_anon_versioning" = xyes; then
  56828. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  56829. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  56830. - echo "local: *; };" >> $output_objdir/$libname.ver~
  56831. - $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  56832. - fi
  56833. - ;;
  56834. - *)
  56835. - case `$CC -V 2>&1 | sed 5q` in
  56836. - *Sun\ C*)
  56837. - # Sun C++ 5.9
  56838. - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  56839. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  56840. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  56841. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56842. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  56843. - _LT_TAGVAR(compiler_needs_object, $1)=yes
  56844. +solaris*)
  56845. + case $cc_basename in
  56846. + CC*)
  56847. + # The more standards-conforming stlport4 library is
  56848. + # incompatible with the Cstd library. Avoid specifying
  56849. + # it if it's in CXXFLAGS. Ignore libCrun as
  56850. + # -library=stlport4 depends on it.
  56851. + case " $CXX $CXXFLAGS " in
  56852. + *" -library=stlport4 "*)
  56853. + solaris_use_stlport4=yes
  56854. + ;;
  56855. + esac
  56856. - # Not sure whether something based on
  56857. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  56858. - # would be better.
  56859. - output_verbose_link_cmd='echo'
  56860. + # Adding this requires a known-good setup of shared libraries for
  56861. + # Sun compiler versions before 5.6, else PIC objects from an old
  56862. + # archive will be linked into the output, leading to subtle bugs.
  56863. + if test "$solaris_use_stlport4" != yes; then
  56864. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  56865. + fi
  56866. + ;;
  56867. + esac
  56868. + ;;
  56869. +esac
  56870. +])
  56871. - # Archives containing C++ object files must be created using
  56872. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  56873. - # necessary to make sure instantiated templates are included
  56874. - # in the archive.
  56875. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  56876. - ;;
  56877. - esac
  56878. - ;;
  56879. - esac
  56880. - ;;
  56881. +case " $_LT_TAGVAR(postdeps, $1) " in
  56882. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  56883. +esac
  56884. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  56885. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  56886. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  56887. +fi
  56888. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  56889. + [The directories searched by this compiler when creating a shared library])
  56890. +_LT_TAGDECL([], [predep_objects], [1],
  56891. + [Dependencies to place before and after the objects being linked to
  56892. + create a shared library])
  56893. +_LT_TAGDECL([], [postdep_objects], [1])
  56894. +_LT_TAGDECL([], [predeps], [1])
  56895. +_LT_TAGDECL([], [postdeps], [1])
  56896. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  56897. + [The library search path used internally by the compiler when linking
  56898. + a shared library])
  56899. +])# _LT_SYS_HIDDEN_LIBDEPS
  56900. - lynxos*)
  56901. - # FIXME: insert proper C++ library support
  56902. - _LT_TAGVAR(ld_shlibs, $1)=no
  56903. - ;;
  56904. - m88k*)
  56905. - # FIXME: insert proper C++ library support
  56906. - _LT_TAGVAR(ld_shlibs, $1)=no
  56907. - ;;
  56908. +# _LT_PROG_F77
  56909. +# ------------
  56910. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  56911. +# if there is no fortran compiler, we have our own version here.
  56912. +m4_defun([_LT_PROG_F77],
  56913. +[
  56914. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  56915. +AC_PROG_F77
  56916. +if test -z "$F77" || test "X$F77" = "Xno"; then
  56917. + _lt_disable_F77=yes
  56918. +fi
  56919. +popdef([AC_MSG_ERROR])
  56920. +])# _LT_PROG_F77
  56921. - mvs*)
  56922. - case $cc_basename in
  56923. - cxx*)
  56924. - # FIXME: insert proper C++ library support
  56925. - _LT_TAGVAR(ld_shlibs, $1)=no
  56926. - ;;
  56927. - *)
  56928. - # FIXME: insert proper C++ library support
  56929. - _LT_TAGVAR(ld_shlibs, $1)=no
  56930. - ;;
  56931. - esac
  56932. - ;;
  56933. +dnl aclocal-1.4 backwards compatibility:
  56934. +dnl AC_DEFUN([_LT_PROG_F77], [])
  56935. - netbsd*)
  56936. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  56937. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  56938. - wlarc=
  56939. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56940. - _LT_TAGVAR(hardcode_direct, $1)=yes
  56941. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56942. - fi
  56943. - # Workaround some broken pre-1.5 toolchains
  56944. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  56945. - ;;
  56946. - *nto* | *qnx*)
  56947. - _LT_TAGVAR(ld_shlibs, $1)=yes
  56948. - ;;
  56949. +# _LT_LANG_F77_CONFIG([TAG])
  56950. +# --------------------------
  56951. +# Ensure that the configuration variables for a Fortran 77 compiler are
  56952. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  56953. +# to write the compiler configuration to `libtool'.
  56954. +m4_defun([_LT_LANG_F77_CONFIG],
  56955. +[AC_REQUIRE([_LT_PROG_F77])dnl
  56956. +AC_LANG_PUSH(Fortran 77)
  56957. - openbsd2*)
  56958. - # C++ shared libraries are fairly broken
  56959. - _LT_TAGVAR(ld_shlibs, $1)=no
  56960. - ;;
  56961. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56962. +_LT_TAGVAR(allow_undefined_flag, $1)=
  56963. +_LT_TAGVAR(always_export_symbols, $1)=no
  56964. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  56965. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  56966. +_LT_TAGVAR(hardcode_direct, $1)=no
  56967. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  56968. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  56969. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  56970. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  56971. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  56972. +_LT_TAGVAR(hardcode_automatic, $1)=no
  56973. +_LT_TAGVAR(inherit_rpath, $1)=no
  56974. +_LT_TAGVAR(module_cmds, $1)=
  56975. +_LT_TAGVAR(module_expsym_cmds, $1)=
  56976. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  56977. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  56978. +_LT_TAGVAR(no_undefined_flag, $1)=
  56979. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  56980. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  56981. - openbsd*)
  56982. - if test -f /usr/libexec/ld.so; then
  56983. - _LT_TAGVAR(hardcode_direct, $1)=yes
  56984. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56985. - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56986. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  56987. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  56988. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  56989. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  56990. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56991. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  56992. - fi
  56993. - output_verbose_link_cmd=echo
  56994. - else
  56995. - _LT_TAGVAR(ld_shlibs, $1)=no
  56996. - fi
  56997. - ;;
  56998. +# Source file extension for f77 test sources.
  56999. +ac_ext=f
  57000. - osf3* | osf4* | osf5*)
  57001. - case $cc_basename in
  57002. - KCC*)
  57003. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  57004. +# Object file extension for compiled f77 test sources.
  57005. +objext=o
  57006. +_LT_TAGVAR(objext, $1)=$objext
  57007. +
  57008. +# No sense in running all these tests if we already determined that
  57009. +# the F77 compiler isn't working. Some variables (like enable_shared)
  57010. +# are currently assumed to apply to all compilers on this platform,
  57011. +# and will be corrupted by setting them based on a non-working compiler.
  57012. +if test "$_lt_disable_F77" != yes; then
  57013. + # Code to be used in simple compile tests
  57014. + lt_simple_compile_test_code="\
  57015. + subroutine t
  57016. + return
  57017. + end
  57018. +"
  57019. +
  57020. + # Code to be used in simple link tests
  57021. + lt_simple_link_test_code="\
  57022. + program t
  57023. + end
  57024. +"
  57025. +
  57026. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  57027. + _LT_TAG_COMPILER
  57028. +
  57029. + # save warnings/boilerplate of simple test code
  57030. + _LT_COMPILER_BOILERPLATE
  57031. + _LT_LINKER_BOILERPLATE
  57032. +
  57033. + # Allow CC to be a program name with arguments.
  57034. + lt_save_CC="$CC"
  57035. + lt_save_GCC=$GCC
  57036. + CC=${F77-"f77"}
  57037. + compiler=$CC
  57038. + _LT_TAGVAR(compiler, $1)=$CC
  57039. + _LT_CC_BASENAME([$compiler])
  57040. + GCC=$G77
  57041. + if test -n "$compiler"; then
  57042. + AC_MSG_CHECKING([if libtool supports shared libraries])
  57043. + AC_MSG_RESULT([$can_build_shared])
  57044. - # KCC will only create a shared library if the output file
  57045. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  57046. - # to its proper name (with version) after linking.
  57047. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  57048. + AC_MSG_CHECKING([whether to build shared libraries])
  57049. + test "$can_build_shared" = "no" && enable_shared=no
  57050. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57051. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57052. + # On AIX, shared libraries and static libraries use the same namespace, and
  57053. + # are all built from PIC.
  57054. + case $host_os in
  57055. + aix3*)
  57056. + test "$enable_shared" = yes && enable_static=no
  57057. + if test -n "$RANLIB"; then
  57058. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  57059. + postinstall_cmds='$RANLIB $lib'
  57060. + fi
  57061. + ;;
  57062. + aix[[4-9]]*)
  57063. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  57064. + test "$enable_shared" = yes && enable_static=no
  57065. + fi
  57066. + ;;
  57067. + esac
  57068. + AC_MSG_RESULT([$enable_shared])
  57069. - # Archives containing C++ object files must be created using
  57070. - # the KAI C++ compiler.
  57071. - case $host in
  57072. - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  57073. - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  57074. - esac
  57075. - ;;
  57076. - RCC*)
  57077. - # Rational C++ 2.4.1
  57078. - # FIXME: insert proper C++ library support
  57079. - _LT_TAGVAR(ld_shlibs, $1)=no
  57080. - ;;
  57081. - cxx*)
  57082. - case $host in
  57083. - osf3*)
  57084. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57085. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  57086. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57087. - ;;
  57088. - *)
  57089. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  57090. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  57091. - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  57092. - echo "-hidden">> $lib.exp~
  57093. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  57094. - $RM $lib.exp'
  57095. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  57096. - ;;
  57097. - esac
  57098. + AC_MSG_CHECKING([whether to build static libraries])
  57099. + # Make sure either enable_shared or enable_static is yes.
  57100. + test "$enable_shared" = yes || enable_static=yes
  57101. + AC_MSG_RESULT([$enable_static])
  57102. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57103. + _LT_TAGVAR(GCC, $1)="$G77"
  57104. + _LT_TAGVAR(LD, $1)="$LD"
  57105. - # Commands to make compiler produce verbose output that lists
  57106. - # what "hidden" libraries, object files and flags are used when
  57107. - # linking a shared library.
  57108. - #
  57109. - # There doesn't appear to be a way to prevent this compiler from
  57110. - # explicitly linking system object files so we need to strip them
  57111. - # from the output so that they don't get included in the library
  57112. - # dependencies.
  57113. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57114. - ;;
  57115. - *)
  57116. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  57117. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57118. - case $host in
  57119. - osf3*)
  57120. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  57121. - ;;
  57122. - *)
  57123. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  57124. - ;;
  57125. - esac
  57126. + ## CAVEAT EMPTOR:
  57127. + ## There is no encapsulation within the following macros, do not change
  57128. + ## the running order or otherwise move them around unless you know exactly
  57129. + ## what you are doing...
  57130. + _LT_COMPILER_PIC($1)
  57131. + _LT_COMPILER_C_O($1)
  57132. + _LT_COMPILER_FILE_LOCKS($1)
  57133. + _LT_LINKER_SHLIBS($1)
  57134. + _LT_SYS_DYNAMIC_LINKER($1)
  57135. + _LT_LINKER_HARDCODE_LIBPATH($1)
  57136. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57137. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57138. + _LT_CONFIG($1)
  57139. + fi # test -n "$compiler"
  57140. - # Commands to make compiler produce verbose output that lists
  57141. - # what "hidden" libraries, object files and flags are used when
  57142. - # linking a shared library.
  57143. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57144. + GCC=$lt_save_GCC
  57145. + CC="$lt_save_CC"
  57146. +fi # test "$_lt_disable_F77" != yes
  57147. - else
  57148. - # FIXME: insert proper C++ library support
  57149. - _LT_TAGVAR(ld_shlibs, $1)=no
  57150. - fi
  57151. - ;;
  57152. - esac
  57153. - ;;
  57154. +AC_LANG_POP
  57155. +])# _LT_LANG_F77_CONFIG
  57156. - psos*)
  57157. - # FIXME: insert proper C++ library support
  57158. - _LT_TAGVAR(ld_shlibs, $1)=no
  57159. - ;;
  57160. - sunos4*)
  57161. - case $cc_basename in
  57162. - CC*)
  57163. - # Sun C++ 4.x
  57164. - # FIXME: insert proper C++ library support
  57165. - _LT_TAGVAR(ld_shlibs, $1)=no
  57166. - ;;
  57167. - lcc*)
  57168. - # Lucid
  57169. - # FIXME: insert proper C++ library support
  57170. - _LT_TAGVAR(ld_shlibs, $1)=no
  57171. - ;;
  57172. - *)
  57173. - # FIXME: insert proper C++ library support
  57174. - _LT_TAGVAR(ld_shlibs, $1)=no
  57175. - ;;
  57176. - esac
  57177. - ;;
  57178. +# _LT_PROG_FC
  57179. +# -----------
  57180. +# Since AC_PROG_FC is broken, in that it returns the empty string
  57181. +# if there is no fortran compiler, we have our own version here.
  57182. +m4_defun([_LT_PROG_FC],
  57183. +[
  57184. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  57185. +AC_PROG_FC
  57186. +if test -z "$FC" || test "X$FC" = "Xno"; then
  57187. + _lt_disable_FC=yes
  57188. +fi
  57189. +popdef([AC_MSG_ERROR])
  57190. +])# _LT_PROG_FC
  57191. - solaris*)
  57192. - case $cc_basename in
  57193. - CC*)
  57194. - # Sun C++ 4.2, 5.x and Centerline C++
  57195. - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  57196. - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  57197. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57198. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57199. - $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'
  57200. +dnl aclocal-1.4 backwards compatibility:
  57201. +dnl AC_DEFUN([_LT_PROG_FC], [])
  57202. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57203. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57204. - case $host_os in
  57205. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  57206. - *)
  57207. - # The compiler driver will combine and reorder linker options,
  57208. - # but understands `-z linker_flag'.
  57209. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  57210. - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  57211. - ;;
  57212. - esac
  57213. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  57214. - output_verbose_link_cmd='echo'
  57215. +# _LT_LANG_FC_CONFIG([TAG])
  57216. +# -------------------------
  57217. +# Ensure that the configuration variables for a Fortran compiler are
  57218. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  57219. +# to write the compiler configuration to `libtool'.
  57220. +m4_defun([_LT_LANG_FC_CONFIG],
  57221. +[AC_REQUIRE([_LT_PROG_FC])dnl
  57222. +AC_LANG_PUSH(Fortran)
  57223. - # Archives containing C++ object files must be created using
  57224. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  57225. - # necessary to make sure instantiated templates are included
  57226. - # in the archive.
  57227. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  57228. - ;;
  57229. - gcx*)
  57230. - # Green Hills C++ Compiler
  57231. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57232. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57233. +_LT_TAGVAR(allow_undefined_flag, $1)=
  57234. +_LT_TAGVAR(always_export_symbols, $1)=no
  57235. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  57236. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  57237. +_LT_TAGVAR(hardcode_direct, $1)=no
  57238. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  57239. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  57240. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  57241. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  57242. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  57243. +_LT_TAGVAR(hardcode_automatic, $1)=no
  57244. +_LT_TAGVAR(inherit_rpath, $1)=no
  57245. +_LT_TAGVAR(module_cmds, $1)=
  57246. +_LT_TAGVAR(module_expsym_cmds, $1)=
  57247. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  57248. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  57249. +_LT_TAGVAR(no_undefined_flag, $1)=
  57250. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  57251. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  57252. - # The C++ compiler must be used to create the archive.
  57253. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  57254. - ;;
  57255. - *)
  57256. - # GNU C++ compiler with Solaris linker
  57257. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  57258. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  57259. - if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  57260. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57261. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57262. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  57263. +# Source file extension for fc test sources.
  57264. +ac_ext=${ac_fc_srcext-f}
  57265. - # Commands to make compiler produce verbose output that lists
  57266. - # what "hidden" libraries, object files and flags are used when
  57267. - # linking a shared library.
  57268. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57269. - else
  57270. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  57271. - # platform.
  57272. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57273. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57274. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  57275. +# Object file extension for compiled fc test sources.
  57276. +objext=o
  57277. +_LT_TAGVAR(objext, $1)=$objext
  57278. - # Commands to make compiler produce verbose output that lists
  57279. - # what "hidden" libraries, object files and flags are used when
  57280. - # linking a shared library.
  57281. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57282. - fi
  57283. +# No sense in running all these tests if we already determined that
  57284. +# the FC compiler isn't working. Some variables (like enable_shared)
  57285. +# are currently assumed to apply to all compilers on this platform,
  57286. +# and will be corrupted by setting them based on a non-working compiler.
  57287. +if test "$_lt_disable_FC" != yes; then
  57288. + # Code to be used in simple compile tests
  57289. + lt_simple_compile_test_code="\
  57290. + subroutine t
  57291. + return
  57292. + end
  57293. +"
  57294. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  57295. - case $host_os in
  57296. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  57297. - *)
  57298. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  57299. - ;;
  57300. - esac
  57301. - fi
  57302. - ;;
  57303. - esac
  57304. - ;;
  57305. + # Code to be used in simple link tests
  57306. + lt_simple_link_test_code="\
  57307. + program t
  57308. + end
  57309. +"
  57310. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  57311. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  57312. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57313. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57314. - runpath_var='LD_RUN_PATH'
  57315. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  57316. + _LT_TAG_COMPILER
  57317. - case $cc_basename in
  57318. - CC*)
  57319. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57320. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57321. - ;;
  57322. - *)
  57323. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57324. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57325. - ;;
  57326. - esac
  57327. - ;;
  57328. + # save warnings/boilerplate of simple test code
  57329. + _LT_COMPILER_BOILERPLATE
  57330. + _LT_LINKER_BOILERPLATE
  57331. - sysv5* | sco3.2v5* | sco5v6*)
  57332. - # Note: We can NOT use -z defs as we might desire, because we do not
  57333. - # link with -lc, and that would cause any symbols used from libc to
  57334. - # always be unresolved, which means just about no library would
  57335. - # ever link correctly. If we're not using GNU ld we use -z text
  57336. - # though, which does catch some bad symbols but isn't as heavy-handed
  57337. - # as -z defs.
  57338. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  57339. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  57340. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57341. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57342. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  57343. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  57344. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  57345. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  57346. - runpath_var='LD_RUN_PATH'
  57347. + # Allow CC to be a program name with arguments.
  57348. + lt_save_CC="$CC"
  57349. + lt_save_GCC=$GCC
  57350. + CC=${FC-"f95"}
  57351. + compiler=$CC
  57352. + GCC=$ac_cv_fc_compiler_gnu
  57353. - case $cc_basename in
  57354. - CC*)
  57355. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57356. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57357. - ;;
  57358. - *)
  57359. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57360. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57361. - ;;
  57362. - esac
  57363. - ;;
  57364. + _LT_TAGVAR(compiler, $1)=$CC
  57365. + _LT_CC_BASENAME([$compiler])
  57366. - tandem*)
  57367. - case $cc_basename in
  57368. - NCC*)
  57369. - # NonStop-UX NCC 3.20
  57370. - # FIXME: insert proper C++ library support
  57371. - _LT_TAGVAR(ld_shlibs, $1)=no
  57372. - ;;
  57373. - *)
  57374. - # FIXME: insert proper C++ library support
  57375. - _LT_TAGVAR(ld_shlibs, $1)=no
  57376. - ;;
  57377. - esac
  57378. - ;;
  57379. + if test -n "$compiler"; then
  57380. + AC_MSG_CHECKING([if libtool supports shared libraries])
  57381. + AC_MSG_RESULT([$can_build_shared])
  57382. - vxworks*)
  57383. - # FIXME: insert proper C++ library support
  57384. - _LT_TAGVAR(ld_shlibs, $1)=no
  57385. - ;;
  57386. + AC_MSG_CHECKING([whether to build shared libraries])
  57387. + test "$can_build_shared" = "no" && enable_shared=no
  57388. - *)
  57389. - # FIXME: insert proper C++ library support
  57390. - _LT_TAGVAR(ld_shlibs, $1)=no
  57391. + # On AIX, shared libraries and static libraries use the same namespace, and
  57392. + # are all built from PIC.
  57393. + case $host_os in
  57394. + aix3*)
  57395. + test "$enable_shared" = yes && enable_static=no
  57396. + if test -n "$RANLIB"; then
  57397. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  57398. + postinstall_cmds='$RANLIB $lib'
  57399. + fi
  57400. + ;;
  57401. + aix[[4-9]]*)
  57402. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  57403. + test "$enable_shared" = yes && enable_static=no
  57404. + fi
  57405. ;;
  57406. esac
  57407. + AC_MSG_RESULT([$enable_shared])
  57408. - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  57409. - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  57410. + AC_MSG_CHECKING([whether to build static libraries])
  57411. + # Make sure either enable_shared or enable_static is yes.
  57412. + test "$enable_shared" = yes || enable_static=yes
  57413. + AC_MSG_RESULT([$enable_static])
  57414. - _LT_TAGVAR(GCC, $1)="$GXX"
  57415. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  57416. _LT_TAGVAR(LD, $1)="$LD"
  57417. ## CAVEAT EMPTOR:
  57418. @@ -7294,1639 +6866,2087 @@
  57419. _LT_SYS_DYNAMIC_LINKER($1)
  57420. _LT_LINKER_HARDCODE_LIBPATH($1)
  57421. - _LT_CONFIG($1)
  57422. - fi # test -n "$compiler"
  57423. + _LT_CONFIG($1)
  57424. + fi # test -n "$compiler"
  57425. +
  57426. + GCC=$lt_save_GCC
  57427. + CC="$lt_save_CC"
  57428. +fi # test "$_lt_disable_FC" != yes
  57429. +
  57430. +AC_LANG_POP
  57431. +])# _LT_LANG_FC_CONFIG
  57432. +
  57433. +
  57434. +# _LT_LANG_GCJ_CONFIG([TAG])
  57435. +# --------------------------
  57436. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  57437. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  57438. +# to write the compiler configuration to `libtool'.
  57439. +m4_defun([_LT_LANG_GCJ_CONFIG],
  57440. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  57441. +AC_LANG_SAVE
  57442. +
  57443. +# Source file extension for Java test sources.
  57444. +ac_ext=java
  57445. +
  57446. +# Object file extension for compiled Java test sources.
  57447. +objext=o
  57448. +_LT_TAGVAR(objext, $1)=$objext
  57449. +
  57450. +# Code to be used in simple compile tests
  57451. +lt_simple_compile_test_code="class foo {}"
  57452. +
  57453. +# Code to be used in simple link tests
  57454. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  57455. +
  57456. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  57457. +_LT_TAG_COMPILER
  57458. +
  57459. +# save warnings/boilerplate of simple test code
  57460. +_LT_COMPILER_BOILERPLATE
  57461. +_LT_LINKER_BOILERPLATE
  57462. +
  57463. +# Allow CC to be a program name with arguments.
  57464. +lt_save_CC="$CC"
  57465. +lt_save_GCC=$GCC
  57466. +GCC=yes
  57467. +CC=${GCJ-"gcj"}
  57468. +compiler=$CC
  57469. +_LT_TAGVAR(compiler, $1)=$CC
  57470. +_LT_TAGVAR(LD, $1)="$LD"
  57471. +_LT_CC_BASENAME([$compiler])
  57472. +
  57473. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  57474. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57475. +
  57476. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  57477. +
  57478. +if test -n "$compiler"; then
  57479. + _LT_COMPILER_NO_RTTI($1)
  57480. + _LT_COMPILER_PIC($1)
  57481. + _LT_COMPILER_C_O($1)
  57482. + _LT_COMPILER_FILE_LOCKS($1)
  57483. + _LT_LINKER_SHLIBS($1)
  57484. + _LT_LINKER_HARDCODE_LIBPATH($1)
  57485. +
  57486. + _LT_CONFIG($1)
  57487. +fi
  57488. +
  57489. +AC_LANG_RESTORE
  57490. +
  57491. +GCC=$lt_save_GCC
  57492. +CC="$lt_save_CC"
  57493. +])# _LT_LANG_GCJ_CONFIG
  57494. +
  57495. +
  57496. +# _LT_LANG_RC_CONFIG([TAG])
  57497. +# -------------------------
  57498. +# Ensure that the configuration variables for the Windows resource compiler
  57499. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  57500. +# to write the compiler configuration to `libtool'.
  57501. +m4_defun([_LT_LANG_RC_CONFIG],
  57502. +[AC_REQUIRE([LT_PROG_RC])dnl
  57503. +AC_LANG_SAVE
  57504. +
  57505. +# Source file extension for RC test sources.
  57506. +ac_ext=rc
  57507. +
  57508. +# Object file extension for compiled RC test sources.
  57509. +objext=o
  57510. +_LT_TAGVAR(objext, $1)=$objext
  57511. +
  57512. +# Code to be used in simple compile tests
  57513. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  57514. +
  57515. +# Code to be used in simple link tests
  57516. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  57517. +
  57518. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  57519. +_LT_TAG_COMPILER
  57520. +
  57521. +# save warnings/boilerplate of simple test code
  57522. +_LT_COMPILER_BOILERPLATE
  57523. +_LT_LINKER_BOILERPLATE
  57524. +
  57525. +# Allow CC to be a program name with arguments.
  57526. +lt_save_CC="$CC"
  57527. +lt_save_GCC=$GCC
  57528. +GCC=
  57529. +CC=${RC-"windres"}
  57530. +compiler=$CC
  57531. +_LT_TAGVAR(compiler, $1)=$CC
  57532. +_LT_CC_BASENAME([$compiler])
  57533. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  57534. +
  57535. +if test -n "$compiler"; then
  57536. + :
  57537. + _LT_CONFIG($1)
  57538. +fi
  57539. +
  57540. +GCC=$lt_save_GCC
  57541. +AC_LANG_RESTORE
  57542. +CC="$lt_save_CC"
  57543. +])# _LT_LANG_RC_CONFIG
  57544. +
  57545. +
  57546. +# LT_PROG_GCJ
  57547. +# -----------
  57548. +AC_DEFUN([LT_PROG_GCJ],
  57549. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  57550. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  57551. + [AC_CHECK_TOOL(GCJ, gcj,)
  57552. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  57553. + AC_SUBST(GCJFLAGS)])])[]dnl
  57554. +])
  57555. +
  57556. +# Old name:
  57557. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  57558. +dnl aclocal-1.4 backwards compatibility:
  57559. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  57560. +
  57561. - CC=$lt_save_CC
  57562. - LDCXX=$LD
  57563. - LD=$lt_save_LD
  57564. - GCC=$lt_save_GCC
  57565. - with_gnu_ld=$lt_save_with_gnu_ld
  57566. - lt_cv_path_LDCXX=$lt_cv_path_LD
  57567. - lt_cv_path_LD=$lt_save_path_LD
  57568. - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  57569. - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  57570. -fi # test "$_lt_caught_CXX_error" != yes
  57571. +# LT_PROG_RC
  57572. +# ----------
  57573. +AC_DEFUN([LT_PROG_RC],
  57574. +[AC_CHECK_TOOL(RC, windres,)
  57575. +])
  57576. -AC_LANG_POP
  57577. -])# _LT_LANG_CXX_CONFIG
  57578. +# Old name:
  57579. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  57580. +dnl aclocal-1.4 backwards compatibility:
  57581. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  57582. -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  57583. -# ---------------------------------
  57584. -# Figure out "hidden" library dependencies from verbose
  57585. -# compiler output when linking a shared library.
  57586. -# Parse the compiler output and extract the necessary
  57587. -# objects, libraries and library flags.
  57588. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  57589. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  57590. -# Dependencies to place before and after the object being linked:
  57591. -_LT_TAGVAR(predep_objects, $1)=
  57592. -_LT_TAGVAR(postdep_objects, $1)=
  57593. -_LT_TAGVAR(predeps, $1)=
  57594. -_LT_TAGVAR(postdeps, $1)=
  57595. -_LT_TAGVAR(compiler_lib_search_path, $1)=
  57596. +# _LT_DECL_EGREP
  57597. +# --------------
  57598. +# If we don't have a new enough Autoconf to choose the best grep
  57599. +# available, choose the one first in the user's PATH.
  57600. +m4_defun([_LT_DECL_EGREP],
  57601. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  57602. +AC_REQUIRE([AC_PROG_FGREP])dnl
  57603. +test -z "$GREP" && GREP=grep
  57604. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  57605. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  57606. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  57607. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  57608. +AC_SUBST([GREP])
  57609. +])
  57610. -dnl we can't use the lt_simple_compile_test_code here,
  57611. -dnl because it contains code intended for an executable,
  57612. -dnl not a library. It's possible we should let each
  57613. -dnl tag define a new lt_????_link_test_code variable,
  57614. -dnl but it's only used here...
  57615. -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  57616. -int a;
  57617. -void foo (void) { a = 0; }
  57618. -_LT_EOF
  57619. -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  57620. -class Foo
  57621. -{
  57622. -public:
  57623. - Foo (void) { a = 0; }
  57624. -private:
  57625. - int a;
  57626. -};
  57627. -_LT_EOF
  57628. -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  57629. - subroutine foo
  57630. - implicit none
  57631. - integer*4 a
  57632. - a=0
  57633. - return
  57634. - end
  57635. -_LT_EOF
  57636. -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  57637. - subroutine foo
  57638. - implicit none
  57639. - integer a
  57640. - a=0
  57641. - return
  57642. - end
  57643. -_LT_EOF
  57644. -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  57645. -public class foo {
  57646. - private int a;
  57647. - public void bar (void) {
  57648. - a = 0;
  57649. - }
  57650. -};
  57651. -_LT_EOF
  57652. +
  57653. +# _LT_DECL_OBJDUMP
  57654. +# --------------
  57655. +# If we don't have a new enough Autoconf to choose the best objdump
  57656. +# available, choose the one first in the user's PATH.
  57657. +m4_defun([_LT_DECL_OBJDUMP],
  57658. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  57659. +test -z "$OBJDUMP" && OBJDUMP=objdump
  57660. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  57661. +AC_SUBST([OBJDUMP])
  57662. ])
  57663. -dnl Parse the compiler output and extract the necessary
  57664. -dnl objects, libraries and library flags.
  57665. -if AC_TRY_EVAL(ac_compile); then
  57666. - # Parse the compiler output and extract the necessary
  57667. - # objects, libraries and library flags.
  57668. - # Sentinel used to keep track of whether or not we are before
  57669. - # the conftest object file.
  57670. - pre_test_object_deps_done=no
  57671. - for p in `eval "$output_verbose_link_cmd"`; do
  57672. - case $p in
  57673. +# _LT_DECL_SED
  57674. +# ------------
  57675. +# Check for a fully-functional sed program, that truncates
  57676. +# as few characters as possible. Prefer GNU sed if found.
  57677. +m4_defun([_LT_DECL_SED],
  57678. +[AC_PROG_SED
  57679. +test -z "$SED" && SED=sed
  57680. +Xsed="$SED -e 1s/^X//"
  57681. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  57682. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  57683. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  57684. +])# _LT_DECL_SED
  57685. - -L* | -R* | -l*)
  57686. - # Some compilers place space between "-{L,R}" and the path.
  57687. - # Remove the space.
  57688. - if test $p = "-L" ||
  57689. - test $p = "-R"; then
  57690. - prev=$p
  57691. - continue
  57692. - else
  57693. - prev=
  57694. - fi
  57695. +m4_ifndef([AC_PROG_SED], [
  57696. +# NOTE: This macro has been submitted for inclusion into #
  57697. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  57698. +# a released version of Autoconf we should remove this #
  57699. +# macro and use it instead. #
  57700. - if test "$pre_test_object_deps_done" = no; then
  57701. - case $p in
  57702. - -L* | -R*)
  57703. - # Internal compiler library paths should come after those
  57704. - # provided the user. The postdeps already come after the
  57705. - # user supplied libs so there is no need to process them.
  57706. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  57707. - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  57708. - else
  57709. - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  57710. - fi
  57711. - ;;
  57712. - # The "-l" case would never come before the object being
  57713. - # linked, so don't bother handling this case.
  57714. - esac
  57715. - else
  57716. - if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  57717. - _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  57718. - else
  57719. - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  57720. - fi
  57721. - fi
  57722. - ;;
  57723. +m4_defun([AC_PROG_SED],
  57724. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  57725. +AC_CACHE_VAL(lt_cv_path_SED,
  57726. +[# Loop through the user's path and test for sed and gsed.
  57727. +# Then use that list of sed's as ones to test for truncation.
  57728. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  57729. +for as_dir in $PATH
  57730. +do
  57731. + IFS=$as_save_IFS
  57732. + test -z "$as_dir" && as_dir=.
  57733. + for lt_ac_prog in sed gsed; do
  57734. + for ac_exec_ext in '' $ac_executable_extensions; do
  57735. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  57736. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  57737. + fi
  57738. + done
  57739. + done
  57740. +done
  57741. +IFS=$as_save_IFS
  57742. +lt_ac_max=0
  57743. +lt_ac_count=0
  57744. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  57745. +# along with /bin/sed that truncates output.
  57746. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  57747. + test ! -f $lt_ac_sed && continue
  57748. + cat /dev/null > conftest.in
  57749. + lt_ac_count=0
  57750. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  57751. + # Check for GNU sed and select it if it is found.
  57752. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  57753. + lt_cv_path_SED=$lt_ac_sed
  57754. + break
  57755. + fi
  57756. + while true; do
  57757. + cat conftest.in conftest.in >conftest.tmp
  57758. + mv conftest.tmp conftest.in
  57759. + cp conftest.in conftest.nl
  57760. + echo >>conftest.nl
  57761. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  57762. + cmp -s conftest.out conftest.nl || break
  57763. + # 10000 chars as input seems more than enough
  57764. + test $lt_ac_count -gt 10 && break
  57765. + lt_ac_count=`expr $lt_ac_count + 1`
  57766. + if test $lt_ac_count -gt $lt_ac_max; then
  57767. + lt_ac_max=$lt_ac_count
  57768. + lt_cv_path_SED=$lt_ac_sed
  57769. + fi
  57770. + done
  57771. +done
  57772. +])
  57773. +SED=$lt_cv_path_SED
  57774. +AC_SUBST([SED])
  57775. +AC_MSG_RESULT([$SED])
  57776. +])#AC_PROG_SED
  57777. +])#m4_ifndef
  57778. - *.$objext)
  57779. - # This assumes that the test object file only shows up
  57780. - # once in the compiler output.
  57781. - if test "$p" = "conftest.$objext"; then
  57782. - pre_test_object_deps_done=yes
  57783. - continue
  57784. - fi
  57785. +# Old name:
  57786. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  57787. +dnl aclocal-1.4 backwards compatibility:
  57788. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  57789. - if test "$pre_test_object_deps_done" = no; then
  57790. - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  57791. - _LT_TAGVAR(predep_objects, $1)="$p"
  57792. - else
  57793. - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  57794. - fi
  57795. - else
  57796. - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  57797. - _LT_TAGVAR(postdep_objects, $1)="$p"
  57798. - else
  57799. - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  57800. - fi
  57801. - fi
  57802. - ;;
  57803. - *) ;; # Ignore the rest.
  57804. +# _LT_CHECK_SHELL_FEATURES
  57805. +# ------------------------
  57806. +# Find out whether the shell is Bourne or XSI compatible,
  57807. +# or has some other useful features.
  57808. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  57809. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  57810. +# Try some XSI features
  57811. +xsi_shell=no
  57812. +( _lt_dummy="a/b/c"
  57813. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  57814. + = c,a/b,, \
  57815. + && eval 'test $(( 1 + 1 )) -eq 2 \
  57816. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  57817. + && xsi_shell=yes
  57818. +AC_MSG_RESULT([$xsi_shell])
  57819. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  57820. - esac
  57821. - done
  57822. +AC_MSG_CHECKING([whether the shell understands "+="])
  57823. +lt_shell_append=no
  57824. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  57825. + >/dev/null 2>&1 \
  57826. + && lt_shell_append=yes
  57827. +AC_MSG_RESULT([$lt_shell_append])
  57828. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  57829. - # Clean up.
  57830. - rm -f a.out a.exe
  57831. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  57832. + lt_unset=unset
  57833. else
  57834. - echo "libtool.m4: error: problem compiling $1 test program"
  57835. + lt_unset=false
  57836. fi
  57837. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  57838. -$RM -f confest.$objext
  57839. -
  57840. -# PORTME: override above test on systems where it is broken
  57841. -m4_if([$1], [CXX],
  57842. -[case $host_os in
  57843. -interix[[3-9]]*)
  57844. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  57845. - # hack all around it, let's just trust "g++" to DTRT.
  57846. - _LT_TAGVAR(predep_objects,$1)=
  57847. - _LT_TAGVAR(postdep_objects,$1)=
  57848. - _LT_TAGVAR(postdeps,$1)=
  57849. +# test EBCDIC or ASCII
  57850. +case `echo X|tr X '\101'` in
  57851. + A) # ASCII based system
  57852. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  57853. + lt_SP2NL='tr \040 \012'
  57854. + lt_NL2SP='tr \015\012 \040\040'
  57855. + ;;
  57856. + *) # EBCDIC based system
  57857. + lt_SP2NL='tr \100 \n'
  57858. + lt_NL2SP='tr \r\n \100\100'
  57859. ;;
  57860. +esac
  57861. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  57862. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  57863. +])# _LT_CHECK_SHELL_FEATURES
  57864. -linux*)
  57865. - case `$CC -V 2>&1 | sed 5q` in
  57866. - *Sun\ C*)
  57867. - # Sun C++ 5.9
  57868. - # The more standards-conforming stlport4 library is
  57869. - # incompatible with the Cstd library. Avoid specifying
  57870. - # it if it's in CXXFLAGS. Ignore libCrun as
  57871. - # -library=stlport4 depends on it.
  57872. - case " $CXX $CXXFLAGS " in
  57873. - *" -library=stlport4 "*)
  57874. - solaris_use_stlport4=yes
  57875. - ;;
  57876. - esac
  57877. +# _LT_PROG_XSI_SHELLFNS
  57878. +# ---------------------
  57879. +# Bourne and XSI compatible variants of some useful shell functions.
  57880. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  57881. +[case $xsi_shell in
  57882. + yes)
  57883. + cat << \_LT_EOF >> "$cfgfile"
  57884. - if test "$solaris_use_stlport4" != yes; then
  57885. - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  57886. - fi
  57887. - ;;
  57888. +# func_dirname file append nondir_replacement
  57889. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  57890. +# otherwise set result to NONDIR_REPLACEMENT.
  57891. +func_dirname ()
  57892. +{
  57893. + case ${1} in
  57894. + */*) func_dirname_result="${1%/*}${2}" ;;
  57895. + * ) func_dirname_result="${3}" ;;
  57896. esac
  57897. - ;;
  57898. +}
  57899. -solaris*)
  57900. - case $cc_basename in
  57901. - CC*)
  57902. - # The more standards-conforming stlport4 library is
  57903. - # incompatible with the Cstd library. Avoid specifying
  57904. - # it if it's in CXXFLAGS. Ignore libCrun as
  57905. - # -library=stlport4 depends on it.
  57906. - case " $CXX $CXXFLAGS " in
  57907. - *" -library=stlport4 "*)
  57908. - solaris_use_stlport4=yes
  57909. - ;;
  57910. - esac
  57911. +# func_basename file
  57912. +func_basename ()
  57913. +{
  57914. + func_basename_result="${1##*/}"
  57915. +}
  57916. - # Adding this requires a known-good setup of shared libraries for
  57917. - # Sun compiler versions before 5.6, else PIC objects from an old
  57918. - # archive will be linked into the output, leading to subtle bugs.
  57919. - if test "$solaris_use_stlport4" != yes; then
  57920. - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  57921. - fi
  57922. - ;;
  57923. +# func_dirname_and_basename file append nondir_replacement
  57924. +# perform func_basename and func_dirname in a single function
  57925. +# call:
  57926. +# dirname: Compute the dirname of FILE. If nonempty,
  57927. +# add APPEND to the result, otherwise set result
  57928. +# to NONDIR_REPLACEMENT.
  57929. +# value returned in "$func_dirname_result"
  57930. +# basename: Compute filename of FILE.
  57931. +# value retuned in "$func_basename_result"
  57932. +# Implementation must be kept synchronized with func_dirname
  57933. +# and func_basename. For efficiency, we do not delegate to
  57934. +# those functions but instead duplicate the functionality here.
  57935. +func_dirname_and_basename ()
  57936. +{
  57937. + case ${1} in
  57938. + */*) func_dirname_result="${1%/*}${2}" ;;
  57939. + * ) func_dirname_result="${3}" ;;
  57940. esac
  57941. - ;;
  57942. -esac
  57943. -])
  57944. + func_basename_result="${1##*/}"
  57945. +}
  57946. -case " $_LT_TAGVAR(postdeps, $1) " in
  57947. -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  57948. -esac
  57949. - _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  57950. -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  57951. - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  57952. -fi
  57953. -_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  57954. - [The directories searched by this compiler when creating a shared library])
  57955. -_LT_TAGDECL([], [predep_objects], [1],
  57956. - [Dependencies to place before and after the objects being linked to
  57957. - create a shared library])
  57958. -_LT_TAGDECL([], [postdep_objects], [1])
  57959. -_LT_TAGDECL([], [predeps], [1])
  57960. -_LT_TAGDECL([], [postdeps], [1])
  57961. -_LT_TAGDECL([], [compiler_lib_search_path], [1],
  57962. - [The library search path used internally by the compiler when linking
  57963. - a shared library])
  57964. -])# _LT_SYS_HIDDEN_LIBDEPS
  57965. +# func_stripname prefix suffix name
  57966. +# strip PREFIX and SUFFIX off of NAME.
  57967. +# PREFIX and SUFFIX must not contain globbing or regex special
  57968. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  57969. +# dot (in which case that matches only a dot).
  57970. +func_stripname ()
  57971. +{
  57972. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  57973. + # positional parameters, so assign one to ordinary parameter first.
  57974. + func_stripname_result=${3}
  57975. + func_stripname_result=${func_stripname_result#"${1}"}
  57976. + func_stripname_result=${func_stripname_result%"${2}"}
  57977. +}
  57978. +# func_opt_split
  57979. +func_opt_split ()
  57980. +{
  57981. + func_opt_split_opt=${1%%=*}
  57982. + func_opt_split_arg=${1#*=}
  57983. +}
  57984. -# _LT_PROG_F77
  57985. -# ------------
  57986. -# Since AC_PROG_F77 is broken, in that it returns the empty string
  57987. -# if there is no fortran compiler, we have our own version here.
  57988. -m4_defun([_LT_PROG_F77],
  57989. -[
  57990. -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  57991. -AC_PROG_F77
  57992. -if test -z "$F77" || test "X$F77" = "Xno"; then
  57993. - _lt_disable_F77=yes
  57994. -fi
  57995. -popdef([AC_MSG_ERROR])
  57996. -])# _LT_PROG_F77
  57997. +# func_lo2o object
  57998. +func_lo2o ()
  57999. +{
  58000. + case ${1} in
  58001. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  58002. + *) func_lo2o_result=${1} ;;
  58003. + esac
  58004. +}
  58005. -dnl aclocal-1.4 backwards compatibility:
  58006. -dnl AC_DEFUN([_LT_PROG_F77], [])
  58007. +# func_xform libobj-or-source
  58008. +func_xform ()
  58009. +{
  58010. + func_xform_result=${1%.*}.lo
  58011. +}
  58012. +# func_arith arithmetic-term...
  58013. +func_arith ()
  58014. +{
  58015. + func_arith_result=$(( $[*] ))
  58016. +}
  58017. -# _LT_LANG_F77_CONFIG([TAG])
  58018. -# --------------------------
  58019. -# Ensure that the configuration variables for a Fortran 77 compiler are
  58020. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  58021. -# to write the compiler configuration to `libtool'.
  58022. -m4_defun([_LT_LANG_F77_CONFIG],
  58023. -[AC_REQUIRE([_LT_PROG_F77])dnl
  58024. -AC_LANG_PUSH(Fortran 77)
  58025. +# func_len string
  58026. +# STRING may not start with a hyphen.
  58027. +func_len ()
  58028. +{
  58029. + func_len_result=${#1}
  58030. +}
  58031. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58032. -_LT_TAGVAR(allow_undefined_flag, $1)=
  58033. -_LT_TAGVAR(always_export_symbols, $1)=no
  58034. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  58035. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  58036. -_LT_TAGVAR(hardcode_direct, $1)=no
  58037. -_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  58038. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  58039. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  58040. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  58041. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  58042. -_LT_TAGVAR(hardcode_automatic, $1)=no
  58043. -_LT_TAGVAR(inherit_rpath, $1)=no
  58044. -_LT_TAGVAR(module_cmds, $1)=
  58045. -_LT_TAGVAR(module_expsym_cmds, $1)=
  58046. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  58047. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  58048. -_LT_TAGVAR(no_undefined_flag, $1)=
  58049. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  58050. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  58051. +_LT_EOF
  58052. + ;;
  58053. + *) # Bourne compatible functions.
  58054. + cat << \_LT_EOF >> "$cfgfile"
  58055. +
  58056. +# func_dirname file append nondir_replacement
  58057. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  58058. +# otherwise set result to NONDIR_REPLACEMENT.
  58059. +func_dirname ()
  58060. +{
  58061. + # Extract subdirectory from the argument.
  58062. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  58063. + if test "X$func_dirname_result" = "X${1}"; then
  58064. + func_dirname_result="${3}"
  58065. + else
  58066. + func_dirname_result="$func_dirname_result${2}"
  58067. + fi
  58068. +}
  58069. +
  58070. +# func_basename file
  58071. +func_basename ()
  58072. +{
  58073. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  58074. +}
  58075. -# Source file extension for f77 test sources.
  58076. -ac_ext=f
  58077. +dnl func_dirname_and_basename
  58078. +dnl A portable version of this function is already defined in general.m4sh
  58079. +dnl so there is no need for it here.
  58080. -# Object file extension for compiled f77 test sources.
  58081. -objext=o
  58082. -_LT_TAGVAR(objext, $1)=$objext
  58083. +# func_stripname prefix suffix name
  58084. +# strip PREFIX and SUFFIX off of NAME.
  58085. +# PREFIX and SUFFIX must not contain globbing or regex special
  58086. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  58087. +# dot (in which case that matches only a dot).
  58088. +# func_strip_suffix prefix name
  58089. +func_stripname ()
  58090. +{
  58091. + case ${2} in
  58092. + .*) func_stripname_result=`$ECHO "X${3}" \
  58093. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  58094. + *) func_stripname_result=`$ECHO "X${3}" \
  58095. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  58096. + esac
  58097. +}
  58098. -# No sense in running all these tests if we already determined that
  58099. -# the F77 compiler isn't working. Some variables (like enable_shared)
  58100. -# are currently assumed to apply to all compilers on this platform,
  58101. -# and will be corrupted by setting them based on a non-working compiler.
  58102. -if test "$_lt_disable_F77" != yes; then
  58103. - # Code to be used in simple compile tests
  58104. - lt_simple_compile_test_code="\
  58105. - subroutine t
  58106. - return
  58107. - end
  58108. -"
  58109. +# sed scripts:
  58110. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  58111. +my_sed_long_arg='1s/^-[[^=]]*=//'
  58112. - # Code to be used in simple link tests
  58113. - lt_simple_link_test_code="\
  58114. - program t
  58115. - end
  58116. -"
  58117. +# func_opt_split
  58118. +func_opt_split ()
  58119. +{
  58120. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  58121. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  58122. +}
  58123. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  58124. - _LT_TAG_COMPILER
  58125. +# func_lo2o object
  58126. +func_lo2o ()
  58127. +{
  58128. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  58129. +}
  58130. - # save warnings/boilerplate of simple test code
  58131. - _LT_COMPILER_BOILERPLATE
  58132. - _LT_LINKER_BOILERPLATE
  58133. +# func_xform libobj-or-source
  58134. +func_xform ()
  58135. +{
  58136. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  58137. +}
  58138. - # Allow CC to be a program name with arguments.
  58139. - lt_save_CC="$CC"
  58140. - lt_save_GCC=$GCC
  58141. - CC=${F77-"f77"}
  58142. - compiler=$CC
  58143. - _LT_TAGVAR(compiler, $1)=$CC
  58144. - _LT_CC_BASENAME([$compiler])
  58145. - GCC=$G77
  58146. - if test -n "$compiler"; then
  58147. - AC_MSG_CHECKING([if libtool supports shared libraries])
  58148. - AC_MSG_RESULT([$can_build_shared])
  58149. +# func_arith arithmetic-term...
  58150. +func_arith ()
  58151. +{
  58152. + func_arith_result=`expr "$[@]"`
  58153. +}
  58154. - AC_MSG_CHECKING([whether to build shared libraries])
  58155. - test "$can_build_shared" = "no" && enable_shared=no
  58156. +# func_len string
  58157. +# STRING may not start with a hyphen.
  58158. +func_len ()
  58159. +{
  58160. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  58161. +}
  58162. - # On AIX, shared libraries and static libraries use the same namespace, and
  58163. - # are all built from PIC.
  58164. - case $host_os in
  58165. - aix3*)
  58166. - test "$enable_shared" = yes && enable_static=no
  58167. - if test -n "$RANLIB"; then
  58168. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  58169. - postinstall_cmds='$RANLIB $lib'
  58170. - fi
  58171. - ;;
  58172. - aix[[4-9]]*)
  58173. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  58174. - test "$enable_shared" = yes && enable_static=no
  58175. - fi
  58176. - ;;
  58177. - esac
  58178. - AC_MSG_RESULT([$enable_shared])
  58179. +_LT_EOF
  58180. +esac
  58181. - AC_MSG_CHECKING([whether to build static libraries])
  58182. - # Make sure either enable_shared or enable_static is yes.
  58183. - test "$enable_shared" = yes || enable_static=yes
  58184. - AC_MSG_RESULT([$enable_static])
  58185. +case $lt_shell_append in
  58186. + yes)
  58187. + cat << \_LT_EOF >> "$cfgfile"
  58188. - _LT_TAGVAR(GCC, $1)="$G77"
  58189. - _LT_TAGVAR(LD, $1)="$LD"
  58190. +# func_append var value
  58191. +# Append VALUE to the end of shell variable VAR.
  58192. +func_append ()
  58193. +{
  58194. + eval "$[1]+=\$[2]"
  58195. +}
  58196. +_LT_EOF
  58197. + ;;
  58198. + *)
  58199. + cat << \_LT_EOF >> "$cfgfile"
  58200. - ## CAVEAT EMPTOR:
  58201. - ## There is no encapsulation within the following macros, do not change
  58202. - ## the running order or otherwise move them around unless you know exactly
  58203. - ## what you are doing...
  58204. - _LT_COMPILER_PIC($1)
  58205. - _LT_COMPILER_C_O($1)
  58206. - _LT_COMPILER_FILE_LOCKS($1)
  58207. - _LT_LINKER_SHLIBS($1)
  58208. - _LT_SYS_DYNAMIC_LINKER($1)
  58209. - _LT_LINKER_HARDCODE_LIBPATH($1)
  58210. +# func_append var value
  58211. +# Append VALUE to the end of shell variable VAR.
  58212. +func_append ()
  58213. +{
  58214. + eval "$[1]=\$$[1]\$[2]"
  58215. +}
  58216. - _LT_CONFIG($1)
  58217. - fi # test -n "$compiler"
  58218. +_LT_EOF
  58219. + ;;
  58220. + esac
  58221. +])
  58222. - GCC=$lt_save_GCC
  58223. - CC="$lt_save_CC"
  58224. -fi # test "$_lt_disable_F77" != yes
  58225. +# Helper functions for option handling. -*- Autoconf -*-
  58226. +#
  58227. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  58228. +# Written by Gary V. Vaughan, 2004
  58229. +#
  58230. +# This file is free software; the Free Software Foundation gives
  58231. +# unlimited permission to copy and/or distribute it, with or without
  58232. +# modifications, as long as this notice is preserved.
  58233. -AC_LANG_POP
  58234. -])# _LT_LANG_F77_CONFIG
  58235. +# serial 6 ltoptions.m4
  58236. +# This is to help aclocal find these macros, as it can't see m4_define.
  58237. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  58238. -# _LT_PROG_FC
  58239. -# -----------
  58240. -# Since AC_PROG_FC is broken, in that it returns the empty string
  58241. -# if there is no fortran compiler, we have our own version here.
  58242. -m4_defun([_LT_PROG_FC],
  58243. -[
  58244. -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  58245. -AC_PROG_FC
  58246. -if test -z "$FC" || test "X$FC" = "Xno"; then
  58247. - _lt_disable_FC=yes
  58248. -fi
  58249. -popdef([AC_MSG_ERROR])
  58250. -])# _LT_PROG_FC
  58251. -dnl aclocal-1.4 backwards compatibility:
  58252. -dnl AC_DEFUN([_LT_PROG_FC], [])
  58253. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  58254. +# ------------------------------------------
  58255. +m4_define([_LT_MANGLE_OPTION],
  58256. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  58257. -# _LT_LANG_FC_CONFIG([TAG])
  58258. -# -------------------------
  58259. -# Ensure that the configuration variables for a Fortran compiler are
  58260. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  58261. -# to write the compiler configuration to `libtool'.
  58262. -m4_defun([_LT_LANG_FC_CONFIG],
  58263. -[AC_REQUIRE([_LT_PROG_FC])dnl
  58264. -AC_LANG_PUSH(Fortran)
  58265. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  58266. +# ---------------------------------------
  58267. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  58268. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  58269. +# saved as a flag.
  58270. +m4_define([_LT_SET_OPTION],
  58271. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  58272. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  58273. + _LT_MANGLE_DEFUN([$1], [$2]),
  58274. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  58275. +])
  58276. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58277. -_LT_TAGVAR(allow_undefined_flag, $1)=
  58278. -_LT_TAGVAR(always_export_symbols, $1)=no
  58279. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  58280. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  58281. -_LT_TAGVAR(hardcode_direct, $1)=no
  58282. -_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  58283. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  58284. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  58285. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  58286. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  58287. -_LT_TAGVAR(hardcode_automatic, $1)=no
  58288. -_LT_TAGVAR(inherit_rpath, $1)=no
  58289. -_LT_TAGVAR(module_cmds, $1)=
  58290. -_LT_TAGVAR(module_expsym_cmds, $1)=
  58291. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  58292. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  58293. -_LT_TAGVAR(no_undefined_flag, $1)=
  58294. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  58295. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  58296. -# Source file extension for fc test sources.
  58297. -ac_ext=${ac_fc_srcext-f}
  58298. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  58299. +# ------------------------------------------------------------
  58300. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  58301. +m4_define([_LT_IF_OPTION],
  58302. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  58303. -# Object file extension for compiled fc test sources.
  58304. -objext=o
  58305. -_LT_TAGVAR(objext, $1)=$objext
  58306. -# No sense in running all these tests if we already determined that
  58307. -# the FC compiler isn't working. Some variables (like enable_shared)
  58308. -# are currently assumed to apply to all compilers on this platform,
  58309. -# and will be corrupted by setting them based on a non-working compiler.
  58310. -if test "$_lt_disable_FC" != yes; then
  58311. - # Code to be used in simple compile tests
  58312. - lt_simple_compile_test_code="\
  58313. - subroutine t
  58314. - return
  58315. - end
  58316. -"
  58317. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  58318. +# -------------------------------------------------------
  58319. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  58320. +# are set.
  58321. +m4_define([_LT_UNLESS_OPTIONS],
  58322. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  58323. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  58324. + [m4_define([$0_found])])])[]dnl
  58325. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  58326. +])[]dnl
  58327. +])
  58328. +
  58329. +
  58330. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  58331. +# ----------------------------------------
  58332. +# OPTION-LIST is a space-separated list of Libtool options associated
  58333. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  58334. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  58335. +# the unknown option and exit.
  58336. +m4_defun([_LT_SET_OPTIONS],
  58337. +[# Set options
  58338. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  58339. + [_LT_SET_OPTION([$1], _LT_Option)])
  58340. - # Code to be used in simple link tests
  58341. - lt_simple_link_test_code="\
  58342. - program t
  58343. - end
  58344. -"
  58345. +m4_if([$1],[LT_INIT],[
  58346. + dnl
  58347. + dnl Simply set some default values (i.e off) if boolean options were not
  58348. + dnl specified:
  58349. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  58350. + ])
  58351. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  58352. + ])
  58353. + dnl
  58354. + dnl If no reference was made to various pairs of opposing options, then
  58355. + dnl we run the default mode handler for the pair. For example, if neither
  58356. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  58357. + dnl archives by default:
  58358. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  58359. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  58360. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  58361. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  58362. + [_LT_ENABLE_FAST_INSTALL])
  58363. + ])
  58364. +])# _LT_SET_OPTIONS
  58365. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  58366. - _LT_TAG_COMPILER
  58367. - # save warnings/boilerplate of simple test code
  58368. - _LT_COMPILER_BOILERPLATE
  58369. - _LT_LINKER_BOILERPLATE
  58370. - # Allow CC to be a program name with arguments.
  58371. - lt_save_CC="$CC"
  58372. - lt_save_GCC=$GCC
  58373. - CC=${FC-"f95"}
  58374. - compiler=$CC
  58375. - GCC=$ac_cv_fc_compiler_gnu
  58376. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  58377. +# -----------------------------------------
  58378. +m4_define([_LT_MANGLE_DEFUN],
  58379. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  58380. - _LT_TAGVAR(compiler, $1)=$CC
  58381. - _LT_CC_BASENAME([$compiler])
  58382. - if test -n "$compiler"; then
  58383. - AC_MSG_CHECKING([if libtool supports shared libraries])
  58384. - AC_MSG_RESULT([$can_build_shared])
  58385. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  58386. +# -----------------------------------------------
  58387. +m4_define([LT_OPTION_DEFINE],
  58388. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  58389. +])# LT_OPTION_DEFINE
  58390. - AC_MSG_CHECKING([whether to build shared libraries])
  58391. - test "$can_build_shared" = "no" && enable_shared=no
  58392. - # On AIX, shared libraries and static libraries use the same namespace, and
  58393. - # are all built from PIC.
  58394. - case $host_os in
  58395. - aix3*)
  58396. - test "$enable_shared" = yes && enable_static=no
  58397. - if test -n "$RANLIB"; then
  58398. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  58399. - postinstall_cmds='$RANLIB $lib'
  58400. - fi
  58401. - ;;
  58402. - aix[[4-9]]*)
  58403. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  58404. - test "$enable_shared" = yes && enable_static=no
  58405. - fi
  58406. - ;;
  58407. - esac
  58408. - AC_MSG_RESULT([$enable_shared])
  58409. +# dlopen
  58410. +# ------
  58411. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  58412. +])
  58413. - AC_MSG_CHECKING([whether to build static libraries])
  58414. - # Make sure either enable_shared or enable_static is yes.
  58415. - test "$enable_shared" = yes || enable_static=yes
  58416. - AC_MSG_RESULT([$enable_static])
  58417. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  58418. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  58419. +AC_DIAGNOSE([obsolete],
  58420. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  58421. +put the `dlopen' option into LT_INIT's first parameter.])
  58422. +])
  58423. - _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  58424. - _LT_TAGVAR(LD, $1)="$LD"
  58425. +dnl aclocal-1.4 backwards compatibility:
  58426. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  58427. - ## CAVEAT EMPTOR:
  58428. - ## There is no encapsulation within the following macros, do not change
  58429. - ## the running order or otherwise move them around unless you know exactly
  58430. - ## what you are doing...
  58431. - _LT_SYS_HIDDEN_LIBDEPS($1)
  58432. - _LT_COMPILER_PIC($1)
  58433. - _LT_COMPILER_C_O($1)
  58434. - _LT_COMPILER_FILE_LOCKS($1)
  58435. - _LT_LINKER_SHLIBS($1)
  58436. - _LT_SYS_DYNAMIC_LINKER($1)
  58437. - _LT_LINKER_HARDCODE_LIBPATH($1)
  58438. - _LT_CONFIG($1)
  58439. - fi # test -n "$compiler"
  58440. +# win32-dll
  58441. +# ---------
  58442. +# Declare package support for building win32 dll's.
  58443. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  58444. +[enable_win32_dll=yes
  58445. - GCC=$lt_save_GCC
  58446. - CC="$lt_save_CC"
  58447. -fi # test "$_lt_disable_FC" != yes
  58448. +case $host in
  58449. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  58450. + AC_CHECK_TOOL(AS, as, false)
  58451. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  58452. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  58453. + ;;
  58454. +esac
  58455. -AC_LANG_POP
  58456. -])# _LT_LANG_FC_CONFIG
  58457. +test -z "$AS" && AS=as
  58458. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  58459. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  58460. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  58461. -# _LT_LANG_GCJ_CONFIG([TAG])
  58462. -# --------------------------
  58463. -# Ensure that the configuration variables for the GNU Java Compiler compiler
  58464. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  58465. -# to write the compiler configuration to `libtool'.
  58466. -m4_defun([_LT_LANG_GCJ_CONFIG],
  58467. -[AC_REQUIRE([LT_PROG_GCJ])dnl
  58468. -AC_LANG_SAVE
  58469. +test -z "$OBJDUMP" && OBJDUMP=objdump
  58470. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  58471. +])# win32-dll
  58472. -# Source file extension for Java test sources.
  58473. -ac_ext=java
  58474. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  58475. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  58476. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  58477. +AC_DIAGNOSE([obsolete],
  58478. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  58479. +put the `win32-dll' option into LT_INIT's first parameter.])
  58480. +])
  58481. -# Object file extension for compiled Java test sources.
  58482. -objext=o
  58483. -_LT_TAGVAR(objext, $1)=$objext
  58484. +dnl aclocal-1.4 backwards compatibility:
  58485. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  58486. -# Code to be used in simple compile tests
  58487. -lt_simple_compile_test_code="class foo {}"
  58488. -# Code to be used in simple link tests
  58489. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  58490. +# _LT_ENABLE_SHARED([DEFAULT])
  58491. +# ----------------------------
  58492. +# implement the --enable-shared flag, and supports the `shared' and
  58493. +# `disable-shared' LT_INIT options.
  58494. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  58495. +m4_define([_LT_ENABLE_SHARED],
  58496. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  58497. +AC_ARG_ENABLE([shared],
  58498. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  58499. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  58500. + [p=${PACKAGE-default}
  58501. + case $enableval in
  58502. + yes) enable_shared=yes ;;
  58503. + no) enable_shared=no ;;
  58504. + *)
  58505. + enable_shared=no
  58506. + # Look at the argument we got. We use all the common list separators.
  58507. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  58508. + for pkg in $enableval; do
  58509. + IFS="$lt_save_ifs"
  58510. + if test "X$pkg" = "X$p"; then
  58511. + enable_shared=yes
  58512. + fi
  58513. + done
  58514. + IFS="$lt_save_ifs"
  58515. + ;;
  58516. + esac],
  58517. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  58518. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  58519. -_LT_TAG_COMPILER
  58520. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  58521. + [Whether or not to build shared libraries])
  58522. +])# _LT_ENABLE_SHARED
  58523. -# save warnings/boilerplate of simple test code
  58524. -_LT_COMPILER_BOILERPLATE
  58525. -_LT_LINKER_BOILERPLATE
  58526. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  58527. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  58528. -# Allow CC to be a program name with arguments.
  58529. -lt_save_CC="$CC"
  58530. -lt_save_GCC=$GCC
  58531. -GCC=yes
  58532. -CC=${GCJ-"gcj"}
  58533. -compiler=$CC
  58534. -_LT_TAGVAR(compiler, $1)=$CC
  58535. -_LT_TAGVAR(LD, $1)="$LD"
  58536. -_LT_CC_BASENAME([$compiler])
  58537. +# Old names:
  58538. +AC_DEFUN([AC_ENABLE_SHARED],
  58539. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  58540. +])
  58541. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  58542. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58543. +AC_DEFUN([AC_DISABLE_SHARED],
  58544. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  58545. +])
  58546. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  58547. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  58548. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  58549. -if test -n "$compiler"; then
  58550. - _LT_COMPILER_NO_RTTI($1)
  58551. - _LT_COMPILER_PIC($1)
  58552. - _LT_COMPILER_C_O($1)
  58553. - _LT_COMPILER_FILE_LOCKS($1)
  58554. - _LT_LINKER_SHLIBS($1)
  58555. - _LT_LINKER_HARDCODE_LIBPATH($1)
  58556. +dnl aclocal-1.4 backwards compatibility:
  58557. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  58558. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  58559. - _LT_CONFIG($1)
  58560. -fi
  58561. -AC_LANG_RESTORE
  58562. -GCC=$lt_save_GCC
  58563. -CC="$lt_save_CC"
  58564. -])# _LT_LANG_GCJ_CONFIG
  58565. +# _LT_ENABLE_STATIC([DEFAULT])
  58566. +# ----------------------------
  58567. +# implement the --enable-static flag, and support the `static' and
  58568. +# `disable-static' LT_INIT options.
  58569. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  58570. +m4_define([_LT_ENABLE_STATIC],
  58571. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  58572. +AC_ARG_ENABLE([static],
  58573. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  58574. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  58575. + [p=${PACKAGE-default}
  58576. + case $enableval in
  58577. + yes) enable_static=yes ;;
  58578. + no) enable_static=no ;;
  58579. + *)
  58580. + enable_static=no
  58581. + # Look at the argument we got. We use all the common list separators.
  58582. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  58583. + for pkg in $enableval; do
  58584. + IFS="$lt_save_ifs"
  58585. + if test "X$pkg" = "X$p"; then
  58586. + enable_static=yes
  58587. + fi
  58588. + done
  58589. + IFS="$lt_save_ifs"
  58590. + ;;
  58591. + esac],
  58592. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  58593. + _LT_DECL([build_old_libs], [enable_static], [0],
  58594. + [Whether or not to build static libraries])
  58595. +])# _LT_ENABLE_STATIC
  58596. -# _LT_LANG_RC_CONFIG([TAG])
  58597. -# -------------------------
  58598. -# Ensure that the configuration variables for the Windows resource compiler
  58599. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  58600. -# to write the compiler configuration to `libtool'.
  58601. -m4_defun([_LT_LANG_RC_CONFIG],
  58602. -[AC_REQUIRE([LT_PROG_RC])dnl
  58603. -AC_LANG_SAVE
  58604. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  58605. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  58606. -# Source file extension for RC test sources.
  58607. -ac_ext=rc
  58608. +# Old names:
  58609. +AC_DEFUN([AC_ENABLE_STATIC],
  58610. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  58611. +])
  58612. -# Object file extension for compiled RC test sources.
  58613. -objext=o
  58614. -_LT_TAGVAR(objext, $1)=$objext
  58615. +AC_DEFUN([AC_DISABLE_STATIC],
  58616. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  58617. +])
  58618. -# Code to be used in simple compile tests
  58619. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  58620. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  58621. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  58622. -# Code to be used in simple link tests
  58623. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  58624. +dnl aclocal-1.4 backwards compatibility:
  58625. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  58626. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  58627. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  58628. -_LT_TAG_COMPILER
  58629. -# save warnings/boilerplate of simple test code
  58630. -_LT_COMPILER_BOILERPLATE
  58631. -_LT_LINKER_BOILERPLATE
  58632. -# Allow CC to be a program name with arguments.
  58633. -lt_save_CC="$CC"
  58634. -lt_save_GCC=$GCC
  58635. -GCC=
  58636. -CC=${RC-"windres"}
  58637. -compiler=$CC
  58638. -_LT_TAGVAR(compiler, $1)=$CC
  58639. -_LT_CC_BASENAME([$compiler])
  58640. -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  58641. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  58642. +# ----------------------------------
  58643. +# implement the --enable-fast-install flag, and support the `fast-install'
  58644. +# and `disable-fast-install' LT_INIT options.
  58645. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  58646. +m4_define([_LT_ENABLE_FAST_INSTALL],
  58647. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  58648. +AC_ARG_ENABLE([fast-install],
  58649. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  58650. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  58651. + [p=${PACKAGE-default}
  58652. + case $enableval in
  58653. + yes) enable_fast_install=yes ;;
  58654. + no) enable_fast_install=no ;;
  58655. + *)
  58656. + enable_fast_install=no
  58657. + # Look at the argument we got. We use all the common list separators.
  58658. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  58659. + for pkg in $enableval; do
  58660. + IFS="$lt_save_ifs"
  58661. + if test "X$pkg" = "X$p"; then
  58662. + enable_fast_install=yes
  58663. + fi
  58664. + done
  58665. + IFS="$lt_save_ifs"
  58666. + ;;
  58667. + esac],
  58668. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  58669. -if test -n "$compiler"; then
  58670. - :
  58671. - _LT_CONFIG($1)
  58672. -fi
  58673. +_LT_DECL([fast_install], [enable_fast_install], [0],
  58674. + [Whether or not to optimize for fast installation])dnl
  58675. +])# _LT_ENABLE_FAST_INSTALL
  58676. -GCC=$lt_save_GCC
  58677. -AC_LANG_RESTORE
  58678. -CC="$lt_save_CC"
  58679. -])# _LT_LANG_RC_CONFIG
  58680. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  58681. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  58682. +# Old names:
  58683. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  58684. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  58685. +AC_DIAGNOSE([obsolete],
  58686. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  58687. +the `fast-install' option into LT_INIT's first parameter.])
  58688. +])
  58689. -# LT_PROG_GCJ
  58690. -# -----------
  58691. -AC_DEFUN([LT_PROG_GCJ],
  58692. -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  58693. - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  58694. - [AC_CHECK_TOOL(GCJ, gcj,)
  58695. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  58696. - AC_SUBST(GCJFLAGS)])])[]dnl
  58697. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  58698. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  58699. +AC_DIAGNOSE([obsolete],
  58700. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  58701. +the `disable-fast-install' option into LT_INIT's first parameter.])
  58702. ])
  58703. -# Old name:
  58704. -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  58705. dnl aclocal-1.4 backwards compatibility:
  58706. -dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  58707. -
  58708. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  58709. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  58710. -# LT_PROG_RC
  58711. -# ----------
  58712. -AC_DEFUN([LT_PROG_RC],
  58713. -[AC_CHECK_TOOL(RC, windres,)
  58714. -])
  58715. -# Old name:
  58716. -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  58717. -dnl aclocal-1.4 backwards compatibility:
  58718. -dnl AC_DEFUN([LT_AC_PROG_RC], [])
  58719. +# _LT_WITH_PIC([MODE])
  58720. +# --------------------
  58721. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  58722. +# LT_INIT options.
  58723. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  58724. +m4_define([_LT_WITH_PIC],
  58725. +[AC_ARG_WITH([pic],
  58726. + [AS_HELP_STRING([--with-pic],
  58727. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  58728. + [pic_mode="$withval"],
  58729. + [pic_mode=default])
  58730. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  58731. -# _LT_DECL_EGREP
  58732. -# --------------
  58733. -# If we don't have a new enough Autoconf to choose the best grep
  58734. -# available, choose the one first in the user's PATH.
  58735. -m4_defun([_LT_DECL_EGREP],
  58736. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  58737. -AC_REQUIRE([AC_PROG_FGREP])dnl
  58738. -test -z "$GREP" && GREP=grep
  58739. -_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  58740. -_LT_DECL([], [EGREP], [1], [An ERE matcher])
  58741. -_LT_DECL([], [FGREP], [1], [A literal string matcher])
  58742. -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  58743. -AC_SUBST([GREP])
  58744. -])
  58745. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  58746. +])# _LT_WITH_PIC
  58747. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  58748. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  58749. -# _LT_DECL_OBJDUMP
  58750. -# --------------
  58751. -# If we don't have a new enough Autoconf to choose the best objdump
  58752. -# available, choose the one first in the user's PATH.
  58753. -m4_defun([_LT_DECL_OBJDUMP],
  58754. -[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  58755. -test -z "$OBJDUMP" && OBJDUMP=objdump
  58756. -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  58757. -AC_SUBST([OBJDUMP])
  58758. +# Old name:
  58759. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  58760. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  58761. +AC_DIAGNOSE([obsolete],
  58762. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  58763. +put the `pic-only' option into LT_INIT's first parameter.])
  58764. ])
  58765. +dnl aclocal-1.4 backwards compatibility:
  58766. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  58767. -# _LT_DECL_SED
  58768. -# ------------
  58769. -# Check for a fully-functional sed program, that truncates
  58770. -# as few characters as possible. Prefer GNU sed if found.
  58771. -m4_defun([_LT_DECL_SED],
  58772. -[AC_PROG_SED
  58773. -test -z "$SED" && SED=sed
  58774. -Xsed="$SED -e 1s/^X//"
  58775. -_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  58776. -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  58777. - [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  58778. -])# _LT_DECL_SED
  58779. -m4_ifndef([AC_PROG_SED], [
  58780. -# NOTE: This macro has been submitted for inclusion into #
  58781. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  58782. -# a released version of Autoconf we should remove this #
  58783. -# macro and use it instead. #
  58784. +m4_define([_LTDL_MODE], [])
  58785. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  58786. + [m4_define([_LTDL_MODE], [nonrecursive])])
  58787. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  58788. + [m4_define([_LTDL_MODE], [recursive])])
  58789. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  58790. + [m4_define([_LTDL_MODE], [subproject])])
  58791. -m4_defun([AC_PROG_SED],
  58792. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  58793. -AC_CACHE_VAL(lt_cv_path_SED,
  58794. -[# Loop through the user's path and test for sed and gsed.
  58795. -# Then use that list of sed's as ones to test for truncation.
  58796. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58797. -for as_dir in $PATH
  58798. -do
  58799. - IFS=$as_save_IFS
  58800. - test -z "$as_dir" && as_dir=.
  58801. - for lt_ac_prog in sed gsed; do
  58802. - for ac_exec_ext in '' $ac_executable_extensions; do
  58803. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  58804. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  58805. - fi
  58806. - done
  58807. - done
  58808. -done
  58809. -IFS=$as_save_IFS
  58810. -lt_ac_max=0
  58811. -lt_ac_count=0
  58812. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  58813. -# along with /bin/sed that truncates output.
  58814. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  58815. - test ! -f $lt_ac_sed && continue
  58816. - cat /dev/null > conftest.in
  58817. - lt_ac_count=0
  58818. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  58819. - # Check for GNU sed and select it if it is found.
  58820. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  58821. - lt_cv_path_SED=$lt_ac_sed
  58822. - break
  58823. - fi
  58824. - while true; do
  58825. - cat conftest.in conftest.in >conftest.tmp
  58826. - mv conftest.tmp conftest.in
  58827. - cp conftest.in conftest.nl
  58828. - echo >>conftest.nl
  58829. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  58830. - cmp -s conftest.out conftest.nl || break
  58831. - # 10000 chars as input seems more than enough
  58832. - test $lt_ac_count -gt 10 && break
  58833. - lt_ac_count=`expr $lt_ac_count + 1`
  58834. - if test $lt_ac_count -gt $lt_ac_max; then
  58835. - lt_ac_max=$lt_ac_count
  58836. - lt_cv_path_SED=$lt_ac_sed
  58837. - fi
  58838. - done
  58839. -done
  58840. -])
  58841. -SED=$lt_cv_path_SED
  58842. -AC_SUBST([SED])
  58843. -AC_MSG_RESULT([$SED])
  58844. -])#AC_PROG_SED
  58845. -])#m4_ifndef
  58846. +m4_define([_LTDL_TYPE], [])
  58847. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  58848. + [m4_define([_LTDL_TYPE], [installable])])
  58849. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  58850. + [m4_define([_LTDL_TYPE], [convenience])])
  58851. -# Old name:
  58852. -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  58853. -dnl aclocal-1.4 backwards compatibility:
  58854. -dnl AC_DEFUN([LT_AC_PROG_SED], [])
  58855. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  58856. +#
  58857. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  58858. +# Written by Gary V. Vaughan, 2004
  58859. +#
  58860. +# This file is free software; the Free Software Foundation gives
  58861. +# unlimited permission to copy and/or distribute it, with or without
  58862. +# modifications, as long as this notice is preserved.
  58863. +# serial 6 ltsugar.m4
  58864. -# _LT_CHECK_SHELL_FEATURES
  58865. -# ------------------------
  58866. -# Find out whether the shell is Bourne or XSI compatible,
  58867. -# or has some other useful features.
  58868. -m4_defun([_LT_CHECK_SHELL_FEATURES],
  58869. -[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  58870. -# Try some XSI features
  58871. -xsi_shell=no
  58872. -( _lt_dummy="a/b/c"
  58873. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  58874. - = c,a/b,, \
  58875. - && eval 'test $(( 1 + 1 )) -eq 2 \
  58876. - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  58877. - && xsi_shell=yes
  58878. -AC_MSG_RESULT([$xsi_shell])
  58879. -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  58880. +# This is to help aclocal find these macros, as it can't see m4_define.
  58881. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  58882. -AC_MSG_CHECKING([whether the shell understands "+="])
  58883. -lt_shell_append=no
  58884. -( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  58885. - >/dev/null 2>&1 \
  58886. - && lt_shell_append=yes
  58887. -AC_MSG_RESULT([$lt_shell_append])
  58888. -_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  58889. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  58890. - lt_unset=unset
  58891. -else
  58892. - lt_unset=false
  58893. -fi
  58894. -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  58895. +# lt_join(SEP, ARG1, [ARG2...])
  58896. +# -----------------------------
  58897. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  58898. +# associated separator.
  58899. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  58900. +# versions in m4sugar had bugs.
  58901. +m4_define([lt_join],
  58902. +[m4_if([$#], [1], [],
  58903. + [$#], [2], [[$2]],
  58904. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  58905. +m4_define([_lt_join],
  58906. +[m4_if([$#$2], [2], [],
  58907. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  58908. -# test EBCDIC or ASCII
  58909. -case `echo X|tr X '\101'` in
  58910. - A) # ASCII based system
  58911. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  58912. - lt_SP2NL='tr \040 \012'
  58913. - lt_NL2SP='tr \015\012 \040\040'
  58914. - ;;
  58915. - *) # EBCDIC based system
  58916. - lt_SP2NL='tr \100 \n'
  58917. - lt_NL2SP='tr \r\n \100\100'
  58918. - ;;
  58919. -esac
  58920. -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  58921. -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  58922. -])# _LT_CHECK_SHELL_FEATURES
  58923. +# lt_car(LIST)
  58924. +# lt_cdr(LIST)
  58925. +# ------------
  58926. +# Manipulate m4 lists.
  58927. +# These macros are necessary as long as will still need to support
  58928. +# Autoconf-2.59 which quotes differently.
  58929. +m4_define([lt_car], [[$1]])
  58930. +m4_define([lt_cdr],
  58931. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  58932. + [$#], 1, [],
  58933. + [m4_dquote(m4_shift($@))])])
  58934. +m4_define([lt_unquote], $1)
  58935. -# _LT_PROG_XSI_SHELLFNS
  58936. -# ---------------------
  58937. -# Bourne and XSI compatible variants of some useful shell functions.
  58938. -m4_defun([_LT_PROG_XSI_SHELLFNS],
  58939. -[case $xsi_shell in
  58940. - yes)
  58941. - cat << \_LT_EOF >> "$cfgfile"
  58942. -# func_dirname file append nondir_replacement
  58943. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  58944. -# otherwise set result to NONDIR_REPLACEMENT.
  58945. -func_dirname ()
  58946. -{
  58947. - case ${1} in
  58948. - */*) func_dirname_result="${1%/*}${2}" ;;
  58949. - * ) func_dirname_result="${3}" ;;
  58950. - esac
  58951. -}
  58952. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  58953. +# ------------------------------------------
  58954. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  58955. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  58956. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  58957. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  58958. +# than defined and empty).
  58959. +#
  58960. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  58961. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  58962. +m4_define([lt_append],
  58963. +[m4_define([$1],
  58964. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  58965. -# func_basename file
  58966. -func_basename ()
  58967. -{
  58968. - func_basename_result="${1##*/}"
  58969. -}
  58970. -# func_dirname_and_basename file append nondir_replacement
  58971. -# perform func_basename and func_dirname in a single function
  58972. -# call:
  58973. -# dirname: Compute the dirname of FILE. If nonempty,
  58974. -# add APPEND to the result, otherwise set result
  58975. -# to NONDIR_REPLACEMENT.
  58976. -# value returned in "$func_dirname_result"
  58977. -# basename: Compute filename of FILE.
  58978. -# value retuned in "$func_basename_result"
  58979. -# Implementation must be kept synchronized with func_dirname
  58980. -# and func_basename. For efficiency, we do not delegate to
  58981. -# those functions but instead duplicate the functionality here.
  58982. -func_dirname_and_basename ()
  58983. -{
  58984. - case ${1} in
  58985. - */*) func_dirname_result="${1%/*}${2}" ;;
  58986. - * ) func_dirname_result="${3}" ;;
  58987. - esac
  58988. - func_basename_result="${1##*/}"
  58989. -}
  58990. -# func_stripname prefix suffix name
  58991. -# strip PREFIX and SUFFIX off of NAME.
  58992. -# PREFIX and SUFFIX must not contain globbing or regex special
  58993. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  58994. -# dot (in which case that matches only a dot).
  58995. -func_stripname ()
  58996. -{
  58997. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  58998. - # positional parameters, so assign one to ordinary parameter first.
  58999. - func_stripname_result=${3}
  59000. - func_stripname_result=${func_stripname_result#"${1}"}
  59001. - func_stripname_result=${func_stripname_result%"${2}"}
  59002. -}
  59003. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  59004. +# ----------------------------------------------------------
  59005. +# Produce a SEP delimited list of all paired combinations of elements of
  59006. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  59007. +# has the form PREFIXmINFIXSUFFIXn.
  59008. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  59009. +m4_define([lt_combine],
  59010. +[m4_if(m4_eval([$# > 3]), [1],
  59011. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  59012. +[[m4_foreach([_Lt_prefix], [$2],
  59013. + [m4_foreach([_Lt_suffix],
  59014. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  59015. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  59016. -# func_opt_split
  59017. -func_opt_split ()
  59018. -{
  59019. - func_opt_split_opt=${1%%=*}
  59020. - func_opt_split_arg=${1#*=}
  59021. -}
  59022. -# func_lo2o object
  59023. -func_lo2o ()
  59024. -{
  59025. - case ${1} in
  59026. - *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  59027. - *) func_lo2o_result=${1} ;;
  59028. - esac
  59029. -}
  59030. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  59031. +# -----------------------------------------------------------------------
  59032. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  59033. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  59034. +m4_define([lt_if_append_uniq],
  59035. +[m4_ifdef([$1],
  59036. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  59037. + [lt_append([$1], [$2], [$3])$4],
  59038. + [$5])],
  59039. + [lt_append([$1], [$2], [$3])$4])])
  59040. -# func_xform libobj-or-source
  59041. -func_xform ()
  59042. -{
  59043. - func_xform_result=${1%.*}.lo
  59044. -}
  59045. -# func_arith arithmetic-term...
  59046. -func_arith ()
  59047. -{
  59048. - func_arith_result=$(( $[*] ))
  59049. -}
  59050. +# lt_dict_add(DICT, KEY, VALUE)
  59051. +# -----------------------------
  59052. +m4_define([lt_dict_add],
  59053. +[m4_define([$1($2)], [$3])])
  59054. -# func_len string
  59055. -# STRING may not start with a hyphen.
  59056. -func_len ()
  59057. -{
  59058. - func_len_result=${#1}
  59059. -}
  59060. -_LT_EOF
  59061. - ;;
  59062. - *) # Bourne compatible functions.
  59063. - cat << \_LT_EOF >> "$cfgfile"
  59064. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  59065. +# --------------------------------------------
  59066. +m4_define([lt_dict_add_subkey],
  59067. +[m4_define([$1($2:$3)], [$4])])
  59068. +
  59069. +
  59070. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  59071. +# ----------------------------------
  59072. +m4_define([lt_dict_fetch],
  59073. +[m4_ifval([$3],
  59074. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  59075. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  59076. +
  59077. +
  59078. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  59079. +# -----------------------------------------------------------------
  59080. +m4_define([lt_if_dict_fetch],
  59081. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  59082. + [$5],
  59083. + [$6])])
  59084. +
  59085. +
  59086. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  59087. +# --------------------------------------------------------------
  59088. +m4_define([lt_dict_filter],
  59089. +[m4_if([$5], [], [],
  59090. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  59091. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  59092. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  59093. +])
  59094. +
  59095. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  59096. +#
  59097. +# Copyright (C) 2004 Free Software Foundation, Inc.
  59098. +# Written by Scott James Remnant, 2004
  59099. +#
  59100. +# This file is free software; the Free Software Foundation gives
  59101. +# unlimited permission to copy and/or distribute it, with or without
  59102. +# modifications, as long as this notice is preserved.
  59103. -# func_dirname file append nondir_replacement
  59104. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  59105. -# otherwise set result to NONDIR_REPLACEMENT.
  59106. -func_dirname ()
  59107. -{
  59108. - # Extract subdirectory from the argument.
  59109. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  59110. - if test "X$func_dirname_result" = "X${1}"; then
  59111. - func_dirname_result="${3}"
  59112. - else
  59113. - func_dirname_result="$func_dirname_result${2}"
  59114. - fi
  59115. -}
  59116. +# Generated from ltversion.in.
  59117. -# func_basename file
  59118. -func_basename ()
  59119. -{
  59120. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  59121. -}
  59122. +# serial 3017 ltversion.m4
  59123. +# This file is part of GNU Libtool
  59124. -dnl func_dirname_and_basename
  59125. -dnl A portable version of this function is already defined in general.m4sh
  59126. -dnl so there is no need for it here.
  59127. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  59128. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  59129. -# func_stripname prefix suffix name
  59130. -# strip PREFIX and SUFFIX off of NAME.
  59131. -# PREFIX and SUFFIX must not contain globbing or regex special
  59132. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  59133. -# dot (in which case that matches only a dot).
  59134. -# func_strip_suffix prefix name
  59135. -func_stripname ()
  59136. -{
  59137. - case ${2} in
  59138. - .*) func_stripname_result=`$ECHO "X${3}" \
  59139. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  59140. - *) func_stripname_result=`$ECHO "X${3}" \
  59141. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  59142. - esac
  59143. -}
  59144. +AC_DEFUN([LTVERSION_VERSION],
  59145. +[macro_version='2.2.6b'
  59146. +macro_revision='1.3017'
  59147. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  59148. +_LT_DECL(, macro_revision, 0)
  59149. +])
  59150. -# sed scripts:
  59151. -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  59152. -my_sed_long_arg='1s/^-[[^=]]*=//'
  59153. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  59154. +#
  59155. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  59156. +# Written by Scott James Remnant, 2004.
  59157. +#
  59158. +# This file is free software; the Free Software Foundation gives
  59159. +# unlimited permission to copy and/or distribute it, with or without
  59160. +# modifications, as long as this notice is preserved.
  59161. -# func_opt_split
  59162. -func_opt_split ()
  59163. -{
  59164. - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  59165. - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  59166. -}
  59167. +# serial 4 lt~obsolete.m4
  59168. -# func_lo2o object
  59169. -func_lo2o ()
  59170. -{
  59171. - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  59172. -}
  59173. +# These exist entirely to fool aclocal when bootstrapping libtool.
  59174. +#
  59175. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  59176. +# which have later been changed to m4_define as they aren't part of the
  59177. +# exported API, or moved to Autoconf or Automake where they belong.
  59178. +#
  59179. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  59180. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  59181. +# using a macro with the same name in our local m4/libtool.m4 it'll
  59182. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  59183. +# and doesn't know about Autoconf macros at all.)
  59184. +#
  59185. +# So we provide this file, which has a silly filename so it's always
  59186. +# included after everything else. This provides aclocal with the
  59187. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  59188. +# because those macros already exist, or will be overwritten later.
  59189. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  59190. +#
  59191. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  59192. +# Yes, that means every name once taken will need to remain here until
  59193. +# we give up compatibility with versions before 1.7, at which point
  59194. +# we need to keep only those names which we still refer to.
  59195. -# func_xform libobj-or-source
  59196. -func_xform ()
  59197. -{
  59198. - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  59199. -}
  59200. +# This is to help aclocal find these macros, as it can't see m4_define.
  59201. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  59202. -# func_arith arithmetic-term...
  59203. -func_arith ()
  59204. -{
  59205. - func_arith_result=`expr "$[@]"`
  59206. -}
  59207. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  59208. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  59209. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  59210. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  59211. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  59212. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  59213. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  59214. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  59215. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  59216. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  59217. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  59218. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  59219. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  59220. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  59221. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  59222. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  59223. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  59224. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  59225. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  59226. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  59227. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  59228. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  59229. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  59230. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  59231. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  59232. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  59233. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  59234. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  59235. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  59236. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  59237. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  59238. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  59239. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  59240. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  59241. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  59242. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  59243. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  59244. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  59245. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  59246. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  59247. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  59248. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  59249. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  59250. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  59251. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  59252. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  59253. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  59254. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  59255. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  59256. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  59257. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  59258. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  59259. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  59260. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  59261. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  59262. -# func_len string
  59263. -# STRING may not start with a hyphen.
  59264. -func_len ()
  59265. -{
  59266. - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  59267. -}
  59268. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  59269. +#
  59270. +# This file is free software; the Free Software Foundation
  59271. +# gives unlimited permission to copy and/or distribute it,
  59272. +# with or without modifications, as long as this notice is preserved.
  59273. -_LT_EOF
  59274. -esac
  59275. +# AM_AUTOMAKE_VERSION(VERSION)
  59276. +# ----------------------------
  59277. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  59278. +# generated from the m4 files accompanying Automake X.Y.
  59279. +# (This private macro should not be called outside this file.)
  59280. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  59281. +[am__api_version='1.11'
  59282. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  59283. +dnl require some minimum version. Point them to the right macro.
  59284. +m4_if([$1], [1.11], [],
  59285. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  59286. +])
  59287. -case $lt_shell_append in
  59288. - yes)
  59289. - cat << \_LT_EOF >> "$cfgfile"
  59290. +# _AM_AUTOCONF_VERSION(VERSION)
  59291. +# -----------------------------
  59292. +# aclocal traces this macro to find the Autoconf version.
  59293. +# This is a private macro too. Using m4_define simplifies
  59294. +# the logic in aclocal, which can simply ignore this definition.
  59295. +m4_define([_AM_AUTOCONF_VERSION], [])
  59296. -# func_append var value
  59297. -# Append VALUE to the end of shell variable VAR.
  59298. -func_append ()
  59299. -{
  59300. - eval "$[1]+=\$[2]"
  59301. -}
  59302. -_LT_EOF
  59303. - ;;
  59304. - *)
  59305. - cat << \_LT_EOF >> "$cfgfile"
  59306. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  59307. +# -------------------------------
  59308. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  59309. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  59310. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  59311. +[AM_AUTOMAKE_VERSION([1.11])dnl
  59312. +m4_ifndef([AC_AUTOCONF_VERSION],
  59313. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  59314. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  59315. -# func_append var value
  59316. -# Append VALUE to the end of shell variable VAR.
  59317. -func_append ()
  59318. -{
  59319. - eval "$[1]=\$$[1]\$[2]"
  59320. -}
  59321. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  59322. -_LT_EOF
  59323. - ;;
  59324. - esac
  59325. -])
  59326. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  59327. +#
  59328. +# This file is free software; the Free Software Foundation
  59329. +# gives unlimited permission to copy and/or distribute it,
  59330. +# with or without modifications, as long as this notice is preserved.
  59331. -# Helper functions for option handling. -*- Autoconf -*-
  59332. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  59333. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  59334. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  59335. #
  59336. -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  59337. -# Written by Gary V. Vaughan, 2004
  59338. +# Of course, Automake must honor this variable whenever it calls a
  59339. +# tool from the auxiliary directory. The problem is that $srcdir (and
  59340. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  59341. +# depending on how configure is run. This is pretty annoying, since
  59342. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  59343. +# source directory, any form will work fine, but in subdirectories a
  59344. +# relative path needs to be adjusted first.
  59345. +#
  59346. +# $ac_aux_dir/missing
  59347. +# fails when called from a subdirectory if $ac_aux_dir is relative
  59348. +# $top_srcdir/$ac_aux_dir/missing
  59349. +# fails if $ac_aux_dir is absolute,
  59350. +# fails when called from a subdirectory in a VPATH build with
  59351. +# a relative $ac_aux_dir
  59352. +#
  59353. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  59354. +# are both prefixed by $srcdir. In an in-source build this is usually
  59355. +# harmless because $srcdir is `.', but things will broke when you
  59356. +# start a VPATH build or use an absolute $srcdir.
  59357. +#
  59358. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  59359. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  59360. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  59361. +# and then we would define $MISSING as
  59362. +# MISSING="\${SHELL} $am_aux_dir/missing"
  59363. +# This will work as long as MISSING is not called from configure, because
  59364. +# unfortunately $(top_srcdir) has no meaning in configure.
  59365. +# However there are other variables, like CC, which are often used in
  59366. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  59367. #
  59368. -# This file is free software; the Free Software Foundation gives
  59369. -# unlimited permission to copy and/or distribute it, with or without
  59370. -# modifications, as long as this notice is preserved.
  59371. +# Another solution, used here, is to always expand $ac_aux_dir to an
  59372. +# absolute PATH. The drawback is that using absolute paths prevent a
  59373. +# configured tree to be moved without reconfiguration.
  59374. -# serial 6 ltoptions.m4
  59375. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  59376. +[dnl Rely on autoconf to set up CDPATH properly.
  59377. +AC_PREREQ([2.50])dnl
  59378. +# expand $ac_aux_dir to an absolute path
  59379. +am_aux_dir=`cd $ac_aux_dir && pwd`
  59380. +])
  59381. -# This is to help aclocal find these macros, as it can't see m4_define.
  59382. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  59383. +# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
  59384. +# Free Software Foundation, Inc.
  59385. +#
  59386. +# This file is free software; the Free Software Foundation
  59387. +# gives unlimited permission to copy and/or distribute it,
  59388. +# with or without modifications, as long as this notice is preserved.
  59389. -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  59390. -# ------------------------------------------
  59391. -m4_define([_LT_MANGLE_OPTION],
  59392. -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  59393. +# serial 4
  59394. +# This was merged into AC_PROG_CC in Autoconf.
  59395. -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  59396. -# ---------------------------------------
  59397. -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  59398. -# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  59399. -# saved as a flag.
  59400. -m4_define([_LT_SET_OPTION],
  59401. -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  59402. -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  59403. - _LT_MANGLE_DEFUN([$1], [$2]),
  59404. - [m4_warning([Unknown $1 option `$2'])])[]dnl
  59405. +AU_DEFUN([AM_PROG_CC_STDC],
  59406. +[AC_PROG_CC
  59407. +AC_DIAGNOSE([obsolete], [$0:
  59408. + your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
  59409. + `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
  59410. + you adjust the code. You can also remove the above call to
  59411. + AC_PROG_CC if you already called it elsewhere.])
  59412. +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  59413. ])
  59414. +AU_DEFUN([fp_PROG_CC_STDC])
  59415. +# AM_CONDITIONAL -*- Autoconf -*-
  59416. -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  59417. -# ------------------------------------------------------------
  59418. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  59419. -m4_define([_LT_IF_OPTION],
  59420. -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  59421. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  59422. +# Free Software Foundation, Inc.
  59423. +#
  59424. +# This file is free software; the Free Software Foundation
  59425. +# gives unlimited permission to copy and/or distribute it,
  59426. +# with or without modifications, as long as this notice is preserved.
  59427. +# serial 9
  59428. -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  59429. -# -------------------------------------------------------
  59430. -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  59431. -# are set.
  59432. -m4_define([_LT_UNLESS_OPTIONS],
  59433. -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  59434. - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  59435. - [m4_define([$0_found])])])[]dnl
  59436. -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  59437. -])[]dnl
  59438. -])
  59439. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  59440. +# -------------------------------------
  59441. +# Define a conditional.
  59442. +AC_DEFUN([AM_CONDITIONAL],
  59443. +[AC_PREREQ(2.52)dnl
  59444. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  59445. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  59446. +AC_SUBST([$1_TRUE])dnl
  59447. +AC_SUBST([$1_FALSE])dnl
  59448. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  59449. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  59450. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  59451. +if $2; then
  59452. + $1_TRUE=
  59453. + $1_FALSE='#'
  59454. +else
  59455. + $1_TRUE='#'
  59456. + $1_FALSE=
  59457. +fi
  59458. +AC_CONFIG_COMMANDS_PRE(
  59459. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  59460. + AC_MSG_ERROR([[conditional "$1" was never defined.
  59461. +Usually this means the macro was only invoked conditionally.]])
  59462. +fi])])
  59463. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  59464. +# Free Software Foundation, Inc.
  59465. +#
  59466. +# This file is free software; the Free Software Foundation
  59467. +# gives unlimited permission to copy and/or distribute it,
  59468. +# with or without modifications, as long as this notice is preserved.
  59469. -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  59470. -# ----------------------------------------
  59471. -# OPTION-LIST is a space-separated list of Libtool options associated
  59472. -# with MACRO-NAME. If any OPTION has a matching handler declared with
  59473. -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  59474. -# the unknown option and exit.
  59475. -m4_defun([_LT_SET_OPTIONS],
  59476. -[# Set options
  59477. -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  59478. - [_LT_SET_OPTION([$1], _LT_Option)])
  59479. +# serial 10
  59480. -m4_if([$1],[LT_INIT],[
  59481. - dnl
  59482. - dnl Simply set some default values (i.e off) if boolean options were not
  59483. - dnl specified:
  59484. - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  59485. - ])
  59486. - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  59487. - ])
  59488. - dnl
  59489. - dnl If no reference was made to various pairs of opposing options, then
  59490. - dnl we run the default mode handler for the pair. For example, if neither
  59491. - dnl `shared' nor `disable-shared' was passed, we enable building of shared
  59492. - dnl archives by default:
  59493. - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  59494. - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  59495. - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  59496. - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  59497. - [_LT_ENABLE_FAST_INSTALL])
  59498. - ])
  59499. -])# _LT_SET_OPTIONS
  59500. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  59501. +# written in clear, in which case automake, when reading aclocal.m4,
  59502. +# will think it sees a *use*, and therefore will trigger all it's
  59503. +# C support machinery. Also note that it means that autoscan, seeing
  59504. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  59505. +# _AM_DEPENDENCIES(NAME)
  59506. +# ----------------------
  59507. +# See how the compiler implements dependency checking.
  59508. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  59509. +# We try a few techniques and use that to set a single cache variable.
  59510. +#
  59511. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  59512. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  59513. +# dependency, and given that the user is not expected to run this macro,
  59514. +# just rely on AC_PROG_CC.
  59515. +AC_DEFUN([_AM_DEPENDENCIES],
  59516. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  59517. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  59518. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  59519. +AC_REQUIRE([AM_DEP_TRACK])dnl
  59520. -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  59521. -# -----------------------------------------
  59522. -m4_define([_LT_MANGLE_DEFUN],
  59523. -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  59524. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  59525. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  59526. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  59527. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  59528. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  59529. + [depcc="$$1" am_compiler_list=])
  59530. +AC_CACHE_CHECK([dependency style of $depcc],
  59531. + [am_cv_$1_dependencies_compiler_type],
  59532. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  59533. + # We make a subdir and do the tests there. Otherwise we can end up
  59534. + # making bogus files that we don't know about and never remove. For
  59535. + # instance it was reported that on HP-UX the gcc test will end up
  59536. + # making a dummy file named `D' -- because `-MD' means `put the output
  59537. + # in D'.
  59538. + mkdir conftest.dir
  59539. + # Copy depcomp to subdir because otherwise we won't find it if we're
  59540. + # using a relative directory.
  59541. + cp "$am_depcomp" conftest.dir
  59542. + cd conftest.dir
  59543. + # We will build objects and dependencies in a subdirectory because
  59544. + # it helps to detect inapplicable dependency modes. For instance
  59545. + # both Tru64's cc and ICC support -MD to output dependencies as a
  59546. + # side effect of compilation, but ICC will put the dependencies in
  59547. + # the current directory while Tru64 will put them in the object
  59548. + # directory.
  59549. + mkdir sub
  59550. -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  59551. -# -----------------------------------------------
  59552. -m4_define([LT_OPTION_DEFINE],
  59553. -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  59554. -])# LT_OPTION_DEFINE
  59555. + am_cv_$1_dependencies_compiler_type=none
  59556. + if test "$am_compiler_list" = ""; then
  59557. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  59558. + fi
  59559. + am__universal=false
  59560. + m4_case([$1], [CC],
  59561. + [case " $depcc " in #(
  59562. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  59563. + esac],
  59564. + [CXX],
  59565. + [case " $depcc " in #(
  59566. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  59567. + esac])
  59568. +
  59569. + for depmode in $am_compiler_list; do
  59570. + # Setup a source with many dependencies, because some compilers
  59571. + # like to wrap large dependency lists on column 80 (with \), and
  59572. + # we should not choose a depcomp mode which is confused by this.
  59573. + #
  59574. + # We need to recreate these files for each test, as the compiler may
  59575. + # overwrite some of them when testing with obscure command lines.
  59576. + # This happens at least with the AIX C compiler.
  59577. + : > sub/conftest.c
  59578. + for i in 1 2 3 4 5 6; do
  59579. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  59580. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  59581. + # Solaris 8's {/usr,}/bin/sh.
  59582. + touch sub/conftst$i.h
  59583. + done
  59584. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  59585. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  59586. + # mode. It turns out that the SunPro C++ compiler does not properly
  59587. + # handle `-M -o', and we need to detect this. Also, some Intel
  59588. + # versions had trouble with output in subdirs
  59589. + am__obj=sub/conftest.${OBJEXT-o}
  59590. + am__minus_obj="-o $am__obj"
  59591. + case $depmode in
  59592. + gcc)
  59593. + # This depmode causes a compiler race in universal mode.
  59594. + test "$am__universal" = false || continue
  59595. + ;;
  59596. + nosideeffect)
  59597. + # after this tag, mechanisms are not by side-effect, so they'll
  59598. + # only be used when explicitly requested
  59599. + if test "x$enable_dependency_tracking" = xyes; then
  59600. + continue
  59601. + else
  59602. + break
  59603. + fi
  59604. + ;;
  59605. + msvisualcpp | msvcmsys)
  59606. + # This compiler won't grok `-c -o', but also, the minuso test has
  59607. + # not run yet. These depmodes are late enough in the game, and
  59608. + # so weak that their functioning should not be impacted.
  59609. + am__obj=conftest.${OBJEXT-o}
  59610. + am__minus_obj=
  59611. + ;;
  59612. + none) break ;;
  59613. + esac
  59614. + if depmode=$depmode \
  59615. + source=sub/conftest.c object=$am__obj \
  59616. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  59617. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  59618. + >/dev/null 2>conftest.err &&
  59619. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  59620. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  59621. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  59622. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  59623. + # icc doesn't choke on unknown options, it will just issue warnings
  59624. + # or remarks (even with -Werror). So we grep stderr for any message
  59625. + # that says an option was ignored or not supported.
  59626. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  59627. + # icc: Command line warning: ignoring option '-M'; no argument required
  59628. + # The diagnosis changed in icc 8.0:
  59629. + # icc: Command line remark: option '-MP' not supported
  59630. + if (grep 'ignoring option' conftest.err ||
  59631. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  59632. + am_cv_$1_dependencies_compiler_type=$depmode
  59633. + break
  59634. + fi
  59635. + fi
  59636. + done
  59637. -# dlopen
  59638. -# ------
  59639. -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  59640. + cd ..
  59641. + rm -rf conftest.dir
  59642. +else
  59643. + am_cv_$1_dependencies_compiler_type=none
  59644. +fi
  59645. ])
  59646. -
  59647. -AU_DEFUN([AC_LIBTOOL_DLOPEN],
  59648. -[_LT_SET_OPTION([LT_INIT], [dlopen])
  59649. -AC_DIAGNOSE([obsolete],
  59650. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  59651. -put the `dlopen' option into LT_INIT's first parameter.])
  59652. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  59653. +AM_CONDITIONAL([am__fastdep$1], [
  59654. + test "x$enable_dependency_tracking" != xno \
  59655. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  59656. ])
  59657. -dnl aclocal-1.4 backwards compatibility:
  59658. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  59659. -
  59660. -
  59661. -# win32-dll
  59662. -# ---------
  59663. -# Declare package support for building win32 dll's.
  59664. -LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  59665. -[enable_win32_dll=yes
  59666. -
  59667. -case $host in
  59668. -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  59669. - AC_CHECK_TOOL(AS, as, false)
  59670. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  59671. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  59672. - ;;
  59673. -esac
  59674. -
  59675. -test -z "$AS" && AS=as
  59676. -_LT_DECL([], [AS], [0], [Assembler program])dnl
  59677. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  59678. -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  59679. +# AM_SET_DEPDIR
  59680. +# -------------
  59681. +# Choose a directory name for dependency files.
  59682. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  59683. +AC_DEFUN([AM_SET_DEPDIR],
  59684. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  59685. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  59686. +])
  59687. -test -z "$OBJDUMP" && OBJDUMP=objdump
  59688. -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  59689. -])# win32-dll
  59690. -AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  59691. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  59692. -_LT_SET_OPTION([LT_INIT], [win32-dll])
  59693. -AC_DIAGNOSE([obsolete],
  59694. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  59695. -put the `win32-dll' option into LT_INIT's first parameter.])
  59696. +# AM_DEP_TRACK
  59697. +# ------------
  59698. +AC_DEFUN([AM_DEP_TRACK],
  59699. +[AC_ARG_ENABLE(dependency-tracking,
  59700. +[ --disable-dependency-tracking speeds up one-time build
  59701. + --enable-dependency-tracking do not reject slow dependency extractors])
  59702. +if test "x$enable_dependency_tracking" != xno; then
  59703. + am_depcomp="$ac_aux_dir/depcomp"
  59704. + AMDEPBACKSLASH='\'
  59705. +fi
  59706. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  59707. +AC_SUBST([AMDEPBACKSLASH])dnl
  59708. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  59709. ])
  59710. -dnl aclocal-1.4 backwards compatibility:
  59711. -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  59712. -
  59713. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  59714. -# _LT_ENABLE_SHARED([DEFAULT])
  59715. -# ----------------------------
  59716. -# implement the --enable-shared flag, and supports the `shared' and
  59717. -# `disable-shared' LT_INIT options.
  59718. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  59719. -m4_define([_LT_ENABLE_SHARED],
  59720. -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  59721. -AC_ARG_ENABLE([shared],
  59722. - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  59723. - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  59724. - [p=${PACKAGE-default}
  59725. - case $enableval in
  59726. - yes) enable_shared=yes ;;
  59727. - no) enable_shared=no ;;
  59728. - *)
  59729. - enable_shared=no
  59730. - # Look at the argument we got. We use all the common list separators.
  59731. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  59732. - for pkg in $enableval; do
  59733. - IFS="$lt_save_ifs"
  59734. - if test "X$pkg" = "X$p"; then
  59735. - enable_shared=yes
  59736. - fi
  59737. - done
  59738. - IFS="$lt_save_ifs"
  59739. - ;;
  59740. - esac],
  59741. - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  59742. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  59743. +# Free Software Foundation, Inc.
  59744. +#
  59745. +# This file is free software; the Free Software Foundation
  59746. +# gives unlimited permission to copy and/or distribute it,
  59747. +# with or without modifications, as long as this notice is preserved.
  59748. - _LT_DECL([build_libtool_libs], [enable_shared], [0],
  59749. - [Whether or not to build shared libraries])
  59750. -])# _LT_ENABLE_SHARED
  59751. +#serial 5
  59752. -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  59753. -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  59754. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  59755. +# ------------------------------
  59756. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  59757. +[{
  59758. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  59759. + # are listed without --file. Let's play safe and only enable the eval
  59760. + # if we detect the quoting.
  59761. + case $CONFIG_FILES in
  59762. + *\'*) eval set x "$CONFIG_FILES" ;;
  59763. + *) set x $CONFIG_FILES ;;
  59764. + esac
  59765. + shift
  59766. + for mf
  59767. + do
  59768. + # Strip MF so we end up with the name of the file.
  59769. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  59770. + # Check whether this is an Automake generated Makefile or not.
  59771. + # We used to match only the files named `Makefile.in', but
  59772. + # some people rename them; so instead we look at the file content.
  59773. + # Grep'ing the first line is not enough: some people post-process
  59774. + # each Makefile.in and add a new line on top of each file to say so.
  59775. + # Grep'ing the whole file is not good either: AIX grep has a line
  59776. + # limit of 2048, but all sed's we know have understand at least 4000.
  59777. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  59778. + dirpart=`AS_DIRNAME("$mf")`
  59779. + else
  59780. + continue
  59781. + fi
  59782. + # Extract the definition of DEPDIR, am__include, and am__quote
  59783. + # from the Makefile without running `make'.
  59784. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  59785. + test -z "$DEPDIR" && continue
  59786. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  59787. + test -z "am__include" && continue
  59788. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  59789. + # When using ansi2knr, U may be empty or an underscore; expand it
  59790. + U=`sed -n 's/^U = //p' < "$mf"`
  59791. + # Find all dependency output files, they are included files with
  59792. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  59793. + # simplest approach to changing $(DEPDIR) to its actual value in the
  59794. + # expansion.
  59795. + for file in `sed -n "
  59796. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  59797. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  59798. + # Make sure the directory exists.
  59799. + test -f "$dirpart/$file" && continue
  59800. + fdir=`AS_DIRNAME(["$file"])`
  59801. + AS_MKDIR_P([$dirpart/$fdir])
  59802. + # echo "creating $dirpart/$file"
  59803. + echo '# dummy' > "$dirpart/$file"
  59804. + done
  59805. + done
  59806. +}
  59807. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  59808. -# Old names:
  59809. -AC_DEFUN([AC_ENABLE_SHARED],
  59810. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  59811. -])
  59812. -AC_DEFUN([AC_DISABLE_SHARED],
  59813. -[_LT_SET_OPTION([LT_INIT], [disable-shared])
  59814. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  59815. +# -----------------------------
  59816. +# This macro should only be invoked once -- use via AC_REQUIRE.
  59817. +#
  59818. +# This code is only required when automatic dependency tracking
  59819. +# is enabled. FIXME. This creates each `.P' file that we will
  59820. +# need in order to bootstrap the dependency handling code.
  59821. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  59822. +[AC_CONFIG_COMMANDS([depfiles],
  59823. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  59824. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  59825. ])
  59826. -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  59827. -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  59828. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  59829. +# Free Software Foundation, Inc.
  59830. +#
  59831. +# This file is free software; the Free Software Foundation
  59832. +# gives unlimited permission to copy and/or distribute it,
  59833. +# with or without modifications, as long as this notice is preserved.
  59834. -dnl aclocal-1.4 backwards compatibility:
  59835. -dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  59836. -dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  59837. +# serial 8
  59838. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  59839. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  59840. +# Do all the work for Automake. -*- Autoconf -*-
  59841. -# _LT_ENABLE_STATIC([DEFAULT])
  59842. -# ----------------------------
  59843. -# implement the --enable-static flag, and support the `static' and
  59844. -# `disable-static' LT_INIT options.
  59845. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  59846. -m4_define([_LT_ENABLE_STATIC],
  59847. -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  59848. -AC_ARG_ENABLE([static],
  59849. - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  59850. - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  59851. - [p=${PACKAGE-default}
  59852. - case $enableval in
  59853. - yes) enable_static=yes ;;
  59854. - no) enable_static=no ;;
  59855. - *)
  59856. - enable_static=no
  59857. - # Look at the argument we got. We use all the common list separators.
  59858. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  59859. - for pkg in $enableval; do
  59860. - IFS="$lt_save_ifs"
  59861. - if test "X$pkg" = "X$p"; then
  59862. - enable_static=yes
  59863. - fi
  59864. - done
  59865. - IFS="$lt_save_ifs"
  59866. - ;;
  59867. - esac],
  59868. - [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  59869. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  59870. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  59871. +#
  59872. +# This file is free software; the Free Software Foundation
  59873. +# gives unlimited permission to copy and/or distribute it,
  59874. +# with or without modifications, as long as this notice is preserved.
  59875. - _LT_DECL([build_old_libs], [enable_static], [0],
  59876. - [Whether or not to build static libraries])
  59877. -])# _LT_ENABLE_STATIC
  59878. +# serial 16
  59879. -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  59880. -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  59881. +# This macro actually does too much. Some checks are only needed if
  59882. +# your package does certain things. But this isn't really a big deal.
  59883. -# Old names:
  59884. -AC_DEFUN([AC_ENABLE_STATIC],
  59885. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  59886. -])
  59887. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  59888. +# AM_INIT_AUTOMAKE([OPTIONS])
  59889. +# -----------------------------------------------
  59890. +# The call with PACKAGE and VERSION arguments is the old style
  59891. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  59892. +# and VERSION should now be passed to AC_INIT and removed from
  59893. +# the call to AM_INIT_AUTOMAKE.
  59894. +# We support both call styles for the transition. After
  59895. +# the next Automake release, Autoconf can make the AC_INIT
  59896. +# arguments mandatory, and then we can depend on a new Autoconf
  59897. +# release and drop the old call support.
  59898. +AC_DEFUN([AM_INIT_AUTOMAKE],
  59899. +[AC_PREREQ([2.62])dnl
  59900. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  59901. +dnl the ones we care about.
  59902. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  59903. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  59904. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  59905. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  59906. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  59907. + # is not polluted with repeated "-I."
  59908. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  59909. + # test to see if srcdir already configured
  59910. + if test -f $srcdir/config.status; then
  59911. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  59912. + fi
  59913. +fi
  59914. -AC_DEFUN([AC_DISABLE_STATIC],
  59915. -[_LT_SET_OPTION([LT_INIT], [disable-static])
  59916. -])
  59917. +# test whether we have cygpath
  59918. +if test -z "$CYGPATH_W"; then
  59919. + if (cygpath --version) >/dev/null 2>/dev/null; then
  59920. + CYGPATH_W='cygpath -w'
  59921. + else
  59922. + CYGPATH_W=echo
  59923. + fi
  59924. +fi
  59925. +AC_SUBST([CYGPATH_W])
  59926. -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  59927. -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  59928. +# Define the identity of the package.
  59929. +dnl Distinguish between old-style and new-style calls.
  59930. +m4_ifval([$2],
  59931. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  59932. + AC_SUBST([PACKAGE], [$1])dnl
  59933. + AC_SUBST([VERSION], [$2])],
  59934. +[_AM_SET_OPTIONS([$1])dnl
  59935. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  59936. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  59937. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  59938. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  59939. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  59940. -dnl aclocal-1.4 backwards compatibility:
  59941. -dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  59942. -dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  59943. +_AM_IF_OPTION([no-define],,
  59944. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  59945. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  59946. +# Some tools Automake needs.
  59947. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  59948. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  59949. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  59950. +AM_MISSING_PROG(AUTOCONF, autoconf)
  59951. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  59952. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  59953. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  59954. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  59955. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  59956. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  59957. +# We need awk for the "check" target. The system "awk" is bad on
  59958. +# some platforms.
  59959. +AC_REQUIRE([AC_PROG_AWK])dnl
  59960. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  59961. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  59962. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  59963. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  59964. + [_AM_PROG_TAR([v7])])])
  59965. +_AM_IF_OPTION([no-dependencies],,
  59966. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  59967. + [_AM_DEPENDENCIES(CC)],
  59968. + [define([AC_PROG_CC],
  59969. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  59970. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  59971. + [_AM_DEPENDENCIES(CXX)],
  59972. + [define([AC_PROG_CXX],
  59973. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  59974. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  59975. + [_AM_DEPENDENCIES(OBJC)],
  59976. + [define([AC_PROG_OBJC],
  59977. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  59978. +])
  59979. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  59980. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  59981. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  59982. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  59983. +AC_CONFIG_COMMANDS_PRE(dnl
  59984. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  59985. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  59986. +])
  59987. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  59988. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  59989. +dnl mangled by Autoconf and run in a shell conditional statement.
  59990. +m4_define([_AC_COMPILER_EXEEXT],
  59991. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  59992. -# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  59993. -# ----------------------------------
  59994. -# implement the --enable-fast-install flag, and support the `fast-install'
  59995. -# and `disable-fast-install' LT_INIT options.
  59996. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  59997. -m4_define([_LT_ENABLE_FAST_INSTALL],
  59998. -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  59999. -AC_ARG_ENABLE([fast-install],
  60000. - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  60001. - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  60002. - [p=${PACKAGE-default}
  60003. - case $enableval in
  60004. - yes) enable_fast_install=yes ;;
  60005. - no) enable_fast_install=no ;;
  60006. - *)
  60007. - enable_fast_install=no
  60008. - # Look at the argument we got. We use all the common list separators.
  60009. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60010. - for pkg in $enableval; do
  60011. - IFS="$lt_save_ifs"
  60012. - if test "X$pkg" = "X$p"; then
  60013. - enable_fast_install=yes
  60014. - fi
  60015. - done
  60016. - IFS="$lt_save_ifs"
  60017. - ;;
  60018. - esac],
  60019. - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  60020. -_LT_DECL([fast_install], [enable_fast_install], [0],
  60021. - [Whether or not to optimize for fast installation])dnl
  60022. -])# _LT_ENABLE_FAST_INSTALL
  60023. +# When config.status generates a header, we must update the stamp-h file.
  60024. +# This file resides in the same directory as the config header
  60025. +# that is generated. The stamp files are numbered to have different names.
  60026. -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  60027. -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  60028. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  60029. +# loop where config.status creates the headers, so we can generate
  60030. +# our stamp files there.
  60031. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  60032. +[# Compute $1's index in $config_headers.
  60033. +_am_arg=$1
  60034. +_am_stamp_count=1
  60035. +for _am_header in $config_headers :; do
  60036. + case $_am_header in
  60037. + $_am_arg | $_am_arg:* )
  60038. + break ;;
  60039. + * )
  60040. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  60041. + esac
  60042. +done
  60043. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  60044. -# Old names:
  60045. -AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  60046. -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  60047. -AC_DIAGNOSE([obsolete],
  60048. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60049. -the `fast-install' option into LT_INIT's first parameter.])
  60050. -])
  60051. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  60052. +#
  60053. +# This file is free software; the Free Software Foundation
  60054. +# gives unlimited permission to copy and/or distribute it,
  60055. +# with or without modifications, as long as this notice is preserved.
  60056. -AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  60057. -[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  60058. -AC_DIAGNOSE([obsolete],
  60059. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60060. -the `disable-fast-install' option into LT_INIT's first parameter.])
  60061. -])
  60062. +# AM_PROG_INSTALL_SH
  60063. +# ------------------
  60064. +# Define $install_sh.
  60065. +AC_DEFUN([AM_PROG_INSTALL_SH],
  60066. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  60067. +if test x"${install_sh}" != xset; then
  60068. + case $am_aux_dir in
  60069. + *\ * | *\ *)
  60070. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  60071. + *)
  60072. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  60073. + esac
  60074. +fi
  60075. +AC_SUBST(install_sh)])
  60076. -dnl aclocal-1.4 backwards compatibility:
  60077. -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  60078. -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  60079. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  60080. +#
  60081. +# This file is free software; the Free Software Foundation
  60082. +# gives unlimited permission to copy and/or distribute it,
  60083. +# with or without modifications, as long as this notice is preserved.
  60084. +# serial 2
  60085. -# _LT_WITH_PIC([MODE])
  60086. -# --------------------
  60087. -# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  60088. -# LT_INIT options.
  60089. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  60090. -m4_define([_LT_WITH_PIC],
  60091. -[AC_ARG_WITH([pic],
  60092. - [AS_HELP_STRING([--with-pic],
  60093. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  60094. - [pic_mode="$withval"],
  60095. - [pic_mode=default])
  60096. +# Check whether the underlying file-system supports filenames
  60097. +# with a leading dot. For instance MS-DOS doesn't.
  60098. +AC_DEFUN([AM_SET_LEADING_DOT],
  60099. +[rm -rf .tst 2>/dev/null
  60100. +mkdir .tst 2>/dev/null
  60101. +if test -d .tst; then
  60102. + am__leading_dot=.
  60103. +else
  60104. + am__leading_dot=_
  60105. +fi
  60106. +rmdir .tst 2>/dev/null
  60107. +AC_SUBST([am__leading_dot])])
  60108. -test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  60109. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  60110. -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  60111. -])# _LT_WITH_PIC
  60112. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  60113. +#
  60114. +# This file is free software; the Free Software Foundation
  60115. +# gives unlimited permission to copy and/or distribute it,
  60116. +# with or without modifications, as long as this notice is preserved.
  60117. -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  60118. -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  60119. +# serial 4
  60120. -# Old name:
  60121. -AU_DEFUN([AC_LIBTOOL_PICMODE],
  60122. -[_LT_SET_OPTION([LT_INIT], [pic-only])
  60123. -AC_DIAGNOSE([obsolete],
  60124. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60125. -put the `pic-only' option into LT_INIT's first parameter.])
  60126. +# AM_MAKE_INCLUDE()
  60127. +# -----------------
  60128. +# Check to see how make treats includes.
  60129. +AC_DEFUN([AM_MAKE_INCLUDE],
  60130. +[am_make=${MAKE-make}
  60131. +cat > confinc << 'END'
  60132. +am__doit:
  60133. + @echo this is the am__doit target
  60134. +.PHONY: am__doit
  60135. +END
  60136. +# If we don't find an include directive, just comment out the code.
  60137. +AC_MSG_CHECKING([for style of include used by $am_make])
  60138. +am__include="#"
  60139. +am__quote=
  60140. +_am_result=none
  60141. +# First try GNU make style include.
  60142. +echo "include confinc" > confmf
  60143. +# Ignore all kinds of additional output from `make'.
  60144. +case `$am_make -s -f confmf 2> /dev/null` in #(
  60145. +*the\ am__doit\ target*)
  60146. + am__include=include
  60147. + am__quote=
  60148. + _am_result=GNU
  60149. + ;;
  60150. +esac
  60151. +# Now try BSD make style include.
  60152. +if test "$am__include" = "#"; then
  60153. + echo '.include "confinc"' > confmf
  60154. + case `$am_make -s -f confmf 2> /dev/null` in #(
  60155. + *the\ am__doit\ target*)
  60156. + am__include=.include
  60157. + am__quote="\""
  60158. + _am_result=BSD
  60159. + ;;
  60160. + esac
  60161. +fi
  60162. +AC_SUBST([am__include])
  60163. +AC_SUBST([am__quote])
  60164. +AC_MSG_RESULT([$_am_result])
  60165. +rm -f confinc confmf
  60166. ])
  60167. -dnl aclocal-1.4 backwards compatibility:
  60168. -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  60169. -
  60170. -
  60171. -m4_define([_LTDL_MODE], [])
  60172. -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  60173. - [m4_define([_LTDL_MODE], [nonrecursive])])
  60174. -LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  60175. - [m4_define([_LTDL_MODE], [recursive])])
  60176. -LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  60177. - [m4_define([_LTDL_MODE], [subproject])])
  60178. -
  60179. -m4_define([_LTDL_TYPE], [])
  60180. -LT_OPTION_DEFINE([LTDL_INIT], [installable],
  60181. - [m4_define([_LTDL_TYPE], [installable])])
  60182. -LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  60183. - [m4_define([_LTDL_TYPE], [convenience])])
  60184. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  60185. -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  60186. -#
  60187. -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  60188. -# Written by Gary V. Vaughan, 2004
  60189. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  60190. +# Free Software Foundation, Inc.
  60191. #
  60192. -# This file is free software; the Free Software Foundation gives
  60193. -# unlimited permission to copy and/or distribute it, with or without
  60194. -# modifications, as long as this notice is preserved.
  60195. +# This file is free software; the Free Software Foundation
  60196. +# gives unlimited permission to copy and/or distribute it,
  60197. +# with or without modifications, as long as this notice is preserved.
  60198. -# serial 6 ltsugar.m4
  60199. +# serial 6
  60200. -# This is to help aclocal find these macros, as it can't see m4_define.
  60201. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  60202. +# AM_MISSING_PROG(NAME, PROGRAM)
  60203. +# ------------------------------
  60204. +AC_DEFUN([AM_MISSING_PROG],
  60205. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  60206. +$1=${$1-"${am_missing_run}$2"}
  60207. +AC_SUBST($1)])
  60208. -# lt_join(SEP, ARG1, [ARG2...])
  60209. -# -----------------------------
  60210. -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  60211. -# associated separator.
  60212. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  60213. -# versions in m4sugar had bugs.
  60214. -m4_define([lt_join],
  60215. -[m4_if([$#], [1], [],
  60216. - [$#], [2], [[$2]],
  60217. - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  60218. -m4_define([_lt_join],
  60219. -[m4_if([$#$2], [2], [],
  60220. - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  60221. +# AM_MISSING_HAS_RUN
  60222. +# ------------------
  60223. +# Define MISSING if not defined so far and test if it supports --run.
  60224. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  60225. +AC_DEFUN([AM_MISSING_HAS_RUN],
  60226. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  60227. +AC_REQUIRE_AUX_FILE([missing])dnl
  60228. +if test x"${MISSING+set}" != xset; then
  60229. + case $am_aux_dir in
  60230. + *\ * | *\ *)
  60231. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  60232. + *)
  60233. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  60234. + esac
  60235. +fi
  60236. +# Use eval to expand $SHELL
  60237. +if eval "$MISSING --run true"; then
  60238. + am_missing_run="$MISSING --run "
  60239. +else
  60240. + am_missing_run=
  60241. + AC_MSG_WARN([`missing' script is too old or missing])
  60242. +fi
  60243. +])
  60244. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  60245. +#
  60246. +# This file is free software; the Free Software Foundation
  60247. +# gives unlimited permission to copy and/or distribute it,
  60248. +# with or without modifications, as long as this notice is preserved.
  60249. -# lt_car(LIST)
  60250. -# lt_cdr(LIST)
  60251. -# ------------
  60252. -# Manipulate m4 lists.
  60253. -# These macros are necessary as long as will still need to support
  60254. -# Autoconf-2.59 which quotes differently.
  60255. -m4_define([lt_car], [[$1]])
  60256. -m4_define([lt_cdr],
  60257. -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  60258. - [$#], 1, [],
  60259. - [m4_dquote(m4_shift($@))])])
  60260. -m4_define([lt_unquote], $1)
  60261. +# AM_PROG_MKDIR_P
  60262. +# ---------------
  60263. +# Check for `mkdir -p'.
  60264. +AC_DEFUN([AM_PROG_MKDIR_P],
  60265. +[AC_PREREQ([2.60])dnl
  60266. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  60267. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  60268. +dnl while keeping a definition of mkdir_p for backward compatibility.
  60269. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  60270. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  60271. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  60272. +dnl adjustment using top_builddir (which is defined more often than
  60273. +dnl MKDIR_P).
  60274. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  60275. +case $mkdir_p in
  60276. + [[\\/$]]* | ?:[[\\/]]*) ;;
  60277. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  60278. +esac
  60279. +])
  60280. +# Helper functions for option handling. -*- Autoconf -*-
  60281. -# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  60282. -# ------------------------------------------
  60283. -# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  60284. -# Note that neither SEPARATOR nor STRING are expanded; they are appended
  60285. -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  60286. -# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  60287. -# than defined and empty).
  60288. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  60289. #
  60290. -# This macro is needed until we can rely on Autoconf 2.62, since earlier
  60291. -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  60292. -m4_define([lt_append],
  60293. -[m4_define([$1],
  60294. - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  60295. -
  60296. +# This file is free software; the Free Software Foundation
  60297. +# gives unlimited permission to copy and/or distribute it,
  60298. +# with or without modifications, as long as this notice is preserved.
  60299. +# serial 4
  60300. -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  60301. -# ----------------------------------------------------------
  60302. -# Produce a SEP delimited list of all paired combinations of elements of
  60303. -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  60304. -# has the form PREFIXmINFIXSUFFIXn.
  60305. -# Needed until we can rely on m4_combine added in Autoconf 2.62.
  60306. -m4_define([lt_combine],
  60307. -[m4_if(m4_eval([$# > 3]), [1],
  60308. - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  60309. -[[m4_foreach([_Lt_prefix], [$2],
  60310. - [m4_foreach([_Lt_suffix],
  60311. - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  60312. - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  60313. +# _AM_MANGLE_OPTION(NAME)
  60314. +# -----------------------
  60315. +AC_DEFUN([_AM_MANGLE_OPTION],
  60316. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  60317. +# _AM_SET_OPTION(NAME)
  60318. +# ------------------------------
  60319. +# Set option NAME. Presently that only means defining a flag for this option.
  60320. +AC_DEFUN([_AM_SET_OPTION],
  60321. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  60322. -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  60323. -# -----------------------------------------------------------------------
  60324. -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  60325. -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  60326. -m4_define([lt_if_append_uniq],
  60327. -[m4_ifdef([$1],
  60328. - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  60329. - [lt_append([$1], [$2], [$3])$4],
  60330. - [$5])],
  60331. - [lt_append([$1], [$2], [$3])$4])])
  60332. +# _AM_SET_OPTIONS(OPTIONS)
  60333. +# ----------------------------------
  60334. +# OPTIONS is a space-separated list of Automake options.
  60335. +AC_DEFUN([_AM_SET_OPTIONS],
  60336. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  60337. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  60338. +# -------------------------------------------
  60339. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  60340. +AC_DEFUN([_AM_IF_OPTION],
  60341. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  60342. -# lt_dict_add(DICT, KEY, VALUE)
  60343. -# -----------------------------
  60344. -m4_define([lt_dict_add],
  60345. -[m4_define([$1($2)], [$3])])
  60346. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  60347. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  60348. +# Free Software Foundation, Inc.
  60349. +#
  60350. +# This file is free software; the Free Software Foundation
  60351. +# gives unlimited permission to copy and/or distribute it,
  60352. +# with or without modifications, as long as this notice is preserved.
  60353. -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  60354. -# --------------------------------------------
  60355. -m4_define([lt_dict_add_subkey],
  60356. -[m4_define([$1($2:$3)], [$4])])
  60357. +# serial 5
  60358. +# AM_SANITY_CHECK
  60359. +# ---------------
  60360. +AC_DEFUN([AM_SANITY_CHECK],
  60361. +[AC_MSG_CHECKING([whether build environment is sane])
  60362. +# Just in case
  60363. +sleep 1
  60364. +echo timestamp > conftest.file
  60365. +# Reject unsafe characters in $srcdir or the absolute working directory
  60366. +# name. Accept space and tab only in the latter.
  60367. +am_lf='
  60368. +'
  60369. +case `pwd` in
  60370. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  60371. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  60372. +esac
  60373. +case $srcdir in
  60374. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  60375. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  60376. +esac
  60377. -# lt_dict_fetch(DICT, KEY, [SUBKEY])
  60378. -# ----------------------------------
  60379. -m4_define([lt_dict_fetch],
  60380. -[m4_ifval([$3],
  60381. - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  60382. - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  60383. +# Do `set' in a subshell so we don't clobber the current shell's
  60384. +# arguments. Must try -L first in case configure is actually a
  60385. +# symlink; some systems play weird games with the mod time of symlinks
  60386. +# (eg FreeBSD returns the mod time of the symlink's containing
  60387. +# directory).
  60388. +if (
  60389. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  60390. + if test "$[*]" = "X"; then
  60391. + # -L didn't work.
  60392. + set X `ls -t "$srcdir/configure" conftest.file`
  60393. + fi
  60394. + rm -f conftest.file
  60395. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  60396. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  60397. + # If neither matched, then we have a broken ls. This can happen
  60398. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  60399. + # broken ls alias from the environment. This has actually
  60400. + # happened. Such a system could not be considered "sane".
  60401. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  60402. +alias in your environment])
  60403. + fi
  60404. -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  60405. -# -----------------------------------------------------------------
  60406. -m4_define([lt_if_dict_fetch],
  60407. -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  60408. - [$5],
  60409. - [$6])])
  60410. + test "$[2]" = conftest.file
  60411. + )
  60412. +then
  60413. + # Ok.
  60414. + :
  60415. +else
  60416. + AC_MSG_ERROR([newly created file is older than distributed files!
  60417. +Check your system clock])
  60418. +fi
  60419. +AC_MSG_RESULT(yes)])
  60420. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  60421. +#
  60422. +# This file is free software; the Free Software Foundation
  60423. +# gives unlimited permission to copy and/or distribute it,
  60424. +# with or without modifications, as long as this notice is preserved.
  60425. -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  60426. -# --------------------------------------------------------------
  60427. -m4_define([lt_dict_filter],
  60428. -[m4_if([$5], [], [],
  60429. - [lt_join(m4_quote(m4_default([$4], [[, ]])),
  60430. - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  60431. - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  60432. -])
  60433. +# AM_PROG_INSTALL_STRIP
  60434. +# ---------------------
  60435. +# One issue with vendor `install' (even GNU) is that you can't
  60436. +# specify the program used to strip binaries. This is especially
  60437. +# annoying in cross-compiling environments, where the build's strip
  60438. +# is unlikely to handle the host's binaries.
  60439. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  60440. +# always use install-sh in `make install-strip', and initialize
  60441. +# STRIPPROG with the value of the STRIP variable (set by the user).
  60442. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  60443. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  60444. +# Installed binaries are usually stripped using `strip' when the user
  60445. +# run `make install-strip'. However `strip' might not be the right
  60446. +# tool to use in cross-compilation environments, therefore Automake
  60447. +# will honor the `STRIP' environment variable to overrule this program.
  60448. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  60449. +if test "$cross_compiling" != no; then
  60450. + AC_CHECK_TOOL([STRIP], [strip], :)
  60451. +fi
  60452. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  60453. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  60454. -# ltversion.m4 -- version numbers -*- Autoconf -*-
  60455. -#
  60456. -# Copyright (C) 2004 Free Software Foundation, Inc.
  60457. -# Written by Scott James Remnant, 2004
  60458. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  60459. #
  60460. -# This file is free software; the Free Software Foundation gives
  60461. -# unlimited permission to copy and/or distribute it, with or without
  60462. -# modifications, as long as this notice is preserved.
  60463. +# This file is free software; the Free Software Foundation
  60464. +# gives unlimited permission to copy and/or distribute it,
  60465. +# with or without modifications, as long as this notice is preserved.
  60466. -# Generated from ltversion.in.
  60467. +# serial 2
  60468. -# serial 3012 ltversion.m4
  60469. -# This file is part of GNU Libtool
  60470. +# _AM_SUBST_NOTMAKE(VARIABLE)
  60471. +# ---------------------------
  60472. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  60473. +# This macro is traced by Automake.
  60474. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  60475. -m4_define([LT_PACKAGE_VERSION], [2.2.6])
  60476. -m4_define([LT_PACKAGE_REVISION], [1.3012])
  60477. +# AM_SUBST_NOTMAKE(VARIABLE)
  60478. +# ---------------------------
  60479. +# Public sister of _AM_SUBST_NOTMAKE.
  60480. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  60481. -AC_DEFUN([LTVERSION_VERSION],
  60482. -[macro_version='2.2.6'
  60483. -macro_revision='1.3012'
  60484. -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  60485. -_LT_DECL(, macro_revision, 0)
  60486. -])
  60487. +# Check how to create a tarball. -*- Autoconf -*-
  60488. -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  60489. -#
  60490. -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  60491. -# Written by Scott James Remnant, 2004.
  60492. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  60493. #
  60494. -# This file is free software; the Free Software Foundation gives
  60495. -# unlimited permission to copy and/or distribute it, with or without
  60496. -# modifications, as long as this notice is preserved.
  60497. +# This file is free software; the Free Software Foundation
  60498. +# gives unlimited permission to copy and/or distribute it,
  60499. +# with or without modifications, as long as this notice is preserved.
  60500. -# serial 4 lt~obsolete.m4
  60501. +# serial 2
  60502. -# These exist entirely to fool aclocal when bootstrapping libtool.
  60503. -#
  60504. -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  60505. -# which have later been changed to m4_define as they aren't part of the
  60506. -# exported API, or moved to Autoconf or Automake where they belong.
  60507. -#
  60508. -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  60509. -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  60510. -# using a macro with the same name in our local m4/libtool.m4 it'll
  60511. -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  60512. -# and doesn't know about Autoconf macros at all.)
  60513. +# _AM_PROG_TAR(FORMAT)
  60514. +# --------------------
  60515. +# Check how to create a tarball in format FORMAT.
  60516. +# FORMAT should be one of `v7', `ustar', or `pax'.
  60517. #
  60518. -# So we provide this file, which has a silly filename so it's always
  60519. -# included after everything else. This provides aclocal with the
  60520. -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  60521. -# because those macros already exist, or will be overwritten later.
  60522. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  60523. +# Substitute a variable $(am__tar) that is a command
  60524. +# writing to stdout a FORMAT-tarball containing the directory
  60525. +# $tardir.
  60526. +# tardir=directory && $(am__tar) > result.tar
  60527. #
  60528. -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  60529. -# Yes, that means every name once taken will need to remain here until
  60530. -# we give up compatibility with versions before 1.7, at which point
  60531. -# we need to keep only those names which we still refer to.
  60532. +# Substitute a variable $(am__untar) that extract such
  60533. +# a tarball read from stdin.
  60534. +# $(am__untar) < result.tar
  60535. +AC_DEFUN([_AM_PROG_TAR],
  60536. +[# Always define AMTAR for backward compatibility.
  60537. +AM_MISSING_PROG([AMTAR], [tar])
  60538. +m4_if([$1], [v7],
  60539. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  60540. + [m4_case([$1], [ustar],, [pax],,
  60541. + [m4_fatal([Unknown tar format])])
  60542. +AC_MSG_CHECKING([how to create a $1 tar archive])
  60543. +# Loop over all known methods to create a tar archive until one works.
  60544. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  60545. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  60546. +# Do not fold the above two line into one, because Tru64 sh and
  60547. +# Solaris sh will not grok spaces in the rhs of `-'.
  60548. +for _am_tool in $_am_tools
  60549. +do
  60550. + case $_am_tool in
  60551. + gnutar)
  60552. + for _am_tar in tar gnutar gtar;
  60553. + do
  60554. + AM_RUN_LOG([$_am_tar --version]) && break
  60555. + done
  60556. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  60557. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  60558. + am__untar="$_am_tar -xf -"
  60559. + ;;
  60560. + plaintar)
  60561. + # Must skip GNU tar: if it does not support --format= it doesn't create
  60562. + # ustar tarball either.
  60563. + (tar --version) >/dev/null 2>&1 && continue
  60564. + am__tar='tar chf - "$$tardir"'
  60565. + am__tar_='tar chf - "$tardir"'
  60566. + am__untar='tar xf -'
  60567. + ;;
  60568. + pax)
  60569. + am__tar='pax -L -x $1 -w "$$tardir"'
  60570. + am__tar_='pax -L -x $1 -w "$tardir"'
  60571. + am__untar='pax -r'
  60572. + ;;
  60573. + cpio)
  60574. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  60575. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  60576. + am__untar='cpio -i -H $1 -d'
  60577. + ;;
  60578. + none)
  60579. + am__tar=false
  60580. + am__tar_=false
  60581. + am__untar=false
  60582. + ;;
  60583. + esac
  60584. -# This is to help aclocal find these macros, as it can't see m4_define.
  60585. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  60586. + # If the value was cached, stop now. We just wanted to have am__tar
  60587. + # and am__untar set.
  60588. + test -n "${am_cv_prog_tar_$1}" && break
  60589. -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  60590. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  60591. -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  60592. -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  60593. -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  60594. -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  60595. -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  60596. -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  60597. -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  60598. -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  60599. -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  60600. -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  60601. -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  60602. -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  60603. -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  60604. -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  60605. -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  60606. -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  60607. -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  60608. -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  60609. -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  60610. -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  60611. -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  60612. -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  60613. -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  60614. -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  60615. -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  60616. -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  60617. -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  60618. -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  60619. -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  60620. -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  60621. -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  60622. -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  60623. -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  60624. -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  60625. -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  60626. -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  60627. -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  60628. -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  60629. -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  60630. -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  60631. -m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  60632. -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  60633. -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  60634. -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  60635. -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  60636. -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  60637. -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  60638. -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  60639. -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  60640. -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  60641. -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  60642. -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  60643. -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  60644. + # tar/untar a dummy directory, and stop if the command works
  60645. + rm -rf conftest.dir
  60646. + mkdir conftest.dir
  60647. + echo GrepMe > conftest.dir/file
  60648. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  60649. + rm -rf conftest.dir
  60650. + if test -s conftest.tar; then
  60651. + AM_RUN_LOG([$am__untar <conftest.tar])
  60652. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  60653. + fi
  60654. +done
  60655. +rm -rf conftest.dir
  60656. +
  60657. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  60658. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  60659. +AC_SUBST([am__tar])
  60660. +AC_SUBST([am__untar])
  60661. +]) # _AM_PROG_TAR
  60662. Index: sid/guile-readline/config.guess
  60663. ===================================================================
  60664. --- sid.orig/guile-readline/config.guess
  60665. +++ sid/guile-readline/config.guess
  60666. @@ -1,10 +1,10 @@
  60667. #! /bin/sh
  60668. # Attempt to guess a canonical system name.
  60669. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  60670. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  60671. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  60672. # Free Software Foundation, Inc.
  60673. -timestamp='2009-04-27'
  60674. +timestamp='2009-06-10'
  60675. # This file is free software; you can redistribute it and/or modify it
  60676. # under the terms of the GNU General Public License as published by
  60677. @@ -170,7 +170,7 @@
  60678. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  60679. eval $set_cc_for_build
  60680. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  60681. - | grep __ELF__ >/dev/null
  60682. + | grep -q __ELF__
  60683. then
  60684. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  60685. # Return netbsd for either. FIX?
  60686. @@ -656,7 +656,7 @@
  60687. # => hppa64-hp-hpux11.23
  60688. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  60689. - grep __LP64__ >/dev/null
  60690. + grep -q __LP64__
  60691. then
  60692. HP_ARCH="hppa2.0w"
  60693. else
  60694. @@ -822,6 +822,9 @@
  60695. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  60696. echo i${UNAME_MACHINE}-pc-mks
  60697. exit ;;
  60698. + 8664:Windows_NT:*)
  60699. + echo x86_64-pc-mks
  60700. + exit ;;
  60701. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  60702. # How do we know it's Interix rather than the generic POSIX subsystem?
  60703. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  60704. @@ -882,40 +885,17 @@
  60705. m68*:Linux:*:*)
  60706. echo ${UNAME_MACHINE}-unknown-linux-gnu
  60707. exit ;;
  60708. - mips:Linux:*:*)
  60709. + mips:Linux:*:* | mips64:Linux:*:*)
  60710. eval $set_cc_for_build
  60711. sed 's/^ //' << EOF >$dummy.c
  60712. #undef CPU
  60713. - #undef mips
  60714. - #undef mipsel
  60715. + #undef ${UNAME_MACHINE}
  60716. + #undef ${UNAME_MACHINE}el
  60717. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  60718. - CPU=mipsel
  60719. + CPU=${UNAME_MACHINE}el
  60720. #else
  60721. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  60722. - CPU=mips
  60723. - #else
  60724. - CPU=
  60725. - #endif
  60726. - #endif
  60727. -EOF
  60728. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  60729. - /^CPU/{
  60730. - s: ::g
  60731. - p
  60732. - }'`"
  60733. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  60734. - ;;
  60735. - mips64:Linux:*:*)
  60736. - eval $set_cc_for_build
  60737. - sed 's/^ //' << EOF >$dummy.c
  60738. - #undef CPU
  60739. - #undef mips64
  60740. - #undef mips64el
  60741. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  60742. - CPU=mips64el
  60743. - #else
  60744. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  60745. - CPU=mips64
  60746. + CPU=${UNAME_MACHINE}
  60747. #else
  60748. CPU=
  60749. #endif
  60750. @@ -947,7 +927,7 @@
  60751. EV67) UNAME_MACHINE=alphaev67 ;;
  60752. EV68*) UNAME_MACHINE=alphaev68 ;;
  60753. esac
  60754. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  60755. + objdump --private-headers /bin/sh | grep -q ld.so.1
  60756. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  60757. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  60758. exit ;;
  60759. @@ -1001,14 +981,6 @@
  60760. elf32-i386)
  60761. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  60762. ;;
  60763. - a.out-i386-linux)
  60764. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  60765. - exit ;;
  60766. - "")
  60767. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  60768. - # one that does not give us useful --help.
  60769. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  60770. - exit ;;
  60771. esac
  60772. # Determine whether the default compiler is a.out or elf
  60773. eval $set_cc_for_build
  60774. @@ -1074,7 +1046,7 @@
  60775. i*86:syllable:*:*)
  60776. echo ${UNAME_MACHINE}-pc-syllable
  60777. exit ;;
  60778. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  60779. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  60780. echo i386-unknown-lynxos${UNAME_RELEASE}
  60781. exit ;;
  60782. i*86:*DOS:*:*)
  60783. @@ -1182,7 +1154,7 @@
  60784. rs6000:LynxOS:2.*:*)
  60785. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  60786. exit ;;
  60787. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  60788. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  60789. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  60790. exit ;;
  60791. SM[BE]S:UNIX_SV:*:*)
  60792. Index: sid/guile-readline/config.sub
  60793. ===================================================================
  60794. --- sid.orig/guile-readline/config.sub
  60795. +++ sid/guile-readline/config.sub
  60796. @@ -1,10 +1,10 @@
  60797. #! /bin/sh
  60798. # Configuration validation subroutine script.
  60799. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  60800. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  60801. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  60802. # Free Software Foundation, Inc.
  60803. -timestamp='2009-04-17'
  60804. +timestamp='2009-06-11'
  60805. # This file is (in principle) common to ALL GNU software.
  60806. # The presence of a machine in this file suggests that SOME GNU software
  60807. @@ -153,6 +153,9 @@
  60808. os=
  60809. basic_machine=$1
  60810. ;;
  60811. + -bluegene*)
  60812. + os=-cnk
  60813. + ;;
  60814. -sim | -cisco | -oki | -wec | -winbond)
  60815. os=
  60816. basic_machine=$1
  60817. @@ -467,6 +470,10 @@
  60818. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  60819. os=-linux
  60820. ;;
  60821. + bluegene*)
  60822. + basic_machine=powerpc-ibm
  60823. + os=-cnk
  60824. + ;;
  60825. c90)
  60826. basic_machine=c90-cray
  60827. os=-unicos
  60828. @@ -1260,7 +1267,7 @@
  60829. # Each alternative MUST END IN A *, to match a version number.
  60830. # -sysv* is not here because it comes later, after sysvr4.
  60831. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  60832. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  60833. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  60834. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  60835. | -kopensolaris* \
  60836. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  60837. @@ -1613,7 +1620,7 @@
  60838. -sunos*)
  60839. vendor=sun
  60840. ;;
  60841. - -aix*)
  60842. + -cnk*|-aix*)
  60843. vendor=ibm
  60844. ;;
  60845. -beos*)
  60846. Index: sid/guile-readline/configure
  60847. ===================================================================
  60848. --- sid.orig/guile-readline/configure
  60849. +++ sid/guile-readline/configure
  60850. @@ -1,20 +1,22 @@
  60851. #! /bin/sh
  60852. # Guess values for system-dependent variables and create Makefiles.
  60853. -# Generated by GNU Autoconf 2.63 for guile-readline 1.8.7.
  60854. +# Generated by GNU Autoconf 2.64 for guile-readline 1.8.7.
  60855. #
  60856. # Report bugs to <bug-guile@gnu.org>.
  60857. #
  60858. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  60859. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  60860. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  60861. +# Foundation, Inc.
  60862. +#
  60863. # This configure script is free software; the Free Software Foundation
  60864. # gives unlimited permission to copy, distribute and modify it.
  60865. -## --------------------- ##
  60866. -## M4sh Initialization. ##
  60867. -## --------------------- ##
  60868. +## -------------------- ##
  60869. +## M4sh Initialization. ##
  60870. +## -------------------- ##
  60871. # Be more Bourne compatible
  60872. DUALCASE=1; export DUALCASE # for MKS sh
  60873. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  60874. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  60875. emulate sh
  60876. NULLCMD=:
  60877. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  60878. @@ -22,23 +24,15 @@
  60879. alias -g '${1+"$@"}'='"$@"'
  60880. setopt NO_GLOB_SUBST
  60881. else
  60882. - case `(set -o) 2>/dev/null` in
  60883. - *posix*) set -o posix ;;
  60884. + case `(set -o) 2>/dev/null` in #(
  60885. + *posix*) :
  60886. + set -o posix ;; #(
  60887. + *) :
  60888. + ;;
  60889. esac
  60890. -
  60891. fi
  60892. -
  60893. -
  60894. -# PATH needs CR
  60895. -# Avoid depending upon Character Ranges.
  60896. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  60897. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  60898. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  60899. -as_cr_digits='0123456789'
  60900. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  60901. -
  60902. as_nl='
  60903. '
  60904. export as_nl
  60905. @@ -46,7 +40,13 @@
  60906. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  60907. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  60908. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  60909. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  60910. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  60911. +# but without wasting forks for bash or zsh.
  60912. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  60913. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  60914. + as_echo='print -r --'
  60915. + as_echo_n='print -rn --'
  60916. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  60917. as_echo='printf %s\n'
  60918. as_echo_n='printf %s'
  60919. else
  60920. @@ -57,7 +57,7 @@
  60921. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60922. as_echo_n_body='eval
  60923. arg=$1;
  60924. - case $arg in
  60925. + case $arg in #(
  60926. *"$as_nl"*)
  60927. expr "X$arg" : "X\\(.*\\)$as_nl";
  60928. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  60929. @@ -80,13 +80,6 @@
  60930. }
  60931. fi
  60932. -# Support unset when possible.
  60933. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  60934. - as_unset=unset
  60935. -else
  60936. - as_unset=false
  60937. -fi
  60938. -
  60939. # IFS
  60940. # We need space, tab and new line, in precisely that order. Quoting is
  60941. @@ -96,15 +89,15 @@
  60942. IFS=" "" $as_nl"
  60943. # Find who we are. Look in the path if we contain no directory separator.
  60944. -case $0 in
  60945. +case $0 in #((
  60946. *[\\/]* ) as_myself=$0 ;;
  60947. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  60948. for as_dir in $PATH
  60949. do
  60950. IFS=$as_save_IFS
  60951. test -z "$as_dir" && as_dir=.
  60952. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  60953. -done
  60954. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  60955. + done
  60956. IFS=$as_save_IFS
  60957. ;;
  60958. @@ -116,12 +109,16 @@
  60959. fi
  60960. if test ! -f "$as_myself"; then
  60961. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  60962. - { (exit 1); exit 1; }
  60963. + exit 1
  60964. fi
  60965. -# Work around bugs in pre-3.0 UWIN ksh.
  60966. -for as_var in ENV MAIL MAILPATH
  60967. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  60968. +# Unset variables that we do not need and which cause bugs (e.g. in
  60969. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  60970. +# suppresses any "Segmentation fault" message there. '((' could
  60971. +# trigger a bug in pdksh 5.2.14.
  60972. +for as_var in BASH_ENV ENV MAIL MAILPATH
  60973. +do eval test x\${$as_var+set} = xset \
  60974. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60975. done
  60976. PS1='$ '
  60977. PS2='> '
  60978. @@ -133,330 +130,300 @@
  60979. LANGUAGE=C
  60980. export LANGUAGE
  60981. -# Required to use basename.
  60982. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  60983. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  60984. - as_expr=expr
  60985. -else
  60986. - as_expr=false
  60987. -fi
  60988. -
  60989. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  60990. - as_basename=basename
  60991. -else
  60992. - as_basename=false
  60993. -fi
  60994. -
  60995. -
  60996. -# Name of the executable.
  60997. -as_me=`$as_basename -- "$0" ||
  60998. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60999. - X"$0" : 'X\(//\)$' \| \
  61000. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  61001. -$as_echo X/"$0" |
  61002. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  61003. - s//\1/
  61004. - q
  61005. - }
  61006. - /^X\/\(\/\/\)$/{
  61007. - s//\1/
  61008. - q
  61009. - }
  61010. - /^X\/\(\/\).*/{
  61011. - s//\1/
  61012. - q
  61013. - }
  61014. - s/.*/./; q'`
  61015. -
  61016. # CDPATH.
  61017. -$as_unset CDPATH
  61018. -
  61019. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  61020. if test "x$CONFIG_SHELL" = x; then
  61021. - if (eval ":") 2>/dev/null; then
  61022. - as_have_required=yes
  61023. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  61024. + emulate sh
  61025. + NULLCMD=:
  61026. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  61027. + # is contrary to our usage. Disable this feature.
  61028. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  61029. + setopt NO_GLOB_SUBST
  61030. else
  61031. - as_have_required=no
  61032. + case \`(set -o) 2>/dev/null\` in #(
  61033. + *posix*) :
  61034. + set -o posix ;; #(
  61035. + *) :
  61036. + ;;
  61037. +esac
  61038. fi
  61039. -
  61040. - if test $as_have_required = yes && (eval ":
  61041. -(as_func_return () {
  61042. - (exit \$1)
  61043. -}
  61044. -as_func_success () {
  61045. - as_func_return 0
  61046. -}
  61047. -as_func_failure () {
  61048. - as_func_return 1
  61049. -}
  61050. -as_func_ret_success () {
  61051. - return 0
  61052. -}
  61053. -as_func_ret_failure () {
  61054. - return 1
  61055. -}
  61056. +"
  61057. + as_required="as_fn_return () { (exit \$1); }
  61058. +as_fn_success () { as_fn_return 0; }
  61059. +as_fn_failure () { as_fn_return 1; }
  61060. +as_fn_ret_success () { return 0; }
  61061. +as_fn_ret_failure () { return 1; }
  61062. exitcode=0
  61063. -if as_func_success; then
  61064. - :
  61065. -else
  61066. - exitcode=1
  61067. - echo as_func_success failed.
  61068. -fi
  61069. -
  61070. -if as_func_failure; then
  61071. - exitcode=1
  61072. - echo as_func_failure succeeded.
  61073. -fi
  61074. -
  61075. -if as_func_ret_success; then
  61076. - :
  61077. -else
  61078. - exitcode=1
  61079. - echo as_func_ret_success failed.
  61080. -fi
  61081. -
  61082. -if as_func_ret_failure; then
  61083. - exitcode=1
  61084. - echo as_func_ret_failure succeeded.
  61085. -fi
  61086. -
  61087. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  61088. - :
  61089. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  61090. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  61091. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  61092. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  61093. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  61094. +
  61095. +else
  61096. + exitcode=1; echo positional parameters were not saved.
  61097. +fi
  61098. +test x\$exitcode = x0 || exit 1"
  61099. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  61100. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  61101. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  61102. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  61103. +test \$(( 1 + 1 )) = 2 || exit 1"
  61104. + if (eval "$as_required") 2>/dev/null; then :
  61105. + as_have_required=yes
  61106. else
  61107. - exitcode=1
  61108. - echo positional parameters were not saved.
  61109. + as_have_required=no
  61110. fi
  61111. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  61112. -test \$exitcode = 0) || { (exit 1); exit 1; }
  61113. -
  61114. -(
  61115. - as_lineno_1=\$LINENO
  61116. - as_lineno_2=\$LINENO
  61117. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  61118. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  61119. -") 2> /dev/null; then
  61120. - :
  61121. else
  61122. - as_candidate_shells=
  61123. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61124. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61125. +as_found=false
  61126. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  61127. do
  61128. IFS=$as_save_IFS
  61129. test -z "$as_dir" && as_dir=.
  61130. - case $as_dir in
  61131. + as_found=:
  61132. + case $as_dir in #(
  61133. /*)
  61134. for as_base in sh bash ksh sh5; do
  61135. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  61136. + # Try only shells that exist, to save several forks.
  61137. + as_shell=$as_dir/$as_base
  61138. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  61139. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  61140. + CONFIG_SHELL=$as_shell as_have_required=yes
  61141. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  61142. + break 2
  61143. +fi
  61144. +fi
  61145. done;;
  61146. esac
  61147. + as_found=false
  61148. done
  61149. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  61150. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  61151. + CONFIG_SHELL=$SHELL as_have_required=yes
  61152. +fi; }
  61153. IFS=$as_save_IFS
  61154. - for as_shell in $as_candidate_shells $SHELL; do
  61155. - # Try only shells that exist, to save several forks.
  61156. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  61157. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  61158. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  61159. - emulate sh
  61160. - NULLCMD=:
  61161. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  61162. - # is contrary to our usage. Disable this feature.
  61163. - alias -g '${1+"$@"}'='"$@"'
  61164. - setopt NO_GLOB_SUBST
  61165. -else
  61166. - case `(set -o) 2>/dev/null` in
  61167. - *posix*) set -o posix ;;
  61168. -esac
  61169. -
  61170. -fi
  61171. -
  61172. -
  61173. -:
  61174. -_ASEOF
  61175. -}; then
  61176. - CONFIG_SHELL=$as_shell
  61177. - as_have_required=yes
  61178. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  61179. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  61180. - emulate sh
  61181. - NULLCMD=:
  61182. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  61183. - # is contrary to our usage. Disable this feature.
  61184. - alias -g '${1+"$@"}'='"$@"'
  61185. - setopt NO_GLOB_SUBST
  61186. -else
  61187. - case `(set -o) 2>/dev/null` in
  61188. - *posix*) set -o posix ;;
  61189. -esac
  61190. -
  61191. -fi
  61192. -
  61193. -
  61194. -:
  61195. -(as_func_return () {
  61196. - (exit $1)
  61197. -}
  61198. -as_func_success () {
  61199. - as_func_return 0
  61200. -}
  61201. -as_func_failure () {
  61202. - as_func_return 1
  61203. -}
  61204. -as_func_ret_success () {
  61205. - return 0
  61206. -}
  61207. -as_func_ret_failure () {
  61208. - return 1
  61209. -}
  61210. -
  61211. -exitcode=0
  61212. -if as_func_success; then
  61213. - :
  61214. -else
  61215. - exitcode=1
  61216. - echo as_func_success failed.
  61217. -fi
  61218. -
  61219. -if as_func_failure; then
  61220. - exitcode=1
  61221. - echo as_func_failure succeeded.
  61222. -fi
  61223. -
  61224. -if as_func_ret_success; then
  61225. - :
  61226. -else
  61227. - exitcode=1
  61228. - echo as_func_ret_success failed.
  61229. -fi
  61230. -
  61231. -if as_func_ret_failure; then
  61232. - exitcode=1
  61233. - echo as_func_ret_failure succeeded.
  61234. -fi
  61235. -
  61236. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  61237. - :
  61238. -else
  61239. - exitcode=1
  61240. - echo positional parameters were not saved.
  61241. -fi
  61242. -
  61243. -test $exitcode = 0) || { (exit 1); exit 1; }
  61244. -
  61245. -(
  61246. - as_lineno_1=$LINENO
  61247. - as_lineno_2=$LINENO
  61248. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  61249. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  61250. -
  61251. -_ASEOF
  61252. -}; then
  61253. - break
  61254. -fi
  61255. -
  61256. -fi
  61257. -
  61258. - done
  61259. -
  61260. - if test "x$CONFIG_SHELL" != x; then
  61261. - for as_var in BASH_ENV ENV
  61262. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  61263. - done
  61264. + if test "x$CONFIG_SHELL" != x; then :
  61265. + # We cannot yet assume a decent shell, so we have to provide a
  61266. + # neutralization value for shells without unset; and this also
  61267. + # works around shells that cannot unset nonexistent variables.
  61268. + BASH_ENV=/dev/null
  61269. + ENV=/dev/null
  61270. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  61271. export CONFIG_SHELL
  61272. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  61273. fi
  61274. -
  61275. - if test $as_have_required = no; then
  61276. - echo This script requires a shell more modern than all the
  61277. - echo shells that I found on your system. Please install a
  61278. - echo modern shell, or manually run the script under such a
  61279. - echo shell if you do have one.
  61280. - { (exit 1); exit 1; }
  61281. + if test x$as_have_required = xno; then :
  61282. + $as_echo "$0: This script requires a shell more modern than all"
  61283. + $as_echo "$0: the shells that I found on your system."
  61284. + if test x${ZSH_VERSION+set} = xset ; then
  61285. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  61286. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  61287. + else
  61288. + $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-guile@gnu.org
  61289. +$0: about your system, including any error possibly output
  61290. +$0: before this message. Then install a modern shell, or
  61291. +$0: manually run the script under such a shell if you do
  61292. +$0: have one."
  61293. + fi
  61294. + exit 1
  61295. fi
  61296. -
  61297. -
  61298. fi
  61299. -
  61300. fi
  61301. +SHELL=${CONFIG_SHELL-/bin/sh}
  61302. +export SHELL
  61303. +# Unset more variables known to interfere with behavior of common tools.
  61304. +CLICOLOR_FORCE= GREP_OPTIONS=
  61305. +unset CLICOLOR_FORCE GREP_OPTIONS
  61306. +
  61307. +## --------------------- ##
  61308. +## M4sh Shell Functions. ##
  61309. +## --------------------- ##
  61310. +# as_fn_unset VAR
  61311. +# ---------------
  61312. +# Portably unset VAR.
  61313. +as_fn_unset ()
  61314. +{
  61315. + { eval $1=; unset $1;}
  61316. +}
  61317. +as_unset=as_fn_unset
  61318. +
  61319. +# as_fn_set_status STATUS
  61320. +# -----------------------
  61321. +# Set $? to STATUS, without forking.
  61322. +as_fn_set_status ()
  61323. +{
  61324. + return $1
  61325. +} # as_fn_set_status
  61326. +
  61327. +# as_fn_exit STATUS
  61328. +# -----------------
  61329. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  61330. +as_fn_exit ()
  61331. +{
  61332. + set +e
  61333. + as_fn_set_status $1
  61334. + exit $1
  61335. +} # as_fn_exit
  61336. +
  61337. +# as_fn_mkdir_p
  61338. +# -------------
  61339. +# Create "$as_dir" as a directory, including parents if necessary.
  61340. +as_fn_mkdir_p ()
  61341. +{
  61342. + case $as_dir in #(
  61343. + -*) as_dir=./$as_dir;;
  61344. + esac
  61345. + test -d "$as_dir" || eval $as_mkdir_p || {
  61346. + as_dirs=
  61347. + while :; do
  61348. + case $as_dir in #(
  61349. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  61350. + *) as_qdir=$as_dir;;
  61351. + esac
  61352. + as_dirs="'$as_qdir' $as_dirs"
  61353. + as_dir=`$as_dirname -- "$as_dir" ||
  61354. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  61355. + X"$as_dir" : 'X\(//\)[^/]' \| \
  61356. + X"$as_dir" : 'X\(//\)$' \| \
  61357. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  61358. +$as_echo X"$as_dir" |
  61359. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  61360. + s//\1/
  61361. + q
  61362. + }
  61363. + /^X\(\/\/\)[^/].*/{
  61364. + s//\1/
  61365. + q
  61366. + }
  61367. + /^X\(\/\/\)$/{
  61368. + s//\1/
  61369. + q
  61370. + }
  61371. + /^X\(\/\).*/{
  61372. + s//\1/
  61373. + q
  61374. + }
  61375. + s/.*/./; q'`
  61376. + test -d "$as_dir" && break
  61377. + done
  61378. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  61379. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  61380. -(eval "as_func_return () {
  61381. - (exit \$1)
  61382. -}
  61383. -as_func_success () {
  61384. - as_func_return 0
  61385. -}
  61386. -as_func_failure () {
  61387. - as_func_return 1
  61388. -}
  61389. -as_func_ret_success () {
  61390. - return 0
  61391. -}
  61392. -as_func_ret_failure () {
  61393. - return 1
  61394. -}
  61395. +} # as_fn_mkdir_p
  61396. +# as_fn_append VAR VALUE
  61397. +# ----------------------
  61398. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  61399. +# advantage of any shell optimizations that allow amortized linear growth over
  61400. +# repeated appends, instead of the typical quadratic growth present in naive
  61401. +# implementations.
  61402. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  61403. + eval 'as_fn_append ()
  61404. + {
  61405. + eval $1+=\$2
  61406. + }'
  61407. +else
  61408. + as_fn_append ()
  61409. + {
  61410. + eval $1=\$$1\$2
  61411. + }
  61412. +fi # as_fn_append
  61413. -exitcode=0
  61414. -if as_func_success; then
  61415. - :
  61416. +# as_fn_arith ARG...
  61417. +# ------------------
  61418. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  61419. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  61420. +# must be portable across $(()) and expr.
  61421. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  61422. + eval 'as_fn_arith ()
  61423. + {
  61424. + as_val=$(( $* ))
  61425. + }'
  61426. else
  61427. - exitcode=1
  61428. - echo as_func_success failed.
  61429. -fi
  61430. + as_fn_arith ()
  61431. + {
  61432. + as_val=`expr "$@" || test $? -eq 1`
  61433. + }
  61434. +fi # as_fn_arith
  61435. -if as_func_failure; then
  61436. - exitcode=1
  61437. - echo as_func_failure succeeded.
  61438. -fi
  61439. -if as_func_ret_success; then
  61440. - :
  61441. +# as_fn_error ERROR [LINENO LOG_FD]
  61442. +# ---------------------------------
  61443. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  61444. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  61445. +# script with status $?, using 1 if that was 0.
  61446. +as_fn_error ()
  61447. +{
  61448. + as_status=$?; test $as_status -eq 0 && as_status=1
  61449. + if test "$3"; then
  61450. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61451. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  61452. + fi
  61453. + $as_echo "$as_me: error: $1" >&2
  61454. + as_fn_exit $as_status
  61455. +} # as_fn_error
  61456. +
  61457. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  61458. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  61459. + as_expr=expr
  61460. else
  61461. - exitcode=1
  61462. - echo as_func_ret_success failed.
  61463. + as_expr=false
  61464. fi
  61465. -if as_func_ret_failure; then
  61466. - exitcode=1
  61467. - echo as_func_ret_failure succeeded.
  61468. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  61469. + as_basename=basename
  61470. +else
  61471. + as_basename=false
  61472. fi
  61473. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  61474. - :
  61475. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  61476. + as_dirname=dirname
  61477. else
  61478. - exitcode=1
  61479. - echo positional parameters were not saved.
  61480. + as_dirname=false
  61481. fi
  61482. -test \$exitcode = 0") || {
  61483. - echo No shell found that supports shell functions.
  61484. - echo Please tell bug-autoconf@gnu.org about your system,
  61485. - echo including any error possibly output before this message.
  61486. - echo This can help us improve future autoconf versions.
  61487. - echo Configuration will now proceed without shell functions.
  61488. -}
  61489. +as_me=`$as_basename -- "$0" ||
  61490. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61491. + X"$0" : 'X\(//\)$' \| \
  61492. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  61493. +$as_echo X/"$0" |
  61494. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  61495. + s//\1/
  61496. + q
  61497. + }
  61498. + /^X\/\(\/\/\)$/{
  61499. + s//\1/
  61500. + q
  61501. + }
  61502. + /^X\/\(\/\).*/{
  61503. + s//\1/
  61504. + q
  61505. + }
  61506. + s/.*/./; q'`
  61507. +# Avoid depending upon Character Ranges.
  61508. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  61509. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  61510. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  61511. +as_cr_digits='0123456789'
  61512. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  61513. - as_lineno_1=$LINENO
  61514. - as_lineno_2=$LINENO
  61515. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  61516. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  61517. -
  61518. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  61519. - # uniformly replaced by the line number. The first 'sed' inserts a
  61520. - # line-number line after each line using $LINENO; the second 'sed'
  61521. - # does the real work. The second script uses 'N' to pair each
  61522. - # line-number line with the line containing $LINENO, and appends
  61523. - # trailing '-' during substitution so that $LINENO is not a special
  61524. - # case at line end.
  61525. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  61526. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  61527. - # E. McMahon (1931-1989) for sed's syntax. :-)
  61528. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  61529. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  61530. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  61531. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  61532. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  61533. sed -n '
  61534. p
  61535. /[$]LINENO/=
  61536. @@ -473,8 +440,7 @@
  61537. s/-\n.*//
  61538. ' >$as_me.lineno &&
  61539. chmod +x "$as_me.lineno" ||
  61540. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  61541. - { (exit 1); exit 1; }; }
  61542. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  61543. # Don't try to exec as it changes $[0], causing all sort of problems
  61544. # (the dirname of $[0] is not the place where we might find the
  61545. @@ -484,29 +450,18 @@
  61546. exit
  61547. }
  61548. -
  61549. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  61550. - as_dirname=dirname
  61551. -else
  61552. - as_dirname=false
  61553. -fi
  61554. -
  61555. ECHO_C= ECHO_N= ECHO_T=
  61556. -case `echo -n x` in
  61557. +case `echo -n x` in #(((((
  61558. -n*)
  61559. - case `echo 'x\c'` in
  61560. + case `echo 'xy\c'` in
  61561. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  61562. - *) ECHO_C='\c';;
  61563. + xy) ECHO_C='\c';;
  61564. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  61565. + ECHO_T=' ';;
  61566. esac;;
  61567. *)
  61568. ECHO_N='-n';;
  61569. esac
  61570. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  61571. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  61572. - as_expr=expr
  61573. -else
  61574. - as_expr=false
  61575. -fi
  61576. rm -f conf$$ conf$$.exe conf$$.file
  61577. if test -d conf$$.dir; then
  61578. @@ -536,7 +491,7 @@
  61579. rmdir conf$$.dir 2>/dev/null
  61580. if mkdir -p . 2>/dev/null; then
  61581. - as_mkdir_p=:
  61582. + as_mkdir_p='mkdir -p "$as_dir"'
  61583. else
  61584. test -d ./-p && rmdir ./-p
  61585. as_mkdir_p=false
  61586. @@ -555,10 +510,10 @@
  61587. if test -d "$1"; then
  61588. test -d "$1/.";
  61589. else
  61590. - case $1 in
  61591. + case $1 in #(
  61592. -*)set "./$1";;
  61593. esac;
  61594. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  61595. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  61596. ???[sx]*):;;*)false;;esac;fi
  61597. '\'' sh
  61598. '
  61599. @@ -573,7 +528,6 @@
  61600. -
  61601. # Check that we are running under the correct shell.
  61602. SHELL=${CONFIG_SHELL-/bin/sh}
  61603. @@ -740,7 +694,6 @@
  61604. subdirs=
  61605. MFLAGS=
  61606. MAKEFLAGS=
  61607. -SHELL=${CONFIG_SHELL-/bin/sh}
  61608. # Identity of this package.
  61609. PACKAGE_NAME='guile-readline'
  61610. @@ -748,6 +701,7 @@
  61611. PACKAGE_VERSION='1.8.7'
  61612. PACKAGE_STRING='guile-readline 1.8.7'
  61613. PACKAGE_BUGREPORT='bug-guile@gnu.org'
  61614. +PACKAGE_URL=''
  61615. ac_unique_file="readline.c"
  61616. # Factoring default headers for most tests.
  61617. @@ -896,6 +850,7 @@
  61618. program_transform_name
  61619. prefix
  61620. exec_prefix
  61621. +PACKAGE_URL
  61622. PACKAGE_BUGREPORT
  61623. PACKAGE_STRING
  61624. PACKAGE_VERSION
  61625. @@ -1031,8 +986,7 @@
  61626. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  61627. # Reject names that are not valid shell variable names.
  61628. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  61629. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  61630. - { (exit 1); exit 1; }; }
  61631. + as_fn_error "invalid feature name: $ac_useropt"
  61632. ac_useropt_orig=$ac_useropt
  61633. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  61634. case $ac_user_opts in
  61635. @@ -1058,8 +1012,7 @@
  61636. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  61637. # Reject names that are not valid shell variable names.
  61638. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  61639. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  61640. - { (exit 1); exit 1; }; }
  61641. + as_fn_error "invalid feature name: $ac_useropt"
  61642. ac_useropt_orig=$ac_useropt
  61643. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  61644. case $ac_user_opts in
  61645. @@ -1263,8 +1216,7 @@
  61646. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  61647. # Reject names that are not valid shell variable names.
  61648. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  61649. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  61650. - { (exit 1); exit 1; }; }
  61651. + as_fn_error "invalid package name: $ac_useropt"
  61652. ac_useropt_orig=$ac_useropt
  61653. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  61654. case $ac_user_opts in
  61655. @@ -1280,8 +1232,7 @@
  61656. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  61657. # Reject names that are not valid shell variable names.
  61658. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  61659. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  61660. - { (exit 1); exit 1; }; }
  61661. + as_fn_error "invalid package name: $ac_useropt"
  61662. ac_useropt_orig=$ac_useropt
  61663. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  61664. case $ac_user_opts in
  61665. @@ -1311,17 +1262,17 @@
  61666. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  61667. x_libraries=$ac_optarg ;;
  61668. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  61669. -Try \`$0 --help' for more information." >&2
  61670. - { (exit 1); exit 1; }; }
  61671. + -*) as_fn_error "unrecognized option: \`$ac_option'
  61672. +Try \`$0 --help' for more information."
  61673. ;;
  61674. *=*)
  61675. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  61676. # Reject names that are not valid shell variable names.
  61677. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  61678. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  61679. - { (exit 1); exit 1; }; }
  61680. + case $ac_envvar in #(
  61681. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  61682. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  61683. + esac
  61684. eval $ac_envvar=\$ac_optarg
  61685. export $ac_envvar ;;
  61686. @@ -1338,15 +1289,13 @@
  61687. if test -n "$ac_prev"; then
  61688. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  61689. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  61690. - { (exit 1); exit 1; }; }
  61691. + as_fn_error "missing argument to $ac_option"
  61692. fi
  61693. if test -n "$ac_unrecognized_opts"; then
  61694. case $enable_option_checking in
  61695. no) ;;
  61696. - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  61697. - { (exit 1); exit 1; }; } ;;
  61698. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  61699. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  61700. esac
  61701. fi
  61702. @@ -1369,8 +1318,7 @@
  61703. [\\/$]* | ?:[\\/]* ) continue;;
  61704. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  61705. esac
  61706. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  61707. - { (exit 1); exit 1; }; }
  61708. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  61709. done
  61710. # There might be people who depend on the old broken behavior: `$host'
  61711. @@ -1400,11 +1348,9 @@
  61712. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  61713. ac_ls_di=`ls -di .` &&
  61714. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  61715. - { $as_echo "$as_me: error: working directory cannot be determined" >&2
  61716. - { (exit 1); exit 1; }; }
  61717. + as_fn_error "working directory cannot be determined"
  61718. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  61719. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  61720. - { (exit 1); exit 1; }; }
  61721. + as_fn_error "pwd does not report name of working directory"
  61722. # Find the source files, if location was not specified.
  61723. @@ -1443,13 +1389,11 @@
  61724. fi
  61725. if test ! -r "$srcdir/$ac_unique_file"; then
  61726. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  61727. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  61728. - { (exit 1); exit 1; }; }
  61729. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  61730. fi
  61731. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  61732. ac_abs_confdir=`(
  61733. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  61734. - { (exit 1); exit 1; }; }
  61735. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  61736. pwd)`
  61737. # When building in place, set srcdir=.
  61738. if test "$ac_abs_confdir" = "$ac_pwd"; then
  61739. @@ -1645,21 +1589,285 @@
  61740. if $ac_init_version; then
  61741. cat <<\_ACEOF
  61742. guile-readline configure 1.8.7
  61743. -generated by GNU Autoconf 2.63
  61744. +generated by GNU Autoconf 2.64
  61745. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  61746. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  61747. +Copyright (C) 2009 Free Software Foundation, Inc.
  61748. This configure script is free software; the Free Software Foundation
  61749. gives unlimited permission to copy, distribute and modify it.
  61750. _ACEOF
  61751. exit
  61752. fi
  61753. +
  61754. +## ------------------------ ##
  61755. +## Autoconf initialization. ##
  61756. +## ------------------------ ##
  61757. +
  61758. +# ac_fn_c_try_compile LINENO
  61759. +# --------------------------
  61760. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  61761. +ac_fn_c_try_compile ()
  61762. +{
  61763. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61764. + rm -f conftest.$ac_objext
  61765. + if { { ac_try="$ac_compile"
  61766. +case "(($ac_try" in
  61767. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  61768. + *) ac_try_echo=$ac_try;;
  61769. +esac
  61770. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  61771. +$as_echo "$ac_try_echo"; } >&5
  61772. + (eval "$ac_compile") 2>conftest.err
  61773. + ac_status=$?
  61774. + if test -s conftest.err; then
  61775. + grep -v '^ *+' conftest.err >conftest.er1
  61776. + cat conftest.er1 >&5
  61777. + mv -f conftest.er1 conftest.err
  61778. + fi
  61779. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  61780. + test $ac_status = 0; } && {
  61781. + test -z "$ac_c_werror_flag" ||
  61782. + test ! -s conftest.err
  61783. + } && test -s conftest.$ac_objext; then :
  61784. + ac_retval=0
  61785. +else
  61786. + $as_echo "$as_me: failed program was:" >&5
  61787. +sed 's/^/| /' conftest.$ac_ext >&5
  61788. +
  61789. + ac_retval=1
  61790. +fi
  61791. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  61792. + return $ac_retval
  61793. +
  61794. +} # ac_fn_c_try_compile
  61795. +
  61796. +# ac_fn_c_try_link LINENO
  61797. +# -----------------------
  61798. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  61799. +ac_fn_c_try_link ()
  61800. +{
  61801. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61802. + rm -f conftest.$ac_objext conftest$ac_exeext
  61803. + if { { ac_try="$ac_link"
  61804. +case "(($ac_try" in
  61805. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  61806. + *) ac_try_echo=$ac_try;;
  61807. +esac
  61808. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  61809. +$as_echo "$ac_try_echo"; } >&5
  61810. + (eval "$ac_link") 2>conftest.err
  61811. + ac_status=$?
  61812. + if test -s conftest.err; then
  61813. + grep -v '^ *+' conftest.err >conftest.er1
  61814. + cat conftest.er1 >&5
  61815. + mv -f conftest.er1 conftest.err
  61816. + fi
  61817. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  61818. + test $ac_status = 0; } && {
  61819. + test -z "$ac_c_werror_flag" ||
  61820. + test ! -s conftest.err
  61821. + } && test -s conftest$ac_exeext && {
  61822. + test "$cross_compiling" = yes ||
  61823. + $as_test_x conftest$ac_exeext
  61824. + }; then :
  61825. + ac_retval=0
  61826. +else
  61827. + $as_echo "$as_me: failed program was:" >&5
  61828. +sed 's/^/| /' conftest.$ac_ext >&5
  61829. +
  61830. + ac_retval=1
  61831. +fi
  61832. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  61833. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  61834. + # interfere with the next link command; also delete a directory that is
  61835. + # left behind by Apple's compiler. We do this before executing the actions.
  61836. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  61837. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  61838. + return $ac_retval
  61839. +
  61840. +} # ac_fn_c_try_link
  61841. +
  61842. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  61843. +# -------------------------------------------------------
  61844. +# Tests whether HEADER exists and can be compiled using the include files in
  61845. +# INCLUDES, setting the cache variable VAR accordingly.
  61846. +ac_fn_c_check_header_compile ()
  61847. +{
  61848. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61849. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  61850. +$as_echo_n "checking for $2... " >&6; }
  61851. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  61852. + $as_echo_n "(cached) " >&6
  61853. +else
  61854. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61855. +/* end confdefs.h. */
  61856. +$4
  61857. +#include <$2>
  61858. +_ACEOF
  61859. +if ac_fn_c_try_compile "$LINENO"; then :
  61860. + eval "$3=yes"
  61861. +else
  61862. + eval "$3=no"
  61863. +fi
  61864. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61865. +fi
  61866. +eval ac_res=\$$3
  61867. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  61868. +$as_echo "$ac_res" >&6; }
  61869. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  61870. +
  61871. +} # ac_fn_c_check_header_compile
  61872. +
  61873. +# ac_fn_c_try_cpp LINENO
  61874. +# ----------------------
  61875. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  61876. +ac_fn_c_try_cpp ()
  61877. +{
  61878. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61879. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  61880. +case "(($ac_try" in
  61881. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  61882. + *) ac_try_echo=$ac_try;;
  61883. +esac
  61884. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  61885. +$as_echo "$ac_try_echo"; } >&5
  61886. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  61887. + ac_status=$?
  61888. + if test -s conftest.err; then
  61889. + grep -v '^ *+' conftest.err >conftest.er1
  61890. + cat conftest.er1 >&5
  61891. + mv -f conftest.er1 conftest.err
  61892. + fi
  61893. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  61894. + test $ac_status = 0; } >/dev/null && {
  61895. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  61896. + test ! -s conftest.err
  61897. + }; then :
  61898. + ac_retval=0
  61899. +else
  61900. + $as_echo "$as_me: failed program was:" >&5
  61901. +sed 's/^/| /' conftest.$ac_ext >&5
  61902. +
  61903. + ac_retval=1
  61904. +fi
  61905. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  61906. + return $ac_retval
  61907. +
  61908. +} # ac_fn_c_try_cpp
  61909. +
  61910. +# ac_fn_c_try_run LINENO
  61911. +# ----------------------
  61912. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  61913. +# that executables *can* be run.
  61914. +ac_fn_c_try_run ()
  61915. +{
  61916. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61917. + if { { ac_try="$ac_link"
  61918. +case "(($ac_try" in
  61919. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  61920. + *) ac_try_echo=$ac_try;;
  61921. +esac
  61922. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  61923. +$as_echo "$ac_try_echo"; } >&5
  61924. + (eval "$ac_link") 2>&5
  61925. + ac_status=$?
  61926. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  61927. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  61928. + { { case "(($ac_try" in
  61929. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  61930. + *) ac_try_echo=$ac_try;;
  61931. +esac
  61932. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  61933. +$as_echo "$ac_try_echo"; } >&5
  61934. + (eval "$ac_try") 2>&5
  61935. + ac_status=$?
  61936. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  61937. + test $ac_status = 0; }; }; then :
  61938. + ac_retval=0
  61939. +else
  61940. + $as_echo "$as_me: program exited with status $ac_status" >&5
  61941. + $as_echo "$as_me: failed program was:" >&5
  61942. +sed 's/^/| /' conftest.$ac_ext >&5
  61943. +
  61944. + ac_retval=$ac_status
  61945. +fi
  61946. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  61947. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  61948. + return $ac_retval
  61949. +
  61950. +} # ac_fn_c_try_run
  61951. +
  61952. +# ac_fn_c_check_func LINENO FUNC VAR
  61953. +# ----------------------------------
  61954. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  61955. +ac_fn_c_check_func ()
  61956. +{
  61957. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  61958. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  61959. +$as_echo_n "checking for $2... " >&6; }
  61960. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  61961. + $as_echo_n "(cached) " >&6
  61962. +else
  61963. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61964. +/* end confdefs.h. */
  61965. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  61966. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  61967. +#define $2 innocuous_$2
  61968. +
  61969. +/* System header to define __stub macros and hopefully few prototypes,
  61970. + which can conflict with char $2 (); below.
  61971. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  61972. + <limits.h> exists even on freestanding compilers. */
  61973. +
  61974. +#ifdef __STDC__
  61975. +# include <limits.h>
  61976. +#else
  61977. +# include <assert.h>
  61978. +#endif
  61979. +
  61980. +#undef $2
  61981. +
  61982. +/* Override any GCC internal prototype to avoid an error.
  61983. + Use char because int might match the return type of a GCC
  61984. + builtin and then its argument prototype would still apply. */
  61985. +#ifdef __cplusplus
  61986. +extern "C"
  61987. +#endif
  61988. +char $2 ();
  61989. +/* The GNU C library defines this for functions which it implements
  61990. + to always fail with ENOSYS. Some functions are actually named
  61991. + something starting with __ and the normal name is an alias. */
  61992. +#if defined __stub_$2 || defined __stub___$2
  61993. +choke me
  61994. +#endif
  61995. +
  61996. +int
  61997. +main ()
  61998. +{
  61999. +return $2 ();
  62000. + ;
  62001. + return 0;
  62002. +}
  62003. +_ACEOF
  62004. +if ac_fn_c_try_link "$LINENO"; then :
  62005. + eval "$3=yes"
  62006. +else
  62007. + eval "$3=no"
  62008. +fi
  62009. +rm -f core conftest.err conftest.$ac_objext \
  62010. + conftest$ac_exeext conftest.$ac_ext
  62011. +fi
  62012. +eval ac_res=\$$3
  62013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  62014. +$as_echo "$ac_res" >&6; }
  62015. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  62016. +
  62017. +} # ac_fn_c_check_func
  62018. cat >config.log <<_ACEOF
  62019. This file contains any messages produced by compilers while
  62020. running configure, to aid debugging if configure makes a mistake.
  62021. It was created by guile-readline $as_me 1.8.7, which was
  62022. -generated by GNU Autoconf 2.63. Invocation command line was
  62023. +generated by GNU Autoconf 2.64. Invocation command line was
  62024. $ $0 $@
  62025. @@ -1695,8 +1903,8 @@
  62026. do
  62027. IFS=$as_save_IFS
  62028. test -z "$as_dir" && as_dir=.
  62029. - $as_echo "PATH: $as_dir"
  62030. -done
  62031. + $as_echo "PATH: $as_dir"
  62032. + done
  62033. IFS=$as_save_IFS
  62034. } >&5
  62035. @@ -1733,9 +1941,9 @@
  62036. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  62037. esac
  62038. case $ac_pass in
  62039. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  62040. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  62041. 2)
  62042. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  62043. + as_fn_append ac_configure_args1 " '$ac_arg'"
  62044. if test $ac_must_keep_next = true; then
  62045. ac_must_keep_next=false # Got value, back to normal.
  62046. else
  62047. @@ -1751,13 +1959,13 @@
  62048. -* ) ac_must_keep_next=true ;;
  62049. esac
  62050. fi
  62051. - ac_configure_args="$ac_configure_args '$ac_arg'"
  62052. + as_fn_append ac_configure_args " '$ac_arg'"
  62053. ;;
  62054. esac
  62055. done
  62056. done
  62057. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  62058. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  62059. +{ ac_configure_args0=; unset ac_configure_args0;}
  62060. +{ ac_configure_args1=; unset ac_configure_args1;}
  62061. # When interrupted or exit'd, cleanup temporary files, and complete
  62062. # config.log. We remove comments because anyway the quotes in there
  62063. @@ -1782,13 +1990,13 @@
  62064. case $ac_val in #(
  62065. *${as_nl}*)
  62066. case $ac_var in #(
  62067. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  62068. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  62069. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  62070. esac
  62071. case $ac_var in #(
  62072. _ | IFS | as_nl) ;; #(
  62073. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  62074. - *) $as_unset $ac_var ;;
  62075. + *) { eval $ac_var=; unset $ac_var;} ;;
  62076. esac ;;
  62077. esac
  62078. done
  62079. @@ -1860,39 +2068,41 @@
  62080. exit $exit_status
  62081. ' 0
  62082. for ac_signal in 1 2 13 15; do
  62083. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  62084. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  62085. done
  62086. ac_signal=0
  62087. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  62088. rm -f -r conftest* confdefs.h
  62089. +$as_echo "/* confdefs.h */" > confdefs.h
  62090. +
  62091. # Predefined preprocessor variables.
  62092. cat >>confdefs.h <<_ACEOF
  62093. #define PACKAGE_NAME "$PACKAGE_NAME"
  62094. _ACEOF
  62095. -
  62096. cat >>confdefs.h <<_ACEOF
  62097. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  62098. _ACEOF
  62099. -
  62100. cat >>confdefs.h <<_ACEOF
  62101. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  62102. _ACEOF
  62103. -
  62104. cat >>confdefs.h <<_ACEOF
  62105. #define PACKAGE_STRING "$PACKAGE_STRING"
  62106. _ACEOF
  62107. -
  62108. cat >>confdefs.h <<_ACEOF
  62109. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  62110. _ACEOF
  62111. +cat >>confdefs.h <<_ACEOF
  62112. +#define PACKAGE_URL "$PACKAGE_URL"
  62113. +_ACEOF
  62114. +
  62115. # Let the site file select an alternate cache file if it wants to.
  62116. # Prefer an explicitly selected file to automatically selected ones.
  62117. @@ -1911,7 +2121,7 @@
  62118. do
  62119. test "x$ac_site_file" = xNONE && continue
  62120. if test -r "$ac_site_file"; then
  62121. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  62122. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  62123. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  62124. sed 's/^/| /' "$ac_site_file" >&5
  62125. . "$ac_site_file"
  62126. @@ -1922,7 +2132,7 @@
  62127. # Some versions of bash will fail to source /dev/null (special
  62128. # files actually), so we avoid doing that.
  62129. if test -f "$cache_file"; then
  62130. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  62131. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  62132. $as_echo "$as_me: loading cache $cache_file" >&6;}
  62133. case $cache_file in
  62134. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  62135. @@ -1930,7 +2140,7 @@
  62136. esac
  62137. fi
  62138. else
  62139. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  62140. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  62141. $as_echo "$as_me: creating cache $cache_file" >&6;}
  62142. >$cache_file
  62143. fi
  62144. @@ -1945,11 +2155,11 @@
  62145. eval ac_new_val=\$ac_env_${ac_var}_value
  62146. case $ac_old_set,$ac_new_set in
  62147. set,)
  62148. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  62149. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  62150. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  62151. ac_cache_corrupted=: ;;
  62152. ,set)
  62153. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  62154. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  62155. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  62156. ac_cache_corrupted=: ;;
  62157. ,);;
  62158. @@ -1959,17 +2169,17 @@
  62159. ac_old_val_w=`echo x $ac_old_val`
  62160. ac_new_val_w=`echo x $ac_new_val`
  62161. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  62162. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  62163. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  62164. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  62165. ac_cache_corrupted=:
  62166. else
  62167. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  62168. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  62169. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  62170. eval $ac_var=\$ac_old_val
  62171. fi
  62172. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  62173. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  62174. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  62175. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  62176. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  62177. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  62178. fi;;
  62179. esac
  62180. @@ -1981,43 +2191,20 @@
  62181. esac
  62182. case " $ac_configure_args " in
  62183. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  62184. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  62185. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  62186. esac
  62187. fi
  62188. done
  62189. if $ac_cache_corrupted; then
  62190. - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  62191. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  62192. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  62193. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  62194. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  62195. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  62196. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  62197. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  62198. - { (exit 1); exit 1; }; }
  62199. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  62200. fi
  62201. -
  62202. -
  62203. -
  62204. -
  62205. -
  62206. -
  62207. -
  62208. -
  62209. -
  62210. -
  62211. -
  62212. -
  62213. -
  62214. -
  62215. -
  62216. -
  62217. -
  62218. -
  62219. -
  62220. -
  62221. -
  62222. -
  62223. -
  62224. -
  62225. +## -------------------- ##
  62226. +## Main body of script. ##
  62227. +## -------------------- ##
  62228. ac_ext=c
  62229. ac_cpp='$CPP $CPPFLAGS'
  62230. @@ -2029,24 +2216,16 @@
  62231. ac_aux_dir=
  62232. for ac_dir in . "$srcdir"/.; do
  62233. - if test -f "$ac_dir/install-sh"; then
  62234. - ac_aux_dir=$ac_dir
  62235. - ac_install_sh="$ac_aux_dir/install-sh -c"
  62236. - break
  62237. - elif test -f "$ac_dir/install.sh"; then
  62238. - ac_aux_dir=$ac_dir
  62239. - ac_install_sh="$ac_aux_dir/install.sh -c"
  62240. - break
  62241. - elif test -f "$ac_dir/shtool"; then
  62242. - ac_aux_dir=$ac_dir
  62243. - ac_install_sh="$ac_aux_dir/shtool install -c"
  62244. - break
  62245. - fi
  62246. + for ac_t in install-sh install.sh shtool; do
  62247. + if test -f "$ac_dir/$ac_t"; then
  62248. + ac_aux_dir=$ac_dir
  62249. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  62250. + break 2
  62251. + fi
  62252. + done
  62253. done
  62254. if test -z "$ac_aux_dir"; then
  62255. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
  62256. -$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
  62257. - { (exit 1); exit 1; }; }
  62258. + as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  62259. fi
  62260. # These three variables are undocumented and unsupported,
  62261. @@ -2077,10 +2256,10 @@
  62262. # OS/2's system install, which has a completely different semantic
  62263. # ./install, which can be erroneously created by make from ./install.sh.
  62264. # Reject install programs that cannot install multiple files.
  62265. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  62266. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  62267. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  62268. if test -z "$INSTALL"; then
  62269. -if test "${ac_cv_path_install+set}" = set; then
  62270. +if test "${ac_cv_path_install+set}" = set; then :
  62271. $as_echo_n "(cached) " >&6
  62272. else
  62273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62274. @@ -2088,11 +2267,11 @@
  62275. do
  62276. IFS=$as_save_IFS
  62277. test -z "$as_dir" && as_dir=.
  62278. - # Account for people who put trailing slashes in PATH elements.
  62279. -case $as_dir/ in
  62280. - ./ | .// | /cC/* | \
  62281. + # Account for people who put trailing slashes in PATH elements.
  62282. +case $as_dir/ in #((
  62283. + ./ | .// | /[cC]/* | \
  62284. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  62285. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  62286. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  62287. /usr/ucb/* ) ;;
  62288. *)
  62289. # OSF1 and SCO ODT 3.0 have their own names for install.
  62290. @@ -2129,7 +2308,7 @@
  62291. ;;
  62292. esac
  62293. -done
  62294. + done
  62295. IFS=$as_save_IFS
  62296. rm -rf conftest.one conftest.two conftest.dir
  62297. @@ -2145,7 +2324,7 @@
  62298. INSTALL=$ac_install_sh
  62299. fi
  62300. fi
  62301. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  62302. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  62303. $as_echo "$INSTALL" >&6; }
  62304. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  62305. @@ -2156,7 +2335,7 @@
  62306. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  62307. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  62308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  62309. $as_echo_n "checking whether build environment is sane... " >&6; }
  62310. # Just in case
  62311. sleep 1
  62312. @@ -2167,15 +2346,11 @@
  62313. '
  62314. case `pwd` in
  62315. *[\\\"\#\$\&\'\`$am_lf]*)
  62316. - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  62317. -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  62318. - { (exit 1); exit 1; }; };;
  62319. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  62320. esac
  62321. case $srcdir in
  62322. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  62323. - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  62324. -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  62325. - { (exit 1); exit 1; }; };;
  62326. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  62327. esac
  62328. # Do `set' in a subshell so we don't clobber the current shell's
  62329. @@ -2197,11 +2372,8 @@
  62330. # if, for instance, CONFIG_SHELL is bash and it inherits a
  62331. # broken ls alias from the environment. This has actually
  62332. # happened. Such a system could not be considered "sane".
  62333. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  62334. -alias in your environment" >&5
  62335. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  62336. -alias in your environment" >&2;}
  62337. - { (exit 1); exit 1; }; }
  62338. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  62339. +alias in your environment" "$LINENO" 5
  62340. fi
  62341. test "$2" = conftest.file
  62342. @@ -2210,13 +2382,10 @@
  62343. # Ok.
  62344. :
  62345. else
  62346. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  62347. -Check your system clock" >&5
  62348. -$as_echo "$as_me: error: newly created file is older than distributed files!
  62349. -Check your system clock" >&2;}
  62350. - { (exit 1); exit 1; }; }
  62351. + as_fn_error "newly created file is older than distributed files!
  62352. +Check your system clock" "$LINENO" 5
  62353. fi
  62354. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  62355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  62356. $as_echo "yes" >&6; }
  62357. test "$program_prefix" != NONE &&
  62358. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  62359. @@ -2244,7 +2413,7 @@
  62360. am_missing_run="$MISSING --run "
  62361. else
  62362. am_missing_run=
  62363. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  62364. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  62365. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  62366. fi
  62367. @@ -2265,9 +2434,9 @@
  62368. if test -n "$ac_tool_prefix"; then
  62369. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  62370. set dummy ${ac_tool_prefix}strip; ac_word=$2
  62371. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62373. $as_echo_n "checking for $ac_word... " >&6; }
  62374. -if test "${ac_cv_prog_STRIP+set}" = set; then
  62375. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  62376. $as_echo_n "(cached) " >&6
  62377. else
  62378. if test -n "$STRIP"; then
  62379. @@ -2278,24 +2447,24 @@
  62380. do
  62381. IFS=$as_save_IFS
  62382. test -z "$as_dir" && as_dir=.
  62383. - for ac_exec_ext in '' $ac_executable_extensions; do
  62384. + for ac_exec_ext in '' $ac_executable_extensions; do
  62385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62386. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  62387. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62388. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62389. break 2
  62390. fi
  62391. done
  62392. -done
  62393. + done
  62394. IFS=$as_save_IFS
  62395. fi
  62396. fi
  62397. STRIP=$ac_cv_prog_STRIP
  62398. if test -n "$STRIP"; then
  62399. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  62400. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  62401. $as_echo "$STRIP" >&6; }
  62402. else
  62403. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62404. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62405. $as_echo "no" >&6; }
  62406. fi
  62407. @@ -2305,9 +2474,9 @@
  62408. ac_ct_STRIP=$STRIP
  62409. # Extract the first word of "strip", so it can be a program name with args.
  62410. set dummy strip; ac_word=$2
  62411. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62413. $as_echo_n "checking for $ac_word... " >&6; }
  62414. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  62415. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  62416. $as_echo_n "(cached) " >&6
  62417. else
  62418. if test -n "$ac_ct_STRIP"; then
  62419. @@ -2318,24 +2487,24 @@
  62420. do
  62421. IFS=$as_save_IFS
  62422. test -z "$as_dir" && as_dir=.
  62423. - for ac_exec_ext in '' $ac_executable_extensions; do
  62424. + for ac_exec_ext in '' $ac_executable_extensions; do
  62425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62426. ac_cv_prog_ac_ct_STRIP="strip"
  62427. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62428. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62429. break 2
  62430. fi
  62431. done
  62432. -done
  62433. + done
  62434. IFS=$as_save_IFS
  62435. fi
  62436. fi
  62437. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  62438. if test -n "$ac_ct_STRIP"; then
  62439. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  62440. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  62441. $as_echo "$ac_ct_STRIP" >&6; }
  62442. else
  62443. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62444. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62445. $as_echo "no" >&6; }
  62446. fi
  62447. @@ -2344,7 +2513,7 @@
  62448. else
  62449. case $cross_compiling:$ac_tool_warned in
  62450. yes:)
  62451. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  62452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  62453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  62454. ac_tool_warned=yes ;;
  62455. esac
  62456. @@ -2357,10 +2526,10 @@
  62457. fi
  62458. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  62459. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  62460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  62461. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  62462. if test -z "$MKDIR_P"; then
  62463. - if test "${ac_cv_path_mkdir+set}" = set; then
  62464. + if test "${ac_cv_path_mkdir+set}" = set; then :
  62465. $as_echo_n "(cached) " >&6
  62466. else
  62467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62468. @@ -2368,7 +2537,7 @@
  62469. do
  62470. IFS=$as_save_IFS
  62471. test -z "$as_dir" && as_dir=.
  62472. - for ac_prog in mkdir gmkdir; do
  62473. + for ac_prog in mkdir gmkdir; do
  62474. for ac_exec_ext in '' $ac_executable_extensions; do
  62475. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  62476. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  62477. @@ -2380,7 +2549,7 @@
  62478. esac
  62479. done
  62480. done
  62481. -done
  62482. + done
  62483. IFS=$as_save_IFS
  62484. fi
  62485. @@ -2396,7 +2565,7 @@
  62486. MKDIR_P="$ac_install_sh -d"
  62487. fi
  62488. fi
  62489. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  62490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  62491. $as_echo "$MKDIR_P" >&6; }
  62492. mkdir_p="$MKDIR_P"
  62493. @@ -2409,9 +2578,9 @@
  62494. do
  62495. # Extract the first word of "$ac_prog", so it can be a program name with args.
  62496. set dummy $ac_prog; ac_word=$2
  62497. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62499. $as_echo_n "checking for $ac_word... " >&6; }
  62500. -if test "${ac_cv_prog_AWK+set}" = set; then
  62501. +if test "${ac_cv_prog_AWK+set}" = set; then :
  62502. $as_echo_n "(cached) " >&6
  62503. else
  62504. if test -n "$AWK"; then
  62505. @@ -2422,24 +2591,24 @@
  62506. do
  62507. IFS=$as_save_IFS
  62508. test -z "$as_dir" && as_dir=.
  62509. - for ac_exec_ext in '' $ac_executable_extensions; do
  62510. + for ac_exec_ext in '' $ac_executable_extensions; do
  62511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62512. ac_cv_prog_AWK="$ac_prog"
  62513. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62515. break 2
  62516. fi
  62517. done
  62518. -done
  62519. + done
  62520. IFS=$as_save_IFS
  62521. fi
  62522. fi
  62523. AWK=$ac_cv_prog_AWK
  62524. if test -n "$AWK"; then
  62525. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  62526. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  62527. $as_echo "$AWK" >&6; }
  62528. else
  62529. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62531. $as_echo "no" >&6; }
  62532. fi
  62533. @@ -2447,11 +2616,11 @@
  62534. test -n "$AWK" && break
  62535. done
  62536. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  62537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  62538. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  62539. set x ${MAKE-make}
  62540. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  62541. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  62542. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  62543. $as_echo_n "(cached) " >&6
  62544. else
  62545. cat >conftest.make <<\_ACEOF
  62546. @@ -2469,11 +2638,11 @@
  62547. rm -f conftest.make
  62548. fi
  62549. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  62550. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  62551. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  62552. $as_echo "yes" >&6; }
  62553. SET_MAKE=
  62554. else
  62555. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62556. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62557. $as_echo "no" >&6; }
  62558. SET_MAKE="MAKE=${MAKE-make}"
  62559. fi
  62560. @@ -2493,9 +2662,7 @@
  62561. am__isrc=' -I$(srcdir)'
  62562. # test to see if srcdir already configured
  62563. if test -f $srcdir/config.status; then
  62564. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  62565. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  62566. - { (exit 1); exit 1; }; }
  62567. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  62568. fi
  62569. fi
  62570. @@ -2545,138 +2712,46 @@
  62571. . $srcdir/../GUILE-VERSION
  62572. -# Find a good install program. We prefer a C program (faster),
  62573. -# so one script is as good as another. But avoid the broken or
  62574. -# incompatible versions:
  62575. -# SysV /etc/install, /usr/sbin/install
  62576. -# SunOS /usr/etc/install
  62577. -# IRIX /sbin/install
  62578. -# AIX /bin/install
  62579. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  62580. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  62581. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  62582. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  62583. -# OS/2's system install, which has a completely different semantic
  62584. -# ./install, which can be erroneously created by make from ./install.sh.
  62585. -# Reject install programs that cannot install multiple files.
  62586. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  62587. -$as_echo_n "checking for a BSD-compatible install... " >&6; }
  62588. -if test -z "$INSTALL"; then
  62589. -if test "${ac_cv_path_install+set}" = set; then
  62590. +
  62591. +ac_ext=c
  62592. +ac_cpp='$CPP $CPPFLAGS'
  62593. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62594. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62595. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62596. +if test -n "$ac_tool_prefix"; then
  62597. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  62598. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  62599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62600. +$as_echo_n "checking for $ac_word... " >&6; }
  62601. +if test "${ac_cv_prog_CC+set}" = set; then :
  62602. $as_echo_n "(cached) " >&6
  62603. else
  62604. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62605. + if test -n "$CC"; then
  62606. + ac_cv_prog_CC="$CC" # Let the user override the test.
  62607. +else
  62608. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62609. for as_dir in $PATH
  62610. do
  62611. IFS=$as_save_IFS
  62612. test -z "$as_dir" && as_dir=.
  62613. - # Account for people who put trailing slashes in PATH elements.
  62614. -case $as_dir/ in
  62615. - ./ | .// | /cC/* | \
  62616. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  62617. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  62618. - /usr/ucb/* ) ;;
  62619. - *)
  62620. - # OSF1 and SCO ODT 3.0 have their own names for install.
  62621. - # Don't use installbsd from OSF since it installs stuff as root
  62622. - # by default.
  62623. - for ac_prog in ginstall scoinst install; do
  62624. - for ac_exec_ext in '' $ac_executable_extensions; do
  62625. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  62626. - if test $ac_prog = install &&
  62627. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  62628. - # AIX install. It has an incompatible calling convention.
  62629. - :
  62630. - elif test $ac_prog = install &&
  62631. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  62632. - # program-specific install script used by HP pwplus--don't use.
  62633. - :
  62634. - else
  62635. - rm -rf conftest.one conftest.two conftest.dir
  62636. - echo one > conftest.one
  62637. - echo two > conftest.two
  62638. - mkdir conftest.dir
  62639. - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  62640. - test -s conftest.one && test -s conftest.two &&
  62641. - test -s conftest.dir/conftest.one &&
  62642. - test -s conftest.dir/conftest.two
  62643. - then
  62644. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  62645. - break 3
  62646. - fi
  62647. - fi
  62648. - fi
  62649. - done
  62650. - done
  62651. - ;;
  62652. -esac
  62653. -
  62654. -done
  62655. -IFS=$as_save_IFS
  62656. -
  62657. -rm -rf conftest.one conftest.two conftest.dir
  62658. -
  62659. -fi
  62660. - if test "${ac_cv_path_install+set}" = set; then
  62661. - INSTALL=$ac_cv_path_install
  62662. - else
  62663. - # As a last resort, use the slow shell script. Don't cache a
  62664. - # value for INSTALL within a source directory, because that will
  62665. - # break other packages using the cache if that directory is
  62666. - # removed, or if the value is a relative name.
  62667. - INSTALL=$ac_install_sh
  62668. - fi
  62669. -fi
  62670. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  62671. -$as_echo "$INSTALL" >&6; }
  62672. -
  62673. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  62674. -# It thinks the first close brace ends the variable substitution.
  62675. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  62676. -
  62677. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  62678. -
  62679. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  62680. -
  62681. -ac_ext=c
  62682. -ac_cpp='$CPP $CPPFLAGS'
  62683. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62684. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62685. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62686. -if test -n "$ac_tool_prefix"; then
  62687. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  62688. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  62689. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62690. -$as_echo_n "checking for $ac_word... " >&6; }
  62691. -if test "${ac_cv_prog_CC+set}" = set; then
  62692. - $as_echo_n "(cached) " >&6
  62693. -else
  62694. - if test -n "$CC"; then
  62695. - ac_cv_prog_CC="$CC" # Let the user override the test.
  62696. -else
  62697. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62698. -for as_dir in $PATH
  62699. -do
  62700. - IFS=$as_save_IFS
  62701. - test -z "$as_dir" && as_dir=.
  62702. - for ac_exec_ext in '' $ac_executable_extensions; do
  62703. + for ac_exec_ext in '' $ac_executable_extensions; do
  62704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62705. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  62706. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62707. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62708. break 2
  62709. fi
  62710. done
  62711. -done
  62712. + done
  62713. IFS=$as_save_IFS
  62714. fi
  62715. fi
  62716. CC=$ac_cv_prog_CC
  62717. if test -n "$CC"; then
  62718. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  62719. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  62720. $as_echo "$CC" >&6; }
  62721. else
  62722. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62723. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62724. $as_echo "no" >&6; }
  62725. fi
  62726. @@ -2686,9 +2761,9 @@
  62727. ac_ct_CC=$CC
  62728. # Extract the first word of "gcc", so it can be a program name with args.
  62729. set dummy gcc; ac_word=$2
  62730. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62731. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62732. $as_echo_n "checking for $ac_word... " >&6; }
  62733. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  62734. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  62735. $as_echo_n "(cached) " >&6
  62736. else
  62737. if test -n "$ac_ct_CC"; then
  62738. @@ -2699,24 +2774,24 @@
  62739. do
  62740. IFS=$as_save_IFS
  62741. test -z "$as_dir" && as_dir=.
  62742. - for ac_exec_ext in '' $ac_executable_extensions; do
  62743. + for ac_exec_ext in '' $ac_executable_extensions; do
  62744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62745. ac_cv_prog_ac_ct_CC="gcc"
  62746. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62747. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62748. break 2
  62749. fi
  62750. done
  62751. -done
  62752. + done
  62753. IFS=$as_save_IFS
  62754. fi
  62755. fi
  62756. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  62757. if test -n "$ac_ct_CC"; then
  62758. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  62759. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  62760. $as_echo "$ac_ct_CC" >&6; }
  62761. else
  62762. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62764. $as_echo "no" >&6; }
  62765. fi
  62766. @@ -2725,7 +2800,7 @@
  62767. else
  62768. case $cross_compiling:$ac_tool_warned in
  62769. yes:)
  62770. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  62771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  62772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  62773. ac_tool_warned=yes ;;
  62774. esac
  62775. @@ -2739,9 +2814,9 @@
  62776. if test -n "$ac_tool_prefix"; then
  62777. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  62778. set dummy ${ac_tool_prefix}cc; ac_word=$2
  62779. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62780. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62781. $as_echo_n "checking for $ac_word... " >&6; }
  62782. -if test "${ac_cv_prog_CC+set}" = set; then
  62783. +if test "${ac_cv_prog_CC+set}" = set; then :
  62784. $as_echo_n "(cached) " >&6
  62785. else
  62786. if test -n "$CC"; then
  62787. @@ -2752,24 +2827,24 @@
  62788. do
  62789. IFS=$as_save_IFS
  62790. test -z "$as_dir" && as_dir=.
  62791. - for ac_exec_ext in '' $ac_executable_extensions; do
  62792. + for ac_exec_ext in '' $ac_executable_extensions; do
  62793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62794. ac_cv_prog_CC="${ac_tool_prefix}cc"
  62795. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62796. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62797. break 2
  62798. fi
  62799. done
  62800. -done
  62801. + done
  62802. IFS=$as_save_IFS
  62803. fi
  62804. fi
  62805. CC=$ac_cv_prog_CC
  62806. if test -n "$CC"; then
  62807. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  62808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  62809. $as_echo "$CC" >&6; }
  62810. else
  62811. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62812. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62813. $as_echo "no" >&6; }
  62814. fi
  62815. @@ -2779,9 +2854,9 @@
  62816. if test -z "$CC"; then
  62817. # Extract the first word of "cc", so it can be a program name with args.
  62818. set dummy cc; ac_word=$2
  62819. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62821. $as_echo_n "checking for $ac_word... " >&6; }
  62822. -if test "${ac_cv_prog_CC+set}" = set; then
  62823. +if test "${ac_cv_prog_CC+set}" = set; then :
  62824. $as_echo_n "(cached) " >&6
  62825. else
  62826. if test -n "$CC"; then
  62827. @@ -2793,18 +2868,18 @@
  62828. do
  62829. IFS=$as_save_IFS
  62830. test -z "$as_dir" && as_dir=.
  62831. - for ac_exec_ext in '' $ac_executable_extensions; do
  62832. + for ac_exec_ext in '' $ac_executable_extensions; do
  62833. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62834. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  62835. ac_prog_rejected=yes
  62836. continue
  62837. fi
  62838. ac_cv_prog_CC="cc"
  62839. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62840. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62841. break 2
  62842. fi
  62843. done
  62844. -done
  62845. + done
  62846. IFS=$as_save_IFS
  62847. if test $ac_prog_rejected = yes; then
  62848. @@ -2823,10 +2898,10 @@
  62849. fi
  62850. CC=$ac_cv_prog_CC
  62851. if test -n "$CC"; then
  62852. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  62853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  62854. $as_echo "$CC" >&6; }
  62855. else
  62856. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62857. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62858. $as_echo "no" >&6; }
  62859. fi
  62860. @@ -2838,9 +2913,9 @@
  62861. do
  62862. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  62863. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  62864. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62866. $as_echo_n "checking for $ac_word... " >&6; }
  62867. -if test "${ac_cv_prog_CC+set}" = set; then
  62868. +if test "${ac_cv_prog_CC+set}" = set; then :
  62869. $as_echo_n "(cached) " >&6
  62870. else
  62871. if test -n "$CC"; then
  62872. @@ -2851,24 +2926,24 @@
  62873. do
  62874. IFS=$as_save_IFS
  62875. test -z "$as_dir" && as_dir=.
  62876. - for ac_exec_ext in '' $ac_executable_extensions; do
  62877. + for ac_exec_ext in '' $ac_executable_extensions; do
  62878. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62879. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  62880. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62881. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62882. break 2
  62883. fi
  62884. done
  62885. -done
  62886. + done
  62887. IFS=$as_save_IFS
  62888. fi
  62889. fi
  62890. CC=$ac_cv_prog_CC
  62891. if test -n "$CC"; then
  62892. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  62893. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  62894. $as_echo "$CC" >&6; }
  62895. else
  62896. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62897. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62898. $as_echo "no" >&6; }
  62899. fi
  62900. @@ -2882,9 +2957,9 @@
  62901. do
  62902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  62903. set dummy $ac_prog; ac_word=$2
  62904. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  62905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  62906. $as_echo_n "checking for $ac_word... " >&6; }
  62907. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  62908. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  62909. $as_echo_n "(cached) " >&6
  62910. else
  62911. if test -n "$ac_ct_CC"; then
  62912. @@ -2895,24 +2970,24 @@
  62913. do
  62914. IFS=$as_save_IFS
  62915. test -z "$as_dir" && as_dir=.
  62916. - for ac_exec_ext in '' $ac_executable_extensions; do
  62917. + for ac_exec_ext in '' $ac_executable_extensions; do
  62918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  62919. ac_cv_prog_ac_ct_CC="$ac_prog"
  62920. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  62921. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  62922. break 2
  62923. fi
  62924. done
  62925. -done
  62926. + done
  62927. IFS=$as_save_IFS
  62928. fi
  62929. fi
  62930. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  62931. if test -n "$ac_ct_CC"; then
  62932. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  62933. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  62934. $as_echo "$ac_ct_CC" >&6; }
  62935. else
  62936. - { $as_echo "$as_me:$LINENO: result: no" >&5
  62937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  62938. $as_echo "no" >&6; }
  62939. fi
  62940. @@ -2925,7 +3000,7 @@
  62941. else
  62942. case $cross_compiling:$ac_tool_warned in
  62943. yes:)
  62944. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  62945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  62946. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  62947. ac_tool_warned=yes ;;
  62948. esac
  62949. @@ -2936,73 +3011,55 @@
  62950. fi
  62951. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  62952. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  62953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  62954. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  62955. -See \`config.log' for more details." >&5
  62956. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  62957. -See \`config.log' for more details." >&2;}
  62958. - { (exit 1); exit 1; }; }; }
  62959. +as_fn_error "no acceptable C compiler found in \$PATH
  62960. +See \`config.log' for more details." "$LINENO" 5; }
  62961. # Provide some information about the compiler.
  62962. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  62963. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  62964. set X $ac_compile
  62965. ac_compiler=$2
  62966. -{ (ac_try="$ac_compiler --version >&5"
  62967. -case "(($ac_try" in
  62968. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  62969. - *) ac_try_echo=$ac_try;;
  62970. -esac
  62971. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  62972. -$as_echo "$ac_try_echo") >&5
  62973. - (eval "$ac_compiler --version >&5") 2>&5
  62974. - ac_status=$?
  62975. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  62976. - (exit $ac_status); }
  62977. -{ (ac_try="$ac_compiler -v >&5"
  62978. -case "(($ac_try" in
  62979. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  62980. - *) ac_try_echo=$ac_try;;
  62981. -esac
  62982. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  62983. -$as_echo "$ac_try_echo") >&5
  62984. - (eval "$ac_compiler -v >&5") 2>&5
  62985. - ac_status=$?
  62986. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  62987. - (exit $ac_status); }
  62988. -{ (ac_try="$ac_compiler -V >&5"
  62989. +for ac_option in --version -v -V -qversion; do
  62990. + { { ac_try="$ac_compiler $ac_option >&5"
  62991. case "(($ac_try" in
  62992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  62993. *) ac_try_echo=$ac_try;;
  62994. esac
  62995. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  62996. -$as_echo "$ac_try_echo") >&5
  62997. - (eval "$ac_compiler -V >&5") 2>&5
  62998. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  62999. +$as_echo "$ac_try_echo"; } >&5
  63000. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  63001. ac_status=$?
  63002. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63003. - (exit $ac_status); }
  63004. + if test -s conftest.err; then
  63005. + sed '10a\
  63006. +... rest of stderr output deleted ...
  63007. + 10q' conftest.err >conftest.er1
  63008. + cat conftest.er1 >&5
  63009. + rm -f conftest.er1 conftest.err
  63010. + fi
  63011. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63012. + test $ac_status = 0; }
  63013. +done
  63014. -cat >conftest.$ac_ext <<_ACEOF
  63015. -/* confdefs.h. */
  63016. -_ACEOF
  63017. -cat confdefs.h >>conftest.$ac_ext
  63018. -cat >>conftest.$ac_ext <<_ACEOF
  63019. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63020. /* end confdefs.h. */
  63021. -
  63022. +#include <stdio.h>
  63023. int
  63024. main ()
  63025. {
  63026. +FILE *f = fopen ("conftest.out", "w");
  63027. + return ferror (f) || fclose (f) != 0;
  63028. ;
  63029. return 0;
  63030. }
  63031. _ACEOF
  63032. ac_clean_files_save=$ac_clean_files
  63033. -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  63034. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  63035. # Try to create an executable without -o first, disregard a.out.
  63036. # It will help us diagnose broken compilers, and finding out an intuition
  63037. # of exeext.
  63038. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  63039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  63040. $as_echo_n "checking for C compiler default output file name... " >&6; }
  63041. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  63042. @@ -3019,17 +3076,17 @@
  63043. done
  63044. rm -f $ac_rmfiles
  63045. -if { (ac_try="$ac_link_default"
  63046. +if { { ac_try="$ac_link_default"
  63047. case "(($ac_try" in
  63048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63049. *) ac_try_echo=$ac_try;;
  63050. esac
  63051. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63052. -$as_echo "$ac_try_echo") >&5
  63053. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  63054. +$as_echo "$ac_try_echo"; } >&5
  63055. (eval "$ac_link_default") 2>&5
  63056. ac_status=$?
  63057. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63058. - (exit $ac_status); }; then
  63059. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63060. + test $ac_status = 0; }; then :
  63061. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  63062. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  63063. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  63064. @@ -3046,7 +3103,7 @@
  63065. # certainly right.
  63066. break;;
  63067. *.* )
  63068. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  63069. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  63070. then :; else
  63071. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  63072. fi
  63073. @@ -3065,84 +3122,75 @@
  63074. else
  63075. ac_file=''
  63076. fi
  63077. -
  63078. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  63079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  63080. $as_echo "$ac_file" >&6; }
  63081. -if test -z "$ac_file"; then
  63082. +if test -z "$ac_file"; then :
  63083. $as_echo "$as_me: failed program was:" >&5
  63084. sed 's/^/| /' conftest.$ac_ext >&5
  63085. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  63086. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63088. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  63089. -See \`config.log' for more details." >&5
  63090. -$as_echo "$as_me: error: C compiler cannot create executables
  63091. -See \`config.log' for more details." >&2;}
  63092. - { (exit 77); exit 77; }; }; }
  63093. +{ as_fn_set_status 77
  63094. +as_fn_error "C compiler cannot create executables
  63095. +See \`config.log' for more details." "$LINENO" 5; }; }
  63096. fi
  63097. -
  63098. ac_exeext=$ac_cv_exeext
  63099. # Check that the compiler produces executables we can run. If not, either
  63100. # the compiler is broken, or we cross compile.
  63101. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  63102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  63103. $as_echo_n "checking whether the C compiler works... " >&6; }
  63104. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  63105. # If not cross compiling, check that we can run a simple program.
  63106. if test "$cross_compiling" != yes; then
  63107. if { ac_try='./$ac_file'
  63108. - { (case "(($ac_try" in
  63109. + { { case "(($ac_try" in
  63110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63111. *) ac_try_echo=$ac_try;;
  63112. esac
  63113. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63114. -$as_echo "$ac_try_echo") >&5
  63115. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  63116. +$as_echo "$ac_try_echo"; } >&5
  63117. (eval "$ac_try") 2>&5
  63118. ac_status=$?
  63119. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63120. - (exit $ac_status); }; }; then
  63121. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63122. + test $ac_status = 0; }; }; then
  63123. cross_compiling=no
  63124. else
  63125. if test "$cross_compiling" = maybe; then
  63126. cross_compiling=yes
  63127. else
  63128. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  63129. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63131. -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  63132. -If you meant to cross compile, use \`--host'.
  63133. -See \`config.log' for more details." >&5
  63134. -$as_echo "$as_me: error: cannot run C compiled programs.
  63135. +as_fn_error "cannot run C compiled programs.
  63136. If you meant to cross compile, use \`--host'.
  63137. -See \`config.log' for more details." >&2;}
  63138. - { (exit 1); exit 1; }; }; }
  63139. +See \`config.log' for more details." "$LINENO" 5; }
  63140. fi
  63141. fi
  63142. fi
  63143. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  63144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  63145. $as_echo "yes" >&6; }
  63146. -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  63147. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  63148. ac_clean_files=$ac_clean_files_save
  63149. # Check that the compiler produces executables we can run. If not, either
  63150. # the compiler is broken, or we cross compile.
  63151. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  63152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  63153. $as_echo_n "checking whether we are cross compiling... " >&6; }
  63154. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  63155. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  63156. $as_echo "$cross_compiling" >&6; }
  63157. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  63158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  63159. $as_echo_n "checking for suffix of executables... " >&6; }
  63160. -if { (ac_try="$ac_link"
  63161. +if { { ac_try="$ac_link"
  63162. case "(($ac_try" in
  63163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63164. *) ac_try_echo=$ac_try;;
  63165. esac
  63166. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63167. -$as_echo "$ac_try_echo") >&5
  63168. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  63169. +$as_echo "$ac_try_echo"; } >&5
  63170. (eval "$ac_link") 2>&5
  63171. ac_status=$?
  63172. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63173. - (exit $ac_status); }; then
  63174. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63175. + test $ac_status = 0; }; then :
  63176. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  63177. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  63178. # work properly (i.e., refer to `conftest.exe'), while it won't with
  63179. @@ -3157,32 +3205,24 @@
  63180. esac
  63181. done
  63182. else
  63183. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  63184. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63186. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  63187. -See \`config.log' for more details." >&5
  63188. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  63189. -See \`config.log' for more details." >&2;}
  63190. - { (exit 1); exit 1; }; }; }
  63191. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  63192. +See \`config.log' for more details." "$LINENO" 5; }
  63193. fi
  63194. -
  63195. rm -f conftest$ac_cv_exeext
  63196. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  63197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  63198. $as_echo "$ac_cv_exeext" >&6; }
  63199. rm -f conftest.$ac_ext
  63200. EXEEXT=$ac_cv_exeext
  63201. ac_exeext=$EXEEXT
  63202. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  63203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  63204. $as_echo_n "checking for suffix of object files... " >&6; }
  63205. -if test "${ac_cv_objext+set}" = set; then
  63206. +if test "${ac_cv_objext+set}" = set; then :
  63207. $as_echo_n "(cached) " >&6
  63208. else
  63209. - cat >conftest.$ac_ext <<_ACEOF
  63210. -/* confdefs.h. */
  63211. -_ACEOF
  63212. -cat confdefs.h >>conftest.$ac_ext
  63213. -cat >>conftest.$ac_ext <<_ACEOF
  63214. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63215. /* end confdefs.h. */
  63216. int
  63217. @@ -3194,17 +3234,17 @@
  63218. }
  63219. _ACEOF
  63220. rm -f conftest.o conftest.obj
  63221. -if { (ac_try="$ac_compile"
  63222. +if { { ac_try="$ac_compile"
  63223. case "(($ac_try" in
  63224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63225. *) ac_try_echo=$ac_try;;
  63226. esac
  63227. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63228. -$as_echo "$ac_try_echo") >&5
  63229. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  63230. +$as_echo "$ac_try_echo"; } >&5
  63231. (eval "$ac_compile") 2>&5
  63232. ac_status=$?
  63233. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63234. - (exit $ac_status); }; then
  63235. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63236. + test $ac_status = 0; }; then :
  63237. for ac_file in conftest.o conftest.obj conftest.*; do
  63238. test -f "$ac_file" || continue;
  63239. case $ac_file in
  63240. @@ -3217,31 +3257,23 @@
  63241. $as_echo "$as_me: failed program was:" >&5
  63242. sed 's/^/| /' conftest.$ac_ext >&5
  63243. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  63244. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63246. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  63247. -See \`config.log' for more details." >&5
  63248. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  63249. -See \`config.log' for more details." >&2;}
  63250. - { (exit 1); exit 1; }; }; }
  63251. +as_fn_error "cannot compute suffix of object files: cannot compile
  63252. +See \`config.log' for more details." "$LINENO" 5; }
  63253. fi
  63254. -
  63255. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  63256. fi
  63257. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  63258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  63259. $as_echo "$ac_cv_objext" >&6; }
  63260. OBJEXT=$ac_cv_objext
  63261. ac_objext=$OBJEXT
  63262. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  63263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  63264. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  63265. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  63266. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  63267. $as_echo_n "(cached) " >&6
  63268. else
  63269. - cat >conftest.$ac_ext <<_ACEOF
  63270. -/* confdefs.h. */
  63271. -_ACEOF
  63272. -cat confdefs.h >>conftest.$ac_ext
  63273. -cat >>conftest.$ac_ext <<_ACEOF
  63274. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63275. /* end confdefs.h. */
  63276. int
  63277. @@ -3255,37 +3287,16 @@
  63278. return 0;
  63279. }
  63280. _ACEOF
  63281. -rm -f conftest.$ac_objext
  63282. -if { (ac_try="$ac_compile"
  63283. -case "(($ac_try" in
  63284. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63285. - *) ac_try_echo=$ac_try;;
  63286. -esac
  63287. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63288. -$as_echo "$ac_try_echo") >&5
  63289. - (eval "$ac_compile") 2>conftest.er1
  63290. - ac_status=$?
  63291. - grep -v '^ *+' conftest.er1 >conftest.err
  63292. - rm -f conftest.er1
  63293. - cat conftest.err >&5
  63294. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63295. - (exit $ac_status); } && {
  63296. - test -z "$ac_c_werror_flag" ||
  63297. - test ! -s conftest.err
  63298. - } && test -s conftest.$ac_objext; then
  63299. +if ac_fn_c_try_compile "$LINENO"; then :
  63300. ac_compiler_gnu=yes
  63301. else
  63302. - $as_echo "$as_me: failed program was:" >&5
  63303. -sed 's/^/| /' conftest.$ac_ext >&5
  63304. -
  63305. - ac_compiler_gnu=no
  63306. + ac_compiler_gnu=no
  63307. fi
  63308. -
  63309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63310. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  63311. fi
  63312. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  63313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  63314. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  63315. if test $ac_compiler_gnu = yes; then
  63316. GCC=yes
  63317. @@ -3294,20 +3305,16 @@
  63318. fi
  63319. ac_test_CFLAGS=${CFLAGS+set}
  63320. ac_save_CFLAGS=$CFLAGS
  63321. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  63322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  63323. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  63324. -if test "${ac_cv_prog_cc_g+set}" = set; then
  63325. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  63326. $as_echo_n "(cached) " >&6
  63327. else
  63328. ac_save_c_werror_flag=$ac_c_werror_flag
  63329. ac_c_werror_flag=yes
  63330. ac_cv_prog_cc_g=no
  63331. CFLAGS="-g"
  63332. - cat >conftest.$ac_ext <<_ACEOF
  63333. -/* confdefs.h. */
  63334. -_ACEOF
  63335. -cat confdefs.h >>conftest.$ac_ext
  63336. -cat >>conftest.$ac_ext <<_ACEOF
  63337. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63338. /* end confdefs.h. */
  63339. int
  63340. @@ -3318,35 +3325,11 @@
  63341. return 0;
  63342. }
  63343. _ACEOF
  63344. -rm -f conftest.$ac_objext
  63345. -if { (ac_try="$ac_compile"
  63346. -case "(($ac_try" in
  63347. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63348. - *) ac_try_echo=$ac_try;;
  63349. -esac
  63350. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63351. -$as_echo "$ac_try_echo") >&5
  63352. - (eval "$ac_compile") 2>conftest.er1
  63353. - ac_status=$?
  63354. - grep -v '^ *+' conftest.er1 >conftest.err
  63355. - rm -f conftest.er1
  63356. - cat conftest.err >&5
  63357. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63358. - (exit $ac_status); } && {
  63359. - test -z "$ac_c_werror_flag" ||
  63360. - test ! -s conftest.err
  63361. - } && test -s conftest.$ac_objext; then
  63362. +if ac_fn_c_try_compile "$LINENO"; then :
  63363. ac_cv_prog_cc_g=yes
  63364. else
  63365. - $as_echo "$as_me: failed program was:" >&5
  63366. -sed 's/^/| /' conftest.$ac_ext >&5
  63367. -
  63368. - CFLAGS=""
  63369. - cat >conftest.$ac_ext <<_ACEOF
  63370. -/* confdefs.h. */
  63371. -_ACEOF
  63372. -cat confdefs.h >>conftest.$ac_ext
  63373. -cat >>conftest.$ac_ext <<_ACEOF
  63374. + CFLAGS=""
  63375. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63376. /* end confdefs.h. */
  63377. int
  63378. @@ -3357,36 +3340,12 @@
  63379. return 0;
  63380. }
  63381. _ACEOF
  63382. -rm -f conftest.$ac_objext
  63383. -if { (ac_try="$ac_compile"
  63384. -case "(($ac_try" in
  63385. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63386. - *) ac_try_echo=$ac_try;;
  63387. -esac
  63388. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63389. -$as_echo "$ac_try_echo") >&5
  63390. - (eval "$ac_compile") 2>conftest.er1
  63391. - ac_status=$?
  63392. - grep -v '^ *+' conftest.er1 >conftest.err
  63393. - rm -f conftest.er1
  63394. - cat conftest.err >&5
  63395. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63396. - (exit $ac_status); } && {
  63397. - test -z "$ac_c_werror_flag" ||
  63398. - test ! -s conftest.err
  63399. - } && test -s conftest.$ac_objext; then
  63400. - :
  63401. -else
  63402. - $as_echo "$as_me: failed program was:" >&5
  63403. -sed 's/^/| /' conftest.$ac_ext >&5
  63404. +if ac_fn_c_try_compile "$LINENO"; then :
  63405. - ac_c_werror_flag=$ac_save_c_werror_flag
  63406. +else
  63407. + ac_c_werror_flag=$ac_save_c_werror_flag
  63408. CFLAGS="-g"
  63409. - cat >conftest.$ac_ext <<_ACEOF
  63410. -/* confdefs.h. */
  63411. -_ACEOF
  63412. -cat confdefs.h >>conftest.$ac_ext
  63413. -cat >>conftest.$ac_ext <<_ACEOF
  63414. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63415. /* end confdefs.h. */
  63416. int
  63417. @@ -3397,42 +3356,17 @@
  63418. return 0;
  63419. }
  63420. _ACEOF
  63421. -rm -f conftest.$ac_objext
  63422. -if { (ac_try="$ac_compile"
  63423. -case "(($ac_try" in
  63424. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63425. - *) ac_try_echo=$ac_try;;
  63426. -esac
  63427. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63428. -$as_echo "$ac_try_echo") >&5
  63429. - (eval "$ac_compile") 2>conftest.er1
  63430. - ac_status=$?
  63431. - grep -v '^ *+' conftest.er1 >conftest.err
  63432. - rm -f conftest.er1
  63433. - cat conftest.err >&5
  63434. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63435. - (exit $ac_status); } && {
  63436. - test -z "$ac_c_werror_flag" ||
  63437. - test ! -s conftest.err
  63438. - } && test -s conftest.$ac_objext; then
  63439. +if ac_fn_c_try_compile "$LINENO"; then :
  63440. ac_cv_prog_cc_g=yes
  63441. -else
  63442. - $as_echo "$as_me: failed program was:" >&5
  63443. -sed 's/^/| /' conftest.$ac_ext >&5
  63444. -
  63445. -
  63446. fi
  63447. -
  63448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63449. fi
  63450. -
  63451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63452. fi
  63453. -
  63454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63455. ac_c_werror_flag=$ac_save_c_werror_flag
  63456. fi
  63457. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  63458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  63459. $as_echo "$ac_cv_prog_cc_g" >&6; }
  63460. if test "$ac_test_CFLAGS" = set; then
  63461. CFLAGS=$ac_save_CFLAGS
  63462. @@ -3449,18 +3383,14 @@
  63463. CFLAGS=
  63464. fi
  63465. fi
  63466. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  63467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  63468. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  63469. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  63470. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  63471. $as_echo_n "(cached) " >&6
  63472. else
  63473. ac_cv_prog_cc_c89=no
  63474. ac_save_CC=$CC
  63475. -cat >conftest.$ac_ext <<_ACEOF
  63476. -/* confdefs.h. */
  63477. -_ACEOF
  63478. -cat confdefs.h >>conftest.$ac_ext
  63479. -cat >>conftest.$ac_ext <<_ACEOF
  63480. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63481. /* end confdefs.h. */
  63482. #include <stdarg.h>
  63483. #include <stdio.h>
  63484. @@ -3517,32 +3447,9 @@
  63485. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  63486. do
  63487. CC="$ac_save_CC $ac_arg"
  63488. - rm -f conftest.$ac_objext
  63489. -if { (ac_try="$ac_compile"
  63490. -case "(($ac_try" in
  63491. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63492. - *) ac_try_echo=$ac_try;;
  63493. -esac
  63494. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63495. -$as_echo "$ac_try_echo") >&5
  63496. - (eval "$ac_compile") 2>conftest.er1
  63497. - ac_status=$?
  63498. - grep -v '^ *+' conftest.er1 >conftest.err
  63499. - rm -f conftest.er1
  63500. - cat conftest.err >&5
  63501. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63502. - (exit $ac_status); } && {
  63503. - test -z "$ac_c_werror_flag" ||
  63504. - test ! -s conftest.err
  63505. - } && test -s conftest.$ac_objext; then
  63506. + if ac_fn_c_try_compile "$LINENO"; then :
  63507. ac_cv_prog_cc_c89=$ac_arg
  63508. -else
  63509. - $as_echo "$as_me: failed program was:" >&5
  63510. -sed 's/^/| /' conftest.$ac_ext >&5
  63511. -
  63512. -
  63513. fi
  63514. -
  63515. rm -f core conftest.err conftest.$ac_objext
  63516. test "x$ac_cv_prog_cc_c89" != "xno" && break
  63517. done
  63518. @@ -3553,17 +3460,19 @@
  63519. # AC_CACHE_VAL
  63520. case "x$ac_cv_prog_cc_c89" in
  63521. x)
  63522. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  63523. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  63524. $as_echo "none needed" >&6; } ;;
  63525. xno)
  63526. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  63527. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  63528. $as_echo "unsupported" >&6; } ;;
  63529. *)
  63530. CC="$CC $ac_cv_prog_cc_c89"
  63531. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  63532. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  63533. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  63534. esac
  63535. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  63536. +fi
  63537. ac_ext=c
  63538. ac_cpp='$CPP $CPPFLAGS'
  63539. @@ -3582,7 +3491,7 @@
  63540. .PHONY: am__doit
  63541. END
  63542. # If we don't find an include directive, just comment out the code.
  63543. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  63544. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  63545. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  63546. am__include="#"
  63547. am__quote=
  63548. @@ -3610,12 +3519,12 @@
  63549. fi
  63550. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  63551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  63552. $as_echo "$_am_result" >&6; }
  63553. rm -f confinc confmf
  63554. # Check whether --enable-dependency-tracking was given.
  63555. -if test "${enable_dependency_tracking+set}" = set; then
  63556. +if test "${enable_dependency_tracking+set}" = set; then :
  63557. enableval=$enable_dependency_tracking;
  63558. fi
  63559. @@ -3635,9 +3544,9 @@
  63560. depcc="$CC" am_compiler_list=
  63561. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  63562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  63563. $as_echo_n "checking dependency style of $depcc... " >&6; }
  63564. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  63565. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  63566. $as_echo_n "(cached) " >&6
  63567. else
  63568. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  63569. @@ -3745,7 +3654,7 @@
  63570. fi
  63571. fi
  63572. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  63573. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  63574. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  63575. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  63576. @@ -3768,9 +3677,9 @@
  63577. if test -n "$ac_tool_prefix"; then
  63578. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  63579. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  63580. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63581. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63582. $as_echo_n "checking for $ac_word... " >&6; }
  63583. -if test "${ac_cv_prog_CC+set}" = set; then
  63584. +if test "${ac_cv_prog_CC+set}" = set; then :
  63585. $as_echo_n "(cached) " >&6
  63586. else
  63587. if test -n "$CC"; then
  63588. @@ -3781,24 +3690,24 @@
  63589. do
  63590. IFS=$as_save_IFS
  63591. test -z "$as_dir" && as_dir=.
  63592. - for ac_exec_ext in '' $ac_executable_extensions; do
  63593. + for ac_exec_ext in '' $ac_executable_extensions; do
  63594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63595. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  63596. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63597. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63598. break 2
  63599. fi
  63600. done
  63601. -done
  63602. + done
  63603. IFS=$as_save_IFS
  63604. fi
  63605. fi
  63606. CC=$ac_cv_prog_CC
  63607. if test -n "$CC"; then
  63608. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  63609. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  63610. $as_echo "$CC" >&6; }
  63611. else
  63612. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63613. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63614. $as_echo "no" >&6; }
  63615. fi
  63616. @@ -3808,9 +3717,9 @@
  63617. ac_ct_CC=$CC
  63618. # Extract the first word of "gcc", so it can be a program name with args.
  63619. set dummy gcc; ac_word=$2
  63620. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63622. $as_echo_n "checking for $ac_word... " >&6; }
  63623. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  63624. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  63625. $as_echo_n "(cached) " >&6
  63626. else
  63627. if test -n "$ac_ct_CC"; then
  63628. @@ -3821,24 +3730,24 @@
  63629. do
  63630. IFS=$as_save_IFS
  63631. test -z "$as_dir" && as_dir=.
  63632. - for ac_exec_ext in '' $ac_executable_extensions; do
  63633. + for ac_exec_ext in '' $ac_executable_extensions; do
  63634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63635. ac_cv_prog_ac_ct_CC="gcc"
  63636. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63637. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63638. break 2
  63639. fi
  63640. done
  63641. -done
  63642. + done
  63643. IFS=$as_save_IFS
  63644. fi
  63645. fi
  63646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  63647. if test -n "$ac_ct_CC"; then
  63648. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  63649. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  63650. $as_echo "$ac_ct_CC" >&6; }
  63651. else
  63652. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63653. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63654. $as_echo "no" >&6; }
  63655. fi
  63656. @@ -3847,7 +3756,7 @@
  63657. else
  63658. case $cross_compiling:$ac_tool_warned in
  63659. yes:)
  63660. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  63661. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  63662. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  63663. ac_tool_warned=yes ;;
  63664. esac
  63665. @@ -3861,9 +3770,9 @@
  63666. if test -n "$ac_tool_prefix"; then
  63667. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  63668. set dummy ${ac_tool_prefix}cc; ac_word=$2
  63669. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63670. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63671. $as_echo_n "checking for $ac_word... " >&6; }
  63672. -if test "${ac_cv_prog_CC+set}" = set; then
  63673. +if test "${ac_cv_prog_CC+set}" = set; then :
  63674. $as_echo_n "(cached) " >&6
  63675. else
  63676. if test -n "$CC"; then
  63677. @@ -3874,24 +3783,24 @@
  63678. do
  63679. IFS=$as_save_IFS
  63680. test -z "$as_dir" && as_dir=.
  63681. - for ac_exec_ext in '' $ac_executable_extensions; do
  63682. + for ac_exec_ext in '' $ac_executable_extensions; do
  63683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63684. ac_cv_prog_CC="${ac_tool_prefix}cc"
  63685. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63686. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63687. break 2
  63688. fi
  63689. done
  63690. -done
  63691. + done
  63692. IFS=$as_save_IFS
  63693. fi
  63694. fi
  63695. CC=$ac_cv_prog_CC
  63696. if test -n "$CC"; then
  63697. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  63698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  63699. $as_echo "$CC" >&6; }
  63700. else
  63701. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63702. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63703. $as_echo "no" >&6; }
  63704. fi
  63705. @@ -3901,9 +3810,9 @@
  63706. if test -z "$CC"; then
  63707. # Extract the first word of "cc", so it can be a program name with args.
  63708. set dummy cc; ac_word=$2
  63709. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63710. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63711. $as_echo_n "checking for $ac_word... " >&6; }
  63712. -if test "${ac_cv_prog_CC+set}" = set; then
  63713. +if test "${ac_cv_prog_CC+set}" = set; then :
  63714. $as_echo_n "(cached) " >&6
  63715. else
  63716. if test -n "$CC"; then
  63717. @@ -3915,18 +3824,18 @@
  63718. do
  63719. IFS=$as_save_IFS
  63720. test -z "$as_dir" && as_dir=.
  63721. - for ac_exec_ext in '' $ac_executable_extensions; do
  63722. + for ac_exec_ext in '' $ac_executable_extensions; do
  63723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63724. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  63725. ac_prog_rejected=yes
  63726. continue
  63727. fi
  63728. ac_cv_prog_CC="cc"
  63729. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63730. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63731. break 2
  63732. fi
  63733. done
  63734. -done
  63735. + done
  63736. IFS=$as_save_IFS
  63737. if test $ac_prog_rejected = yes; then
  63738. @@ -3945,10 +3854,10 @@
  63739. fi
  63740. CC=$ac_cv_prog_CC
  63741. if test -n "$CC"; then
  63742. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  63743. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  63744. $as_echo "$CC" >&6; }
  63745. else
  63746. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63747. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63748. $as_echo "no" >&6; }
  63749. fi
  63750. @@ -3960,9 +3869,9 @@
  63751. do
  63752. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  63753. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  63754. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63755. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63756. $as_echo_n "checking for $ac_word... " >&6; }
  63757. -if test "${ac_cv_prog_CC+set}" = set; then
  63758. +if test "${ac_cv_prog_CC+set}" = set; then :
  63759. $as_echo_n "(cached) " >&6
  63760. else
  63761. if test -n "$CC"; then
  63762. @@ -3973,24 +3882,24 @@
  63763. do
  63764. IFS=$as_save_IFS
  63765. test -z "$as_dir" && as_dir=.
  63766. - for ac_exec_ext in '' $ac_executable_extensions; do
  63767. + for ac_exec_ext in '' $ac_executable_extensions; do
  63768. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63769. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  63770. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63771. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63772. break 2
  63773. fi
  63774. done
  63775. -done
  63776. + done
  63777. IFS=$as_save_IFS
  63778. fi
  63779. fi
  63780. CC=$ac_cv_prog_CC
  63781. if test -n "$CC"; then
  63782. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  63783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  63784. $as_echo "$CC" >&6; }
  63785. else
  63786. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63788. $as_echo "no" >&6; }
  63789. fi
  63790. @@ -4004,9 +3913,9 @@
  63791. do
  63792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  63793. set dummy $ac_prog; ac_word=$2
  63794. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  63795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63796. $as_echo_n "checking for $ac_word... " >&6; }
  63797. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  63798. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  63799. $as_echo_n "(cached) " >&6
  63800. else
  63801. if test -n "$ac_ct_CC"; then
  63802. @@ -4017,24 +3926,24 @@
  63803. do
  63804. IFS=$as_save_IFS
  63805. test -z "$as_dir" && as_dir=.
  63806. - for ac_exec_ext in '' $ac_executable_extensions; do
  63807. + for ac_exec_ext in '' $ac_executable_extensions; do
  63808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  63809. ac_cv_prog_ac_ct_CC="$ac_prog"
  63810. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  63811. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63812. break 2
  63813. fi
  63814. done
  63815. -done
  63816. + done
  63817. IFS=$as_save_IFS
  63818. fi
  63819. fi
  63820. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  63821. if test -n "$ac_ct_CC"; then
  63822. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  63823. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  63824. $as_echo "$ac_ct_CC" >&6; }
  63825. else
  63826. - { $as_echo "$as_me:$LINENO: result: no" >&5
  63827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63828. $as_echo "no" >&6; }
  63829. fi
  63830. @@ -4047,7 +3956,7 @@
  63831. else
  63832. case $cross_compiling:$ac_tool_warned in
  63833. yes:)
  63834. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  63835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  63836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  63837. ac_tool_warned=yes ;;
  63838. esac
  63839. @@ -4058,62 +3967,42 @@
  63840. fi
  63841. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  63842. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63844. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  63845. -See \`config.log' for more details." >&5
  63846. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  63847. -See \`config.log' for more details." >&2;}
  63848. - { (exit 1); exit 1; }; }; }
  63849. +as_fn_error "no acceptable C compiler found in \$PATH
  63850. +See \`config.log' for more details." "$LINENO" 5; }
  63851. # Provide some information about the compiler.
  63852. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  63853. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  63854. set X $ac_compile
  63855. ac_compiler=$2
  63856. -{ (ac_try="$ac_compiler --version >&5"
  63857. -case "(($ac_try" in
  63858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63859. - *) ac_try_echo=$ac_try;;
  63860. -esac
  63861. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63862. -$as_echo "$ac_try_echo") >&5
  63863. - (eval "$ac_compiler --version >&5") 2>&5
  63864. - ac_status=$?
  63865. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63866. - (exit $ac_status); }
  63867. -{ (ac_try="$ac_compiler -v >&5"
  63868. -case "(($ac_try" in
  63869. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63870. - *) ac_try_echo=$ac_try;;
  63871. -esac
  63872. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63873. -$as_echo "$ac_try_echo") >&5
  63874. - (eval "$ac_compiler -v >&5") 2>&5
  63875. - ac_status=$?
  63876. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63877. - (exit $ac_status); }
  63878. -{ (ac_try="$ac_compiler -V >&5"
  63879. +for ac_option in --version -v -V -qversion; do
  63880. + { { ac_try="$ac_compiler $ac_option >&5"
  63881. case "(($ac_try" in
  63882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63883. *) ac_try_echo=$ac_try;;
  63884. esac
  63885. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63886. -$as_echo "$ac_try_echo") >&5
  63887. - (eval "$ac_compiler -V >&5") 2>&5
  63888. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  63889. +$as_echo "$ac_try_echo"; } >&5
  63890. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  63891. ac_status=$?
  63892. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63893. - (exit $ac_status); }
  63894. + if test -s conftest.err; then
  63895. + sed '10a\
  63896. +... rest of stderr output deleted ...
  63897. + 10q' conftest.err >conftest.er1
  63898. + cat conftest.er1 >&5
  63899. + rm -f conftest.er1 conftest.err
  63900. + fi
  63901. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  63902. + test $ac_status = 0; }
  63903. +done
  63904. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  63905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  63906. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  63907. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  63908. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  63909. $as_echo_n "(cached) " >&6
  63910. else
  63911. - cat >conftest.$ac_ext <<_ACEOF
  63912. -/* confdefs.h. */
  63913. -_ACEOF
  63914. -cat confdefs.h >>conftest.$ac_ext
  63915. -cat >>conftest.$ac_ext <<_ACEOF
  63916. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63917. /* end confdefs.h. */
  63918. int
  63919. @@ -4127,37 +4016,16 @@
  63920. return 0;
  63921. }
  63922. _ACEOF
  63923. -rm -f conftest.$ac_objext
  63924. -if { (ac_try="$ac_compile"
  63925. -case "(($ac_try" in
  63926. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63927. - *) ac_try_echo=$ac_try;;
  63928. -esac
  63929. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63930. -$as_echo "$ac_try_echo") >&5
  63931. - (eval "$ac_compile") 2>conftest.er1
  63932. - ac_status=$?
  63933. - grep -v '^ *+' conftest.er1 >conftest.err
  63934. - rm -f conftest.er1
  63935. - cat conftest.err >&5
  63936. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  63937. - (exit $ac_status); } && {
  63938. - test -z "$ac_c_werror_flag" ||
  63939. - test ! -s conftest.err
  63940. - } && test -s conftest.$ac_objext; then
  63941. +if ac_fn_c_try_compile "$LINENO"; then :
  63942. ac_compiler_gnu=yes
  63943. else
  63944. - $as_echo "$as_me: failed program was:" >&5
  63945. -sed 's/^/| /' conftest.$ac_ext >&5
  63946. -
  63947. - ac_compiler_gnu=no
  63948. + ac_compiler_gnu=no
  63949. fi
  63950. -
  63951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63952. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  63953. fi
  63954. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  63955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  63956. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  63957. if test $ac_compiler_gnu = yes; then
  63958. GCC=yes
  63959. @@ -4166,20 +4034,16 @@
  63960. fi
  63961. ac_test_CFLAGS=${CFLAGS+set}
  63962. ac_save_CFLAGS=$CFLAGS
  63963. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  63964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  63965. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  63966. -if test "${ac_cv_prog_cc_g+set}" = set; then
  63967. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  63968. $as_echo_n "(cached) " >&6
  63969. else
  63970. ac_save_c_werror_flag=$ac_c_werror_flag
  63971. ac_c_werror_flag=yes
  63972. ac_cv_prog_cc_g=no
  63973. CFLAGS="-g"
  63974. - cat >conftest.$ac_ext <<_ACEOF
  63975. -/* confdefs.h. */
  63976. -_ACEOF
  63977. -cat confdefs.h >>conftest.$ac_ext
  63978. -cat >>conftest.$ac_ext <<_ACEOF
  63979. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63980. /* end confdefs.h. */
  63981. int
  63982. @@ -4190,35 +4054,11 @@
  63983. return 0;
  63984. }
  63985. _ACEOF
  63986. -rm -f conftest.$ac_objext
  63987. -if { (ac_try="$ac_compile"
  63988. -case "(($ac_try" in
  63989. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63990. - *) ac_try_echo=$ac_try;;
  63991. -esac
  63992. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  63993. -$as_echo "$ac_try_echo") >&5
  63994. - (eval "$ac_compile") 2>conftest.er1
  63995. - ac_status=$?
  63996. - grep -v '^ *+' conftest.er1 >conftest.err
  63997. - rm -f conftest.er1
  63998. - cat conftest.err >&5
  63999. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  64000. - (exit $ac_status); } && {
  64001. - test -z "$ac_c_werror_flag" ||
  64002. - test ! -s conftest.err
  64003. - } && test -s conftest.$ac_objext; then
  64004. +if ac_fn_c_try_compile "$LINENO"; then :
  64005. ac_cv_prog_cc_g=yes
  64006. else
  64007. - $as_echo "$as_me: failed program was:" >&5
  64008. -sed 's/^/| /' conftest.$ac_ext >&5
  64009. -
  64010. - CFLAGS=""
  64011. - cat >conftest.$ac_ext <<_ACEOF
  64012. -/* confdefs.h. */
  64013. -_ACEOF
  64014. -cat confdefs.h >>conftest.$ac_ext
  64015. -cat >>conftest.$ac_ext <<_ACEOF
  64016. + CFLAGS=""
  64017. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64018. /* end confdefs.h. */
  64019. int
  64020. @@ -4229,36 +4069,12 @@
  64021. return 0;
  64022. }
  64023. _ACEOF
  64024. -rm -f conftest.$ac_objext
  64025. -if { (ac_try="$ac_compile"
  64026. -case "(($ac_try" in
  64027. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  64028. - *) ac_try_echo=$ac_try;;
  64029. -esac
  64030. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  64031. -$as_echo "$ac_try_echo") >&5
  64032. - (eval "$ac_compile") 2>conftest.er1
  64033. - ac_status=$?
  64034. - grep -v '^ *+' conftest.er1 >conftest.err
  64035. - rm -f conftest.er1
  64036. - cat conftest.err >&5
  64037. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  64038. - (exit $ac_status); } && {
  64039. - test -z "$ac_c_werror_flag" ||
  64040. - test ! -s conftest.err
  64041. - } && test -s conftest.$ac_objext; then
  64042. - :
  64043. -else
  64044. - $as_echo "$as_me: failed program was:" >&5
  64045. -sed 's/^/| /' conftest.$ac_ext >&5
  64046. +if ac_fn_c_try_compile "$LINENO"; then :
  64047. - ac_c_werror_flag=$ac_save_c_werror_flag
  64048. +else
  64049. + ac_c_werror_flag=$ac_save_c_werror_flag
  64050. CFLAGS="-g"
  64051. - cat >conftest.$ac_ext <<_ACEOF
  64052. -/* confdefs.h. */
  64053. -_ACEOF
  64054. -cat confdefs.h >>conftest.$ac_ext
  64055. -cat >>conftest.$ac_ext <<_ACEOF
  64056. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64057. /* end confdefs.h. */
  64058. int
  64059. @@ -4269,42 +4085,17 @@
  64060. return 0;
  64061. }
  64062. _ACEOF
  64063. -rm -f conftest.$ac_objext
  64064. -if { (ac_try="$ac_compile"
  64065. -case "(($ac_try" in
  64066. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  64067. - *) ac_try_echo=$ac_try;;
  64068. -esac
  64069. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  64070. -$as_echo "$ac_try_echo") >&5
  64071. - (eval "$ac_compile") 2>conftest.er1
  64072. - ac_status=$?
  64073. - grep -v '^ *+' conftest.er1 >conftest.err
  64074. - rm -f conftest.er1
  64075. - cat conftest.err >&5
  64076. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  64077. - (exit $ac_status); } && {
  64078. - test -z "$ac_c_werror_flag" ||
  64079. - test ! -s conftest.err
  64080. - } && test -s conftest.$ac_objext; then
  64081. +if ac_fn_c_try_compile "$LINENO"; then :
  64082. ac_cv_prog_cc_g=yes
  64083. -else
  64084. - $as_echo "$as_me: failed program was:" >&5
  64085. -sed 's/^/| /' conftest.$ac_ext >&5
  64086. -
  64087. -
  64088. fi
  64089. -
  64090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  64091. fi
  64092. -
  64093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  64094. fi
  64095. -
  64096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  64097. ac_c_werror_flag=$ac_save_c_werror_flag
  64098. fi
  64099. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  64100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  64101. $as_echo "$ac_cv_prog_cc_g" >&6; }
  64102. if test "$ac_test_CFLAGS" = set; then
  64103. CFLAGS=$ac_save_CFLAGS
  64104. @@ -4321,18 +4112,14 @@
  64105. CFLAGS=
  64106. fi
  64107. fi
  64108. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  64109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  64110. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  64111. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  64112. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  64113. $as_echo_n "(cached) " >&6
  64114. else
  64115. ac_cv_prog_cc_c89=no
  64116. ac_save_CC=$CC
  64117. -cat >conftest.$ac_ext <<_ACEOF
  64118. -/* confdefs.h. */
  64119. -_ACEOF
  64120. -cat confdefs.h >>conftest.$ac_ext
  64121. -cat >>conftest.$ac_ext <<_ACEOF
  64122. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64123. /* end confdefs.h. */
  64124. #include <stdarg.h>
  64125. #include <stdio.h>
  64126. @@ -4389,32 +4176,9 @@
  64127. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  64128. do
  64129. CC="$ac_save_CC $ac_arg"
  64130. - rm -f conftest.$ac_objext
  64131. -if { (ac_try="$ac_compile"
  64132. -case "(($ac_try" in
  64133. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  64134. - *) ac_try_echo=$ac_try;;
  64135. -esac
  64136. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  64137. -$as_echo "$ac_try_echo") >&5
  64138. - (eval "$ac_compile") 2>conftest.er1
  64139. - ac_status=$?
  64140. - grep -v '^ *+' conftest.er1 >conftest.err
  64141. - rm -f conftest.er1
  64142. - cat conftest.err >&5
  64143. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  64144. - (exit $ac_status); } && {
  64145. - test -z "$ac_c_werror_flag" ||
  64146. - test ! -s conftest.err
  64147. - } && test -s conftest.$ac_objext; then
  64148. + if ac_fn_c_try_compile "$LINENO"; then :
  64149. ac_cv_prog_cc_c89=$ac_arg
  64150. -else
  64151. - $as_echo "$as_me: failed program was:" >&5
  64152. -sed 's/^/| /' conftest.$ac_ext >&5
  64153. -
  64154. -
  64155. fi
  64156. -
  64157. rm -f core conftest.err conftest.$ac_objext
  64158. test "x$ac_cv_prog_cc_c89" != "xno" && break
  64159. done
  64160. @@ -4425,17 +4189,19 @@
  64161. # AC_CACHE_VAL
  64162. case "x$ac_cv_prog_cc_c89" in
  64163. x)
  64164. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  64165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  64166. $as_echo "none needed" >&6; } ;;
  64167. xno)
  64168. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  64169. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  64170. $as_echo "unsupported" >&6; } ;;
  64171. *)
  64172. CC="$CC $ac_cv_prog_cc_c89"
  64173. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  64174. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  64175. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  64176. esac
  64177. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  64178. +fi
  64179. ac_ext=c
  64180. ac_cpp='$CPP $CPPFLAGS'
  64181. @@ -4445,9 +4211,9 @@
  64182. depcc="$CC" am_compiler_list=
  64183. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  64184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  64185. $as_echo_n "checking dependency style of $depcc... " >&6; }
  64186. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  64187. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  64188. $as_echo_n "(cached) " >&6
  64189. else
  64190. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  64191. @@ -4555,7 +4321,7 @@
  64192. fi
  64193. fi
  64194. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  64195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  64196. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  64197. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  64198. @@ -4575,35 +4341,27 @@
  64199. # Make sure we can run config.sub.
  64200. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  64201. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  64202. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  64203. - { (exit 1); exit 1; }; }
  64204. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  64205. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  64206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  64207. $as_echo_n "checking build system type... " >&6; }
  64208. -if test "${ac_cv_build+set}" = set; then
  64209. +if test "${ac_cv_build+set}" = set; then :
  64210. $as_echo_n "(cached) " >&6
  64211. else
  64212. ac_build_alias=$build_alias
  64213. test "x$ac_build_alias" = x &&
  64214. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  64215. test "x$ac_build_alias" = x &&
  64216. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  64217. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  64218. - { (exit 1); exit 1; }; }
  64219. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  64220. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  64221. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  64222. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  64223. - { (exit 1); exit 1; }; }
  64224. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  64225. fi
  64226. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  64227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  64228. $as_echo "$ac_cv_build" >&6; }
  64229. case $ac_cv_build in
  64230. *-*-*) ;;
  64231. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  64232. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  64233. - { (exit 1); exit 1; }; };;
  64234. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  64235. esac
  64236. build=$ac_cv_build
  64237. ac_save_IFS=$IFS; IFS='-'
  64238. @@ -4619,28 +4377,24 @@
  64239. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  64240. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  64241. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  64242. $as_echo_n "checking host system type... " >&6; }
  64243. -if test "${ac_cv_host+set}" = set; then
  64244. +if test "${ac_cv_host+set}" = set; then :
  64245. $as_echo_n "(cached) " >&6
  64246. else
  64247. if test "x$host_alias" = x; then
  64248. ac_cv_host=$ac_cv_build
  64249. else
  64250. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  64251. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  64252. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  64253. - { (exit 1); exit 1; }; }
  64254. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  64255. fi
  64256. fi
  64257. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  64258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  64259. $as_echo "$ac_cv_host" >&6; }
  64260. case $ac_cv_host in
  64261. *-*-*) ;;
  64262. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  64263. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  64264. - { (exit 1); exit 1; }; };;
  64265. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  64266. esac
  64267. host=$ac_cv_host
  64268. ac_save_IFS=$IFS; IFS='-'
  64269. @@ -4663,9 +4417,9 @@
  64270. if test -n "$ac_tool_prefix"; then
  64271. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  64272. set dummy ${ac_tool_prefix}as; ac_word=$2
  64273. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64275. $as_echo_n "checking for $ac_word... " >&6; }
  64276. -if test "${ac_cv_prog_AS+set}" = set; then
  64277. +if test "${ac_cv_prog_AS+set}" = set; then :
  64278. $as_echo_n "(cached) " >&6
  64279. else
  64280. if test -n "$AS"; then
  64281. @@ -4676,24 +4430,24 @@
  64282. do
  64283. IFS=$as_save_IFS
  64284. test -z "$as_dir" && as_dir=.
  64285. - for ac_exec_ext in '' $ac_executable_extensions; do
  64286. + for ac_exec_ext in '' $ac_executable_extensions; do
  64287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64288. ac_cv_prog_AS="${ac_tool_prefix}as"
  64289. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64290. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64291. break 2
  64292. fi
  64293. done
  64294. -done
  64295. + done
  64296. IFS=$as_save_IFS
  64297. fi
  64298. fi
  64299. AS=$ac_cv_prog_AS
  64300. if test -n "$AS"; then
  64301. - { $as_echo "$as_me:$LINENO: result: $AS" >&5
  64302. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  64303. $as_echo "$AS" >&6; }
  64304. else
  64305. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64306. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64307. $as_echo "no" >&6; }
  64308. fi
  64309. @@ -4703,9 +4457,9 @@
  64310. ac_ct_AS=$AS
  64311. # Extract the first word of "as", so it can be a program name with args.
  64312. set dummy as; ac_word=$2
  64313. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64315. $as_echo_n "checking for $ac_word... " >&6; }
  64316. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  64317. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  64318. $as_echo_n "(cached) " >&6
  64319. else
  64320. if test -n "$ac_ct_AS"; then
  64321. @@ -4716,24 +4470,24 @@
  64322. do
  64323. IFS=$as_save_IFS
  64324. test -z "$as_dir" && as_dir=.
  64325. - for ac_exec_ext in '' $ac_executable_extensions; do
  64326. + for ac_exec_ext in '' $ac_executable_extensions; do
  64327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64328. ac_cv_prog_ac_ct_AS="as"
  64329. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64330. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64331. break 2
  64332. fi
  64333. done
  64334. -done
  64335. + done
  64336. IFS=$as_save_IFS
  64337. fi
  64338. fi
  64339. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  64340. if test -n "$ac_ct_AS"; then
  64341. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  64342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  64343. $as_echo "$ac_ct_AS" >&6; }
  64344. else
  64345. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64346. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64347. $as_echo "no" >&6; }
  64348. fi
  64349. @@ -4742,7 +4496,7 @@
  64350. else
  64351. case $cross_compiling:$ac_tool_warned in
  64352. yes:)
  64353. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  64354. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  64355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  64356. ac_tool_warned=yes ;;
  64357. esac
  64358. @@ -4755,9 +4509,9 @@
  64359. if test -n "$ac_tool_prefix"; then
  64360. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  64361. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  64362. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64364. $as_echo_n "checking for $ac_word... " >&6; }
  64365. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  64366. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  64367. $as_echo_n "(cached) " >&6
  64368. else
  64369. if test -n "$DLLTOOL"; then
  64370. @@ -4768,24 +4522,24 @@
  64371. do
  64372. IFS=$as_save_IFS
  64373. test -z "$as_dir" && as_dir=.
  64374. - for ac_exec_ext in '' $ac_executable_extensions; do
  64375. + for ac_exec_ext in '' $ac_executable_extensions; do
  64376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64377. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  64378. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64379. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64380. break 2
  64381. fi
  64382. done
  64383. -done
  64384. + done
  64385. IFS=$as_save_IFS
  64386. fi
  64387. fi
  64388. DLLTOOL=$ac_cv_prog_DLLTOOL
  64389. if test -n "$DLLTOOL"; then
  64390. - { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  64391. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  64392. $as_echo "$DLLTOOL" >&6; }
  64393. else
  64394. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64395. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64396. $as_echo "no" >&6; }
  64397. fi
  64398. @@ -4795,9 +4549,9 @@
  64399. ac_ct_DLLTOOL=$DLLTOOL
  64400. # Extract the first word of "dlltool", so it can be a program name with args.
  64401. set dummy dlltool; ac_word=$2
  64402. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64404. $as_echo_n "checking for $ac_word... " >&6; }
  64405. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  64406. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  64407. $as_echo_n "(cached) " >&6
  64408. else
  64409. if test -n "$ac_ct_DLLTOOL"; then
  64410. @@ -4808,24 +4562,24 @@
  64411. do
  64412. IFS=$as_save_IFS
  64413. test -z "$as_dir" && as_dir=.
  64414. - for ac_exec_ext in '' $ac_executable_extensions; do
  64415. + for ac_exec_ext in '' $ac_executable_extensions; do
  64416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64417. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  64418. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64419. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64420. break 2
  64421. fi
  64422. done
  64423. -done
  64424. + done
  64425. IFS=$as_save_IFS
  64426. fi
  64427. fi
  64428. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  64429. if test -n "$ac_ct_DLLTOOL"; then
  64430. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  64431. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  64432. $as_echo "$ac_ct_DLLTOOL" >&6; }
  64433. else
  64434. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64435. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64436. $as_echo "no" >&6; }
  64437. fi
  64438. @@ -4834,7 +4588,7 @@
  64439. else
  64440. case $cross_compiling:$ac_tool_warned in
  64441. yes:)
  64442. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  64443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  64444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  64445. ac_tool_warned=yes ;;
  64446. esac
  64447. @@ -4847,9 +4601,9 @@
  64448. if test -n "$ac_tool_prefix"; then
  64449. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  64450. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  64451. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64453. $as_echo_n "checking for $ac_word... " >&6; }
  64454. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  64455. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  64456. $as_echo_n "(cached) " >&6
  64457. else
  64458. if test -n "$OBJDUMP"; then
  64459. @@ -4860,24 +4614,24 @@
  64460. do
  64461. IFS=$as_save_IFS
  64462. test -z "$as_dir" && as_dir=.
  64463. - for ac_exec_ext in '' $ac_executable_extensions; do
  64464. + for ac_exec_ext in '' $ac_executable_extensions; do
  64465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64466. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  64467. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64468. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64469. break 2
  64470. fi
  64471. done
  64472. -done
  64473. + done
  64474. IFS=$as_save_IFS
  64475. fi
  64476. fi
  64477. OBJDUMP=$ac_cv_prog_OBJDUMP
  64478. if test -n "$OBJDUMP"; then
  64479. - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  64480. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  64481. $as_echo "$OBJDUMP" >&6; }
  64482. else
  64483. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64484. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64485. $as_echo "no" >&6; }
  64486. fi
  64487. @@ -4887,9 +4641,9 @@
  64488. ac_ct_OBJDUMP=$OBJDUMP
  64489. # Extract the first word of "objdump", so it can be a program name with args.
  64490. set dummy objdump; ac_word=$2
  64491. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64492. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64493. $as_echo_n "checking for $ac_word... " >&6; }
  64494. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  64495. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  64496. $as_echo_n "(cached) " >&6
  64497. else
  64498. if test -n "$ac_ct_OBJDUMP"; then
  64499. @@ -4900,24 +4654,24 @@
  64500. do
  64501. IFS=$as_save_IFS
  64502. test -z "$as_dir" && as_dir=.
  64503. - for ac_exec_ext in '' $ac_executable_extensions; do
  64504. + for ac_exec_ext in '' $ac_executable_extensions; do
  64505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64506. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  64507. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64508. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64509. break 2
  64510. fi
  64511. done
  64512. -done
  64513. + done
  64514. IFS=$as_save_IFS
  64515. fi
  64516. fi
  64517. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  64518. if test -n "$ac_ct_OBJDUMP"; then
  64519. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  64520. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  64521. $as_echo "$ac_ct_OBJDUMP" >&6; }
  64522. else
  64523. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64524. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64525. $as_echo "no" >&6; }
  64526. fi
  64527. @@ -4926,7 +4680,7 @@
  64528. else
  64529. case $cross_compiling:$ac_tool_warned in
  64530. yes:)
  64531. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  64532. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  64533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  64534. ac_tool_warned=yes ;;
  64535. esac
  64536. @@ -4961,14 +4715,14 @@
  64537. case `pwd` in
  64538. *\ * | *\ *)
  64539. - { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  64540. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  64541. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  64542. esac
  64543. -macro_version='2.2.6'
  64544. -macro_revision='1.3012'
  64545. +macro_version='2.2.6b'
  64546. +macro_revision='1.3017'
  64547. @@ -4984,9 +4738,9 @@
  64548. ltmain="$ac_aux_dir/ltmain.sh"
  64549. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  64550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  64551. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  64552. -if test "${ac_cv_path_SED+set}" = set; then
  64553. +if test "${ac_cv_path_SED+set}" = set; then :
  64554. $as_echo_n "(cached) " >&6
  64555. else
  64556. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  64557. @@ -4994,7 +4748,7 @@
  64558. ac_script="$ac_script$as_nl$ac_script"
  64559. done
  64560. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  64561. - $as_unset ac_script || ac_script=
  64562. + { ac_script=; unset ac_script;}
  64563. if test -z "$SED"; then
  64564. ac_path_SED_found=false
  64565. # Loop through the user's path and test for each of PROGNAME-LIST
  64566. @@ -5003,7 +4757,7 @@
  64567. do
  64568. IFS=$as_save_IFS
  64569. test -z "$as_dir" && as_dir=.
  64570. - for ac_prog in sed gsed; do
  64571. + for ac_prog in sed gsed; do
  64572. for ac_exec_ext in '' $ac_executable_extensions; do
  64573. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  64574. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  64575. @@ -5023,7 +4777,7 @@
  64576. $as_echo '' >> "conftest.nl"
  64577. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  64578. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  64579. - ac_count=`expr $ac_count + 1`
  64580. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  64581. if test $ac_count -gt ${ac_path_SED_max-0}; then
  64582. # Best one so far, save it but keep looking for a better one
  64583. ac_cv_path_SED="$ac_path_SED"
  64584. @@ -5038,19 +4792,17 @@
  64585. $ac_path_SED_found && break 3
  64586. done
  64587. done
  64588. -done
  64589. + done
  64590. IFS=$as_save_IFS
  64591. if test -z "$ac_cv_path_SED"; then
  64592. - { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  64593. -$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  64594. - { (exit 1); exit 1; }; }
  64595. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  64596. fi
  64597. else
  64598. ac_cv_path_SED=$SED
  64599. fi
  64600. fi
  64601. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  64602. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  64603. $as_echo "$ac_cv_path_SED" >&6; }
  64604. SED="$ac_cv_path_SED"
  64605. rm -f conftest.sed
  64606. @@ -5068,9 +4820,9 @@
  64607. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  64608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  64609. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  64610. -if test "${ac_cv_path_GREP+set}" = set; then
  64611. +if test "${ac_cv_path_GREP+set}" = set; then :
  64612. $as_echo_n "(cached) " >&6
  64613. else
  64614. if test -z "$GREP"; then
  64615. @@ -5081,7 +4833,7 @@
  64616. do
  64617. IFS=$as_save_IFS
  64618. test -z "$as_dir" && as_dir=.
  64619. - for ac_prog in grep ggrep; do
  64620. + for ac_prog in grep ggrep; do
  64621. for ac_exec_ext in '' $ac_executable_extensions; do
  64622. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  64623. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  64624. @@ -5101,7 +4853,7 @@
  64625. $as_echo 'GREP' >> "conftest.nl"
  64626. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  64627. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  64628. - ac_count=`expr $ac_count + 1`
  64629. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  64630. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  64631. # Best one so far, save it but keep looking for a better one
  64632. ac_cv_path_GREP="$ac_path_GREP"
  64633. @@ -5116,26 +4868,24 @@
  64634. $ac_path_GREP_found && break 3
  64635. done
  64636. done
  64637. -done
  64638. + done
  64639. IFS=$as_save_IFS
  64640. if test -z "$ac_cv_path_GREP"; then
  64641. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  64642. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  64643. - { (exit 1); exit 1; }; }
  64644. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  64645. fi
  64646. else
  64647. ac_cv_path_GREP=$GREP
  64648. fi
  64649. fi
  64650. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  64651. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  64652. $as_echo "$ac_cv_path_GREP" >&6; }
  64653. GREP="$ac_cv_path_GREP"
  64654. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  64655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  64656. $as_echo_n "checking for egrep... " >&6; }
  64657. -if test "${ac_cv_path_EGREP+set}" = set; then
  64658. +if test "${ac_cv_path_EGREP+set}" = set; then :
  64659. $as_echo_n "(cached) " >&6
  64660. else
  64661. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  64662. @@ -5149,7 +4899,7 @@
  64663. do
  64664. IFS=$as_save_IFS
  64665. test -z "$as_dir" && as_dir=.
  64666. - for ac_prog in egrep; do
  64667. + for ac_prog in egrep; do
  64668. for ac_exec_ext in '' $ac_executable_extensions; do
  64669. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  64670. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  64671. @@ -5169,7 +4919,7 @@
  64672. $as_echo 'EGREP' >> "conftest.nl"
  64673. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  64674. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  64675. - ac_count=`expr $ac_count + 1`
  64676. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  64677. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  64678. # Best one so far, save it but keep looking for a better one
  64679. ac_cv_path_EGREP="$ac_path_EGREP"
  64680. @@ -5184,12 +4934,10 @@
  64681. $ac_path_EGREP_found && break 3
  64682. done
  64683. done
  64684. -done
  64685. + done
  64686. IFS=$as_save_IFS
  64687. if test -z "$ac_cv_path_EGREP"; then
  64688. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  64689. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  64690. - { (exit 1); exit 1; }; }
  64691. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  64692. fi
  64693. else
  64694. ac_cv_path_EGREP=$EGREP
  64695. @@ -5197,14 +4945,14 @@
  64696. fi
  64697. fi
  64698. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  64699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  64700. $as_echo "$ac_cv_path_EGREP" >&6; }
  64701. EGREP="$ac_cv_path_EGREP"
  64702. -{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  64703. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  64704. $as_echo_n "checking for fgrep... " >&6; }
  64705. -if test "${ac_cv_path_FGREP+set}" = set; then
  64706. +if test "${ac_cv_path_FGREP+set}" = set; then :
  64707. $as_echo_n "(cached) " >&6
  64708. else
  64709. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  64710. @@ -5218,7 +4966,7 @@
  64711. do
  64712. IFS=$as_save_IFS
  64713. test -z "$as_dir" && as_dir=.
  64714. - for ac_prog in fgrep; do
  64715. + for ac_prog in fgrep; do
  64716. for ac_exec_ext in '' $ac_executable_extensions; do
  64717. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  64718. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  64719. @@ -5238,7 +4986,7 @@
  64720. $as_echo 'FGREP' >> "conftest.nl"
  64721. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  64722. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  64723. - ac_count=`expr $ac_count + 1`
  64724. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  64725. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  64726. # Best one so far, save it but keep looking for a better one
  64727. ac_cv_path_FGREP="$ac_path_FGREP"
  64728. @@ -5253,12 +5001,10 @@
  64729. $ac_path_FGREP_found && break 3
  64730. done
  64731. done
  64732. -done
  64733. + done
  64734. IFS=$as_save_IFS
  64735. if test -z "$ac_cv_path_FGREP"; then
  64736. - { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  64737. -$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  64738. - { (exit 1); exit 1; }; }
  64739. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  64740. fi
  64741. else
  64742. ac_cv_path_FGREP=$FGREP
  64743. @@ -5266,7 +5012,7 @@
  64744. fi
  64745. fi
  64746. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  64747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  64748. $as_echo "$ac_cv_path_FGREP" >&6; }
  64749. FGREP="$ac_cv_path_FGREP"
  64750. @@ -5292,7 +5038,7 @@
  64751. # Check whether --with-gnu-ld was given.
  64752. -if test "${with_gnu_ld+set}" = set; then
  64753. +if test "${with_gnu_ld+set}" = set; then :
  64754. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  64755. else
  64756. with_gnu_ld=no
  64757. @@ -5301,7 +5047,7 @@
  64758. ac_prog=ld
  64759. if test "$GCC" = yes; then
  64760. # Check if gcc -print-prog-name=ld gives a path.
  64761. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  64762. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  64763. $as_echo_n "checking for ld used by $CC... " >&6; }
  64764. case $host in
  64765. *-*-mingw*)
  64766. @@ -5331,13 +5077,13 @@
  64767. ;;
  64768. esac
  64769. elif test "$with_gnu_ld" = yes; then
  64770. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  64771. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  64772. $as_echo_n "checking for GNU ld... " >&6; }
  64773. else
  64774. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  64775. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  64776. $as_echo_n "checking for non-GNU ld... " >&6; }
  64777. fi
  64778. -if test "${lt_cv_path_LD+set}" = set; then
  64779. +if test "${lt_cv_path_LD+set}" = set; then :
  64780. $as_echo_n "(cached) " >&6
  64781. else
  64782. if test -z "$LD"; then
  64783. @@ -5368,18 +5114,16 @@
  64784. LD="$lt_cv_path_LD"
  64785. if test -n "$LD"; then
  64786. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  64787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  64788. $as_echo "$LD" >&6; }
  64789. else
  64790. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64791. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64792. $as_echo "no" >&6; }
  64793. fi
  64794. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  64795. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  64796. - { (exit 1); exit 1; }; }
  64797. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  64798. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  64799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  64800. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  64801. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  64802. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  64803. $as_echo_n "(cached) " >&6
  64804. else
  64805. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  64806. @@ -5392,7 +5136,7 @@
  64807. ;;
  64808. esac
  64809. fi
  64810. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  64811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  64812. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  64813. with_gnu_ld=$lt_cv_prog_gnu_ld
  64814. @@ -5404,9 +5148,9 @@
  64815. -{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  64816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  64817. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  64818. -if test "${lt_cv_path_NM+set}" = set; then
  64819. +if test "${lt_cv_path_NM+set}" = set; then :
  64820. $as_echo_n "(cached) " >&6
  64821. else
  64822. if test -n "$NM"; then
  64823. @@ -5453,7 +5197,7 @@
  64824. : ${lt_cv_path_NM=no}
  64825. fi
  64826. fi
  64827. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  64828. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  64829. $as_echo "$lt_cv_path_NM" >&6; }
  64830. if test "$lt_cv_path_NM" != "no"; then
  64831. NM="$lt_cv_path_NM"
  64832. @@ -5464,9 +5208,9 @@
  64833. do
  64834. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  64835. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  64836. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64837. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64838. $as_echo_n "checking for $ac_word... " >&6; }
  64839. -if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  64840. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  64841. $as_echo_n "(cached) " >&6
  64842. else
  64843. if test -n "$DUMPBIN"; then
  64844. @@ -5477,24 +5221,24 @@
  64845. do
  64846. IFS=$as_save_IFS
  64847. test -z "$as_dir" && as_dir=.
  64848. - for ac_exec_ext in '' $ac_executable_extensions; do
  64849. + for ac_exec_ext in '' $ac_executable_extensions; do
  64850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64851. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  64852. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64853. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64854. break 2
  64855. fi
  64856. done
  64857. -done
  64858. + done
  64859. IFS=$as_save_IFS
  64860. fi
  64861. fi
  64862. DUMPBIN=$ac_cv_prog_DUMPBIN
  64863. if test -n "$DUMPBIN"; then
  64864. - { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  64865. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  64866. $as_echo "$DUMPBIN" >&6; }
  64867. else
  64868. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64869. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64870. $as_echo "no" >&6; }
  64871. fi
  64872. @@ -5508,9 +5252,9 @@
  64873. do
  64874. # Extract the first word of "$ac_prog", so it can be a program name with args.
  64875. set dummy $ac_prog; ac_word=$2
  64876. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  64877. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64878. $as_echo_n "checking for $ac_word... " >&6; }
  64879. -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  64880. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  64881. $as_echo_n "(cached) " >&6
  64882. else
  64883. if test -n "$ac_ct_DUMPBIN"; then
  64884. @@ -5521,24 +5265,24 @@
  64885. do
  64886. IFS=$as_save_IFS
  64887. test -z "$as_dir" && as_dir=.
  64888. - for ac_exec_ext in '' $ac_executable_extensions; do
  64889. + for ac_exec_ext in '' $ac_executable_extensions; do
  64890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  64891. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  64892. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  64893. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64894. break 2
  64895. fi
  64896. done
  64897. -done
  64898. + done
  64899. IFS=$as_save_IFS
  64900. fi
  64901. fi
  64902. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  64903. if test -n "$ac_ct_DUMPBIN"; then
  64904. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  64905. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  64906. $as_echo "$ac_ct_DUMPBIN" >&6; }
  64907. else
  64908. - { $as_echo "$as_me:$LINENO: result: no" >&5
  64909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64910. $as_echo "no" >&6; }
  64911. fi
  64912. @@ -5551,7 +5295,7 @@
  64913. else
  64914. case $cross_compiling:$ac_tool_warned in
  64915. yes:)
  64916. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  64917. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  64918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  64919. ac_tool_warned=yes ;;
  64920. esac
  64921. @@ -5571,44 +5315,44 @@
  64922. -{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  64923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  64924. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  64925. -if test "${lt_cv_nm_interface+set}" = set; then
  64926. +if test "${lt_cv_nm_interface+set}" = set; then :
  64927. $as_echo_n "(cached) " >&6
  64928. else
  64929. lt_cv_nm_interface="BSD nm"
  64930. echo "int some_variable = 0;" > conftest.$ac_ext
  64931. - (eval echo "\"\$as_me:5581: $ac_compile\"" >&5)
  64932. + (eval echo "\"\$as_me:5325: $ac_compile\"" >&5)
  64933. (eval "$ac_compile" 2>conftest.err)
  64934. cat conftest.err >&5
  64935. - (eval echo "\"\$as_me:5584: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  64936. + (eval echo "\"\$as_me:5328: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  64937. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  64938. cat conftest.err >&5
  64939. - (eval echo "\"\$as_me:5587: output\"" >&5)
  64940. + (eval echo "\"\$as_me:5331: output\"" >&5)
  64941. cat conftest.out >&5
  64942. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  64943. lt_cv_nm_interface="MS dumpbin"
  64944. fi
  64945. rm -f conftest*
  64946. fi
  64947. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  64948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  64949. $as_echo "$lt_cv_nm_interface" >&6; }
  64950. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  64951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  64952. $as_echo_n "checking whether ln -s works... " >&6; }
  64953. LN_S=$as_ln_s
  64954. if test "$LN_S" = "ln -s"; then
  64955. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  64956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  64957. $as_echo "yes" >&6; }
  64958. else
  64959. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  64960. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  64961. $as_echo "no, using $LN_S" >&6; }
  64962. fi
  64963. # find the maximum length of command line arguments
  64964. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  64965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  64966. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  64967. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  64968. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  64969. $as_echo_n "(cached) " >&6
  64970. else
  64971. i=0
  64972. @@ -5726,10 +5470,10 @@
  64973. fi
  64974. if test -n $lt_cv_sys_max_cmd_len ; then
  64975. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  64976. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  64977. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  64978. else
  64979. - { $as_echo "$as_me:$LINENO: result: none" >&5
  64980. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  64981. $as_echo "none" >&6; }
  64982. fi
  64983. max_cmd_len=$lt_cv_sys_max_cmd_len
  64984. @@ -5743,7 +5487,7 @@
  64985. : ${MV="mv -f"}
  64986. : ${RM="rm -f"}
  64987. -{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  64988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  64989. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  64990. # Try some XSI features
  64991. xsi_shell=no
  64992. @@ -5753,17 +5497,17 @@
  64993. && eval 'test $(( 1 + 1 )) -eq 2 \
  64994. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  64995. && xsi_shell=yes
  64996. -{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  64997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  64998. $as_echo "$xsi_shell" >&6; }
  64999. -{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  65000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  65001. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  65002. lt_shell_append=no
  65003. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  65004. >/dev/null 2>&1 \
  65005. && lt_shell_append=yes
  65006. -{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  65007. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  65008. $as_echo "$lt_shell_append" >&6; }
  65009. @@ -5798,14 +5542,14 @@
  65010. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  65011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  65012. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  65013. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  65014. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  65015. $as_echo_n "(cached) " >&6
  65016. else
  65017. lt_cv_ld_reload_flag='-r'
  65018. fi
  65019. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  65020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  65021. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  65022. reload_flag=$lt_cv_ld_reload_flag
  65023. case $reload_flag in
  65024. @@ -5834,9 +5578,9 @@
  65025. if test -n "$ac_tool_prefix"; then
  65026. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  65027. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  65028. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65030. $as_echo_n "checking for $ac_word... " >&6; }
  65031. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  65032. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  65033. $as_echo_n "(cached) " >&6
  65034. else
  65035. if test -n "$OBJDUMP"; then
  65036. @@ -5847,24 +5591,24 @@
  65037. do
  65038. IFS=$as_save_IFS
  65039. test -z "$as_dir" && as_dir=.
  65040. - for ac_exec_ext in '' $ac_executable_extensions; do
  65041. + for ac_exec_ext in '' $ac_executable_extensions; do
  65042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65043. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  65044. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65045. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65046. break 2
  65047. fi
  65048. done
  65049. -done
  65050. + done
  65051. IFS=$as_save_IFS
  65052. fi
  65053. fi
  65054. OBJDUMP=$ac_cv_prog_OBJDUMP
  65055. if test -n "$OBJDUMP"; then
  65056. - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  65057. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  65058. $as_echo "$OBJDUMP" >&6; }
  65059. else
  65060. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65061. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65062. $as_echo "no" >&6; }
  65063. fi
  65064. @@ -5874,9 +5618,9 @@
  65065. ac_ct_OBJDUMP=$OBJDUMP
  65066. # Extract the first word of "objdump", so it can be a program name with args.
  65067. set dummy objdump; ac_word=$2
  65068. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65069. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65070. $as_echo_n "checking for $ac_word... " >&6; }
  65071. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  65072. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  65073. $as_echo_n "(cached) " >&6
  65074. else
  65075. if test -n "$ac_ct_OBJDUMP"; then
  65076. @@ -5887,24 +5631,24 @@
  65077. do
  65078. IFS=$as_save_IFS
  65079. test -z "$as_dir" && as_dir=.
  65080. - for ac_exec_ext in '' $ac_executable_extensions; do
  65081. + for ac_exec_ext in '' $ac_executable_extensions; do
  65082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65083. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  65084. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65085. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65086. break 2
  65087. fi
  65088. done
  65089. -done
  65090. + done
  65091. IFS=$as_save_IFS
  65092. fi
  65093. fi
  65094. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  65095. if test -n "$ac_ct_OBJDUMP"; then
  65096. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  65097. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  65098. $as_echo "$ac_ct_OBJDUMP" >&6; }
  65099. else
  65100. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65101. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65102. $as_echo "no" >&6; }
  65103. fi
  65104. @@ -5913,7 +5657,7 @@
  65105. else
  65106. case $cross_compiling:$ac_tool_warned in
  65107. yes:)
  65108. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65111. ac_tool_warned=yes ;;
  65112. esac
  65113. @@ -5930,9 +5674,9 @@
  65114. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  65115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  65116. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  65117. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  65118. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  65119. $as_echo_n "(cached) " >&6
  65120. else
  65121. lt_cv_file_magic_cmd='$MAGIC_CMD'
  65122. @@ -6047,11 +5791,11 @@
  65123. ;;
  65124. # This must be Linux ELF.
  65125. -linux* | k*bsd*-gnu)
  65126. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  65127. lt_cv_deplibs_check_method=pass_all
  65128. ;;
  65129. -netbsd*)
  65130. +netbsd* | netbsdelf*-gnu)
  65131. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  65132. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  65133. else
  65134. @@ -6126,7 +5870,7 @@
  65135. esac
  65136. fi
  65137. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  65138. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  65139. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  65140. file_magic_cmd=$lt_cv_file_magic_cmd
  65141. deplibs_check_method=$lt_cv_deplibs_check_method
  65142. @@ -6146,9 +5890,9 @@
  65143. if test -n "$ac_tool_prefix"; then
  65144. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  65145. set dummy ${ac_tool_prefix}ar; ac_word=$2
  65146. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65148. $as_echo_n "checking for $ac_word... " >&6; }
  65149. -if test "${ac_cv_prog_AR+set}" = set; then
  65150. +if test "${ac_cv_prog_AR+set}" = set; then :
  65151. $as_echo_n "(cached) " >&6
  65152. else
  65153. if test -n "$AR"; then
  65154. @@ -6159,24 +5903,24 @@
  65155. do
  65156. IFS=$as_save_IFS
  65157. test -z "$as_dir" && as_dir=.
  65158. - for ac_exec_ext in '' $ac_executable_extensions; do
  65159. + for ac_exec_ext in '' $ac_executable_extensions; do
  65160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65161. ac_cv_prog_AR="${ac_tool_prefix}ar"
  65162. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65163. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65164. break 2
  65165. fi
  65166. done
  65167. -done
  65168. + done
  65169. IFS=$as_save_IFS
  65170. fi
  65171. fi
  65172. AR=$ac_cv_prog_AR
  65173. if test -n "$AR"; then
  65174. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  65175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  65176. $as_echo "$AR" >&6; }
  65177. else
  65178. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65180. $as_echo "no" >&6; }
  65181. fi
  65182. @@ -6186,9 +5930,9 @@
  65183. ac_ct_AR=$AR
  65184. # Extract the first word of "ar", so it can be a program name with args.
  65185. set dummy ar; ac_word=$2
  65186. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65188. $as_echo_n "checking for $ac_word... " >&6; }
  65189. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  65190. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  65191. $as_echo_n "(cached) " >&6
  65192. else
  65193. if test -n "$ac_ct_AR"; then
  65194. @@ -6199,24 +5943,24 @@
  65195. do
  65196. IFS=$as_save_IFS
  65197. test -z "$as_dir" && as_dir=.
  65198. - for ac_exec_ext in '' $ac_executable_extensions; do
  65199. + for ac_exec_ext in '' $ac_executable_extensions; do
  65200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65201. ac_cv_prog_ac_ct_AR="ar"
  65202. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65203. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65204. break 2
  65205. fi
  65206. done
  65207. -done
  65208. + done
  65209. IFS=$as_save_IFS
  65210. fi
  65211. fi
  65212. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  65213. if test -n "$ac_ct_AR"; then
  65214. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  65215. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  65216. $as_echo "$ac_ct_AR" >&6; }
  65217. else
  65218. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65219. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65220. $as_echo "no" >&6; }
  65221. fi
  65222. @@ -6225,7 +5969,7 @@
  65223. else
  65224. case $cross_compiling:$ac_tool_warned in
  65225. yes:)
  65226. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65229. ac_tool_warned=yes ;;
  65230. esac
  65231. @@ -6251,9 +5995,9 @@
  65232. if test -n "$ac_tool_prefix"; then
  65233. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  65234. set dummy ${ac_tool_prefix}strip; ac_word=$2
  65235. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65237. $as_echo_n "checking for $ac_word... " >&6; }
  65238. -if test "${ac_cv_prog_STRIP+set}" = set; then
  65239. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  65240. $as_echo_n "(cached) " >&6
  65241. else
  65242. if test -n "$STRIP"; then
  65243. @@ -6264,24 +6008,24 @@
  65244. do
  65245. IFS=$as_save_IFS
  65246. test -z "$as_dir" && as_dir=.
  65247. - for ac_exec_ext in '' $ac_executable_extensions; do
  65248. + for ac_exec_ext in '' $ac_executable_extensions; do
  65249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65250. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  65251. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65252. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65253. break 2
  65254. fi
  65255. done
  65256. -done
  65257. + done
  65258. IFS=$as_save_IFS
  65259. fi
  65260. fi
  65261. STRIP=$ac_cv_prog_STRIP
  65262. if test -n "$STRIP"; then
  65263. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  65264. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  65265. $as_echo "$STRIP" >&6; }
  65266. else
  65267. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65268. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65269. $as_echo "no" >&6; }
  65270. fi
  65271. @@ -6291,9 +6035,9 @@
  65272. ac_ct_STRIP=$STRIP
  65273. # Extract the first word of "strip", so it can be a program name with args.
  65274. set dummy strip; ac_word=$2
  65275. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65276. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65277. $as_echo_n "checking for $ac_word... " >&6; }
  65278. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  65279. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  65280. $as_echo_n "(cached) " >&6
  65281. else
  65282. if test -n "$ac_ct_STRIP"; then
  65283. @@ -6304,24 +6048,24 @@
  65284. do
  65285. IFS=$as_save_IFS
  65286. test -z "$as_dir" && as_dir=.
  65287. - for ac_exec_ext in '' $ac_executable_extensions; do
  65288. + for ac_exec_ext in '' $ac_executable_extensions; do
  65289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65290. ac_cv_prog_ac_ct_STRIP="strip"
  65291. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65292. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65293. break 2
  65294. fi
  65295. done
  65296. -done
  65297. + done
  65298. IFS=$as_save_IFS
  65299. fi
  65300. fi
  65301. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  65302. if test -n "$ac_ct_STRIP"; then
  65303. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  65304. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  65305. $as_echo "$ac_ct_STRIP" >&6; }
  65306. else
  65307. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65308. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65309. $as_echo "no" >&6; }
  65310. fi
  65311. @@ -6330,7 +6074,7 @@
  65312. else
  65313. case $cross_compiling:$ac_tool_warned in
  65314. yes:)
  65315. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65317. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65318. ac_tool_warned=yes ;;
  65319. esac
  65320. @@ -6350,9 +6094,9 @@
  65321. if test -n "$ac_tool_prefix"; then
  65322. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  65323. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  65324. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65326. $as_echo_n "checking for $ac_word... " >&6; }
  65327. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  65328. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  65329. $as_echo_n "(cached) " >&6
  65330. else
  65331. if test -n "$RANLIB"; then
  65332. @@ -6363,24 +6107,24 @@
  65333. do
  65334. IFS=$as_save_IFS
  65335. test -z "$as_dir" && as_dir=.
  65336. - for ac_exec_ext in '' $ac_executable_extensions; do
  65337. + for ac_exec_ext in '' $ac_executable_extensions; do
  65338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65339. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  65340. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65341. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65342. break 2
  65343. fi
  65344. done
  65345. -done
  65346. + done
  65347. IFS=$as_save_IFS
  65348. fi
  65349. fi
  65350. RANLIB=$ac_cv_prog_RANLIB
  65351. if test -n "$RANLIB"; then
  65352. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  65353. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  65354. $as_echo "$RANLIB" >&6; }
  65355. else
  65356. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65357. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65358. $as_echo "no" >&6; }
  65359. fi
  65360. @@ -6390,9 +6134,9 @@
  65361. ac_ct_RANLIB=$RANLIB
  65362. # Extract the first word of "ranlib", so it can be a program name with args.
  65363. set dummy ranlib; ac_word=$2
  65364. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65366. $as_echo_n "checking for $ac_word... " >&6; }
  65367. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  65368. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  65369. $as_echo_n "(cached) " >&6
  65370. else
  65371. if test -n "$ac_ct_RANLIB"; then
  65372. @@ -6403,24 +6147,24 @@
  65373. do
  65374. IFS=$as_save_IFS
  65375. test -z "$as_dir" && as_dir=.
  65376. - for ac_exec_ext in '' $ac_executable_extensions; do
  65377. + for ac_exec_ext in '' $ac_executable_extensions; do
  65378. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65379. ac_cv_prog_ac_ct_RANLIB="ranlib"
  65380. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65381. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65382. break 2
  65383. fi
  65384. done
  65385. -done
  65386. + done
  65387. IFS=$as_save_IFS
  65388. fi
  65389. fi
  65390. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  65391. if test -n "$ac_ct_RANLIB"; then
  65392. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  65393. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  65394. $as_echo "$ac_ct_RANLIB" >&6; }
  65395. else
  65396. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65397. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65398. $as_echo "no" >&6; }
  65399. fi
  65400. @@ -6429,7 +6173,7 @@
  65401. else
  65402. case $cross_compiling:$ac_tool_warned in
  65403. yes:)
  65404. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65407. ac_tool_warned=yes ;;
  65408. esac
  65409. @@ -6507,9 +6251,9 @@
  65410. # Check for command to grab the raw symbol name followed by C symbol from nm.
  65411. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  65412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  65413. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  65414. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  65415. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  65416. $as_echo_n "(cached) " >&6
  65417. else
  65418. @@ -6625,18 +6369,18 @@
  65419. int main(){nm_test_var='a';nm_test_func();return(0);}
  65420. _LT_EOF
  65421. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  65422. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  65423. (eval $ac_compile) 2>&5
  65424. ac_status=$?
  65425. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65426. - (exit $ac_status); }; then
  65427. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65428. + test $ac_status = 0; }; then
  65429. # Now try to grab the symbols.
  65430. nlist=conftest.nm
  65431. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  65432. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  65433. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  65434. ac_status=$?
  65435. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65436. - (exit $ac_status); } && test -s "$nlist"; then
  65437. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65438. + test $ac_status = 0; } && test -s "$nlist"; then
  65439. # Try sorting and uniquifying the output.
  65440. if sort "$nlist" | uniq > "$nlist"T; then
  65441. mv -f "$nlist"T "$nlist"
  65442. @@ -6689,11 +6433,11 @@
  65443. lt_save_CFLAGS="$CFLAGS"
  65444. LIBS="conftstm.$ac_objext"
  65445. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  65446. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  65447. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  65448. (eval $ac_link) 2>&5
  65449. ac_status=$?
  65450. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65451. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  65452. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65453. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  65454. pipe_works=yes
  65455. fi
  65456. LIBS="$lt_save_LIBS"
  65457. @@ -6727,10 +6471,10 @@
  65458. lt_cv_sys_global_symbol_to_cdecl=
  65459. fi
  65460. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  65461. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  65462. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  65463. $as_echo "failed" >&6; }
  65464. else
  65465. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  65466. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  65467. $as_echo "ok" >&6; }
  65468. fi
  65469. @@ -6757,7 +6501,7 @@
  65470. # Check whether --enable-libtool-lock was given.
  65471. -if test "${enable_libtool_lock+set}" = set; then
  65472. +if test "${enable_libtool_lock+set}" = set; then :
  65473. enableval=$enable_libtool_lock;
  65474. fi
  65475. @@ -6769,11 +6513,11 @@
  65476. ia64-*-hpux*)
  65477. # Find out which ABI we are using.
  65478. echo 'int i;' > conftest.$ac_ext
  65479. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  65480. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  65481. (eval $ac_compile) 2>&5
  65482. ac_status=$?
  65483. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65484. - (exit $ac_status); }; then
  65485. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65486. + test $ac_status = 0; }; then
  65487. case `/usr/bin/file conftest.$ac_objext` in
  65488. *ELF-32*)
  65489. HPUX_IA64_MODE="32"
  65490. @@ -6787,12 +6531,12 @@
  65491. ;;
  65492. *-*-irix6*)
  65493. # Find out which ABI we are using.
  65494. - echo '#line 6790 "configure"' > conftest.$ac_ext
  65495. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  65496. + echo '#line 6534 "configure"' > conftest.$ac_ext
  65497. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  65498. (eval $ac_compile) 2>&5
  65499. ac_status=$?
  65500. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65501. - (exit $ac_status); }; then
  65502. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65503. + test $ac_status = 0; }; then
  65504. if test "$lt_cv_prog_gnu_ld" = yes; then
  65505. case `/usr/bin/file conftest.$ac_objext` in
  65506. *32-bit*)
  65507. @@ -6826,11 +6570,11 @@
  65508. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  65509. # Find out which ABI we are using.
  65510. echo 'int i;' > conftest.$ac_ext
  65511. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  65512. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  65513. (eval $ac_compile) 2>&5
  65514. ac_status=$?
  65515. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65516. - (exit $ac_status); }; then
  65517. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65518. + test $ac_status = 0; }; then
  65519. case `/usr/bin/file conftest.o` in
  65520. *32-bit*)
  65521. case $host in
  65522. @@ -6879,9 +6623,9 @@
  65523. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  65524. SAVE_CFLAGS="$CFLAGS"
  65525. CFLAGS="$CFLAGS -belf"
  65526. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  65527. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  65528. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  65529. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  65530. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  65531. $as_echo_n "(cached) " >&6
  65532. else
  65533. ac_ext=c
  65534. @@ -6890,11 +6634,7 @@
  65535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  65536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  65537. - cat >conftest.$ac_ext <<_ACEOF
  65538. -/* confdefs.h. */
  65539. -_ACEOF
  65540. -cat confdefs.h >>conftest.$ac_ext
  65541. -cat >>conftest.$ac_ext <<_ACEOF
  65542. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  65543. /* end confdefs.h. */
  65544. int
  65545. @@ -6905,38 +6645,13 @@
  65546. return 0;
  65547. }
  65548. _ACEOF
  65549. -rm -f conftest.$ac_objext conftest$ac_exeext
  65550. -if { (ac_try="$ac_link"
  65551. -case "(($ac_try" in
  65552. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  65553. - *) ac_try_echo=$ac_try;;
  65554. -esac
  65555. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  65556. -$as_echo "$ac_try_echo") >&5
  65557. - (eval "$ac_link") 2>conftest.er1
  65558. - ac_status=$?
  65559. - grep -v '^ *+' conftest.er1 >conftest.err
  65560. - rm -f conftest.er1
  65561. - cat conftest.err >&5
  65562. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65563. - (exit $ac_status); } && {
  65564. - test -z "$ac_c_werror_flag" ||
  65565. - test ! -s conftest.err
  65566. - } && test -s conftest$ac_exeext && {
  65567. - test "$cross_compiling" = yes ||
  65568. - $as_test_x conftest$ac_exeext
  65569. - }; then
  65570. +if ac_fn_c_try_link "$LINENO"; then :
  65571. lt_cv_cc_needs_belf=yes
  65572. else
  65573. - $as_echo "$as_me: failed program was:" >&5
  65574. -sed 's/^/| /' conftest.$ac_ext >&5
  65575. -
  65576. - lt_cv_cc_needs_belf=no
  65577. + lt_cv_cc_needs_belf=no
  65578. fi
  65579. -
  65580. -rm -rf conftest.dSYM
  65581. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  65582. - conftest$ac_exeext conftest.$ac_ext
  65583. +rm -f core conftest.err conftest.$ac_objext \
  65584. + conftest$ac_exeext conftest.$ac_ext
  65585. ac_ext=c
  65586. ac_cpp='$CPP $CPPFLAGS'
  65587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  65588. @@ -6944,7 +6659,7 @@
  65589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  65590. fi
  65591. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  65592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  65593. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  65594. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  65595. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  65596. @@ -6954,11 +6669,11 @@
  65597. sparc*-*solaris*)
  65598. # Find out which ABI we are using.
  65599. echo 'int i;' > conftest.$ac_ext
  65600. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  65601. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  65602. (eval $ac_compile) 2>&5
  65603. ac_status=$?
  65604. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65605. - (exit $ac_status); }; then
  65606. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  65607. + test $ac_status = 0; }; then
  65608. case `/usr/bin/file conftest.o` in
  65609. *64-bit*)
  65610. case $lt_cv_prog_gnu_ld in
  65611. @@ -6984,9 +6699,9 @@
  65612. if test -n "$ac_tool_prefix"; then
  65613. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  65614. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  65615. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65617. $as_echo_n "checking for $ac_word... " >&6; }
  65618. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  65619. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  65620. $as_echo_n "(cached) " >&6
  65621. else
  65622. if test -n "$DSYMUTIL"; then
  65623. @@ -6997,24 +6712,24 @@
  65624. do
  65625. IFS=$as_save_IFS
  65626. test -z "$as_dir" && as_dir=.
  65627. - for ac_exec_ext in '' $ac_executable_extensions; do
  65628. + for ac_exec_ext in '' $ac_executable_extensions; do
  65629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65630. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  65631. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65632. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65633. break 2
  65634. fi
  65635. done
  65636. -done
  65637. + done
  65638. IFS=$as_save_IFS
  65639. fi
  65640. fi
  65641. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  65642. if test -n "$DSYMUTIL"; then
  65643. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  65644. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  65645. $as_echo "$DSYMUTIL" >&6; }
  65646. else
  65647. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65648. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65649. $as_echo "no" >&6; }
  65650. fi
  65651. @@ -7024,9 +6739,9 @@
  65652. ac_ct_DSYMUTIL=$DSYMUTIL
  65653. # Extract the first word of "dsymutil", so it can be a program name with args.
  65654. set dummy dsymutil; ac_word=$2
  65655. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65657. $as_echo_n "checking for $ac_word... " >&6; }
  65658. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  65659. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  65660. $as_echo_n "(cached) " >&6
  65661. else
  65662. if test -n "$ac_ct_DSYMUTIL"; then
  65663. @@ -7037,24 +6752,24 @@
  65664. do
  65665. IFS=$as_save_IFS
  65666. test -z "$as_dir" && as_dir=.
  65667. - for ac_exec_ext in '' $ac_executable_extensions; do
  65668. + for ac_exec_ext in '' $ac_executable_extensions; do
  65669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65670. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  65671. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65672. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65673. break 2
  65674. fi
  65675. done
  65676. -done
  65677. + done
  65678. IFS=$as_save_IFS
  65679. fi
  65680. fi
  65681. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  65682. if test -n "$ac_ct_DSYMUTIL"; then
  65683. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  65684. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  65685. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  65686. else
  65687. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65688. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65689. $as_echo "no" >&6; }
  65690. fi
  65691. @@ -7063,7 +6778,7 @@
  65692. else
  65693. case $cross_compiling:$ac_tool_warned in
  65694. yes:)
  65695. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65698. ac_tool_warned=yes ;;
  65699. esac
  65700. @@ -7076,9 +6791,9 @@
  65701. if test -n "$ac_tool_prefix"; then
  65702. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  65703. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  65704. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65706. $as_echo_n "checking for $ac_word... " >&6; }
  65707. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  65708. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  65709. $as_echo_n "(cached) " >&6
  65710. else
  65711. if test -n "$NMEDIT"; then
  65712. @@ -7089,24 +6804,24 @@
  65713. do
  65714. IFS=$as_save_IFS
  65715. test -z "$as_dir" && as_dir=.
  65716. - for ac_exec_ext in '' $ac_executable_extensions; do
  65717. + for ac_exec_ext in '' $ac_executable_extensions; do
  65718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65719. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  65720. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65721. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65722. break 2
  65723. fi
  65724. done
  65725. -done
  65726. + done
  65727. IFS=$as_save_IFS
  65728. fi
  65729. fi
  65730. NMEDIT=$ac_cv_prog_NMEDIT
  65731. if test -n "$NMEDIT"; then
  65732. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  65733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  65734. $as_echo "$NMEDIT" >&6; }
  65735. else
  65736. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65738. $as_echo "no" >&6; }
  65739. fi
  65740. @@ -7116,9 +6831,9 @@
  65741. ac_ct_NMEDIT=$NMEDIT
  65742. # Extract the first word of "nmedit", so it can be a program name with args.
  65743. set dummy nmedit; ac_word=$2
  65744. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65746. $as_echo_n "checking for $ac_word... " >&6; }
  65747. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  65748. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  65749. $as_echo_n "(cached) " >&6
  65750. else
  65751. if test -n "$ac_ct_NMEDIT"; then
  65752. @@ -7129,24 +6844,24 @@
  65753. do
  65754. IFS=$as_save_IFS
  65755. test -z "$as_dir" && as_dir=.
  65756. - for ac_exec_ext in '' $ac_executable_extensions; do
  65757. + for ac_exec_ext in '' $ac_executable_extensions; do
  65758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65759. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  65760. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65761. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65762. break 2
  65763. fi
  65764. done
  65765. -done
  65766. + done
  65767. IFS=$as_save_IFS
  65768. fi
  65769. fi
  65770. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  65771. if test -n "$ac_ct_NMEDIT"; then
  65772. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  65773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  65774. $as_echo "$ac_ct_NMEDIT" >&6; }
  65775. else
  65776. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65777. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65778. $as_echo "no" >&6; }
  65779. fi
  65780. @@ -7155,7 +6870,7 @@
  65781. else
  65782. case $cross_compiling:$ac_tool_warned in
  65783. yes:)
  65784. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65787. ac_tool_warned=yes ;;
  65788. esac
  65789. @@ -7168,9 +6883,9 @@
  65790. if test -n "$ac_tool_prefix"; then
  65791. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  65792. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  65793. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65795. $as_echo_n "checking for $ac_word... " >&6; }
  65796. -if test "${ac_cv_prog_LIPO+set}" = set; then
  65797. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  65798. $as_echo_n "(cached) " >&6
  65799. else
  65800. if test -n "$LIPO"; then
  65801. @@ -7181,24 +6896,24 @@
  65802. do
  65803. IFS=$as_save_IFS
  65804. test -z "$as_dir" && as_dir=.
  65805. - for ac_exec_ext in '' $ac_executable_extensions; do
  65806. + for ac_exec_ext in '' $ac_executable_extensions; do
  65807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65808. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  65809. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65810. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65811. break 2
  65812. fi
  65813. done
  65814. -done
  65815. + done
  65816. IFS=$as_save_IFS
  65817. fi
  65818. fi
  65819. LIPO=$ac_cv_prog_LIPO
  65820. if test -n "$LIPO"; then
  65821. - { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  65822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  65823. $as_echo "$LIPO" >&6; }
  65824. else
  65825. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65826. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65827. $as_echo "no" >&6; }
  65828. fi
  65829. @@ -7208,9 +6923,9 @@
  65830. ac_ct_LIPO=$LIPO
  65831. # Extract the first word of "lipo", so it can be a program name with args.
  65832. set dummy lipo; ac_word=$2
  65833. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65835. $as_echo_n "checking for $ac_word... " >&6; }
  65836. -if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  65837. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  65838. $as_echo_n "(cached) " >&6
  65839. else
  65840. if test -n "$ac_ct_LIPO"; then
  65841. @@ -7221,24 +6936,24 @@
  65842. do
  65843. IFS=$as_save_IFS
  65844. test -z "$as_dir" && as_dir=.
  65845. - for ac_exec_ext in '' $ac_executable_extensions; do
  65846. + for ac_exec_ext in '' $ac_executable_extensions; do
  65847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65848. ac_cv_prog_ac_ct_LIPO="lipo"
  65849. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65850. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65851. break 2
  65852. fi
  65853. done
  65854. -done
  65855. + done
  65856. IFS=$as_save_IFS
  65857. fi
  65858. fi
  65859. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  65860. if test -n "$ac_ct_LIPO"; then
  65861. - { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  65862. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  65863. $as_echo "$ac_ct_LIPO" >&6; }
  65864. else
  65865. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65866. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65867. $as_echo "no" >&6; }
  65868. fi
  65869. @@ -7247,7 +6962,7 @@
  65870. else
  65871. case $cross_compiling:$ac_tool_warned in
  65872. yes:)
  65873. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65875. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65876. ac_tool_warned=yes ;;
  65877. esac
  65878. @@ -7260,9 +6975,9 @@
  65879. if test -n "$ac_tool_prefix"; then
  65880. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  65881. set dummy ${ac_tool_prefix}otool; ac_word=$2
  65882. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65884. $as_echo_n "checking for $ac_word... " >&6; }
  65885. -if test "${ac_cv_prog_OTOOL+set}" = set; then
  65886. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  65887. $as_echo_n "(cached) " >&6
  65888. else
  65889. if test -n "$OTOOL"; then
  65890. @@ -7273,24 +6988,24 @@
  65891. do
  65892. IFS=$as_save_IFS
  65893. test -z "$as_dir" && as_dir=.
  65894. - for ac_exec_ext in '' $ac_executable_extensions; do
  65895. + for ac_exec_ext in '' $ac_executable_extensions; do
  65896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65897. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  65898. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65899. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65900. break 2
  65901. fi
  65902. done
  65903. -done
  65904. + done
  65905. IFS=$as_save_IFS
  65906. fi
  65907. fi
  65908. OTOOL=$ac_cv_prog_OTOOL
  65909. if test -n "$OTOOL"; then
  65910. - { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  65911. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  65912. $as_echo "$OTOOL" >&6; }
  65913. else
  65914. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65915. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65916. $as_echo "no" >&6; }
  65917. fi
  65918. @@ -7300,9 +7015,9 @@
  65919. ac_ct_OTOOL=$OTOOL
  65920. # Extract the first word of "otool", so it can be a program name with args.
  65921. set dummy otool; ac_word=$2
  65922. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65924. $as_echo_n "checking for $ac_word... " >&6; }
  65925. -if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  65926. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  65927. $as_echo_n "(cached) " >&6
  65928. else
  65929. if test -n "$ac_ct_OTOOL"; then
  65930. @@ -7313,24 +7028,24 @@
  65931. do
  65932. IFS=$as_save_IFS
  65933. test -z "$as_dir" && as_dir=.
  65934. - for ac_exec_ext in '' $ac_executable_extensions; do
  65935. + for ac_exec_ext in '' $ac_executable_extensions; do
  65936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65937. ac_cv_prog_ac_ct_OTOOL="otool"
  65938. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65939. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65940. break 2
  65941. fi
  65942. done
  65943. -done
  65944. + done
  65945. IFS=$as_save_IFS
  65946. fi
  65947. fi
  65948. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  65949. if test -n "$ac_ct_OTOOL"; then
  65950. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  65951. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  65952. $as_echo "$ac_ct_OTOOL" >&6; }
  65953. else
  65954. - { $as_echo "$as_me:$LINENO: result: no" >&5
  65955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  65956. $as_echo "no" >&6; }
  65957. fi
  65958. @@ -7339,7 +7054,7 @@
  65959. else
  65960. case $cross_compiling:$ac_tool_warned in
  65961. yes:)
  65962. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  65963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  65964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  65965. ac_tool_warned=yes ;;
  65966. esac
  65967. @@ -7352,9 +7067,9 @@
  65968. if test -n "$ac_tool_prefix"; then
  65969. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  65970. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  65971. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  65972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  65973. $as_echo_n "checking for $ac_word... " >&6; }
  65974. -if test "${ac_cv_prog_OTOOL64+set}" = set; then
  65975. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  65976. $as_echo_n "(cached) " >&6
  65977. else
  65978. if test -n "$OTOOL64"; then
  65979. @@ -7365,24 +7080,24 @@
  65980. do
  65981. IFS=$as_save_IFS
  65982. test -z "$as_dir" && as_dir=.
  65983. - for ac_exec_ext in '' $ac_executable_extensions; do
  65984. + for ac_exec_ext in '' $ac_executable_extensions; do
  65985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  65986. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  65987. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  65988. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  65989. break 2
  65990. fi
  65991. done
  65992. -done
  65993. + done
  65994. IFS=$as_save_IFS
  65995. fi
  65996. fi
  65997. OTOOL64=$ac_cv_prog_OTOOL64
  65998. if test -n "$OTOOL64"; then
  65999. - { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  66000. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  66001. $as_echo "$OTOOL64" >&6; }
  66002. else
  66003. - { $as_echo "$as_me:$LINENO: result: no" >&5
  66004. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  66005. $as_echo "no" >&6; }
  66006. fi
  66007. @@ -7392,9 +7107,9 @@
  66008. ac_ct_OTOOL64=$OTOOL64
  66009. # Extract the first word of "otool64", so it can be a program name with args.
  66010. set dummy otool64; ac_word=$2
  66011. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  66012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  66013. $as_echo_n "checking for $ac_word... " >&6; }
  66014. -if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  66015. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  66016. $as_echo_n "(cached) " >&6
  66017. else
  66018. if test -n "$ac_ct_OTOOL64"; then
  66019. @@ -7405,24 +7120,24 @@
  66020. do
  66021. IFS=$as_save_IFS
  66022. test -z "$as_dir" && as_dir=.
  66023. - for ac_exec_ext in '' $ac_executable_extensions; do
  66024. + for ac_exec_ext in '' $ac_executable_extensions; do
  66025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  66026. ac_cv_prog_ac_ct_OTOOL64="otool64"
  66027. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  66028. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  66029. break 2
  66030. fi
  66031. done
  66032. -done
  66033. + done
  66034. IFS=$as_save_IFS
  66035. fi
  66036. fi
  66037. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  66038. if test -n "$ac_ct_OTOOL64"; then
  66039. - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  66040. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  66041. $as_echo "$ac_ct_OTOOL64" >&6; }
  66042. else
  66043. - { $as_echo "$as_me:$LINENO: result: no" >&5
  66044. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  66045. $as_echo "no" >&6; }
  66046. fi
  66047. @@ -7431,7 +7146,7 @@
  66048. else
  66049. case $cross_compiling:$ac_tool_warned in
  66050. yes:)
  66051. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  66052. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  66053. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  66054. ac_tool_warned=yes ;;
  66055. esac
  66056. @@ -7467,9 +7182,9 @@
  66057. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  66058. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  66059. $as_echo_n "checking for -single_module linker flag... " >&6; }
  66060. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  66061. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  66062. $as_echo_n "(cached) " >&6
  66063. else
  66064. lt_cv_apple_cc_single_mod=no
  66065. @@ -7494,22 +7209,18 @@
  66066. rm -f conftest.*
  66067. fi
  66068. fi
  66069. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  66070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  66071. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  66072. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  66073. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  66074. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  66075. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  66076. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  66077. $as_echo_n "(cached) " >&6
  66078. else
  66079. lt_cv_ld_exported_symbols_list=no
  66080. save_LDFLAGS=$LDFLAGS
  66081. echo "_main" > conftest.sym
  66082. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  66083. - cat >conftest.$ac_ext <<_ACEOF
  66084. -/* confdefs.h. */
  66085. -_ACEOF
  66086. -cat confdefs.h >>conftest.$ac_ext
  66087. -cat >>conftest.$ac_ext <<_ACEOF
  66088. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66089. /* end confdefs.h. */
  66090. int
  66091. @@ -7520,42 +7231,17 @@
  66092. return 0;
  66093. }
  66094. _ACEOF
  66095. -rm -f conftest.$ac_objext conftest$ac_exeext
  66096. -if { (ac_try="$ac_link"
  66097. -case "(($ac_try" in
  66098. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66099. - *) ac_try_echo=$ac_try;;
  66100. -esac
  66101. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66102. -$as_echo "$ac_try_echo") >&5
  66103. - (eval "$ac_link") 2>conftest.er1
  66104. - ac_status=$?
  66105. - grep -v '^ *+' conftest.er1 >conftest.err
  66106. - rm -f conftest.er1
  66107. - cat conftest.err >&5
  66108. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66109. - (exit $ac_status); } && {
  66110. - test -z "$ac_c_werror_flag" ||
  66111. - test ! -s conftest.err
  66112. - } && test -s conftest$ac_exeext && {
  66113. - test "$cross_compiling" = yes ||
  66114. - $as_test_x conftest$ac_exeext
  66115. - }; then
  66116. +if ac_fn_c_try_link "$LINENO"; then :
  66117. lt_cv_ld_exported_symbols_list=yes
  66118. else
  66119. - $as_echo "$as_me: failed program was:" >&5
  66120. -sed 's/^/| /' conftest.$ac_ext >&5
  66121. -
  66122. - lt_cv_ld_exported_symbols_list=no
  66123. + lt_cv_ld_exported_symbols_list=no
  66124. fi
  66125. -
  66126. -rm -rf conftest.dSYM
  66127. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  66128. - conftest$ac_exeext conftest.$ac_ext
  66129. +rm -f core conftest.err conftest.$ac_objext \
  66130. + conftest$ac_exeext conftest.$ac_ext
  66131. LDFLAGS="$save_LDFLAGS"
  66132. fi
  66133. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  66134. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  66135. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  66136. case $host_os in
  66137. rhapsody* | darwin1.[012])
  66138. @@ -7597,14 +7283,14 @@
  66139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  66140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  66141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  66142. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  66143. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  66144. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  66145. # On Suns, sometimes $CPP names a directory.
  66146. if test -n "$CPP" && test -d "$CPP"; then
  66147. CPP=
  66148. fi
  66149. if test -z "$CPP"; then
  66150. - if test "${ac_cv_prog_CPP+set}" = set; then
  66151. + if test "${ac_cv_prog_CPP+set}" = set; then :
  66152. $as_echo_n "(cached) " >&6
  66153. else
  66154. # Double quotes because CPP needs to be expanded
  66155. @@ -7619,11 +7305,7 @@
  66156. # <limits.h> exists even on freestanding compilers.
  66157. # On the NeXT, cc -E runs the code through the compiler's parser,
  66158. # not just through cpp. "Syntax error" is here to catch this case.
  66159. - cat >conftest.$ac_ext <<_ACEOF
  66160. -/* confdefs.h. */
  66161. -_ACEOF
  66162. -cat confdefs.h >>conftest.$ac_ext
  66163. -cat >>conftest.$ac_ext <<_ACEOF
  66164. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66165. /* end confdefs.h. */
  66166. #ifdef __STDC__
  66167. # include <limits.h>
  66168. @@ -7632,78 +7314,34 @@
  66169. #endif
  66170. Syntax error
  66171. _ACEOF
  66172. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  66173. -case "(($ac_try" in
  66174. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66175. - *) ac_try_echo=$ac_try;;
  66176. -esac
  66177. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66178. -$as_echo "$ac_try_echo") >&5
  66179. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  66180. - ac_status=$?
  66181. - grep -v '^ *+' conftest.er1 >conftest.err
  66182. - rm -f conftest.er1
  66183. - cat conftest.err >&5
  66184. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66185. - (exit $ac_status); } >/dev/null && {
  66186. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  66187. - test ! -s conftest.err
  66188. - }; then
  66189. - :
  66190. -else
  66191. - $as_echo "$as_me: failed program was:" >&5
  66192. -sed 's/^/| /' conftest.$ac_ext >&5
  66193. +if ac_fn_c_try_cpp "$LINENO"; then :
  66194. +else
  66195. # Broken: fails on valid input.
  66196. continue
  66197. fi
  66198. -
  66199. rm -f conftest.err conftest.$ac_ext
  66200. # OK, works on sane cases. Now check whether nonexistent headers
  66201. # can be detected and how.
  66202. - cat >conftest.$ac_ext <<_ACEOF
  66203. -/* confdefs.h. */
  66204. -_ACEOF
  66205. -cat confdefs.h >>conftest.$ac_ext
  66206. -cat >>conftest.$ac_ext <<_ACEOF
  66207. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66208. /* end confdefs.h. */
  66209. #include <ac_nonexistent.h>
  66210. _ACEOF
  66211. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  66212. -case "(($ac_try" in
  66213. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66214. - *) ac_try_echo=$ac_try;;
  66215. -esac
  66216. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66217. -$as_echo "$ac_try_echo") >&5
  66218. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  66219. - ac_status=$?
  66220. - grep -v '^ *+' conftest.er1 >conftest.err
  66221. - rm -f conftest.er1
  66222. - cat conftest.err >&5
  66223. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66224. - (exit $ac_status); } >/dev/null && {
  66225. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  66226. - test ! -s conftest.err
  66227. - }; then
  66228. +if ac_fn_c_try_cpp "$LINENO"; then :
  66229. # Broken: success on invalid input.
  66230. continue
  66231. else
  66232. - $as_echo "$as_me: failed program was:" >&5
  66233. -sed 's/^/| /' conftest.$ac_ext >&5
  66234. -
  66235. # Passes both tests.
  66236. ac_preproc_ok=:
  66237. break
  66238. fi
  66239. -
  66240. rm -f conftest.err conftest.$ac_ext
  66241. done
  66242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  66243. rm -f conftest.err conftest.$ac_ext
  66244. -if $ac_preproc_ok; then
  66245. +if $ac_preproc_ok; then :
  66246. break
  66247. fi
  66248. @@ -7715,7 +7353,7 @@
  66249. else
  66250. ac_cv_prog_CPP=$CPP
  66251. fi
  66252. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  66253. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  66254. $as_echo "$CPP" >&6; }
  66255. ac_preproc_ok=false
  66256. for ac_c_preproc_warn_flag in '' yes
  66257. @@ -7726,11 +7364,7 @@
  66258. # <limits.h> exists even on freestanding compilers.
  66259. # On the NeXT, cc -E runs the code through the compiler's parser,
  66260. # not just through cpp. "Syntax error" is here to catch this case.
  66261. - cat >conftest.$ac_ext <<_ACEOF
  66262. -/* confdefs.h. */
  66263. -_ACEOF
  66264. -cat confdefs.h >>conftest.$ac_ext
  66265. -cat >>conftest.$ac_ext <<_ACEOF
  66266. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66267. /* end confdefs.h. */
  66268. #ifdef __STDC__
  66269. # include <limits.h>
  66270. @@ -7739,87 +7373,40 @@
  66271. #endif
  66272. Syntax error
  66273. _ACEOF
  66274. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  66275. -case "(($ac_try" in
  66276. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66277. - *) ac_try_echo=$ac_try;;
  66278. -esac
  66279. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66280. -$as_echo "$ac_try_echo") >&5
  66281. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  66282. - ac_status=$?
  66283. - grep -v '^ *+' conftest.er1 >conftest.err
  66284. - rm -f conftest.er1
  66285. - cat conftest.err >&5
  66286. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66287. - (exit $ac_status); } >/dev/null && {
  66288. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  66289. - test ! -s conftest.err
  66290. - }; then
  66291. - :
  66292. -else
  66293. - $as_echo "$as_me: failed program was:" >&5
  66294. -sed 's/^/| /' conftest.$ac_ext >&5
  66295. +if ac_fn_c_try_cpp "$LINENO"; then :
  66296. +else
  66297. # Broken: fails on valid input.
  66298. continue
  66299. fi
  66300. -
  66301. rm -f conftest.err conftest.$ac_ext
  66302. # OK, works on sane cases. Now check whether nonexistent headers
  66303. # can be detected and how.
  66304. - cat >conftest.$ac_ext <<_ACEOF
  66305. -/* confdefs.h. */
  66306. -_ACEOF
  66307. -cat confdefs.h >>conftest.$ac_ext
  66308. -cat >>conftest.$ac_ext <<_ACEOF
  66309. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66310. /* end confdefs.h. */
  66311. #include <ac_nonexistent.h>
  66312. _ACEOF
  66313. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  66314. -case "(($ac_try" in
  66315. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66316. - *) ac_try_echo=$ac_try;;
  66317. -esac
  66318. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66319. -$as_echo "$ac_try_echo") >&5
  66320. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  66321. - ac_status=$?
  66322. - grep -v '^ *+' conftest.er1 >conftest.err
  66323. - rm -f conftest.er1
  66324. - cat conftest.err >&5
  66325. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66326. - (exit $ac_status); } >/dev/null && {
  66327. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  66328. - test ! -s conftest.err
  66329. - }; then
  66330. +if ac_fn_c_try_cpp "$LINENO"; then :
  66331. # Broken: success on invalid input.
  66332. continue
  66333. else
  66334. - $as_echo "$as_me: failed program was:" >&5
  66335. -sed 's/^/| /' conftest.$ac_ext >&5
  66336. -
  66337. # Passes both tests.
  66338. ac_preproc_ok=:
  66339. break
  66340. fi
  66341. -
  66342. rm -f conftest.err conftest.$ac_ext
  66343. done
  66344. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  66345. rm -f conftest.err conftest.$ac_ext
  66346. -if $ac_preproc_ok; then
  66347. - :
  66348. +if $ac_preproc_ok; then :
  66349. +
  66350. else
  66351. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  66352. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  66353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  66354. -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  66355. -See \`config.log' for more details." >&5
  66356. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  66357. -See \`config.log' for more details." >&2;}
  66358. - { (exit 1); exit 1; }; }; }
  66359. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  66360. +See \`config.log' for more details." "$LINENO" 5; }
  66361. fi
  66362. ac_ext=c
  66363. @@ -7829,16 +7416,12 @@
  66364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  66365. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  66366. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  66367. $as_echo_n "checking for ANSI C header files... " >&6; }
  66368. -if test "${ac_cv_header_stdc+set}" = set; then
  66369. +if test "${ac_cv_header_stdc+set}" = set; then :
  66370. $as_echo_n "(cached) " >&6
  66371. else
  66372. - cat >conftest.$ac_ext <<_ACEOF
  66373. -/* confdefs.h. */
  66374. -_ACEOF
  66375. -cat confdefs.h >>conftest.$ac_ext
  66376. -cat >>conftest.$ac_ext <<_ACEOF
  66377. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66378. /* end confdefs.h. */
  66379. #include <stdlib.h>
  66380. #include <stdarg.h>
  66381. @@ -7853,48 +7436,23 @@
  66382. return 0;
  66383. }
  66384. _ACEOF
  66385. -rm -f conftest.$ac_objext
  66386. -if { (ac_try="$ac_compile"
  66387. -case "(($ac_try" in
  66388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66389. - *) ac_try_echo=$ac_try;;
  66390. -esac
  66391. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66392. -$as_echo "$ac_try_echo") >&5
  66393. - (eval "$ac_compile") 2>conftest.er1
  66394. - ac_status=$?
  66395. - grep -v '^ *+' conftest.er1 >conftest.err
  66396. - rm -f conftest.er1
  66397. - cat conftest.err >&5
  66398. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66399. - (exit $ac_status); } && {
  66400. - test -z "$ac_c_werror_flag" ||
  66401. - test ! -s conftest.err
  66402. - } && test -s conftest.$ac_objext; then
  66403. +if ac_fn_c_try_compile "$LINENO"; then :
  66404. ac_cv_header_stdc=yes
  66405. else
  66406. - $as_echo "$as_me: failed program was:" >&5
  66407. -sed 's/^/| /' conftest.$ac_ext >&5
  66408. -
  66409. - ac_cv_header_stdc=no
  66410. + ac_cv_header_stdc=no
  66411. fi
  66412. -
  66413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  66414. if test $ac_cv_header_stdc = yes; then
  66415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  66416. - cat >conftest.$ac_ext <<_ACEOF
  66417. -/* confdefs.h. */
  66418. -_ACEOF
  66419. -cat confdefs.h >>conftest.$ac_ext
  66420. -cat >>conftest.$ac_ext <<_ACEOF
  66421. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66422. /* end confdefs.h. */
  66423. #include <string.h>
  66424. _ACEOF
  66425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  66426. - $EGREP "memchr" >/dev/null 2>&1; then
  66427. - :
  66428. + $EGREP "memchr" >/dev/null 2>&1; then :
  66429. +
  66430. else
  66431. ac_cv_header_stdc=no
  66432. fi
  66433. @@ -7904,18 +7462,14 @@
  66434. if test $ac_cv_header_stdc = yes; then
  66435. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  66436. - cat >conftest.$ac_ext <<_ACEOF
  66437. -/* confdefs.h. */
  66438. -_ACEOF
  66439. -cat confdefs.h >>conftest.$ac_ext
  66440. -cat >>conftest.$ac_ext <<_ACEOF
  66441. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66442. /* end confdefs.h. */
  66443. #include <stdlib.h>
  66444. _ACEOF
  66445. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  66446. - $EGREP "free" >/dev/null 2>&1; then
  66447. - :
  66448. + $EGREP "free" >/dev/null 2>&1; then :
  66449. +
  66450. else
  66451. ac_cv_header_stdc=no
  66452. fi
  66453. @@ -7925,14 +7479,10 @@
  66454. if test $ac_cv_header_stdc = yes; then
  66455. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  66456. - if test "$cross_compiling" = yes; then
  66457. + if test "$cross_compiling" = yes; then :
  66458. :
  66459. else
  66460. - cat >conftest.$ac_ext <<_ACEOF
  66461. -/* confdefs.h. */
  66462. -_ACEOF
  66463. -cat confdefs.h >>conftest.$ac_ext
  66464. -cat >>conftest.$ac_ext <<_ACEOF
  66465. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  66466. /* end confdefs.h. */
  66467. #include <ctype.h>
  66468. #include <stdlib.h>
  66469. @@ -7959,192 +7509,59 @@
  66470. return 0;
  66471. }
  66472. _ACEOF
  66473. -rm -f conftest$ac_exeext
  66474. -if { (ac_try="$ac_link"
  66475. -case "(($ac_try" in
  66476. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66477. - *) ac_try_echo=$ac_try;;
  66478. -esac
  66479. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66480. -$as_echo "$ac_try_echo") >&5
  66481. - (eval "$ac_link") 2>&5
  66482. - ac_status=$?
  66483. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66484. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  66485. - { (case "(($ac_try" in
  66486. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66487. - *) ac_try_echo=$ac_try;;
  66488. -esac
  66489. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66490. -$as_echo "$ac_try_echo") >&5
  66491. - (eval "$ac_try") 2>&5
  66492. - ac_status=$?
  66493. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66494. - (exit $ac_status); }; }; then
  66495. - :
  66496. -else
  66497. - $as_echo "$as_me: program exited with status $ac_status" >&5
  66498. -$as_echo "$as_me: failed program was:" >&5
  66499. -sed 's/^/| /' conftest.$ac_ext >&5
  66500. +if ac_fn_c_try_run "$LINENO"; then :
  66501. -( exit $ac_status )
  66502. -ac_cv_header_stdc=no
  66503. +else
  66504. + ac_cv_header_stdc=no
  66505. fi
  66506. -rm -rf conftest.dSYM
  66507. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  66508. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  66509. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  66510. fi
  66511. -
  66512. fi
  66513. fi
  66514. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  66515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  66516. $as_echo "$ac_cv_header_stdc" >&6; }
  66517. if test $ac_cv_header_stdc = yes; then
  66518. -cat >>confdefs.h <<\_ACEOF
  66519. -#define STDC_HEADERS 1
  66520. -_ACEOF
  66521. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  66522. fi
  66523. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  66524. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  66525. + inttypes.h stdint.h unistd.h
  66526. +do :
  66527. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  66528. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  66529. +"
  66530. +eval as_val=\$$as_ac_Header
  66531. + if test "x$as_val" = x""yes; then :
  66532. + cat >>confdefs.h <<_ACEOF
  66533. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  66534. +_ACEOF
  66535. +fi
  66536. +done
  66537. +for ac_header in dlfcn.h
  66538. +do :
  66539. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  66540. +"
  66541. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  66542. + cat >>confdefs.h <<_ACEOF
  66543. +#define HAVE_DLFCN_H 1
  66544. +_ACEOF
  66545. +fi
  66546. +done
  66547. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  66548. - inttypes.h stdint.h unistd.h
  66549. -do
  66550. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  66551. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  66552. -$as_echo_n "checking for $ac_header... " >&6; }
  66553. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  66554. - $as_echo_n "(cached) " >&6
  66555. -else
  66556. - cat >conftest.$ac_ext <<_ACEOF
  66557. -/* confdefs.h. */
  66558. -_ACEOF
  66559. -cat confdefs.h >>conftest.$ac_ext
  66560. -cat >>conftest.$ac_ext <<_ACEOF
  66561. -/* end confdefs.h. */
  66562. -$ac_includes_default
  66563. -
  66564. -#include <$ac_header>
  66565. -_ACEOF
  66566. -rm -f conftest.$ac_objext
  66567. -if { (ac_try="$ac_compile"
  66568. -case "(($ac_try" in
  66569. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66570. - *) ac_try_echo=$ac_try;;
  66571. -esac
  66572. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66573. -$as_echo "$ac_try_echo") >&5
  66574. - (eval "$ac_compile") 2>conftest.er1
  66575. - ac_status=$?
  66576. - grep -v '^ *+' conftest.er1 >conftest.err
  66577. - rm -f conftest.er1
  66578. - cat conftest.err >&5
  66579. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66580. - (exit $ac_status); } && {
  66581. - test -z "$ac_c_werror_flag" ||
  66582. - test ! -s conftest.err
  66583. - } && test -s conftest.$ac_objext; then
  66584. - eval "$as_ac_Header=yes"
  66585. -else
  66586. - $as_echo "$as_me: failed program was:" >&5
  66587. -sed 's/^/| /' conftest.$ac_ext >&5
  66588. -
  66589. - eval "$as_ac_Header=no"
  66590. -fi
  66591. -
  66592. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  66593. -fi
  66594. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  66595. - $as_echo "$as_val"'`
  66596. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  66597. -$as_echo "$ac_res" >&6; }
  66598. -as_val=`eval 'as_val=${'$as_ac_Header'}
  66599. - $as_echo "$as_val"'`
  66600. - if test "x$as_val" = x""yes; then
  66601. - cat >>confdefs.h <<_ACEOF
  66602. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  66603. -_ACEOF
  66604. -
  66605. -fi
  66606. -
  66607. -done
  66608. -
  66609. -
  66610. -
  66611. -for ac_header in dlfcn.h
  66612. -do
  66613. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  66614. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  66615. -$as_echo_n "checking for $ac_header... " >&6; }
  66616. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  66617. - $as_echo_n "(cached) " >&6
  66618. -else
  66619. - cat >conftest.$ac_ext <<_ACEOF
  66620. -/* confdefs.h. */
  66621. -_ACEOF
  66622. -cat confdefs.h >>conftest.$ac_ext
  66623. -cat >>conftest.$ac_ext <<_ACEOF
  66624. -/* end confdefs.h. */
  66625. -$ac_includes_default
  66626. -
  66627. -#include <$ac_header>
  66628. -_ACEOF
  66629. -rm -f conftest.$ac_objext
  66630. -if { (ac_try="$ac_compile"
  66631. -case "(($ac_try" in
  66632. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  66633. - *) ac_try_echo=$ac_try;;
  66634. -esac
  66635. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66636. -$as_echo "$ac_try_echo") >&5
  66637. - (eval "$ac_compile") 2>conftest.er1
  66638. - ac_status=$?
  66639. - grep -v '^ *+' conftest.er1 >conftest.err
  66640. - rm -f conftest.er1
  66641. - cat conftest.err >&5
  66642. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66643. - (exit $ac_status); } && {
  66644. - test -z "$ac_c_werror_flag" ||
  66645. - test ! -s conftest.err
  66646. - } && test -s conftest.$ac_objext; then
  66647. - eval "$as_ac_Header=yes"
  66648. -else
  66649. - $as_echo "$as_me: failed program was:" >&5
  66650. -sed 's/^/| /' conftest.$ac_ext >&5
  66651. -
  66652. - eval "$as_ac_Header=no"
  66653. -fi
  66654. -
  66655. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  66656. -fi
  66657. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  66658. - $as_echo "$as_val"'`
  66659. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  66660. -$as_echo "$ac_res" >&6; }
  66661. -as_val=`eval 'as_val=${'$as_ac_Header'}
  66662. - $as_echo "$as_val"'`
  66663. - if test "x$as_val" = x""yes; then
  66664. - cat >>confdefs.h <<_ACEOF
  66665. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  66666. -_ACEOF
  66667. -
  66668. -fi
  66669. -
  66670. -done
  66671. -
  66672. -
  66673. -
  66674. -# Set options
  66675. +# Set options
  66676. @@ -8153,7 +7570,7 @@
  66677. # Check whether --enable-shared was given.
  66678. -if test "${enable_shared+set}" = set; then
  66679. +if test "${enable_shared+set}" = set; then :
  66680. enableval=$enable_shared; p=${PACKAGE-default}
  66681. case $enableval in
  66682. yes) enable_shared=yes ;;
  66683. @@ -8184,7 +7601,7 @@
  66684. # Check whether --enable-static was given.
  66685. -if test "${enable_static+set}" = set; then
  66686. +if test "${enable_static+set}" = set; then :
  66687. enableval=$enable_static; p=${PACKAGE-default}
  66688. case $enableval in
  66689. yes) enable_static=yes ;;
  66690. @@ -8216,7 +7633,7 @@
  66691. # Check whether --with-pic was given.
  66692. -if test "${with_pic+set}" = set; then
  66693. +if test "${with_pic+set}" = set; then :
  66694. withval=$with_pic; pic_mode="$withval"
  66695. else
  66696. pic_mode=default
  66697. @@ -8232,7 +7649,7 @@
  66698. # Check whether --enable-fast-install was given.
  66699. -if test "${enable_fast_install+set}" = set; then
  66700. +if test "${enable_fast_install+set}" = set; then :
  66701. enableval=$enable_fast_install; p=${PACKAGE-default}
  66702. case $enableval in
  66703. yes) enable_fast_install=yes ;;
  66704. @@ -8313,9 +7730,9 @@
  66705. setopt NO_GLOB_SUBST
  66706. fi
  66707. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  66708. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  66709. $as_echo_n "checking for objdir... " >&6; }
  66710. -if test "${lt_cv_objdir+set}" = set; then
  66711. +if test "${lt_cv_objdir+set}" = set; then :
  66712. $as_echo_n "(cached) " >&6
  66713. else
  66714. rm -f .libs 2>/dev/null
  66715. @@ -8328,7 +7745,7 @@
  66716. fi
  66717. rmdir .libs 2>/dev/null
  66718. fi
  66719. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  66720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  66721. $as_echo "$lt_cv_objdir" >&6; }
  66722. objdir=$lt_cv_objdir
  66723. @@ -8421,9 +7838,9 @@
  66724. case $deplibs_check_method in
  66725. file_magic*)
  66726. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  66727. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  66728. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  66729. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  66730. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  66731. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  66732. $as_echo_n "(cached) " >&6
  66733. else
  66734. case $MAGIC_CMD in
  66735. @@ -8474,10 +7891,10 @@
  66736. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  66737. if test -n "$MAGIC_CMD"; then
  66738. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  66739. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  66740. $as_echo "$MAGIC_CMD" >&6; }
  66741. else
  66742. - { $as_echo "$as_me:$LINENO: result: no" >&5
  66743. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  66744. $as_echo "no" >&6; }
  66745. fi
  66746. @@ -8487,9 +7904,9 @@
  66747. if test -z "$lt_cv_path_MAGIC_CMD"; then
  66748. if test -n "$ac_tool_prefix"; then
  66749. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  66750. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  66751. $as_echo_n "checking for file... " >&6; }
  66752. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  66753. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  66754. $as_echo_n "(cached) " >&6
  66755. else
  66756. case $MAGIC_CMD in
  66757. @@ -8540,10 +7957,10 @@
  66758. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  66759. if test -n "$MAGIC_CMD"; then
  66760. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  66761. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  66762. $as_echo "$MAGIC_CMD" >&6; }
  66763. else
  66764. - { $as_echo "$as_me:$LINENO: result: no" >&5
  66765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  66766. $as_echo "no" >&6; }
  66767. fi
  66768. @@ -8620,9 +8037,9 @@
  66769. if test "$GCC" = yes; then
  66770. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  66771. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  66772. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  66773. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  66774. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  66775. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  66776. $as_echo_n "(cached) " >&6
  66777. else
  66778. lt_cv_prog_compiler_rtti_exceptions=no
  66779. @@ -8638,11 +8055,11 @@
  66780. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  66781. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  66782. -e 's:$: $lt_compiler_flag:'`
  66783. - (eval echo "\"\$as_me:8641: $lt_compile\"" >&5)
  66784. + (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
  66785. (eval "$lt_compile" 2>conftest.err)
  66786. ac_status=$?
  66787. cat conftest.err >&5
  66788. - echo "$as_me:8645: \$? = $ac_status" >&5
  66789. + echo "$as_me:8062: \$? = $ac_status" >&5
  66790. if (exit $ac_status) && test -s "$ac_outfile"; then
  66791. # The compiler can only warn and ignore the option if not recognized
  66792. # So say no if there are warnings other than the usual output.
  66793. @@ -8655,7 +8072,7 @@
  66794. $RM conftest*
  66795. fi
  66796. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  66797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  66798. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  66799. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  66800. @@ -8675,7 +8092,7 @@
  66801. lt_prog_compiler_pic=
  66802. lt_prog_compiler_static=
  66803. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  66804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  66805. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  66806. if test "$GCC" = yes; then
  66807. @@ -8807,7 +8224,7 @@
  66808. lt_prog_compiler_static='-non_shared'
  66809. ;;
  66810. - linux* | k*bsd*-gnu)
  66811. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  66812. case $cc_basename in
  66813. # old Intel for x86_64 which still supported -KPIC.
  66814. ecc*)
  66815. @@ -8947,7 +8364,7 @@
  66816. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  66817. ;;
  66818. esac
  66819. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  66820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  66821. $as_echo "$lt_prog_compiler_pic" >&6; }
  66822. @@ -8959,9 +8376,9 @@
  66823. # Check to make sure the PIC flag actually works.
  66824. #
  66825. if test -n "$lt_prog_compiler_pic"; then
  66826. - { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  66827. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  66828. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  66829. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  66830. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  66831. $as_echo_n "(cached) " >&6
  66832. else
  66833. lt_cv_prog_compiler_pic_works=no
  66834. @@ -8977,11 +8394,11 @@
  66835. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  66836. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  66837. -e 's:$: $lt_compiler_flag:'`
  66838. - (eval echo "\"\$as_me:8980: $lt_compile\"" >&5)
  66839. + (eval echo "\"\$as_me:8397: $lt_compile\"" >&5)
  66840. (eval "$lt_compile" 2>conftest.err)
  66841. ac_status=$?
  66842. cat conftest.err >&5
  66843. - echo "$as_me:8984: \$? = $ac_status" >&5
  66844. + echo "$as_me:8401: \$? = $ac_status" >&5
  66845. if (exit $ac_status) && test -s "$ac_outfile"; then
  66846. # The compiler can only warn and ignore the option if not recognized
  66847. # So say no if there are warnings other than the usual output.
  66848. @@ -8994,7 +8411,7 @@
  66849. $RM conftest*
  66850. fi
  66851. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  66852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  66853. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  66854. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  66855. @@ -9018,9 +8435,9 @@
  66856. # Check to make sure the static flag actually works.
  66857. #
  66858. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  66859. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  66860. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  66861. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  66862. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  66863. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  66864. $as_echo_n "(cached) " >&6
  66865. else
  66866. lt_cv_prog_compiler_static_works=no
  66867. @@ -9046,7 +8463,7 @@
  66868. LDFLAGS="$save_LDFLAGS"
  66869. fi
  66870. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  66871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  66872. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  66873. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  66874. @@ -9061,9 +8478,9 @@
  66875. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  66876. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  66877. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  66878. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  66879. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  66880. $as_echo_n "(cached) " >&6
  66881. else
  66882. lt_cv_prog_compiler_c_o=no
  66883. @@ -9082,11 +8499,11 @@
  66884. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  66885. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  66886. -e 's:$: $lt_compiler_flag:'`
  66887. - (eval echo "\"\$as_me:9085: $lt_compile\"" >&5)
  66888. + (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
  66889. (eval "$lt_compile" 2>out/conftest.err)
  66890. ac_status=$?
  66891. cat out/conftest.err >&5
  66892. - echo "$as_me:9089: \$? = $ac_status" >&5
  66893. + echo "$as_me:8506: \$? = $ac_status" >&5
  66894. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  66895. then
  66896. # The compiler can only warn and ignore the option if not recognized
  66897. @@ -9108,7 +8525,7 @@
  66898. $RM conftest*
  66899. fi
  66900. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  66901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  66902. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  66903. @@ -9116,9 +8533,9 @@
  66904. - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  66905. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  66906. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  66907. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  66908. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  66909. $as_echo_n "(cached) " >&6
  66910. else
  66911. lt_cv_prog_compiler_c_o=no
  66912. @@ -9137,11 +8554,11 @@
  66913. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  66914. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  66915. -e 's:$: $lt_compiler_flag:'`
  66916. - (eval echo "\"\$as_me:9140: $lt_compile\"" >&5)
  66917. + (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
  66918. (eval "$lt_compile" 2>out/conftest.err)
  66919. ac_status=$?
  66920. cat out/conftest.err >&5
  66921. - echo "$as_me:9144: \$? = $ac_status" >&5
  66922. + echo "$as_me:8561: \$? = $ac_status" >&5
  66923. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  66924. then
  66925. # The compiler can only warn and ignore the option if not recognized
  66926. @@ -9163,7 +8580,7 @@
  66927. $RM conftest*
  66928. fi
  66929. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  66930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  66931. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  66932. @@ -9172,7 +8589,7 @@
  66933. hard_links="nottested"
  66934. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  66935. # do not overwrite the value of need_locks provided by the user
  66936. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  66937. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  66938. $as_echo_n "checking if we can lock with hard links... " >&6; }
  66939. hard_links=yes
  66940. $RM conftest*
  66941. @@ -9180,10 +8597,10 @@
  66942. touch conftest.a
  66943. ln conftest.a conftest.b 2>&5 || hard_links=no
  66944. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  66945. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  66946. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  66947. $as_echo "$hard_links" >&6; }
  66948. if test "$hard_links" = no; then
  66949. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  66950. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  66951. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  66952. need_locks=warn
  66953. fi
  66954. @@ -9196,7 +8613,7 @@
  66955. - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  66956. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  66957. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  66958. runpath_var=
  66959. @@ -9256,6 +8673,9 @@
  66960. openbsd*)
  66961. with_gnu_ld=no
  66962. ;;
  66963. + linux* | k*bsd*-gnu)
  66964. + link_all_deplibs=no
  66965. + ;;
  66966. esac
  66967. ld_shlibs=yes
  66968. @@ -9277,6 +8697,7 @@
  66969. fi
  66970. supports_anon_versioning=no
  66971. case `$LD -v 2>&1` in
  66972. + *GNU\ gold*) supports_anon_versioning=yes ;;
  66973. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  66974. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  66975. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  66976. @@ -9368,7 +8789,7 @@
  66977. 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'
  66978. ;;
  66979. - gnu* | linux* | tpf* | k*bsd*-gnu)
  66980. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  66981. tmp_diet=no
  66982. if test "$host_os" = linux-dietlibc; then
  66983. case $cc_basename in
  66984. @@ -9438,7 +8859,7 @@
  66985. fi
  66986. ;;
  66987. - netbsd*)
  66988. + netbsd* | netbsdelf*-gnu)
  66989. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  66990. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  66991. wlarc=
  66992. @@ -9613,6 +9034,7 @@
  66993. if test "$aix_use_runtimelinking" = yes; then
  66994. shared_flag="$shared_flag "'${wl}-G'
  66995. fi
  66996. + link_all_deplibs=no
  66997. else
  66998. # not using gcc
  66999. if test "$host_cpu" = ia64; then
  67000. @@ -9638,11 +9060,7 @@
  67001. allow_undefined_flag='-berok'
  67002. # Determine the default libpath from the value encoded in an
  67003. # empty executable.
  67004. - cat >conftest.$ac_ext <<_ACEOF
  67005. -/* confdefs.h. */
  67006. -_ACEOF
  67007. -cat confdefs.h >>conftest.$ac_ext
  67008. -cat >>conftest.$ac_ext <<_ACEOF
  67009. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67010. /* end confdefs.h. */
  67011. int
  67012. @@ -9653,27 +9071,7 @@
  67013. return 0;
  67014. }
  67015. _ACEOF
  67016. -rm -f conftest.$ac_objext conftest$ac_exeext
  67017. -if { (ac_try="$ac_link"
  67018. -case "(($ac_try" in
  67019. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67020. - *) ac_try_echo=$ac_try;;
  67021. -esac
  67022. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67023. -$as_echo "$ac_try_echo") >&5
  67024. - (eval "$ac_link") 2>conftest.er1
  67025. - ac_status=$?
  67026. - grep -v '^ *+' conftest.er1 >conftest.err
  67027. - rm -f conftest.er1
  67028. - cat conftest.err >&5
  67029. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67030. - (exit $ac_status); } && {
  67031. - test -z "$ac_c_werror_flag" ||
  67032. - test ! -s conftest.err
  67033. - } && test -s conftest$ac_exeext && {
  67034. - test "$cross_compiling" = yes ||
  67035. - $as_test_x conftest$ac_exeext
  67036. - }; then
  67037. +if ac_fn_c_try_link "$LINENO"; then :
  67038. lt_aix_libpath_sed='
  67039. /Import File Strings/,/^$/ {
  67040. @@ -9687,16 +9085,9 @@
  67041. if test -z "$aix_libpath"; then
  67042. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  67043. fi
  67044. -else
  67045. - $as_echo "$as_me: failed program was:" >&5
  67046. -sed 's/^/| /' conftest.$ac_ext >&5
  67047. -
  67048. -
  67049. fi
  67050. -
  67051. -rm -rf conftest.dSYM
  67052. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67053. - conftest$ac_exeext conftest.$ac_ext
  67054. +rm -f core conftest.err conftest.$ac_objext \
  67055. + conftest$ac_exeext conftest.$ac_ext
  67056. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  67057. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  67058. @@ -9709,11 +9100,7 @@
  67059. else
  67060. # Determine the default libpath from the value encoded in an
  67061. # empty executable.
  67062. - cat >conftest.$ac_ext <<_ACEOF
  67063. -/* confdefs.h. */
  67064. -_ACEOF
  67065. -cat confdefs.h >>conftest.$ac_ext
  67066. -cat >>conftest.$ac_ext <<_ACEOF
  67067. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67068. /* end confdefs.h. */
  67069. int
  67070. @@ -9724,27 +9111,7 @@
  67071. return 0;
  67072. }
  67073. _ACEOF
  67074. -rm -f conftest.$ac_objext conftest$ac_exeext
  67075. -if { (ac_try="$ac_link"
  67076. -case "(($ac_try" in
  67077. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67078. - *) ac_try_echo=$ac_try;;
  67079. -esac
  67080. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67081. -$as_echo "$ac_try_echo") >&5
  67082. - (eval "$ac_link") 2>conftest.er1
  67083. - ac_status=$?
  67084. - grep -v '^ *+' conftest.er1 >conftest.err
  67085. - rm -f conftest.er1
  67086. - cat conftest.err >&5
  67087. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67088. - (exit $ac_status); } && {
  67089. - test -z "$ac_c_werror_flag" ||
  67090. - test ! -s conftest.err
  67091. - } && test -s conftest$ac_exeext && {
  67092. - test "$cross_compiling" = yes ||
  67093. - $as_test_x conftest$ac_exeext
  67094. - }; then
  67095. +if ac_fn_c_try_link "$LINENO"; then :
  67096. lt_aix_libpath_sed='
  67097. /Import File Strings/,/^$/ {
  67098. @@ -9758,16 +9125,9 @@
  67099. if test -z "$aix_libpath"; then
  67100. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  67101. fi
  67102. -else
  67103. - $as_echo "$as_me: failed program was:" >&5
  67104. -sed 's/^/| /' conftest.$ac_ext >&5
  67105. -
  67106. -
  67107. fi
  67108. -
  67109. -rm -rf conftest.dSYM
  67110. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67111. - conftest$ac_exeext conftest.$ac_ext
  67112. +rm -f core conftest.err conftest.$ac_objext \
  67113. + conftest$ac_exeext conftest.$ac_ext
  67114. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  67115. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  67116. @@ -9979,42 +9339,16 @@
  67117. # implicitly export all symbols.
  67118. save_LDFLAGS="$LDFLAGS"
  67119. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  67120. - cat >conftest.$ac_ext <<_ACEOF
  67121. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67122. +/* end confdefs.h. */
  67123. int foo(void) {}
  67124. _ACEOF
  67125. -rm -f conftest.$ac_objext conftest$ac_exeext
  67126. -if { (ac_try="$ac_link"
  67127. -case "(($ac_try" in
  67128. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67129. - *) ac_try_echo=$ac_try;;
  67130. -esac
  67131. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67132. -$as_echo "$ac_try_echo") >&5
  67133. - (eval "$ac_link") 2>conftest.er1
  67134. - ac_status=$?
  67135. - grep -v '^ *+' conftest.er1 >conftest.err
  67136. - rm -f conftest.er1
  67137. - cat conftest.err >&5
  67138. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67139. - (exit $ac_status); } && {
  67140. - test -z "$ac_c_werror_flag" ||
  67141. - test ! -s conftest.err
  67142. - } && test -s conftest$ac_exeext && {
  67143. - test "$cross_compiling" = yes ||
  67144. - $as_test_x conftest$ac_exeext
  67145. - }; then
  67146. +if ac_fn_c_try_link "$LINENO"; then :
  67147. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  67148. -else
  67149. - $as_echo "$as_me: failed program was:" >&5
  67150. -sed 's/^/| /' conftest.$ac_ext >&5
  67151. -
  67152. -
  67153. fi
  67154. -
  67155. -rm -rf conftest.dSYM
  67156. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67157. - conftest$ac_exeext conftest.$ac_ext
  67158. +rm -f core conftest.err conftest.$ac_objext \
  67159. + conftest$ac_exeext conftest.$ac_ext
  67160. LDFLAGS="$save_LDFLAGS"
  67161. else
  67162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  67163. @@ -10027,7 +9361,7 @@
  67164. link_all_deplibs=yes
  67165. ;;
  67166. - netbsd*)
  67167. + netbsd* | netbsdelf*-gnu)
  67168. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  67169. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  67170. else
  67171. @@ -10270,7 +9604,7 @@
  67172. fi
  67173. fi
  67174. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  67175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  67176. $as_echo "$ld_shlibs" >&6; }
  67177. test "$ld_shlibs" = no && can_build_shared=no
  67178. @@ -10307,16 +9641,16 @@
  67179. # Test whether the compiler implicitly links with -lc since on some
  67180. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  67181. # to ld, don't add -lc before -lgcc.
  67182. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  67183. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  67184. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  67185. $RM conftest*
  67186. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  67187. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  67188. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  67189. (eval $ac_compile) 2>&5
  67190. ac_status=$?
  67191. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67192. - (exit $ac_status); } 2>conftest.err; then
  67193. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  67194. + test $ac_status = 0; } 2>conftest.err; then
  67195. soname=conftest
  67196. lib=conftest
  67197. libobjs=conftest.$ac_objext
  67198. @@ -10330,11 +9664,11 @@
  67199. libname=conftest
  67200. lt_save_allow_undefined_flag=$allow_undefined_flag
  67201. allow_undefined_flag=
  67202. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  67203. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  67204. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  67205. ac_status=$?
  67206. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67207. - (exit $ac_status); }
  67208. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  67209. + test $ac_status = 0; }
  67210. then
  67211. archive_cmds_need_lc=no
  67212. else
  67213. @@ -10345,7 +9679,7 @@
  67214. cat conftest.err 1>&5
  67215. fi
  67216. $RM conftest*
  67217. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  67218. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  67219. $as_echo "$archive_cmds_need_lc" >&6; }
  67220. ;;
  67221. esac
  67222. @@ -10509,7 +9843,7 @@
  67223. - { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  67224. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  67225. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  67226. if test "$GCC" = yes; then
  67227. @@ -10917,7 +10251,7 @@
  67228. ;;
  67229. # This must be Linux ELF.
  67230. -linux* | k*bsd*-gnu)
  67231. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  67232. version_type=linux
  67233. need_lib_prefix=no
  67234. need_version=no
  67235. @@ -10931,11 +10265,7 @@
  67236. save_libdir=$libdir
  67237. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  67238. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  67239. - cat >conftest.$ac_ext <<_ACEOF
  67240. -/* confdefs.h. */
  67241. -_ACEOF
  67242. -cat confdefs.h >>conftest.$ac_ext
  67243. -cat >>conftest.$ac_ext <<_ACEOF
  67244. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67245. /* end confdefs.h. */
  67246. int
  67247. @@ -10946,41 +10276,13 @@
  67248. return 0;
  67249. }
  67250. _ACEOF
  67251. -rm -f conftest.$ac_objext conftest$ac_exeext
  67252. -if { (ac_try="$ac_link"
  67253. -case "(($ac_try" in
  67254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67255. - *) ac_try_echo=$ac_try;;
  67256. -esac
  67257. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67258. -$as_echo "$ac_try_echo") >&5
  67259. - (eval "$ac_link") 2>conftest.er1
  67260. - ac_status=$?
  67261. - grep -v '^ *+' conftest.er1 >conftest.err
  67262. - rm -f conftest.er1
  67263. - cat conftest.err >&5
  67264. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67265. - (exit $ac_status); } && {
  67266. - test -z "$ac_c_werror_flag" ||
  67267. - test ! -s conftest.err
  67268. - } && test -s conftest$ac_exeext && {
  67269. - test "$cross_compiling" = yes ||
  67270. - $as_test_x conftest$ac_exeext
  67271. - }; then
  67272. - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  67273. +if ac_fn_c_try_link "$LINENO"; then :
  67274. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  67275. shlibpath_overrides_runpath=yes
  67276. fi
  67277. -
  67278. -else
  67279. - $as_echo "$as_me: failed program was:" >&5
  67280. -sed 's/^/| /' conftest.$ac_ext >&5
  67281. -
  67282. -
  67283. fi
  67284. -
  67285. -rm -rf conftest.dSYM
  67286. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67287. - conftest$ac_exeext conftest.$ac_ext
  67288. +rm -f core conftest.err conftest.$ac_objext \
  67289. + conftest$ac_exeext conftest.$ac_ext
  67290. LDFLAGS=$save_LDFLAGS
  67291. libdir=$save_libdir
  67292. @@ -11004,6 +10306,18 @@
  67293. dynamic_linker='GNU/Linux ld.so'
  67294. ;;
  67295. +netbsdelf*-gnu)
  67296. + version_type=linux
  67297. + need_lib_prefix=no
  67298. + need_version=no
  67299. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  67300. + soname_spec='${libname}${release}${shared_ext}$major'
  67301. + shlibpath_var=LD_LIBRARY_PATH
  67302. + shlibpath_overrides_runpath=no
  67303. + hardcode_into_libs=yes
  67304. + dynamic_linker='NetBSD ld.elf_so'
  67305. + ;;
  67306. +
  67307. netbsd*)
  67308. version_type=sunos
  67309. need_lib_prefix=no
  67310. @@ -11192,7 +10506,7 @@
  67311. dynamic_linker=no
  67312. ;;
  67313. esac
  67314. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  67315. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  67316. $as_echo "$dynamic_linker" >&6; }
  67317. test "$dynamic_linker" = no && can_build_shared=no
  67318. @@ -11294,7 +10608,7 @@
  67319. - { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  67320. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  67321. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  67322. hardcode_action=
  67323. if test -n "$hardcode_libdir_flag_spec" ||
  67324. @@ -11319,7 +10633,7 @@
  67325. # directories.
  67326. hardcode_action=unsupported
  67327. fi
  67328. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  67329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  67330. $as_echo "$hardcode_action" >&6; }
  67331. if test "$hardcode_action" = relink ||
  67332. @@ -11364,18 +10678,14 @@
  67333. darwin*)
  67334. # if libdl is installed we need to link against it
  67335. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  67336. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  67337. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  67338. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  67339. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  67340. $as_echo_n "(cached) " >&6
  67341. else
  67342. ac_check_lib_save_LIBS=$LIBS
  67343. LIBS="-ldl $LIBS"
  67344. -cat >conftest.$ac_ext <<_ACEOF
  67345. -/* confdefs.h. */
  67346. -_ACEOF
  67347. -cat confdefs.h >>conftest.$ac_ext
  67348. -cat >>conftest.$ac_ext <<_ACEOF
  67349. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67350. /* end confdefs.h. */
  67351. /* Override any GCC internal prototype to avoid an error.
  67352. @@ -11393,43 +10703,18 @@
  67353. return 0;
  67354. }
  67355. _ACEOF
  67356. -rm -f conftest.$ac_objext conftest$ac_exeext
  67357. -if { (ac_try="$ac_link"
  67358. -case "(($ac_try" in
  67359. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67360. - *) ac_try_echo=$ac_try;;
  67361. -esac
  67362. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67363. -$as_echo "$ac_try_echo") >&5
  67364. - (eval "$ac_link") 2>conftest.er1
  67365. - ac_status=$?
  67366. - grep -v '^ *+' conftest.er1 >conftest.err
  67367. - rm -f conftest.er1
  67368. - cat conftest.err >&5
  67369. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67370. - (exit $ac_status); } && {
  67371. - test -z "$ac_c_werror_flag" ||
  67372. - test ! -s conftest.err
  67373. - } && test -s conftest$ac_exeext && {
  67374. - test "$cross_compiling" = yes ||
  67375. - $as_test_x conftest$ac_exeext
  67376. - }; then
  67377. +if ac_fn_c_try_link "$LINENO"; then :
  67378. ac_cv_lib_dl_dlopen=yes
  67379. else
  67380. - $as_echo "$as_me: failed program was:" >&5
  67381. -sed 's/^/| /' conftest.$ac_ext >&5
  67382. -
  67383. - ac_cv_lib_dl_dlopen=no
  67384. + ac_cv_lib_dl_dlopen=no
  67385. fi
  67386. -
  67387. -rm -rf conftest.dSYM
  67388. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67389. - conftest$ac_exeext conftest.$ac_ext
  67390. +rm -f core conftest.err conftest.$ac_objext \
  67391. + conftest$ac_exeext conftest.$ac_ext
  67392. LIBS=$ac_check_lib_save_LIBS
  67393. fi
  67394. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  67395. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  67396. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  67397. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  67398. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  67399. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  67400. else
  67401. @@ -11442,33 +10727,19 @@
  67402. ;;
  67403. *)
  67404. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  67405. -$as_echo_n "checking for shl_load... " >&6; }
  67406. -if test "${ac_cv_func_shl_load+set}" = set; then
  67407. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  67408. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  67409. + lt_cv_dlopen="shl_load"
  67410. +else
  67411. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  67412. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  67413. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  67414. $as_echo_n "(cached) " >&6
  67415. else
  67416. - cat >conftest.$ac_ext <<_ACEOF
  67417. -/* confdefs.h. */
  67418. -_ACEOF
  67419. -cat confdefs.h >>conftest.$ac_ext
  67420. -cat >>conftest.$ac_ext <<_ACEOF
  67421. + ac_check_lib_save_LIBS=$LIBS
  67422. +LIBS="-ldld $LIBS"
  67423. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67424. /* end confdefs.h. */
  67425. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  67426. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  67427. -#define shl_load innocuous_shl_load
  67428. -
  67429. -/* System header to define __stub macros and hopefully few prototypes,
  67430. - which can conflict with char shl_load (); below.
  67431. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  67432. - <limits.h> exists even on freestanding compilers. */
  67433. -
  67434. -#ifdef __STDC__
  67435. -# include <limits.h>
  67436. -#else
  67437. -# include <assert.h>
  67438. -#endif
  67439. -
  67440. -#undef shl_load
  67441. /* Override any GCC internal prototype to avoid an error.
  67442. Use char because int might match the return type of a GCC
  67443. @@ -11477,13 +10748,6 @@
  67444. extern "C"
  67445. #endif
  67446. char shl_load ();
  67447. -/* The GNU C library defines this for functions which it implements
  67448. - to always fail with ENOSYS. Some functions are actually named
  67449. - something starting with __ and the normal name is an alias. */
  67450. -#if defined __stub_shl_load || defined __stub___shl_load
  67451. -choke me
  67452. -#endif
  67453. -
  67454. int
  67455. main ()
  67456. {
  67457. @@ -11492,56 +10756,32 @@
  67458. return 0;
  67459. }
  67460. _ACEOF
  67461. -rm -f conftest.$ac_objext conftest$ac_exeext
  67462. -if { (ac_try="$ac_link"
  67463. -case "(($ac_try" in
  67464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67465. - *) ac_try_echo=$ac_try;;
  67466. -esac
  67467. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67468. -$as_echo "$ac_try_echo") >&5
  67469. - (eval "$ac_link") 2>conftest.er1
  67470. - ac_status=$?
  67471. - grep -v '^ *+' conftest.er1 >conftest.err
  67472. - rm -f conftest.er1
  67473. - cat conftest.err >&5
  67474. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67475. - (exit $ac_status); } && {
  67476. - test -z "$ac_c_werror_flag" ||
  67477. - test ! -s conftest.err
  67478. - } && test -s conftest$ac_exeext && {
  67479. - test "$cross_compiling" = yes ||
  67480. - $as_test_x conftest$ac_exeext
  67481. - }; then
  67482. - ac_cv_func_shl_load=yes
  67483. +if ac_fn_c_try_link "$LINENO"; then :
  67484. + ac_cv_lib_dld_shl_load=yes
  67485. else
  67486. - $as_echo "$as_me: failed program was:" >&5
  67487. -sed 's/^/| /' conftest.$ac_ext >&5
  67488. -
  67489. - ac_cv_func_shl_load=no
  67490. + ac_cv_lib_dld_shl_load=no
  67491. fi
  67492. -
  67493. -rm -rf conftest.dSYM
  67494. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67495. - conftest$ac_exeext conftest.$ac_ext
  67496. +rm -f core conftest.err conftest.$ac_objext \
  67497. + conftest$ac_exeext conftest.$ac_ext
  67498. +LIBS=$ac_check_lib_save_LIBS
  67499. fi
  67500. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  67501. -$as_echo "$ac_cv_func_shl_load" >&6; }
  67502. -if test "x$ac_cv_func_shl_load" = x""yes; then
  67503. - lt_cv_dlopen="shl_load"
  67504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  67505. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  67506. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  67507. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  67508. else
  67509. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  67510. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  67511. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  67512. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  67513. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  67514. + lt_cv_dlopen="dlopen"
  67515. +else
  67516. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  67517. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  67518. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  67519. $as_echo_n "(cached) " >&6
  67520. else
  67521. ac_check_lib_save_LIBS=$LIBS
  67522. -LIBS="-ldld $LIBS"
  67523. -cat >conftest.$ac_ext <<_ACEOF
  67524. -/* confdefs.h. */
  67525. -_ACEOF
  67526. -cat confdefs.h >>conftest.$ac_ext
  67527. -cat >>conftest.$ac_ext <<_ACEOF
  67528. +LIBS="-ldl $LIBS"
  67529. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67530. /* end confdefs.h. */
  67531. /* Override any GCC internal prototype to avoid an error.
  67532. @@ -11550,81 +10790,38 @@
  67533. #ifdef __cplusplus
  67534. extern "C"
  67535. #endif
  67536. -char shl_load ();
  67537. +char dlopen ();
  67538. int
  67539. main ()
  67540. {
  67541. -return shl_load ();
  67542. +return dlopen ();
  67543. ;
  67544. return 0;
  67545. }
  67546. _ACEOF
  67547. -rm -f conftest.$ac_objext conftest$ac_exeext
  67548. -if { (ac_try="$ac_link"
  67549. -case "(($ac_try" in
  67550. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67551. - *) ac_try_echo=$ac_try;;
  67552. -esac
  67553. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67554. -$as_echo "$ac_try_echo") >&5
  67555. - (eval "$ac_link") 2>conftest.er1
  67556. - ac_status=$?
  67557. - grep -v '^ *+' conftest.er1 >conftest.err
  67558. - rm -f conftest.er1
  67559. - cat conftest.err >&5
  67560. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67561. - (exit $ac_status); } && {
  67562. - test -z "$ac_c_werror_flag" ||
  67563. - test ! -s conftest.err
  67564. - } && test -s conftest$ac_exeext && {
  67565. - test "$cross_compiling" = yes ||
  67566. - $as_test_x conftest$ac_exeext
  67567. - }; then
  67568. - ac_cv_lib_dld_shl_load=yes
  67569. +if ac_fn_c_try_link "$LINENO"; then :
  67570. + ac_cv_lib_dl_dlopen=yes
  67571. else
  67572. - $as_echo "$as_me: failed program was:" >&5
  67573. -sed 's/^/| /' conftest.$ac_ext >&5
  67574. -
  67575. - ac_cv_lib_dld_shl_load=no
  67576. + ac_cv_lib_dl_dlopen=no
  67577. fi
  67578. -
  67579. -rm -rf conftest.dSYM
  67580. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67581. - conftest$ac_exeext conftest.$ac_ext
  67582. +rm -f core conftest.err conftest.$ac_objext \
  67583. + conftest$ac_exeext conftest.$ac_ext
  67584. LIBS=$ac_check_lib_save_LIBS
  67585. fi
  67586. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  67587. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  67588. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  67589. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  67590. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  67591. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  67592. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  67593. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  67594. else
  67595. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  67596. -$as_echo_n "checking for dlopen... " >&6; }
  67597. -if test "${ac_cv_func_dlopen+set}" = set; then
  67598. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  67599. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  67600. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  67601. $as_echo_n "(cached) " >&6
  67602. else
  67603. - cat >conftest.$ac_ext <<_ACEOF
  67604. -/* confdefs.h. */
  67605. -_ACEOF
  67606. -cat confdefs.h >>conftest.$ac_ext
  67607. -cat >>conftest.$ac_ext <<_ACEOF
  67608. + ac_check_lib_save_LIBS=$LIBS
  67609. +LIBS="-lsvld $LIBS"
  67610. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67611. /* end confdefs.h. */
  67612. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  67613. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  67614. -#define dlopen innocuous_dlopen
  67615. -
  67616. -/* System header to define __stub macros and hopefully few prototypes,
  67617. - which can conflict with char dlopen (); below.
  67618. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  67619. - <limits.h> exists even on freestanding compilers. */
  67620. -
  67621. -#ifdef __STDC__
  67622. -# include <limits.h>
  67623. -#else
  67624. -# include <assert.h>
  67625. -#endif
  67626. -
  67627. -#undef dlopen
  67628. /* Override any GCC internal prototype to avoid an error.
  67629. Use char because int might match the return type of a GCC
  67630. @@ -11633,13 +10830,6 @@
  67631. extern "C"
  67632. #endif
  67633. char dlopen ();
  67634. -/* The GNU C library defines this for functions which it implements
  67635. - to always fail with ENOSYS. Some functions are actually named
  67636. - something starting with __ and the normal name is an alias. */
  67637. -#if defined __stub_dlopen || defined __stub___dlopen
  67638. -choke me
  67639. -#endif
  67640. -
  67641. int
  67642. main ()
  67643. {
  67644. @@ -11648,192 +10838,28 @@
  67645. return 0;
  67646. }
  67647. _ACEOF
  67648. -rm -f conftest.$ac_objext conftest$ac_exeext
  67649. -if { (ac_try="$ac_link"
  67650. -case "(($ac_try" in
  67651. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67652. - *) ac_try_echo=$ac_try;;
  67653. -esac
  67654. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67655. -$as_echo "$ac_try_echo") >&5
  67656. - (eval "$ac_link") 2>conftest.er1
  67657. - ac_status=$?
  67658. - grep -v '^ *+' conftest.er1 >conftest.err
  67659. - rm -f conftest.er1
  67660. - cat conftest.err >&5
  67661. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67662. - (exit $ac_status); } && {
  67663. - test -z "$ac_c_werror_flag" ||
  67664. - test ! -s conftest.err
  67665. - } && test -s conftest$ac_exeext && {
  67666. - test "$cross_compiling" = yes ||
  67667. - $as_test_x conftest$ac_exeext
  67668. - }; then
  67669. - ac_cv_func_dlopen=yes
  67670. -else
  67671. - $as_echo "$as_me: failed program was:" >&5
  67672. -sed 's/^/| /' conftest.$ac_ext >&5
  67673. -
  67674. - ac_cv_func_dlopen=no
  67675. -fi
  67676. -
  67677. -rm -rf conftest.dSYM
  67678. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67679. - conftest$ac_exeext conftest.$ac_ext
  67680. -fi
  67681. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  67682. -$as_echo "$ac_cv_func_dlopen" >&6; }
  67683. -if test "x$ac_cv_func_dlopen" = x""yes; then
  67684. - lt_cv_dlopen="dlopen"
  67685. -else
  67686. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  67687. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  67688. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  67689. - $as_echo_n "(cached) " >&6
  67690. -else
  67691. - ac_check_lib_save_LIBS=$LIBS
  67692. -LIBS="-ldl $LIBS"
  67693. -cat >conftest.$ac_ext <<_ACEOF
  67694. -/* confdefs.h. */
  67695. -_ACEOF
  67696. -cat confdefs.h >>conftest.$ac_ext
  67697. -cat >>conftest.$ac_ext <<_ACEOF
  67698. -/* end confdefs.h. */
  67699. -
  67700. -/* Override any GCC internal prototype to avoid an error.
  67701. - Use char because int might match the return type of a GCC
  67702. - builtin and then its argument prototype would still apply. */
  67703. -#ifdef __cplusplus
  67704. -extern "C"
  67705. -#endif
  67706. -char dlopen ();
  67707. -int
  67708. -main ()
  67709. -{
  67710. -return dlopen ();
  67711. - ;
  67712. - return 0;
  67713. -}
  67714. -_ACEOF
  67715. -rm -f conftest.$ac_objext conftest$ac_exeext
  67716. -if { (ac_try="$ac_link"
  67717. -case "(($ac_try" in
  67718. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67719. - *) ac_try_echo=$ac_try;;
  67720. -esac
  67721. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67722. -$as_echo "$ac_try_echo") >&5
  67723. - (eval "$ac_link") 2>conftest.er1
  67724. - ac_status=$?
  67725. - grep -v '^ *+' conftest.er1 >conftest.err
  67726. - rm -f conftest.er1
  67727. - cat conftest.err >&5
  67728. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67729. - (exit $ac_status); } && {
  67730. - test -z "$ac_c_werror_flag" ||
  67731. - test ! -s conftest.err
  67732. - } && test -s conftest$ac_exeext && {
  67733. - test "$cross_compiling" = yes ||
  67734. - $as_test_x conftest$ac_exeext
  67735. - }; then
  67736. - ac_cv_lib_dl_dlopen=yes
  67737. -else
  67738. - $as_echo "$as_me: failed program was:" >&5
  67739. -sed 's/^/| /' conftest.$ac_ext >&5
  67740. -
  67741. - ac_cv_lib_dl_dlopen=no
  67742. -fi
  67743. -
  67744. -rm -rf conftest.dSYM
  67745. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67746. - conftest$ac_exeext conftest.$ac_ext
  67747. -LIBS=$ac_check_lib_save_LIBS
  67748. -fi
  67749. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  67750. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  67751. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  67752. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  67753. -else
  67754. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  67755. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  67756. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  67757. - $as_echo_n "(cached) " >&6
  67758. -else
  67759. - ac_check_lib_save_LIBS=$LIBS
  67760. -LIBS="-lsvld $LIBS"
  67761. -cat >conftest.$ac_ext <<_ACEOF
  67762. -/* confdefs.h. */
  67763. -_ACEOF
  67764. -cat confdefs.h >>conftest.$ac_ext
  67765. -cat >>conftest.$ac_ext <<_ACEOF
  67766. -/* end confdefs.h. */
  67767. -
  67768. -/* Override any GCC internal prototype to avoid an error.
  67769. - Use char because int might match the return type of a GCC
  67770. - builtin and then its argument prototype would still apply. */
  67771. -#ifdef __cplusplus
  67772. -extern "C"
  67773. -#endif
  67774. -char dlopen ();
  67775. -int
  67776. -main ()
  67777. -{
  67778. -return dlopen ();
  67779. - ;
  67780. - return 0;
  67781. -}
  67782. -_ACEOF
  67783. -rm -f conftest.$ac_objext conftest$ac_exeext
  67784. -if { (ac_try="$ac_link"
  67785. -case "(($ac_try" in
  67786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67787. - *) ac_try_echo=$ac_try;;
  67788. -esac
  67789. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67790. -$as_echo "$ac_try_echo") >&5
  67791. - (eval "$ac_link") 2>conftest.er1
  67792. - ac_status=$?
  67793. - grep -v '^ *+' conftest.er1 >conftest.err
  67794. - rm -f conftest.er1
  67795. - cat conftest.err >&5
  67796. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67797. - (exit $ac_status); } && {
  67798. - test -z "$ac_c_werror_flag" ||
  67799. - test ! -s conftest.err
  67800. - } && test -s conftest$ac_exeext && {
  67801. - test "$cross_compiling" = yes ||
  67802. - $as_test_x conftest$ac_exeext
  67803. - }; then
  67804. +if ac_fn_c_try_link "$LINENO"; then :
  67805. ac_cv_lib_svld_dlopen=yes
  67806. else
  67807. - $as_echo "$as_me: failed program was:" >&5
  67808. -sed 's/^/| /' conftest.$ac_ext >&5
  67809. -
  67810. - ac_cv_lib_svld_dlopen=no
  67811. + ac_cv_lib_svld_dlopen=no
  67812. fi
  67813. -
  67814. -rm -rf conftest.dSYM
  67815. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67816. - conftest$ac_exeext conftest.$ac_ext
  67817. +rm -f core conftest.err conftest.$ac_objext \
  67818. + conftest$ac_exeext conftest.$ac_ext
  67819. LIBS=$ac_check_lib_save_LIBS
  67820. fi
  67821. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  67822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  67823. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  67824. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  67825. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  67826. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  67827. else
  67828. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  67829. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  67830. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  67831. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  67832. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  67833. $as_echo_n "(cached) " >&6
  67834. else
  67835. ac_check_lib_save_LIBS=$LIBS
  67836. LIBS="-ldld $LIBS"
  67837. -cat >conftest.$ac_ext <<_ACEOF
  67838. -/* confdefs.h. */
  67839. -_ACEOF
  67840. -cat confdefs.h >>conftest.$ac_ext
  67841. -cat >>conftest.$ac_ext <<_ACEOF
  67842. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  67843. /* end confdefs.h. */
  67844. /* Override any GCC internal prototype to avoid an error.
  67845. @@ -11851,43 +10877,18 @@
  67846. return 0;
  67847. }
  67848. _ACEOF
  67849. -rm -f conftest.$ac_objext conftest$ac_exeext
  67850. -if { (ac_try="$ac_link"
  67851. -case "(($ac_try" in
  67852. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  67853. - *) ac_try_echo=$ac_try;;
  67854. -esac
  67855. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  67856. -$as_echo "$ac_try_echo") >&5
  67857. - (eval "$ac_link") 2>conftest.er1
  67858. - ac_status=$?
  67859. - grep -v '^ *+' conftest.er1 >conftest.err
  67860. - rm -f conftest.er1
  67861. - cat conftest.err >&5
  67862. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67863. - (exit $ac_status); } && {
  67864. - test -z "$ac_c_werror_flag" ||
  67865. - test ! -s conftest.err
  67866. - } && test -s conftest$ac_exeext && {
  67867. - test "$cross_compiling" = yes ||
  67868. - $as_test_x conftest$ac_exeext
  67869. - }; then
  67870. +if ac_fn_c_try_link "$LINENO"; then :
  67871. ac_cv_lib_dld_dld_link=yes
  67872. else
  67873. - $as_echo "$as_me: failed program was:" >&5
  67874. -sed 's/^/| /' conftest.$ac_ext >&5
  67875. -
  67876. - ac_cv_lib_dld_dld_link=no
  67877. + ac_cv_lib_dld_dld_link=no
  67878. fi
  67879. -
  67880. -rm -rf conftest.dSYM
  67881. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  67882. - conftest$ac_exeext conftest.$ac_ext
  67883. +rm -f core conftest.err conftest.$ac_objext \
  67884. + conftest$ac_exeext conftest.$ac_ext
  67885. LIBS=$ac_check_lib_save_LIBS
  67886. fi
  67887. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  67888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  67889. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  67890. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  67891. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  67892. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  67893. fi
  67894. @@ -11926,9 +10927,9 @@
  67895. save_LIBS="$LIBS"
  67896. LIBS="$lt_cv_dlopen_libs $LIBS"
  67897. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  67898. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  67899. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  67900. -if test "${lt_cv_dlopen_self+set}" = set; then
  67901. +if test "${lt_cv_dlopen_self+set}" = set; then :
  67902. $as_echo_n "(cached) " >&6
  67903. else
  67904. if test "$cross_compiling" = yes; then :
  67905. @@ -11937,7 +10938,7 @@
  67906. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  67907. lt_status=$lt_dlunknown
  67908. cat > conftest.$ac_ext <<_LT_EOF
  67909. -#line 11940 "configure"
  67910. +#line 10941 "configure"
  67911. #include "confdefs.h"
  67912. #if HAVE_DLFCN_H
  67913. @@ -11996,11 +10997,11 @@
  67914. return status;
  67915. }
  67916. _LT_EOF
  67917. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  67918. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  67919. (eval $ac_link) 2>&5
  67920. ac_status=$?
  67921. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67922. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  67923. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  67924. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  67925. (./conftest; exit; ) >&5 2>/dev/null
  67926. lt_status=$?
  67927. case x$lt_status in
  67928. @@ -12017,14 +11018,14 @@
  67929. fi
  67930. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  67931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  67932. $as_echo "$lt_cv_dlopen_self" >&6; }
  67933. if test "x$lt_cv_dlopen_self" = xyes; then
  67934. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  67935. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  67936. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  67937. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  67938. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  67939. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  67940. $as_echo_n "(cached) " >&6
  67941. else
  67942. if test "$cross_compiling" = yes; then :
  67943. @@ -12033,7 +11034,7 @@
  67944. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  67945. lt_status=$lt_dlunknown
  67946. cat > conftest.$ac_ext <<_LT_EOF
  67947. -#line 12036 "configure"
  67948. +#line 11037 "configure"
  67949. #include "confdefs.h"
  67950. #if HAVE_DLFCN_H
  67951. @@ -12092,11 +11093,11 @@
  67952. return status;
  67953. }
  67954. _LT_EOF
  67955. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  67956. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  67957. (eval $ac_link) 2>&5
  67958. ac_status=$?
  67959. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  67960. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  67961. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  67962. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  67963. (./conftest; exit; ) >&5 2>/dev/null
  67964. lt_status=$?
  67965. case x$lt_status in
  67966. @@ -12113,7 +11114,7 @@
  67967. fi
  67968. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  67969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  67970. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  67971. fi
  67972. @@ -12152,12 +11153,12 @@
  67973. striplib=
  67974. old_striplib=
  67975. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  67976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  67977. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  67978. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  67979. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  67980. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  67981. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  67982. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  67983. $as_echo "yes" >&6; }
  67984. else
  67985. # FIXME - insert some real tests, host_os isn't really good enough
  67986. @@ -12166,15 +11167,15 @@
  67987. if test -n "$STRIP" ; then
  67988. striplib="$STRIP -x"
  67989. old_striplib="$STRIP -S"
  67990. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  67991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  67992. $as_echo "yes" >&6; }
  67993. else
  67994. - { $as_echo "$as_me:$LINENO: result: no" >&5
  67995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  67996. $as_echo "no" >&6; }
  67997. fi
  67998. ;;
  67999. *)
  68000. - { $as_echo "$as_me:$LINENO: result: no" >&5
  68001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  68002. $as_echo "no" >&6; }
  68003. ;;
  68004. esac
  68005. @@ -12192,12 +11193,12 @@
  68006. # Report which library types will actually be built
  68007. - { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  68008. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  68009. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  68010. - { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  68011. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  68012. $as_echo "$can_build_shared" >&6; }
  68013. - { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  68014. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  68015. $as_echo_n "checking whether to build shared libraries... " >&6; }
  68016. test "$can_build_shared" = "no" && enable_shared=no
  68017. @@ -12218,14 +11219,14 @@
  68018. fi
  68019. ;;
  68020. esac
  68021. - { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  68022. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  68023. $as_echo "$enable_shared" >&6; }
  68024. - { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  68025. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  68026. $as_echo_n "checking whether to build static libraries... " >&6; }
  68027. # Make sure either enable_shared or enable_static is yes.
  68028. test "$enable_shared" = yes || enable_static=yes
  68029. - { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  68030. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  68031. $as_echo "$enable_static" >&6; }
  68032. @@ -12261,84 +11262,12 @@
  68033. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  68034. -$as_echo_n "checking host system type... " >&6; }
  68035. -if test "${ac_cv_host+set}" = set; then
  68036. - $as_echo_n "(cached) " >&6
  68037. -else
  68038. - if test "x$host_alias" = x; then
  68039. - ac_cv_host=$ac_cv_build
  68040. -else
  68041. - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  68042. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  68043. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  68044. - { (exit 1); exit 1; }; }
  68045. -fi
  68046. -
  68047. -fi
  68048. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  68049. -$as_echo "$ac_cv_host" >&6; }
  68050. -case $ac_cv_host in
  68051. -*-*-*) ;;
  68052. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  68053. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  68054. - { (exit 1); exit 1; }; };;
  68055. -esac
  68056. -host=$ac_cv_host
  68057. -ac_save_IFS=$IFS; IFS='-'
  68058. -set x $ac_cv_host
  68059. -shift
  68060. -host_cpu=$1
  68061. -host_vendor=$2
  68062. -shift; shift
  68063. -# Remember, the first character of IFS is used to create $*,
  68064. -# except with old shells:
  68065. -host_os=$*
  68066. -IFS=$ac_save_IFS
  68067. -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  68068. -
  68069. case $host_os in
  68070. *cygwin* ) CYGWIN=yes;;
  68071. * ) CYGWIN=no;;
  68072. esac
  68073. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  68074. -$as_echo_n "checking host system type... " >&6; }
  68075. -if test "${ac_cv_host+set}" = set; then
  68076. - $as_echo_n "(cached) " >&6
  68077. -else
  68078. - if test "x$host_alias" = x; then
  68079. - ac_cv_host=$ac_cv_build
  68080. -else
  68081. - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  68082. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  68083. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  68084. - { (exit 1); exit 1; }; }
  68085. -fi
  68086. -
  68087. -fi
  68088. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  68089. -$as_echo "$ac_cv_host" >&6; }
  68090. -case $ac_cv_host in
  68091. -*-*-*) ;;
  68092. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  68093. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  68094. - { (exit 1); exit 1; }; };;
  68095. -esac
  68096. -host=$ac_cv_host
  68097. -ac_save_IFS=$IFS; IFS='-'
  68098. -set x $ac_cv_host
  68099. -shift
  68100. -host_cpu=$1
  68101. -host_vendor=$2
  68102. -shift; shift
  68103. -# Remember, the first character of IFS is used to create $*,
  68104. -# except with old shells:
  68105. -host_os=$*
  68106. -IFS=$ac_save_IFS
  68107. -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  68108. -
  68109. case $host_os in
  68110. *mingw32* ) MINGW32=yes;;
  68111. @@ -12355,18 +11284,14 @@
  68112. for termlib in ncurses curses termcap terminfo termlib ; do
  68113. as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgoto" | $as_tr_sh`
  68114. -{ $as_echo "$as_me:$LINENO: checking for tgoto in -l${termlib}" >&5
  68115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l${termlib}" >&5
  68116. $as_echo_n "checking for tgoto in -l${termlib}... " >&6; }
  68117. -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  68118. +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  68119. $as_echo_n "(cached) " >&6
  68120. else
  68121. ac_check_lib_save_LIBS=$LIBS
  68122. LIBS="-l${termlib} $LIBS"
  68123. -cat >conftest.$ac_ext <<_ACEOF
  68124. -/* confdefs.h. */
  68125. -_ACEOF
  68126. -cat confdefs.h >>conftest.$ac_ext
  68127. -cat >>conftest.$ac_ext <<_ACEOF
  68128. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  68129. /* end confdefs.h. */
  68130. /* Override any GCC internal prototype to avoid an error.
  68131. @@ -12384,65 +11309,33 @@
  68132. return 0;
  68133. }
  68134. _ACEOF
  68135. -rm -f conftest.$ac_objext conftest$ac_exeext
  68136. -if { (ac_try="$ac_link"
  68137. -case "(($ac_try" in
  68138. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68139. - *) ac_try_echo=$ac_try;;
  68140. -esac
  68141. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68142. -$as_echo "$ac_try_echo") >&5
  68143. - (eval "$ac_link") 2>conftest.er1
  68144. - ac_status=$?
  68145. - grep -v '^ *+' conftest.er1 >conftest.err
  68146. - rm -f conftest.er1
  68147. - cat conftest.err >&5
  68148. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68149. - (exit $ac_status); } && {
  68150. - test -z "$ac_c_werror_flag" ||
  68151. - test ! -s conftest.err
  68152. - } && test -s conftest$ac_exeext && {
  68153. - test "$cross_compiling" = yes ||
  68154. - $as_test_x conftest$ac_exeext
  68155. - }; then
  68156. +if ac_fn_c_try_link "$LINENO"; then :
  68157. eval "$as_ac_Lib=yes"
  68158. else
  68159. - $as_echo "$as_me: failed program was:" >&5
  68160. -sed 's/^/| /' conftest.$ac_ext >&5
  68161. -
  68162. - eval "$as_ac_Lib=no"
  68163. + eval "$as_ac_Lib=no"
  68164. fi
  68165. -
  68166. -rm -rf conftest.dSYM
  68167. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68168. - conftest$ac_exeext conftest.$ac_ext
  68169. +rm -f core conftest.err conftest.$ac_objext \
  68170. + conftest$ac_exeext conftest.$ac_ext
  68171. LIBS=$ac_check_lib_save_LIBS
  68172. fi
  68173. -ac_res=`eval 'as_val=${'$as_ac_Lib'}
  68174. - $as_echo "$as_val"'`
  68175. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  68176. +eval ac_res=\$$as_ac_Lib
  68177. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  68178. $as_echo "$ac_res" >&6; }
  68179. -as_val=`eval 'as_val=${'$as_ac_Lib'}
  68180. - $as_echo "$as_val"'`
  68181. - if test "x$as_val" = x""yes; then
  68182. +eval as_val=\$$as_ac_Lib
  68183. + if test "x$as_val" = x""yes; then :
  68184. LIBS="-l${termlib} $LIBS"; break
  68185. fi
  68186. done
  68187. -
  68188. -{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
  68189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  68190. $as_echo_n "checking for readline in -lreadline... " >&6; }
  68191. -if test "${ac_cv_lib_readline_readline+set}" = set; then
  68192. +if test "${ac_cv_lib_readline_readline+set}" = set; then :
  68193. $as_echo_n "(cached) " >&6
  68194. else
  68195. ac_check_lib_save_LIBS=$LIBS
  68196. LIBS="-lreadline $LIBS"
  68197. -cat >conftest.$ac_ext <<_ACEOF
  68198. -/* confdefs.h. */
  68199. -_ACEOF
  68200. -cat confdefs.h >>conftest.$ac_ext
  68201. -cat >>conftest.$ac_ext <<_ACEOF
  68202. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  68203. /* end confdefs.h. */
  68204. /* Override any GCC internal prototype to avoid an error.
  68205. @@ -12460,43 +11353,18 @@
  68206. return 0;
  68207. }
  68208. _ACEOF
  68209. -rm -f conftest.$ac_objext conftest$ac_exeext
  68210. -if { (ac_try="$ac_link"
  68211. -case "(($ac_try" in
  68212. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68213. - *) ac_try_echo=$ac_try;;
  68214. -esac
  68215. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68216. -$as_echo "$ac_try_echo") >&5
  68217. - (eval "$ac_link") 2>conftest.er1
  68218. - ac_status=$?
  68219. - grep -v '^ *+' conftest.er1 >conftest.err
  68220. - rm -f conftest.er1
  68221. - cat conftest.err >&5
  68222. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68223. - (exit $ac_status); } && {
  68224. - test -z "$ac_c_werror_flag" ||
  68225. - test ! -s conftest.err
  68226. - } && test -s conftest$ac_exeext && {
  68227. - test "$cross_compiling" = yes ||
  68228. - $as_test_x conftest$ac_exeext
  68229. - }; then
  68230. +if ac_fn_c_try_link "$LINENO"; then :
  68231. ac_cv_lib_readline_readline=yes
  68232. else
  68233. - $as_echo "$as_me: failed program was:" >&5
  68234. -sed 's/^/| /' conftest.$ac_ext >&5
  68235. -
  68236. - ac_cv_lib_readline_readline=no
  68237. + ac_cv_lib_readline_readline=no
  68238. fi
  68239. -
  68240. -rm -rf conftest.dSYM
  68241. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68242. - conftest$ac_exeext conftest.$ac_ext
  68243. +rm -f core conftest.err conftest.$ac_objext \
  68244. + conftest$ac_exeext conftest.$ac_ext
  68245. LIBS=$ac_check_lib_save_LIBS
  68246. fi
  68247. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
  68248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  68249. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  68250. -if test "x$ac_cv_lib_readline_readline" = x""yes; then
  68251. +if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  68252. cat >>confdefs.h <<_ACEOF
  68253. #define HAVE_LIBREADLINE 1
  68254. _ACEOF
  68255. @@ -12506,106 +11374,16 @@
  68256. fi
  68257. if test $ac_cv_lib_readline_readline = no; then
  68258. - { $as_echo "$as_me:$LINENO: WARNING: libreadline was not found on your system." >&5
  68259. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libreadline was not found on your system." >&5
  68260. $as_echo "$as_me: WARNING: libreadline was not found on your system." >&2;}
  68261. fi
  68262. -
  68263. -
  68264. -
  68265. for ac_func in siginterrupt rl_clear_signals rl_cleanup_after_signal
  68266. -do
  68267. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  68268. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  68269. -$as_echo_n "checking for $ac_func... " >&6; }
  68270. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  68271. - $as_echo_n "(cached) " >&6
  68272. -else
  68273. - cat >conftest.$ac_ext <<_ACEOF
  68274. -/* confdefs.h. */
  68275. -_ACEOF
  68276. -cat confdefs.h >>conftest.$ac_ext
  68277. -cat >>conftest.$ac_ext <<_ACEOF
  68278. -/* end confdefs.h. */
  68279. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  68280. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  68281. -#define $ac_func innocuous_$ac_func
  68282. -
  68283. -/* System header to define __stub macros and hopefully few prototypes,
  68284. - which can conflict with char $ac_func (); below.
  68285. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  68286. - <limits.h> exists even on freestanding compilers. */
  68287. -
  68288. -#ifdef __STDC__
  68289. -# include <limits.h>
  68290. -#else
  68291. -# include <assert.h>
  68292. -#endif
  68293. -
  68294. -#undef $ac_func
  68295. -
  68296. -/* Override any GCC internal prototype to avoid an error.
  68297. - Use char because int might match the return type of a GCC
  68298. - builtin and then its argument prototype would still apply. */
  68299. -#ifdef __cplusplus
  68300. -extern "C"
  68301. -#endif
  68302. -char $ac_func ();
  68303. -/* The GNU C library defines this for functions which it implements
  68304. - to always fail with ENOSYS. Some functions are actually named
  68305. - something starting with __ and the normal name is an alias. */
  68306. -#if defined __stub_$ac_func || defined __stub___$ac_func
  68307. -choke me
  68308. -#endif
  68309. -
  68310. -int
  68311. -main ()
  68312. -{
  68313. -return $ac_func ();
  68314. - ;
  68315. - return 0;
  68316. -}
  68317. -_ACEOF
  68318. -rm -f conftest.$ac_objext conftest$ac_exeext
  68319. -if { (ac_try="$ac_link"
  68320. -case "(($ac_try" in
  68321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68322. - *) ac_try_echo=$ac_try;;
  68323. -esac
  68324. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68325. -$as_echo "$ac_try_echo") >&5
  68326. - (eval "$ac_link") 2>conftest.er1
  68327. - ac_status=$?
  68328. - grep -v '^ *+' conftest.er1 >conftest.err
  68329. - rm -f conftest.er1
  68330. - cat conftest.err >&5
  68331. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68332. - (exit $ac_status); } && {
  68333. - test -z "$ac_c_werror_flag" ||
  68334. - test ! -s conftest.err
  68335. - } && test -s conftest$ac_exeext && {
  68336. - test "$cross_compiling" = yes ||
  68337. - $as_test_x conftest$ac_exeext
  68338. - }; then
  68339. - eval "$as_ac_var=yes"
  68340. -else
  68341. - $as_echo "$as_me: failed program was:" >&5
  68342. -sed 's/^/| /' conftest.$ac_ext >&5
  68343. -
  68344. - eval "$as_ac_var=no"
  68345. -fi
  68346. -
  68347. -rm -rf conftest.dSYM
  68348. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68349. - conftest$ac_exeext conftest.$ac_ext
  68350. -fi
  68351. -ac_res=`eval 'as_val=${'$as_ac_var'}
  68352. - $as_echo "$as_val"'`
  68353. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  68354. -$as_echo "$ac_res" >&6; }
  68355. -as_val=`eval 'as_val=${'$as_ac_var'}
  68356. - $as_echo "$as_val"'`
  68357. - if test "x$as_val" = x""yes; then
  68358. +do :
  68359. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  68360. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  68361. +eval as_val=\$$as_ac_var
  68362. + if test "x$as_val" = x""yes; then :
  68363. cat >>confdefs.h <<_ACEOF
  68364. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  68365. _ACEOF
  68366. @@ -12614,379 +11392,78 @@
  68367. done
  68368. -
  68369. for ac_func in rl_filename_completion_function
  68370. -do
  68371. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  68372. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  68373. -$as_echo_n "checking for $ac_func... " >&6; }
  68374. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  68375. - $as_echo_n "(cached) " >&6
  68376. -else
  68377. - cat >conftest.$ac_ext <<_ACEOF
  68378. -/* confdefs.h. */
  68379. -_ACEOF
  68380. -cat confdefs.h >>conftest.$ac_ext
  68381. -cat >>conftest.$ac_ext <<_ACEOF
  68382. -/* end confdefs.h. */
  68383. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  68384. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  68385. -#define $ac_func innocuous_$ac_func
  68386. -
  68387. -/* System header to define __stub macros and hopefully few prototypes,
  68388. - which can conflict with char $ac_func (); below.
  68389. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  68390. - <limits.h> exists even on freestanding compilers. */
  68391. -
  68392. -#ifdef __STDC__
  68393. -# include <limits.h>
  68394. -#else
  68395. -# include <assert.h>
  68396. -#endif
  68397. -
  68398. -#undef $ac_func
  68399. -
  68400. -/* Override any GCC internal prototype to avoid an error.
  68401. - Use char because int might match the return type of a GCC
  68402. - builtin and then its argument prototype would still apply. */
  68403. -#ifdef __cplusplus
  68404. -extern "C"
  68405. -#endif
  68406. -char $ac_func ();
  68407. -/* The GNU C library defines this for functions which it implements
  68408. - to always fail with ENOSYS. Some functions are actually named
  68409. - something starting with __ and the normal name is an alias. */
  68410. -#if defined __stub_$ac_func || defined __stub___$ac_func
  68411. -choke me
  68412. -#endif
  68413. -
  68414. -int
  68415. -main ()
  68416. -{
  68417. -return $ac_func ();
  68418. - ;
  68419. - return 0;
  68420. -}
  68421. -_ACEOF
  68422. -rm -f conftest.$ac_objext conftest$ac_exeext
  68423. -if { (ac_try="$ac_link"
  68424. -case "(($ac_try" in
  68425. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68426. - *) ac_try_echo=$ac_try;;
  68427. -esac
  68428. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68429. -$as_echo "$ac_try_echo") >&5
  68430. - (eval "$ac_link") 2>conftest.er1
  68431. - ac_status=$?
  68432. - grep -v '^ *+' conftest.er1 >conftest.err
  68433. - rm -f conftest.er1
  68434. - cat conftest.err >&5
  68435. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68436. - (exit $ac_status); } && {
  68437. - test -z "$ac_c_werror_flag" ||
  68438. - test ! -s conftest.err
  68439. - } && test -s conftest$ac_exeext && {
  68440. - test "$cross_compiling" = yes ||
  68441. - $as_test_x conftest$ac_exeext
  68442. - }; then
  68443. - eval "$as_ac_var=yes"
  68444. -else
  68445. - $as_echo "$as_me: failed program was:" >&5
  68446. -sed 's/^/| /' conftest.$ac_ext >&5
  68447. -
  68448. - eval "$as_ac_var=no"
  68449. -fi
  68450. -
  68451. -rm -rf conftest.dSYM
  68452. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68453. - conftest$ac_exeext conftest.$ac_ext
  68454. -fi
  68455. -ac_res=`eval 'as_val=${'$as_ac_var'}
  68456. - $as_echo "$as_val"'`
  68457. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  68458. -$as_echo "$ac_res" >&6; }
  68459. -as_val=`eval 'as_val=${'$as_ac_var'}
  68460. - $as_echo "$as_val"'`
  68461. - if test "x$as_val" = x""yes; then
  68462. +do :
  68463. + ac_fn_c_check_func "$LINENO" "rl_filename_completion_function" "ac_cv_func_rl_filename_completion_function"
  68464. +if test "x$ac_cv_func_rl_filename_completion_function" = x""yes; then :
  68465. cat >>confdefs.h <<_ACEOF
  68466. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  68467. +#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1
  68468. _ACEOF
  68469. fi
  68470. done
  68471. -
  68472. for ac_func in rl_get_keymap
  68473. -do
  68474. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  68475. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  68476. -$as_echo_n "checking for $ac_func... " >&6; }
  68477. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  68478. - $as_echo_n "(cached) " >&6
  68479. -else
  68480. - cat >conftest.$ac_ext <<_ACEOF
  68481. -/* confdefs.h. */
  68482. -_ACEOF
  68483. -cat confdefs.h >>conftest.$ac_ext
  68484. -cat >>conftest.$ac_ext <<_ACEOF
  68485. -/* end confdefs.h. */
  68486. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  68487. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  68488. -#define $ac_func innocuous_$ac_func
  68489. -
  68490. -/* System header to define __stub macros and hopefully few prototypes,
  68491. - which can conflict with char $ac_func (); below.
  68492. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  68493. - <limits.h> exists even on freestanding compilers. */
  68494. -
  68495. -#ifdef __STDC__
  68496. -# include <limits.h>
  68497. -#else
  68498. -# include <assert.h>
  68499. -#endif
  68500. -
  68501. -#undef $ac_func
  68502. -
  68503. -/* Override any GCC internal prototype to avoid an error.
  68504. - Use char because int might match the return type of a GCC
  68505. - builtin and then its argument prototype would still apply. */
  68506. -#ifdef __cplusplus
  68507. -extern "C"
  68508. -#endif
  68509. -char $ac_func ();
  68510. -/* The GNU C library defines this for functions which it implements
  68511. - to always fail with ENOSYS. Some functions are actually named
  68512. - something starting with __ and the normal name is an alias. */
  68513. -#if defined __stub_$ac_func || defined __stub___$ac_func
  68514. -choke me
  68515. -#endif
  68516. -
  68517. -int
  68518. -main ()
  68519. -{
  68520. -return $ac_func ();
  68521. - ;
  68522. - return 0;
  68523. -}
  68524. -_ACEOF
  68525. -rm -f conftest.$ac_objext conftest$ac_exeext
  68526. -if { (ac_try="$ac_link"
  68527. -case "(($ac_try" in
  68528. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68529. - *) ac_try_echo=$ac_try;;
  68530. -esac
  68531. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68532. -$as_echo "$ac_try_echo") >&5
  68533. - (eval "$ac_link") 2>conftest.er1
  68534. - ac_status=$?
  68535. - grep -v '^ *+' conftest.er1 >conftest.err
  68536. - rm -f conftest.er1
  68537. - cat conftest.err >&5
  68538. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68539. - (exit $ac_status); } && {
  68540. - test -z "$ac_c_werror_flag" ||
  68541. - test ! -s conftest.err
  68542. - } && test -s conftest$ac_exeext && {
  68543. - test "$cross_compiling" = yes ||
  68544. - $as_test_x conftest$ac_exeext
  68545. - }; then
  68546. - eval "$as_ac_var=yes"
  68547. -else
  68548. - $as_echo "$as_me: failed program was:" >&5
  68549. -sed 's/^/| /' conftest.$ac_ext >&5
  68550. -
  68551. - eval "$as_ac_var=no"
  68552. -fi
  68553. -
  68554. -rm -rf conftest.dSYM
  68555. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68556. - conftest$ac_exeext conftest.$ac_ext
  68557. -fi
  68558. -ac_res=`eval 'as_val=${'$as_ac_var'}
  68559. - $as_echo "$as_val"'`
  68560. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  68561. -$as_echo "$ac_res" >&6; }
  68562. -as_val=`eval 'as_val=${'$as_ac_var'}
  68563. - $as_echo "$as_val"'`
  68564. - if test "x$as_val" = x""yes; then
  68565. +do :
  68566. + ac_fn_c_check_func "$LINENO" "rl_get_keymap" "ac_cv_func_rl_get_keymap"
  68567. +if test "x$ac_cv_func_rl_get_keymap" = x""yes; then :
  68568. cat >>confdefs.h <<_ACEOF
  68569. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  68570. +#define HAVE_RL_GET_KEYMAP 1
  68571. _ACEOF
  68572. fi
  68573. done
  68574. -{ $as_echo "$as_me:$LINENO: checking for rl_getc_function pointer in readline" >&5
  68575. -$as_echo_n "checking for rl_getc_function pointer in readline... " >&6; }
  68576. -if test "${ac_cv_var_rl_getc_function+set}" = set; then
  68577. - $as_echo_n "(cached) " >&6
  68578. -else
  68579. - cat >conftest.$ac_ext <<_ACEOF
  68580. -/* confdefs.h. */
  68581. -_ACEOF
  68582. -cat confdefs.h >>conftest.$ac_ext
  68583. -cat >>conftest.$ac_ext <<_ACEOF
  68584. -/* end confdefs.h. */
  68585. -
  68586. -#include <stdio.h>
  68587. -#include <readline/readline.h>
  68588. -int
  68589. -main ()
  68590. -{
  68591. -printf ("%ld", (long) rl_getc_function)
  68592. - ;
  68593. - return 0;
  68594. -}
  68595. -_ACEOF
  68596. -rm -f conftest.$ac_objext conftest$ac_exeext
  68597. -if { (ac_try="$ac_link"
  68598. -case "(($ac_try" in
  68599. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68600. - *) ac_try_echo=$ac_try;;
  68601. -esac
  68602. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68603. -$as_echo "$ac_try_echo") >&5
  68604. - (eval "$ac_link") 2>conftest.er1
  68605. - ac_status=$?
  68606. - grep -v '^ *+' conftest.er1 >conftest.err
  68607. - rm -f conftest.er1
  68608. - cat conftest.err >&5
  68609. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68610. - (exit $ac_status); } && {
  68611. - test -z "$ac_c_werror_flag" ||
  68612. - test ! -s conftest.err
  68613. - } && test -s conftest$ac_exeext && {
  68614. - test "$cross_compiling" = yes ||
  68615. - $as_test_x conftest$ac_exeext
  68616. - }; then
  68617. - ac_cv_var_rl_getc_function=yes
  68618. -else
  68619. - $as_echo "$as_me: failed program was:" >&5
  68620. -sed 's/^/| /' conftest.$ac_ext >&5
  68621. -
  68622. - ac_cv_var_rl_getc_function=no
  68623. -fi
  68624. -
  68625. -rm -rf conftest.dSYM
  68626. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68627. - conftest$ac_exeext conftest.$ac_ext
  68628. -fi
  68629. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_rl_getc_function" >&5
  68630. -$as_echo "$ac_cv_var_rl_getc_function" >&6; }
  68631. -if test "${ac_cv_var_rl_getc_function}" = "yes"; then
  68632. -
  68633. -cat >>confdefs.h <<\_ACEOF
  68634. -#define HAVE_RL_GETC_FUNCTION 1
  68635. -_ACEOF
  68636. -
  68637. -fi
  68638. -
  68639. -if test $ac_cv_lib_readline_readline = yes \
  68640. - -a $ac_cv_var_rl_getc_function = no; then
  68641. - { $as_echo "$as_me:$LINENO: WARNING: *** libreadline is too old on your system." >&5
  68642. -$as_echo "$as_me: WARNING: *** libreadline is too old on your system." >&2;}
  68643. - { $as_echo "$as_me:$LINENO: WARNING: *** You need readline version 2.1 or later." >&5
  68644. -$as_echo "$as_me: WARNING: *** You need readline version 2.1 or later." >&2;}
  68645. -fi
  68646. -
  68647. -
  68648. -for ac_func in strdup
  68649. -do
  68650. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  68651. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  68652. -$as_echo_n "checking for $ac_func... " >&6; }
  68653. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  68654. - $as_echo_n "(cached) " >&6
  68655. -else
  68656. - cat >conftest.$ac_ext <<_ACEOF
  68657. -/* confdefs.h. */
  68658. -_ACEOF
  68659. -cat confdefs.h >>conftest.$ac_ext
  68660. -cat >>conftest.$ac_ext <<_ACEOF
  68661. -/* end confdefs.h. */
  68662. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  68663. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  68664. -#define $ac_func innocuous_$ac_func
  68665. -
  68666. -/* System header to define __stub macros and hopefully few prototypes,
  68667. - which can conflict with char $ac_func (); below.
  68668. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  68669. - <limits.h> exists even on freestanding compilers. */
  68670. -
  68671. -#ifdef __STDC__
  68672. -# include <limits.h>
  68673. -#else
  68674. -# include <assert.h>
  68675. -#endif
  68676. -
  68677. -#undef $ac_func
  68678. -
  68679. -/* Override any GCC internal prototype to avoid an error.
  68680. - Use char because int might match the return type of a GCC
  68681. - builtin and then its argument prototype would still apply. */
  68682. -#ifdef __cplusplus
  68683. -extern "C"
  68684. -#endif
  68685. -char $ac_func ();
  68686. -/* The GNU C library defines this for functions which it implements
  68687. - to always fail with ENOSYS. Some functions are actually named
  68688. - something starting with __ and the normal name is an alias. */
  68689. -#if defined __stub_$ac_func || defined __stub___$ac_func
  68690. -choke me
  68691. -#endif
  68692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_getc_function pointer in readline" >&5
  68693. +$as_echo_n "checking for rl_getc_function pointer in readline... " >&6; }
  68694. +if test "${ac_cv_var_rl_getc_function+set}" = set; then :
  68695. + $as_echo_n "(cached) " >&6
  68696. +else
  68697. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  68698. +/* end confdefs.h. */
  68699. +#include <stdio.h>
  68700. +#include <readline/readline.h>
  68701. int
  68702. main ()
  68703. {
  68704. -return $ac_func ();
  68705. +printf ("%ld", (long) rl_getc_function)
  68706. ;
  68707. return 0;
  68708. }
  68709. _ACEOF
  68710. -rm -f conftest.$ac_objext conftest$ac_exeext
  68711. -if { (ac_try="$ac_link"
  68712. -case "(($ac_try" in
  68713. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  68714. - *) ac_try_echo=$ac_try;;
  68715. -esac
  68716. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  68717. -$as_echo "$ac_try_echo") >&5
  68718. - (eval "$ac_link") 2>conftest.er1
  68719. - ac_status=$?
  68720. - grep -v '^ *+' conftest.er1 >conftest.err
  68721. - rm -f conftest.er1
  68722. - cat conftest.err >&5
  68723. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  68724. - (exit $ac_status); } && {
  68725. - test -z "$ac_c_werror_flag" ||
  68726. - test ! -s conftest.err
  68727. - } && test -s conftest$ac_exeext && {
  68728. - test "$cross_compiling" = yes ||
  68729. - $as_test_x conftest$ac_exeext
  68730. - }; then
  68731. - eval "$as_ac_var=yes"
  68732. +if ac_fn_c_try_link "$LINENO"; then :
  68733. + ac_cv_var_rl_getc_function=yes
  68734. else
  68735. - $as_echo "$as_me: failed program was:" >&5
  68736. -sed 's/^/| /' conftest.$ac_ext >&5
  68737. + ac_cv_var_rl_getc_function=no
  68738. +fi
  68739. +rm -f core conftest.err conftest.$ac_objext \
  68740. + conftest$ac_exeext conftest.$ac_ext
  68741. +fi
  68742. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rl_getc_function" >&5
  68743. +$as_echo "$ac_cv_var_rl_getc_function" >&6; }
  68744. +if test "${ac_cv_var_rl_getc_function}" = "yes"; then
  68745. +
  68746. +$as_echo "#define HAVE_RL_GETC_FUNCTION 1" >>confdefs.h
  68747. - eval "$as_ac_var=no"
  68748. fi
  68749. -rm -rf conftest.dSYM
  68750. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  68751. - conftest$ac_exeext conftest.$ac_ext
  68752. +if test $ac_cv_lib_readline_readline = yes \
  68753. + -a $ac_cv_var_rl_getc_function = no; then
  68754. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libreadline is too old on your system." >&5
  68755. +$as_echo "$as_me: WARNING: *** libreadline is too old on your system." >&2;}
  68756. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You need readline version 2.1 or later." >&5
  68757. +$as_echo "$as_me: WARNING: *** You need readline version 2.1 or later." >&2;}
  68758. fi
  68759. -ac_res=`eval 'as_val=${'$as_ac_var'}
  68760. - $as_echo "$as_val"'`
  68761. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  68762. -$as_echo "$ac_res" >&6; }
  68763. -as_val=`eval 'as_val=${'$as_ac_var'}
  68764. - $as_echo "$as_val"'`
  68765. - if test "x$as_val" = x""yes; then
  68766. +
  68767. +for ac_func in strdup
  68768. +do :
  68769. + ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  68770. +if test "x$ac_cv_func_strdup" = x""yes; then :
  68771. cat >>confdefs.h <<_ACEOF
  68772. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  68773. +#define HAVE_STRDUP 1
  68774. _ACEOF
  68775. fi
  68776. @@ -13031,13 +11508,13 @@
  68777. case $ac_val in #(
  68778. *${as_nl}*)
  68779. case $ac_var in #(
  68780. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  68781. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  68782. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  68783. esac
  68784. case $ac_var in #(
  68785. _ | IFS | as_nl) ;; #(
  68786. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  68787. - *) $as_unset $ac_var ;;
  68788. + *) { eval $ac_var=; unset $ac_var;} ;;
  68789. esac ;;
  68790. esac
  68791. done
  68792. @@ -13045,8 +11522,8 @@
  68793. (set) 2>&1 |
  68794. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  68795. *${as_nl}ac_space=\ *)
  68796. - # `set' does not quote correctly, so add quotes (double-quote
  68797. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  68798. + # `set' does not quote correctly, so add quotes: double-quote
  68799. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  68800. sed -n \
  68801. "s/'/'\\\\''/g;
  68802. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  68803. @@ -13069,11 +11546,11 @@
  68804. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  68805. if test -w "$cache_file"; then
  68806. test "x$cache_file" != "x/dev/null" &&
  68807. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  68808. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  68809. $as_echo "$as_me: updating cache $cache_file" >&6;}
  68810. cat confcache >$cache_file
  68811. else
  68812. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  68813. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  68814. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  68815. fi
  68816. fi
  68817. @@ -13093,8 +11570,8 @@
  68818. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  68819. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  68820. # will be set to the directory where LIBOBJS objects are built.
  68821. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  68822. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  68823. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  68824. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  68825. done
  68826. LIBOBJS=$ac_libobjs
  68827. @@ -13110,34 +11587,26 @@
  68828. fi
  68829. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  68830. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  68831. -Usually this means the macro was only invoked conditionally." >&5
  68832. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  68833. -Usually this means the macro was only invoked conditionally." >&2;}
  68834. - { (exit 1); exit 1; }; }
  68835. + as_fn_error "conditional \"AMDEP\" was never defined.
  68836. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  68837. fi
  68838. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  68839. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  68840. -Usually this means the macro was only invoked conditionally." >&5
  68841. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  68842. -Usually this means the macro was only invoked conditionally." >&2;}
  68843. - { (exit 1); exit 1; }; }
  68844. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  68845. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  68846. fi
  68847. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  68848. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  68849. -Usually this means the macro was only invoked conditionally." >&5
  68850. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  68851. -Usually this means the macro was only invoked conditionally." >&2;}
  68852. - { (exit 1); exit 1; }; }
  68853. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  68854. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  68855. fi
  68856. : ${CONFIG_STATUS=./config.status}
  68857. ac_write_fail=0
  68858. ac_clean_files_save=$ac_clean_files
  68859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  68860. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  68861. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  68862. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  68863. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  68864. +as_write_fail=0
  68865. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  68866. #! $SHELL
  68867. # Generated by $as_me.
  68868. # Run this file to recreate the current configuration.
  68869. @@ -13147,17 +11616,18 @@
  68870. debug=false
  68871. ac_cs_recheck=false
  68872. ac_cs_silent=false
  68873. -SHELL=\${CONFIG_SHELL-$SHELL}
  68874. -_ACEOF
  68875. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  68876. -## --------------------- ##
  68877. -## M4sh Initialization. ##
  68878. -## --------------------- ##
  68879. +SHELL=\${CONFIG_SHELL-$SHELL}
  68880. +export SHELL
  68881. +_ASEOF
  68882. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  68883. +## -------------------- ##
  68884. +## M4sh Initialization. ##
  68885. +## -------------------- ##
  68886. # Be more Bourne compatible
  68887. DUALCASE=1; export DUALCASE # for MKS sh
  68888. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  68889. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  68890. emulate sh
  68891. NULLCMD=:
  68892. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  68893. @@ -13165,23 +11635,15 @@
  68894. alias -g '${1+"$@"}'='"$@"'
  68895. setopt NO_GLOB_SUBST
  68896. else
  68897. - case `(set -o) 2>/dev/null` in
  68898. - *posix*) set -o posix ;;
  68899. + case `(set -o) 2>/dev/null` in #(
  68900. + *posix*) :
  68901. + set -o posix ;; #(
  68902. + *) :
  68903. + ;;
  68904. esac
  68905. -
  68906. fi
  68907. -
  68908. -
  68909. -# PATH needs CR
  68910. -# Avoid depending upon Character Ranges.
  68911. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  68912. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  68913. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  68914. -as_cr_digits='0123456789'
  68915. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  68916. -
  68917. as_nl='
  68918. '
  68919. export as_nl
  68920. @@ -13189,7 +11651,13 @@
  68921. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  68922. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  68923. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  68924. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  68925. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  68926. +# but without wasting forks for bash or zsh.
  68927. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  68928. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  68929. + as_echo='print -r --'
  68930. + as_echo_n='print -rn --'
  68931. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  68932. as_echo='printf %s\n'
  68933. as_echo_n='printf %s'
  68934. else
  68935. @@ -13200,7 +11668,7 @@
  68936. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  68937. as_echo_n_body='eval
  68938. arg=$1;
  68939. - case $arg in
  68940. + case $arg in #(
  68941. *"$as_nl"*)
  68942. expr "X$arg" : "X\\(.*\\)$as_nl";
  68943. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  68944. @@ -13223,13 +11691,6 @@
  68945. }
  68946. fi
  68947. -# Support unset when possible.
  68948. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  68949. - as_unset=unset
  68950. -else
  68951. - as_unset=false
  68952. -fi
  68953. -
  68954. # IFS
  68955. # We need space, tab and new line, in precisely that order. Quoting is
  68956. @@ -13239,15 +11700,15 @@
  68957. IFS=" "" $as_nl"
  68958. # Find who we are. Look in the path if we contain no directory separator.
  68959. -case $0 in
  68960. +case $0 in #((
  68961. *[\\/]* ) as_myself=$0 ;;
  68962. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  68963. for as_dir in $PATH
  68964. do
  68965. IFS=$as_save_IFS
  68966. test -z "$as_dir" && as_dir=.
  68967. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68968. -done
  68969. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68970. + done
  68971. IFS=$as_save_IFS
  68972. ;;
  68973. @@ -13259,12 +11720,16 @@
  68974. fi
  68975. if test ! -f "$as_myself"; then
  68976. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  68977. - { (exit 1); exit 1; }
  68978. + exit 1
  68979. fi
  68980. -# Work around bugs in pre-3.0 UWIN ksh.
  68981. -for as_var in ENV MAIL MAILPATH
  68982. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  68983. +# Unset variables that we do not need and which cause bugs (e.g. in
  68984. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  68985. +# suppresses any "Segmentation fault" message there. '((' could
  68986. +# trigger a bug in pdksh 5.2.14.
  68987. +for as_var in BASH_ENV ENV MAIL MAILPATH
  68988. +do eval test x\${$as_var+set} = xset \
  68989. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  68990. done
  68991. PS1='$ '
  68992. PS2='> '
  68993. @@ -13276,7 +11741,89 @@
  68994. LANGUAGE=C
  68995. export LANGUAGE
  68996. -# Required to use basename.
  68997. +# CDPATH.
  68998. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  68999. +
  69000. +
  69001. +# as_fn_error ERROR [LINENO LOG_FD]
  69002. +# ---------------------------------
  69003. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  69004. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  69005. +# script with status $?, using 1 if that was 0.
  69006. +as_fn_error ()
  69007. +{
  69008. + as_status=$?; test $as_status -eq 0 && as_status=1
  69009. + if test "$3"; then
  69010. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  69011. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  69012. + fi
  69013. + $as_echo "$as_me: error: $1" >&2
  69014. + as_fn_exit $as_status
  69015. +} # as_fn_error
  69016. +
  69017. +
  69018. +# as_fn_set_status STATUS
  69019. +# -----------------------
  69020. +# Set $? to STATUS, without forking.
  69021. +as_fn_set_status ()
  69022. +{
  69023. + return $1
  69024. +} # as_fn_set_status
  69025. +
  69026. +# as_fn_exit STATUS
  69027. +# -----------------
  69028. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  69029. +as_fn_exit ()
  69030. +{
  69031. + set +e
  69032. + as_fn_set_status $1
  69033. + exit $1
  69034. +} # as_fn_exit
  69035. +
  69036. +# as_fn_unset VAR
  69037. +# ---------------
  69038. +# Portably unset VAR.
  69039. +as_fn_unset ()
  69040. +{
  69041. + { eval $1=; unset $1;}
  69042. +}
  69043. +as_unset=as_fn_unset
  69044. +# as_fn_append VAR VALUE
  69045. +# ----------------------
  69046. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  69047. +# advantage of any shell optimizations that allow amortized linear growth over
  69048. +# repeated appends, instead of the typical quadratic growth present in naive
  69049. +# implementations.
  69050. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  69051. + eval 'as_fn_append ()
  69052. + {
  69053. + eval $1+=\$2
  69054. + }'
  69055. +else
  69056. + as_fn_append ()
  69057. + {
  69058. + eval $1=\$$1\$2
  69059. + }
  69060. +fi # as_fn_append
  69061. +
  69062. +# as_fn_arith ARG...
  69063. +# ------------------
  69064. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  69065. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  69066. +# must be portable across $(()) and expr.
  69067. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  69068. + eval 'as_fn_arith ()
  69069. + {
  69070. + as_val=$(( $* ))
  69071. + }'
  69072. +else
  69073. + as_fn_arith ()
  69074. + {
  69075. + as_val=`expr "$@" || test $? -eq 1`
  69076. + }
  69077. +fi # as_fn_arith
  69078. +
  69079. +
  69080. if expr a : '\(a\)' >/dev/null 2>&1 &&
  69081. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  69082. as_expr=expr
  69083. @@ -13290,8 +11837,12 @@
  69084. as_basename=false
  69085. fi
  69086. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  69087. + as_dirname=dirname
  69088. +else
  69089. + as_dirname=false
  69090. +fi
  69091. -# Name of the executable.
  69092. as_me=`$as_basename -- "$0" ||
  69093. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  69094. X"$0" : 'X\(//\)$' \| \
  69095. @@ -13311,76 +11862,25 @@
  69096. }
  69097. s/.*/./; q'`
  69098. -# CDPATH.
  69099. -$as_unset CDPATH
  69100. -
  69101. -
  69102. -
  69103. - as_lineno_1=$LINENO
  69104. - as_lineno_2=$LINENO
  69105. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  69106. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  69107. -
  69108. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  69109. - # uniformly replaced by the line number. The first 'sed' inserts a
  69110. - # line-number line after each line using $LINENO; the second 'sed'
  69111. - # does the real work. The second script uses 'N' to pair each
  69112. - # line-number line with the line containing $LINENO, and appends
  69113. - # trailing '-' during substitution so that $LINENO is not a special
  69114. - # case at line end.
  69115. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  69116. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  69117. - # E. McMahon (1931-1989) for sed's syntax. :-)
  69118. - sed -n '
  69119. - p
  69120. - /[$]LINENO/=
  69121. - ' <$as_myself |
  69122. - sed '
  69123. - s/[$]LINENO.*/&-/
  69124. - t lineno
  69125. - b
  69126. - :lineno
  69127. - N
  69128. - :loop
  69129. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  69130. - t loop
  69131. - s/-\n.*//
  69132. - ' >$as_me.lineno &&
  69133. - chmod +x "$as_me.lineno" ||
  69134. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  69135. - { (exit 1); exit 1; }; }
  69136. -
  69137. - # Don't try to exec as it changes $[0], causing all sort of problems
  69138. - # (the dirname of $[0] is not the place where we might find the
  69139. - # original and so on. Autoconf is especially sensitive to this).
  69140. - . "./$as_me.lineno"
  69141. - # Exit status is that of the last command.
  69142. - exit
  69143. -}
  69144. -
  69145. -
  69146. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  69147. - as_dirname=dirname
  69148. -else
  69149. - as_dirname=false
  69150. -fi
  69151. +# Avoid depending upon Character Ranges.
  69152. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  69153. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  69154. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  69155. +as_cr_digits='0123456789'
  69156. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  69157. ECHO_C= ECHO_N= ECHO_T=
  69158. -case `echo -n x` in
  69159. +case `echo -n x` in #(((((
  69160. -n*)
  69161. - case `echo 'x\c'` in
  69162. + case `echo 'xy\c'` in
  69163. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  69164. - *) ECHO_C='\c';;
  69165. + xy) ECHO_C='\c';;
  69166. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  69167. + ECHO_T=' ';;
  69168. esac;;
  69169. *)
  69170. ECHO_N='-n';;
  69171. esac
  69172. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  69173. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  69174. - as_expr=expr
  69175. -else
  69176. - as_expr=false
  69177. -fi
  69178. rm -f conf$$ conf$$.exe conf$$.file
  69179. if test -d conf$$.dir; then
  69180. @@ -13409,8 +11909,56 @@
  69181. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  69182. rmdir conf$$.dir 2>/dev/null
  69183. +
  69184. +# as_fn_mkdir_p
  69185. +# -------------
  69186. +# Create "$as_dir" as a directory, including parents if necessary.
  69187. +as_fn_mkdir_p ()
  69188. +{
  69189. +
  69190. + case $as_dir in #(
  69191. + -*) as_dir=./$as_dir;;
  69192. + esac
  69193. + test -d "$as_dir" || eval $as_mkdir_p || {
  69194. + as_dirs=
  69195. + while :; do
  69196. + case $as_dir in #(
  69197. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  69198. + *) as_qdir=$as_dir;;
  69199. + esac
  69200. + as_dirs="'$as_qdir' $as_dirs"
  69201. + as_dir=`$as_dirname -- "$as_dir" ||
  69202. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  69203. + X"$as_dir" : 'X\(//\)[^/]' \| \
  69204. + X"$as_dir" : 'X\(//\)$' \| \
  69205. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  69206. +$as_echo X"$as_dir" |
  69207. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  69208. + s//\1/
  69209. + q
  69210. + }
  69211. + /^X\(\/\/\)[^/].*/{
  69212. + s//\1/
  69213. + q
  69214. + }
  69215. + /^X\(\/\/\)$/{
  69216. + s//\1/
  69217. + q
  69218. + }
  69219. + /^X\(\/\).*/{
  69220. + s//\1/
  69221. + q
  69222. + }
  69223. + s/.*/./; q'`
  69224. + test -d "$as_dir" && break
  69225. + done
  69226. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  69227. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  69228. +
  69229. +
  69230. +} # as_fn_mkdir_p
  69231. if mkdir -p . 2>/dev/null; then
  69232. - as_mkdir_p=:
  69233. + as_mkdir_p='mkdir -p "$as_dir"'
  69234. else
  69235. test -d ./-p && rmdir ./-p
  69236. as_mkdir_p=false
  69237. @@ -13429,10 +11977,10 @@
  69238. if test -d "$1"; then
  69239. test -d "$1/.";
  69240. else
  69241. - case $1 in
  69242. + case $1 in #(
  69243. -*)set "./$1";;
  69244. esac;
  69245. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  69246. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  69247. ???[sx]*):;;*)false;;esac;fi
  69248. '\'' sh
  69249. '
  69250. @@ -13447,13 +11995,19 @@
  69251. exec 6>&1
  69252. +## ----------------------------------- ##
  69253. +## Main body of $CONFIG_STATUS script. ##
  69254. +## ----------------------------------- ##
  69255. +_ASEOF
  69256. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  69257. -# Save the log message, to keep $[0] and so on meaningful, and to
  69258. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  69259. +# Save the log message, to keep $0 and so on meaningful, and to
  69260. # report actual input values of CONFIG_FILES etc. instead of their
  69261. # values after options handling.
  69262. ac_log="
  69263. This file was extended by guile-readline $as_me 1.8.7, which was
  69264. -generated by GNU Autoconf 2.63. Invocation command line was
  69265. +generated by GNU Autoconf 2.64. Invocation command line was
  69266. CONFIG_FILES = $CONFIG_FILES
  69267. CONFIG_HEADERS = $CONFIG_HEADERS
  69268. @@ -13485,10 +12039,11 @@
  69269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  69270. ac_cs_usage="\
  69271. -\`$as_me' instantiates files from templates according to the
  69272. -current configuration.
  69273. +\`$as_me' instantiates files and other configuration actions
  69274. +from templates according to the current configuration. Unless the files
  69275. +and actions are specified as TAGs, all are instantiated by default.
  69276. -Usage: $0 [OPTION]... [FILE]...
  69277. +Usage: $0 [OPTION]... [TAG]...
  69278. -h, --help print this help, then exit
  69279. -V, --version print version number and configuration settings, then exit
  69280. @@ -13510,16 +12065,16 @@
  69281. Configuration commands:
  69282. $config_commands
  69283. -Report bugs to <bug-autoconf@gnu.org>."
  69284. +Report bugs to <bug-guile@gnu.org>."
  69285. _ACEOF
  69286. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  69287. ac_cs_version="\\
  69288. guile-readline config.status 1.8.7
  69289. -configured by $0, generated by GNU Autoconf 2.63,
  69290. +configured by $0, generated by GNU Autoconf 2.64,
  69291. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  69292. -Copyright (C) 2008 Free Software Foundation, Inc.
  69293. +Copyright (C) 2009 Free Software Foundation, Inc.
  69294. This config.status script is free software; the Free Software Foundation
  69295. gives unlimited permission to copy, distribute and modify it."
  69296. @@ -13562,20 +12117,19 @@
  69297. case $ac_optarg in
  69298. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  69299. esac
  69300. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  69301. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  69302. ac_need_defaults=false;;
  69303. --header | --heade | --head | --hea )
  69304. $ac_shift
  69305. case $ac_optarg in
  69306. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  69307. esac
  69308. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  69309. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  69310. ac_need_defaults=false;;
  69311. --he | --h)
  69312. # Conflict between --help and --header
  69313. - { $as_echo "$as_me: error: ambiguous option: $1
  69314. -Try \`$0 --help' for more information." >&2
  69315. - { (exit 1); exit 1; }; };;
  69316. + as_fn_error "ambiguous option: \`$1'
  69317. +Try \`$0 --help' for more information.";;
  69318. --help | --hel | -h )
  69319. $as_echo "$ac_cs_usage"; exit ;;
  69320. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  69321. @@ -13583,11 +12137,10 @@
  69322. ac_cs_silent=: ;;
  69323. # This is an error.
  69324. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  69325. -Try \`$0 --help' for more information." >&2
  69326. - { (exit 1); exit 1; }; } ;;
  69327. + -*) as_fn_error "unrecognized option: \`$1'
  69328. +Try \`$0 --help' for more information." ;;
  69329. - *) ac_config_targets="$ac_config_targets $1"
  69330. + *) as_fn_append ac_config_targets " $1"
  69331. ac_need_defaults=false ;;
  69332. esac
  69333. @@ -13900,9 +12453,7 @@
  69334. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  69335. "ice-9/Makefile") CONFIG_FILES="$CONFIG_FILES ice-9/Makefile" ;;
  69336. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  69337. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  69338. - { (exit 1); exit 1; }; };;
  69339. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  69340. esac
  69341. done
  69342. @@ -13929,7 +12480,7 @@
  69343. trap 'exit_status=$?
  69344. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  69345. ' 0
  69346. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  69347. + trap 'as_fn_exit 1' 1 2 13 15
  69348. }
  69349. # Create a (secure) tmp directory for tmp files.
  69350. @@ -13940,11 +12491,7 @@
  69351. {
  69352. tmp=./conf$$-$RANDOM
  69353. (umask 077 && mkdir "$tmp")
  69354. -} ||
  69355. -{
  69356. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  69357. - { (exit 1); exit 1; }
  69358. -}
  69359. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  69360. # Set up the scripts for CONFIG_FILES section.
  69361. # No need to generate them if there are no CONFIG_FILES.
  69362. @@ -13952,10 +12499,16 @@
  69363. if test -n "$CONFIG_FILES"; then
  69364. -ac_cr=' '
  69365. +ac_cr=`echo X | tr X '\015'`
  69366. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  69367. +# But we know of no other shell where ac_cr would be empty at this
  69368. +# point, so we can use a bashism as a fallback.
  69369. +if test "x$ac_cr" = x; then
  69370. + eval ac_cr=\$\'\\r\'
  69371. +fi
  69372. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  69373. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  69374. - ac_cs_awk_cr='\\r'
  69375. + ac_cs_awk_cr='\r'
  69376. else
  69377. ac_cs_awk_cr=$ac_cr
  69378. fi
  69379. @@ -13969,24 +12522,18 @@
  69380. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  69381. echo "_ACEOF"
  69382. } >conf$$subs.sh ||
  69383. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  69384. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  69385. - { (exit 1); exit 1; }; }
  69386. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  69387. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  69388. ac_delim='%!_!# '
  69389. for ac_last_try in false false false false false :; do
  69390. . ./conf$$subs.sh ||
  69391. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  69392. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  69393. - { (exit 1); exit 1; }; }
  69394. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  69395. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  69396. if test $ac_delim_n = $ac_delim_num; then
  69397. break
  69398. elif $ac_last_try; then
  69399. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  69400. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  69401. - { (exit 1); exit 1; }; }
  69402. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  69403. else
  69404. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  69405. fi
  69406. @@ -14075,9 +12622,7 @@
  69407. else
  69408. cat
  69409. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  69410. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  69411. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  69412. - { (exit 1); exit 1; }; }
  69413. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  69414. _ACEOF
  69415. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  69416. @@ -14118,9 +12663,7 @@
  69417. if test -z "$ac_t"; then
  69418. break
  69419. elif $ac_last_try; then
  69420. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  69421. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  69422. - { (exit 1); exit 1; }; }
  69423. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  69424. else
  69425. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  69426. fi
  69427. @@ -14205,9 +12748,7 @@
  69428. _ACAWK
  69429. _ACEOF
  69430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  69431. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  69432. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  69433. - { (exit 1); exit 1; }; }
  69434. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  69435. fi # test -n "$CONFIG_HEADERS"
  69436. @@ -14220,9 +12761,7 @@
  69437. esac
  69438. case $ac_mode$ac_tag in
  69439. :[FHL]*:*);;
  69440. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  69441. -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  69442. - { (exit 1); exit 1; }; };;
  69443. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  69444. :[FH]-) ac_tag=-:-;;
  69445. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  69446. esac
  69447. @@ -14250,12 +12789,10 @@
  69448. [\\/$]*) false;;
  69449. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  69450. esac ||
  69451. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  69452. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  69453. - { (exit 1); exit 1; }; };;
  69454. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  69455. esac
  69456. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  69457. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  69458. + as_fn_append ac_file_inputs " '$ac_f'"
  69459. done
  69460. # Let's still pretend it is `configure' which instantiates (i.e., don't
  69461. @@ -14266,7 +12803,7 @@
  69462. `' by configure.'
  69463. if test x"$ac_file" != x-; then
  69464. configure_input="$ac_file. $configure_input"
  69465. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  69466. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  69467. $as_echo "$as_me: creating $ac_file" >&6;}
  69468. fi
  69469. # Neutralize special characters interpreted by sed in replacement strings.
  69470. @@ -14279,9 +12816,7 @@
  69471. case $ac_tag in
  69472. *:-:* | *:-) cat >"$tmp/stdin" \
  69473. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  69474. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  69475. - { (exit 1); exit 1; }; } ;;
  69476. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  69477. esac
  69478. ;;
  69479. esac
  69480. @@ -14309,47 +12844,7 @@
  69481. q
  69482. }
  69483. s/.*/./; q'`
  69484. - { as_dir="$ac_dir"
  69485. - case $as_dir in #(
  69486. - -*) as_dir=./$as_dir;;
  69487. - esac
  69488. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  69489. - as_dirs=
  69490. - while :; do
  69491. - case $as_dir in #(
  69492. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  69493. - *) as_qdir=$as_dir;;
  69494. - esac
  69495. - as_dirs="'$as_qdir' $as_dirs"
  69496. - as_dir=`$as_dirname -- "$as_dir" ||
  69497. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  69498. - X"$as_dir" : 'X\(//\)[^/]' \| \
  69499. - X"$as_dir" : 'X\(//\)$' \| \
  69500. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  69501. -$as_echo X"$as_dir" |
  69502. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  69503. - s//\1/
  69504. - q
  69505. - }
  69506. - /^X\(\/\/\)[^/].*/{
  69507. - s//\1/
  69508. - q
  69509. - }
  69510. - /^X\(\/\/\)$/{
  69511. - s//\1/
  69512. - q
  69513. - }
  69514. - /^X\(\/\).*/{
  69515. - s//\1/
  69516. - q
  69517. - }
  69518. - s/.*/./; q'`
  69519. - test -d "$as_dir" && break
  69520. - done
  69521. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  69522. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  69523. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  69524. - { (exit 1); exit 1; }; }; }
  69525. + as_dir="$ac_dir"; as_fn_mkdir_p
  69526. ac_builddir=.
  69527. case "$ac_dir" in
  69528. @@ -14406,7 +12901,6 @@
  69529. # If the template does not know about datarootdir, expand it.
  69530. # FIXME: This hack should be removed a few years after 2.60.
  69531. ac_datarootdir_hack=; ac_datarootdir_seen=
  69532. -
  69533. ac_sed_dataroot='
  69534. /datarootdir/ {
  69535. p
  69536. @@ -14416,12 +12910,11 @@
  69537. /@docdir@/p
  69538. /@infodir@/p
  69539. /@localedir@/p
  69540. -/@mandir@/p
  69541. -'
  69542. +/@mandir@/p'
  69543. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  69544. *datarootdir*) ac_datarootdir_seen=yes;;
  69545. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  69546. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  69547. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  69548. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  69549. _ACEOF
  69550. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  69551. @@ -14431,7 +12924,7 @@
  69552. s&@infodir@&$infodir&g
  69553. s&@localedir@&$localedir&g
  69554. s&@mandir@&$mandir&g
  69555. - s&\\\${datarootdir}&$datarootdir&g' ;;
  69556. + s&\\\${datarootdir}&$datarootdir&g' ;;
  69557. esac
  69558. _ACEOF
  69559. @@ -14460,14 +12953,12 @@
  69560. $ac_datarootdir_hack
  69561. "
  69562. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  69563. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  69564. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  69565. - { (exit 1); exit 1; }; }
  69566. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  69567. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  69568. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  69569. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  69570. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  69571. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  69572. which seems to be undefined. Please make sure it is defined." >&5
  69573. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  69574. which seems to be undefined. Please make sure it is defined." >&2;}
  69575. @@ -14477,9 +12968,7 @@
  69576. -) cat "$tmp/out" && rm -f "$tmp/out";;
  69577. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  69578. esac \
  69579. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  69580. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  69581. - { (exit 1); exit 1; }; }
  69582. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  69583. ;;
  69584. :H)
  69585. #
  69586. @@ -14490,25 +12979,19 @@
  69587. $as_echo "/* $configure_input */" \
  69588. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  69589. } >"$tmp/config.h" \
  69590. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  69591. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  69592. - { (exit 1); exit 1; }; }
  69593. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  69594. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  69595. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  69596. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  69597. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  69598. else
  69599. rm -f "$ac_file"
  69600. mv "$tmp/config.h" "$ac_file" \
  69601. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  69602. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  69603. - { (exit 1); exit 1; }; }
  69604. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  69605. fi
  69606. else
  69607. $as_echo "/* $configure_input */" \
  69608. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  69609. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  69610. -$as_echo "$as_me: error: could not create -" >&2;}
  69611. - { (exit 1); exit 1; }; }
  69612. + || as_fn_error "could not create -" "$LINENO" 5
  69613. fi
  69614. # Compute "$ac_file"'s index in $config_headers.
  69615. _am_arg="$ac_file"
  69616. @@ -14546,7 +13029,7 @@
  69617. s/.*/./; q'`/stamp-h$_am_stamp_count
  69618. ;;
  69619. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  69620. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  69621. $as_echo "$as_me: executing $ac_file commands" >&6;}
  69622. ;;
  69623. esac
  69624. @@ -14641,47 +13124,7 @@
  69625. q
  69626. }
  69627. s/.*/./; q'`
  69628. - { as_dir=$dirpart/$fdir
  69629. - case $as_dir in #(
  69630. - -*) as_dir=./$as_dir;;
  69631. - esac
  69632. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  69633. - as_dirs=
  69634. - while :; do
  69635. - case $as_dir in #(
  69636. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  69637. - *) as_qdir=$as_dir;;
  69638. - esac
  69639. - as_dirs="'$as_qdir' $as_dirs"
  69640. - as_dir=`$as_dirname -- "$as_dir" ||
  69641. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  69642. - X"$as_dir" : 'X\(//\)[^/]' \| \
  69643. - X"$as_dir" : 'X\(//\)$' \| \
  69644. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  69645. -$as_echo X"$as_dir" |
  69646. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  69647. - s//\1/
  69648. - q
  69649. - }
  69650. - /^X\(\/\/\)[^/].*/{
  69651. - s//\1/
  69652. - q
  69653. - }
  69654. - /^X\(\/\/\)$/{
  69655. - s//\1/
  69656. - q
  69657. - }
  69658. - /^X\(\/\).*/{
  69659. - s//\1/
  69660. - q
  69661. - }
  69662. - s/.*/./; q'`
  69663. - test -d "$as_dir" && break
  69664. - done
  69665. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  69666. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  69667. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  69668. - { (exit 1); exit 1; }; }; }
  69669. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  69670. # echo "creating $dirpart/$file"
  69671. echo '# dummy' > "$dirpart/$file"
  69672. done
  69673. @@ -15334,15 +13777,12 @@
  69674. done # for ac_tag
  69675. -{ (exit 0); exit 0; }
  69676. +as_fn_exit 0
  69677. _ACEOF
  69678. -chmod +x $CONFIG_STATUS
  69679. ac_clean_files=$ac_clean_files_save
  69680. test $ac_write_fail = 0 ||
  69681. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  69682. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  69683. - { (exit 1); exit 1; }; }
  69684. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  69685. # configure is writing to config.log, and then calls config.status.
  69686. @@ -15363,10 +13803,10 @@
  69687. exec 5>>config.log
  69688. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  69689. # would make configure fail if this is the last instruction.
  69690. - $ac_cs_success || { (exit 1); exit 1; }
  69691. + $ac_cs_success || as_fn_exit $?
  69692. fi
  69693. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  69694. - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  69695. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  69696. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  69697. fi
  69698. Index: sid/guile-readline/guile-readline-config.h.in
  69699. ===================================================================
  69700. --- sid.orig/guile-readline/guile-readline-config.h.in
  69701. +++ sid/guile-readline/guile-readline-config.h.in
  69702. @@ -70,6 +70,9 @@
  69703. /* Define to the one symbol short name of this package. */
  69704. #undef PACKAGE_TARNAME
  69705. +/* Define to the home page for this package. */
  69706. +#undef PACKAGE_URL
  69707. +
  69708. /* Define to the version of this package. */
  69709. #undef PACKAGE_VERSION
  69710. Index: sid/guile-readline/ice-9/Makefile.in
  69711. ===================================================================
  69712. --- sid.orig/guile-readline/ice-9/Makefile.in
  69713. +++ sid/guile-readline/ice-9/Makefile.in
  69714. @@ -131,6 +131,7 @@
  69715. PACKAGE_NAME = @PACKAGE_NAME@
  69716. PACKAGE_STRING = @PACKAGE_STRING@
  69717. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69718. +PACKAGE_URL = @PACKAGE_URL@
  69719. PACKAGE_VERSION = @PACKAGE_VERSION@
  69720. PATH_SEPARATOR = @PATH_SEPARATOR@
  69721. RANLIB = @RANLIB@
  69722. Index: sid/guile-readline/ltmain.sh
  69723. ===================================================================
  69724. --- sid.orig/guile-readline/ltmain.sh
  69725. +++ sid/guile-readline/ltmain.sh
  69726. @@ -1,6 +1,6 @@
  69727. # Generated from ltmain.m4sh.
  69728. -# ltmain.sh (GNU libtool) 2.2.6
  69729. +# ltmain.sh (GNU libtool) 2.2.6b
  69730. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  69731. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  69732. @@ -65,7 +65,7 @@
  69733. # compiler: $LTCC
  69734. # compiler flags: $LTCFLAGS
  69735. # linker: $LD (gnu? $with_gnu_ld)
  69736. -# $progname: (GNU libtool) 2.2.6
  69737. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
  69738. # automake: $automake_version
  69739. # autoconf: $autoconf_version
  69740. #
  69741. @@ -73,9 +73,9 @@
  69742. PROGRAM=ltmain.sh
  69743. PACKAGE=libtool
  69744. -VERSION=2.2.6
  69745. +VERSION="2.2.6b Debian-2.2.6b-2"
  69746. TIMESTAMP=""
  69747. -package_revision=1.3012
  69748. +package_revision=1.3017
  69749. # Be Bourne compatible
  69750. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  69751. @@ -116,15 +116,15 @@
  69752. : ${CP="cp -f"}
  69753. : ${ECHO="echo"}
  69754. -: ${EGREP="/usr/bin/grep -E"}
  69755. -: ${FGREP="/usr/bin/grep -F"}
  69756. -: ${GREP="/usr/bin/grep"}
  69757. +: ${EGREP="/bin/grep -E"}
  69758. +: ${FGREP="/bin/grep -F"}
  69759. +: ${GREP="/bin/grep"}
  69760. : ${LN_S="ln -s"}
  69761. : ${MAKE="make"}
  69762. : ${MKDIR="mkdir"}
  69763. : ${MV="mv -f"}
  69764. : ${RM="rm -f"}
  69765. -: ${SED="/opt/local/bin/gsed"}
  69766. +: ${SED="/bin/sed"}
  69767. : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  69768. : ${Xsed="$SED -e 1s/^X//"}
  69769. @@ -4929,8 +4929,8 @@
  69770. else
  69771. shlib_search_path=
  69772. fi
  69773. -
  69774. -
  69775. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  69776. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  69777. func_dirname "$output" "/" ""
  69778. output_objdir="$func_dirname_result$objdir"
  69779. @@ -5033,7 +5033,10 @@
  69780. case $pass in
  69781. dlopen) libs="$dlfiles" ;;
  69782. dlpreopen) libs="$dlprefiles" ;;
  69783. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  69784. + link)
  69785. + libs="$deplibs %DEPLIBS%"
  69786. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  69787. + ;;
  69788. esac
  69789. fi
  69790. if test "$linkmode,$pass" = "lib,dlpreopen"; then
  69791. @@ -5344,19 +5347,19 @@
  69792. # It is a libtool convenience library, so add in its objects.
  69793. convenience="$convenience $ladir/$objdir/$old_library"
  69794. old_convenience="$old_convenience $ladir/$objdir/$old_library"
  69795. + tmp_libs=
  69796. + for deplib in $dependency_libs; do
  69797. + deplibs="$deplib $deplibs"
  69798. + if $opt_duplicate_deps ; then
  69799. + case "$tmp_libs " in
  69800. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  69801. + esac
  69802. + fi
  69803. + tmp_libs="$tmp_libs $deplib"
  69804. + done
  69805. elif test "$linkmode" != prog && test "$linkmode" != lib; then
  69806. func_fatal_error "\`$lib' is not a convenience library"
  69807. fi
  69808. - tmp_libs=
  69809. - for deplib in $dependency_libs; do
  69810. - deplibs="$deplib $deplibs"
  69811. - if $opt_duplicate_deps ; then
  69812. - case "$tmp_libs " in
  69813. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  69814. - esac
  69815. - fi
  69816. - tmp_libs="$tmp_libs $deplib"
  69817. - done
  69818. continue
  69819. fi # $pass = conv
  69820. @@ -5893,6 +5896,7 @@
  69821. if test "$link_all_deplibs" != no; then
  69822. # Add the search paths of all dependency libraries
  69823. for deplib in $dependency_libs; do
  69824. + path=
  69825. case $deplib in
  69826. -L*) path="$deplib" ;;
  69827. *.la)
  69828. @@ -6206,6 +6210,9 @@
  69829. revision="$number_minor"
  69830. lt_irix_increment=no
  69831. ;;
  69832. + *)
  69833. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  69834. + ;;
  69835. esac
  69836. ;;
  69837. no)
  69838. Index: sid/ice-9/Makefile.in
  69839. ===================================================================
  69840. --- sid.orig/ice-9/Makefile.in
  69841. +++ sid/ice-9/Makefile.in
  69842. @@ -39,7 +39,10 @@
  69843. subdir = ice-9
  69844. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  69845. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  69846. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  69847. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  69848. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  69849. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  69850. + $(top_srcdir)/configure.in
  69851. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  69852. $(ACLOCAL_M4)
  69853. mkinstalldirs = $(install_sh) -d
  69854. @@ -178,6 +181,7 @@
  69855. PACKAGE_NAME = @PACKAGE_NAME@
  69856. PACKAGE_STRING = @PACKAGE_STRING@
  69857. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69858. +PACKAGE_URL = @PACKAGE_URL@
  69859. PACKAGE_VERSION = @PACKAGE_VERSION@
  69860. PATH_SEPARATOR = @PATH_SEPARATOR@
  69861. POSUB = @POSUB@
  69862. Index: sid/lang/Makefile.in
  69863. ===================================================================
  69864. --- sid.orig/lang/Makefile.in
  69865. +++ sid/lang/Makefile.in
  69866. @@ -38,7 +38,10 @@
  69867. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  69868. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  69869. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  69870. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  69871. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  69872. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  69873. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  69874. + $(top_srcdir)/configure.in
  69875. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  69876. $(ACLOCAL_M4)
  69877. mkinstalldirs = $(install_sh) -d
  69878. @@ -177,6 +180,7 @@
  69879. PACKAGE_NAME = @PACKAGE_NAME@
  69880. PACKAGE_STRING = @PACKAGE_STRING@
  69881. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69882. +PACKAGE_URL = @PACKAGE_URL@
  69883. PACKAGE_VERSION = @PACKAGE_VERSION@
  69884. PATH_SEPARATOR = @PATH_SEPARATOR@
  69885. POSUB = @POSUB@
  69886. Index: sid/libguile/Makefile.in
  69887. ===================================================================
  69888. --- sid.orig/libguile/Makefile.in
  69889. +++ sid/libguile/Makefile.in
  69890. @@ -51,7 +51,10 @@
  69891. subdir = libguile
  69892. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  69893. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  69894. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  69895. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  69896. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  69897. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  69898. + $(top_srcdir)/configure.in
  69899. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  69900. $(ACLOCAL_M4)
  69901. mkinstalldirs = $(install_sh) -d
  69902. @@ -281,6 +284,7 @@
  69903. PACKAGE_NAME = @PACKAGE_NAME@
  69904. PACKAGE_STRING = @PACKAGE_STRING@
  69905. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  69906. +PACKAGE_URL = @PACKAGE_URL@
  69907. PACKAGE_VERSION = @PACKAGE_VERSION@
  69908. PATH_SEPARATOR = @PATH_SEPARATOR@
  69909. POSUB = @POSUB@
  69910. Index: sid/m4/libtool.m4
  69911. ===================================================================
  69912. --- /dev/null
  69913. +++ sid/m4/libtool.m4
  69914. @@ -0,0 +1,7377 @@
  69915. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  69916. +#
  69917. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  69918. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  69919. +# Written by Gordon Matzigkeit, 1996
  69920. +#
  69921. +# This file is free software; the Free Software Foundation gives
  69922. +# unlimited permission to copy and/or distribute it, with or without
  69923. +# modifications, as long as this notice is preserved.
  69924. +
  69925. +m4_define([_LT_COPYING], [dnl
  69926. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  69927. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  69928. +# Written by Gordon Matzigkeit, 1996
  69929. +#
  69930. +# This file is part of GNU Libtool.
  69931. +#
  69932. +# GNU Libtool is free software; you can redistribute it and/or
  69933. +# modify it under the terms of the GNU General Public License as
  69934. +# published by the Free Software Foundation; either version 2 of
  69935. +# the License, or (at your option) any later version.
  69936. +#
  69937. +# As a special exception to the GNU General Public License,
  69938. +# if you distribute this file as part of a program or library that
  69939. +# is built using GNU Libtool, you may include this file under the
  69940. +# same distribution terms that you use for the rest of that program.
  69941. +#
  69942. +# GNU Libtool is distributed in the hope that it will be useful,
  69943. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  69944. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  69945. +# GNU General Public License for more details.
  69946. +#
  69947. +# You should have received a copy of the GNU General Public License
  69948. +# along with GNU Libtool; see the file COPYING. If not, a copy
  69949. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  69950. +# obtained by writing to the Free Software Foundation, Inc.,
  69951. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  69952. +])
  69953. +
  69954. +# serial 56 LT_INIT
  69955. +
  69956. +
  69957. +# LT_PREREQ(VERSION)
  69958. +# ------------------
  69959. +# Complain and exit if this libtool version is less that VERSION.
  69960. +m4_defun([LT_PREREQ],
  69961. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  69962. + [m4_default([$3],
  69963. + [m4_fatal([Libtool version $1 or higher is required],
  69964. + 63)])],
  69965. + [$2])])
  69966. +
  69967. +
  69968. +# _LT_CHECK_BUILDDIR
  69969. +# ------------------
  69970. +# Complain if the absolute build directory name contains unusual characters
  69971. +m4_defun([_LT_CHECK_BUILDDIR],
  69972. +[case `pwd` in
  69973. + *\ * | *\ *)
  69974. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  69975. +esac
  69976. +])
  69977. +
  69978. +
  69979. +# LT_INIT([OPTIONS])
  69980. +# ------------------
  69981. +AC_DEFUN([LT_INIT],
  69982. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  69983. +AC_BEFORE([$0], [LT_LANG])dnl
  69984. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  69985. +AC_BEFORE([$0], [LTDL_INIT])dnl
  69986. +m4_require([_LT_CHECK_BUILDDIR])dnl
  69987. +
  69988. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  69989. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  69990. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  69991. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  69992. +dnl unless we require an AC_DEFUNed macro:
  69993. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  69994. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  69995. +AC_REQUIRE([LTVERSION_VERSION])dnl
  69996. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  69997. +m4_require([_LT_PROG_LTMAIN])dnl
  69998. +
  69999. +dnl Parse OPTIONS
  70000. +_LT_SET_OPTIONS([$0], [$1])
  70001. +
  70002. +# This can be used to rebuild libtool when needed
  70003. +LIBTOOL_DEPS="$ltmain"
  70004. +
  70005. +# Always use our own libtool.
  70006. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  70007. +AC_SUBST(LIBTOOL)dnl
  70008. +
  70009. +_LT_SETUP
  70010. +
  70011. +# Only expand once:
  70012. +m4_define([LT_INIT])
  70013. +])# LT_INIT
  70014. +
  70015. +# Old names:
  70016. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  70017. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  70018. +dnl aclocal-1.4 backwards compatibility:
  70019. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  70020. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  70021. +
  70022. +
  70023. +# _LT_CC_BASENAME(CC)
  70024. +# -------------------
  70025. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  70026. +m4_defun([_LT_CC_BASENAME],
  70027. +[for cc_temp in $1""; do
  70028. + case $cc_temp in
  70029. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  70030. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  70031. + \-*) ;;
  70032. + *) break;;
  70033. + esac
  70034. +done
  70035. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  70036. +])
  70037. +
  70038. +
  70039. +# _LT_FILEUTILS_DEFAULTS
  70040. +# ----------------------
  70041. +# It is okay to use these file commands and assume they have been set
  70042. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  70043. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  70044. +[: ${CP="cp -f"}
  70045. +: ${MV="mv -f"}
  70046. +: ${RM="rm -f"}
  70047. +])# _LT_FILEUTILS_DEFAULTS
  70048. +
  70049. +
  70050. +# _LT_SETUP
  70051. +# ---------
  70052. +m4_defun([_LT_SETUP],
  70053. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  70054. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  70055. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  70056. +_LT_DECL([], [host], [0])dnl
  70057. +_LT_DECL([], [host_os], [0])dnl
  70058. +dnl
  70059. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  70060. +_LT_DECL([], [build], [0])dnl
  70061. +_LT_DECL([], [build_os], [0])dnl
  70062. +dnl
  70063. +AC_REQUIRE([AC_PROG_CC])dnl
  70064. +AC_REQUIRE([LT_PATH_LD])dnl
  70065. +AC_REQUIRE([LT_PATH_NM])dnl
  70066. +dnl
  70067. +AC_REQUIRE([AC_PROG_LN_S])dnl
  70068. +test -z "$LN_S" && LN_S="ln -s"
  70069. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  70070. +dnl
  70071. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  70072. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  70073. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  70074. +dnl
  70075. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  70076. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  70077. +m4_require([_LT_CMD_RELOAD])dnl
  70078. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  70079. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  70080. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  70081. +
  70082. +_LT_CONFIG_LIBTOOL_INIT([
  70083. +# See if we are running on zsh, and set the options which allow our
  70084. +# commands through without removal of \ escapes INIT.
  70085. +if test -n "\${ZSH_VERSION+set}" ; then
  70086. + setopt NO_GLOB_SUBST
  70087. +fi
  70088. +])
  70089. +if test -n "${ZSH_VERSION+set}" ; then
  70090. + setopt NO_GLOB_SUBST
  70091. +fi
  70092. +
  70093. +_LT_CHECK_OBJDIR
  70094. +
  70095. +m4_require([_LT_TAG_COMPILER])dnl
  70096. +_LT_PROG_ECHO_BACKSLASH
  70097. +
  70098. +case $host_os in
  70099. +aix3*)
  70100. + # AIX sometimes has problems with the GCC collect2 program. For some
  70101. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  70102. + # vanish in a puff of smoke.
  70103. + if test "X${COLLECT_NAMES+set}" != Xset; then
  70104. + COLLECT_NAMES=
  70105. + export COLLECT_NAMES
  70106. + fi
  70107. + ;;
  70108. +esac
  70109. +
  70110. +# Sed substitution that helps us do robust quoting. It backslashifies
  70111. +# metacharacters that are still active within double-quoted strings.
  70112. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  70113. +
  70114. +# Same as above, but do not quote variable references.
  70115. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  70116. +
  70117. +# Sed substitution to delay expansion of an escaped shell variable in a
  70118. +# double_quote_subst'ed string.
  70119. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  70120. +
  70121. +# Sed substitution to delay expansion of an escaped single quote.
  70122. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  70123. +
  70124. +# Sed substitution to avoid accidental globbing in evaled expressions
  70125. +no_glob_subst='s/\*/\\\*/g'
  70126. +
  70127. +# Global variables:
  70128. +ofile=libtool
  70129. +can_build_shared=yes
  70130. +
  70131. +# All known linkers require a `.a' archive for static linking (except MSVC,
  70132. +# which needs '.lib').
  70133. +libext=a
  70134. +
  70135. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  70136. +
  70137. +old_CC="$CC"
  70138. +old_CFLAGS="$CFLAGS"
  70139. +
  70140. +# Set sane defaults for various variables
  70141. +test -z "$CC" && CC=cc
  70142. +test -z "$LTCC" && LTCC=$CC
  70143. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  70144. +test -z "$LD" && LD=ld
  70145. +test -z "$ac_objext" && ac_objext=o
  70146. +
  70147. +_LT_CC_BASENAME([$compiler])
  70148. +
  70149. +# Only perform the check for file, if the check method requires it
  70150. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  70151. +case $deplibs_check_method in
  70152. +file_magic*)
  70153. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  70154. + _LT_PATH_MAGIC
  70155. + fi
  70156. + ;;
  70157. +esac
  70158. +
  70159. +# Use C for the default configuration in the libtool script
  70160. +LT_SUPPORTED_TAG([CC])
  70161. +_LT_LANG_C_CONFIG
  70162. +_LT_LANG_DEFAULT_CONFIG
  70163. +_LT_CONFIG_COMMANDS
  70164. +])# _LT_SETUP
  70165. +
  70166. +
  70167. +# _LT_PROG_LTMAIN
  70168. +# ---------------
  70169. +# Note that this code is called both from `configure', and `config.status'
  70170. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  70171. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  70172. +# so we pass a copy along to make sure it has a sensible value anyway.
  70173. +m4_defun([_LT_PROG_LTMAIN],
  70174. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  70175. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  70176. +ltmain="$ac_aux_dir/ltmain.sh"
  70177. +])# _LT_PROG_LTMAIN
  70178. +
  70179. +
  70180. +## ------------------------------------- ##
  70181. +## Accumulate code for creating libtool. ##
  70182. +## ------------------------------------- ##
  70183. +
  70184. +# So that we can recreate a full libtool script including additional
  70185. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  70186. +# in macros and then make a single call at the end using the `libtool'
  70187. +# label.
  70188. +
  70189. +
  70190. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  70191. +# ----------------------------------------
  70192. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  70193. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  70194. +[m4_ifval([$1],
  70195. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  70196. + [$1
  70197. +])])])
  70198. +
  70199. +# Initialize.
  70200. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  70201. +
  70202. +
  70203. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  70204. +# ------------------------------
  70205. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  70206. +m4_define([_LT_CONFIG_LIBTOOL],
  70207. +[m4_ifval([$1],
  70208. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  70209. + [$1
  70210. +])])])
  70211. +
  70212. +# Initialize.
  70213. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  70214. +
  70215. +
  70216. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  70217. +# -----------------------------------------------------
  70218. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  70219. +[_LT_CONFIG_LIBTOOL([$1])
  70220. +_LT_CONFIG_LIBTOOL_INIT([$2])
  70221. +])
  70222. +
  70223. +
  70224. +# _LT_FORMAT_COMMENT([COMMENT])
  70225. +# -----------------------------
  70226. +# Add leading comment marks to the start of each line, and a trailing
  70227. +# full-stop to the whole comment if one is not present already.
  70228. +m4_define([_LT_FORMAT_COMMENT],
  70229. +[m4_ifval([$1], [
  70230. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  70231. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  70232. +)])
  70233. +
  70234. +
  70235. +
  70236. +## ------------------------ ##
  70237. +## FIXME: Eliminate VARNAME ##
  70238. +## ------------------------ ##
  70239. +
  70240. +
  70241. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  70242. +# -------------------------------------------------------------------
  70243. +# CONFIGNAME is the name given to the value in the libtool script.
  70244. +# VARNAME is the (base) name used in the configure script.
  70245. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  70246. +# VARNAME. Any other value will be used directly.
  70247. +m4_define([_LT_DECL],
  70248. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  70249. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  70250. + [m4_ifval([$1], [$1], [$2])])
  70251. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  70252. + m4_ifval([$4],
  70253. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  70254. + lt_dict_add_subkey([lt_decl_dict], [$2],
  70255. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  70256. +])
  70257. +
  70258. +
  70259. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  70260. +# --------------------------------------------------------
  70261. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  70262. +
  70263. +
  70264. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  70265. +# ------------------------------------------------
  70266. +m4_define([lt_decl_tag_varnames],
  70267. +[_lt_decl_filter([tagged?], [yes], $@)])
  70268. +
  70269. +
  70270. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  70271. +# ---------------------------------------------------------
  70272. +m4_define([_lt_decl_filter],
  70273. +[m4_case([$#],
  70274. + [0], [m4_fatal([$0: too few arguments: $#])],
  70275. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  70276. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  70277. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  70278. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  70279. +])
  70280. +
  70281. +
  70282. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  70283. +# --------------------------------------------------
  70284. +m4_define([lt_decl_quote_varnames],
  70285. +[_lt_decl_filter([value], [1], $@)])
  70286. +
  70287. +
  70288. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  70289. +# ---------------------------------------------------
  70290. +m4_define([lt_decl_dquote_varnames],
  70291. +[_lt_decl_filter([value], [2], $@)])
  70292. +
  70293. +
  70294. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  70295. +# ---------------------------------------------------
  70296. +m4_define([lt_decl_varnames_tagged],
  70297. +[m4_assert([$# <= 2])dnl
  70298. +_$0(m4_quote(m4_default([$1], [[, ]])),
  70299. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  70300. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  70301. +m4_define([_lt_decl_varnames_tagged],
  70302. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  70303. +
  70304. +
  70305. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  70306. +# ------------------------------------------------
  70307. +m4_define([lt_decl_all_varnames],
  70308. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  70309. + m4_if([$2], [],
  70310. + m4_quote(lt_decl_varnames),
  70311. + m4_quote(m4_shift($@))))[]dnl
  70312. +])
  70313. +m4_define([_lt_decl_all_varnames],
  70314. +[lt_join($@, lt_decl_varnames_tagged([$1],
  70315. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  70316. +])
  70317. +
  70318. +
  70319. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  70320. +# ------------------------------------
  70321. +# Quote a variable value, and forward it to `config.status' so that its
  70322. +# declaration there will have the same value as in `configure'. VARNAME
  70323. +# must have a single quote delimited value for this to work.
  70324. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  70325. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  70326. +
  70327. +
  70328. +# _LT_CONFIG_STATUS_DECLARATIONS
  70329. +# ------------------------------
  70330. +# We delimit libtool config variables with single quotes, so when
  70331. +# we write them to config.status, we have to be sure to quote all
  70332. +# embedded single quotes properly. In configure, this macro expands
  70333. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  70334. +#
  70335. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  70336. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  70337. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  70338. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  70339. +
  70340. +
  70341. +# _LT_LIBTOOL_TAGS
  70342. +# ----------------
  70343. +# Output comment and list of tags supported by the script
  70344. +m4_defun([_LT_LIBTOOL_TAGS],
  70345. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  70346. +available_tags="_LT_TAGS"dnl
  70347. +])
  70348. +
  70349. +
  70350. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  70351. +# -----------------------------------
  70352. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  70353. +# expand to a commented shell variable setting:
  70354. +#
  70355. +# # Some comment about what VAR is for.
  70356. +# visible_name=$lt_internal_name
  70357. +m4_define([_LT_LIBTOOL_DECLARE],
  70358. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  70359. + [description])))[]dnl
  70360. +m4_pushdef([_libtool_name],
  70361. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  70362. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  70363. + [0], [_libtool_name=[$]$1],
  70364. + [1], [_libtool_name=$lt_[]$1],
  70365. + [2], [_libtool_name=$lt_[]$1],
  70366. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  70367. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  70368. +])
  70369. +
  70370. +
  70371. +# _LT_LIBTOOL_CONFIG_VARS
  70372. +# -----------------------
  70373. +# Produce commented declarations of non-tagged libtool config variables
  70374. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  70375. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  70376. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  70377. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  70378. +[m4_foreach([_lt_var],
  70379. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  70380. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  70381. +
  70382. +
  70383. +# _LT_LIBTOOL_TAG_VARS(TAG)
  70384. +# -------------------------
  70385. +m4_define([_LT_LIBTOOL_TAG_VARS],
  70386. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  70387. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  70388. +
  70389. +
  70390. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  70391. +# ------------------------------
  70392. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  70393. +
  70394. +
  70395. +# _LT_CONFIG_COMMANDS
  70396. +# -------------------
  70397. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  70398. +# variables for single and double quote escaping we saved from calls
  70399. +# to _LT_DECL, we can put quote escaped variables declarations
  70400. +# into `config.status', and then the shell code to quote escape them in
  70401. +# for loops in `config.status'. Finally, any additional code accumulated
  70402. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  70403. +m4_defun([_LT_CONFIG_COMMANDS],
  70404. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  70405. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  70406. + dnl instead of duplicating it all over again into config.status,
  70407. + dnl then we will have config.status run $CONFIG_LT later, so it
  70408. + dnl needs to know what name is stored there:
  70409. + [AC_CONFIG_COMMANDS([libtool],
  70410. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  70411. + dnl If the libtool generation code is destined for config.status,
  70412. + dnl expand the accumulated commands and init code now:
  70413. + [AC_CONFIG_COMMANDS([libtool],
  70414. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  70415. +])#_LT_CONFIG_COMMANDS
  70416. +
  70417. +
  70418. +# Initialize.
  70419. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  70420. +[
  70421. +
  70422. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  70423. +# if CDPATH is set.
  70424. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  70425. +
  70426. +sed_quote_subst='$sed_quote_subst'
  70427. +double_quote_subst='$double_quote_subst'
  70428. +delay_variable_subst='$delay_variable_subst'
  70429. +_LT_CONFIG_STATUS_DECLARATIONS
  70430. +LTCC='$LTCC'
  70431. +LTCFLAGS='$LTCFLAGS'
  70432. +compiler='$compiler_DEFAULT'
  70433. +
  70434. +# Quote evaled strings.
  70435. +for var in lt_decl_all_varnames([[ \
  70436. +]], lt_decl_quote_varnames); do
  70437. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  70438. + *[[\\\\\\\`\\"\\\$]]*)
  70439. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  70440. + ;;
  70441. + *)
  70442. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  70443. + ;;
  70444. + esac
  70445. +done
  70446. +
  70447. +# Double-quote double-evaled strings.
  70448. +for var in lt_decl_all_varnames([[ \
  70449. +]], lt_decl_dquote_varnames); do
  70450. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  70451. + *[[\\\\\\\`\\"\\\$]]*)
  70452. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  70453. + ;;
  70454. + *)
  70455. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  70456. + ;;
  70457. + esac
  70458. +done
  70459. +
  70460. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  70461. +case \$lt_ECHO in
  70462. +*'\\\[$]0 --fallback-echo"')dnl "
  70463. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  70464. + ;;
  70465. +esac
  70466. +
  70467. +_LT_OUTPUT_LIBTOOL_INIT
  70468. +])
  70469. +
  70470. +
  70471. +# LT_OUTPUT
  70472. +# ---------
  70473. +# This macro allows early generation of the libtool script (before
  70474. +# AC_OUTPUT is called), incase it is used in configure for compilation
  70475. +# tests.
  70476. +AC_DEFUN([LT_OUTPUT],
  70477. +[: ${CONFIG_LT=./config.lt}
  70478. +AC_MSG_NOTICE([creating $CONFIG_LT])
  70479. +cat >"$CONFIG_LT" <<_LTEOF
  70480. +#! $SHELL
  70481. +# Generated by $as_me.
  70482. +# Run this file to recreate a libtool stub with the current configuration.
  70483. +
  70484. +lt_cl_silent=false
  70485. +SHELL=\${CONFIG_SHELL-$SHELL}
  70486. +_LTEOF
  70487. +
  70488. +cat >>"$CONFIG_LT" <<\_LTEOF
  70489. +AS_SHELL_SANITIZE
  70490. +_AS_PREPARE
  70491. +
  70492. +exec AS_MESSAGE_FD>&1
  70493. +exec AS_MESSAGE_LOG_FD>>config.log
  70494. +{
  70495. + echo
  70496. + AS_BOX([Running $as_me.])
  70497. +} >&AS_MESSAGE_LOG_FD
  70498. +
  70499. +lt_cl_help="\
  70500. +\`$as_me' creates a local libtool stub from the current configuration,
  70501. +for use in further configure time tests before the real libtool is
  70502. +generated.
  70503. +
  70504. +Usage: $[0] [[OPTIONS]]
  70505. +
  70506. + -h, --help print this help, then exit
  70507. + -V, --version print version number, then exit
  70508. + -q, --quiet do not print progress messages
  70509. + -d, --debug don't remove temporary files
  70510. +
  70511. +Report bugs to <bug-libtool@gnu.org>."
  70512. +
  70513. +lt_cl_version="\
  70514. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  70515. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  70516. +configured by $[0], generated by m4_PACKAGE_STRING.
  70517. +
  70518. +Copyright (C) 2008 Free Software Foundation, Inc.
  70519. +This config.lt script is free software; the Free Software Foundation
  70520. +gives unlimited permision to copy, distribute and modify it."
  70521. +
  70522. +while test $[#] != 0
  70523. +do
  70524. + case $[1] in
  70525. + --version | --v* | -V )
  70526. + echo "$lt_cl_version"; exit 0 ;;
  70527. + --help | --h* | -h )
  70528. + echo "$lt_cl_help"; exit 0 ;;
  70529. + --debug | --d* | -d )
  70530. + debug=: ;;
  70531. + --quiet | --q* | --silent | --s* | -q )
  70532. + lt_cl_silent=: ;;
  70533. +
  70534. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  70535. +Try \`$[0] --help' for more information.]) ;;
  70536. +
  70537. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  70538. +Try \`$[0] --help' for more information.]) ;;
  70539. + esac
  70540. + shift
  70541. +done
  70542. +
  70543. +if $lt_cl_silent; then
  70544. + exec AS_MESSAGE_FD>/dev/null
  70545. +fi
  70546. +_LTEOF
  70547. +
  70548. +cat >>"$CONFIG_LT" <<_LTEOF
  70549. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  70550. +_LTEOF
  70551. +
  70552. +cat >>"$CONFIG_LT" <<\_LTEOF
  70553. +AC_MSG_NOTICE([creating $ofile])
  70554. +_LT_OUTPUT_LIBTOOL_COMMANDS
  70555. +AS_EXIT(0)
  70556. +_LTEOF
  70557. +chmod +x "$CONFIG_LT"
  70558. +
  70559. +# configure is writing to config.log, but config.lt does its own redirection,
  70560. +# appending to config.log, which fails on DOS, as config.log is still kept
  70561. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  70562. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  70563. +if test "$no_create" != yes; then
  70564. + lt_cl_success=:
  70565. + test "$silent" = yes &&
  70566. + lt_config_lt_args="$lt_config_lt_args --quiet"
  70567. + exec AS_MESSAGE_LOG_FD>/dev/null
  70568. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  70569. + exec AS_MESSAGE_LOG_FD>>config.log
  70570. + $lt_cl_success || AS_EXIT(1)
  70571. +fi
  70572. +])# LT_OUTPUT
  70573. +
  70574. +
  70575. +# _LT_CONFIG(TAG)
  70576. +# ---------------
  70577. +# If TAG is the built-in tag, create an initial libtool script with a
  70578. +# default configuration from the untagged config vars. Otherwise add code
  70579. +# to config.status for appending the configuration named by TAG from the
  70580. +# matching tagged config vars.
  70581. +m4_defun([_LT_CONFIG],
  70582. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  70583. +_LT_CONFIG_SAVE_COMMANDS([
  70584. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  70585. + m4_if(_LT_TAG, [C], [
  70586. + # See if we are running on zsh, and set the options which allow our
  70587. + # commands through without removal of \ escapes.
  70588. + if test -n "${ZSH_VERSION+set}" ; then
  70589. + setopt NO_GLOB_SUBST
  70590. + fi
  70591. +
  70592. + cfgfile="${ofile}T"
  70593. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  70594. + $RM "$cfgfile"
  70595. +
  70596. + cat <<_LT_EOF >> "$cfgfile"
  70597. +#! $SHELL
  70598. +
  70599. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  70600. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  70601. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  70602. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  70603. +#
  70604. +_LT_COPYING
  70605. +_LT_LIBTOOL_TAGS
  70606. +
  70607. +# ### BEGIN LIBTOOL CONFIG
  70608. +_LT_LIBTOOL_CONFIG_VARS
  70609. +_LT_LIBTOOL_TAG_VARS
  70610. +# ### END LIBTOOL CONFIG
  70611. +
  70612. +_LT_EOF
  70613. +
  70614. + case $host_os in
  70615. + aix3*)
  70616. + cat <<\_LT_EOF >> "$cfgfile"
  70617. +# AIX sometimes has problems with the GCC collect2 program. For some
  70618. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  70619. +# vanish in a puff of smoke.
  70620. +if test "X${COLLECT_NAMES+set}" != Xset; then
  70621. + COLLECT_NAMES=
  70622. + export COLLECT_NAMES
  70623. +fi
  70624. +_LT_EOF
  70625. + ;;
  70626. + esac
  70627. +
  70628. + _LT_PROG_LTMAIN
  70629. +
  70630. + # We use sed instead of cat because bash on DJGPP gets confused if
  70631. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  70632. + # text mode, it properly converts lines to CR/LF. This bash problem
  70633. + # is reportedly fixed, but why not run on old versions too?
  70634. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  70635. + || (rm -f "$cfgfile"; exit 1)
  70636. +
  70637. + _LT_PROG_XSI_SHELLFNS
  70638. +
  70639. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  70640. + || (rm -f "$cfgfile"; exit 1)
  70641. +
  70642. + mv -f "$cfgfile" "$ofile" ||
  70643. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  70644. + chmod +x "$ofile"
  70645. +],
  70646. +[cat <<_LT_EOF >> "$ofile"
  70647. +
  70648. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  70649. +dnl in a comment (ie after a #).
  70650. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  70651. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  70652. +# ### END LIBTOOL TAG CONFIG: $1
  70653. +_LT_EOF
  70654. +])dnl /m4_if
  70655. +],
  70656. +[m4_if([$1], [], [
  70657. + PACKAGE='$PACKAGE'
  70658. + VERSION='$VERSION'
  70659. + TIMESTAMP='$TIMESTAMP'
  70660. + RM='$RM'
  70661. + ofile='$ofile'], [])
  70662. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  70663. +])# _LT_CONFIG
  70664. +
  70665. +
  70666. +# LT_SUPPORTED_TAG(TAG)
  70667. +# ---------------------
  70668. +# Trace this macro to discover what tags are supported by the libtool
  70669. +# --tag option, using:
  70670. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  70671. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  70672. +
  70673. +
  70674. +# C support is built-in for now
  70675. +m4_define([_LT_LANG_C_enabled], [])
  70676. +m4_define([_LT_TAGS], [])
  70677. +
  70678. +
  70679. +# LT_LANG(LANG)
  70680. +# -------------
  70681. +# Enable libtool support for the given language if not already enabled.
  70682. +AC_DEFUN([LT_LANG],
  70683. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  70684. +m4_case([$1],
  70685. + [C], [_LT_LANG(C)],
  70686. + [C++], [_LT_LANG(CXX)],
  70687. + [Java], [_LT_LANG(GCJ)],
  70688. + [Fortran 77], [_LT_LANG(F77)],
  70689. + [Fortran], [_LT_LANG(FC)],
  70690. + [Windows Resource], [_LT_LANG(RC)],
  70691. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  70692. + [_LT_LANG($1)],
  70693. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  70694. +])# LT_LANG
  70695. +
  70696. +
  70697. +# _LT_LANG(LANGNAME)
  70698. +# ------------------
  70699. +m4_defun([_LT_LANG],
  70700. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  70701. + [LT_SUPPORTED_TAG([$1])dnl
  70702. + m4_append([_LT_TAGS], [$1 ])dnl
  70703. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  70704. + _LT_LANG_$1_CONFIG($1)])dnl
  70705. +])# _LT_LANG
  70706. +
  70707. +
  70708. +# _LT_LANG_DEFAULT_CONFIG
  70709. +# -----------------------
  70710. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  70711. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  70712. + [LT_LANG(CXX)],
  70713. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  70714. +
  70715. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  70716. + [LT_LANG(F77)],
  70717. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  70718. +
  70719. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  70720. + [LT_LANG(FC)],
  70721. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  70722. +
  70723. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  70724. +dnl pulling things in needlessly.
  70725. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  70726. + [LT_LANG(GCJ)],
  70727. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  70728. + [LT_LANG(GCJ)],
  70729. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  70730. + [LT_LANG(GCJ)],
  70731. + [m4_ifdef([AC_PROG_GCJ],
  70732. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  70733. + m4_ifdef([A][M_PROG_GCJ],
  70734. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  70735. + m4_ifdef([LT_PROG_GCJ],
  70736. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  70737. +
  70738. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  70739. + [LT_LANG(RC)],
  70740. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  70741. +])# _LT_LANG_DEFAULT_CONFIG
  70742. +
  70743. +# Obsolete macros:
  70744. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  70745. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  70746. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  70747. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  70748. +dnl aclocal-1.4 backwards compatibility:
  70749. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  70750. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  70751. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  70752. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  70753. +
  70754. +
  70755. +# _LT_TAG_COMPILER
  70756. +# ----------------
  70757. +m4_defun([_LT_TAG_COMPILER],
  70758. +[AC_REQUIRE([AC_PROG_CC])dnl
  70759. +
  70760. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  70761. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  70762. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  70763. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  70764. +
  70765. +# If no C compiler was specified, use CC.
  70766. +LTCC=${LTCC-"$CC"}
  70767. +
  70768. +# If no C compiler flags were specified, use CFLAGS.
  70769. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  70770. +
  70771. +# Allow CC to be a program name with arguments.
  70772. +compiler=$CC
  70773. +])# _LT_TAG_COMPILER
  70774. +
  70775. +
  70776. +# _LT_COMPILER_BOILERPLATE
  70777. +# ------------------------
  70778. +# Check for compiler boilerplate output or warnings with
  70779. +# the simple compiler test code.
  70780. +m4_defun([_LT_COMPILER_BOILERPLATE],
  70781. +[m4_require([_LT_DECL_SED])dnl
  70782. +ac_outfile=conftest.$ac_objext
  70783. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  70784. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  70785. +_lt_compiler_boilerplate=`cat conftest.err`
  70786. +$RM conftest*
  70787. +])# _LT_COMPILER_BOILERPLATE
  70788. +
  70789. +
  70790. +# _LT_LINKER_BOILERPLATE
  70791. +# ----------------------
  70792. +# Check for linker boilerplate output or warnings with
  70793. +# the simple link test code.
  70794. +m4_defun([_LT_LINKER_BOILERPLATE],
  70795. +[m4_require([_LT_DECL_SED])dnl
  70796. +ac_outfile=conftest.$ac_objext
  70797. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  70798. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  70799. +_lt_linker_boilerplate=`cat conftest.err`
  70800. +$RM -r conftest*
  70801. +])# _LT_LINKER_BOILERPLATE
  70802. +
  70803. +# _LT_REQUIRED_DARWIN_CHECKS
  70804. +# -------------------------
  70805. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  70806. + case $host_os in
  70807. + rhapsody* | darwin*)
  70808. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  70809. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  70810. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  70811. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  70812. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  70813. + _LT_DECL([], [DSYMUTIL], [1],
  70814. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  70815. + _LT_DECL([], [NMEDIT], [1],
  70816. + [Tool to change global to local symbols on Mac OS X])
  70817. + _LT_DECL([], [LIPO], [1],
  70818. + [Tool to manipulate fat objects and archives on Mac OS X])
  70819. + _LT_DECL([], [OTOOL], [1],
  70820. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  70821. + _LT_DECL([], [OTOOL64], [1],
  70822. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  70823. +
  70824. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  70825. + [lt_cv_apple_cc_single_mod=no
  70826. + if test -z "${LT_MULTI_MODULE}"; then
  70827. + # By default we will add the -single_module flag. You can override
  70828. + # by either setting the environment variable LT_MULTI_MODULE
  70829. + # non-empty at configure time, or by adding -multi_module to the
  70830. + # link flags.
  70831. + rm -rf libconftest.dylib*
  70832. + echo "int foo(void){return 1;}" > conftest.c
  70833. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  70834. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  70835. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  70836. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  70837. + _lt_result=$?
  70838. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  70839. + lt_cv_apple_cc_single_mod=yes
  70840. + else
  70841. + cat conftest.err >&AS_MESSAGE_LOG_FD
  70842. + fi
  70843. + rm -rf libconftest.dylib*
  70844. + rm -f conftest.*
  70845. + fi])
  70846. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  70847. + [lt_cv_ld_exported_symbols_list],
  70848. + [lt_cv_ld_exported_symbols_list=no
  70849. + save_LDFLAGS=$LDFLAGS
  70850. + echo "_main" > conftest.sym
  70851. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  70852. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  70853. + [lt_cv_ld_exported_symbols_list=yes],
  70854. + [lt_cv_ld_exported_symbols_list=no])
  70855. + LDFLAGS="$save_LDFLAGS"
  70856. + ])
  70857. + case $host_os in
  70858. + rhapsody* | darwin1.[[012]])
  70859. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  70860. + darwin1.*)
  70861. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  70862. + darwin*) # darwin 5.x on
  70863. + # if running on 10.5 or later, the deployment target defaults
  70864. + # to the OS version, if on x86, and 10.4, the deployment
  70865. + # target defaults to 10.4. Don't you love it?
  70866. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  70867. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  70868. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  70869. + 10.[[012]]*)
  70870. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  70871. + 10.*)
  70872. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  70873. + esac
  70874. + ;;
  70875. + esac
  70876. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  70877. + _lt_dar_single_mod='$single_module'
  70878. + fi
  70879. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  70880. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  70881. + else
  70882. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  70883. + fi
  70884. + if test "$DSYMUTIL" != ":"; then
  70885. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  70886. + else
  70887. + _lt_dsymutil=
  70888. + fi
  70889. + ;;
  70890. + esac
  70891. +])
  70892. +
  70893. +
  70894. +# _LT_DARWIN_LINKER_FEATURES
  70895. +# --------------------------
  70896. +# Checks for linker and compiler features on darwin
  70897. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  70898. +[
  70899. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  70900. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  70901. + _LT_TAGVAR(hardcode_direct, $1)=no
  70902. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  70903. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  70904. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  70905. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  70906. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  70907. + case $cc_basename in
  70908. + ifort*) _lt_dar_can_shared=yes ;;
  70909. + *) _lt_dar_can_shared=$GCC ;;
  70910. + esac
  70911. + if test "$_lt_dar_can_shared" = "yes"; then
  70912. + output_verbose_link_cmd=echo
  70913. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  70914. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  70915. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  70916. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  70917. + m4_if([$1], [CXX],
  70918. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  70919. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  70920. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  70921. + fi
  70922. +],[])
  70923. + else
  70924. + _LT_TAGVAR(ld_shlibs, $1)=no
  70925. + fi
  70926. +])
  70927. +
  70928. +# _LT_SYS_MODULE_PATH_AIX
  70929. +# -----------------------
  70930. +# Links a minimal program and checks the executable
  70931. +# for the system default hardcoded library path. In most cases,
  70932. +# this is /usr/lib:/lib, but when the MPI compilers are used
  70933. +# the location of the communication and MPI libs are included too.
  70934. +# If we don't find anything, use the default library path according
  70935. +# to the aix ld manual.
  70936. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  70937. +[m4_require([_LT_DECL_SED])dnl
  70938. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  70939. +lt_aix_libpath_sed='
  70940. + /Import File Strings/,/^$/ {
  70941. + /^0/ {
  70942. + s/^0 *\(.*\)$/\1/
  70943. + p
  70944. + }
  70945. + }'
  70946. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  70947. +# Check for a 64-bit object if we didn't find anything.
  70948. +if test -z "$aix_libpath"; then
  70949. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  70950. +fi],[])
  70951. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  70952. +])# _LT_SYS_MODULE_PATH_AIX
  70953. +
  70954. +
  70955. +# _LT_SHELL_INIT(ARG)
  70956. +# -------------------
  70957. +m4_define([_LT_SHELL_INIT],
  70958. +[ifdef([AC_DIVERSION_NOTICE],
  70959. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  70960. + [AC_DIVERT_PUSH(NOTICE)])
  70961. +$1
  70962. +AC_DIVERT_POP
  70963. +])# _LT_SHELL_INIT
  70964. +
  70965. +
  70966. +# _LT_PROG_ECHO_BACKSLASH
  70967. +# -----------------------
  70968. +# Add some code to the start of the generated configure script which
  70969. +# will find an echo command which doesn't interpret backslashes.
  70970. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  70971. +[_LT_SHELL_INIT([
  70972. +# Check that we are running under the correct shell.
  70973. +SHELL=${CONFIG_SHELL-/bin/sh}
  70974. +
  70975. +case X$lt_ECHO in
  70976. +X*--fallback-echo)
  70977. + # Remove one level of quotation (which was required for Make).
  70978. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  70979. + ;;
  70980. +esac
  70981. +
  70982. +ECHO=${lt_ECHO-echo}
  70983. +if test "X[$]1" = X--no-reexec; then
  70984. + # Discard the --no-reexec flag, and continue.
  70985. + shift
  70986. +elif test "X[$]1" = X--fallback-echo; then
  70987. + # Avoid inline document here, it may be left over
  70988. + :
  70989. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  70990. + # Yippee, $ECHO works!
  70991. + :
  70992. +else
  70993. + # Restart under the correct shell.
  70994. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  70995. +fi
  70996. +
  70997. +if test "X[$]1" = X--fallback-echo; then
  70998. + # used as fallback echo
  70999. + shift
  71000. + cat <<_LT_EOF
  71001. +[$]*
  71002. +_LT_EOF
  71003. + exit 0
  71004. +fi
  71005. +
  71006. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  71007. +# if CDPATH is set.
  71008. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  71009. +
  71010. +if test -z "$lt_ECHO"; then
  71011. + if test "X${echo_test_string+set}" != Xset; then
  71012. + # find a string as large as possible, as long as the shell can cope with it
  71013. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  71014. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  71015. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  71016. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  71017. + then
  71018. + break
  71019. + fi
  71020. + done
  71021. + fi
  71022. +
  71023. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  71024. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  71025. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71026. + :
  71027. + else
  71028. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  71029. + # backslashes. This makes it impossible to quote backslashes using
  71030. + # echo "$something" | sed 's/\\/\\\\/g'
  71031. + #
  71032. + # So, first we look for a working echo in the user's PATH.
  71033. +
  71034. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  71035. + for dir in $PATH /usr/ucb; do
  71036. + IFS="$lt_save_ifs"
  71037. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  71038. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  71039. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  71040. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71041. + ECHO="$dir/echo"
  71042. + break
  71043. + fi
  71044. + done
  71045. + IFS="$lt_save_ifs"
  71046. +
  71047. + if test "X$ECHO" = Xecho; then
  71048. + # We didn't find a better echo, so look for alternatives.
  71049. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  71050. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  71051. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71052. + # This shell has a builtin print -r that does the trick.
  71053. + ECHO='print -r'
  71054. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  71055. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  71056. + # If we have ksh, try running configure again with it.
  71057. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  71058. + export ORIGINAL_CONFIG_SHELL
  71059. + CONFIG_SHELL=/bin/ksh
  71060. + export CONFIG_SHELL
  71061. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  71062. + else
  71063. + # Try using printf.
  71064. + ECHO='printf %s\n'
  71065. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  71066. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  71067. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71068. + # Cool, printf works
  71069. + :
  71070. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  71071. + test "X$echo_testing_string" = 'X\t' &&
  71072. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  71073. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71074. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  71075. + export CONFIG_SHELL
  71076. + SHELL="$CONFIG_SHELL"
  71077. + export SHELL
  71078. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  71079. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  71080. + test "X$echo_testing_string" = 'X\t' &&
  71081. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  71082. + test "X$echo_testing_string" = "X$echo_test_string"; then
  71083. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  71084. + else
  71085. + # maybe with a smaller string...
  71086. + prev=:
  71087. +
  71088. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  71089. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  71090. + then
  71091. + break
  71092. + fi
  71093. + prev="$cmd"
  71094. + done
  71095. +
  71096. + if test "$prev" != 'sed 50q "[$]0"'; then
  71097. + echo_test_string=`eval $prev`
  71098. + export echo_test_string
  71099. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  71100. + else
  71101. + # Oops. We lost completely, so just stick with echo.
  71102. + ECHO=echo
  71103. + fi
  71104. + fi
  71105. + fi
  71106. + fi
  71107. + fi
  71108. +fi
  71109. +
  71110. +# Copy echo and quote the copy suitably for passing to libtool from
  71111. +# the Makefile, instead of quoting the original, which is used later.
  71112. +lt_ECHO=$ECHO
  71113. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  71114. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  71115. +fi
  71116. +
  71117. +AC_SUBST(lt_ECHO)
  71118. +])
  71119. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  71120. +_LT_DECL([], [ECHO], [1],
  71121. + [An echo program that does not interpret backslashes])
  71122. +])# _LT_PROG_ECHO_BACKSLASH
  71123. +
  71124. +
  71125. +# _LT_ENABLE_LOCK
  71126. +# ---------------
  71127. +m4_defun([_LT_ENABLE_LOCK],
  71128. +[AC_ARG_ENABLE([libtool-lock],
  71129. + [AS_HELP_STRING([--disable-libtool-lock],
  71130. + [avoid locking (might break parallel builds)])])
  71131. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  71132. +
  71133. +# Some flags need to be propagated to the compiler or linker for good
  71134. +# libtool support.
  71135. +case $host in
  71136. +ia64-*-hpux*)
  71137. + # Find out which ABI we are using.
  71138. + echo 'int i;' > conftest.$ac_ext
  71139. + if AC_TRY_EVAL(ac_compile); then
  71140. + case `/usr/bin/file conftest.$ac_objext` in
  71141. + *ELF-32*)
  71142. + HPUX_IA64_MODE="32"
  71143. + ;;
  71144. + *ELF-64*)
  71145. + HPUX_IA64_MODE="64"
  71146. + ;;
  71147. + esac
  71148. + fi
  71149. + rm -rf conftest*
  71150. + ;;
  71151. +*-*-irix6*)
  71152. + # Find out which ABI we are using.
  71153. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  71154. + if AC_TRY_EVAL(ac_compile); then
  71155. + if test "$lt_cv_prog_gnu_ld" = yes; then
  71156. + case `/usr/bin/file conftest.$ac_objext` in
  71157. + *32-bit*)
  71158. + LD="${LD-ld} -melf32bsmip"
  71159. + ;;
  71160. + *N32*)
  71161. + LD="${LD-ld} -melf32bmipn32"
  71162. + ;;
  71163. + *64-bit*)
  71164. + LD="${LD-ld} -melf64bmip"
  71165. + ;;
  71166. + esac
  71167. + else
  71168. + case `/usr/bin/file conftest.$ac_objext` in
  71169. + *32-bit*)
  71170. + LD="${LD-ld} -32"
  71171. + ;;
  71172. + *N32*)
  71173. + LD="${LD-ld} -n32"
  71174. + ;;
  71175. + *64-bit*)
  71176. + LD="${LD-ld} -64"
  71177. + ;;
  71178. + esac
  71179. + fi
  71180. + fi
  71181. + rm -rf conftest*
  71182. + ;;
  71183. +
  71184. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  71185. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  71186. + # Find out which ABI we are using.
  71187. + echo 'int i;' > conftest.$ac_ext
  71188. + if AC_TRY_EVAL(ac_compile); then
  71189. + case `/usr/bin/file conftest.o` in
  71190. + *32-bit*)
  71191. + case $host in
  71192. + x86_64-*kfreebsd*-gnu)
  71193. + LD="${LD-ld} -m elf_i386_fbsd"
  71194. + ;;
  71195. + x86_64-*linux*)
  71196. + LD="${LD-ld} -m elf_i386"
  71197. + ;;
  71198. + ppc64-*linux*|powerpc64-*linux*)
  71199. + LD="${LD-ld} -m elf32ppclinux"
  71200. + ;;
  71201. + s390x-*linux*)
  71202. + LD="${LD-ld} -m elf_s390"
  71203. + ;;
  71204. + sparc64-*linux*)
  71205. + LD="${LD-ld} -m elf32_sparc"
  71206. + ;;
  71207. + esac
  71208. + ;;
  71209. + *64-bit*)
  71210. + case $host in
  71211. + x86_64-*kfreebsd*-gnu)
  71212. + LD="${LD-ld} -m elf_x86_64_fbsd"
  71213. + ;;
  71214. + x86_64-*linux*)
  71215. + LD="${LD-ld} -m elf_x86_64"
  71216. + ;;
  71217. + ppc*-*linux*|powerpc*-*linux*)
  71218. + LD="${LD-ld} -m elf64ppc"
  71219. + ;;
  71220. + s390*-*linux*|s390*-*tpf*)
  71221. + LD="${LD-ld} -m elf64_s390"
  71222. + ;;
  71223. + sparc*-*linux*)
  71224. + LD="${LD-ld} -m elf64_sparc"
  71225. + ;;
  71226. + esac
  71227. + ;;
  71228. + esac
  71229. + fi
  71230. + rm -rf conftest*
  71231. + ;;
  71232. +
  71233. +*-*-sco3.2v5*)
  71234. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  71235. + SAVE_CFLAGS="$CFLAGS"
  71236. + CFLAGS="$CFLAGS -belf"
  71237. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  71238. + [AC_LANG_PUSH(C)
  71239. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  71240. + AC_LANG_POP])
  71241. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  71242. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  71243. + CFLAGS="$SAVE_CFLAGS"
  71244. + fi
  71245. + ;;
  71246. +sparc*-*solaris*)
  71247. + # Find out which ABI we are using.
  71248. + echo 'int i;' > conftest.$ac_ext
  71249. + if AC_TRY_EVAL(ac_compile); then
  71250. + case `/usr/bin/file conftest.o` in
  71251. + *64-bit*)
  71252. + case $lt_cv_prog_gnu_ld in
  71253. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  71254. + *)
  71255. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  71256. + LD="${LD-ld} -64"
  71257. + fi
  71258. + ;;
  71259. + esac
  71260. + ;;
  71261. + esac
  71262. + fi
  71263. + rm -rf conftest*
  71264. + ;;
  71265. +esac
  71266. +
  71267. +need_locks="$enable_libtool_lock"
  71268. +])# _LT_ENABLE_LOCK
  71269. +
  71270. +
  71271. +# _LT_CMD_OLD_ARCHIVE
  71272. +# -------------------
  71273. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  71274. +[AC_CHECK_TOOL(AR, ar, false)
  71275. +test -z "$AR" && AR=ar
  71276. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  71277. +_LT_DECL([], [AR], [1], [The archiver])
  71278. +_LT_DECL([], [AR_FLAGS], [1])
  71279. +
  71280. +AC_CHECK_TOOL(STRIP, strip, :)
  71281. +test -z "$STRIP" && STRIP=:
  71282. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  71283. +
  71284. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  71285. +test -z "$RANLIB" && RANLIB=:
  71286. +_LT_DECL([], [RANLIB], [1],
  71287. + [Commands used to install an old-style archive])
  71288. +
  71289. +# Determine commands to create old-style static archives.
  71290. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  71291. +old_postinstall_cmds='chmod 644 $oldlib'
  71292. +old_postuninstall_cmds=
  71293. +
  71294. +if test -n "$RANLIB"; then
  71295. + case $host_os in
  71296. + openbsd*)
  71297. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  71298. + ;;
  71299. + *)
  71300. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  71301. + ;;
  71302. + esac
  71303. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  71304. +fi
  71305. +_LT_DECL([], [old_postinstall_cmds], [2])
  71306. +_LT_DECL([], [old_postuninstall_cmds], [2])
  71307. +_LT_TAGDECL([], [old_archive_cmds], [2],
  71308. + [Commands used to build an old-style archive])
  71309. +])# _LT_CMD_OLD_ARCHIVE
  71310. +
  71311. +
  71312. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  71313. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  71314. +# ----------------------------------------------------------------
  71315. +# Check whether the given compiler option works
  71316. +AC_DEFUN([_LT_COMPILER_OPTION],
  71317. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  71318. +m4_require([_LT_DECL_SED])dnl
  71319. +AC_CACHE_CHECK([$1], [$2],
  71320. + [$2=no
  71321. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  71322. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  71323. + lt_compiler_flag="$3"
  71324. + # Insert the option either (1) after the last *FLAGS variable, or
  71325. + # (2) before a word containing "conftest.", or (3) at the end.
  71326. + # Note that $ac_compile itself does not contain backslashes and begins
  71327. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  71328. + # The option is referenced via a variable to avoid confusing sed.
  71329. + lt_compile=`echo "$ac_compile" | $SED \
  71330. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  71331. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  71332. + -e 's:$: $lt_compiler_flag:'`
  71333. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  71334. + (eval "$lt_compile" 2>conftest.err)
  71335. + ac_status=$?
  71336. + cat conftest.err >&AS_MESSAGE_LOG_FD
  71337. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  71338. + if (exit $ac_status) && test -s "$ac_outfile"; then
  71339. + # The compiler can only warn and ignore the option if not recognized
  71340. + # So say no if there are warnings other than the usual output.
  71341. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  71342. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  71343. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  71344. + $2=yes
  71345. + fi
  71346. + fi
  71347. + $RM conftest*
  71348. +])
  71349. +
  71350. +if test x"[$]$2" = xyes; then
  71351. + m4_if([$5], , :, [$5])
  71352. +else
  71353. + m4_if([$6], , :, [$6])
  71354. +fi
  71355. +])# _LT_COMPILER_OPTION
  71356. +
  71357. +# Old name:
  71358. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  71359. +dnl aclocal-1.4 backwards compatibility:
  71360. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  71361. +
  71362. +
  71363. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  71364. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  71365. +# ----------------------------------------------------
  71366. +# Check whether the given linker option works
  71367. +AC_DEFUN([_LT_LINKER_OPTION],
  71368. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  71369. +m4_require([_LT_DECL_SED])dnl
  71370. +AC_CACHE_CHECK([$1], [$2],
  71371. + [$2=no
  71372. + save_LDFLAGS="$LDFLAGS"
  71373. + LDFLAGS="$LDFLAGS $3"
  71374. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  71375. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  71376. + # The linker can only warn and ignore the option if not recognized
  71377. + # So say no if there are warnings
  71378. + if test -s conftest.err; then
  71379. + # Append any errors to the config.log.
  71380. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  71381. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  71382. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  71383. + if diff conftest.exp conftest.er2 >/dev/null; then
  71384. + $2=yes
  71385. + fi
  71386. + else
  71387. + $2=yes
  71388. + fi
  71389. + fi
  71390. + $RM -r conftest*
  71391. + LDFLAGS="$save_LDFLAGS"
  71392. +])
  71393. +
  71394. +if test x"[$]$2" = xyes; then
  71395. + m4_if([$4], , :, [$4])
  71396. +else
  71397. + m4_if([$5], , :, [$5])
  71398. +fi
  71399. +])# _LT_LINKER_OPTION
  71400. +
  71401. +# Old name:
  71402. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  71403. +dnl aclocal-1.4 backwards compatibility:
  71404. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  71405. +
  71406. +
  71407. +# LT_CMD_MAX_LEN
  71408. +#---------------
  71409. +AC_DEFUN([LT_CMD_MAX_LEN],
  71410. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  71411. +# find the maximum length of command line arguments
  71412. +AC_MSG_CHECKING([the maximum length of command line arguments])
  71413. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  71414. + i=0
  71415. + teststring="ABCD"
  71416. +
  71417. + case $build_os in
  71418. + msdosdjgpp*)
  71419. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  71420. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  71421. + # during glob expansion). Even if it were fixed, the result of this
  71422. + # check would be larger than it should be.
  71423. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  71424. + ;;
  71425. +
  71426. + gnu*)
  71427. + # Under GNU Hurd, this test is not required because there is
  71428. + # no limit to the length of command line arguments.
  71429. + # Libtool will interpret -1 as no limit whatsoever
  71430. + lt_cv_sys_max_cmd_len=-1;
  71431. + ;;
  71432. +
  71433. + cygwin* | mingw* | cegcc*)
  71434. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  71435. + # about 5 minutes as the teststring grows exponentially.
  71436. + # Worse, since 9x/ME are not pre-emptively multitasking,
  71437. + # you end up with a "frozen" computer, even though with patience
  71438. + # the test eventually succeeds (with a max line length of 256k).
  71439. + # Instead, let's just punt: use the minimum linelength reported by
  71440. + # all of the supported platforms: 8192 (on NT/2K/XP).
  71441. + lt_cv_sys_max_cmd_len=8192;
  71442. + ;;
  71443. +
  71444. + amigaos*)
  71445. + # On AmigaOS with pdksh, this test takes hours, literally.
  71446. + # So we just punt and use a minimum line length of 8192.
  71447. + lt_cv_sys_max_cmd_len=8192;
  71448. + ;;
  71449. +
  71450. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  71451. + # This has been around since 386BSD, at least. Likely further.
  71452. + if test -x /sbin/sysctl; then
  71453. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  71454. + elif test -x /usr/sbin/sysctl; then
  71455. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  71456. + else
  71457. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  71458. + fi
  71459. + # And add a safety zone
  71460. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  71461. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  71462. + ;;
  71463. +
  71464. + interix*)
  71465. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  71466. + lt_cv_sys_max_cmd_len=196608
  71467. + ;;
  71468. +
  71469. + osf*)
  71470. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  71471. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  71472. + # nice to cause kernel panics so lets avoid the loop below.
  71473. + # First set a reasonable default.
  71474. + lt_cv_sys_max_cmd_len=16384
  71475. + #
  71476. + if test -x /sbin/sysconfig; then
  71477. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  71478. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  71479. + esac
  71480. + fi
  71481. + ;;
  71482. + sco3.2v5*)
  71483. + lt_cv_sys_max_cmd_len=102400
  71484. + ;;
  71485. + sysv5* | sco5v6* | sysv4.2uw2*)
  71486. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  71487. + if test -n "$kargmax"; then
  71488. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  71489. + else
  71490. + lt_cv_sys_max_cmd_len=32768
  71491. + fi
  71492. + ;;
  71493. + *)
  71494. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  71495. + if test -n "$lt_cv_sys_max_cmd_len"; then
  71496. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  71497. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  71498. + else
  71499. + # Make teststring a little bigger before we do anything with it.
  71500. + # a 1K string should be a reasonable start.
  71501. + for i in 1 2 3 4 5 6 7 8 ; do
  71502. + teststring=$teststring$teststring
  71503. + done
  71504. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  71505. + # If test is not a shell built-in, we'll probably end up computing a
  71506. + # maximum length that is only half of the actual maximum length, but
  71507. + # we can't tell.
  71508. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  71509. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  71510. + test $i != 17 # 1/2 MB should be enough
  71511. + do
  71512. + i=`expr $i + 1`
  71513. + teststring=$teststring$teststring
  71514. + done
  71515. + # Only check the string length outside the loop.
  71516. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  71517. + teststring=
  71518. + # Add a significant safety factor because C++ compilers can tack on
  71519. + # massive amounts of additional arguments before passing them to the
  71520. + # linker. It appears as though 1/2 is a usable value.
  71521. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  71522. + fi
  71523. + ;;
  71524. + esac
  71525. +])
  71526. +if test -n $lt_cv_sys_max_cmd_len ; then
  71527. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  71528. +else
  71529. + AC_MSG_RESULT(none)
  71530. +fi
  71531. +max_cmd_len=$lt_cv_sys_max_cmd_len
  71532. +_LT_DECL([], [max_cmd_len], [0],
  71533. + [What is the maximum length of a command?])
  71534. +])# LT_CMD_MAX_LEN
  71535. +
  71536. +# Old name:
  71537. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  71538. +dnl aclocal-1.4 backwards compatibility:
  71539. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  71540. +
  71541. +
  71542. +# _LT_HEADER_DLFCN
  71543. +# ----------------
  71544. +m4_defun([_LT_HEADER_DLFCN],
  71545. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  71546. +])# _LT_HEADER_DLFCN
  71547. +
  71548. +
  71549. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  71550. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  71551. +# ----------------------------------------------------------------
  71552. +m4_defun([_LT_TRY_DLOPEN_SELF],
  71553. +[m4_require([_LT_HEADER_DLFCN])dnl
  71554. +if test "$cross_compiling" = yes; then :
  71555. + [$4]
  71556. +else
  71557. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  71558. + lt_status=$lt_dlunknown
  71559. + cat > conftest.$ac_ext <<_LT_EOF
  71560. +[#line __oline__ "configure"
  71561. +#include "confdefs.h"
  71562. +
  71563. +#if HAVE_DLFCN_H
  71564. +#include <dlfcn.h>
  71565. +#endif
  71566. +
  71567. +#include <stdio.h>
  71568. +
  71569. +#ifdef RTLD_GLOBAL
  71570. +# define LT_DLGLOBAL RTLD_GLOBAL
  71571. +#else
  71572. +# ifdef DL_GLOBAL
  71573. +# define LT_DLGLOBAL DL_GLOBAL
  71574. +# else
  71575. +# define LT_DLGLOBAL 0
  71576. +# endif
  71577. +#endif
  71578. +
  71579. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  71580. + find out it does not work in some platform. */
  71581. +#ifndef LT_DLLAZY_OR_NOW
  71582. +# ifdef RTLD_LAZY
  71583. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  71584. +# else
  71585. +# ifdef DL_LAZY
  71586. +# define LT_DLLAZY_OR_NOW DL_LAZY
  71587. +# else
  71588. +# ifdef RTLD_NOW
  71589. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  71590. +# else
  71591. +# ifdef DL_NOW
  71592. +# define LT_DLLAZY_OR_NOW DL_NOW
  71593. +# else
  71594. +# define LT_DLLAZY_OR_NOW 0
  71595. +# endif
  71596. +# endif
  71597. +# endif
  71598. +# endif
  71599. +#endif
  71600. +
  71601. +void fnord() { int i=42;}
  71602. +int main ()
  71603. +{
  71604. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  71605. + int status = $lt_dlunknown;
  71606. +
  71607. + if (self)
  71608. + {
  71609. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  71610. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  71611. + /* dlclose (self); */
  71612. + }
  71613. + else
  71614. + puts (dlerror ());
  71615. +
  71616. + return status;
  71617. +}]
  71618. +_LT_EOF
  71619. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  71620. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  71621. + lt_status=$?
  71622. + case x$lt_status in
  71623. + x$lt_dlno_uscore) $1 ;;
  71624. + x$lt_dlneed_uscore) $2 ;;
  71625. + x$lt_dlunknown|x*) $3 ;;
  71626. + esac
  71627. + else :
  71628. + # compilation failed
  71629. + $3
  71630. + fi
  71631. +fi
  71632. +rm -fr conftest*
  71633. +])# _LT_TRY_DLOPEN_SELF
  71634. +
  71635. +
  71636. +# LT_SYS_DLOPEN_SELF
  71637. +# ------------------
  71638. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  71639. +[m4_require([_LT_HEADER_DLFCN])dnl
  71640. +if test "x$enable_dlopen" != xyes; then
  71641. + enable_dlopen=unknown
  71642. + enable_dlopen_self=unknown
  71643. + enable_dlopen_self_static=unknown
  71644. +else
  71645. + lt_cv_dlopen=no
  71646. + lt_cv_dlopen_libs=
  71647. +
  71648. + case $host_os in
  71649. + beos*)
  71650. + lt_cv_dlopen="load_add_on"
  71651. + lt_cv_dlopen_libs=
  71652. + lt_cv_dlopen_self=yes
  71653. + ;;
  71654. +
  71655. + mingw* | pw32* | cegcc*)
  71656. + lt_cv_dlopen="LoadLibrary"
  71657. + lt_cv_dlopen_libs=
  71658. + ;;
  71659. +
  71660. + cygwin*)
  71661. + lt_cv_dlopen="dlopen"
  71662. + lt_cv_dlopen_libs=
  71663. + ;;
  71664. +
  71665. + darwin*)
  71666. + # if libdl is installed we need to link against it
  71667. + AC_CHECK_LIB([dl], [dlopen],
  71668. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  71669. + lt_cv_dlopen="dyld"
  71670. + lt_cv_dlopen_libs=
  71671. + lt_cv_dlopen_self=yes
  71672. + ])
  71673. + ;;
  71674. +
  71675. + *)
  71676. + AC_CHECK_FUNC([shl_load],
  71677. + [lt_cv_dlopen="shl_load"],
  71678. + [AC_CHECK_LIB([dld], [shl_load],
  71679. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  71680. + [AC_CHECK_FUNC([dlopen],
  71681. + [lt_cv_dlopen="dlopen"],
  71682. + [AC_CHECK_LIB([dl], [dlopen],
  71683. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  71684. + [AC_CHECK_LIB([svld], [dlopen],
  71685. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  71686. + [AC_CHECK_LIB([dld], [dld_link],
  71687. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  71688. + ])
  71689. + ])
  71690. + ])
  71691. + ])
  71692. + ])
  71693. + ;;
  71694. + esac
  71695. +
  71696. + if test "x$lt_cv_dlopen" != xno; then
  71697. + enable_dlopen=yes
  71698. + else
  71699. + enable_dlopen=no
  71700. + fi
  71701. +
  71702. + case $lt_cv_dlopen in
  71703. + dlopen)
  71704. + save_CPPFLAGS="$CPPFLAGS"
  71705. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  71706. +
  71707. + save_LDFLAGS="$LDFLAGS"
  71708. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  71709. +
  71710. + save_LIBS="$LIBS"
  71711. + LIBS="$lt_cv_dlopen_libs $LIBS"
  71712. +
  71713. + AC_CACHE_CHECK([whether a program can dlopen itself],
  71714. + lt_cv_dlopen_self, [dnl
  71715. + _LT_TRY_DLOPEN_SELF(
  71716. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  71717. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  71718. + ])
  71719. +
  71720. + if test "x$lt_cv_dlopen_self" = xyes; then
  71721. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  71722. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  71723. + lt_cv_dlopen_self_static, [dnl
  71724. + _LT_TRY_DLOPEN_SELF(
  71725. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  71726. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  71727. + ])
  71728. + fi
  71729. +
  71730. + CPPFLAGS="$save_CPPFLAGS"
  71731. + LDFLAGS="$save_LDFLAGS"
  71732. + LIBS="$save_LIBS"
  71733. + ;;
  71734. + esac
  71735. +
  71736. + case $lt_cv_dlopen_self in
  71737. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  71738. + *) enable_dlopen_self=unknown ;;
  71739. + esac
  71740. +
  71741. + case $lt_cv_dlopen_self_static in
  71742. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  71743. + *) enable_dlopen_self_static=unknown ;;
  71744. + esac
  71745. +fi
  71746. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  71747. + [Whether dlopen is supported])
  71748. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  71749. + [Whether dlopen of programs is supported])
  71750. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  71751. + [Whether dlopen of statically linked programs is supported])
  71752. +])# LT_SYS_DLOPEN_SELF
  71753. +
  71754. +# Old name:
  71755. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  71756. +dnl aclocal-1.4 backwards compatibility:
  71757. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  71758. +
  71759. +
  71760. +# _LT_COMPILER_C_O([TAGNAME])
  71761. +# ---------------------------
  71762. +# Check to see if options -c and -o are simultaneously supported by compiler.
  71763. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  71764. +m4_defun([_LT_COMPILER_C_O],
  71765. +[m4_require([_LT_DECL_SED])dnl
  71766. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  71767. +m4_require([_LT_TAG_COMPILER])dnl
  71768. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  71769. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  71770. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  71771. + $RM -r conftest 2>/dev/null
  71772. + mkdir conftest
  71773. + cd conftest
  71774. + mkdir out
  71775. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  71776. +
  71777. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  71778. + # Insert the option either (1) after the last *FLAGS variable, or
  71779. + # (2) before a word containing "conftest.", or (3) at the end.
  71780. + # Note that $ac_compile itself does not contain backslashes and begins
  71781. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  71782. + lt_compile=`echo "$ac_compile" | $SED \
  71783. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  71784. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  71785. + -e 's:$: $lt_compiler_flag:'`
  71786. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  71787. + (eval "$lt_compile" 2>out/conftest.err)
  71788. + ac_status=$?
  71789. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  71790. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  71791. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  71792. + then
  71793. + # The compiler can only warn and ignore the option if not recognized
  71794. + # So say no if there are warnings
  71795. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  71796. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  71797. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  71798. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  71799. + fi
  71800. + fi
  71801. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  71802. + $RM conftest*
  71803. + # SGI C++ compiler will create directory out/ii_files/ for
  71804. + # template instantiation
  71805. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  71806. + $RM out/* && rmdir out
  71807. + cd ..
  71808. + $RM -r conftest
  71809. + $RM conftest*
  71810. +])
  71811. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  71812. + [Does compiler simultaneously support -c and -o options?])
  71813. +])# _LT_COMPILER_C_O
  71814. +
  71815. +
  71816. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  71817. +# ----------------------------------
  71818. +# Check to see if we can do hard links to lock some files if needed
  71819. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  71820. +[m4_require([_LT_ENABLE_LOCK])dnl
  71821. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  71822. +_LT_COMPILER_C_O([$1])
  71823. +
  71824. +hard_links="nottested"
  71825. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  71826. + # do not overwrite the value of need_locks provided by the user
  71827. + AC_MSG_CHECKING([if we can lock with hard links])
  71828. + hard_links=yes
  71829. + $RM conftest*
  71830. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  71831. + touch conftest.a
  71832. + ln conftest.a conftest.b 2>&5 || hard_links=no
  71833. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  71834. + AC_MSG_RESULT([$hard_links])
  71835. + if test "$hard_links" = no; then
  71836. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  71837. + need_locks=warn
  71838. + fi
  71839. +else
  71840. + need_locks=no
  71841. +fi
  71842. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  71843. +])# _LT_COMPILER_FILE_LOCKS
  71844. +
  71845. +
  71846. +# _LT_CHECK_OBJDIR
  71847. +# ----------------
  71848. +m4_defun([_LT_CHECK_OBJDIR],
  71849. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  71850. +[rm -f .libs 2>/dev/null
  71851. +mkdir .libs 2>/dev/null
  71852. +if test -d .libs; then
  71853. + lt_cv_objdir=.libs
  71854. +else
  71855. + # MS-DOS does not allow filenames that begin with a dot.
  71856. + lt_cv_objdir=_libs
  71857. +fi
  71858. +rmdir .libs 2>/dev/null])
  71859. +objdir=$lt_cv_objdir
  71860. +_LT_DECL([], [objdir], [0],
  71861. + [The name of the directory that contains temporary libtool files])dnl
  71862. +m4_pattern_allow([LT_OBJDIR])dnl
  71863. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  71864. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  71865. +])# _LT_CHECK_OBJDIR
  71866. +
  71867. +
  71868. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  71869. +# --------------------------------------
  71870. +# Check hardcoding attributes.
  71871. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  71872. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  71873. +_LT_TAGVAR(hardcode_action, $1)=
  71874. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  71875. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  71876. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  71877. +
  71878. + # We can hardcode non-existent directories.
  71879. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  71880. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  71881. + # have to relink, otherwise we might link with an installed library
  71882. + # when we should be linking with a yet-to-be-installed one
  71883. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  71884. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  71885. + # Linking always hardcodes the temporary library directory.
  71886. + _LT_TAGVAR(hardcode_action, $1)=relink
  71887. + else
  71888. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  71889. + _LT_TAGVAR(hardcode_action, $1)=immediate
  71890. + fi
  71891. +else
  71892. + # We cannot hardcode anything, or else we can only hardcode existing
  71893. + # directories.
  71894. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  71895. +fi
  71896. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  71897. +
  71898. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  71899. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  71900. + # Fast installation is not supported
  71901. + enable_fast_install=no
  71902. +elif test "$shlibpath_overrides_runpath" = yes ||
  71903. + test "$enable_shared" = no; then
  71904. + # Fast installation is not necessary
  71905. + enable_fast_install=needless
  71906. +fi
  71907. +_LT_TAGDECL([], [hardcode_action], [0],
  71908. + [How to hardcode a shared library path into an executable])
  71909. +])# _LT_LINKER_HARDCODE_LIBPATH
  71910. +
  71911. +
  71912. +# _LT_CMD_STRIPLIB
  71913. +# ----------------
  71914. +m4_defun([_LT_CMD_STRIPLIB],
  71915. +[m4_require([_LT_DECL_EGREP])
  71916. +striplib=
  71917. +old_striplib=
  71918. +AC_MSG_CHECKING([whether stripping libraries is possible])
  71919. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  71920. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  71921. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  71922. + AC_MSG_RESULT([yes])
  71923. +else
  71924. +# FIXME - insert some real tests, host_os isn't really good enough
  71925. + case $host_os in
  71926. + darwin*)
  71927. + if test -n "$STRIP" ; then
  71928. + striplib="$STRIP -x"
  71929. + old_striplib="$STRIP -S"
  71930. + AC_MSG_RESULT([yes])
  71931. + else
  71932. + AC_MSG_RESULT([no])
  71933. + fi
  71934. + ;;
  71935. + *)
  71936. + AC_MSG_RESULT([no])
  71937. + ;;
  71938. + esac
  71939. +fi
  71940. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  71941. +_LT_DECL([], [striplib], [1])
  71942. +])# _LT_CMD_STRIPLIB
  71943. +
  71944. +
  71945. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  71946. +# -----------------------------
  71947. +# PORTME Fill in your ld.so characteristics
  71948. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  71949. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  71950. +m4_require([_LT_DECL_EGREP])dnl
  71951. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  71952. +m4_require([_LT_DECL_OBJDUMP])dnl
  71953. +m4_require([_LT_DECL_SED])dnl
  71954. +AC_MSG_CHECKING([dynamic linker characteristics])
  71955. +m4_if([$1],
  71956. + [], [
  71957. +if test "$GCC" = yes; then
  71958. + case $host_os in
  71959. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  71960. + *) lt_awk_arg="/^libraries:/" ;;
  71961. + esac
  71962. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  71963. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  71964. + # if the path contains ";" then we assume it to be the separator
  71965. + # otherwise default to the standard path separator (i.e. ":") - it is
  71966. + # assumed that no part of a normal pathname contains ";" but that should
  71967. + # okay in the real world where ";" in dirpaths is itself problematic.
  71968. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  71969. + else
  71970. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  71971. + fi
  71972. + # Ok, now we have the path, separated by spaces, we can step through it
  71973. + # and add multilib dir if necessary.
  71974. + lt_tmp_lt_search_path_spec=
  71975. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  71976. + for lt_sys_path in $lt_search_path_spec; do
  71977. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  71978. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  71979. + else
  71980. + test -d "$lt_sys_path" && \
  71981. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  71982. + fi
  71983. + done
  71984. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  71985. +BEGIN {RS=" "; FS="/|\n";} {
  71986. + lt_foo="";
  71987. + lt_count=0;
  71988. + for (lt_i = NF; lt_i > 0; lt_i--) {
  71989. + if ($lt_i != "" && $lt_i != ".") {
  71990. + if ($lt_i == "..") {
  71991. + lt_count++;
  71992. + } else {
  71993. + if (lt_count == 0) {
  71994. + lt_foo="/" $lt_i lt_foo;
  71995. + } else {
  71996. + lt_count--;
  71997. + }
  71998. + }
  71999. + }
  72000. + }
  72001. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  72002. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  72003. +}'`
  72004. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  72005. +else
  72006. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  72007. +fi])
  72008. +library_names_spec=
  72009. +libname_spec='lib$name'
  72010. +soname_spec=
  72011. +shrext_cmds=".so"
  72012. +postinstall_cmds=
  72013. +postuninstall_cmds=
  72014. +finish_cmds=
  72015. +finish_eval=
  72016. +shlibpath_var=
  72017. +shlibpath_overrides_runpath=unknown
  72018. +version_type=none
  72019. +dynamic_linker="$host_os ld.so"
  72020. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  72021. +need_lib_prefix=unknown
  72022. +hardcode_into_libs=no
  72023. +
  72024. +# when you set need_version to no, make sure it does not cause -set_version
  72025. +# flags to be left without arguments
  72026. +need_version=unknown
  72027. +
  72028. +case $host_os in
  72029. +aix3*)
  72030. + version_type=linux
  72031. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  72032. + shlibpath_var=LIBPATH
  72033. +
  72034. + # AIX 3 has no versioning support, so we append a major version to the name.
  72035. + soname_spec='${libname}${release}${shared_ext}$major'
  72036. + ;;
  72037. +
  72038. +aix[[4-9]]*)
  72039. + version_type=linux
  72040. + need_lib_prefix=no
  72041. + need_version=no
  72042. + hardcode_into_libs=yes
  72043. + if test "$host_cpu" = ia64; then
  72044. + # AIX 5 supports IA64
  72045. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  72046. + shlibpath_var=LD_LIBRARY_PATH
  72047. + else
  72048. + # With GCC up to 2.95.x, collect2 would create an import file
  72049. + # for dependence libraries. The import file would start with
  72050. + # the line `#! .'. This would cause the generated library to
  72051. + # depend on `.', always an invalid library. This was fixed in
  72052. + # development snapshots of GCC prior to 3.0.
  72053. + case $host_os in
  72054. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  72055. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  72056. + echo ' yes '
  72057. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  72058. + :
  72059. + else
  72060. + can_build_shared=no
  72061. + fi
  72062. + ;;
  72063. + esac
  72064. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  72065. + # soname into executable. Probably we can add versioning support to
  72066. + # collect2, so additional links can be useful in future.
  72067. + if test "$aix_use_runtimelinking" = yes; then
  72068. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  72069. + # instead of lib<name>.a to let people know that these are not
  72070. + # typical AIX shared libraries.
  72071. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72072. + else
  72073. + # We preserve .a as extension for shared libraries through AIX4.2
  72074. + # and later when we are not doing run time linking.
  72075. + library_names_spec='${libname}${release}.a $libname.a'
  72076. + soname_spec='${libname}${release}${shared_ext}$major'
  72077. + fi
  72078. + shlibpath_var=LIBPATH
  72079. + fi
  72080. + ;;
  72081. +
  72082. +amigaos*)
  72083. + case $host_cpu in
  72084. + powerpc)
  72085. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  72086. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  72087. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72088. + ;;
  72089. + m68k)
  72090. + library_names_spec='$libname.ixlibrary $libname.a'
  72091. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  72092. + 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'
  72093. + ;;
  72094. + esac
  72095. + ;;
  72096. +
  72097. +beos*)
  72098. + library_names_spec='${libname}${shared_ext}'
  72099. + dynamic_linker="$host_os ld.so"
  72100. + shlibpath_var=LIBRARY_PATH
  72101. + ;;
  72102. +
  72103. +bsdi[[45]]*)
  72104. + version_type=linux
  72105. + need_version=no
  72106. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72107. + soname_spec='${libname}${release}${shared_ext}$major'
  72108. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  72109. + shlibpath_var=LD_LIBRARY_PATH
  72110. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  72111. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  72112. + # the default ld.so.conf also contains /usr/contrib/lib and
  72113. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  72114. + # libtool to hard-code these into programs
  72115. + ;;
  72116. +
  72117. +cygwin* | mingw* | pw32* | cegcc*)
  72118. + version_type=windows
  72119. + shrext_cmds=".dll"
  72120. + need_version=no
  72121. + need_lib_prefix=no
  72122. +
  72123. + case $GCC,$host_os in
  72124. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  72125. + library_names_spec='$libname.dll.a'
  72126. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  72127. + postinstall_cmds='base_file=`basename \${file}`~
  72128. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  72129. + dldir=$destdir/`dirname \$dlpath`~
  72130. + test -d \$dldir || mkdir -p \$dldir~
  72131. + $install_prog $dir/$dlname \$dldir/$dlname~
  72132. + chmod a+x \$dldir/$dlname~
  72133. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  72134. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  72135. + fi'
  72136. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  72137. + dlpath=$dir/\$dldll~
  72138. + $RM \$dlpath'
  72139. + shlibpath_overrides_runpath=yes
  72140. +
  72141. + case $host_os in
  72142. + cygwin*)
  72143. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  72144. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  72145. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  72146. + ;;
  72147. + mingw* | cegcc*)
  72148. + # MinGW DLLs use traditional 'lib' prefix
  72149. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  72150. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  72151. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  72152. + # It is most probably a Windows format PATH printed by
  72153. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  72154. + # path with ; separators, and with drive letters. We can handle the
  72155. + # drive letters (cygwin fileutils understands them), so leave them,
  72156. + # especially as we might pass files found there to a mingw objdump,
  72157. + # which wouldn't understand a cygwinified path. Ahh.
  72158. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  72159. + else
  72160. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  72161. + fi
  72162. + ;;
  72163. + pw32*)
  72164. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  72165. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  72166. + ;;
  72167. + esac
  72168. + ;;
  72169. +
  72170. + *)
  72171. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  72172. + ;;
  72173. + esac
  72174. + dynamic_linker='Win32 ld.exe'
  72175. + # FIXME: first we should search . and the directory the executable is in
  72176. + shlibpath_var=PATH
  72177. + ;;
  72178. +
  72179. +darwin* | rhapsody*)
  72180. + dynamic_linker="$host_os dyld"
  72181. + version_type=darwin
  72182. + need_lib_prefix=no
  72183. + need_version=no
  72184. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  72185. + soname_spec='${libname}${release}${major}$shared_ext'
  72186. + shlibpath_overrides_runpath=yes
  72187. + shlibpath_var=DYLD_LIBRARY_PATH
  72188. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  72189. +m4_if([$1], [],[
  72190. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  72191. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  72192. + ;;
  72193. +
  72194. +dgux*)
  72195. + version_type=linux
  72196. + need_lib_prefix=no
  72197. + need_version=no
  72198. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  72199. + soname_spec='${libname}${release}${shared_ext}$major'
  72200. + shlibpath_var=LD_LIBRARY_PATH
  72201. + ;;
  72202. +
  72203. +freebsd1*)
  72204. + dynamic_linker=no
  72205. + ;;
  72206. +
  72207. +freebsd* | dragonfly*)
  72208. + # DragonFly does not have aout. When/if they implement a new
  72209. + # versioning mechanism, adjust this.
  72210. + if test -x /usr/bin/objformat; then
  72211. + objformat=`/usr/bin/objformat`
  72212. + else
  72213. + case $host_os in
  72214. + freebsd[[123]]*) objformat=aout ;;
  72215. + *) objformat=elf ;;
  72216. + esac
  72217. + fi
  72218. + version_type=freebsd-$objformat
  72219. + case $version_type in
  72220. + freebsd-elf*)
  72221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  72222. + need_version=no
  72223. + need_lib_prefix=no
  72224. + ;;
  72225. + freebsd-*)
  72226. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  72227. + need_version=yes
  72228. + ;;
  72229. + esac
  72230. + shlibpath_var=LD_LIBRARY_PATH
  72231. + case $host_os in
  72232. + freebsd2*)
  72233. + shlibpath_overrides_runpath=yes
  72234. + ;;
  72235. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  72236. + shlibpath_overrides_runpath=yes
  72237. + hardcode_into_libs=yes
  72238. + ;;
  72239. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  72240. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  72241. + shlibpath_overrides_runpath=no
  72242. + hardcode_into_libs=yes
  72243. + ;;
  72244. + *) # from 4.6 on, and DragonFly
  72245. + shlibpath_overrides_runpath=yes
  72246. + hardcode_into_libs=yes
  72247. + ;;
  72248. + esac
  72249. + ;;
  72250. +
  72251. +gnu*)
  72252. + version_type=linux
  72253. + need_lib_prefix=no
  72254. + need_version=no
  72255. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  72256. + soname_spec='${libname}${release}${shared_ext}$major'
  72257. + shlibpath_var=LD_LIBRARY_PATH
  72258. + hardcode_into_libs=yes
  72259. + ;;
  72260. +
  72261. +hpux9* | hpux10* | hpux11*)
  72262. + # Give a soname corresponding to the major version so that dld.sl refuses to
  72263. + # link against other versions.
  72264. + version_type=sunos
  72265. + need_lib_prefix=no
  72266. + need_version=no
  72267. + case $host_cpu in
  72268. + ia64*)
  72269. + shrext_cmds='.so'
  72270. + hardcode_into_libs=yes
  72271. + dynamic_linker="$host_os dld.so"
  72272. + shlibpath_var=LD_LIBRARY_PATH
  72273. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  72274. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72275. + soname_spec='${libname}${release}${shared_ext}$major'
  72276. + if test "X$HPUX_IA64_MODE" = X32; then
  72277. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  72278. + else
  72279. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  72280. + fi
  72281. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  72282. + ;;
  72283. + hppa*64*)
  72284. + shrext_cmds='.sl'
  72285. + hardcode_into_libs=yes
  72286. + dynamic_linker="$host_os dld.sl"
  72287. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  72288. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  72289. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72290. + soname_spec='${libname}${release}${shared_ext}$major'
  72291. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  72292. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  72293. + ;;
  72294. + *)
  72295. + shrext_cmds='.sl'
  72296. + dynamic_linker="$host_os dld.sl"
  72297. + shlibpath_var=SHLIB_PATH
  72298. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  72299. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72300. + soname_spec='${libname}${release}${shared_ext}$major'
  72301. + ;;
  72302. + esac
  72303. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  72304. + postinstall_cmds='chmod 555 $lib'
  72305. + ;;
  72306. +
  72307. +interix[[3-9]]*)
  72308. + version_type=linux
  72309. + need_lib_prefix=no
  72310. + need_version=no
  72311. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  72312. + soname_spec='${libname}${release}${shared_ext}$major'
  72313. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  72314. + shlibpath_var=LD_LIBRARY_PATH
  72315. + shlibpath_overrides_runpath=no
  72316. + hardcode_into_libs=yes
  72317. + ;;
  72318. +
  72319. +irix5* | irix6* | nonstopux*)
  72320. + case $host_os in
  72321. + nonstopux*) version_type=nonstopux ;;
  72322. + *)
  72323. + if test "$lt_cv_prog_gnu_ld" = yes; then
  72324. + version_type=linux
  72325. + else
  72326. + version_type=irix
  72327. + fi ;;
  72328. + esac
  72329. + need_lib_prefix=no
  72330. + need_version=no
  72331. + soname_spec='${libname}${release}${shared_ext}$major'
  72332. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  72333. + case $host_os in
  72334. + irix5* | nonstopux*)
  72335. + libsuff= shlibsuff=
  72336. + ;;
  72337. + *)
  72338. + case $LD in # libtool.m4 will add one of these switches to LD
  72339. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  72340. + libsuff= shlibsuff= libmagic=32-bit;;
  72341. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  72342. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  72343. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  72344. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  72345. + *) libsuff= shlibsuff= libmagic=never-match;;
  72346. + esac
  72347. + ;;
  72348. + esac
  72349. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  72350. + shlibpath_overrides_runpath=no
  72351. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  72352. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  72353. + hardcode_into_libs=yes
  72354. + ;;
  72355. +
  72356. +# No shared lib support for Linux oldld, aout, or coff.
  72357. +linux*oldld* | linux*aout* | linux*coff*)
  72358. + dynamic_linker=no
  72359. + ;;
  72360. +
  72361. +# This must be Linux ELF.
  72362. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  72363. + version_type=linux
  72364. + need_lib_prefix=no
  72365. + need_version=no
  72366. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72367. + soname_spec='${libname}${release}${shared_ext}$major'
  72368. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  72369. + shlibpath_var=LD_LIBRARY_PATH
  72370. + shlibpath_overrides_runpath=no
  72371. + # Some binutils ld are patched to set DT_RUNPATH
  72372. + save_LDFLAGS=$LDFLAGS
  72373. + save_libdir=$libdir
  72374. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  72375. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  72376. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  72377. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  72378. + [shlibpath_overrides_runpath=yes])])
  72379. + LDFLAGS=$save_LDFLAGS
  72380. + libdir=$save_libdir
  72381. +
  72382. + # This implies no fast_install, which is unacceptable.
  72383. + # Some rework will be needed to allow for fast_install
  72384. + # before this can be enabled.
  72385. + hardcode_into_libs=yes
  72386. +
  72387. + # Append ld.so.conf contents to the search path
  72388. + if test -f /etc/ld.so.conf; then
  72389. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  72390. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  72391. + fi
  72392. +
  72393. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  72394. + # powerpc, because MkLinux only supported shared libraries with the
  72395. + # GNU dynamic linker. Since this was broken with cross compilers,
  72396. + # most powerpc-linux boxes support dynamic linking these days and
  72397. + # people can always --disable-shared, the test was removed, and we
  72398. + # assume the GNU/Linux dynamic linker is in use.
  72399. + dynamic_linker='GNU/Linux ld.so'
  72400. + ;;
  72401. +
  72402. +netbsdelf*-gnu)
  72403. + version_type=linux
  72404. + need_lib_prefix=no
  72405. + need_version=no
  72406. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  72407. + soname_spec='${libname}${release}${shared_ext}$major'
  72408. + shlibpath_var=LD_LIBRARY_PATH
  72409. + shlibpath_overrides_runpath=no
  72410. + hardcode_into_libs=yes
  72411. + dynamic_linker='NetBSD ld.elf_so'
  72412. + ;;
  72413. +
  72414. +netbsd*)
  72415. + version_type=sunos
  72416. + need_lib_prefix=no
  72417. + need_version=no
  72418. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  72419. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  72420. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  72421. + dynamic_linker='NetBSD (a.out) ld.so'
  72422. + else
  72423. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  72424. + soname_spec='${libname}${release}${shared_ext}$major'
  72425. + dynamic_linker='NetBSD ld.elf_so'
  72426. + fi
  72427. + shlibpath_var=LD_LIBRARY_PATH
  72428. + shlibpath_overrides_runpath=yes
  72429. + hardcode_into_libs=yes
  72430. + ;;
  72431. +
  72432. +newsos6)
  72433. + version_type=linux
  72434. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72435. + shlibpath_var=LD_LIBRARY_PATH
  72436. + shlibpath_overrides_runpath=yes
  72437. + ;;
  72438. +
  72439. +*nto* | *qnx*)
  72440. + version_type=qnx
  72441. + need_lib_prefix=no
  72442. + need_version=no
  72443. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72444. + soname_spec='${libname}${release}${shared_ext}$major'
  72445. + shlibpath_var=LD_LIBRARY_PATH
  72446. + shlibpath_overrides_runpath=no
  72447. + hardcode_into_libs=yes
  72448. + dynamic_linker='ldqnx.so'
  72449. + ;;
  72450. +
  72451. +openbsd*)
  72452. + version_type=sunos
  72453. + sys_lib_dlsearch_path_spec="/usr/lib"
  72454. + need_lib_prefix=no
  72455. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  72456. + case $host_os in
  72457. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  72458. + *) need_version=no ;;
  72459. + esac
  72460. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  72461. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  72462. + shlibpath_var=LD_LIBRARY_PATH
  72463. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  72464. + case $host_os in
  72465. + openbsd2.[[89]] | openbsd2.[[89]].*)
  72466. + shlibpath_overrides_runpath=no
  72467. + ;;
  72468. + *)
  72469. + shlibpath_overrides_runpath=yes
  72470. + ;;
  72471. + esac
  72472. + else
  72473. + shlibpath_overrides_runpath=yes
  72474. + fi
  72475. + ;;
  72476. +
  72477. +os2*)
  72478. + libname_spec='$name'
  72479. + shrext_cmds=".dll"
  72480. + need_lib_prefix=no
  72481. + library_names_spec='$libname${shared_ext} $libname.a'
  72482. + dynamic_linker='OS/2 ld.exe'
  72483. + shlibpath_var=LIBPATH
  72484. + ;;
  72485. +
  72486. +osf3* | osf4* | osf5*)
  72487. + version_type=osf
  72488. + need_lib_prefix=no
  72489. + need_version=no
  72490. + soname_spec='${libname}${release}${shared_ext}$major'
  72491. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72492. + shlibpath_var=LD_LIBRARY_PATH
  72493. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  72494. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  72495. + ;;
  72496. +
  72497. +rdos*)
  72498. + dynamic_linker=no
  72499. + ;;
  72500. +
  72501. +solaris*)
  72502. + version_type=linux
  72503. + need_lib_prefix=no
  72504. + need_version=no
  72505. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72506. + soname_spec='${libname}${release}${shared_ext}$major'
  72507. + shlibpath_var=LD_LIBRARY_PATH
  72508. + shlibpath_overrides_runpath=yes
  72509. + hardcode_into_libs=yes
  72510. + # ldd complains unless libraries are executable
  72511. + postinstall_cmds='chmod +x $lib'
  72512. + ;;
  72513. +
  72514. +sunos4*)
  72515. + version_type=sunos
  72516. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  72517. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  72518. + shlibpath_var=LD_LIBRARY_PATH
  72519. + shlibpath_overrides_runpath=yes
  72520. + if test "$with_gnu_ld" = yes; then
  72521. + need_lib_prefix=no
  72522. + fi
  72523. + need_version=yes
  72524. + ;;
  72525. +
  72526. +sysv4 | sysv4.3*)
  72527. + version_type=linux
  72528. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72529. + soname_spec='${libname}${release}${shared_ext}$major'
  72530. + shlibpath_var=LD_LIBRARY_PATH
  72531. + case $host_vendor in
  72532. + sni)
  72533. + shlibpath_overrides_runpath=no
  72534. + need_lib_prefix=no
  72535. + runpath_var=LD_RUN_PATH
  72536. + ;;
  72537. + siemens)
  72538. + need_lib_prefix=no
  72539. + ;;
  72540. + motorola)
  72541. + need_lib_prefix=no
  72542. + need_version=no
  72543. + shlibpath_overrides_runpath=no
  72544. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  72545. + ;;
  72546. + esac
  72547. + ;;
  72548. +
  72549. +sysv4*MP*)
  72550. + if test -d /usr/nec ;then
  72551. + version_type=linux
  72552. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  72553. + soname_spec='$libname${shared_ext}.$major'
  72554. + shlibpath_var=LD_LIBRARY_PATH
  72555. + fi
  72556. + ;;
  72557. +
  72558. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  72559. + version_type=freebsd-elf
  72560. + need_lib_prefix=no
  72561. + need_version=no
  72562. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  72563. + soname_spec='${libname}${release}${shared_ext}$major'
  72564. + shlibpath_var=LD_LIBRARY_PATH
  72565. + shlibpath_overrides_runpath=yes
  72566. + hardcode_into_libs=yes
  72567. + if test "$with_gnu_ld" = yes; then
  72568. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  72569. + else
  72570. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  72571. + case $host_os in
  72572. + sco3.2v5*)
  72573. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  72574. + ;;
  72575. + esac
  72576. + fi
  72577. + sys_lib_dlsearch_path_spec='/usr/lib'
  72578. + ;;
  72579. +
  72580. +tpf*)
  72581. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  72582. + version_type=linux
  72583. + need_lib_prefix=no
  72584. + need_version=no
  72585. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72586. + shlibpath_var=LD_LIBRARY_PATH
  72587. + shlibpath_overrides_runpath=no
  72588. + hardcode_into_libs=yes
  72589. + ;;
  72590. +
  72591. +uts4*)
  72592. + version_type=linux
  72593. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  72594. + soname_spec='${libname}${release}${shared_ext}$major'
  72595. + shlibpath_var=LD_LIBRARY_PATH
  72596. + ;;
  72597. +
  72598. +*)
  72599. + dynamic_linker=no
  72600. + ;;
  72601. +esac
  72602. +AC_MSG_RESULT([$dynamic_linker])
  72603. +test "$dynamic_linker" = no && can_build_shared=no
  72604. +
  72605. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  72606. +if test "$GCC" = yes; then
  72607. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  72608. +fi
  72609. +
  72610. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  72611. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  72612. +fi
  72613. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  72614. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  72615. +fi
  72616. +
  72617. +_LT_DECL([], [variables_saved_for_relink], [1],
  72618. + [Variables whose values should be saved in libtool wrapper scripts and
  72619. + restored at link time])
  72620. +_LT_DECL([], [need_lib_prefix], [0],
  72621. + [Do we need the "lib" prefix for modules?])
  72622. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  72623. +_LT_DECL([], [version_type], [0], [Library versioning type])
  72624. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  72625. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  72626. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  72627. + [Is shlibpath searched before the hard-coded library search path?])
  72628. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  72629. +_LT_DECL([], [library_names_spec], [1],
  72630. + [[List of archive names. First name is the real one, the rest are links.
  72631. + The last name is the one that the linker finds with -lNAME]])
  72632. +_LT_DECL([], [soname_spec], [1],
  72633. + [[The coded name of the library, if different from the real name]])
  72634. +_LT_DECL([], [postinstall_cmds], [2],
  72635. + [Command to use after installation of a shared archive])
  72636. +_LT_DECL([], [postuninstall_cmds], [2],
  72637. + [Command to use after uninstallation of a shared archive])
  72638. +_LT_DECL([], [finish_cmds], [2],
  72639. + [Commands used to finish a libtool library installation in a directory])
  72640. +_LT_DECL([], [finish_eval], [1],
  72641. + [[As "finish_cmds", except a single script fragment to be evaled but
  72642. + not shown]])
  72643. +_LT_DECL([], [hardcode_into_libs], [0],
  72644. + [Whether we should hardcode library paths into libraries])
  72645. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  72646. + [Compile-time system search path for libraries])
  72647. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  72648. + [Run-time system search path for libraries])
  72649. +])# _LT_SYS_DYNAMIC_LINKER
  72650. +
  72651. +
  72652. +# _LT_PATH_TOOL_PREFIX(TOOL)
  72653. +# --------------------------
  72654. +# find a file program which can recognize shared library
  72655. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  72656. +[m4_require([_LT_DECL_EGREP])dnl
  72657. +AC_MSG_CHECKING([for $1])
  72658. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  72659. +[case $MAGIC_CMD in
  72660. +[[\\/*] | ?:[\\/]*])
  72661. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  72662. + ;;
  72663. +*)
  72664. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  72665. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  72666. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  72667. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  72668. +dnl not every word. This closes a longstanding sh security hole.
  72669. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  72670. + for ac_dir in $ac_dummy; do
  72671. + IFS="$lt_save_ifs"
  72672. + test -z "$ac_dir" && ac_dir=.
  72673. + if test -f $ac_dir/$1; then
  72674. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  72675. + if test -n "$file_magic_test_file"; then
  72676. + case $deplibs_check_method in
  72677. + "file_magic "*)
  72678. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  72679. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  72680. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  72681. + $EGREP "$file_magic_regex" > /dev/null; then
  72682. + :
  72683. + else
  72684. + cat <<_LT_EOF 1>&2
  72685. +
  72686. +*** Warning: the command libtool uses to detect shared libraries,
  72687. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  72688. +*** The result is that libtool may fail to recognize shared libraries
  72689. +*** as such. This will affect the creation of libtool libraries that
  72690. +*** depend on shared libraries, but programs linked with such libtool
  72691. +*** libraries will work regardless of this problem. Nevertheless, you
  72692. +*** may want to report the problem to your system manager and/or to
  72693. +*** bug-libtool@gnu.org
  72694. +
  72695. +_LT_EOF
  72696. + fi ;;
  72697. + esac
  72698. + fi
  72699. + break
  72700. + fi
  72701. + done
  72702. + IFS="$lt_save_ifs"
  72703. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  72704. + ;;
  72705. +esac])
  72706. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  72707. +if test -n "$MAGIC_CMD"; then
  72708. + AC_MSG_RESULT($MAGIC_CMD)
  72709. +else
  72710. + AC_MSG_RESULT(no)
  72711. +fi
  72712. +_LT_DECL([], [MAGIC_CMD], [0],
  72713. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  72714. +])# _LT_PATH_TOOL_PREFIX
  72715. +
  72716. +# Old name:
  72717. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  72718. +dnl aclocal-1.4 backwards compatibility:
  72719. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  72720. +
  72721. +
  72722. +# _LT_PATH_MAGIC
  72723. +# --------------
  72724. +# find a file program which can recognize a shared library
  72725. +m4_defun([_LT_PATH_MAGIC],
  72726. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  72727. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  72728. + if test -n "$ac_tool_prefix"; then
  72729. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  72730. + else
  72731. + MAGIC_CMD=:
  72732. + fi
  72733. +fi
  72734. +])# _LT_PATH_MAGIC
  72735. +
  72736. +
  72737. +# LT_PATH_LD
  72738. +# ----------
  72739. +# find the pathname to the GNU or non-GNU linker
  72740. +AC_DEFUN([LT_PATH_LD],
  72741. +[AC_REQUIRE([AC_PROG_CC])dnl
  72742. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  72743. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  72744. +m4_require([_LT_DECL_SED])dnl
  72745. +m4_require([_LT_DECL_EGREP])dnl
  72746. +
  72747. +AC_ARG_WITH([gnu-ld],
  72748. + [AS_HELP_STRING([--with-gnu-ld],
  72749. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  72750. + [test "$withval" = no || with_gnu_ld=yes],
  72751. + [with_gnu_ld=no])dnl
  72752. +
  72753. +ac_prog=ld
  72754. +if test "$GCC" = yes; then
  72755. + # Check if gcc -print-prog-name=ld gives a path.
  72756. + AC_MSG_CHECKING([for ld used by $CC])
  72757. + case $host in
  72758. + *-*-mingw*)
  72759. + # gcc leaves a trailing carriage return which upsets mingw
  72760. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  72761. + *)
  72762. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  72763. + esac
  72764. + case $ac_prog in
  72765. + # Accept absolute paths.
  72766. + [[\\/]]* | ?:[[\\/]]*)
  72767. + re_direlt='/[[^/]][[^/]]*/\.\./'
  72768. + # Canonicalize the pathname of ld
  72769. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  72770. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  72771. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  72772. + done
  72773. + test -z "$LD" && LD="$ac_prog"
  72774. + ;;
  72775. + "")
  72776. + # If it fails, then pretend we aren't using GCC.
  72777. + ac_prog=ld
  72778. + ;;
  72779. + *)
  72780. + # If it is relative, then search for the first ld in PATH.
  72781. + with_gnu_ld=unknown
  72782. + ;;
  72783. + esac
  72784. +elif test "$with_gnu_ld" = yes; then
  72785. + AC_MSG_CHECKING([for GNU ld])
  72786. +else
  72787. + AC_MSG_CHECKING([for non-GNU ld])
  72788. +fi
  72789. +AC_CACHE_VAL(lt_cv_path_LD,
  72790. +[if test -z "$LD"; then
  72791. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  72792. + for ac_dir in $PATH; do
  72793. + IFS="$lt_save_ifs"
  72794. + test -z "$ac_dir" && ac_dir=.
  72795. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  72796. + lt_cv_path_LD="$ac_dir/$ac_prog"
  72797. + # Check to see if the program is GNU ld. I'd rather use --version,
  72798. + # but apparently some variants of GNU ld only accept -v.
  72799. + # Break only if it was the GNU/non-GNU ld that we prefer.
  72800. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  72801. + *GNU* | *'with BFD'*)
  72802. + test "$with_gnu_ld" != no && break
  72803. + ;;
  72804. + *)
  72805. + test "$with_gnu_ld" != yes && break
  72806. + ;;
  72807. + esac
  72808. + fi
  72809. + done
  72810. + IFS="$lt_save_ifs"
  72811. +else
  72812. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  72813. +fi])
  72814. +LD="$lt_cv_path_LD"
  72815. +if test -n "$LD"; then
  72816. + AC_MSG_RESULT($LD)
  72817. +else
  72818. + AC_MSG_RESULT(no)
  72819. +fi
  72820. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  72821. +_LT_PATH_LD_GNU
  72822. +AC_SUBST([LD])
  72823. +
  72824. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  72825. +])# LT_PATH_LD
  72826. +
  72827. +# Old names:
  72828. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  72829. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  72830. +dnl aclocal-1.4 backwards compatibility:
  72831. +dnl AC_DEFUN([AM_PROG_LD], [])
  72832. +dnl AC_DEFUN([AC_PROG_LD], [])
  72833. +
  72834. +
  72835. +# _LT_PATH_LD_GNU
  72836. +#- --------------
  72837. +m4_defun([_LT_PATH_LD_GNU],
  72838. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  72839. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  72840. +case `$LD -v 2>&1 </dev/null` in
  72841. +*GNU* | *'with BFD'*)
  72842. + lt_cv_prog_gnu_ld=yes
  72843. + ;;
  72844. +*)
  72845. + lt_cv_prog_gnu_ld=no
  72846. + ;;
  72847. +esac])
  72848. +with_gnu_ld=$lt_cv_prog_gnu_ld
  72849. +])# _LT_PATH_LD_GNU
  72850. +
  72851. +
  72852. +# _LT_CMD_RELOAD
  72853. +# --------------
  72854. +# find reload flag for linker
  72855. +# -- PORTME Some linkers may need a different reload flag.
  72856. +m4_defun([_LT_CMD_RELOAD],
  72857. +[AC_CACHE_CHECK([for $LD option to reload object files],
  72858. + lt_cv_ld_reload_flag,
  72859. + [lt_cv_ld_reload_flag='-r'])
  72860. +reload_flag=$lt_cv_ld_reload_flag
  72861. +case $reload_flag in
  72862. +"" | " "*) ;;
  72863. +*) reload_flag=" $reload_flag" ;;
  72864. +esac
  72865. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  72866. +case $host_os in
  72867. + darwin*)
  72868. + if test "$GCC" = yes; then
  72869. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  72870. + else
  72871. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  72872. + fi
  72873. + ;;
  72874. +esac
  72875. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  72876. +_LT_DECL([], [reload_cmds], [2])dnl
  72877. +])# _LT_CMD_RELOAD
  72878. +
  72879. +
  72880. +# _LT_CHECK_MAGIC_METHOD
  72881. +# ----------------------
  72882. +# how to check for library dependencies
  72883. +# -- PORTME fill in with the dynamic library characteristics
  72884. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  72885. +[m4_require([_LT_DECL_EGREP])
  72886. +m4_require([_LT_DECL_OBJDUMP])
  72887. +AC_CACHE_CHECK([how to recognize dependent libraries],
  72888. +lt_cv_deplibs_check_method,
  72889. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  72890. +lt_cv_file_magic_test_file=
  72891. +lt_cv_deplibs_check_method='unknown'
  72892. +# Need to set the preceding variable on all platforms that support
  72893. +# interlibrary dependencies.
  72894. +# 'none' -- dependencies not supported.
  72895. +# `unknown' -- same as none, but documents that we really don't know.
  72896. +# 'pass_all' -- all dependencies passed with no checks.
  72897. +# 'test_compile' -- check by making test program.
  72898. +# 'file_magic [[regex]]' -- check by looking for files in library path
  72899. +# which responds to the $file_magic_cmd with a given extended regex.
  72900. +# If you have `file' or equivalent on your system and you're not sure
  72901. +# whether `pass_all' will *always* work, you probably want this one.
  72902. +
  72903. +case $host_os in
  72904. +aix[[4-9]]*)
  72905. + lt_cv_deplibs_check_method=pass_all
  72906. + ;;
  72907. +
  72908. +beos*)
  72909. + lt_cv_deplibs_check_method=pass_all
  72910. + ;;
  72911. +
  72912. +bsdi[[45]]*)
  72913. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  72914. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  72915. + lt_cv_file_magic_test_file=/shlib/libc.so
  72916. + ;;
  72917. +
  72918. +cygwin*)
  72919. + # func_win32_libid is a shell function defined in ltmain.sh
  72920. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  72921. + lt_cv_file_magic_cmd='func_win32_libid'
  72922. + ;;
  72923. +
  72924. +mingw* | pw32*)
  72925. + # Base MSYS/MinGW do not provide the 'file' command needed by
  72926. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  72927. + # unless we find 'file', for example because we are cross-compiling.
  72928. + if ( file / ) >/dev/null 2>&1; then
  72929. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  72930. + lt_cv_file_magic_cmd='func_win32_libid'
  72931. + else
  72932. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  72933. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  72934. + fi
  72935. + ;;
  72936. +
  72937. +cegcc)
  72938. + # use the weaker test based on 'objdump'. See mingw*.
  72939. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  72940. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  72941. + ;;
  72942. +
  72943. +darwin* | rhapsody*)
  72944. + lt_cv_deplibs_check_method=pass_all
  72945. + ;;
  72946. +
  72947. +freebsd* | dragonfly*)
  72948. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  72949. + case $host_cpu in
  72950. + i*86 )
  72951. + # Not sure whether the presence of OpenBSD here was a mistake.
  72952. + # Let's accept both of them until this is cleared up.
  72953. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  72954. + lt_cv_file_magic_cmd=/usr/bin/file
  72955. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  72956. + ;;
  72957. + esac
  72958. + else
  72959. + lt_cv_deplibs_check_method=pass_all
  72960. + fi
  72961. + ;;
  72962. +
  72963. +gnu*)
  72964. + lt_cv_deplibs_check_method=pass_all
  72965. + ;;
  72966. +
  72967. +hpux10.20* | hpux11*)
  72968. + lt_cv_file_magic_cmd=/usr/bin/file
  72969. + case $host_cpu in
  72970. + ia64*)
  72971. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  72972. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  72973. + ;;
  72974. + hppa*64*)
  72975. + [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]']
  72976. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  72977. + ;;
  72978. + *)
  72979. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  72980. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  72981. + ;;
  72982. + esac
  72983. + ;;
  72984. +
  72985. +interix[[3-9]]*)
  72986. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  72987. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  72988. + ;;
  72989. +
  72990. +irix5* | irix6* | nonstopux*)
  72991. + case $LD in
  72992. + *-32|*"-32 ") libmagic=32-bit;;
  72993. + *-n32|*"-n32 ") libmagic=N32;;
  72994. + *-64|*"-64 ") libmagic=64-bit;;
  72995. + *) libmagic=never-match;;
  72996. + esac
  72997. + lt_cv_deplibs_check_method=pass_all
  72998. + ;;
  72999. +
  73000. +# This must be Linux ELF.
  73001. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  73002. + lt_cv_deplibs_check_method=pass_all
  73003. + ;;
  73004. +
  73005. +netbsd* | netbsdelf*-gnu)
  73006. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  73007. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  73008. + else
  73009. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  73010. + fi
  73011. + ;;
  73012. +
  73013. +newos6*)
  73014. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  73015. + lt_cv_file_magic_cmd=/usr/bin/file
  73016. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  73017. + ;;
  73018. +
  73019. +*nto* | *qnx*)
  73020. + lt_cv_deplibs_check_method=pass_all
  73021. + ;;
  73022. +
  73023. +openbsd*)
  73024. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  73025. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  73026. + else
  73027. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  73028. + fi
  73029. + ;;
  73030. +
  73031. +osf3* | osf4* | osf5*)
  73032. + lt_cv_deplibs_check_method=pass_all
  73033. + ;;
  73034. +
  73035. +rdos*)
  73036. + lt_cv_deplibs_check_method=pass_all
  73037. + ;;
  73038. +
  73039. +solaris*)
  73040. + lt_cv_deplibs_check_method=pass_all
  73041. + ;;
  73042. +
  73043. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  73044. + lt_cv_deplibs_check_method=pass_all
  73045. + ;;
  73046. +
  73047. +sysv4 | sysv4.3*)
  73048. + case $host_vendor in
  73049. + motorola)
  73050. + 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]]'
  73051. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  73052. + ;;
  73053. + ncr)
  73054. + lt_cv_deplibs_check_method=pass_all
  73055. + ;;
  73056. + sequent)
  73057. + lt_cv_file_magic_cmd='/bin/file'
  73058. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  73059. + ;;
  73060. + sni)
  73061. + lt_cv_file_magic_cmd='/bin/file'
  73062. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  73063. + lt_cv_file_magic_test_file=/lib/libc.so
  73064. + ;;
  73065. + siemens)
  73066. + lt_cv_deplibs_check_method=pass_all
  73067. + ;;
  73068. + pc)
  73069. + lt_cv_deplibs_check_method=pass_all
  73070. + ;;
  73071. + esac
  73072. + ;;
  73073. +
  73074. +tpf*)
  73075. + lt_cv_deplibs_check_method=pass_all
  73076. + ;;
  73077. +esac
  73078. +])
  73079. +file_magic_cmd=$lt_cv_file_magic_cmd
  73080. +deplibs_check_method=$lt_cv_deplibs_check_method
  73081. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  73082. +
  73083. +_LT_DECL([], [deplibs_check_method], [1],
  73084. + [Method to check whether dependent libraries are shared objects])
  73085. +_LT_DECL([], [file_magic_cmd], [1],
  73086. + [Command to use when deplibs_check_method == "file_magic"])
  73087. +])# _LT_CHECK_MAGIC_METHOD
  73088. +
  73089. +
  73090. +# LT_PATH_NM
  73091. +# ----------
  73092. +# find the pathname to a BSD- or MS-compatible name lister
  73093. +AC_DEFUN([LT_PATH_NM],
  73094. +[AC_REQUIRE([AC_PROG_CC])dnl
  73095. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  73096. +[if test -n "$NM"; then
  73097. + # Let the user override the test.
  73098. + lt_cv_path_NM="$NM"
  73099. +else
  73100. + lt_nm_to_check="${ac_tool_prefix}nm"
  73101. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  73102. + lt_nm_to_check="$lt_nm_to_check nm"
  73103. + fi
  73104. + for lt_tmp_nm in $lt_nm_to_check; do
  73105. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  73106. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  73107. + IFS="$lt_save_ifs"
  73108. + test -z "$ac_dir" && ac_dir=.
  73109. + tmp_nm="$ac_dir/$lt_tmp_nm"
  73110. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  73111. + # Check to see if the nm accepts a BSD-compat flag.
  73112. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  73113. + # nm: unknown option "B" ignored
  73114. + # Tru64's nm complains that /dev/null is an invalid object file
  73115. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  73116. + */dev/null* | *'Invalid file or object type'*)
  73117. + lt_cv_path_NM="$tmp_nm -B"
  73118. + break
  73119. + ;;
  73120. + *)
  73121. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  73122. + */dev/null*)
  73123. + lt_cv_path_NM="$tmp_nm -p"
  73124. + break
  73125. + ;;
  73126. + *)
  73127. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  73128. + continue # so that we can try to find one that supports BSD flags
  73129. + ;;
  73130. + esac
  73131. + ;;
  73132. + esac
  73133. + fi
  73134. + done
  73135. + IFS="$lt_save_ifs"
  73136. + done
  73137. + : ${lt_cv_path_NM=no}
  73138. +fi])
  73139. +if test "$lt_cv_path_NM" != "no"; then
  73140. + NM="$lt_cv_path_NM"
  73141. +else
  73142. + # Didn't find any BSD compatible name lister, look for dumpbin.
  73143. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  73144. + AC_SUBST([DUMPBIN])
  73145. + if test "$DUMPBIN" != ":"; then
  73146. + NM="$DUMPBIN"
  73147. + fi
  73148. +fi
  73149. +test -z "$NM" && NM=nm
  73150. +AC_SUBST([NM])
  73151. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  73152. +
  73153. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  73154. + [lt_cv_nm_interface="BSD nm"
  73155. + echo "int some_variable = 0;" > conftest.$ac_ext
  73156. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  73157. + (eval "$ac_compile" 2>conftest.err)
  73158. + cat conftest.err >&AS_MESSAGE_LOG_FD
  73159. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  73160. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  73161. + cat conftest.err >&AS_MESSAGE_LOG_FD
  73162. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  73163. + cat conftest.out >&AS_MESSAGE_LOG_FD
  73164. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  73165. + lt_cv_nm_interface="MS dumpbin"
  73166. + fi
  73167. + rm -f conftest*])
  73168. +])# LT_PATH_NM
  73169. +
  73170. +# Old names:
  73171. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  73172. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  73173. +dnl aclocal-1.4 backwards compatibility:
  73174. +dnl AC_DEFUN([AM_PROG_NM], [])
  73175. +dnl AC_DEFUN([AC_PROG_NM], [])
  73176. +
  73177. +
  73178. +# LT_LIB_M
  73179. +# --------
  73180. +# check for math library
  73181. +AC_DEFUN([LT_LIB_M],
  73182. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  73183. +LIBM=
  73184. +case $host in
  73185. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  73186. + # These system don't have libm, or don't need it
  73187. + ;;
  73188. +*-ncr-sysv4.3*)
  73189. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  73190. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  73191. + ;;
  73192. +*)
  73193. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  73194. + ;;
  73195. +esac
  73196. +AC_SUBST([LIBM])
  73197. +])# LT_LIB_M
  73198. +
  73199. +# Old name:
  73200. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  73201. +dnl aclocal-1.4 backwards compatibility:
  73202. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  73203. +
  73204. +
  73205. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  73206. +# -------------------------------
  73207. +m4_defun([_LT_COMPILER_NO_RTTI],
  73208. +[m4_require([_LT_TAG_COMPILER])dnl
  73209. +
  73210. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  73211. +
  73212. +if test "$GCC" = yes; then
  73213. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  73214. +
  73215. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  73216. + lt_cv_prog_compiler_rtti_exceptions,
  73217. + [-fno-rtti -fno-exceptions], [],
  73218. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  73219. +fi
  73220. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  73221. + [Compiler flag to turn off builtin functions])
  73222. +])# _LT_COMPILER_NO_RTTI
  73223. +
  73224. +
  73225. +# _LT_CMD_GLOBAL_SYMBOLS
  73226. +# ----------------------
  73227. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  73228. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  73229. +AC_REQUIRE([AC_PROG_CC])dnl
  73230. +AC_REQUIRE([LT_PATH_NM])dnl
  73231. +AC_REQUIRE([LT_PATH_LD])dnl
  73232. +m4_require([_LT_DECL_SED])dnl
  73233. +m4_require([_LT_DECL_EGREP])dnl
  73234. +m4_require([_LT_TAG_COMPILER])dnl
  73235. +
  73236. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  73237. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  73238. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  73239. +[
  73240. +# These are sane defaults that work on at least a few old systems.
  73241. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  73242. +
  73243. +# Character class describing NM global symbol codes.
  73244. +symcode='[[BCDEGRST]]'
  73245. +
  73246. +# Regexp to match symbols that can be accessed directly from C.
  73247. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  73248. +
  73249. +# Define system-specific variables.
  73250. +case $host_os in
  73251. +aix*)
  73252. + symcode='[[BCDT]]'
  73253. + ;;
  73254. +cygwin* | mingw* | pw32* | cegcc*)
  73255. + symcode='[[ABCDGISTW]]'
  73256. + ;;
  73257. +hpux*)
  73258. + if test "$host_cpu" = ia64; then
  73259. + symcode='[[ABCDEGRST]]'
  73260. + fi
  73261. + ;;
  73262. +irix* | nonstopux*)
  73263. + symcode='[[BCDEGRST]]'
  73264. + ;;
  73265. +osf*)
  73266. + symcode='[[BCDEGQRST]]'
  73267. + ;;
  73268. +solaris*)
  73269. + symcode='[[BDRT]]'
  73270. + ;;
  73271. +sco3.2v5*)
  73272. + symcode='[[DT]]'
  73273. + ;;
  73274. +sysv4.2uw2*)
  73275. + symcode='[[DT]]'
  73276. + ;;
  73277. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  73278. + symcode='[[ABDT]]'
  73279. + ;;
  73280. +sysv4)
  73281. + symcode='[[DFNSTU]]'
  73282. + ;;
  73283. +esac
  73284. +
  73285. +# If we're using GNU nm, then use its standard symbol codes.
  73286. +case `$NM -V 2>&1` in
  73287. +*GNU* | *'with BFD'*)
  73288. + symcode='[[ABCDGIRSTW]]' ;;
  73289. +esac
  73290. +
  73291. +# Transform an extracted symbol line into a proper C declaration.
  73292. +# Some systems (esp. on ia64) link data and code symbols differently,
  73293. +# so use this general approach.
  73294. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  73295. +
  73296. +# Transform an extracted symbol line into symbol name and symbol address
  73297. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  73298. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  73299. +
  73300. +# Handle CRLF in mingw tool chain
  73301. +opt_cr=
  73302. +case $build_os in
  73303. +mingw*)
  73304. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  73305. + ;;
  73306. +esac
  73307. +
  73308. +# Try without a prefix underscore, then with it.
  73309. +for ac_symprfx in "" "_"; do
  73310. +
  73311. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  73312. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  73313. +
  73314. + # Write the raw and C identifiers.
  73315. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  73316. + # Fake it for dumpbin and say T for any non-static function
  73317. + # and D for any global variable.
  73318. + # Also find C++ and __fastcall symbols from MSVC++,
  73319. + # which start with @ or ?.
  73320. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  73321. +" {last_section=section; section=\$ 3};"\
  73322. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  73323. +" \$ 0!~/External *\|/{next};"\
  73324. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  73325. +" {if(hide[section]) next};"\
  73326. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  73327. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  73328. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  73329. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  73330. +" ' prfx=^$ac_symprfx]"
  73331. + else
  73332. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  73333. + fi
  73334. +
  73335. + # Check to see that the pipe works correctly.
  73336. + pipe_works=no
  73337. +
  73338. + rm -f conftest*
  73339. + cat > conftest.$ac_ext <<_LT_EOF
  73340. +#ifdef __cplusplus
  73341. +extern "C" {
  73342. +#endif
  73343. +char nm_test_var;
  73344. +void nm_test_func(void);
  73345. +void nm_test_func(void){}
  73346. +#ifdef __cplusplus
  73347. +}
  73348. +#endif
  73349. +int main(){nm_test_var='a';nm_test_func();return(0);}
  73350. +_LT_EOF
  73351. +
  73352. + if AC_TRY_EVAL(ac_compile); then
  73353. + # Now try to grab the symbols.
  73354. + nlist=conftest.nm
  73355. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  73356. + # Try sorting and uniquifying the output.
  73357. + if sort "$nlist" | uniq > "$nlist"T; then
  73358. + mv -f "$nlist"T "$nlist"
  73359. + else
  73360. + rm -f "$nlist"T
  73361. + fi
  73362. +
  73363. + # Make sure that we snagged all the symbols we need.
  73364. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  73365. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  73366. + cat <<_LT_EOF > conftest.$ac_ext
  73367. +#ifdef __cplusplus
  73368. +extern "C" {
  73369. +#endif
  73370. +
  73371. +_LT_EOF
  73372. + # Now generate the symbol file.
  73373. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  73374. +
  73375. + cat <<_LT_EOF >> conftest.$ac_ext
  73376. +
  73377. +/* The mapping between symbol names and symbols. */
  73378. +const struct {
  73379. + const char *name;
  73380. + void *address;
  73381. +}
  73382. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  73383. +{
  73384. + { "@PROGRAM@", (void *) 0 },
  73385. +_LT_EOF
  73386. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  73387. + cat <<\_LT_EOF >> conftest.$ac_ext
  73388. + {0, (void *) 0}
  73389. +};
  73390. +
  73391. +/* This works around a problem in FreeBSD linker */
  73392. +#ifdef FREEBSD_WORKAROUND
  73393. +static const void *lt_preloaded_setup() {
  73394. + return lt__PROGRAM__LTX_preloaded_symbols;
  73395. +}
  73396. +#endif
  73397. +
  73398. +#ifdef __cplusplus
  73399. +}
  73400. +#endif
  73401. +_LT_EOF
  73402. + # Now try linking the two files.
  73403. + mv conftest.$ac_objext conftstm.$ac_objext
  73404. + lt_save_LIBS="$LIBS"
  73405. + lt_save_CFLAGS="$CFLAGS"
  73406. + LIBS="conftstm.$ac_objext"
  73407. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  73408. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  73409. + pipe_works=yes
  73410. + fi
  73411. + LIBS="$lt_save_LIBS"
  73412. + CFLAGS="$lt_save_CFLAGS"
  73413. + else
  73414. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  73415. + fi
  73416. + else
  73417. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  73418. + fi
  73419. + else
  73420. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  73421. + fi
  73422. + else
  73423. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  73424. + cat conftest.$ac_ext >&5
  73425. + fi
  73426. + rm -rf conftest* conftst*
  73427. +
  73428. + # Do not use the global_symbol_pipe unless it works.
  73429. + if test "$pipe_works" = yes; then
  73430. + break
  73431. + else
  73432. + lt_cv_sys_global_symbol_pipe=
  73433. + fi
  73434. +done
  73435. +])
  73436. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  73437. + lt_cv_sys_global_symbol_to_cdecl=
  73438. +fi
  73439. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  73440. + AC_MSG_RESULT(failed)
  73441. +else
  73442. + AC_MSG_RESULT(ok)
  73443. +fi
  73444. +
  73445. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  73446. + [Take the output of nm and produce a listing of raw symbols and C names])
  73447. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  73448. + [Transform the output of nm in a proper C declaration])
  73449. +_LT_DECL([global_symbol_to_c_name_address],
  73450. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  73451. + [Transform the output of nm in a C name address pair])
  73452. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  73453. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  73454. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  73455. +]) # _LT_CMD_GLOBAL_SYMBOLS
  73456. +
  73457. +
  73458. +# _LT_COMPILER_PIC([TAGNAME])
  73459. +# ---------------------------
  73460. +m4_defun([_LT_COMPILER_PIC],
  73461. +[m4_require([_LT_TAG_COMPILER])dnl
  73462. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  73463. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  73464. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  73465. +
  73466. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  73467. +m4_if([$1], [CXX], [
  73468. + # C++ specific cases for pic, static, wl, etc.
  73469. + if test "$GXX" = yes; then
  73470. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73471. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73472. +
  73473. + case $host_os in
  73474. + aix*)
  73475. + # All AIX code is PIC.
  73476. + if test "$host_cpu" = ia64; then
  73477. + # AIX 5 now supports IA64 processor
  73478. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73479. + fi
  73480. + ;;
  73481. +
  73482. + amigaos*)
  73483. + case $host_cpu in
  73484. + powerpc)
  73485. + # see comment about AmigaOS4 .so support
  73486. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73487. + ;;
  73488. + m68k)
  73489. + # FIXME: we need at least 68020 code to build shared libraries, but
  73490. + # adding the `-m68020' flag to GCC prevents building anything better,
  73491. + # like `-m68040'.
  73492. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  73493. + ;;
  73494. + esac
  73495. + ;;
  73496. +
  73497. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  73498. + # PIC is the default for these OSes.
  73499. + ;;
  73500. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  73501. + # This hack is so that the source file can tell whether it is being
  73502. + # built for inclusion in a dll (and should export symbols for example).
  73503. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  73504. + # (--disable-auto-import) libraries
  73505. + m4_if([$1], [GCJ], [],
  73506. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  73507. + ;;
  73508. + darwin* | rhapsody*)
  73509. + # PIC is the default on this platform
  73510. + # Common symbols not allowed in MH_DYLIB files
  73511. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  73512. + ;;
  73513. + *djgpp*)
  73514. + # DJGPP does not support shared libraries at all
  73515. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  73516. + ;;
  73517. + interix[[3-9]]*)
  73518. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  73519. + # Instead, we relocate shared libraries at runtime.
  73520. + ;;
  73521. + sysv4*MP*)
  73522. + if test -d /usr/nec; then
  73523. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  73524. + fi
  73525. + ;;
  73526. + hpux*)
  73527. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  73528. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  73529. + # sets the default TLS model and affects inlining.
  73530. + case $host_cpu in
  73531. + hppa*64*)
  73532. + ;;
  73533. + *)
  73534. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73535. + ;;
  73536. + esac
  73537. + ;;
  73538. + *qnx* | *nto*)
  73539. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  73540. + # it will coredump.
  73541. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  73542. + ;;
  73543. + *)
  73544. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73545. + ;;
  73546. + esac
  73547. + else
  73548. + case $host_os in
  73549. + aix[[4-9]]*)
  73550. + # All AIX code is PIC.
  73551. + if test "$host_cpu" = ia64; then
  73552. + # AIX 5 now supports IA64 processor
  73553. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73554. + else
  73555. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  73556. + fi
  73557. + ;;
  73558. + chorus*)
  73559. + case $cc_basename in
  73560. + cxch68*)
  73561. + # Green Hills C++ Compiler
  73562. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  73563. + ;;
  73564. + esac
  73565. + ;;
  73566. + dgux*)
  73567. + case $cc_basename in
  73568. + ec++*)
  73569. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73570. + ;;
  73571. + ghcx*)
  73572. + # Green Hills C++ Compiler
  73573. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  73574. + ;;
  73575. + *)
  73576. + ;;
  73577. + esac
  73578. + ;;
  73579. + freebsd* | dragonfly*)
  73580. + # FreeBSD uses GNU C++
  73581. + ;;
  73582. + hpux9* | hpux10* | hpux11*)
  73583. + case $cc_basename in
  73584. + CC*)
  73585. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73586. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  73587. + if test "$host_cpu" != ia64; then
  73588. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  73589. + fi
  73590. + ;;
  73591. + aCC*)
  73592. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73593. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  73594. + case $host_cpu in
  73595. + hppa*64*|ia64*)
  73596. + # +Z the default
  73597. + ;;
  73598. + *)
  73599. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  73600. + ;;
  73601. + esac
  73602. + ;;
  73603. + *)
  73604. + ;;
  73605. + esac
  73606. + ;;
  73607. + interix*)
  73608. + # This is c89, which is MS Visual C++ (no shared libs)
  73609. + # Anyone wants to do a port?
  73610. + ;;
  73611. + irix5* | irix6* | nonstopux*)
  73612. + case $cc_basename in
  73613. + CC*)
  73614. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73615. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73616. + # CC pic flag -KPIC is the default.
  73617. + ;;
  73618. + *)
  73619. + ;;
  73620. + esac
  73621. + ;;
  73622. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  73623. + case $cc_basename in
  73624. + KCC*)
  73625. + # KAI C++ Compiler
  73626. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  73627. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73628. + ;;
  73629. + ecpc* )
  73630. + # old Intel C++ for x86_64 which still supported -KPIC.
  73631. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73632. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73633. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73634. + ;;
  73635. + icpc* )
  73636. + # Intel C++, used to be incompatible with GCC.
  73637. + # ICC 10 doesn't accept -KPIC any more.
  73638. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73639. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73640. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73641. + ;;
  73642. + pgCC* | pgcpp*)
  73643. + # Portland Group C++ compiler
  73644. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73645. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  73646. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73647. + ;;
  73648. + cxx*)
  73649. + # Compaq C++
  73650. + # Make sure the PIC flag is empty. It appears that all Alpha
  73651. + # Linux and Compaq Tru64 Unix objects are PIC.
  73652. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  73653. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73654. + ;;
  73655. + xlc* | xlC*)
  73656. + # IBM XL 8.0 on PPC
  73657. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73658. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  73659. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  73660. + ;;
  73661. + *)
  73662. + case `$CC -V 2>&1 | sed 5q` in
  73663. + *Sun\ C*)
  73664. + # Sun C++ 5.9
  73665. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73666. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73667. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  73668. + ;;
  73669. + esac
  73670. + ;;
  73671. + esac
  73672. + ;;
  73673. + lynxos*)
  73674. + ;;
  73675. + m88k*)
  73676. + ;;
  73677. + mvs*)
  73678. + case $cc_basename in
  73679. + cxx*)
  73680. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  73681. + ;;
  73682. + *)
  73683. + ;;
  73684. + esac
  73685. + ;;
  73686. + netbsd* | netbsdelf*-gnu)
  73687. + ;;
  73688. + *qnx* | *nto*)
  73689. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  73690. + # it will coredump.
  73691. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  73692. + ;;
  73693. + osf3* | osf4* | osf5*)
  73694. + case $cc_basename in
  73695. + KCC*)
  73696. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  73697. + ;;
  73698. + RCC*)
  73699. + # Rational C++ 2.4.1
  73700. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  73701. + ;;
  73702. + cxx*)
  73703. + # Digital/Compaq C++
  73704. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73705. + # Make sure the PIC flag is empty. It appears that all Alpha
  73706. + # Linux and Compaq Tru64 Unix objects are PIC.
  73707. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  73708. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73709. + ;;
  73710. + *)
  73711. + ;;
  73712. + esac
  73713. + ;;
  73714. + psos*)
  73715. + ;;
  73716. + solaris*)
  73717. + case $cc_basename in
  73718. + CC*)
  73719. + # Sun C++ 4.2, 5.x and Centerline C++
  73720. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73721. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73722. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  73723. + ;;
  73724. + gcx*)
  73725. + # Green Hills C++ Compiler
  73726. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  73727. + ;;
  73728. + *)
  73729. + ;;
  73730. + esac
  73731. + ;;
  73732. + sunos4*)
  73733. + case $cc_basename in
  73734. + CC*)
  73735. + # Sun C++ 4.x
  73736. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  73737. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73738. + ;;
  73739. + lcc*)
  73740. + # Lucid
  73741. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  73742. + ;;
  73743. + *)
  73744. + ;;
  73745. + esac
  73746. + ;;
  73747. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  73748. + case $cc_basename in
  73749. + CC*)
  73750. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73751. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73752. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73753. + ;;
  73754. + esac
  73755. + ;;
  73756. + tandem*)
  73757. + case $cc_basename in
  73758. + NCC*)
  73759. + # NonStop-UX NCC 3.20
  73760. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73761. + ;;
  73762. + *)
  73763. + ;;
  73764. + esac
  73765. + ;;
  73766. + vxworks*)
  73767. + ;;
  73768. + *)
  73769. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  73770. + ;;
  73771. + esac
  73772. + fi
  73773. +],
  73774. +[
  73775. + if test "$GCC" = yes; then
  73776. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73777. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73778. +
  73779. + case $host_os in
  73780. + aix*)
  73781. + # All AIX code is PIC.
  73782. + if test "$host_cpu" = ia64; then
  73783. + # AIX 5 now supports IA64 processor
  73784. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73785. + fi
  73786. + ;;
  73787. +
  73788. + amigaos*)
  73789. + case $host_cpu in
  73790. + powerpc)
  73791. + # see comment about AmigaOS4 .so support
  73792. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73793. + ;;
  73794. + m68k)
  73795. + # FIXME: we need at least 68020 code to build shared libraries, but
  73796. + # adding the `-m68020' flag to GCC prevents building anything better,
  73797. + # like `-m68040'.
  73798. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  73799. + ;;
  73800. + esac
  73801. + ;;
  73802. +
  73803. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  73804. + # PIC is the default for these OSes.
  73805. + ;;
  73806. +
  73807. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  73808. + # This hack is so that the source file can tell whether it is being
  73809. + # built for inclusion in a dll (and should export symbols for example).
  73810. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  73811. + # (--disable-auto-import) libraries
  73812. + m4_if([$1], [GCJ], [],
  73813. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  73814. + ;;
  73815. +
  73816. + darwin* | rhapsody*)
  73817. + # PIC is the default on this platform
  73818. + # Common symbols not allowed in MH_DYLIB files
  73819. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  73820. + ;;
  73821. +
  73822. + hpux*)
  73823. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  73824. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  73825. + # sets the default TLS model and affects inlining.
  73826. + case $host_cpu in
  73827. + hppa*64*)
  73828. + # +Z the default
  73829. + ;;
  73830. + *)
  73831. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73832. + ;;
  73833. + esac
  73834. + ;;
  73835. +
  73836. + interix[[3-9]]*)
  73837. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  73838. + # Instead, we relocate shared libraries at runtime.
  73839. + ;;
  73840. +
  73841. + msdosdjgpp*)
  73842. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  73843. + # on systems that don't support them.
  73844. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  73845. + enable_shared=no
  73846. + ;;
  73847. +
  73848. + *nto* | *qnx*)
  73849. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  73850. + # it will coredump.
  73851. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  73852. + ;;
  73853. +
  73854. + sysv4*MP*)
  73855. + if test -d /usr/nec; then
  73856. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  73857. + fi
  73858. + ;;
  73859. +
  73860. + *)
  73861. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73862. + ;;
  73863. + esac
  73864. + else
  73865. + # PORTME Check for flag to pass linker flags through the system compiler.
  73866. + case $host_os in
  73867. + aix*)
  73868. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73869. + if test "$host_cpu" = ia64; then
  73870. + # AIX 5 now supports IA64 processor
  73871. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73872. + else
  73873. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  73874. + fi
  73875. + ;;
  73876. +
  73877. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  73878. + # This hack is so that the source file can tell whether it is being
  73879. + # built for inclusion in a dll (and should export symbols for example).
  73880. + m4_if([$1], [GCJ], [],
  73881. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  73882. + ;;
  73883. +
  73884. + hpux9* | hpux10* | hpux11*)
  73885. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73886. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  73887. + # not for PA HP-UX.
  73888. + case $host_cpu in
  73889. + hppa*64*|ia64*)
  73890. + # +Z the default
  73891. + ;;
  73892. + *)
  73893. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  73894. + ;;
  73895. + esac
  73896. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  73897. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  73898. + ;;
  73899. +
  73900. + irix5* | irix6* | nonstopux*)
  73901. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73902. + # PIC (with -KPIC) is the default.
  73903. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73904. + ;;
  73905. +
  73906. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  73907. + case $cc_basename in
  73908. + # old Intel for x86_64 which still supported -KPIC.
  73909. + ecc*)
  73910. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73911. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73912. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73913. + ;;
  73914. + # icc used to be incompatible with GCC.
  73915. + # ICC 10 doesn't accept -KPIC any more.
  73916. + icc* | ifort*)
  73917. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73918. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  73919. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  73920. + ;;
  73921. + # Lahey Fortran 8.1.
  73922. + lf95*)
  73923. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73924. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  73925. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  73926. + ;;
  73927. + pgcc* | pgf77* | pgf90* | pgf95*)
  73928. + # Portland Group compilers (*not* the Pentium gcc compiler,
  73929. + # which looks to be a dead project)
  73930. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73931. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  73932. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73933. + ;;
  73934. + ccc*)
  73935. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73936. + # All Alpha code is PIC.
  73937. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73938. + ;;
  73939. + xl*)
  73940. + # IBM XL C 8.0/Fortran 10.1 on PPC
  73941. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73942. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  73943. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  73944. + ;;
  73945. + *)
  73946. + case `$CC -V 2>&1 | sed 5q` in
  73947. + *Sun\ C*)
  73948. + # Sun C 5.9
  73949. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73950. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73951. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73952. + ;;
  73953. + *Sun\ F*)
  73954. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  73955. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73956. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73957. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  73958. + ;;
  73959. + esac
  73960. + ;;
  73961. + esac
  73962. + ;;
  73963. +
  73964. + newsos6)
  73965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73966. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73967. + ;;
  73968. +
  73969. + *nto* | *qnx*)
  73970. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  73971. + # it will coredump.
  73972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  73973. + ;;
  73974. +
  73975. + osf3* | osf4* | osf5*)
  73976. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  73977. + # All OSF/1 code is PIC.
  73978. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73979. + ;;
  73980. +
  73981. + rdos*)
  73982. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  73983. + ;;
  73984. +
  73985. + solaris*)
  73986. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  73987. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  73988. + case $cc_basename in
  73989. + f77* | f90* | f95*)
  73990. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  73991. + *)
  73992. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  73993. + esac
  73994. + ;;
  73995. +
  73996. + sunos4*)
  73997. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  73998. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  73999. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  74000. + ;;
  74001. +
  74002. + sysv4 | sysv4.2uw2* | sysv4.3*)
  74003. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  74004. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  74005. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  74006. + ;;
  74007. +
  74008. + sysv4*MP*)
  74009. + if test -d /usr/nec ;then
  74010. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  74011. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  74012. + fi
  74013. + ;;
  74014. +
  74015. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  74016. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  74017. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  74018. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  74019. + ;;
  74020. +
  74021. + unicos*)
  74022. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  74023. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  74024. + ;;
  74025. +
  74026. + uts4*)
  74027. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  74028. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  74029. + ;;
  74030. +
  74031. + *)
  74032. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  74033. + ;;
  74034. + esac
  74035. + fi
  74036. +])
  74037. +case $host_os in
  74038. + # For platforms which do not support PIC, -DPIC is meaningless:
  74039. + *djgpp*)
  74040. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  74041. + ;;
  74042. + *)
  74043. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  74044. + ;;
  74045. +esac
  74046. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  74047. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  74048. + [How to pass a linker flag through the compiler])
  74049. +
  74050. +#
  74051. +# Check to make sure the PIC flag actually works.
  74052. +#
  74053. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  74054. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  74055. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  74056. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  74057. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  74058. + "" | " "*) ;;
  74059. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  74060. + esac],
  74061. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  74062. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  74063. +fi
  74064. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  74065. + [Additional compiler flags for building library objects])
  74066. +
  74067. +#
  74068. +# Check to make sure the static flag actually works.
  74069. +#
  74070. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  74071. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  74072. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  74073. + $lt_tmp_static_flag,
  74074. + [],
  74075. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  74076. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  74077. + [Compiler flag to prevent dynamic linking])
  74078. +])# _LT_COMPILER_PIC
  74079. +
  74080. +
  74081. +# _LT_LINKER_SHLIBS([TAGNAME])
  74082. +# ----------------------------
  74083. +# See if the linker supports building shared libraries.
  74084. +m4_defun([_LT_LINKER_SHLIBS],
  74085. +[AC_REQUIRE([LT_PATH_LD])dnl
  74086. +AC_REQUIRE([LT_PATH_NM])dnl
  74087. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  74088. +m4_require([_LT_DECL_EGREP])dnl
  74089. +m4_require([_LT_DECL_SED])dnl
  74090. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  74091. +m4_require([_LT_TAG_COMPILER])dnl
  74092. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  74093. +m4_if([$1], [CXX], [
  74094. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  74095. + case $host_os in
  74096. + aix[[4-9]]*)
  74097. + # If we're using GNU nm, then we don't want the "-C" option.
  74098. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  74099. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  74100. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  74101. + else
  74102. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  74103. + fi
  74104. + ;;
  74105. + pw32*)
  74106. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  74107. + ;;
  74108. + cygwin* | mingw* | cegcc*)
  74109. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  74110. + ;;
  74111. + linux* | k*bsd*-gnu)
  74112. + _LT_TAGVAR(link_all_deplibs, $1)=no
  74113. + ;;
  74114. + *)
  74115. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  74116. + ;;
  74117. + esac
  74118. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  74119. +], [
  74120. + runpath_var=
  74121. + _LT_TAGVAR(allow_undefined_flag, $1)=
  74122. + _LT_TAGVAR(always_export_symbols, $1)=no
  74123. + _LT_TAGVAR(archive_cmds, $1)=
  74124. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  74125. + _LT_TAGVAR(compiler_needs_object, $1)=no
  74126. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  74127. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  74128. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  74129. + _LT_TAGVAR(hardcode_automatic, $1)=no
  74130. + _LT_TAGVAR(hardcode_direct, $1)=no
  74131. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  74132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  74133. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  74134. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  74135. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  74136. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  74137. + _LT_TAGVAR(inherit_rpath, $1)=no
  74138. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  74139. + _LT_TAGVAR(module_cmds, $1)=
  74140. + _LT_TAGVAR(module_expsym_cmds, $1)=
  74141. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  74142. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  74143. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  74144. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  74145. + # include_expsyms should be a list of space-separated symbols to be *always*
  74146. + # included in the symbol list
  74147. + _LT_TAGVAR(include_expsyms, $1)=
  74148. + # exclude_expsyms can be an extended regexp of symbols to exclude
  74149. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  74150. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  74151. + # as well as any symbol that contains `d'.
  74152. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  74153. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  74154. + # platforms (ab)use it in PIC code, but their linkers get confused if
  74155. + # the symbol is explicitly referenced. Since portable code cannot
  74156. + # rely on this symbol name, it's probably fine to never include it in
  74157. + # preloaded symbol tables.
  74158. + # Exclude shared library initialization/finalization symbols.
  74159. +dnl Note also adjust exclude_expsyms for C++ above.
  74160. + extract_expsyms_cmds=
  74161. +
  74162. + case $host_os in
  74163. + cygwin* | mingw* | pw32* | cegcc*)
  74164. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  74165. + # When not using gcc, we currently assume that we are using
  74166. + # Microsoft Visual C++.
  74167. + if test "$GCC" != yes; then
  74168. + with_gnu_ld=no
  74169. + fi
  74170. + ;;
  74171. + interix*)
  74172. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  74173. + with_gnu_ld=yes
  74174. + ;;
  74175. + openbsd*)
  74176. + with_gnu_ld=no
  74177. + ;;
  74178. + linux* | k*bsd*-gnu)
  74179. + _LT_TAGVAR(link_all_deplibs, $1)=no
  74180. + ;;
  74181. + esac
  74182. +
  74183. + _LT_TAGVAR(ld_shlibs, $1)=yes
  74184. + if test "$with_gnu_ld" = yes; then
  74185. + # If archive_cmds runs LD, not CC, wlarc should be empty
  74186. + wlarc='${wl}'
  74187. +
  74188. + # Set some defaults for GNU ld with shared library support. These
  74189. + # are reset later if shared libraries are not supported. Putting them
  74190. + # here allows them to be overridden if necessary.
  74191. + runpath_var=LD_RUN_PATH
  74192. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74193. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  74194. + # ancient GNU ld didn't support --whole-archive et. al.
  74195. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  74196. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  74197. + else
  74198. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  74199. + fi
  74200. + supports_anon_versioning=no
  74201. + case `$LD -v 2>&1` in
  74202. + *GNU\ gold*) supports_anon_versioning=yes ;;
  74203. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  74204. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  74205. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  74206. + *\ 2.11.*) ;; # other 2.11 versions
  74207. + *) supports_anon_versioning=yes ;;
  74208. + esac
  74209. +
  74210. + # See if GNU ld supports shared libraries.
  74211. + case $host_os in
  74212. + aix[[3-9]]*)
  74213. + # On AIX/PPC, the GNU linker is very broken
  74214. + if test "$host_cpu" != ia64; then
  74215. + _LT_TAGVAR(ld_shlibs, $1)=no
  74216. + cat <<_LT_EOF 1>&2
  74217. +
  74218. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  74219. +*** to be unable to reliably create shared libraries on AIX.
  74220. +*** Therefore, libtool is disabling shared libraries support. If you
  74221. +*** really care for shared libraries, you may want to modify your PATH
  74222. +*** so that a non-GNU linker is found, and then restart.
  74223. +
  74224. +_LT_EOF
  74225. + fi
  74226. + ;;
  74227. +
  74228. + amigaos*)
  74229. + case $host_cpu in
  74230. + powerpc)
  74231. + # see comment about AmigaOS4 .so support
  74232. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74233. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  74234. + ;;
  74235. + m68k)
  74236. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  74237. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74238. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74239. + ;;
  74240. + esac
  74241. + ;;
  74242. +
  74243. + beos*)
  74244. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  74245. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  74246. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  74247. + # support --undefined. This deserves some investigation. FIXME
  74248. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74249. + else
  74250. + _LT_TAGVAR(ld_shlibs, $1)=no
  74251. + fi
  74252. + ;;
  74253. +
  74254. + cygwin* | mingw* | pw32* | cegcc*)
  74255. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  74256. + # as there is no search path for DLLs.
  74257. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74258. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  74259. + _LT_TAGVAR(always_export_symbols, $1)=no
  74260. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  74261. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  74262. +
  74263. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  74264. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  74265. + # If the export-symbols file already is a .def file (1st line
  74266. + # is EXPORTS), use it as is; otherwise, prepend...
  74267. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  74268. + cp $export_symbols $output_objdir/$soname.def;
  74269. + else
  74270. + echo EXPORTS > $output_objdir/$soname.def;
  74271. + cat $export_symbols >> $output_objdir/$soname.def;
  74272. + fi~
  74273. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  74274. + else
  74275. + _LT_TAGVAR(ld_shlibs, $1)=no
  74276. + fi
  74277. + ;;
  74278. +
  74279. + interix[[3-9]]*)
  74280. + _LT_TAGVAR(hardcode_direct, $1)=no
  74281. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74282. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  74283. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  74284. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  74285. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  74286. + # default) and relocated if they conflict, which is a slow very memory
  74287. + # consuming and fragmenting process. To avoid this, we pick a random,
  74288. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  74289. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  74290. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  74291. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  74292. + ;;
  74293. +
  74294. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  74295. + tmp_diet=no
  74296. + if test "$host_os" = linux-dietlibc; then
  74297. + case $cc_basename in
  74298. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  74299. + esac
  74300. + fi
  74301. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  74302. + && test "$tmp_diet" = no
  74303. + then
  74304. + tmp_addflag=
  74305. + tmp_sharedflag='-shared'
  74306. + case $cc_basename,$host_cpu in
  74307. + pgcc*) # Portland Group C compiler
  74308. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  74309. + tmp_addflag=' $pic_flag'
  74310. + ;;
  74311. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  74312. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  74313. + tmp_addflag=' $pic_flag -Mnomain' ;;
  74314. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  74315. + tmp_addflag=' -i_dynamic' ;;
  74316. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  74317. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  74318. + ifc* | ifort*) # Intel Fortran compiler
  74319. + tmp_addflag=' -nofor_main' ;;
  74320. + lf95*) # Lahey Fortran 8.1
  74321. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  74322. + tmp_sharedflag='--shared' ;;
  74323. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  74324. + tmp_sharedflag='-qmkshrobj'
  74325. + tmp_addflag= ;;
  74326. + esac
  74327. + case `$CC -V 2>&1 | sed 5q` in
  74328. + *Sun\ C*) # Sun C 5.9
  74329. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  74330. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  74331. + tmp_sharedflag='-G' ;;
  74332. + *Sun\ F*) # Sun Fortran 8.3
  74333. + tmp_sharedflag='-G' ;;
  74334. + esac
  74335. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74336. +
  74337. + if test "x$supports_anon_versioning" = xyes; then
  74338. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  74339. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  74340. + echo "local: *; };" >> $output_objdir/$libname.ver~
  74341. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  74342. + fi
  74343. +
  74344. + case $cc_basename in
  74345. + xlf*)
  74346. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  74347. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  74348. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  74349. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  74350. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  74351. + if test "x$supports_anon_versioning" = xyes; then
  74352. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  74353. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  74354. + echo "local: *; };" >> $output_objdir/$libname.ver~
  74355. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  74356. + fi
  74357. + ;;
  74358. + esac
  74359. + else
  74360. + _LT_TAGVAR(ld_shlibs, $1)=no
  74361. + fi
  74362. + ;;
  74363. +
  74364. + netbsd* | netbsdelf*-gnu)
  74365. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  74366. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  74367. + wlarc=
  74368. + else
  74369. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74370. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  74371. + fi
  74372. + ;;
  74373. +
  74374. + solaris*)
  74375. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  74376. + _LT_TAGVAR(ld_shlibs, $1)=no
  74377. + cat <<_LT_EOF 1>&2
  74378. +
  74379. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  74380. +*** create shared libraries on Solaris systems. Therefore, libtool
  74381. +*** is disabling shared libraries support. We urge you to upgrade GNU
  74382. +*** binutils to release 2.9.1 or newer. Another option is to modify
  74383. +*** your PATH or compiler configuration so that the native linker is
  74384. +*** used, and then restart.
  74385. +
  74386. +_LT_EOF
  74387. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  74388. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74389. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  74390. + else
  74391. + _LT_TAGVAR(ld_shlibs, $1)=no
  74392. + fi
  74393. + ;;
  74394. +
  74395. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  74396. + case `$LD -v 2>&1` in
  74397. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  74398. + _LT_TAGVAR(ld_shlibs, $1)=no
  74399. + cat <<_LT_EOF 1>&2
  74400. +
  74401. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  74402. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  74403. +*** is disabling shared libraries support. We urge you to upgrade GNU
  74404. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  74405. +*** your PATH or compiler configuration so that the native linker is
  74406. +*** used, and then restart.
  74407. +
  74408. +_LT_EOF
  74409. + ;;
  74410. + *)
  74411. + # For security reasons, it is highly recommended that you always
  74412. + # use absolute paths for naming shared libraries, and exclude the
  74413. + # DT_RUNPATH tag from executables and libraries. But doing so
  74414. + # requires that you compile everything twice, which is a pain.
  74415. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  74416. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74417. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74418. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  74419. + else
  74420. + _LT_TAGVAR(ld_shlibs, $1)=no
  74421. + fi
  74422. + ;;
  74423. + esac
  74424. + ;;
  74425. +
  74426. + sunos4*)
  74427. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  74428. + wlarc=
  74429. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74430. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74431. + ;;
  74432. +
  74433. + *)
  74434. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  74435. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74436. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  74437. + else
  74438. + _LT_TAGVAR(ld_shlibs, $1)=no
  74439. + fi
  74440. + ;;
  74441. + esac
  74442. +
  74443. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  74444. + runpath_var=
  74445. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  74446. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  74447. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  74448. + fi
  74449. + else
  74450. + # PORTME fill in a description of your system's linker (not GNU ld)
  74451. + case $host_os in
  74452. + aix3*)
  74453. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  74454. + _LT_TAGVAR(always_export_symbols, $1)=yes
  74455. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  74456. + # Note: this linker hardcodes the directories in LIBPATH if there
  74457. + # are no directories specified by -L.
  74458. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74459. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  74460. + # Neither direct hardcoding nor static linking is supported with a
  74461. + # broken collect2.
  74462. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  74463. + fi
  74464. + ;;
  74465. +
  74466. + aix[[4-9]]*)
  74467. + if test "$host_cpu" = ia64; then
  74468. + # On IA64, the linker does run time linking by default, so we don't
  74469. + # have to do anything special.
  74470. + aix_use_runtimelinking=no
  74471. + exp_sym_flag='-Bexport'
  74472. + no_entry_flag=""
  74473. + else
  74474. + # If we're using GNU nm, then we don't want the "-C" option.
  74475. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  74476. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  74477. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  74478. + else
  74479. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  74480. + fi
  74481. + aix_use_runtimelinking=no
  74482. +
  74483. + # Test if we are trying to use run time linking or normal
  74484. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  74485. + # need to do runtime linking.
  74486. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  74487. + for ld_flag in $LDFLAGS; do
  74488. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  74489. + aix_use_runtimelinking=yes
  74490. + break
  74491. + fi
  74492. + done
  74493. + ;;
  74494. + esac
  74495. +
  74496. + exp_sym_flag='-bexport'
  74497. + no_entry_flag='-bnoentry'
  74498. + fi
  74499. +
  74500. + # When large executables or shared objects are built, AIX ld can
  74501. + # have problems creating the table of contents. If linking a library
  74502. + # or program results in "error TOC overflow" add -mminimal-toc to
  74503. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  74504. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  74505. +
  74506. + _LT_TAGVAR(archive_cmds, $1)=''
  74507. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74508. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  74509. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  74510. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  74511. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  74512. +
  74513. + if test "$GCC" = yes; then
  74514. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  74515. + # We only want to do this on AIX 4.2 and lower, the check
  74516. + # below for broken collect2 doesn't work under 4.3+
  74517. + collect2name=`${CC} -print-prog-name=collect2`
  74518. + if test -f "$collect2name" &&
  74519. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  74520. + then
  74521. + # We have reworked collect2
  74522. + :
  74523. + else
  74524. + # We have old collect2
  74525. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  74526. + # It fails to find uninstalled libraries when the uninstalled
  74527. + # path is not listed in the libpath. Setting hardcode_minus_L
  74528. + # to unsupported forces relinking
  74529. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74530. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74531. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  74532. + fi
  74533. + ;;
  74534. + esac
  74535. + shared_flag='-shared'
  74536. + if test "$aix_use_runtimelinking" = yes; then
  74537. + shared_flag="$shared_flag "'${wl}-G'
  74538. + fi
  74539. + _LT_TAGVAR(link_all_deplibs, $1)=no
  74540. + else
  74541. + # not using gcc
  74542. + if test "$host_cpu" = ia64; then
  74543. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  74544. + # chokes on -Wl,-G. The following line is correct:
  74545. + shared_flag='-G'
  74546. + else
  74547. + if test "$aix_use_runtimelinking" = yes; then
  74548. + shared_flag='${wl}-G'
  74549. + else
  74550. + shared_flag='${wl}-bM:SRE'
  74551. + fi
  74552. + fi
  74553. + fi
  74554. +
  74555. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  74556. + # It seems that -bexpall does not export symbols beginning with
  74557. + # underscore (_), so it is better to generate a list of symbols to export.
  74558. + _LT_TAGVAR(always_export_symbols, $1)=yes
  74559. + if test "$aix_use_runtimelinking" = yes; then
  74560. + # Warning - without using the other runtime loading flags (-brtl),
  74561. + # -berok will link without error, but may produce a broken library.
  74562. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  74563. + # Determine the default libpath from the value encoded in an
  74564. + # empty executable.
  74565. + _LT_SYS_MODULE_PATH_AIX
  74566. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  74567. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  74568. + else
  74569. + if test "$host_cpu" = ia64; then
  74570. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  74571. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  74572. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  74573. + else
  74574. + # Determine the default libpath from the value encoded in an
  74575. + # empty executable.
  74576. + _LT_SYS_MODULE_PATH_AIX
  74577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  74578. + # Warning - without using the other run time loading flags,
  74579. + # -berok will link without error, but may produce a broken library.
  74580. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  74581. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  74582. + # Exported symbols can be pulled into shared objects from archives
  74583. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  74584. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  74585. + # This is similar to how AIX traditionally builds its shared libraries.
  74586. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  74587. + fi
  74588. + fi
  74589. + ;;
  74590. +
  74591. + amigaos*)
  74592. + case $host_cpu in
  74593. + powerpc)
  74594. + # see comment about AmigaOS4 .so support
  74595. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  74596. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  74597. + ;;
  74598. + m68k)
  74599. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  74600. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74601. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74602. + ;;
  74603. + esac
  74604. + ;;
  74605. +
  74606. + bsdi[[45]]*)
  74607. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  74608. + ;;
  74609. +
  74610. + cygwin* | mingw* | pw32* | cegcc*)
  74611. + # When not using gcc, we currently assume that we are using
  74612. + # Microsoft Visual C++.
  74613. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  74614. + # no search path for DLLs.
  74615. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  74616. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  74617. + # Tell ltmain to make .lib files, not .a files.
  74618. + libext=lib
  74619. + # Tell ltmain to make .dll files, not .so files.
  74620. + shrext_cmds=".dll"
  74621. + # FIXME: Setting linknames here is a bad hack.
  74622. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  74623. + # The linker will automatically build a .lib file if we build a DLL.
  74624. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  74625. + # FIXME: Should let the user specify the lib program.
  74626. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  74627. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  74628. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  74629. + ;;
  74630. +
  74631. + darwin* | rhapsody*)
  74632. + _LT_DARWIN_LINKER_FEATURES($1)
  74633. + ;;
  74634. +
  74635. + dgux*)
  74636. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74637. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74638. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74639. + ;;
  74640. +
  74641. + freebsd1*)
  74642. + _LT_TAGVAR(ld_shlibs, $1)=no
  74643. + ;;
  74644. +
  74645. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  74646. + # support. Future versions do this automatically, but an explicit c++rt0.o
  74647. + # does not break anything, and helps significantly (at the cost of a little
  74648. + # extra space).
  74649. + freebsd2.2*)
  74650. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  74651. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  74652. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74653. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74654. + ;;
  74655. +
  74656. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  74657. + freebsd2*)
  74658. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  74659. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74660. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74661. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74662. + ;;
  74663. +
  74664. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  74665. + freebsd* | dragonfly*)
  74666. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  74667. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  74668. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74669. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74670. + ;;
  74671. +
  74672. + hpux9*)
  74673. + if test "$GCC" = yes; then
  74674. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  74675. + else
  74676. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  74677. + fi
  74678. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  74679. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74680. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74681. +
  74682. + # hardcode_minus_L: Not really in the search PATH,
  74683. + # but as the default location of the library.
  74684. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74685. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  74686. + ;;
  74687. +
  74688. + hpux10*)
  74689. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  74690. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  74691. + else
  74692. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  74693. + fi
  74694. + if test "$with_gnu_ld" = no; then
  74695. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  74696. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  74697. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74698. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74699. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  74700. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  74701. + # hardcode_minus_L: Not really in the search PATH,
  74702. + # but as the default location of the library.
  74703. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74704. + fi
  74705. + ;;
  74706. +
  74707. + hpux11*)
  74708. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  74709. + case $host_cpu in
  74710. + hppa*64*)
  74711. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  74712. + ;;
  74713. + ia64*)
  74714. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  74715. + ;;
  74716. + *)
  74717. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  74718. + ;;
  74719. + esac
  74720. + else
  74721. + case $host_cpu in
  74722. + hppa*64*)
  74723. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  74724. + ;;
  74725. + ia64*)
  74726. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  74727. + ;;
  74728. + *)
  74729. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  74730. + ;;
  74731. + esac
  74732. + fi
  74733. + if test "$with_gnu_ld" = no; then
  74734. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  74735. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74736. +
  74737. + case $host_cpu in
  74738. + hppa*64*|ia64*)
  74739. + _LT_TAGVAR(hardcode_direct, $1)=no
  74740. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74741. + ;;
  74742. + *)
  74743. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74744. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  74745. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  74746. +
  74747. + # hardcode_minus_L: Not really in the search PATH,
  74748. + # but as the default location of the library.
  74749. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74750. + ;;
  74751. + esac
  74752. + fi
  74753. + ;;
  74754. +
  74755. + irix5* | irix6* | nonstopux*)
  74756. + if test "$GCC" = yes; then
  74757. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  74758. + # Try to use the -exported_symbol ld option, if it does not
  74759. + # work, assume that -exports_file does not work either and
  74760. + # implicitly export all symbols.
  74761. + save_LDFLAGS="$LDFLAGS"
  74762. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  74763. + AC_LINK_IFELSE(int foo(void) {},
  74764. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  74765. + )
  74766. + LDFLAGS="$save_LDFLAGS"
  74767. + else
  74768. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  74769. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  74770. + fi
  74771. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  74772. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74773. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74774. + _LT_TAGVAR(inherit_rpath, $1)=yes
  74775. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  74776. + ;;
  74777. +
  74778. + netbsd* | netbsdelf*-gnu)
  74779. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  74780. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  74781. + else
  74782. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  74783. + fi
  74784. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  74785. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74786. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74787. + ;;
  74788. +
  74789. + newsos6)
  74790. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74791. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74792. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74793. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74794. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74795. + ;;
  74796. +
  74797. + *nto* | *qnx*)
  74798. + ;;
  74799. +
  74800. + openbsd*)
  74801. + if test -f /usr/libexec/ld.so; then
  74802. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74803. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74804. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  74805. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  74806. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  74807. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  74808. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  74809. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  74810. + else
  74811. + case $host_os in
  74812. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  74813. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  74814. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  74815. + ;;
  74816. + *)
  74817. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  74818. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  74819. + ;;
  74820. + esac
  74821. + fi
  74822. + else
  74823. + _LT_TAGVAR(ld_shlibs, $1)=no
  74824. + fi
  74825. + ;;
  74826. +
  74827. + os2*)
  74828. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74829. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74830. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  74831. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  74832. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  74833. + ;;
  74834. +
  74835. + osf3*)
  74836. + if test "$GCC" = yes; then
  74837. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  74838. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  74839. + else
  74840. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  74841. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  74842. + fi
  74843. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  74844. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74845. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74846. + ;;
  74847. +
  74848. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  74849. + if test "$GCC" = yes; then
  74850. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  74851. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  74852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  74853. + else
  74854. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  74855. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  74856. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  74857. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  74858. +
  74859. + # Both c and cxx compiler support -rpath directly
  74860. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  74861. + fi
  74862. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  74863. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  74864. + ;;
  74865. +
  74866. + solaris*)
  74867. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  74868. + if test "$GCC" = yes; then
  74869. + wlarc='${wl}'
  74870. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  74871. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  74872. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  74873. + else
  74874. + case `$CC -V 2>&1` in
  74875. + *"Compilers 5.0"*)
  74876. + wlarc=''
  74877. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74878. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  74879. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  74880. + ;;
  74881. + *)
  74882. + wlarc='${wl}'
  74883. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  74884. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  74885. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  74886. + ;;
  74887. + esac
  74888. + fi
  74889. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  74890. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74891. + case $host_os in
  74892. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  74893. + *)
  74894. + # The compiler driver will combine and reorder linker options,
  74895. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  74896. + # but is careful enough not to reorder.
  74897. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  74898. + if test "$GCC" = yes; then
  74899. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  74900. + else
  74901. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  74902. + fi
  74903. + ;;
  74904. + esac
  74905. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  74906. + ;;
  74907. +
  74908. + sunos4*)
  74909. + if test "x$host_vendor" = xsequent; then
  74910. + # Use $CC to link under sequent, because it throws in some extra .o
  74911. + # files that make .init and .fini sections work.
  74912. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  74913. + else
  74914. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  74915. + fi
  74916. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  74917. + _LT_TAGVAR(hardcode_direct, $1)=yes
  74918. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  74919. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74920. + ;;
  74921. +
  74922. + sysv4)
  74923. + case $host_vendor in
  74924. + sni)
  74925. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74926. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  74927. + ;;
  74928. + siemens)
  74929. + ## LD is ld it makes a PLAMLIB
  74930. + ## CC just makes a GrossModule.
  74931. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  74932. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  74933. + _LT_TAGVAR(hardcode_direct, $1)=no
  74934. + ;;
  74935. + motorola)
  74936. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74937. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  74938. + ;;
  74939. + esac
  74940. + runpath_var='LD_RUN_PATH'
  74941. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74942. + ;;
  74943. +
  74944. + sysv4.3*)
  74945. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74946. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74947. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  74948. + ;;
  74949. +
  74950. + sysv4*MP*)
  74951. + if test -d /usr/nec; then
  74952. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  74953. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74954. + runpath_var=LD_RUN_PATH
  74955. + hardcode_runpath_var=yes
  74956. + _LT_TAGVAR(ld_shlibs, $1)=yes
  74957. + fi
  74958. + ;;
  74959. +
  74960. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  74961. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  74962. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  74963. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74964. + runpath_var='LD_RUN_PATH'
  74965. +
  74966. + if test "$GCC" = yes; then
  74967. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74968. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74969. + else
  74970. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74971. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74972. + fi
  74973. + ;;
  74974. +
  74975. + sysv5* | sco3.2v5* | sco5v6*)
  74976. + # Note: We can NOT use -z defs as we might desire, because we do not
  74977. + # link with -lc, and that would cause any symbols used from libc to
  74978. + # always be unresolved, which means just about no library would
  74979. + # ever link correctly. If we're not using GNU ld we use -z text
  74980. + # though, which does catch some bad symbols but isn't as heavy-handed
  74981. + # as -z defs.
  74982. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  74983. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  74984. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  74985. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  74986. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  74987. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  74988. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  74989. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  74990. + runpath_var='LD_RUN_PATH'
  74991. +
  74992. + if test "$GCC" = yes; then
  74993. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74994. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74995. + else
  74996. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74997. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  74998. + fi
  74999. + ;;
  75000. +
  75001. + uts4*)
  75002. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  75003. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  75004. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  75005. + ;;
  75006. +
  75007. + *)
  75008. + _LT_TAGVAR(ld_shlibs, $1)=no
  75009. + ;;
  75010. + esac
  75011. +
  75012. + if test x$host_vendor = xsni; then
  75013. + case $host in
  75014. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  75015. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  75016. + ;;
  75017. + esac
  75018. + fi
  75019. + fi
  75020. +])
  75021. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  75022. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  75023. +
  75024. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  75025. +
  75026. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  75027. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  75028. +_LT_DECL([], [extract_expsyms_cmds], [2],
  75029. + [The commands to extract the exported symbol list from a shared archive])
  75030. +
  75031. +#
  75032. +# Do we need to explicitly link libc?
  75033. +#
  75034. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  75035. +x|xyes)
  75036. + # Assume -lc should be added
  75037. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  75038. +
  75039. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  75040. + case $_LT_TAGVAR(archive_cmds, $1) in
  75041. + *'~'*)
  75042. + # FIXME: we may have to deal with multi-command sequences.
  75043. + ;;
  75044. + '$CC '*)
  75045. + # Test whether the compiler implicitly links with -lc since on some
  75046. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  75047. + # to ld, don't add -lc before -lgcc.
  75048. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  75049. + $RM conftest*
  75050. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  75051. +
  75052. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  75053. + soname=conftest
  75054. + lib=conftest
  75055. + libobjs=conftest.$ac_objext
  75056. + deplibs=
  75057. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  75058. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  75059. + compiler_flags=-v
  75060. + linker_flags=-v
  75061. + verstring=
  75062. + output_objdir=.
  75063. + libname=conftest
  75064. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  75065. + _LT_TAGVAR(allow_undefined_flag, $1)=
  75066. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  75067. + then
  75068. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  75069. + else
  75070. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  75071. + fi
  75072. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  75073. + else
  75074. + cat conftest.err 1>&5
  75075. + fi
  75076. + $RM conftest*
  75077. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  75078. + ;;
  75079. + esac
  75080. + fi
  75081. + ;;
  75082. +esac
  75083. +
  75084. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  75085. + [Whether or not to add -lc for building shared libraries])
  75086. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  75087. + [enable_shared_with_static_runtimes], [0],
  75088. + [Whether or not to disallow shared libs when runtime libs are static])
  75089. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  75090. + [Compiler flag to allow reflexive dlopens])
  75091. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  75092. + [Compiler flag to generate shared objects directly from archives])
  75093. +_LT_TAGDECL([], [compiler_needs_object], [1],
  75094. + [Whether the compiler copes with passing no objects directly])
  75095. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  75096. + [Create an old-style archive from a shared archive])
  75097. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  75098. + [Create a temporary old-style archive to link instead of a shared archive])
  75099. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  75100. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  75101. +_LT_TAGDECL([], [module_cmds], [2],
  75102. + [Commands used to build a loadable module if different from building
  75103. + a shared archive.])
  75104. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  75105. +_LT_TAGDECL([], [with_gnu_ld], [1],
  75106. + [Whether we are building with GNU ld or not])
  75107. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  75108. + [Flag that allows shared libraries with undefined symbols to be built])
  75109. +_LT_TAGDECL([], [no_undefined_flag], [1],
  75110. + [Flag that enforces no undefined symbols])
  75111. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  75112. + [Flag to hardcode $libdir into a binary during linking.
  75113. + This must work even if $libdir does not exist])
  75114. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  75115. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  75116. + during linking. This must work even if $libdir does not exist]])
  75117. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  75118. + [Whether we need a single "-rpath" flag with a separated argument])
  75119. +_LT_TAGDECL([], [hardcode_direct], [0],
  75120. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  75121. + DIR into the resulting binary])
  75122. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  75123. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  75124. + DIR into the resulting binary and the resulting library dependency is
  75125. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  75126. + library is relocated])
  75127. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  75128. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  75129. + into the resulting binary])
  75130. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  75131. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  75132. + into the resulting binary])
  75133. +_LT_TAGDECL([], [hardcode_automatic], [0],
  75134. + [Set to "yes" if building a shared library automatically hardcodes DIR
  75135. + into the library and all subsequent libraries and executables linked
  75136. + against it])
  75137. +_LT_TAGDECL([], [inherit_rpath], [0],
  75138. + [Set to yes if linker adds runtime paths of dependent libraries
  75139. + to runtime path list])
  75140. +_LT_TAGDECL([], [link_all_deplibs], [0],
  75141. + [Whether libtool must link a program against all its dependency libraries])
  75142. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  75143. + [Fix the shell variable $srcfile for the compiler])
  75144. +_LT_TAGDECL([], [always_export_symbols], [0],
  75145. + [Set to "yes" if exported symbols are required])
  75146. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  75147. + [The commands to list exported symbols])
  75148. +_LT_TAGDECL([], [exclude_expsyms], [1],
  75149. + [Symbols that should not be listed in the preloaded symbols])
  75150. +_LT_TAGDECL([], [include_expsyms], [1],
  75151. + [Symbols that must always be exported])
  75152. +_LT_TAGDECL([], [prelink_cmds], [2],
  75153. + [Commands necessary for linking programs (against libraries) with templates])
  75154. +_LT_TAGDECL([], [file_list_spec], [1],
  75155. + [Specify filename containing input files])
  75156. +dnl FIXME: Not yet implemented
  75157. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  75158. +dnl [Compiler flag to generate thread safe objects])
  75159. +])# _LT_LINKER_SHLIBS
  75160. +
  75161. +
  75162. +# _LT_LANG_C_CONFIG([TAG])
  75163. +# ------------------------
  75164. +# Ensure that the configuration variables for a C compiler are suitably
  75165. +# defined. These variables are subsequently used by _LT_CONFIG to write
  75166. +# the compiler configuration to `libtool'.
  75167. +m4_defun([_LT_LANG_C_CONFIG],
  75168. +[m4_require([_LT_DECL_EGREP])dnl
  75169. +lt_save_CC="$CC"
  75170. +AC_LANG_PUSH(C)
  75171. +
  75172. +# Source file extension for C test sources.
  75173. +ac_ext=c
  75174. +
  75175. +# Object file extension for compiled C test sources.
  75176. +objext=o
  75177. +_LT_TAGVAR(objext, $1)=$objext
  75178. +
  75179. +# Code to be used in simple compile tests
  75180. +lt_simple_compile_test_code="int some_variable = 0;"
  75181. +
  75182. +# Code to be used in simple link tests
  75183. +lt_simple_link_test_code='int main(){return(0);}'
  75184. +
  75185. +_LT_TAG_COMPILER
  75186. +# Save the default compiler, since it gets overwritten when the other
  75187. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  75188. +compiler_DEFAULT=$CC
  75189. +
  75190. +# save warnings/boilerplate of simple test code
  75191. +_LT_COMPILER_BOILERPLATE
  75192. +_LT_LINKER_BOILERPLATE
  75193. +
  75194. +## CAVEAT EMPTOR:
  75195. +## There is no encapsulation within the following macros, do not change
  75196. +## the running order or otherwise move them around unless you know exactly
  75197. +## what you are doing...
  75198. +if test -n "$compiler"; then
  75199. + _LT_COMPILER_NO_RTTI($1)
  75200. + _LT_COMPILER_PIC($1)
  75201. + _LT_COMPILER_C_O($1)
  75202. + _LT_COMPILER_FILE_LOCKS($1)
  75203. + _LT_LINKER_SHLIBS($1)
  75204. + _LT_SYS_DYNAMIC_LINKER($1)
  75205. + _LT_LINKER_HARDCODE_LIBPATH($1)
  75206. + LT_SYS_DLOPEN_SELF
  75207. + _LT_CMD_STRIPLIB
  75208. +
  75209. + # Report which library types will actually be built
  75210. + AC_MSG_CHECKING([if libtool supports shared libraries])
  75211. + AC_MSG_RESULT([$can_build_shared])
  75212. +
  75213. + AC_MSG_CHECKING([whether to build shared libraries])
  75214. + test "$can_build_shared" = "no" && enable_shared=no
  75215. +
  75216. + # On AIX, shared libraries and static libraries use the same namespace, and
  75217. + # are all built from PIC.
  75218. + case $host_os in
  75219. + aix3*)
  75220. + test "$enable_shared" = yes && enable_static=no
  75221. + if test -n "$RANLIB"; then
  75222. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  75223. + postinstall_cmds='$RANLIB $lib'
  75224. + fi
  75225. + ;;
  75226. +
  75227. + aix[[4-9]]*)
  75228. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  75229. + test "$enable_shared" = yes && enable_static=no
  75230. + fi
  75231. + ;;
  75232. + esac
  75233. + AC_MSG_RESULT([$enable_shared])
  75234. +
  75235. + AC_MSG_CHECKING([whether to build static libraries])
  75236. + # Make sure either enable_shared or enable_static is yes.
  75237. + test "$enable_shared" = yes || enable_static=yes
  75238. + AC_MSG_RESULT([$enable_static])
  75239. +
  75240. + _LT_CONFIG($1)
  75241. +fi
  75242. +AC_LANG_POP
  75243. +CC="$lt_save_CC"
  75244. +])# _LT_LANG_C_CONFIG
  75245. +
  75246. +
  75247. +# _LT_PROG_CXX
  75248. +# ------------
  75249. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  75250. +# compiler, we have our own version here.
  75251. +m4_defun([_LT_PROG_CXX],
  75252. +[
  75253. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  75254. +AC_PROG_CXX
  75255. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  75256. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  75257. + (test "X$CXX" != "Xg++"))) ; then
  75258. + AC_PROG_CXXCPP
  75259. +else
  75260. + _lt_caught_CXX_error=yes
  75261. +fi
  75262. +popdef([AC_MSG_ERROR])
  75263. +])# _LT_PROG_CXX
  75264. +
  75265. +dnl aclocal-1.4 backwards compatibility:
  75266. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  75267. +
  75268. +
  75269. +# _LT_LANG_CXX_CONFIG([TAG])
  75270. +# --------------------------
  75271. +# Ensure that the configuration variables for a C++ compiler are suitably
  75272. +# defined. These variables are subsequently used by _LT_CONFIG to write
  75273. +# the compiler configuration to `libtool'.
  75274. +m4_defun([_LT_LANG_CXX_CONFIG],
  75275. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  75276. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  75277. +m4_require([_LT_DECL_EGREP])dnl
  75278. +
  75279. +AC_LANG_PUSH(C++)
  75280. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  75281. +_LT_TAGVAR(allow_undefined_flag, $1)=
  75282. +_LT_TAGVAR(always_export_symbols, $1)=no
  75283. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  75284. +_LT_TAGVAR(compiler_needs_object, $1)=no
  75285. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  75286. +_LT_TAGVAR(hardcode_direct, $1)=no
  75287. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  75288. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  75289. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  75290. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  75291. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  75292. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  75293. +_LT_TAGVAR(hardcode_automatic, $1)=no
  75294. +_LT_TAGVAR(inherit_rpath, $1)=no
  75295. +_LT_TAGVAR(module_cmds, $1)=
  75296. +_LT_TAGVAR(module_expsym_cmds, $1)=
  75297. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  75298. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  75299. +_LT_TAGVAR(no_undefined_flag, $1)=
  75300. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  75301. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  75302. +
  75303. +# Source file extension for C++ test sources.
  75304. +ac_ext=cpp
  75305. +
  75306. +# Object file extension for compiled C++ test sources.
  75307. +objext=o
  75308. +_LT_TAGVAR(objext, $1)=$objext
  75309. +
  75310. +# No sense in running all these tests if we already determined that
  75311. +# the CXX compiler isn't working. Some variables (like enable_shared)
  75312. +# are currently assumed to apply to all compilers on this platform,
  75313. +# and will be corrupted by setting them based on a non-working compiler.
  75314. +if test "$_lt_caught_CXX_error" != yes; then
  75315. + # Code to be used in simple compile tests
  75316. + lt_simple_compile_test_code="int some_variable = 0;"
  75317. +
  75318. + # Code to be used in simple link tests
  75319. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  75320. +
  75321. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  75322. + _LT_TAG_COMPILER
  75323. +
  75324. + # save warnings/boilerplate of simple test code
  75325. + _LT_COMPILER_BOILERPLATE
  75326. + _LT_LINKER_BOILERPLATE
  75327. +
  75328. + # Allow CC to be a program name with arguments.
  75329. + lt_save_CC=$CC
  75330. + lt_save_LD=$LD
  75331. + lt_save_GCC=$GCC
  75332. + GCC=$GXX
  75333. + lt_save_with_gnu_ld=$with_gnu_ld
  75334. + lt_save_path_LD=$lt_cv_path_LD
  75335. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  75336. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  75337. + else
  75338. + $as_unset lt_cv_prog_gnu_ld
  75339. + fi
  75340. + if test -n "${lt_cv_path_LDCXX+set}"; then
  75341. + lt_cv_path_LD=$lt_cv_path_LDCXX
  75342. + else
  75343. + $as_unset lt_cv_path_LD
  75344. + fi
  75345. + test -z "${LDCXX+set}" || LD=$LDCXX
  75346. + CC=${CXX-"c++"}
  75347. + compiler=$CC
  75348. + _LT_TAGVAR(compiler, $1)=$CC
  75349. + _LT_CC_BASENAME([$compiler])
  75350. +
  75351. + if test -n "$compiler"; then
  75352. + # We don't want -fno-exception when compiling C++ code, so set the
  75353. + # no_builtin_flag separately
  75354. + if test "$GXX" = yes; then
  75355. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  75356. + else
  75357. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  75358. + fi
  75359. +
  75360. + if test "$GXX" = yes; then
  75361. + # Set up default GNU C++ configuration
  75362. +
  75363. + LT_PATH_LD
  75364. +
  75365. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  75366. + # archiving commands below assume that GNU ld is being used.
  75367. + if test "$with_gnu_ld" = yes; then
  75368. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75369. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  75370. +
  75371. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  75372. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  75373. +
  75374. + # If archive_cmds runs LD, not CC, wlarc should be empty
  75375. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  75376. + # investigate it a little bit more. (MM)
  75377. + wlarc='${wl}'
  75378. +
  75379. + # ancient GNU ld didn't support --whole-archive et. al.
  75380. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  75381. + $GREP 'no-whole-archive' > /dev/null; then
  75382. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  75383. + else
  75384. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  75385. + fi
  75386. + else
  75387. + with_gnu_ld=no
  75388. + wlarc=
  75389. +
  75390. + # A generic and very simple default shared library creation
  75391. + # command for GNU C++ for the case where it uses the native
  75392. + # linker, instead of GNU ld. If possible, this setting should
  75393. + # overridden to take advantage of the native linker features on
  75394. + # the platform it is being used on.
  75395. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  75396. + fi
  75397. +
  75398. + # Commands to make compiler produce verbose output that lists
  75399. + # what "hidden" libraries, object files and flags are used when
  75400. + # linking a shared library.
  75401. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  75402. +
  75403. + else
  75404. + GXX=no
  75405. + with_gnu_ld=no
  75406. + wlarc=
  75407. + fi
  75408. +
  75409. + # PORTME: fill in a description of your system's C++ link characteristics
  75410. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  75411. + _LT_TAGVAR(ld_shlibs, $1)=yes
  75412. + case $host_os in
  75413. + aix3*)
  75414. + # FIXME: insert proper C++ library support
  75415. + _LT_TAGVAR(ld_shlibs, $1)=no
  75416. + ;;
  75417. + aix[[4-9]]*)
  75418. + if test "$host_cpu" = ia64; then
  75419. + # On IA64, the linker does run time linking by default, so we don't
  75420. + # have to do anything special.
  75421. + aix_use_runtimelinking=no
  75422. + exp_sym_flag='-Bexport'
  75423. + no_entry_flag=""
  75424. + else
  75425. + aix_use_runtimelinking=no
  75426. +
  75427. + # Test if we are trying to use run time linking or normal
  75428. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  75429. + # need to do runtime linking.
  75430. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  75431. + for ld_flag in $LDFLAGS; do
  75432. + case $ld_flag in
  75433. + *-brtl*)
  75434. + aix_use_runtimelinking=yes
  75435. + break
  75436. + ;;
  75437. + esac
  75438. + done
  75439. + ;;
  75440. + esac
  75441. +
  75442. + exp_sym_flag='-bexport'
  75443. + no_entry_flag='-bnoentry'
  75444. + fi
  75445. +
  75446. + # When large executables or shared objects are built, AIX ld can
  75447. + # have problems creating the table of contents. If linking a library
  75448. + # or program results in "error TOC overflow" add -mminimal-toc to
  75449. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  75450. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  75451. +
  75452. + _LT_TAGVAR(archive_cmds, $1)=''
  75453. + _LT_TAGVAR(hardcode_direct, $1)=yes
  75454. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  75455. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  75456. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  75457. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  75458. +
  75459. + if test "$GXX" = yes; then
  75460. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  75461. + # We only want to do this on AIX 4.2 and lower, the check
  75462. + # below for broken collect2 doesn't work under 4.3+
  75463. + collect2name=`${CC} -print-prog-name=collect2`
  75464. + if test -f "$collect2name" &&
  75465. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  75466. + then
  75467. + # We have reworked collect2
  75468. + :
  75469. + else
  75470. + # We have old collect2
  75471. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  75472. + # It fails to find uninstalled libraries when the uninstalled
  75473. + # path is not listed in the libpath. Setting hardcode_minus_L
  75474. + # to unsupported forces relinking
  75475. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  75476. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  75477. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  75478. + fi
  75479. + esac
  75480. + shared_flag='-shared'
  75481. + if test "$aix_use_runtimelinking" = yes; then
  75482. + shared_flag="$shared_flag "'${wl}-G'
  75483. + fi
  75484. + else
  75485. + # not using gcc
  75486. + if test "$host_cpu" = ia64; then
  75487. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  75488. + # chokes on -Wl,-G. The following line is correct:
  75489. + shared_flag='-G'
  75490. + else
  75491. + if test "$aix_use_runtimelinking" = yes; then
  75492. + shared_flag='${wl}-G'
  75493. + else
  75494. + shared_flag='${wl}-bM:SRE'
  75495. + fi
  75496. + fi
  75497. + fi
  75498. +
  75499. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  75500. + # It seems that -bexpall does not export symbols beginning with
  75501. + # underscore (_), so it is better to generate a list of symbols to
  75502. + # export.
  75503. + _LT_TAGVAR(always_export_symbols, $1)=yes
  75504. + if test "$aix_use_runtimelinking" = yes; then
  75505. + # Warning - without using the other runtime loading flags (-brtl),
  75506. + # -berok will link without error, but may produce a broken library.
  75507. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  75508. + # Determine the default libpath from the value encoded in an empty
  75509. + # executable.
  75510. + _LT_SYS_MODULE_PATH_AIX
  75511. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  75512. +
  75513. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  75514. + else
  75515. + if test "$host_cpu" = ia64; then
  75516. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  75517. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  75518. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  75519. + else
  75520. + # Determine the default libpath from the value encoded in an
  75521. + # empty executable.
  75522. + _LT_SYS_MODULE_PATH_AIX
  75523. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  75524. + # Warning - without using the other run time loading flags,
  75525. + # -berok will link without error, but may produce a broken library.
  75526. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  75527. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  75528. + # Exported symbols can be pulled into shared objects from archives
  75529. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  75530. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  75531. + # This is similar to how AIX traditionally builds its shared
  75532. + # libraries.
  75533. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  75534. + fi
  75535. + fi
  75536. + ;;
  75537. +
  75538. + beos*)
  75539. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  75540. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  75541. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  75542. + # support --undefined. This deserves some investigation. FIXME
  75543. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75544. + else
  75545. + _LT_TAGVAR(ld_shlibs, $1)=no
  75546. + fi
  75547. + ;;
  75548. +
  75549. + chorus*)
  75550. + case $cc_basename in
  75551. + *)
  75552. + # FIXME: insert proper C++ library support
  75553. + _LT_TAGVAR(ld_shlibs, $1)=no
  75554. + ;;
  75555. + esac
  75556. + ;;
  75557. +
  75558. + cygwin* | mingw* | pw32* | cegcc*)
  75559. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  75560. + # as there is no search path for DLLs.
  75561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  75562. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  75563. + _LT_TAGVAR(always_export_symbols, $1)=no
  75564. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  75565. +
  75566. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  75567. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  75568. + # If the export-symbols file already is a .def file (1st line
  75569. + # is EXPORTS), use it as is; otherwise, prepend...
  75570. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  75571. + cp $export_symbols $output_objdir/$soname.def;
  75572. + else
  75573. + echo EXPORTS > $output_objdir/$soname.def;
  75574. + cat $export_symbols >> $output_objdir/$soname.def;
  75575. + fi~
  75576. + $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'
  75577. + else
  75578. + _LT_TAGVAR(ld_shlibs, $1)=no
  75579. + fi
  75580. + ;;
  75581. + darwin* | rhapsody*)
  75582. + _LT_DARWIN_LINKER_FEATURES($1)
  75583. + ;;
  75584. +
  75585. + dgux*)
  75586. + case $cc_basename in
  75587. + ec++*)
  75588. + # FIXME: insert proper C++ library support
  75589. + _LT_TAGVAR(ld_shlibs, $1)=no
  75590. + ;;
  75591. + ghcx*)
  75592. + # Green Hills C++ Compiler
  75593. + # FIXME: insert proper C++ library support
  75594. + _LT_TAGVAR(ld_shlibs, $1)=no
  75595. + ;;
  75596. + *)
  75597. + # FIXME: insert proper C++ library support
  75598. + _LT_TAGVAR(ld_shlibs, $1)=no
  75599. + ;;
  75600. + esac
  75601. + ;;
  75602. +
  75603. + freebsd[[12]]*)
  75604. + # C++ shared libraries reported to be fairly broken before
  75605. + # switch to ELF
  75606. + _LT_TAGVAR(ld_shlibs, $1)=no
  75607. + ;;
  75608. +
  75609. + freebsd-elf*)
  75610. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  75611. + ;;
  75612. +
  75613. + freebsd* | dragonfly*)
  75614. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  75615. + # conventions
  75616. + _LT_TAGVAR(ld_shlibs, $1)=yes
  75617. + ;;
  75618. +
  75619. + gnu*)
  75620. + ;;
  75621. +
  75622. + hpux9*)
  75623. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  75624. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  75625. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  75626. + _LT_TAGVAR(hardcode_direct, $1)=yes
  75627. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  75628. + # but as the default
  75629. + # location of the library.
  75630. +
  75631. + case $cc_basename in
  75632. + CC*)
  75633. + # FIXME: insert proper C++ library support
  75634. + _LT_TAGVAR(ld_shlibs, $1)=no
  75635. + ;;
  75636. + aCC*)
  75637. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  75638. + # Commands to make compiler produce verbose output that lists
  75639. + # what "hidden" libraries, object files and flags are used when
  75640. + # linking a shared library.
  75641. + #
  75642. + # There doesn't appear to be a way to prevent this compiler from
  75643. + # explicitly linking system object files so we need to strip them
  75644. + # from the output so that they don't get included in the library
  75645. + # dependencies.
  75646. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  75647. + ;;
  75648. + *)
  75649. + if test "$GXX" = yes; then
  75650. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  75651. + else
  75652. + # FIXME: insert proper C++ library support
  75653. + _LT_TAGVAR(ld_shlibs, $1)=no
  75654. + fi
  75655. + ;;
  75656. + esac
  75657. + ;;
  75658. +
  75659. + hpux10*|hpux11*)
  75660. + if test $with_gnu_ld = no; then
  75661. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  75662. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  75663. +
  75664. + case $host_cpu in
  75665. + hppa*64*|ia64*)
  75666. + ;;
  75667. + *)
  75668. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  75669. + ;;
  75670. + esac
  75671. + fi
  75672. + case $host_cpu in
  75673. + hppa*64*|ia64*)
  75674. + _LT_TAGVAR(hardcode_direct, $1)=no
  75675. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  75676. + ;;
  75677. + *)
  75678. + _LT_TAGVAR(hardcode_direct, $1)=yes
  75679. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  75680. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  75681. + # but as the default
  75682. + # location of the library.
  75683. + ;;
  75684. + esac
  75685. +
  75686. + case $cc_basename in
  75687. + CC*)
  75688. + # FIXME: insert proper C++ library support
  75689. + _LT_TAGVAR(ld_shlibs, $1)=no
  75690. + ;;
  75691. + aCC*)
  75692. + case $host_cpu in
  75693. + hppa*64*)
  75694. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75695. + ;;
  75696. + ia64*)
  75697. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75698. + ;;
  75699. + *)
  75700. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75701. + ;;
  75702. + esac
  75703. + # Commands to make compiler produce verbose output that lists
  75704. + # what "hidden" libraries, object files and flags are used when
  75705. + # linking a shared library.
  75706. + #
  75707. + # There doesn't appear to be a way to prevent this compiler from
  75708. + # explicitly linking system object files so we need to strip them
  75709. + # from the output so that they don't get included in the library
  75710. + # dependencies.
  75711. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  75712. + ;;
  75713. + *)
  75714. + if test "$GXX" = yes; then
  75715. + if test $with_gnu_ld = no; then
  75716. + case $host_cpu in
  75717. + hppa*64*)
  75718. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75719. + ;;
  75720. + ia64*)
  75721. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75722. + ;;
  75723. + *)
  75724. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75725. + ;;
  75726. + esac
  75727. + fi
  75728. + else
  75729. + # FIXME: insert proper C++ library support
  75730. + _LT_TAGVAR(ld_shlibs, $1)=no
  75731. + fi
  75732. + ;;
  75733. + esac
  75734. + ;;
  75735. +
  75736. + interix[[3-9]]*)
  75737. + _LT_TAGVAR(hardcode_direct, $1)=no
  75738. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  75739. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  75740. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  75741. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  75742. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  75743. + # default) and relocated if they conflict, which is a slow very memory
  75744. + # consuming and fragmenting process. To avoid this, we pick a random,
  75745. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  75746. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  75747. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  75748. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  75749. + ;;
  75750. + irix5* | irix6*)
  75751. + case $cc_basename in
  75752. + CC*)
  75753. + # SGI C++
  75754. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  75755. +
  75756. + # Archives containing C++ object files must be created using
  75757. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  75758. + # necessary to make sure instantiated templates are included
  75759. + # in the archive.
  75760. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  75761. + ;;
  75762. + *)
  75763. + if test "$GXX" = yes; then
  75764. + if test "$with_gnu_ld" = no; then
  75765. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  75766. + else
  75767. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  75768. + fi
  75769. + fi
  75770. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  75771. + ;;
  75772. + esac
  75773. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  75774. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  75775. + _LT_TAGVAR(inherit_rpath, $1)=yes
  75776. + ;;
  75777. +
  75778. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  75779. + case $cc_basename in
  75780. + KCC*)
  75781. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  75782. +
  75783. + # KCC will only create a shared library if the output file
  75784. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  75785. + # to its proper name (with version) after linking.
  75786. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  75787. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  75788. + # Commands to make compiler produce verbose output that lists
  75789. + # what "hidden" libraries, object files and flags are used when
  75790. + # linking a shared library.
  75791. + #
  75792. + # There doesn't appear to be a way to prevent this compiler from
  75793. + # explicitly linking system object files so we need to strip them
  75794. + # from the output so that they don't get included in the library
  75795. + # dependencies.
  75796. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  75797. +
  75798. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  75799. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  75800. +
  75801. + # Archives containing C++ object files must be created using
  75802. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  75803. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  75804. + ;;
  75805. + icpc* | ecpc* )
  75806. + # Intel C++
  75807. + with_gnu_ld=yes
  75808. + # version 8.0 and above of icpc choke on multiply defined symbols
  75809. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  75810. + # earlier do not add the objects themselves.
  75811. + case `$CC -V 2>&1` in
  75812. + *"Version 7."*)
  75813. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75814. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  75815. + ;;
  75816. + *) # Version 8.0 or newer
  75817. + tmp_idyn=
  75818. + case $host_cpu in
  75819. + ia64*) tmp_idyn=' -i_dynamic';;
  75820. + esac
  75821. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75822. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  75823. + ;;
  75824. + esac
  75825. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  75826. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  75827. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  75828. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  75829. + ;;
  75830. + pgCC* | pgcpp*)
  75831. + # Portland Group C++ compiler
  75832. + case `$CC -V` in
  75833. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  75834. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  75835. + rm -rf $tpldir~
  75836. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  75837. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  75838. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  75839. + rm -rf $tpldir~
  75840. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  75841. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  75842. + $RANLIB $oldlib'
  75843. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  75844. + rm -rf $tpldir~
  75845. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  75846. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  75847. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  75848. + rm -rf $tpldir~
  75849. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  75850. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  75851. + ;;
  75852. + *) # Version 6 will use weak symbols
  75853. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  75854. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  75855. + ;;
  75856. + esac
  75857. +
  75858. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  75859. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  75860. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  75861. + ;;
  75862. + cxx*)
  75863. + # Compaq C++
  75864. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75865. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  75866. +
  75867. + runpath_var=LD_RUN_PATH
  75868. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  75869. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  75870. +
  75871. + # Commands to make compiler produce verbose output that lists
  75872. + # what "hidden" libraries, object files and flags are used when
  75873. + # linking a shared library.
  75874. + #
  75875. + # There doesn't appear to be a way to prevent this compiler from
  75876. + # explicitly linking system object files so we need to strip them
  75877. + # from the output so that they don't get included in the library
  75878. + # dependencies.
  75879. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  75880. + ;;
  75881. + xl*)
  75882. + # IBM XL 8.0 on PPC, with GNU ld
  75883. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  75884. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  75885. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  75886. + if test "x$supports_anon_versioning" = xyes; then
  75887. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  75888. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  75889. + echo "local: *; };" >> $output_objdir/$libname.ver~
  75890. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  75891. + fi
  75892. + ;;
  75893. + *)
  75894. + case `$CC -V 2>&1 | sed 5q` in
  75895. + *Sun\ C*)
  75896. + # Sun C++ 5.9
  75897. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  75898. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  75899. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  75900. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  75901. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  75902. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  75903. +
  75904. + # Not sure whether something based on
  75905. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  75906. + # would be better.
  75907. + output_verbose_link_cmd='echo'
  75908. +
  75909. + # Archives containing C++ object files must be created using
  75910. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  75911. + # necessary to make sure instantiated templates are included
  75912. + # in the archive.
  75913. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  75914. + ;;
  75915. + esac
  75916. + ;;
  75917. + esac
  75918. + ;;
  75919. +
  75920. + lynxos*)
  75921. + # FIXME: insert proper C++ library support
  75922. + _LT_TAGVAR(ld_shlibs, $1)=no
  75923. + ;;
  75924. +
  75925. + m88k*)
  75926. + # FIXME: insert proper C++ library support
  75927. + _LT_TAGVAR(ld_shlibs, $1)=no
  75928. + ;;
  75929. +
  75930. + mvs*)
  75931. + case $cc_basename in
  75932. + cxx*)
  75933. + # FIXME: insert proper C++ library support
  75934. + _LT_TAGVAR(ld_shlibs, $1)=no
  75935. + ;;
  75936. + *)
  75937. + # FIXME: insert proper C++ library support
  75938. + _LT_TAGVAR(ld_shlibs, $1)=no
  75939. + ;;
  75940. + esac
  75941. + ;;
  75942. +
  75943. + netbsd*)
  75944. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  75945. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  75946. + wlarc=
  75947. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  75948. + _LT_TAGVAR(hardcode_direct, $1)=yes
  75949. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  75950. + fi
  75951. + # Workaround some broken pre-1.5 toolchains
  75952. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  75953. + ;;
  75954. +
  75955. + *nto* | *qnx*)
  75956. + _LT_TAGVAR(ld_shlibs, $1)=yes
  75957. + ;;
  75958. +
  75959. + openbsd2*)
  75960. + # C++ shared libraries are fairly broken
  75961. + _LT_TAGVAR(ld_shlibs, $1)=no
  75962. + ;;
  75963. +
  75964. + openbsd*)
  75965. + if test -f /usr/libexec/ld.so; then
  75966. + _LT_TAGVAR(hardcode_direct, $1)=yes
  75967. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  75968. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  75969. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  75970. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  75971. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  75972. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  75973. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  75974. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  75975. + fi
  75976. + output_verbose_link_cmd=echo
  75977. + else
  75978. + _LT_TAGVAR(ld_shlibs, $1)=no
  75979. + fi
  75980. + ;;
  75981. +
  75982. + osf3* | osf4* | osf5*)
  75983. + case $cc_basename in
  75984. + KCC*)
  75985. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  75986. +
  75987. + # KCC will only create a shared library if the output file
  75988. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  75989. + # to its proper name (with version) after linking.
  75990. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  75991. +
  75992. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  75993. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  75994. +
  75995. + # Archives containing C++ object files must be created using
  75996. + # the KAI C++ compiler.
  75997. + case $host in
  75998. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  75999. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  76000. + esac
  76001. + ;;
  76002. + RCC*)
  76003. + # Rational C++ 2.4.1
  76004. + # FIXME: insert proper C++ library support
  76005. + _LT_TAGVAR(ld_shlibs, $1)=no
  76006. + ;;
  76007. + cxx*)
  76008. + case $host in
  76009. + osf3*)
  76010. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  76011. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  76012. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  76013. + ;;
  76014. + *)
  76015. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  76016. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  76017. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  76018. + echo "-hidden">> $lib.exp~
  76019. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  76020. + $RM $lib.exp'
  76021. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  76022. + ;;
  76023. + esac
  76024. +
  76025. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  76026. +
  76027. + # Commands to make compiler produce verbose output that lists
  76028. + # what "hidden" libraries, object files and flags are used when
  76029. + # linking a shared library.
  76030. + #
  76031. + # There doesn't appear to be a way to prevent this compiler from
  76032. + # explicitly linking system object files so we need to strip them
  76033. + # from the output so that they don't get included in the library
  76034. + # dependencies.
  76035. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  76036. + ;;
  76037. + *)
  76038. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  76039. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  76040. + case $host in
  76041. + osf3*)
  76042. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  76043. + ;;
  76044. + *)
  76045. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  76046. + ;;
  76047. + esac
  76048. +
  76049. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  76050. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  76051. +
  76052. + # Commands to make compiler produce verbose output that lists
  76053. + # what "hidden" libraries, object files and flags are used when
  76054. + # linking a shared library.
  76055. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  76056. +
  76057. + else
  76058. + # FIXME: insert proper C++ library support
  76059. + _LT_TAGVAR(ld_shlibs, $1)=no
  76060. + fi
  76061. + ;;
  76062. + esac
  76063. + ;;
  76064. +
  76065. + psos*)
  76066. + # FIXME: insert proper C++ library support
  76067. + _LT_TAGVAR(ld_shlibs, $1)=no
  76068. + ;;
  76069. +
  76070. + sunos4*)
  76071. + case $cc_basename in
  76072. + CC*)
  76073. + # Sun C++ 4.x
  76074. + # FIXME: insert proper C++ library support
  76075. + _LT_TAGVAR(ld_shlibs, $1)=no
  76076. + ;;
  76077. + lcc*)
  76078. + # Lucid
  76079. + # FIXME: insert proper C++ library support
  76080. + _LT_TAGVAR(ld_shlibs, $1)=no
  76081. + ;;
  76082. + *)
  76083. + # FIXME: insert proper C++ library support
  76084. + _LT_TAGVAR(ld_shlibs, $1)=no
  76085. + ;;
  76086. + esac
  76087. + ;;
  76088. +
  76089. + solaris*)
  76090. + case $cc_basename in
  76091. + CC*)
  76092. + # Sun C++ 4.2, 5.x and Centerline C++
  76093. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  76094. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  76095. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  76096. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  76097. + $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'
  76098. +
  76099. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  76100. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  76101. + case $host_os in
  76102. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  76103. + *)
  76104. + # The compiler driver will combine and reorder linker options,
  76105. + # but understands `-z linker_flag'.
  76106. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  76107. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  76108. + ;;
  76109. + esac
  76110. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  76111. +
  76112. + output_verbose_link_cmd='echo'
  76113. +
  76114. + # Archives containing C++ object files must be created using
  76115. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  76116. + # necessary to make sure instantiated templates are included
  76117. + # in the archive.
  76118. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  76119. + ;;
  76120. + gcx*)
  76121. + # Green Hills C++ Compiler
  76122. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  76123. +
  76124. + # The C++ compiler must be used to create the archive.
  76125. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  76126. + ;;
  76127. + *)
  76128. + # GNU C++ compiler with Solaris linker
  76129. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  76130. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  76131. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  76132. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  76133. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  76134. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  76135. +
  76136. + # Commands to make compiler produce verbose output that lists
  76137. + # what "hidden" libraries, object files and flags are used when
  76138. + # linking a shared library.
  76139. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  76140. + else
  76141. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  76142. + # platform.
  76143. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  76144. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  76145. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  76146. +
  76147. + # Commands to make compiler produce verbose output that lists
  76148. + # what "hidden" libraries, object files and flags are used when
  76149. + # linking a shared library.
  76150. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  76151. + fi
  76152. +
  76153. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  76154. + case $host_os in
  76155. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  76156. + *)
  76157. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  76158. + ;;
  76159. + esac
  76160. + fi
  76161. + ;;
  76162. + esac
  76163. + ;;
  76164. +
  76165. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  76166. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  76167. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  76168. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  76169. + runpath_var='LD_RUN_PATH'
  76170. +
  76171. + case $cc_basename in
  76172. + CC*)
  76173. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76174. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76175. + ;;
  76176. + *)
  76177. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76178. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76179. + ;;
  76180. + esac
  76181. + ;;
  76182. +
  76183. + sysv5* | sco3.2v5* | sco5v6*)
  76184. + # Note: We can NOT use -z defs as we might desire, because we do not
  76185. + # link with -lc, and that would cause any symbols used from libc to
  76186. + # always be unresolved, which means just about no library would
  76187. + # ever link correctly. If we're not using GNU ld we use -z text
  76188. + # though, which does catch some bad symbols but isn't as heavy-handed
  76189. + # as -z defs.
  76190. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  76191. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  76192. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  76193. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  76194. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  76195. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  76196. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  76197. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  76198. + runpath_var='LD_RUN_PATH'
  76199. +
  76200. + case $cc_basename in
  76201. + CC*)
  76202. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76203. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76204. + ;;
  76205. + *)
  76206. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76207. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  76208. + ;;
  76209. + esac
  76210. + ;;
  76211. +
  76212. + tandem*)
  76213. + case $cc_basename in
  76214. + NCC*)
  76215. + # NonStop-UX NCC 3.20
  76216. + # FIXME: insert proper C++ library support
  76217. + _LT_TAGVAR(ld_shlibs, $1)=no
  76218. + ;;
  76219. + *)
  76220. + # FIXME: insert proper C++ library support
  76221. + _LT_TAGVAR(ld_shlibs, $1)=no
  76222. + ;;
  76223. + esac
  76224. + ;;
  76225. +
  76226. + vxworks*)
  76227. + # FIXME: insert proper C++ library support
  76228. + _LT_TAGVAR(ld_shlibs, $1)=no
  76229. + ;;
  76230. +
  76231. + *)
  76232. + # FIXME: insert proper C++ library support
  76233. + _LT_TAGVAR(ld_shlibs, $1)=no
  76234. + ;;
  76235. + esac
  76236. +
  76237. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  76238. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  76239. +
  76240. + _LT_TAGVAR(GCC, $1)="$GXX"
  76241. + _LT_TAGVAR(LD, $1)="$LD"
  76242. +
  76243. + ## CAVEAT EMPTOR:
  76244. + ## There is no encapsulation within the following macros, do not change
  76245. + ## the running order or otherwise move them around unless you know exactly
  76246. + ## what you are doing...
  76247. + _LT_SYS_HIDDEN_LIBDEPS($1)
  76248. + _LT_COMPILER_PIC($1)
  76249. + _LT_COMPILER_C_O($1)
  76250. + _LT_COMPILER_FILE_LOCKS($1)
  76251. + _LT_LINKER_SHLIBS($1)
  76252. + _LT_SYS_DYNAMIC_LINKER($1)
  76253. + _LT_LINKER_HARDCODE_LIBPATH($1)
  76254. +
  76255. + _LT_CONFIG($1)
  76256. + fi # test -n "$compiler"
  76257. +
  76258. + CC=$lt_save_CC
  76259. + LDCXX=$LD
  76260. + LD=$lt_save_LD
  76261. + GCC=$lt_save_GCC
  76262. + with_gnu_ld=$lt_save_with_gnu_ld
  76263. + lt_cv_path_LDCXX=$lt_cv_path_LD
  76264. + lt_cv_path_LD=$lt_save_path_LD
  76265. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  76266. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  76267. +fi # test "$_lt_caught_CXX_error" != yes
  76268. +
  76269. +AC_LANG_POP
  76270. +])# _LT_LANG_CXX_CONFIG
  76271. +
  76272. +
  76273. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  76274. +# ---------------------------------
  76275. +# Figure out "hidden" library dependencies from verbose
  76276. +# compiler output when linking a shared library.
  76277. +# Parse the compiler output and extract the necessary
  76278. +# objects, libraries and library flags.
  76279. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  76280. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  76281. +# Dependencies to place before and after the object being linked:
  76282. +_LT_TAGVAR(predep_objects, $1)=
  76283. +_LT_TAGVAR(postdep_objects, $1)=
  76284. +_LT_TAGVAR(predeps, $1)=
  76285. +_LT_TAGVAR(postdeps, $1)=
  76286. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  76287. +
  76288. +dnl we can't use the lt_simple_compile_test_code here,
  76289. +dnl because it contains code intended for an executable,
  76290. +dnl not a library. It's possible we should let each
  76291. +dnl tag define a new lt_????_link_test_code variable,
  76292. +dnl but it's only used here...
  76293. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  76294. +int a;
  76295. +void foo (void) { a = 0; }
  76296. +_LT_EOF
  76297. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  76298. +class Foo
  76299. +{
  76300. +public:
  76301. + Foo (void) { a = 0; }
  76302. +private:
  76303. + int a;
  76304. +};
  76305. +_LT_EOF
  76306. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  76307. + subroutine foo
  76308. + implicit none
  76309. + integer*4 a
  76310. + a=0
  76311. + return
  76312. + end
  76313. +_LT_EOF
  76314. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  76315. + subroutine foo
  76316. + implicit none
  76317. + integer a
  76318. + a=0
  76319. + return
  76320. + end
  76321. +_LT_EOF
  76322. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  76323. +public class foo {
  76324. + private int a;
  76325. + public void bar (void) {
  76326. + a = 0;
  76327. + }
  76328. +};
  76329. +_LT_EOF
  76330. +])
  76331. +dnl Parse the compiler output and extract the necessary
  76332. +dnl objects, libraries and library flags.
  76333. +if AC_TRY_EVAL(ac_compile); then
  76334. + # Parse the compiler output and extract the necessary
  76335. + # objects, libraries and library flags.
  76336. +
  76337. + # Sentinel used to keep track of whether or not we are before
  76338. + # the conftest object file.
  76339. + pre_test_object_deps_done=no
  76340. +
  76341. + for p in `eval "$output_verbose_link_cmd"`; do
  76342. + case $p in
  76343. +
  76344. + -L* | -R* | -l*)
  76345. + # Some compilers place space between "-{L,R}" and the path.
  76346. + # Remove the space.
  76347. + if test $p = "-L" ||
  76348. + test $p = "-R"; then
  76349. + prev=$p
  76350. + continue
  76351. + else
  76352. + prev=
  76353. + fi
  76354. +
  76355. + if test "$pre_test_object_deps_done" = no; then
  76356. + case $p in
  76357. + -L* | -R*)
  76358. + # Internal compiler library paths should come after those
  76359. + # provided the user. The postdeps already come after the
  76360. + # user supplied libs so there is no need to process them.
  76361. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  76362. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  76363. + else
  76364. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  76365. + fi
  76366. + ;;
  76367. + # The "-l" case would never come before the object being
  76368. + # linked, so don't bother handling this case.
  76369. + esac
  76370. + else
  76371. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  76372. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  76373. + else
  76374. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  76375. + fi
  76376. + fi
  76377. + ;;
  76378. +
  76379. + *.$objext)
  76380. + # This assumes that the test object file only shows up
  76381. + # once in the compiler output.
  76382. + if test "$p" = "conftest.$objext"; then
  76383. + pre_test_object_deps_done=yes
  76384. + continue
  76385. + fi
  76386. +
  76387. + if test "$pre_test_object_deps_done" = no; then
  76388. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  76389. + _LT_TAGVAR(predep_objects, $1)="$p"
  76390. + else
  76391. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  76392. + fi
  76393. + else
  76394. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  76395. + _LT_TAGVAR(postdep_objects, $1)="$p"
  76396. + else
  76397. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  76398. + fi
  76399. + fi
  76400. + ;;
  76401. +
  76402. + *) ;; # Ignore the rest.
  76403. +
  76404. + esac
  76405. + done
  76406. +
  76407. + # Clean up.
  76408. + rm -f a.out a.exe
  76409. +else
  76410. + echo "libtool.m4: error: problem compiling $1 test program"
  76411. +fi
  76412. +
  76413. +$RM -f confest.$objext
  76414. +
  76415. +# PORTME: override above test on systems where it is broken
  76416. +m4_if([$1], [CXX],
  76417. +[case $host_os in
  76418. +interix[[3-9]]*)
  76419. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  76420. + # hack all around it, let's just trust "g++" to DTRT.
  76421. + _LT_TAGVAR(predep_objects,$1)=
  76422. + _LT_TAGVAR(postdep_objects,$1)=
  76423. + _LT_TAGVAR(postdeps,$1)=
  76424. + ;;
  76425. +
  76426. +linux*)
  76427. + case `$CC -V 2>&1 | sed 5q` in
  76428. + *Sun\ C*)
  76429. + # Sun C++ 5.9
  76430. +
  76431. + # The more standards-conforming stlport4 library is
  76432. + # incompatible with the Cstd library. Avoid specifying
  76433. + # it if it's in CXXFLAGS. Ignore libCrun as
  76434. + # -library=stlport4 depends on it.
  76435. + case " $CXX $CXXFLAGS " in
  76436. + *" -library=stlport4 "*)
  76437. + solaris_use_stlport4=yes
  76438. + ;;
  76439. + esac
  76440. +
  76441. + if test "$solaris_use_stlport4" != yes; then
  76442. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  76443. + fi
  76444. + ;;
  76445. + esac
  76446. + ;;
  76447. +
  76448. +solaris*)
  76449. + case $cc_basename in
  76450. + CC*)
  76451. + # The more standards-conforming stlport4 library is
  76452. + # incompatible with the Cstd library. Avoid specifying
  76453. + # it if it's in CXXFLAGS. Ignore libCrun as
  76454. + # -library=stlport4 depends on it.
  76455. + case " $CXX $CXXFLAGS " in
  76456. + *" -library=stlport4 "*)
  76457. + solaris_use_stlport4=yes
  76458. + ;;
  76459. + esac
  76460. +
  76461. + # Adding this requires a known-good setup of shared libraries for
  76462. + # Sun compiler versions before 5.6, else PIC objects from an old
  76463. + # archive will be linked into the output, leading to subtle bugs.
  76464. + if test "$solaris_use_stlport4" != yes; then
  76465. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  76466. + fi
  76467. + ;;
  76468. + esac
  76469. + ;;
  76470. +esac
  76471. +])
  76472. +
  76473. +case " $_LT_TAGVAR(postdeps, $1) " in
  76474. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  76475. +esac
  76476. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  76477. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  76478. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  76479. +fi
  76480. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  76481. + [The directories searched by this compiler when creating a shared library])
  76482. +_LT_TAGDECL([], [predep_objects], [1],
  76483. + [Dependencies to place before and after the objects being linked to
  76484. + create a shared library])
  76485. +_LT_TAGDECL([], [postdep_objects], [1])
  76486. +_LT_TAGDECL([], [predeps], [1])
  76487. +_LT_TAGDECL([], [postdeps], [1])
  76488. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  76489. + [The library search path used internally by the compiler when linking
  76490. + a shared library])
  76491. +])# _LT_SYS_HIDDEN_LIBDEPS
  76492. +
  76493. +
  76494. +# _LT_PROG_F77
  76495. +# ------------
  76496. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  76497. +# if there is no fortran compiler, we have our own version here.
  76498. +m4_defun([_LT_PROG_F77],
  76499. +[
  76500. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  76501. +AC_PROG_F77
  76502. +if test -z "$F77" || test "X$F77" = "Xno"; then
  76503. + _lt_disable_F77=yes
  76504. +fi
  76505. +popdef([AC_MSG_ERROR])
  76506. +])# _LT_PROG_F77
  76507. +
  76508. +dnl aclocal-1.4 backwards compatibility:
  76509. +dnl AC_DEFUN([_LT_PROG_F77], [])
  76510. +
  76511. +
  76512. +# _LT_LANG_F77_CONFIG([TAG])
  76513. +# --------------------------
  76514. +# Ensure that the configuration variables for a Fortran 77 compiler are
  76515. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  76516. +# to write the compiler configuration to `libtool'.
  76517. +m4_defun([_LT_LANG_F77_CONFIG],
  76518. +[AC_REQUIRE([_LT_PROG_F77])dnl
  76519. +AC_LANG_PUSH(Fortran 77)
  76520. +
  76521. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  76522. +_LT_TAGVAR(allow_undefined_flag, $1)=
  76523. +_LT_TAGVAR(always_export_symbols, $1)=no
  76524. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  76525. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  76526. +_LT_TAGVAR(hardcode_direct, $1)=no
  76527. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  76528. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  76529. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  76530. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  76531. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  76532. +_LT_TAGVAR(hardcode_automatic, $1)=no
  76533. +_LT_TAGVAR(inherit_rpath, $1)=no
  76534. +_LT_TAGVAR(module_cmds, $1)=
  76535. +_LT_TAGVAR(module_expsym_cmds, $1)=
  76536. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  76537. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  76538. +_LT_TAGVAR(no_undefined_flag, $1)=
  76539. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  76540. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  76541. +
  76542. +# Source file extension for f77 test sources.
  76543. +ac_ext=f
  76544. +
  76545. +# Object file extension for compiled f77 test sources.
  76546. +objext=o
  76547. +_LT_TAGVAR(objext, $1)=$objext
  76548. +
  76549. +# No sense in running all these tests if we already determined that
  76550. +# the F77 compiler isn't working. Some variables (like enable_shared)
  76551. +# are currently assumed to apply to all compilers on this platform,
  76552. +# and will be corrupted by setting them based on a non-working compiler.
  76553. +if test "$_lt_disable_F77" != yes; then
  76554. + # Code to be used in simple compile tests
  76555. + lt_simple_compile_test_code="\
  76556. + subroutine t
  76557. + return
  76558. + end
  76559. +"
  76560. +
  76561. + # Code to be used in simple link tests
  76562. + lt_simple_link_test_code="\
  76563. + program t
  76564. + end
  76565. +"
  76566. +
  76567. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  76568. + _LT_TAG_COMPILER
  76569. +
  76570. + # save warnings/boilerplate of simple test code
  76571. + _LT_COMPILER_BOILERPLATE
  76572. + _LT_LINKER_BOILERPLATE
  76573. +
  76574. + # Allow CC to be a program name with arguments.
  76575. + lt_save_CC="$CC"
  76576. + lt_save_GCC=$GCC
  76577. + CC=${F77-"f77"}
  76578. + compiler=$CC
  76579. + _LT_TAGVAR(compiler, $1)=$CC
  76580. + _LT_CC_BASENAME([$compiler])
  76581. + GCC=$G77
  76582. + if test -n "$compiler"; then
  76583. + AC_MSG_CHECKING([if libtool supports shared libraries])
  76584. + AC_MSG_RESULT([$can_build_shared])
  76585. +
  76586. + AC_MSG_CHECKING([whether to build shared libraries])
  76587. + test "$can_build_shared" = "no" && enable_shared=no
  76588. +
  76589. + # On AIX, shared libraries and static libraries use the same namespace, and
  76590. + # are all built from PIC.
  76591. + case $host_os in
  76592. + aix3*)
  76593. + test "$enable_shared" = yes && enable_static=no
  76594. + if test -n "$RANLIB"; then
  76595. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  76596. + postinstall_cmds='$RANLIB $lib'
  76597. + fi
  76598. + ;;
  76599. + aix[[4-9]]*)
  76600. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  76601. + test "$enable_shared" = yes && enable_static=no
  76602. + fi
  76603. + ;;
  76604. + esac
  76605. + AC_MSG_RESULT([$enable_shared])
  76606. +
  76607. + AC_MSG_CHECKING([whether to build static libraries])
  76608. + # Make sure either enable_shared or enable_static is yes.
  76609. + test "$enable_shared" = yes || enable_static=yes
  76610. + AC_MSG_RESULT([$enable_static])
  76611. +
  76612. + _LT_TAGVAR(GCC, $1)="$G77"
  76613. + _LT_TAGVAR(LD, $1)="$LD"
  76614. +
  76615. + ## CAVEAT EMPTOR:
  76616. + ## There is no encapsulation within the following macros, do not change
  76617. + ## the running order or otherwise move them around unless you know exactly
  76618. + ## what you are doing...
  76619. + _LT_COMPILER_PIC($1)
  76620. + _LT_COMPILER_C_O($1)
  76621. + _LT_COMPILER_FILE_LOCKS($1)
  76622. + _LT_LINKER_SHLIBS($1)
  76623. + _LT_SYS_DYNAMIC_LINKER($1)
  76624. + _LT_LINKER_HARDCODE_LIBPATH($1)
  76625. +
  76626. + _LT_CONFIG($1)
  76627. + fi # test -n "$compiler"
  76628. +
  76629. + GCC=$lt_save_GCC
  76630. + CC="$lt_save_CC"
  76631. +fi # test "$_lt_disable_F77" != yes
  76632. +
  76633. +AC_LANG_POP
  76634. +])# _LT_LANG_F77_CONFIG
  76635. +
  76636. +
  76637. +# _LT_PROG_FC
  76638. +# -----------
  76639. +# Since AC_PROG_FC is broken, in that it returns the empty string
  76640. +# if there is no fortran compiler, we have our own version here.
  76641. +m4_defun([_LT_PROG_FC],
  76642. +[
  76643. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  76644. +AC_PROG_FC
  76645. +if test -z "$FC" || test "X$FC" = "Xno"; then
  76646. + _lt_disable_FC=yes
  76647. +fi
  76648. +popdef([AC_MSG_ERROR])
  76649. +])# _LT_PROG_FC
  76650. +
  76651. +dnl aclocal-1.4 backwards compatibility:
  76652. +dnl AC_DEFUN([_LT_PROG_FC], [])
  76653. +
  76654. +
  76655. +# _LT_LANG_FC_CONFIG([TAG])
  76656. +# -------------------------
  76657. +# Ensure that the configuration variables for a Fortran compiler are
  76658. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  76659. +# to write the compiler configuration to `libtool'.
  76660. +m4_defun([_LT_LANG_FC_CONFIG],
  76661. +[AC_REQUIRE([_LT_PROG_FC])dnl
  76662. +AC_LANG_PUSH(Fortran)
  76663. +
  76664. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  76665. +_LT_TAGVAR(allow_undefined_flag, $1)=
  76666. +_LT_TAGVAR(always_export_symbols, $1)=no
  76667. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  76668. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  76669. +_LT_TAGVAR(hardcode_direct, $1)=no
  76670. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  76671. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  76672. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  76673. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  76674. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  76675. +_LT_TAGVAR(hardcode_automatic, $1)=no
  76676. +_LT_TAGVAR(inherit_rpath, $1)=no
  76677. +_LT_TAGVAR(module_cmds, $1)=
  76678. +_LT_TAGVAR(module_expsym_cmds, $1)=
  76679. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  76680. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  76681. +_LT_TAGVAR(no_undefined_flag, $1)=
  76682. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  76683. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  76684. +
  76685. +# Source file extension for fc test sources.
  76686. +ac_ext=${ac_fc_srcext-f}
  76687. +
  76688. +# Object file extension for compiled fc test sources.
  76689. +objext=o
  76690. +_LT_TAGVAR(objext, $1)=$objext
  76691. +
  76692. +# No sense in running all these tests if we already determined that
  76693. +# the FC compiler isn't working. Some variables (like enable_shared)
  76694. +# are currently assumed to apply to all compilers on this platform,
  76695. +# and will be corrupted by setting them based on a non-working compiler.
  76696. +if test "$_lt_disable_FC" != yes; then
  76697. + # Code to be used in simple compile tests
  76698. + lt_simple_compile_test_code="\
  76699. + subroutine t
  76700. + return
  76701. + end
  76702. +"
  76703. +
  76704. + # Code to be used in simple link tests
  76705. + lt_simple_link_test_code="\
  76706. + program t
  76707. + end
  76708. +"
  76709. +
  76710. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  76711. + _LT_TAG_COMPILER
  76712. +
  76713. + # save warnings/boilerplate of simple test code
  76714. + _LT_COMPILER_BOILERPLATE
  76715. + _LT_LINKER_BOILERPLATE
  76716. +
  76717. + # Allow CC to be a program name with arguments.
  76718. + lt_save_CC="$CC"
  76719. + lt_save_GCC=$GCC
  76720. + CC=${FC-"f95"}
  76721. + compiler=$CC
  76722. + GCC=$ac_cv_fc_compiler_gnu
  76723. +
  76724. + _LT_TAGVAR(compiler, $1)=$CC
  76725. + _LT_CC_BASENAME([$compiler])
  76726. +
  76727. + if test -n "$compiler"; then
  76728. + AC_MSG_CHECKING([if libtool supports shared libraries])
  76729. + AC_MSG_RESULT([$can_build_shared])
  76730. +
  76731. + AC_MSG_CHECKING([whether to build shared libraries])
  76732. + test "$can_build_shared" = "no" && enable_shared=no
  76733. +
  76734. + # On AIX, shared libraries and static libraries use the same namespace, and
  76735. + # are all built from PIC.
  76736. + case $host_os in
  76737. + aix3*)
  76738. + test "$enable_shared" = yes && enable_static=no
  76739. + if test -n "$RANLIB"; then
  76740. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  76741. + postinstall_cmds='$RANLIB $lib'
  76742. + fi
  76743. + ;;
  76744. + aix[[4-9]]*)
  76745. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  76746. + test "$enable_shared" = yes && enable_static=no
  76747. + fi
  76748. + ;;
  76749. + esac
  76750. + AC_MSG_RESULT([$enable_shared])
  76751. +
  76752. + AC_MSG_CHECKING([whether to build static libraries])
  76753. + # Make sure either enable_shared or enable_static is yes.
  76754. + test "$enable_shared" = yes || enable_static=yes
  76755. + AC_MSG_RESULT([$enable_static])
  76756. +
  76757. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  76758. + _LT_TAGVAR(LD, $1)="$LD"
  76759. +
  76760. + ## CAVEAT EMPTOR:
  76761. + ## There is no encapsulation within the following macros, do not change
  76762. + ## the running order or otherwise move them around unless you know exactly
  76763. + ## what you are doing...
  76764. + _LT_SYS_HIDDEN_LIBDEPS($1)
  76765. + _LT_COMPILER_PIC($1)
  76766. + _LT_COMPILER_C_O($1)
  76767. + _LT_COMPILER_FILE_LOCKS($1)
  76768. + _LT_LINKER_SHLIBS($1)
  76769. + _LT_SYS_DYNAMIC_LINKER($1)
  76770. + _LT_LINKER_HARDCODE_LIBPATH($1)
  76771. +
  76772. + _LT_CONFIG($1)
  76773. + fi # test -n "$compiler"
  76774. +
  76775. + GCC=$lt_save_GCC
  76776. + CC="$lt_save_CC"
  76777. +fi # test "$_lt_disable_FC" != yes
  76778. +
  76779. +AC_LANG_POP
  76780. +])# _LT_LANG_FC_CONFIG
  76781. +
  76782. +
  76783. +# _LT_LANG_GCJ_CONFIG([TAG])
  76784. +# --------------------------
  76785. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  76786. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  76787. +# to write the compiler configuration to `libtool'.
  76788. +m4_defun([_LT_LANG_GCJ_CONFIG],
  76789. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  76790. +AC_LANG_SAVE
  76791. +
  76792. +# Source file extension for Java test sources.
  76793. +ac_ext=java
  76794. +
  76795. +# Object file extension for compiled Java test sources.
  76796. +objext=o
  76797. +_LT_TAGVAR(objext, $1)=$objext
  76798. +
  76799. +# Code to be used in simple compile tests
  76800. +lt_simple_compile_test_code="class foo {}"
  76801. +
  76802. +# Code to be used in simple link tests
  76803. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  76804. +
  76805. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  76806. +_LT_TAG_COMPILER
  76807. +
  76808. +# save warnings/boilerplate of simple test code
  76809. +_LT_COMPILER_BOILERPLATE
  76810. +_LT_LINKER_BOILERPLATE
  76811. +
  76812. +# Allow CC to be a program name with arguments.
  76813. +lt_save_CC="$CC"
  76814. +lt_save_GCC=$GCC
  76815. +GCC=yes
  76816. +CC=${GCJ-"gcj"}
  76817. +compiler=$CC
  76818. +_LT_TAGVAR(compiler, $1)=$CC
  76819. +_LT_TAGVAR(LD, $1)="$LD"
  76820. +_LT_CC_BASENAME([$compiler])
  76821. +
  76822. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  76823. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  76824. +
  76825. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  76826. +
  76827. +## CAVEAT EMPTOR:
  76828. +## There is no encapsulation within the following macros, do not change
  76829. +## the running order or otherwise move them around unless you know exactly
  76830. +## what you are doing...
  76831. +if test -n "$compiler"; then
  76832. + _LT_COMPILER_NO_RTTI($1)
  76833. + _LT_COMPILER_PIC($1)
  76834. + _LT_COMPILER_C_O($1)
  76835. + _LT_COMPILER_FILE_LOCKS($1)
  76836. + _LT_LINKER_SHLIBS($1)
  76837. + _LT_LINKER_HARDCODE_LIBPATH($1)
  76838. +
  76839. + _LT_CONFIG($1)
  76840. +fi
  76841. +
  76842. +AC_LANG_RESTORE
  76843. +
  76844. +GCC=$lt_save_GCC
  76845. +CC="$lt_save_CC"
  76846. +])# _LT_LANG_GCJ_CONFIG
  76847. +
  76848. +
  76849. +# _LT_LANG_RC_CONFIG([TAG])
  76850. +# -------------------------
  76851. +# Ensure that the configuration variables for the Windows resource compiler
  76852. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  76853. +# to write the compiler configuration to `libtool'.
  76854. +m4_defun([_LT_LANG_RC_CONFIG],
  76855. +[AC_REQUIRE([LT_PROG_RC])dnl
  76856. +AC_LANG_SAVE
  76857. +
  76858. +# Source file extension for RC test sources.
  76859. +ac_ext=rc
  76860. +
  76861. +# Object file extension for compiled RC test sources.
  76862. +objext=o
  76863. +_LT_TAGVAR(objext, $1)=$objext
  76864. +
  76865. +# Code to be used in simple compile tests
  76866. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  76867. +
  76868. +# Code to be used in simple link tests
  76869. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  76870. +
  76871. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  76872. +_LT_TAG_COMPILER
  76873. +
  76874. +# save warnings/boilerplate of simple test code
  76875. +_LT_COMPILER_BOILERPLATE
  76876. +_LT_LINKER_BOILERPLATE
  76877. +
  76878. +# Allow CC to be a program name with arguments.
  76879. +lt_save_CC="$CC"
  76880. +lt_save_GCC=$GCC
  76881. +GCC=
  76882. +CC=${RC-"windres"}
  76883. +compiler=$CC
  76884. +_LT_TAGVAR(compiler, $1)=$CC
  76885. +_LT_CC_BASENAME([$compiler])
  76886. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  76887. +
  76888. +if test -n "$compiler"; then
  76889. + :
  76890. + _LT_CONFIG($1)
  76891. +fi
  76892. +
  76893. +GCC=$lt_save_GCC
  76894. +AC_LANG_RESTORE
  76895. +CC="$lt_save_CC"
  76896. +])# _LT_LANG_RC_CONFIG
  76897. +
  76898. +
  76899. +# LT_PROG_GCJ
  76900. +# -----------
  76901. +AC_DEFUN([LT_PROG_GCJ],
  76902. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  76903. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  76904. + [AC_CHECK_TOOL(GCJ, gcj,)
  76905. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  76906. + AC_SUBST(GCJFLAGS)])])[]dnl
  76907. +])
  76908. +
  76909. +# Old name:
  76910. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  76911. +dnl aclocal-1.4 backwards compatibility:
  76912. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  76913. +
  76914. +
  76915. +# LT_PROG_RC
  76916. +# ----------
  76917. +AC_DEFUN([LT_PROG_RC],
  76918. +[AC_CHECK_TOOL(RC, windres,)
  76919. +])
  76920. +
  76921. +# Old name:
  76922. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  76923. +dnl aclocal-1.4 backwards compatibility:
  76924. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  76925. +
  76926. +
  76927. +# _LT_DECL_EGREP
  76928. +# --------------
  76929. +# If we don't have a new enough Autoconf to choose the best grep
  76930. +# available, choose the one first in the user's PATH.
  76931. +m4_defun([_LT_DECL_EGREP],
  76932. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  76933. +AC_REQUIRE([AC_PROG_FGREP])dnl
  76934. +test -z "$GREP" && GREP=grep
  76935. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  76936. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  76937. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  76938. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  76939. +AC_SUBST([GREP])
  76940. +])
  76941. +
  76942. +
  76943. +# _LT_DECL_OBJDUMP
  76944. +# --------------
  76945. +# If we don't have a new enough Autoconf to choose the best objdump
  76946. +# available, choose the one first in the user's PATH.
  76947. +m4_defun([_LT_DECL_OBJDUMP],
  76948. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  76949. +test -z "$OBJDUMP" && OBJDUMP=objdump
  76950. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  76951. +AC_SUBST([OBJDUMP])
  76952. +])
  76953. +
  76954. +
  76955. +# _LT_DECL_SED
  76956. +# ------------
  76957. +# Check for a fully-functional sed program, that truncates
  76958. +# as few characters as possible. Prefer GNU sed if found.
  76959. +m4_defun([_LT_DECL_SED],
  76960. +[AC_PROG_SED
  76961. +test -z "$SED" && SED=sed
  76962. +Xsed="$SED -e 1s/^X//"
  76963. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  76964. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  76965. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  76966. +])# _LT_DECL_SED
  76967. +
  76968. +m4_ifndef([AC_PROG_SED], [
  76969. +############################################################
  76970. +# NOTE: This macro has been submitted for inclusion into #
  76971. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  76972. +# a released version of Autoconf we should remove this #
  76973. +# macro and use it instead. #
  76974. +############################################################
  76975. +
  76976. +m4_defun([AC_PROG_SED],
  76977. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  76978. +AC_CACHE_VAL(lt_cv_path_SED,
  76979. +[# Loop through the user's path and test for sed and gsed.
  76980. +# Then use that list of sed's as ones to test for truncation.
  76981. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  76982. +for as_dir in $PATH
  76983. +do
  76984. + IFS=$as_save_IFS
  76985. + test -z "$as_dir" && as_dir=.
  76986. + for lt_ac_prog in sed gsed; do
  76987. + for ac_exec_ext in '' $ac_executable_extensions; do
  76988. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  76989. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  76990. + fi
  76991. + done
  76992. + done
  76993. +done
  76994. +IFS=$as_save_IFS
  76995. +lt_ac_max=0
  76996. +lt_ac_count=0
  76997. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  76998. +# along with /bin/sed that truncates output.
  76999. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  77000. + test ! -f $lt_ac_sed && continue
  77001. + cat /dev/null > conftest.in
  77002. + lt_ac_count=0
  77003. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  77004. + # Check for GNU sed and select it if it is found.
  77005. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  77006. + lt_cv_path_SED=$lt_ac_sed
  77007. + break
  77008. + fi
  77009. + while true; do
  77010. + cat conftest.in conftest.in >conftest.tmp
  77011. + mv conftest.tmp conftest.in
  77012. + cp conftest.in conftest.nl
  77013. + echo >>conftest.nl
  77014. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  77015. + cmp -s conftest.out conftest.nl || break
  77016. + # 10000 chars as input seems more than enough
  77017. + test $lt_ac_count -gt 10 && break
  77018. + lt_ac_count=`expr $lt_ac_count + 1`
  77019. + if test $lt_ac_count -gt $lt_ac_max; then
  77020. + lt_ac_max=$lt_ac_count
  77021. + lt_cv_path_SED=$lt_ac_sed
  77022. + fi
  77023. + done
  77024. +done
  77025. +])
  77026. +SED=$lt_cv_path_SED
  77027. +AC_SUBST([SED])
  77028. +AC_MSG_RESULT([$SED])
  77029. +])#AC_PROG_SED
  77030. +])#m4_ifndef
  77031. +
  77032. +# Old name:
  77033. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  77034. +dnl aclocal-1.4 backwards compatibility:
  77035. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  77036. +
  77037. +
  77038. +# _LT_CHECK_SHELL_FEATURES
  77039. +# ------------------------
  77040. +# Find out whether the shell is Bourne or XSI compatible,
  77041. +# or has some other useful features.
  77042. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  77043. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  77044. +# Try some XSI features
  77045. +xsi_shell=no
  77046. +( _lt_dummy="a/b/c"
  77047. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  77048. + = c,a/b,, \
  77049. + && eval 'test $(( 1 + 1 )) -eq 2 \
  77050. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  77051. + && xsi_shell=yes
  77052. +AC_MSG_RESULT([$xsi_shell])
  77053. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  77054. +
  77055. +AC_MSG_CHECKING([whether the shell understands "+="])
  77056. +lt_shell_append=no
  77057. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  77058. + >/dev/null 2>&1 \
  77059. + && lt_shell_append=yes
  77060. +AC_MSG_RESULT([$lt_shell_append])
  77061. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  77062. +
  77063. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77064. + lt_unset=unset
  77065. +else
  77066. + lt_unset=false
  77067. +fi
  77068. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  77069. +
  77070. +# test EBCDIC or ASCII
  77071. +case `echo X|tr X '\101'` in
  77072. + A) # ASCII based system
  77073. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  77074. + lt_SP2NL='tr \040 \012'
  77075. + lt_NL2SP='tr \015\012 \040\040'
  77076. + ;;
  77077. + *) # EBCDIC based system
  77078. + lt_SP2NL='tr \100 \n'
  77079. + lt_NL2SP='tr \r\n \100\100'
  77080. + ;;
  77081. +esac
  77082. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  77083. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  77084. +])# _LT_CHECK_SHELL_FEATURES
  77085. +
  77086. +
  77087. +# _LT_PROG_XSI_SHELLFNS
  77088. +# ---------------------
  77089. +# Bourne and XSI compatible variants of some useful shell functions.
  77090. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  77091. +[case $xsi_shell in
  77092. + yes)
  77093. + cat << \_LT_EOF >> "$cfgfile"
  77094. +
  77095. +# func_dirname file append nondir_replacement
  77096. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  77097. +# otherwise set result to NONDIR_REPLACEMENT.
  77098. +func_dirname ()
  77099. +{
  77100. + case ${1} in
  77101. + */*) func_dirname_result="${1%/*}${2}" ;;
  77102. + * ) func_dirname_result="${3}" ;;
  77103. + esac
  77104. +}
  77105. +
  77106. +# func_basename file
  77107. +func_basename ()
  77108. +{
  77109. + func_basename_result="${1##*/}"
  77110. +}
  77111. +
  77112. +# func_dirname_and_basename file append nondir_replacement
  77113. +# perform func_basename and func_dirname in a single function
  77114. +# call:
  77115. +# dirname: Compute the dirname of FILE. If nonempty,
  77116. +# add APPEND to the result, otherwise set result
  77117. +# to NONDIR_REPLACEMENT.
  77118. +# value returned in "$func_dirname_result"
  77119. +# basename: Compute filename of FILE.
  77120. +# value retuned in "$func_basename_result"
  77121. +# Implementation must be kept synchronized with func_dirname
  77122. +# and func_basename. For efficiency, we do not delegate to
  77123. +# those functions but instead duplicate the functionality here.
  77124. +func_dirname_and_basename ()
  77125. +{
  77126. + case ${1} in
  77127. + */*) func_dirname_result="${1%/*}${2}" ;;
  77128. + * ) func_dirname_result="${3}" ;;
  77129. + esac
  77130. + func_basename_result="${1##*/}"
  77131. +}
  77132. +
  77133. +# func_stripname prefix suffix name
  77134. +# strip PREFIX and SUFFIX off of NAME.
  77135. +# PREFIX and SUFFIX must not contain globbing or regex special
  77136. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  77137. +# dot (in which case that matches only a dot).
  77138. +func_stripname ()
  77139. +{
  77140. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  77141. + # positional parameters, so assign one to ordinary parameter first.
  77142. + func_stripname_result=${3}
  77143. + func_stripname_result=${func_stripname_result#"${1}"}
  77144. + func_stripname_result=${func_stripname_result%"${2}"}
  77145. +}
  77146. +
  77147. +# func_opt_split
  77148. +func_opt_split ()
  77149. +{
  77150. + func_opt_split_opt=${1%%=*}
  77151. + func_opt_split_arg=${1#*=}
  77152. +}
  77153. +
  77154. +# func_lo2o object
  77155. +func_lo2o ()
  77156. +{
  77157. + case ${1} in
  77158. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  77159. + *) func_lo2o_result=${1} ;;
  77160. + esac
  77161. +}
  77162. +
  77163. +# func_xform libobj-or-source
  77164. +func_xform ()
  77165. +{
  77166. + func_xform_result=${1%.*}.lo
  77167. +}
  77168. +
  77169. +# func_arith arithmetic-term...
  77170. +func_arith ()
  77171. +{
  77172. + func_arith_result=$(( $[*] ))
  77173. +}
  77174. +
  77175. +# func_len string
  77176. +# STRING may not start with a hyphen.
  77177. +func_len ()
  77178. +{
  77179. + func_len_result=${#1}
  77180. +}
  77181. +
  77182. +_LT_EOF
  77183. + ;;
  77184. + *) # Bourne compatible functions.
  77185. + cat << \_LT_EOF >> "$cfgfile"
  77186. +
  77187. +# func_dirname file append nondir_replacement
  77188. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  77189. +# otherwise set result to NONDIR_REPLACEMENT.
  77190. +func_dirname ()
  77191. +{
  77192. + # Extract subdirectory from the argument.
  77193. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  77194. + if test "X$func_dirname_result" = "X${1}"; then
  77195. + func_dirname_result="${3}"
  77196. + else
  77197. + func_dirname_result="$func_dirname_result${2}"
  77198. + fi
  77199. +}
  77200. +
  77201. +# func_basename file
  77202. +func_basename ()
  77203. +{
  77204. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  77205. +}
  77206. +
  77207. +dnl func_dirname_and_basename
  77208. +dnl A portable version of this function is already defined in general.m4sh
  77209. +dnl so there is no need for it here.
  77210. +
  77211. +# func_stripname prefix suffix name
  77212. +# strip PREFIX and SUFFIX off of NAME.
  77213. +# PREFIX and SUFFIX must not contain globbing or regex special
  77214. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  77215. +# dot (in which case that matches only a dot).
  77216. +# func_strip_suffix prefix name
  77217. +func_stripname ()
  77218. +{
  77219. + case ${2} in
  77220. + .*) func_stripname_result=`$ECHO "X${3}" \
  77221. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  77222. + *) func_stripname_result=`$ECHO "X${3}" \
  77223. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  77224. + esac
  77225. +}
  77226. +
  77227. +# sed scripts:
  77228. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  77229. +my_sed_long_arg='1s/^-[[^=]]*=//'
  77230. +
  77231. +# func_opt_split
  77232. +func_opt_split ()
  77233. +{
  77234. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  77235. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  77236. +}
  77237. +
  77238. +# func_lo2o object
  77239. +func_lo2o ()
  77240. +{
  77241. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  77242. +}
  77243. +
  77244. +# func_xform libobj-or-source
  77245. +func_xform ()
  77246. +{
  77247. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  77248. +}
  77249. +
  77250. +# func_arith arithmetic-term...
  77251. +func_arith ()
  77252. +{
  77253. + func_arith_result=`expr "$[@]"`
  77254. +}
  77255. +
  77256. +# func_len string
  77257. +# STRING may not start with a hyphen.
  77258. +func_len ()
  77259. +{
  77260. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  77261. +}
  77262. +
  77263. +_LT_EOF
  77264. +esac
  77265. +
  77266. +case $lt_shell_append in
  77267. + yes)
  77268. + cat << \_LT_EOF >> "$cfgfile"
  77269. +
  77270. +# func_append var value
  77271. +# Append VALUE to the end of shell variable VAR.
  77272. +func_append ()
  77273. +{
  77274. + eval "$[1]+=\$[2]"
  77275. +}
  77276. +_LT_EOF
  77277. + ;;
  77278. + *)
  77279. + cat << \_LT_EOF >> "$cfgfile"
  77280. +
  77281. +# func_append var value
  77282. +# Append VALUE to the end of shell variable VAR.
  77283. +func_append ()
  77284. +{
  77285. + eval "$[1]=\$$[1]\$[2]"
  77286. +}
  77287. +
  77288. +_LT_EOF
  77289. + ;;
  77290. + esac
  77291. +])
  77292. Index: sid/m4/ltoptions.m4
  77293. ===================================================================
  77294. --- /dev/null
  77295. +++ sid/m4/ltoptions.m4
  77296. @@ -0,0 +1,368 @@
  77297. +# Helper functions for option handling. -*- Autoconf -*-
  77298. +#
  77299. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  77300. +# Written by Gary V. Vaughan, 2004
  77301. +#
  77302. +# This file is free software; the Free Software Foundation gives
  77303. +# unlimited permission to copy and/or distribute it, with or without
  77304. +# modifications, as long as this notice is preserved.
  77305. +
  77306. +# serial 6 ltoptions.m4
  77307. +
  77308. +# This is to help aclocal find these macros, as it can't see m4_define.
  77309. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  77310. +
  77311. +
  77312. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  77313. +# ------------------------------------------
  77314. +m4_define([_LT_MANGLE_OPTION],
  77315. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  77316. +
  77317. +
  77318. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  77319. +# ---------------------------------------
  77320. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  77321. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  77322. +# saved as a flag.
  77323. +m4_define([_LT_SET_OPTION],
  77324. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  77325. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  77326. + _LT_MANGLE_DEFUN([$1], [$2]),
  77327. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  77328. +])
  77329. +
  77330. +
  77331. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  77332. +# ------------------------------------------------------------
  77333. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  77334. +m4_define([_LT_IF_OPTION],
  77335. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  77336. +
  77337. +
  77338. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  77339. +# -------------------------------------------------------
  77340. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  77341. +# are set.
  77342. +m4_define([_LT_UNLESS_OPTIONS],
  77343. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  77344. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  77345. + [m4_define([$0_found])])])[]dnl
  77346. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  77347. +])[]dnl
  77348. +])
  77349. +
  77350. +
  77351. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  77352. +# ----------------------------------------
  77353. +# OPTION-LIST is a space-separated list of Libtool options associated
  77354. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  77355. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  77356. +# the unknown option and exit.
  77357. +m4_defun([_LT_SET_OPTIONS],
  77358. +[# Set options
  77359. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  77360. + [_LT_SET_OPTION([$1], _LT_Option)])
  77361. +
  77362. +m4_if([$1],[LT_INIT],[
  77363. + dnl
  77364. + dnl Simply set some default values (i.e off) if boolean options were not
  77365. + dnl specified:
  77366. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  77367. + ])
  77368. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  77369. + ])
  77370. + dnl
  77371. + dnl If no reference was made to various pairs of opposing options, then
  77372. + dnl we run the default mode handler for the pair. For example, if neither
  77373. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  77374. + dnl archives by default:
  77375. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  77376. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  77377. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  77378. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  77379. + [_LT_ENABLE_FAST_INSTALL])
  77380. + ])
  77381. +])# _LT_SET_OPTIONS
  77382. +
  77383. +
  77384. +## --------------------------------- ##
  77385. +## Macros to handle LT_INIT options. ##
  77386. +## --------------------------------- ##
  77387. +
  77388. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  77389. +# -----------------------------------------
  77390. +m4_define([_LT_MANGLE_DEFUN],
  77391. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  77392. +
  77393. +
  77394. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  77395. +# -----------------------------------------------
  77396. +m4_define([LT_OPTION_DEFINE],
  77397. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  77398. +])# LT_OPTION_DEFINE
  77399. +
  77400. +
  77401. +# dlopen
  77402. +# ------
  77403. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  77404. +])
  77405. +
  77406. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  77407. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  77408. +AC_DIAGNOSE([obsolete],
  77409. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  77410. +put the `dlopen' option into LT_INIT's first parameter.])
  77411. +])
  77412. +
  77413. +dnl aclocal-1.4 backwards compatibility:
  77414. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  77415. +
  77416. +
  77417. +# win32-dll
  77418. +# ---------
  77419. +# Declare package support for building win32 dll's.
  77420. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  77421. +[enable_win32_dll=yes
  77422. +
  77423. +case $host in
  77424. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  77425. + AC_CHECK_TOOL(AS, as, false)
  77426. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  77427. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  77428. + ;;
  77429. +esac
  77430. +
  77431. +test -z "$AS" && AS=as
  77432. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  77433. +
  77434. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  77435. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  77436. +
  77437. +test -z "$OBJDUMP" && OBJDUMP=objdump
  77438. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  77439. +])# win32-dll
  77440. +
  77441. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  77442. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  77443. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  77444. +AC_DIAGNOSE([obsolete],
  77445. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  77446. +put the `win32-dll' option into LT_INIT's first parameter.])
  77447. +])
  77448. +
  77449. +dnl aclocal-1.4 backwards compatibility:
  77450. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  77451. +
  77452. +
  77453. +# _LT_ENABLE_SHARED([DEFAULT])
  77454. +# ----------------------------
  77455. +# implement the --enable-shared flag, and supports the `shared' and
  77456. +# `disable-shared' LT_INIT options.
  77457. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  77458. +m4_define([_LT_ENABLE_SHARED],
  77459. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  77460. +AC_ARG_ENABLE([shared],
  77461. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  77462. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  77463. + [p=${PACKAGE-default}
  77464. + case $enableval in
  77465. + yes) enable_shared=yes ;;
  77466. + no) enable_shared=no ;;
  77467. + *)
  77468. + enable_shared=no
  77469. + # Look at the argument we got. We use all the common list separators.
  77470. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  77471. + for pkg in $enableval; do
  77472. + IFS="$lt_save_ifs"
  77473. + if test "X$pkg" = "X$p"; then
  77474. + enable_shared=yes
  77475. + fi
  77476. + done
  77477. + IFS="$lt_save_ifs"
  77478. + ;;
  77479. + esac],
  77480. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  77481. +
  77482. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  77483. + [Whether or not to build shared libraries])
  77484. +])# _LT_ENABLE_SHARED
  77485. +
  77486. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  77487. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  77488. +
  77489. +# Old names:
  77490. +AC_DEFUN([AC_ENABLE_SHARED],
  77491. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  77492. +])
  77493. +
  77494. +AC_DEFUN([AC_DISABLE_SHARED],
  77495. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  77496. +])
  77497. +
  77498. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  77499. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  77500. +
  77501. +dnl aclocal-1.4 backwards compatibility:
  77502. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  77503. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  77504. +
  77505. +
  77506. +
  77507. +# _LT_ENABLE_STATIC([DEFAULT])
  77508. +# ----------------------------
  77509. +# implement the --enable-static flag, and support the `static' and
  77510. +# `disable-static' LT_INIT options.
  77511. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  77512. +m4_define([_LT_ENABLE_STATIC],
  77513. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  77514. +AC_ARG_ENABLE([static],
  77515. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  77516. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  77517. + [p=${PACKAGE-default}
  77518. + case $enableval in
  77519. + yes) enable_static=yes ;;
  77520. + no) enable_static=no ;;
  77521. + *)
  77522. + enable_static=no
  77523. + # Look at the argument we got. We use all the common list separators.
  77524. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  77525. + for pkg in $enableval; do
  77526. + IFS="$lt_save_ifs"
  77527. + if test "X$pkg" = "X$p"; then
  77528. + enable_static=yes
  77529. + fi
  77530. + done
  77531. + IFS="$lt_save_ifs"
  77532. + ;;
  77533. + esac],
  77534. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  77535. +
  77536. + _LT_DECL([build_old_libs], [enable_static], [0],
  77537. + [Whether or not to build static libraries])
  77538. +])# _LT_ENABLE_STATIC
  77539. +
  77540. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  77541. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  77542. +
  77543. +# Old names:
  77544. +AC_DEFUN([AC_ENABLE_STATIC],
  77545. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  77546. +])
  77547. +
  77548. +AC_DEFUN([AC_DISABLE_STATIC],
  77549. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  77550. +])
  77551. +
  77552. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  77553. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  77554. +
  77555. +dnl aclocal-1.4 backwards compatibility:
  77556. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  77557. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  77558. +
  77559. +
  77560. +
  77561. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  77562. +# ----------------------------------
  77563. +# implement the --enable-fast-install flag, and support the `fast-install'
  77564. +# and `disable-fast-install' LT_INIT options.
  77565. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  77566. +m4_define([_LT_ENABLE_FAST_INSTALL],
  77567. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  77568. +AC_ARG_ENABLE([fast-install],
  77569. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  77570. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  77571. + [p=${PACKAGE-default}
  77572. + case $enableval in
  77573. + yes) enable_fast_install=yes ;;
  77574. + no) enable_fast_install=no ;;
  77575. + *)
  77576. + enable_fast_install=no
  77577. + # Look at the argument we got. We use all the common list separators.
  77578. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  77579. + for pkg in $enableval; do
  77580. + IFS="$lt_save_ifs"
  77581. + if test "X$pkg" = "X$p"; then
  77582. + enable_fast_install=yes
  77583. + fi
  77584. + done
  77585. + IFS="$lt_save_ifs"
  77586. + ;;
  77587. + esac],
  77588. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  77589. +
  77590. +_LT_DECL([fast_install], [enable_fast_install], [0],
  77591. + [Whether or not to optimize for fast installation])dnl
  77592. +])# _LT_ENABLE_FAST_INSTALL
  77593. +
  77594. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  77595. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  77596. +
  77597. +# Old names:
  77598. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  77599. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  77600. +AC_DIAGNOSE([obsolete],
  77601. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  77602. +the `fast-install' option into LT_INIT's first parameter.])
  77603. +])
  77604. +
  77605. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  77606. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  77607. +AC_DIAGNOSE([obsolete],
  77608. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  77609. +the `disable-fast-install' option into LT_INIT's first parameter.])
  77610. +])
  77611. +
  77612. +dnl aclocal-1.4 backwards compatibility:
  77613. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  77614. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  77615. +
  77616. +
  77617. +# _LT_WITH_PIC([MODE])
  77618. +# --------------------
  77619. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  77620. +# LT_INIT options.
  77621. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  77622. +m4_define([_LT_WITH_PIC],
  77623. +[AC_ARG_WITH([pic],
  77624. + [AS_HELP_STRING([--with-pic],
  77625. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  77626. + [pic_mode="$withval"],
  77627. + [pic_mode=default])
  77628. +
  77629. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  77630. +
  77631. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  77632. +])# _LT_WITH_PIC
  77633. +
  77634. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  77635. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  77636. +
  77637. +# Old name:
  77638. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  77639. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  77640. +AC_DIAGNOSE([obsolete],
  77641. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  77642. +put the `pic-only' option into LT_INIT's first parameter.])
  77643. +])
  77644. +
  77645. +dnl aclocal-1.4 backwards compatibility:
  77646. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  77647. +
  77648. +## ----------------- ##
  77649. +## LTDL_INIT Options ##
  77650. +## ----------------- ##
  77651. +
  77652. +m4_define([_LTDL_MODE], [])
  77653. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  77654. + [m4_define([_LTDL_MODE], [nonrecursive])])
  77655. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  77656. + [m4_define([_LTDL_MODE], [recursive])])
  77657. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  77658. + [m4_define([_LTDL_MODE], [subproject])])
  77659. +
  77660. +m4_define([_LTDL_TYPE], [])
  77661. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  77662. + [m4_define([_LTDL_TYPE], [installable])])
  77663. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  77664. + [m4_define([_LTDL_TYPE], [convenience])])
  77665. Index: sid/m4/ltsugar.m4
  77666. ===================================================================
  77667. --- /dev/null
  77668. +++ sid/m4/ltsugar.m4
  77669. @@ -0,0 +1,123 @@
  77670. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  77671. +#
  77672. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  77673. +# Written by Gary V. Vaughan, 2004
  77674. +#
  77675. +# This file is free software; the Free Software Foundation gives
  77676. +# unlimited permission to copy and/or distribute it, with or without
  77677. +# modifications, as long as this notice is preserved.
  77678. +
  77679. +# serial 6 ltsugar.m4
  77680. +
  77681. +# This is to help aclocal find these macros, as it can't see m4_define.
  77682. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  77683. +
  77684. +
  77685. +# lt_join(SEP, ARG1, [ARG2...])
  77686. +# -----------------------------
  77687. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  77688. +# associated separator.
  77689. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  77690. +# versions in m4sugar had bugs.
  77691. +m4_define([lt_join],
  77692. +[m4_if([$#], [1], [],
  77693. + [$#], [2], [[$2]],
  77694. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  77695. +m4_define([_lt_join],
  77696. +[m4_if([$#$2], [2], [],
  77697. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  77698. +
  77699. +
  77700. +# lt_car(LIST)
  77701. +# lt_cdr(LIST)
  77702. +# ------------
  77703. +# Manipulate m4 lists.
  77704. +# These macros are necessary as long as will still need to support
  77705. +# Autoconf-2.59 which quotes differently.
  77706. +m4_define([lt_car], [[$1]])
  77707. +m4_define([lt_cdr],
  77708. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  77709. + [$#], 1, [],
  77710. + [m4_dquote(m4_shift($@))])])
  77711. +m4_define([lt_unquote], $1)
  77712. +
  77713. +
  77714. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  77715. +# ------------------------------------------
  77716. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  77717. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  77718. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  77719. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  77720. +# than defined and empty).
  77721. +#
  77722. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  77723. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  77724. +m4_define([lt_append],
  77725. +[m4_define([$1],
  77726. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  77727. +
  77728. +
  77729. +
  77730. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  77731. +# ----------------------------------------------------------
  77732. +# Produce a SEP delimited list of all paired combinations of elements of
  77733. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  77734. +# has the form PREFIXmINFIXSUFFIXn.
  77735. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  77736. +m4_define([lt_combine],
  77737. +[m4_if(m4_eval([$# > 3]), [1],
  77738. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  77739. +[[m4_foreach([_Lt_prefix], [$2],
  77740. + [m4_foreach([_Lt_suffix],
  77741. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  77742. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  77743. +
  77744. +
  77745. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  77746. +# -----------------------------------------------------------------------
  77747. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  77748. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  77749. +m4_define([lt_if_append_uniq],
  77750. +[m4_ifdef([$1],
  77751. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  77752. + [lt_append([$1], [$2], [$3])$4],
  77753. + [$5])],
  77754. + [lt_append([$1], [$2], [$3])$4])])
  77755. +
  77756. +
  77757. +# lt_dict_add(DICT, KEY, VALUE)
  77758. +# -----------------------------
  77759. +m4_define([lt_dict_add],
  77760. +[m4_define([$1($2)], [$3])])
  77761. +
  77762. +
  77763. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  77764. +# --------------------------------------------
  77765. +m4_define([lt_dict_add_subkey],
  77766. +[m4_define([$1($2:$3)], [$4])])
  77767. +
  77768. +
  77769. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  77770. +# ----------------------------------
  77771. +m4_define([lt_dict_fetch],
  77772. +[m4_ifval([$3],
  77773. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  77774. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  77775. +
  77776. +
  77777. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  77778. +# -----------------------------------------------------------------
  77779. +m4_define([lt_if_dict_fetch],
  77780. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  77781. + [$5],
  77782. + [$6])])
  77783. +
  77784. +
  77785. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  77786. +# --------------------------------------------------------------
  77787. +m4_define([lt_dict_filter],
  77788. +[m4_if([$5], [], [],
  77789. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  77790. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  77791. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  77792. +])
  77793. Index: sid/m4/ltversion.m4
  77794. ===================================================================
  77795. --- /dev/null
  77796. +++ sid/m4/ltversion.m4
  77797. @@ -0,0 +1,23 @@
  77798. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  77799. +#
  77800. +# Copyright (C) 2004 Free Software Foundation, Inc.
  77801. +# Written by Scott James Remnant, 2004
  77802. +#
  77803. +# This file is free software; the Free Software Foundation gives
  77804. +# unlimited permission to copy and/or distribute it, with or without
  77805. +# modifications, as long as this notice is preserved.
  77806. +
  77807. +# Generated from ltversion.in.
  77808. +
  77809. +# serial 3017 ltversion.m4
  77810. +# This file is part of GNU Libtool
  77811. +
  77812. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  77813. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  77814. +
  77815. +AC_DEFUN([LTVERSION_VERSION],
  77816. +[macro_version='2.2.6b'
  77817. +macro_revision='1.3017'
  77818. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  77819. +_LT_DECL(, macro_revision, 0)
  77820. +])
  77821. Index: sid/m4/lt~obsolete.m4
  77822. ===================================================================
  77823. --- /dev/null
  77824. +++ sid/m4/lt~obsolete.m4
  77825. @@ -0,0 +1,92 @@
  77826. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  77827. +#
  77828. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  77829. +# Written by Scott James Remnant, 2004.
  77830. +#
  77831. +# This file is free software; the Free Software Foundation gives
  77832. +# unlimited permission to copy and/or distribute it, with or without
  77833. +# modifications, as long as this notice is preserved.
  77834. +
  77835. +# serial 4 lt~obsolete.m4
  77836. +
  77837. +# These exist entirely to fool aclocal when bootstrapping libtool.
  77838. +#
  77839. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  77840. +# which have later been changed to m4_define as they aren't part of the
  77841. +# exported API, or moved to Autoconf or Automake where they belong.
  77842. +#
  77843. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  77844. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  77845. +# using a macro with the same name in our local m4/libtool.m4 it'll
  77846. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  77847. +# and doesn't know about Autoconf macros at all.)
  77848. +#
  77849. +# So we provide this file, which has a silly filename so it's always
  77850. +# included after everything else. This provides aclocal with the
  77851. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  77852. +# because those macros already exist, or will be overwritten later.
  77853. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  77854. +#
  77855. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  77856. +# Yes, that means every name once taken will need to remain here until
  77857. +# we give up compatibility with versions before 1.7, at which point
  77858. +# we need to keep only those names which we still refer to.
  77859. +
  77860. +# This is to help aclocal find these macros, as it can't see m4_define.
  77861. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  77862. +
  77863. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  77864. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  77865. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  77866. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  77867. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  77868. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  77869. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  77870. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  77871. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  77872. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  77873. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  77874. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  77875. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  77876. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  77877. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  77878. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  77879. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  77880. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  77881. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  77882. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  77883. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  77884. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  77885. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  77886. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  77887. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  77888. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  77889. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  77890. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  77891. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  77892. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  77893. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  77894. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  77895. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  77896. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  77897. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  77898. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  77899. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  77900. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  77901. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  77902. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  77903. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  77904. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  77905. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  77906. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  77907. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  77908. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  77909. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  77910. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  77911. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  77912. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  77913. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  77914. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  77915. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  77916. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  77917. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  77918. Index: sid/oop/Makefile.in
  77919. ===================================================================
  77920. --- sid.orig/oop/Makefile.in
  77921. +++ sid/oop/Makefile.in
  77922. @@ -38,7 +38,10 @@
  77923. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  77924. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  77925. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  77926. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  77927. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  77928. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  77929. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  77930. + $(top_srcdir)/configure.in
  77931. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  77932. $(ACLOCAL_M4)
  77933. mkinstalldirs = $(install_sh) -d
  77934. @@ -217,6 +220,7 @@
  77935. PACKAGE_NAME = @PACKAGE_NAME@
  77936. PACKAGE_STRING = @PACKAGE_STRING@
  77937. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  77938. +PACKAGE_URL = @PACKAGE_URL@
  77939. PACKAGE_VERSION = @PACKAGE_VERSION@
  77940. PATH_SEPARATOR = @PATH_SEPARATOR@
  77941. POSUB = @POSUB@
  77942. Index: sid/oop/goops/Makefile.in
  77943. ===================================================================
  77944. --- sid.orig/oop/goops/Makefile.in
  77945. +++ sid/oop/goops/Makefile.in
  77946. @@ -38,7 +38,10 @@
  77947. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  77948. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  77949. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  77950. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  77951. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  77952. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  77953. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  77954. + $(top_srcdir)/configure.in
  77955. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  77956. $(ACLOCAL_M4)
  77957. mkinstalldirs = $(install_sh) -d
  77958. @@ -177,6 +180,7 @@
  77959. PACKAGE_NAME = @PACKAGE_NAME@
  77960. PACKAGE_STRING = @PACKAGE_STRING@
  77961. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  77962. +PACKAGE_URL = @PACKAGE_URL@
  77963. PACKAGE_VERSION = @PACKAGE_VERSION@
  77964. PATH_SEPARATOR = @PATH_SEPARATOR@
  77965. POSUB = @POSUB@
  77966. Index: sid/scripts/Makefile.in
  77967. ===================================================================
  77968. --- sid.orig/scripts/Makefile.in
  77969. +++ sid/scripts/Makefile.in
  77970. @@ -39,7 +39,10 @@
  77971. subdir = scripts
  77972. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  77973. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  77974. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  77975. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  77976. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  77977. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  77978. + $(top_srcdir)/configure.in
  77979. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  77980. $(ACLOCAL_M4)
  77981. mkinstalldirs = $(install_sh) -d
  77982. @@ -178,6 +181,7 @@
  77983. PACKAGE_NAME = @PACKAGE_NAME@
  77984. PACKAGE_STRING = @PACKAGE_STRING@
  77985. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  77986. +PACKAGE_URL = @PACKAGE_URL@
  77987. PACKAGE_VERSION = @PACKAGE_VERSION@
  77988. PATH_SEPARATOR = @PATH_SEPARATOR@
  77989. POSUB = @POSUB@
  77990. Index: sid/srfi/Makefile.in
  77991. ===================================================================
  77992. --- sid.orig/srfi/Makefile.in
  77993. +++ sid/srfi/Makefile.in
  77994. @@ -41,7 +41,10 @@
  77995. $(srfiinclude_HEADERS)
  77996. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  77997. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  77998. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  77999. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  78000. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  78001. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  78002. + $(top_srcdir)/configure.in
  78003. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  78004. $(ACLOCAL_M4)
  78005. mkinstalldirs = $(install_sh) -d
  78006. @@ -244,6 +247,7 @@
  78007. PACKAGE_NAME = @PACKAGE_NAME@
  78008. PACKAGE_STRING = @PACKAGE_STRING@
  78009. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  78010. +PACKAGE_URL = @PACKAGE_URL@
  78011. PACKAGE_VERSION = @PACKAGE_VERSION@
  78012. PATH_SEPARATOR = @PATH_SEPARATOR@
  78013. POSUB = @POSUB@
  78014. Index: sid/test-suite/Makefile.in
  78015. ===================================================================
  78016. --- sid.orig/test-suite/Makefile.in
  78017. +++ sid/test-suite/Makefile.in
  78018. @@ -37,7 +37,10 @@
  78019. DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  78020. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  78021. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  78022. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  78023. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  78024. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  78025. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  78026. + $(top_srcdir)/configure.in
  78027. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  78028. $(ACLOCAL_M4)
  78029. mkinstalldirs = $(install_sh) -d
  78030. @@ -193,6 +196,7 @@
  78031. PACKAGE_NAME = @PACKAGE_NAME@
  78032. PACKAGE_STRING = @PACKAGE_STRING@
  78033. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  78034. +PACKAGE_URL = @PACKAGE_URL@
  78035. PACKAGE_VERSION = @PACKAGE_VERSION@
  78036. PATH_SEPARATOR = @PATH_SEPARATOR@
  78037. POSUB = @POSUB@
  78038. Index: sid/test-suite/standalone/Makefile.in
  78039. ===================================================================
  78040. --- sid.orig/test-suite/standalone/Makefile.in
  78041. +++ sid/test-suite/standalone/Makefile.in
  78042. @@ -54,7 +54,10 @@
  78043. $(srcdir)/test-fast-slot-ref.in $(srcdir)/test-use-srfi.in
  78044. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  78045. am__aclocal_m4_deps = $(top_srcdir)/m4/autobuild.m4 \
  78046. - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
  78047. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  78048. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  78049. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
  78050. + $(top_srcdir)/configure.in
  78051. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  78052. $(ACLOCAL_M4)
  78053. mkinstalldirs = $(install_sh) -d
  78054. @@ -279,6 +282,7 @@
  78055. PACKAGE_NAME = @PACKAGE_NAME@
  78056. PACKAGE_STRING = @PACKAGE_STRING@
  78057. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  78058. +PACKAGE_URL = @PACKAGE_URL@
  78059. PACKAGE_VERSION = @PACKAGE_VERSION@
  78060. PATH_SEPARATOR = @PATH_SEPARATOR@
  78061. POSUB = @POSUB@
  78062. @@ -392,7 +396,7 @@
  78063. test-use-srfi
  78064. BUILT_SOURCES = test-asmobs-lib.x
  78065. EXTRA_DIST = $(am__append_3) ${check_SCRIPTS}
  78066. -TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
  78067. +TESTS_ENVIRONMENT = builddir="${builddir}" "${top_builddir}/pre-inst-guile-env"
  78068. test_cflags = \
  78069. -I$(top_srcdir)/test-suite/standalone \
  78070. -I$(top_srcdir) -I$(top_builddir) \