2
1

libelf-0.8.10-Elf64-fixups.patch 360 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361
  1. diff -rdup libelf-0.8.10.orig/configure libelf-0.8.10/configure
  2. --- libelf-0.8.10.orig/configure 2007-09-07 14:08:06.000000000 +0200
  3. +++ libelf-0.8.10/configure 2007-09-20 10:32:04.000000000 +0200
  4. @@ -1,47 +1,728 @@
  5. #! /bin/sh
  6. -
  7. # Guess values for system-dependent variables and create Makefiles.
  8. -# Generated automatically using autoconf version 2.13
  9. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  10. +# Generated by GNU Autoconf 2.61.
  11. #
  12. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13. +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. +## --------------------- ##
  17. +## M4sh Initialization. ##
  18. +## --------------------- ##
  19. -# Defaults:
  20. -ac_help=
  21. +# Be more Bourne compatible
  22. +DUALCASE=1; export DUALCASE # for MKS sh
  23. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24. + emulate sh
  25. + NULLCMD=:
  26. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  27. + # is contrary to our usage. Disable this feature.
  28. + alias -g '${1+"$@"}'='"$@"'
  29. + setopt NO_GLOB_SUBST
  30. +else
  31. + case `(set -o) 2>/dev/null` in
  32. + *posix*) set -o posix ;;
  33. +esac
  34. +
  35. +fi
  36. +
  37. +
  38. +
  39. +
  40. +# PATH needs CR
  41. +# Avoid depending upon Character Ranges.
  42. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  44. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  45. +as_cr_digits='0123456789'
  46. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  47. +
  48. +# The user is always right.
  49. +if test "${PATH_SEPARATOR+set}" != set; then
  50. + echo "#! /bin/sh" >conf$$.sh
  51. + echo "exit 0" >>conf$$.sh
  52. + chmod +x conf$$.sh
  53. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  54. + PATH_SEPARATOR=';'
  55. + else
  56. + PATH_SEPARATOR=:
  57. + fi
  58. + rm -f conf$$.sh
  59. +fi
  60. +
  61. +# Support unset when possible.
  62. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  63. + as_unset=unset
  64. +else
  65. + as_unset=false
  66. +fi
  67. +
  68. +
  69. +# IFS
  70. +# We need space, tab and new line, in precisely that order. Quoting is
  71. +# there to prevent editors from complaining about space-tab.
  72. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  73. +# splitting by setting IFS to empty value.)
  74. +as_nl='
  75. +'
  76. +IFS=" "" $as_nl"
  77. +
  78. +# Find who we are. Look in the path if we contain no directory separator.
  79. +case $0 in
  80. + *[\\/]* ) as_myself=$0 ;;
  81. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  82. +for as_dir in $PATH
  83. +do
  84. + IFS=$as_save_IFS
  85. + test -z "$as_dir" && as_dir=.
  86. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  87. +done
  88. +IFS=$as_save_IFS
  89. +
  90. + ;;
  91. +esac
  92. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  93. +# in which case we are not to be found in the path.
  94. +if test "x$as_myself" = x; then
  95. + as_myself=$0
  96. +fi
  97. +if test ! -f "$as_myself"; then
  98. + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  99. + { (exit 1); exit 1; }
  100. +fi
  101. +
  102. +# Work around bugs in pre-3.0 UWIN ksh.
  103. +for as_var in ENV MAIL MAILPATH
  104. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  105. +done
  106. +PS1='$ '
  107. +PS2='> '
  108. +PS4='+ '
  109. +
  110. +# NLS nuisances.
  111. +for as_var in \
  112. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  113. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  114. + LC_TELEPHONE LC_TIME
  115. +do
  116. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  117. + eval $as_var=C; export $as_var
  118. + else
  119. + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  120. + fi
  121. +done
  122. +
  123. +# Required to use basename.
  124. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  125. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  126. + as_expr=expr
  127. +else
  128. + as_expr=false
  129. +fi
  130. +
  131. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  132. + as_basename=basename
  133. +else
  134. + as_basename=false
  135. +fi
  136. +
  137. +
  138. +# Name of the executable.
  139. +as_me=`$as_basename -- "$0" ||
  140. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  141. + X"$0" : 'X\(//\)$' \| \
  142. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  143. +echo X/"$0" |
  144. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  145. + s//\1/
  146. + q
  147. + }
  148. + /^X\/\(\/\/\)$/{
  149. + s//\1/
  150. + q
  151. + }
  152. + /^X\/\(\/\).*/{
  153. + s//\1/
  154. + q
  155. + }
  156. + s/.*/./; q'`
  157. +
  158. +# CDPATH.
  159. +$as_unset CDPATH
  160. +
  161. +
  162. +if test "x$CONFIG_SHELL" = x; then
  163. + if (eval ":") 2>/dev/null; then
  164. + as_have_required=yes
  165. +else
  166. + as_have_required=no
  167. +fi
  168. +
  169. + if test $as_have_required = yes && (eval ":
  170. +(as_func_return () {
  171. + (exit \$1)
  172. +}
  173. +as_func_success () {
  174. + as_func_return 0
  175. +}
  176. +as_func_failure () {
  177. + as_func_return 1
  178. +}
  179. +as_func_ret_success () {
  180. + return 0
  181. +}
  182. +as_func_ret_failure () {
  183. + return 1
  184. +}
  185. +
  186. +exitcode=0
  187. +if as_func_success; then
  188. + :
  189. +else
  190. + exitcode=1
  191. + echo as_func_success failed.
  192. +fi
  193. +
  194. +if as_func_failure; then
  195. + exitcode=1
  196. + echo as_func_failure succeeded.
  197. +fi
  198. +
  199. +if as_func_ret_success; then
  200. + :
  201. +else
  202. + exitcode=1
  203. + echo as_func_ret_success failed.
  204. +fi
  205. +
  206. +if as_func_ret_failure; then
  207. + exitcode=1
  208. + echo as_func_ret_failure succeeded.
  209. +fi
  210. +
  211. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  212. + :
  213. +else
  214. + exitcode=1
  215. + echo positional parameters were not saved.
  216. +fi
  217. +
  218. +test \$exitcode = 0) || { (exit 1); exit 1; }
  219. +
  220. +(
  221. + as_lineno_1=\$LINENO
  222. + as_lineno_2=\$LINENO
  223. + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  224. + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  225. +") 2> /dev/null; then
  226. + :
  227. +else
  228. + as_candidate_shells=
  229. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  230. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  231. +do
  232. + IFS=$as_save_IFS
  233. + test -z "$as_dir" && as_dir=.
  234. + case $as_dir in
  235. + /*)
  236. + for as_base in sh bash ksh sh5; do
  237. + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  238. + done;;
  239. + esac
  240. +done
  241. +IFS=$as_save_IFS
  242. +
  243. +
  244. + for as_shell in $as_candidate_shells $SHELL; do
  245. + # Try only shells that exist, to save several forks.
  246. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  247. + { ("$as_shell") 2> /dev/null <<\_ASEOF
  248. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. + emulate sh
  250. + NULLCMD=:
  251. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  252. + # is contrary to our usage. Disable this feature.
  253. + alias -g '${1+"$@"}'='"$@"'
  254. + setopt NO_GLOB_SUBST
  255. +else
  256. + case `(set -o) 2>/dev/null` in
  257. + *posix*) set -o posix ;;
  258. +esac
  259. +
  260. +fi
  261. +
  262. +
  263. +:
  264. +_ASEOF
  265. +}; then
  266. + CONFIG_SHELL=$as_shell
  267. + as_have_required=yes
  268. + if { "$as_shell" 2> /dev/null <<\_ASEOF
  269. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  270. + emulate sh
  271. + NULLCMD=:
  272. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  273. + # is contrary to our usage. Disable this feature.
  274. + alias -g '${1+"$@"}'='"$@"'
  275. + setopt NO_GLOB_SUBST
  276. +else
  277. + case `(set -o) 2>/dev/null` in
  278. + *posix*) set -o posix ;;
  279. +esac
  280. +
  281. +fi
  282. +
  283. +
  284. +:
  285. +(as_func_return () {
  286. + (exit $1)
  287. +}
  288. +as_func_success () {
  289. + as_func_return 0
  290. +}
  291. +as_func_failure () {
  292. + as_func_return 1
  293. +}
  294. +as_func_ret_success () {
  295. + return 0
  296. +}
  297. +as_func_ret_failure () {
  298. + return 1
  299. +}
  300. +
  301. +exitcode=0
  302. +if as_func_success; then
  303. + :
  304. +else
  305. + exitcode=1
  306. + echo as_func_success failed.
  307. +fi
  308. +
  309. +if as_func_failure; then
  310. + exitcode=1
  311. + echo as_func_failure succeeded.
  312. +fi
  313. +
  314. +if as_func_ret_success; then
  315. + :
  316. +else
  317. + exitcode=1
  318. + echo as_func_ret_success failed.
  319. +fi
  320. +
  321. +if as_func_ret_failure; then
  322. + exitcode=1
  323. + echo as_func_ret_failure succeeded.
  324. +fi
  325. +
  326. +if ( set x; as_func_ret_success y && test x = "$1" ); then
  327. + :
  328. +else
  329. + exitcode=1
  330. + echo positional parameters were not saved.
  331. +fi
  332. +
  333. +test $exitcode = 0) || { (exit 1); exit 1; }
  334. +
  335. +(
  336. + as_lineno_1=$LINENO
  337. + as_lineno_2=$LINENO
  338. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  339. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  340. +
  341. +_ASEOF
  342. +}; then
  343. + break
  344. +fi
  345. +
  346. +fi
  347. +
  348. + done
  349. +
  350. + if test "x$CONFIG_SHELL" != x; then
  351. + for as_var in BASH_ENV ENV
  352. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  353. + done
  354. + export CONFIG_SHELL
  355. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  356. +fi
  357. +
  358. +
  359. + if test $as_have_required = no; then
  360. + echo This script requires a shell more modern than all the
  361. + echo shells that I found on your system. Please install a
  362. + echo modern shell, or manually run the script under such a
  363. + echo shell if you do have one.
  364. + { (exit 1); exit 1; }
  365. +fi
  366. +
  367. +
  368. +fi
  369. +
  370. +fi
  371. +
  372. +
  373. +
  374. +(eval "as_func_return () {
  375. + (exit \$1)
  376. +}
  377. +as_func_success () {
  378. + as_func_return 0
  379. +}
  380. +as_func_failure () {
  381. + as_func_return 1
  382. +}
  383. +as_func_ret_success () {
  384. + return 0
  385. +}
  386. +as_func_ret_failure () {
  387. + return 1
  388. +}
  389. +
  390. +exitcode=0
  391. +if as_func_success; then
  392. + :
  393. +else
  394. + exitcode=1
  395. + echo as_func_success failed.
  396. +fi
  397. +
  398. +if as_func_failure; then
  399. + exitcode=1
  400. + echo as_func_failure succeeded.
  401. +fi
  402. +
  403. +if as_func_ret_success; then
  404. + :
  405. +else
  406. + exitcode=1
  407. + echo as_func_ret_success failed.
  408. +fi
  409. +
  410. +if as_func_ret_failure; then
  411. + exitcode=1
  412. + echo as_func_ret_failure succeeded.
  413. +fi
  414. +
  415. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  416. + :
  417. +else
  418. + exitcode=1
  419. + echo positional parameters were not saved.
  420. +fi
  421. +
  422. +test \$exitcode = 0") || {
  423. + echo No shell found that supports shell functions.
  424. + echo Please tell autoconf@gnu.org about your system,
  425. + echo including any error possibly output before this
  426. + echo message
  427. +}
  428. +
  429. +
  430. +
  431. + as_lineno_1=$LINENO
  432. + as_lineno_2=$LINENO
  433. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  434. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  435. +
  436. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  437. + # uniformly replaced by the line number. The first 'sed' inserts a
  438. + # line-number line after each line using $LINENO; the second 'sed'
  439. + # does the real work. The second script uses 'N' to pair each
  440. + # line-number line with the line containing $LINENO, and appends
  441. + # trailing '-' during substitution so that $LINENO is not a special
  442. + # case at line end.
  443. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  444. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  445. + # E. McMahon (1931-1989) for sed's syntax. :-)
  446. + sed -n '
  447. + p
  448. + /[$]LINENO/=
  449. + ' <$as_myself |
  450. + sed '
  451. + s/[$]LINENO.*/&-/
  452. + t lineno
  453. + b
  454. + :lineno
  455. + N
  456. + :loop
  457. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  458. + t loop
  459. + s/-\n.*//
  460. + ' >$as_me.lineno &&
  461. + chmod +x "$as_me.lineno" ||
  462. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  463. + { (exit 1); exit 1; }; }
  464. +
  465. + # Don't try to exec as it changes $[0], causing all sort of problems
  466. + # (the dirname of $[0] is not the place where we might find the
  467. + # original and so on. Autoconf is especially sensitive to this).
  468. + . "./$as_me.lineno"
  469. + # Exit status is that of the last command.
  470. + exit
  471. +}
  472. +
  473. +
  474. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  475. + as_dirname=dirname
  476. +else
  477. + as_dirname=false
  478. +fi
  479. +
  480. +ECHO_C= ECHO_N= ECHO_T=
  481. +case `echo -n x` in
  482. +-n*)
  483. + case `echo 'x\c'` in
  484. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  485. + *) ECHO_C='\c';;
  486. + esac;;
  487. +*)
  488. + ECHO_N='-n';;
  489. +esac
  490. +
  491. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  492. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  493. + as_expr=expr
  494. +else
  495. + as_expr=false
  496. +fi
  497. +
  498. +rm -f conf$$ conf$$.exe conf$$.file
  499. +if test -d conf$$.dir; then
  500. + rm -f conf$$.dir/conf$$.file
  501. +else
  502. + rm -f conf$$.dir
  503. + mkdir conf$$.dir
  504. +fi
  505. +echo >conf$$.file
  506. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  507. + as_ln_s='ln -s'
  508. + # ... but there are two gotchas:
  509. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  510. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  511. + # In both cases, we have to default to `cp -p'.
  512. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  513. + as_ln_s='cp -p'
  514. +elif ln conf$$.file conf$$ 2>/dev/null; then
  515. + as_ln_s=ln
  516. +else
  517. + as_ln_s='cp -p'
  518. +fi
  519. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  520. +rmdir conf$$.dir 2>/dev/null
  521. +
  522. +if mkdir -p . 2>/dev/null; then
  523. + as_mkdir_p=:
  524. +else
  525. + test -d ./-p && rmdir ./-p
  526. + as_mkdir_p=false
  527. +fi
  528. +
  529. +if test -x / >/dev/null 2>&1; then
  530. + as_test_x='test -x'
  531. +else
  532. + if ls -dL / >/dev/null 2>&1; then
  533. + as_ls_L_option=L
  534. + else
  535. + as_ls_L_option=
  536. + fi
  537. + as_test_x='
  538. + eval sh -c '\''
  539. + if test -d "$1"; then
  540. + test -d "$1/.";
  541. + else
  542. + case $1 in
  543. + -*)set "./$1";;
  544. + esac;
  545. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  546. + ???[sx]*):;;*)false;;esac;fi
  547. + '\'' sh
  548. + '
  549. +fi
  550. +as_executable_p=$as_test_x
  551. +
  552. +# Sed expression to map a string onto a valid CPP name.
  553. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  554. +
  555. +# Sed expression to map a string onto a valid variable name.
  556. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  557. +
  558. +
  559. +
  560. +exec 7<&0 </dev/null 6>&1
  561. +
  562. +# Name of the host.
  563. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  564. +# so uname gets run too.
  565. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  566. +
  567. +#
  568. +# Initializations.
  569. +#
  570. ac_default_prefix=/usr/local
  571. -# Any additions from configure.in:
  572. -ac_help="$ac_help
  573. - --enable-maintainer-mode
  574. - enable maintainer-specific make rules (default: auto)"
  575. -ac_help="$ac_help
  576. - --enable-compat install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)"
  577. -ac_help="$ac_help
  578. - --enable-elf64 compile in 64-bit support (default: auto)"
  579. -ac_help="$ac_help
  580. - --enable-versioning compile in versioning support (default: auto)"
  581. -ac_help="$ac_help
  582. - --enable-nls use Native Language Support (default: yes)"
  583. -ac_help="$ac_help
  584. - --enable-shared build shared library (default: yes)"
  585. -ac_help="$ac_help
  586. - --enable-gnu-names use GNU library naming conventions (default: no)"
  587. -ac_help="$ac_help
  588. - --enable-extended-format support extended file formats (default: no)"
  589. -ac_help="$ac_help
  590. - --enable-sanity-checks enable sanity checks by default (default: yes)"
  591. -ac_help="$ac_help
  592. - --enable-debug include extra debugging code (default: no)"
  593. +ac_clean_files=
  594. +ac_config_libobj_dir=.
  595. +LIBOBJS=
  596. +cross_compiling=no
  597. +subdirs=
  598. +MFLAGS=
  599. +MAKEFLAGS=
  600. +SHELL=${CONFIG_SHELL-/bin/sh}
  601. +
  602. +# Identity of this package.
  603. +PACKAGE_NAME=
  604. +PACKAGE_TARNAME=
  605. +PACKAGE_VERSION=
  606. +PACKAGE_STRING=
  607. +PACKAGE_BUGREPORT=
  608. +
  609. +ac_unique_file="VERSION"
  610. +# Factoring default headers for most tests.
  611. +ac_includes_default="\
  612. +#include <stdio.h>
  613. +#ifdef HAVE_SYS_TYPES_H
  614. +# include <sys/types.h>
  615. +#endif
  616. +#ifdef HAVE_SYS_STAT_H
  617. +# include <sys/stat.h>
  618. +#endif
  619. +#ifdef STDC_HEADERS
  620. +# include <stdlib.h>
  621. +# include <stddef.h>
  622. +#else
  623. +# ifdef HAVE_STDLIB_H
  624. +# include <stdlib.h>
  625. +# endif
  626. +#endif
  627. +#ifdef HAVE_STRING_H
  628. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  629. +# include <memory.h>
  630. +# endif
  631. +# include <string.h>
  632. +#endif
  633. +#ifdef HAVE_STRINGS_H
  634. +# include <strings.h>
  635. +#endif
  636. +#ifdef HAVE_INTTYPES_H
  637. +# include <inttypes.h>
  638. +#endif
  639. +#ifdef HAVE_STDINT_H
  640. +# include <stdint.h>
  641. +#endif
  642. +#ifdef HAVE_UNISTD_H
  643. +# include <unistd.h>
  644. +#endif"
  645. +
  646. +ac_subst_vars='SHELL
  647. +PATH_SEPARATOR
  648. +PACKAGE_NAME
  649. +PACKAGE_TARNAME
  650. +PACKAGE_VERSION
  651. +PACKAGE_STRING
  652. +PACKAGE_BUGREPORT
  653. +exec_prefix
  654. +prefix
  655. +program_transform_name
  656. +bindir
  657. +sbindir
  658. +libexecdir
  659. +datarootdir
  660. +datadir
  661. +sysconfdir
  662. +sharedstatedir
  663. +localstatedir
  664. +includedir
  665. +oldincludedir
  666. +docdir
  667. +infodir
  668. +htmldir
  669. +dvidir
  670. +pdfdir
  671. +psdir
  672. +libdir
  673. +localedir
  674. +mandir
  675. +DEFS
  676. +ECHO_C
  677. +ECHO_N
  678. +ECHO_T
  679. +LIBS
  680. +build_alias
  681. +host_alias
  682. +target_alias
  683. +PACKAGE
  684. +VERSION
  685. +MAINT
  686. +MAJOR
  687. +SET_MAKE
  688. +CC
  689. +CFLAGS
  690. +LDFLAGS
  691. +CPPFLAGS
  692. +ac_ct_CC
  693. +EXEEXT
  694. +OBJEXT
  695. +CPP
  696. +INSTALL_PROGRAM
  697. +INSTALL_SCRIPT
  698. +INSTALL_DATA
  699. +RANLIB
  700. +LN_S
  701. +GREP
  702. +EGREP
  703. +DO_COMPAT
  704. +LIBOBJS
  705. +GMOFILES
  706. +MSGFILES
  707. +POFILES
  708. +MSGFMT
  709. +GMSGFMT
  710. +XGETTEXT
  711. +MSGMERGE
  712. +GENCAT
  713. +CATOBJEXT
  714. +INSTOBJEXT
  715. +CATALOGS
  716. +POSUB
  717. +LIBINTL
  718. +build
  719. +build_cpu
  720. +build_vendor
  721. +build_os
  722. +host
  723. +host_cpu
  724. +host_vendor
  725. +host_os
  726. +LD
  727. +PICFLAGS
  728. +SHLIB_SFX
  729. +SHLINK_SFX
  730. +SONAME_SFX
  731. +LINK_SHLIB
  732. +INSTALL_SHLIB
  733. +DEPSHLIBS
  734. +DO_SHLIB
  735. +LTLIBOBJS'
  736. +ac_subst_files=''
  737. + ac_precious_vars='build_alias
  738. +host_alias
  739. +target_alias
  740. +CC
  741. +CFLAGS
  742. +LDFLAGS
  743. +LIBS
  744. +CPPFLAGS
  745. +CPP'
  746. +
  747. # Initialize some variables set by options.
  748. +ac_init_help=
  749. +ac_init_version=false
  750. # The variables have the same names as the options, with
  751. # dashes changed to underlines.
  752. -build=NONE
  753. -cache_file=./config.cache
  754. +cache_file=/dev/null
  755. exec_prefix=NONE
  756. -host=NONE
  757. no_create=
  758. -nonopt=NONE
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. @@ -50,94 +731,117 @@ program_transform_name=s,x,x,
  763. silent=
  764. site=
  765. srcdir=
  766. -target=NONE
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. +
  771. +# Installation directory options.
  772. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  773. +# and all the variables that are supposed to be based on exec_prefix
  774. +# by default will actually change.
  775. +# Use braces instead of parens because sh, perl, etc. also accept them.
  776. +# (The list follows the same order as the GNU Coding Standards.)
  777. bindir='${exec_prefix}/bin'
  778. sbindir='${exec_prefix}/sbin'
  779. libexecdir='${exec_prefix}/libexec'
  780. -datadir='${prefix}/share'
  781. +datarootdir='${prefix}/share'
  782. +datadir='${datarootdir}'
  783. sysconfdir='${prefix}/etc'
  784. sharedstatedir='${prefix}/com'
  785. localstatedir='${prefix}/var'
  786. -libdir='${exec_prefix}/lib'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. -infodir='${prefix}/info'
  790. -mandir='${prefix}/man'
  791. -
  792. -# Initialize some other variables.
  793. -subdirs=
  794. -MFLAGS= MAKEFLAGS=
  795. -SHELL=${CONFIG_SHELL-/bin/sh}
  796. -# Maximum number of lines to put in a shell here document.
  797. -ac_max_here_lines=12
  798. +docdir='${datarootdir}/doc/${PACKAGE}'
  799. +infodir='${datarootdir}/info'
  800. +htmldir='${docdir}'
  801. +dvidir='${docdir}'
  802. +pdfdir='${docdir}'
  803. +psdir='${docdir}'
  804. +libdir='${exec_prefix}/lib'
  805. +localedir='${datarootdir}/locale'
  806. +mandir='${datarootdir}/man'
  807. ac_prev=
  808. +ac_dashdash=
  809. for ac_option
  810. do
  811. -
  812. # If the previous option needs an argument, assign it.
  813. if test -n "$ac_prev"; then
  814. - eval "$ac_prev=\$ac_option"
  815. + eval $ac_prev=\$ac_option
  816. ac_prev=
  817. continue
  818. fi
  819. - case "$ac_option" in
  820. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  821. - *) ac_optarg= ;;
  822. + case $ac_option in
  823. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  824. + *) ac_optarg=yes ;;
  825. esac
  826. # Accept the important Cygnus configure options, so we can diagnose typos.
  827. - case "$ac_option" in
  828. + case $ac_dashdash$ac_option in
  829. + --)
  830. + ac_dashdash=yes ;;
  831. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  832. ac_prev=bindir ;;
  833. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  834. - bindir="$ac_optarg" ;;
  835. + bindir=$ac_optarg ;;
  836. -build | --build | --buil | --bui | --bu)
  837. - ac_prev=build ;;
  838. + ac_prev=build_alias ;;
  839. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  840. - build="$ac_optarg" ;;
  841. + build_alias=$ac_optarg ;;
  842. -cache-file | --cache-file | --cache-fil | --cache-fi \
  843. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  844. ac_prev=cache_file ;;
  845. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  846. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  847. - cache_file="$ac_optarg" ;;
  848. + cache_file=$ac_optarg ;;
  849. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  850. + --config-cache | -C)
  851. + cache_file=config.cache ;;
  852. +
  853. + -datadir | --datadir | --datadi | --datad)
  854. ac_prev=datadir ;;
  855. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  856. - | --da=*)
  857. - datadir="$ac_optarg" ;;
  858. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  859. + datadir=$ac_optarg ;;
  860. +
  861. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  862. + | --dataroo | --dataro | --datar)
  863. + ac_prev=datarootdir ;;
  864. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  865. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  866. + datarootdir=$ac_optarg ;;
  867. -disable-* | --disable-*)
  868. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  869. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  870. # Reject names that are not valid shell variable names.
  871. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  872. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  873. - fi
  874. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  875. - eval "enable_${ac_feature}=no" ;;
  876. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  877. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  878. + { (exit 1); exit 1; }; }
  879. + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  880. + eval enable_$ac_feature=no ;;
  881. +
  882. + -docdir | --docdir | --docdi | --doc | --do)
  883. + ac_prev=docdir ;;
  884. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  885. + docdir=$ac_optarg ;;
  886. +
  887. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  888. + ac_prev=dvidir ;;
  889. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  890. + dvidir=$ac_optarg ;;
  891. -enable-* | --enable-*)
  892. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  893. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  894. # Reject names that are not valid shell variable names.
  895. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  896. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  897. - fi
  898. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  899. - case "$ac_option" in
  900. - *=*) ;;
  901. - *) ac_optarg=yes ;;
  902. - esac
  903. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  904. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  905. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  906. + { (exit 1); exit 1; }; }
  907. + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  908. + eval enable_$ac_feature=\$ac_optarg ;;
  909. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  910. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  911. @@ -146,116 +850,77 @@ do
  912. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  913. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  914. | --exec=* | --exe=* | --ex=*)
  915. - exec_prefix="$ac_optarg" ;;
  916. + exec_prefix=$ac_optarg ;;
  917. -gas | --gas | --ga | --g)
  918. # Obsolete; use --with-gas.
  919. with_gas=yes ;;
  920. - -help | --help | --hel | --he)
  921. - # Omit some internal or obsolete options to make the list less imposing.
  922. - # This message is too long to be a string in the A/UX 3.1 sh.
  923. - cat << EOF
  924. -Usage: configure [options] [host]
  925. -Options: [defaults in brackets after descriptions]
  926. -Configuration:
  927. - --cache-file=FILE cache test results in FILE
  928. - --help print this message
  929. - --no-create do not create output files
  930. - --quiet, --silent do not print \`checking...' messages
  931. - --version print the version of autoconf that created configure
  932. -Directory and file names:
  933. - --prefix=PREFIX install architecture-independent files in PREFIX
  934. - [$ac_default_prefix]
  935. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  936. - [same as prefix]
  937. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  938. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  939. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  940. - --datadir=DIR read-only architecture-independent data in DIR
  941. - [PREFIX/share]
  942. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  943. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  944. - [PREFIX/com]
  945. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  946. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  947. - --includedir=DIR C header files in DIR [PREFIX/include]
  948. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  949. - --infodir=DIR info documentation in DIR [PREFIX/info]
  950. - --mandir=DIR man documentation in DIR [PREFIX/man]
  951. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  952. - --program-prefix=PREFIX prepend PREFIX to installed program names
  953. - --program-suffix=SUFFIX append SUFFIX to installed program names
  954. - --program-transform-name=PROGRAM
  955. - run sed PROGRAM on installed program names
  956. -EOF
  957. - cat << EOF
  958. -Host type:
  959. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  960. - --host=HOST configure for HOST [guessed]
  961. - --target=TARGET configure for TARGET [TARGET=HOST]
  962. -Features and packages:
  963. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  964. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  965. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  966. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  967. - --x-includes=DIR X include files are in DIR
  968. - --x-libraries=DIR X library files are in DIR
  969. -EOF
  970. - if test -n "$ac_help"; then
  971. - echo "--enable and --with options recognized:$ac_help"
  972. - fi
  973. - exit 0 ;;
  974. + -help | --help | --hel | --he | -h)
  975. + ac_init_help=long ;;
  976. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  977. + ac_init_help=recursive ;;
  978. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  979. + ac_init_help=short ;;
  980. -host | --host | --hos | --ho)
  981. - ac_prev=host ;;
  982. + ac_prev=host_alias ;;
  983. -host=* | --host=* | --hos=* | --ho=*)
  984. - host="$ac_optarg" ;;
  985. + host_alias=$ac_optarg ;;
  986. +
  987. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. + ac_prev=htmldir ;;
  989. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. + | --ht=*)
  991. + htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. - includedir="$ac_optarg" ;;
  998. + includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. - infodir="$ac_optarg" ;;
  1003. + infodir=$ac_optarg ;;
  1004. -libdir | --libdir | --libdi | --libd)
  1005. ac_prev=libdir ;;
  1006. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1007. - libdir="$ac_optarg" ;;
  1008. + libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. - libexecdir="$ac_optarg" ;;
  1015. + libexecdir=$ac_optarg ;;
  1016. +
  1017. + -localedir | --localedir | --localedi | --localed | --locale)
  1018. + ac_prev=localedir ;;
  1019. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. + localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. - | --localstate | --localstat | --localsta | --localst \
  1023. - | --locals | --local | --loca | --loc | --lo)
  1024. + | --localstate | --localstat | --localsta | --localst | --locals)
  1025. ac_prev=localstatedir ;;
  1026. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1027. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1028. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1029. - localstatedir="$ac_optarg" ;;
  1030. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. + localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. - mandir="$ac_optarg" ;;
  1036. + mandir=$ac_optarg ;;
  1037. -nfp | --nfp | --nf)
  1038. # Obsolete; use --without-fp.
  1039. with_fp=no ;;
  1040. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1041. - | --no-cr | --no-c)
  1042. + | --no-cr | --no-c | -n)
  1043. no_create=yes ;;
  1044. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1045. @@ -269,26 +934,26 @@ EOF
  1046. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1047. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1048. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1049. - oldincludedir="$ac_optarg" ;;
  1050. + oldincludedir=$ac_optarg ;;
  1051. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1052. ac_prev=prefix ;;
  1053. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1054. - prefix="$ac_optarg" ;;
  1055. + prefix=$ac_optarg ;;
  1056. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1057. | --program-pre | --program-pr | --program-p)
  1058. ac_prev=program_prefix ;;
  1059. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1060. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1061. - program_prefix="$ac_optarg" ;;
  1062. + program_prefix=$ac_optarg ;;
  1063. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1064. | --program-suf | --program-su | --program-s)
  1065. ac_prev=program_suffix ;;
  1066. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1067. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1068. - program_suffix="$ac_optarg" ;;
  1069. + program_suffix=$ac_optarg ;;
  1070. -program-transform-name | --program-transform-name \
  1071. | --program-transform-nam | --program-transform-na \
  1072. @@ -305,7 +970,17 @@ EOF
  1073. | --program-transfo=* | --program-transf=* \
  1074. | --program-trans=* | --program-tran=* \
  1075. | --progr-tra=* | --program-tr=* | --program-t=*)
  1076. - program_transform_name="$ac_optarg" ;;
  1077. + program_transform_name=$ac_optarg ;;
  1078. +
  1079. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1080. + ac_prev=pdfdir ;;
  1081. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1082. + pdfdir=$ac_optarg ;;
  1083. +
  1084. + -psdir | --psdir | --psdi | --psd | --ps)
  1085. + ac_prev=psdir ;;
  1086. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. + psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. @@ -315,7 +990,7 @@ EOF
  1091. ac_prev=sbindir ;;
  1092. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1093. | --sbi=* | --sb=*)
  1094. - sbindir="$ac_optarg" ;;
  1095. + sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. @@ -326,58 +1001,53 @@ EOF
  1099. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1100. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1101. | --sha=* | --sh=*)
  1102. - sharedstatedir="$ac_optarg" ;;
  1103. + sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. - site="$ac_optarg" ;;
  1108. + site=$ac_optarg ;;
  1109. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1110. ac_prev=srcdir ;;
  1111. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1112. - srcdir="$ac_optarg" ;;
  1113. + srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. - sysconfdir="$ac_optarg" ;;
  1120. + sysconfdir=$ac_optarg ;;
  1121. -target | --target | --targe | --targ | --tar | --ta | --t)
  1122. - ac_prev=target ;;
  1123. + ac_prev=target_alias ;;
  1124. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1125. - target="$ac_optarg" ;;
  1126. + target_alias=$ac_optarg ;;
  1127. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1128. verbose=yes ;;
  1129. - -version | --version | --versio | --versi | --vers)
  1130. - echo "configure generated by autoconf version 2.13"
  1131. - exit 0 ;;
  1132. + -version | --version | --versio | --versi | --vers | -V)
  1133. + ac_init_version=: ;;
  1134. -with-* | --with-*)
  1135. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  1136. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1139. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1140. - fi
  1141. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1142. - case "$ac_option" in
  1143. - *=*) ;;
  1144. - *) ac_optarg=yes ;;
  1145. - esac
  1146. - eval "with_${ac_package}='$ac_optarg'" ;;
  1147. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1148. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  1149. + { (exit 1); exit 1; }; }
  1150. + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1151. + eval with_$ac_package=\$ac_optarg ;;
  1152. -without-* | --without-*)
  1153. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  1154. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1155. # Reject names that are not valid shell variable names.
  1156. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1157. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1158. - fi
  1159. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1160. - eval "with_${ac_package}=no" ;;
  1161. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1162. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  1163. + { (exit 1); exit 1; }; }
  1164. + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1165. + eval with_$ac_package=no ;;
  1166. --x)
  1167. # Obsolete; use --with-x.
  1168. @@ -388,157 +1058,652 @@ EOF
  1169. ac_prev=x_includes ;;
  1170. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1171. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1172. - x_includes="$ac_optarg" ;;
  1173. + x_includes=$ac_optarg ;;
  1174. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1175. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1176. ac_prev=x_libraries ;;
  1177. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1178. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1179. - x_libraries="$ac_optarg" ;;
  1180. + x_libraries=$ac_optarg ;;
  1181. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  1182. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  1183. +Try \`$0 --help' for more information." >&2
  1184. + { (exit 1); exit 1; }; }
  1185. ;;
  1186. + *=*)
  1187. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1188. + # Reject names that are not valid shell variable names.
  1189. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1190. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1191. + { (exit 1); exit 1; }; }
  1192. + eval $ac_envvar=\$ac_optarg
  1193. + export $ac_envvar ;;
  1194. +
  1195. *)
  1196. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  1197. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  1198. - fi
  1199. - if test "x$nonopt" != xNONE; then
  1200. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  1201. - fi
  1202. - nonopt="$ac_option"
  1203. + # FIXME: should be removed in autoconf 3.0.
  1204. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1205. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1206. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1207. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1208. ;;
  1209. esac
  1210. done
  1211. if test -n "$ac_prev"; then
  1212. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  1213. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1214. + { echo "$as_me: error: missing argument to $ac_option" >&2
  1215. + { (exit 1); exit 1; }; }
  1216. fi
  1217. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1218. +# Be sure to have absolute directory names.
  1219. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. + datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. + libdir localedir mandir
  1223. +do
  1224. + eval ac_val=\$$ac_var
  1225. + case $ac_val in
  1226. + [\\/$]* | ?:[\\/]* ) continue;;
  1227. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1228. + esac
  1229. + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1230. + { (exit 1); exit 1; }; }
  1231. +done
  1232. -# File descriptor usage:
  1233. -# 0 standard input
  1234. -# 1 file creation
  1235. -# 2 errors and warnings
  1236. -# 3 some systems may open it to /dev/tty
  1237. -# 4 used on the Kubota Titan
  1238. -# 6 checking for... messages and results
  1239. -# 5 compiler messages saved in config.log
  1240. -if test "$silent" = yes; then
  1241. - exec 6>/dev/null
  1242. -else
  1243. - exec 6>&1
  1244. +# There might be people who depend on the old broken behavior: `$host'
  1245. +# used to hold the argument of --host etc.
  1246. +# FIXME: To remove some day.
  1247. +build=$build_alias
  1248. +host=$host_alias
  1249. +target=$target_alias
  1250. +
  1251. +# FIXME: To remove some day.
  1252. +if test "x$host_alias" != x; then
  1253. + if test "x$build_alias" = x; then
  1254. + cross_compiling=maybe
  1255. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1256. + If a cross compiler is detected then cross compile mode will be used." >&2
  1257. + elif test "x$build_alias" != "x$host_alias"; then
  1258. + cross_compiling=yes
  1259. + fi
  1260. fi
  1261. -exec 5>./config.log
  1262. -echo "\
  1263. -This file contains any messages produced by compilers while
  1264. -running configure, to aid debugging if configure makes a mistake.
  1265. -" 1>&5
  1266. +ac_tool_prefix=
  1267. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1268. -# Strip out --no-create and --no-recursion so they do not pile up.
  1269. -# Also quote any args containing shell metacharacters.
  1270. -ac_configure_args=
  1271. -for ac_arg
  1272. -do
  1273. - case "$ac_arg" in
  1274. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1275. - | --no-cr | --no-c) ;;
  1276. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1277. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  1278. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  1279. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1280. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  1281. - esac
  1282. -done
  1283. +test "$silent" = yes && exec 6>/dev/null
  1284. -# NLS nuisances.
  1285. -# Only set these to C if already set. These must not be set unconditionally
  1286. -# because not all systems understand e.g. LANG=C (notably SCO).
  1287. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  1288. -# Non-C LC_CTYPE values break the ctype check.
  1289. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  1290. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  1291. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  1292. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  1293. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1294. -rm -rf conftest* confdefs.h
  1295. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1296. -echo > confdefs.h
  1297. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1298. +ac_ls_di=`ls -di .` &&
  1299. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1300. + { echo "$as_me: error: Working directory cannot be determined" >&2
  1301. + { (exit 1); exit 1; }; }
  1302. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1303. + { echo "$as_me: error: pwd does not report name of working directory" >&2
  1304. + { (exit 1); exit 1; }; }
  1305. -# A filename unique to this package, relative to the directory that
  1306. -# configure is in, which we can look for to find out if srcdir is correct.
  1307. -ac_unique_file=VERSION
  1308. # Find the source files, if location was not specified.
  1309. if test -z "$srcdir"; then
  1310. ac_srcdir_defaulted=yes
  1311. - # Try the directory containing this script, then its parent.
  1312. - ac_prog=$0
  1313. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  1314. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  1315. + # Try the directory containing this script, then the parent directory.
  1316. + ac_confdir=`$as_dirname -- "$0" ||
  1317. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1318. + X"$0" : 'X\(//\)[^/]' \| \
  1319. + X"$0" : 'X\(//\)$' \| \
  1320. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1321. +echo X"$0" |
  1322. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1323. + s//\1/
  1324. + q
  1325. + }
  1326. + /^X\(\/\/\)[^/].*/{
  1327. + s//\1/
  1328. + q
  1329. + }
  1330. + /^X\(\/\/\)$/{
  1331. + s//\1/
  1332. + q
  1333. + }
  1334. + /^X\(\/\).*/{
  1335. + s//\1/
  1336. + q
  1337. + }
  1338. + s/.*/./; q'`
  1339. srcdir=$ac_confdir
  1340. - if test ! -r $srcdir/$ac_unique_file; then
  1341. + if test ! -r "$srcdir/$ac_unique_file"; then
  1342. srcdir=..
  1343. fi
  1344. else
  1345. ac_srcdir_defaulted=no
  1346. fi
  1347. -if test ! -r $srcdir/$ac_unique_file; then
  1348. - if test "$ac_srcdir_defaulted" = yes; then
  1349. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  1350. - else
  1351. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  1352. - fi
  1353. +if test ! -r "$srcdir/$ac_unique_file"; then
  1354. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1355. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1356. + { (exit 1); exit 1; }; }
  1357. fi
  1358. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  1359. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1360. +ac_abs_confdir=`(
  1361. + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1362. + { (exit 1); exit 1; }; }
  1363. + pwd)`
  1364. +# When building in place, set srcdir=.
  1365. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1366. + srcdir=.
  1367. +fi
  1368. +# Remove unnecessary trailing slashes from srcdir.
  1369. +# Double slashes in file names in object file debugging info
  1370. +# mess up M-x gdb in Emacs.
  1371. +case $srcdir in
  1372. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1373. +esac
  1374. +for ac_var in $ac_precious_vars; do
  1375. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1376. + eval ac_env_${ac_var}_value=\$${ac_var}
  1377. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1378. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1379. +done
  1380. +
  1381. +#
  1382. +# Report the --help message.
  1383. +#
  1384. +if test "$ac_init_help" = "long"; then
  1385. + # Omit some internal or obsolete options to make the list less imposing.
  1386. + # This message is too long to be a string in the A/UX 3.1 sh.
  1387. + cat <<_ACEOF
  1388. +\`configure' configures this package to adapt to many kinds of systems.
  1389. +
  1390. +Usage: $0 [OPTION]... [VAR=VALUE]...
  1391. +
  1392. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1393. +VAR=VALUE. See below for descriptions of some of the useful variables.
  1394. +
  1395. +Defaults for the options are specified in brackets.
  1396. +
  1397. +Configuration:
  1398. + -h, --help display this help and exit
  1399. + --help=short display options specific to this package
  1400. + --help=recursive display the short help of all the included packages
  1401. + -V, --version display version information and exit
  1402. + -q, --quiet, --silent do not print \`checking...' messages
  1403. + --cache-file=FILE cache test results in FILE [disabled]
  1404. + -C, --config-cache alias for \`--cache-file=config.cache'
  1405. + -n, --no-create do not create output files
  1406. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1407. +
  1408. +Installation directories:
  1409. + --prefix=PREFIX install architecture-independent files in PREFIX
  1410. + [$ac_default_prefix]
  1411. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1412. + [PREFIX]
  1413. +
  1414. +By default, \`make install' will install all the files in
  1415. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1416. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1417. +for instance \`--prefix=\$HOME'.
  1418. +
  1419. +For better control, use the options below.
  1420. +
  1421. +Fine tuning of the installation directories:
  1422. + --bindir=DIR user executables [EPREFIX/bin]
  1423. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  1424. + --libexecdir=DIR program executables [EPREFIX/libexec]
  1425. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1426. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1427. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1428. + --libdir=DIR object code libraries [EPREFIX/lib]
  1429. + --includedir=DIR C header files [PREFIX/include]
  1430. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1431. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1432. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1433. + --infodir=DIR info documentation [DATAROOTDIR/info]
  1434. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1435. + --mandir=DIR man documentation [DATAROOTDIR/man]
  1436. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1437. + --htmldir=DIR html documentation [DOCDIR]
  1438. + --dvidir=DIR dvi documentation [DOCDIR]
  1439. + --pdfdir=DIR pdf documentation [DOCDIR]
  1440. + --psdir=DIR ps documentation [DOCDIR]
  1441. +_ACEOF
  1442. +
  1443. + cat <<\_ACEOF
  1444. +
  1445. +System types:
  1446. + --build=BUILD configure for building on BUILD [guessed]
  1447. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1448. +_ACEOF
  1449. +fi
  1450. +
  1451. +if test -n "$ac_init_help"; then
  1452. +
  1453. + cat <<\_ACEOF
  1454. +
  1455. +Optional Features:
  1456. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1457. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1458. + --enable-maintainer-mode
  1459. + enable maintainer-specific make rules (default: auto)
  1460. + --enable-compat install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)
  1461. + --enable-elf64 compile in 64-bit support (default: auto)
  1462. + --enable-versioning compile in versioning support (default: auto)
  1463. + --enable-nls use Native Language Support (default: yes)
  1464. + --enable-shared build shared library (default: yes)
  1465. + --enable-gnu-names use GNU library naming conventions (default: no)
  1466. + --enable-extended-format support extended file formats (default: no)
  1467. + --enable-sanity-checks enable sanity checks by default (default: yes)
  1468. + --enable-debug include extra debugging code (default: no)
  1469. +
  1470. +Some influential environment variables:
  1471. + CC C compiler command
  1472. + CFLAGS C compiler flags
  1473. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1474. + nonstandard directory <lib dir>
  1475. + LIBS libraries to pass to the linker, e.g. -l<library>
  1476. + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1477. + you have headers in a nonstandard directory <include dir>
  1478. + CPP C preprocessor
  1479. +
  1480. +Use these variables to override the choices made by `configure' or to help
  1481. +it to find libraries and programs with nonstandard names/locations.
  1482. +
  1483. +_ACEOF
  1484. +ac_status=$?
  1485. +fi
  1486. +
  1487. +if test "$ac_init_help" = "recursive"; then
  1488. + # If there are subdirs, report their specific --help.
  1489. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1490. + test -d "$ac_dir" || continue
  1491. + ac_builddir=.
  1492. +
  1493. +case "$ac_dir" in
  1494. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1495. +*)
  1496. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1497. + # A ".." for each directory in $ac_dir_suffix.
  1498. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1499. + case $ac_top_builddir_sub in
  1500. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1501. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1502. + esac ;;
  1503. +esac
  1504. +ac_abs_top_builddir=$ac_pwd
  1505. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1506. +# for backward compatibility:
  1507. +ac_top_builddir=$ac_top_build_prefix
  1508. +
  1509. +case $srcdir in
  1510. + .) # We are building in place.
  1511. + ac_srcdir=.
  1512. + ac_top_srcdir=$ac_top_builddir_sub
  1513. + ac_abs_top_srcdir=$ac_pwd ;;
  1514. + [\\/]* | ?:[\\/]* ) # Absolute name.
  1515. + ac_srcdir=$srcdir$ac_dir_suffix;
  1516. + ac_top_srcdir=$srcdir
  1517. + ac_abs_top_srcdir=$srcdir ;;
  1518. + *) # Relative name.
  1519. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1520. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  1521. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1522. +esac
  1523. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1524. +
  1525. + cd "$ac_dir" || { ac_status=$?; continue; }
  1526. + # Check for guested configure.
  1527. + if test -f "$ac_srcdir/configure.gnu"; then
  1528. + echo &&
  1529. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1530. + elif test -f "$ac_srcdir/configure"; then
  1531. + echo &&
  1532. + $SHELL "$ac_srcdir/configure" --help=recursive
  1533. + else
  1534. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1535. + fi || ac_status=$?
  1536. + cd "$ac_pwd" || { ac_status=$?; break; }
  1537. + done
  1538. +fi
  1539. +
  1540. +test -n "$ac_init_help" && exit $ac_status
  1541. +if $ac_init_version; then
  1542. + cat <<\_ACEOF
  1543. +configure
  1544. +generated by GNU Autoconf 2.61
  1545. +
  1546. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1547. +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1548. +This configure script is free software; the Free Software Foundation
  1549. +gives unlimited permission to copy, distribute and modify it.
  1550. +_ACEOF
  1551. + exit
  1552. +fi
  1553. +cat >config.log <<_ACEOF
  1554. +This file contains any messages produced by compilers while
  1555. +running configure, to aid debugging if configure makes a mistake.
  1556. +
  1557. +It was created by $as_me, which was
  1558. +generated by GNU Autoconf 2.61. Invocation command line was
  1559. +
  1560. + $ $0 $@
  1561. +
  1562. +_ACEOF
  1563. +exec 5>>config.log
  1564. +{
  1565. +cat <<_ASUNAME
  1566. +## --------- ##
  1567. +## Platform. ##
  1568. +## --------- ##
  1569. +
  1570. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1571. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1572. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1573. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1574. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1575. +
  1576. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1577. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1578. +
  1579. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1580. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1581. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1582. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1583. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1584. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1585. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1586. +
  1587. +_ASUNAME
  1588. +
  1589. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1590. +for as_dir in $PATH
  1591. +do
  1592. + IFS=$as_save_IFS
  1593. + test -z "$as_dir" && as_dir=.
  1594. + echo "PATH: $as_dir"
  1595. +done
  1596. +IFS=$as_save_IFS
  1597. +
  1598. +} >&5
  1599. +
  1600. +cat >&5 <<_ACEOF
  1601. +
  1602. +
  1603. +## ----------- ##
  1604. +## Core tests. ##
  1605. +## ----------- ##
  1606. +
  1607. +_ACEOF
  1608. +
  1609. +
  1610. +# Keep a trace of the command line.
  1611. +# Strip out --no-create and --no-recursion so they do not pile up.
  1612. +# Strip out --silent because we don't want to record it for future runs.
  1613. +# Also quote any args containing shell meta-characters.
  1614. +# Make two passes to allow for proper duplicate-argument suppression.
  1615. +ac_configure_args=
  1616. +ac_configure_args0=
  1617. +ac_configure_args1=
  1618. +ac_must_keep_next=false
  1619. +for ac_pass in 1 2
  1620. +do
  1621. + for ac_arg
  1622. + do
  1623. + case $ac_arg in
  1624. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1625. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1626. + | -silent | --silent | --silen | --sile | --sil)
  1627. + continue ;;
  1628. + *\'*)
  1629. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1630. + esac
  1631. + case $ac_pass in
  1632. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1633. + 2)
  1634. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1635. + if test $ac_must_keep_next = true; then
  1636. + ac_must_keep_next=false # Got value, back to normal.
  1637. + else
  1638. + case $ac_arg in
  1639. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1640. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1641. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1642. + | -with-* | --with-* | -without-* | --without-* | --x)
  1643. + case "$ac_configure_args0 " in
  1644. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1645. + esac
  1646. + ;;
  1647. + -* ) ac_must_keep_next=true ;;
  1648. + esac
  1649. + fi
  1650. + ac_configure_args="$ac_configure_args '$ac_arg'"
  1651. + ;;
  1652. + esac
  1653. + done
  1654. +done
  1655. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1656. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1657. +
  1658. +# When interrupted or exit'd, cleanup temporary files, and complete
  1659. +# config.log. We remove comments because anyway the quotes in there
  1660. +# would cause problems or look ugly.
  1661. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  1662. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1663. +trap 'exit_status=$?
  1664. + # Save into config.log some information that might help in debugging.
  1665. + {
  1666. + echo
  1667. +
  1668. + cat <<\_ASBOX
  1669. +## ---------------- ##
  1670. +## Cache variables. ##
  1671. +## ---------------- ##
  1672. +_ASBOX
  1673. + echo
  1674. + # The following way of writing the cache mishandles newlines in values,
  1675. +(
  1676. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1677. + eval ac_val=\$$ac_var
  1678. + case $ac_val in #(
  1679. + *${as_nl}*)
  1680. + case $ac_var in #(
  1681. + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1682. +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1683. + esac
  1684. + case $ac_var in #(
  1685. + _ | IFS | as_nl) ;; #(
  1686. + *) $as_unset $ac_var ;;
  1687. + esac ;;
  1688. + esac
  1689. + done
  1690. + (set) 2>&1 |
  1691. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1692. + *${as_nl}ac_space=\ *)
  1693. + sed -n \
  1694. + "s/'\''/'\''\\\\'\'''\''/g;
  1695. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1696. + ;; #(
  1697. + *)
  1698. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1699. + ;;
  1700. + esac |
  1701. + sort
  1702. +)
  1703. + echo
  1704. +
  1705. + cat <<\_ASBOX
  1706. +## ----------------- ##
  1707. +## Output variables. ##
  1708. +## ----------------- ##
  1709. +_ASBOX
  1710. + echo
  1711. + for ac_var in $ac_subst_vars
  1712. + do
  1713. + eval ac_val=\$$ac_var
  1714. + case $ac_val in
  1715. + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1716. + esac
  1717. + echo "$ac_var='\''$ac_val'\''"
  1718. + done | sort
  1719. + echo
  1720. + if test -n "$ac_subst_files"; then
  1721. + cat <<\_ASBOX
  1722. +## ------------------- ##
  1723. +## File substitutions. ##
  1724. +## ------------------- ##
  1725. +_ASBOX
  1726. + echo
  1727. + for ac_var in $ac_subst_files
  1728. + do
  1729. + eval ac_val=\$$ac_var
  1730. + case $ac_val in
  1731. + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1732. + esac
  1733. + echo "$ac_var='\''$ac_val'\''"
  1734. + done | sort
  1735. + echo
  1736. + fi
  1737. +
  1738. + if test -s confdefs.h; then
  1739. + cat <<\_ASBOX
  1740. +## ----------- ##
  1741. +## confdefs.h. ##
  1742. +## ----------- ##
  1743. +_ASBOX
  1744. + echo
  1745. + cat confdefs.h
  1746. + echo
  1747. + fi
  1748. + test "$ac_signal" != 0 &&
  1749. + echo "$as_me: caught signal $ac_signal"
  1750. + echo "$as_me: exit $exit_status"
  1751. + } >&5
  1752. + rm -f core *.core core.conftest.* &&
  1753. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1754. + exit $exit_status
  1755. +' 0
  1756. +for ac_signal in 1 2 13 15; do
  1757. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1758. +done
  1759. +ac_signal=0
  1760. +
  1761. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1762. +rm -f -r conftest* confdefs.h
  1763. +
  1764. +# Predefined preprocessor variables.
  1765. +
  1766. +cat >>confdefs.h <<_ACEOF
  1767. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1768. +_ACEOF
  1769. +
  1770. +
  1771. +cat >>confdefs.h <<_ACEOF
  1772. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1773. +_ACEOF
  1774. +
  1775. +
  1776. +cat >>confdefs.h <<_ACEOF
  1777. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1778. +_ACEOF
  1779. +
  1780. +
  1781. +cat >>confdefs.h <<_ACEOF
  1782. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1783. +_ACEOF
  1784. +
  1785. +
  1786. +cat >>confdefs.h <<_ACEOF
  1787. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1788. +_ACEOF
  1789. +
  1790. +
  1791. +# Let the site file select an alternate cache file if it wants to.
  1792. # Prefer explicitly selected file to automatically selected ones.
  1793. -if test -z "$CONFIG_SITE"; then
  1794. - if test "x$prefix" != xNONE; then
  1795. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1796. - else
  1797. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1798. - fi
  1799. +if test -n "$CONFIG_SITE"; then
  1800. + set x "$CONFIG_SITE"
  1801. +elif test "x$prefix" != xNONE; then
  1802. + set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1803. +else
  1804. + set x "$ac_default_prefix/share/config.site" \
  1805. + "$ac_default_prefix/etc/config.site"
  1806. fi
  1807. -for ac_site_file in $CONFIG_SITE; do
  1808. +shift
  1809. +for ac_site_file
  1810. +do
  1811. if test -r "$ac_site_file"; then
  1812. - echo "loading site script $ac_site_file"
  1813. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1814. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1815. + sed 's/^/| /' "$ac_site_file" >&5
  1816. . "$ac_site_file"
  1817. fi
  1818. done
  1819. if test -r "$cache_file"; then
  1820. - echo "loading cache $cache_file"
  1821. - . $cache_file
  1822. + # Some versions of bash will fail to source /dev/null (special
  1823. + # files actually), so we avoid doing that.
  1824. + if test -f "$cache_file"; then
  1825. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1826. +echo "$as_me: loading cache $cache_file" >&6;}
  1827. + case $cache_file in
  1828. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1829. + *) . "./$cache_file";;
  1830. + esac
  1831. + fi
  1832. else
  1833. - echo "creating cache $cache_file"
  1834. - > $cache_file
  1835. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1836. +echo "$as_me: creating cache $cache_file" >&6;}
  1837. + >$cache_file
  1838. fi
  1839. -ac_ext=c
  1840. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1841. -ac_cpp='$CPP $CPPFLAGS'
  1842. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1843. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1844. -cross_compiling=$ac_cv_prog_cc_cross
  1845. -
  1846. -ac_exeext=
  1847. -ac_objext=o
  1848. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1849. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1850. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1851. - ac_n= ac_c='
  1852. -' ac_t=' '
  1853. - else
  1854. - ac_n=-n ac_c= ac_t=
  1855. +# Check that the precious variables saved in the cache have kept the same
  1856. +# value.
  1857. +ac_cache_corrupted=false
  1858. +for ac_var in $ac_precious_vars; do
  1859. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1860. + eval ac_new_set=\$ac_env_${ac_var}_set
  1861. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1862. + eval ac_new_val=\$ac_env_${ac_var}_value
  1863. + case $ac_old_set,$ac_new_set in
  1864. + set,)
  1865. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1866. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1867. + ac_cache_corrupted=: ;;
  1868. + ,set)
  1869. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1870. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1871. + ac_cache_corrupted=: ;;
  1872. + ,);;
  1873. + *)
  1874. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1875. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1876. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1877. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1878. +echo "$as_me: former value: $ac_old_val" >&2;}
  1879. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1880. +echo "$as_me: current value: $ac_new_val" >&2;}
  1881. + ac_cache_corrupted=:
  1882. + fi;;
  1883. + esac
  1884. + # Pass precious variables to config.status.
  1885. + if test "$ac_new_set" = set; then
  1886. + case $ac_new_val in
  1887. + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1888. + *) ac_arg=$ac_var=$ac_new_val ;;
  1889. + esac
  1890. + case " $ac_configure_args " in
  1891. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1892. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1893. + esac
  1894. fi
  1895. -else
  1896. - ac_n= ac_c='\c' ac_t=
  1897. +done
  1898. +if $ac_cache_corrupted; then
  1899. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1900. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1901. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1902. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1903. + { (exit 1); exit 1; }; }
  1904. fi
  1905. @@ -546,14 +1711,36 @@ fi
  1906. +
  1907. +
  1908. +
  1909. +
  1910. +
  1911. +
  1912. +
  1913. +
  1914. +
  1915. +
  1916. +
  1917. +ac_ext=c
  1918. +ac_cpp='$CPP $CPPFLAGS'
  1919. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1920. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1921. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1922. +
  1923. +
  1924. +ac_config_headers="$ac_config_headers config.h lib/sys_elf.h"
  1925. +
  1926. +
  1927. +
  1928. +
  1929. PACKAGE=libelf
  1930. VERSION=`cat $srcdir/VERSION`
  1931. -
  1932. -
  1933. - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1934. +
  1935. +
  1936. + # Check whether --enable-maintainer-mode was given.
  1937. if test "${enable_maintainer_mode+set}" = set; then
  1938. - enableval="$enable_maintainer_mode"
  1939. - mr_enable_maintainer_mode="$enableval"
  1940. + enableval=$enable_maintainer_mode; mr_enable_maintainer_mode="$enableval"
  1941. else
  1942. case :${I_AM_THE_MAINTAINER_OF}: in
  1943. *:libelf:*) mr_enable_maintainer_mode=yes;;
  1944. @@ -566,7 +1753,7 @@ fi
  1945. else
  1946. MAINT='maintainer-only-'
  1947. fi
  1948. -
  1949. +
  1950. ALL_LINGUAS=`cd $srcdir/po && echo *.po | sed 's/\.po//g'`
  1951. @@ -577,241 +1764,821 @@ MINOR=${2-0}
  1952. PATCH=${3-0}
  1953. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1954. -echo "configure:582: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1955. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1956. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1957. - echo $ac_n "(cached) $ac_c" 1>&6
  1958. +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1959. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1960. +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1961. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1962. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1963. else
  1964. - cat > conftestmake <<\EOF
  1965. + cat >conftest.make <<\_ACEOF
  1966. +SHELL = /bin/sh
  1967. all:
  1968. - @echo 'ac_maketemp="${MAKE}"'
  1969. -EOF
  1970. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  1971. +_ACEOF
  1972. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1973. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1974. -if test -n "$ac_maketemp"; then
  1975. - eval ac_cv_prog_make_${ac_make}_set=yes
  1976. -else
  1977. - eval ac_cv_prog_make_${ac_make}_set=no
  1978. -fi
  1979. -rm -f conftestmake
  1980. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1981. + *@@@%%%=?*=@@@%%%*)
  1982. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  1983. + *)
  1984. + eval ac_cv_prog_make_${ac_make}_set=no;;
  1985. +esac
  1986. +rm -f conftest.make
  1987. fi
  1988. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1989. - echo "$ac_t""yes" 1>&6
  1990. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1991. + { echo "$as_me:$LINENO: result: yes" >&5
  1992. +echo "${ECHO_T}yes" >&6; }
  1993. SET_MAKE=
  1994. else
  1995. - echo "$ac_t""no" 1>&6
  1996. + { echo "$as_me:$LINENO: result: no" >&5
  1997. +echo "${ECHO_T}no" >&6; }
  1998. SET_MAKE="MAKE=${MAKE-make}"
  1999. fi
  2000. -# Extract the first word of "gcc", so it can be a program name with args.
  2001. +ac_ext=c
  2002. +ac_cpp='$CPP $CPPFLAGS'
  2003. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2004. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2005. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2006. +if test -n "$ac_tool_prefix"; then
  2007. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2008. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2009. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2010. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2011. +if test "${ac_cv_prog_CC+set}" = set; then
  2012. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2013. +else
  2014. + if test -n "$CC"; then
  2015. + ac_cv_prog_CC="$CC" # Let the user override the test.
  2016. +else
  2017. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2018. +for as_dir in $PATH
  2019. +do
  2020. + IFS=$as_save_IFS
  2021. + test -z "$as_dir" && as_dir=.
  2022. + for ac_exec_ext in '' $ac_executable_extensions; do
  2023. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2024. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2025. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2026. + break 2
  2027. + fi
  2028. +done
  2029. +done
  2030. +IFS=$as_save_IFS
  2031. +
  2032. +fi
  2033. +fi
  2034. +CC=$ac_cv_prog_CC
  2035. +if test -n "$CC"; then
  2036. + { echo "$as_me:$LINENO: result: $CC" >&5
  2037. +echo "${ECHO_T}$CC" >&6; }
  2038. +else
  2039. + { echo "$as_me:$LINENO: result: no" >&5
  2040. +echo "${ECHO_T}no" >&6; }
  2041. +fi
  2042. +
  2043. +
  2044. +fi
  2045. +if test -z "$ac_cv_prog_CC"; then
  2046. + ac_ct_CC=$CC
  2047. + # Extract the first word of "gcc", so it can be a program name with args.
  2048. set dummy gcc; ac_word=$2
  2049. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2050. -echo "configure:611: checking for $ac_word" >&5
  2051. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2052. - echo $ac_n "(cached) $ac_c" 1>&6
  2053. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2054. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2055. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2056. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2057. +else
  2058. + if test -n "$ac_ct_CC"; then
  2059. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2060. +else
  2061. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. +for as_dir in $PATH
  2063. +do
  2064. + IFS=$as_save_IFS
  2065. + test -z "$as_dir" && as_dir=.
  2066. + for ac_exec_ext in '' $ac_executable_extensions; do
  2067. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2068. + ac_cv_prog_ac_ct_CC="gcc"
  2069. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070. + break 2
  2071. + fi
  2072. +done
  2073. +done
  2074. +IFS=$as_save_IFS
  2075. +
  2076. +fi
  2077. +fi
  2078. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2079. +if test -n "$ac_ct_CC"; then
  2080. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2081. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  2082. +else
  2083. + { echo "$as_me:$LINENO: result: no" >&5
  2084. +echo "${ECHO_T}no" >&6; }
  2085. +fi
  2086. +
  2087. + if test "x$ac_ct_CC" = x; then
  2088. + CC=""
  2089. + else
  2090. + case $cross_compiling:$ac_tool_warned in
  2091. +yes:)
  2092. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2093. +whose name does not start with the host triplet. If you think this
  2094. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  2095. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2096. +whose name does not start with the host triplet. If you think this
  2097. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2098. +ac_tool_warned=yes ;;
  2099. +esac
  2100. + CC=$ac_ct_CC
  2101. + fi
  2102. +else
  2103. + CC="$ac_cv_prog_CC"
  2104. +fi
  2105. +
  2106. +if test -z "$CC"; then
  2107. + if test -n "$ac_tool_prefix"; then
  2108. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2109. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2110. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2111. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2112. +if test "${ac_cv_prog_CC+set}" = set; then
  2113. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2114. else
  2115. if test -n "$CC"; then
  2116. ac_cv_prog_CC="$CC" # Let the user override the test.
  2117. else
  2118. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2119. - ac_dummy="$PATH"
  2120. - for ac_dir in $ac_dummy; do
  2121. - test -z "$ac_dir" && ac_dir=.
  2122. - if test -f $ac_dir/$ac_word; then
  2123. - ac_cv_prog_CC="gcc"
  2124. - break
  2125. - fi
  2126. - done
  2127. - IFS="$ac_save_ifs"
  2128. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. +for as_dir in $PATH
  2130. +do
  2131. + IFS=$as_save_IFS
  2132. + test -z "$as_dir" && as_dir=.
  2133. + for ac_exec_ext in '' $ac_executable_extensions; do
  2134. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2135. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2136. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2137. + break 2
  2138. + fi
  2139. +done
  2140. +done
  2141. +IFS=$as_save_IFS
  2142. +
  2143. fi
  2144. fi
  2145. -CC="$ac_cv_prog_CC"
  2146. +CC=$ac_cv_prog_CC
  2147. if test -n "$CC"; then
  2148. - echo "$ac_t""$CC" 1>&6
  2149. + { echo "$as_me:$LINENO: result: $CC" >&5
  2150. +echo "${ECHO_T}$CC" >&6; }
  2151. else
  2152. - echo "$ac_t""no" 1>&6
  2153. + { echo "$as_me:$LINENO: result: no" >&5
  2154. +echo "${ECHO_T}no" >&6; }
  2155. fi
  2156. +
  2157. + fi
  2158. +fi
  2159. if test -z "$CC"; then
  2160. # Extract the first word of "cc", so it can be a program name with args.
  2161. set dummy cc; ac_word=$2
  2162. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2163. -echo "configure:641: checking for $ac_word" >&5
  2164. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2165. - echo $ac_n "(cached) $ac_c" 1>&6
  2166. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2167. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2168. +if test "${ac_cv_prog_CC+set}" = set; then
  2169. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2170. else
  2171. if test -n "$CC"; then
  2172. ac_cv_prog_CC="$CC" # Let the user override the test.
  2173. else
  2174. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2175. ac_prog_rejected=no
  2176. - ac_dummy="$PATH"
  2177. - for ac_dir in $ac_dummy; do
  2178. - test -z "$ac_dir" && ac_dir=.
  2179. - if test -f $ac_dir/$ac_word; then
  2180. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2181. - ac_prog_rejected=yes
  2182. - continue
  2183. - fi
  2184. - ac_cv_prog_CC="cc"
  2185. - break
  2186. - fi
  2187. - done
  2188. - IFS="$ac_save_ifs"
  2189. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. +for as_dir in $PATH
  2191. +do
  2192. + IFS=$as_save_IFS
  2193. + test -z "$as_dir" && as_dir=.
  2194. + for ac_exec_ext in '' $ac_executable_extensions; do
  2195. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2196. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2197. + ac_prog_rejected=yes
  2198. + continue
  2199. + fi
  2200. + ac_cv_prog_CC="cc"
  2201. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2202. + break 2
  2203. + fi
  2204. +done
  2205. +done
  2206. +IFS=$as_save_IFS
  2207. +
  2208. if test $ac_prog_rejected = yes; then
  2209. # We found a bogon in the path, so make sure we never use it.
  2210. set dummy $ac_cv_prog_CC
  2211. shift
  2212. - if test $# -gt 0; then
  2213. + if test $# != 0; then
  2214. # We chose a different compiler from the bogus one.
  2215. # However, it has the same basename, so the bogon will be chosen
  2216. # first if we set CC to just the basename; use the full file name.
  2217. shift
  2218. - set dummy "$ac_dir/$ac_word" "$@"
  2219. - shift
  2220. - ac_cv_prog_CC="$@"
  2221. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2222. fi
  2223. fi
  2224. fi
  2225. fi
  2226. -CC="$ac_cv_prog_CC"
  2227. +CC=$ac_cv_prog_CC
  2228. if test -n "$CC"; then
  2229. - echo "$ac_t""$CC" 1>&6
  2230. + { echo "$as_me:$LINENO: result: $CC" >&5
  2231. +echo "${ECHO_T}$CC" >&6; }
  2232. else
  2233. - echo "$ac_t""no" 1>&6
  2234. + { echo "$as_me:$LINENO: result: no" >&5
  2235. +echo "${ECHO_T}no" >&6; }
  2236. fi
  2237. - if test -z "$CC"; then
  2238. - case "`uname -s`" in
  2239. - *win32* | *WIN32*)
  2240. - # Extract the first word of "cl", so it can be a program name with args.
  2241. -set dummy cl; ac_word=$2
  2242. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2243. -echo "configure:692: checking for $ac_word" >&5
  2244. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2245. - echo $ac_n "(cached) $ac_c" 1>&6
  2246. +
  2247. +fi
  2248. +if test -z "$CC"; then
  2249. + if test -n "$ac_tool_prefix"; then
  2250. + for ac_prog in cl.exe
  2251. + do
  2252. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2253. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2254. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2255. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2256. +if test "${ac_cv_prog_CC+set}" = set; then
  2257. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2258. else
  2259. if test -n "$CC"; then
  2260. ac_cv_prog_CC="$CC" # Let the user override the test.
  2261. else
  2262. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2263. - ac_dummy="$PATH"
  2264. - for ac_dir in $ac_dummy; do
  2265. - test -z "$ac_dir" && ac_dir=.
  2266. - if test -f $ac_dir/$ac_word; then
  2267. - ac_cv_prog_CC="cl"
  2268. - break
  2269. - fi
  2270. - done
  2271. - IFS="$ac_save_ifs"
  2272. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. +for as_dir in $PATH
  2274. +do
  2275. + IFS=$as_save_IFS
  2276. + test -z "$as_dir" && as_dir=.
  2277. + for ac_exec_ext in '' $ac_executable_extensions; do
  2278. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2279. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2280. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. + break 2
  2282. + fi
  2283. +done
  2284. +done
  2285. +IFS=$as_save_IFS
  2286. +
  2287. fi
  2288. fi
  2289. -CC="$ac_cv_prog_CC"
  2290. +CC=$ac_cv_prog_CC
  2291. if test -n "$CC"; then
  2292. - echo "$ac_t""$CC" 1>&6
  2293. + { echo "$as_me:$LINENO: result: $CC" >&5
  2294. +echo "${ECHO_T}$CC" >&6; }
  2295. else
  2296. - echo "$ac_t""no" 1>&6
  2297. + { echo "$as_me:$LINENO: result: no" >&5
  2298. +echo "${ECHO_T}no" >&6; }
  2299. fi
  2300. - ;;
  2301. - esac
  2302. +
  2303. +
  2304. + test -n "$CC" && break
  2305. + done
  2306. +fi
  2307. +if test -z "$CC"; then
  2308. + ac_ct_CC=$CC
  2309. + for ac_prog in cl.exe
  2310. +do
  2311. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2312. +set dummy $ac_prog; ac_word=$2
  2313. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2314. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2315. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2316. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2317. +else
  2318. + if test -n "$ac_ct_CC"; then
  2319. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2320. +else
  2321. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322. +for as_dir in $PATH
  2323. +do
  2324. + IFS=$as_save_IFS
  2325. + test -z "$as_dir" && as_dir=.
  2326. + for ac_exec_ext in '' $ac_executable_extensions; do
  2327. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2328. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2329. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330. + break 2
  2331. fi
  2332. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2333. +done
  2334. +done
  2335. +IFS=$as_save_IFS
  2336. +
  2337. +fi
  2338. +fi
  2339. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2340. +if test -n "$ac_ct_CC"; then
  2341. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2342. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  2343. +else
  2344. + { echo "$as_me:$LINENO: result: no" >&5
  2345. +echo "${ECHO_T}no" >&6; }
  2346. fi
  2347. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2348. -echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2349. -ac_ext=c
  2350. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2351. -ac_cpp='$CPP $CPPFLAGS'
  2352. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2353. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2354. -cross_compiling=$ac_cv_prog_cc_cross
  2355. + test -n "$ac_ct_CC" && break
  2356. +done
  2357. -cat > conftest.$ac_ext << EOF
  2358. + if test "x$ac_ct_CC" = x; then
  2359. + CC=""
  2360. + else
  2361. + case $cross_compiling:$ac_tool_warned in
  2362. +yes:)
  2363. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2364. +whose name does not start with the host triplet. If you think this
  2365. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  2366. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2367. +whose name does not start with the host triplet. If you think this
  2368. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2369. +ac_tool_warned=yes ;;
  2370. +esac
  2371. + CC=$ac_ct_CC
  2372. + fi
  2373. +fi
  2374. -#line 735 "configure"
  2375. -#include "confdefs.h"
  2376. +fi
  2377. -main(){return(0);}
  2378. -EOF
  2379. -if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2380. - ac_cv_prog_cc_works=yes
  2381. - # If we can't run a trivial program, we are probably using a cross compiler.
  2382. - if (./conftest; exit) 2>/dev/null; then
  2383. - ac_cv_prog_cc_cross=no
  2384. +
  2385. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2386. +See \`config.log' for more details." >&5
  2387. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  2388. +See \`config.log' for more details." >&2;}
  2389. + { (exit 1); exit 1; }; }
  2390. +
  2391. +# Provide some information about the compiler.
  2392. +echo "$as_me:$LINENO: checking for C compiler version" >&5
  2393. +ac_compiler=`set X $ac_compile; echo $2`
  2394. +{ (ac_try="$ac_compiler --version >&5"
  2395. +case "(($ac_try" in
  2396. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2397. + *) ac_try_echo=$ac_try;;
  2398. +esac
  2399. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2400. + (eval "$ac_compiler --version >&5") 2>&5
  2401. + ac_status=$?
  2402. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2403. + (exit $ac_status); }
  2404. +{ (ac_try="$ac_compiler -v >&5"
  2405. +case "(($ac_try" in
  2406. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2407. + *) ac_try_echo=$ac_try;;
  2408. +esac
  2409. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2410. + (eval "$ac_compiler -v >&5") 2>&5
  2411. + ac_status=$?
  2412. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2413. + (exit $ac_status); }
  2414. +{ (ac_try="$ac_compiler -V >&5"
  2415. +case "(($ac_try" in
  2416. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2417. + *) ac_try_echo=$ac_try;;
  2418. +esac
  2419. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2420. + (eval "$ac_compiler -V >&5") 2>&5
  2421. + ac_status=$?
  2422. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2423. + (exit $ac_status); }
  2424. +
  2425. +cat >conftest.$ac_ext <<_ACEOF
  2426. +/* confdefs.h. */
  2427. +_ACEOF
  2428. +cat confdefs.h >>conftest.$ac_ext
  2429. +cat >>conftest.$ac_ext <<_ACEOF
  2430. +/* end confdefs.h. */
  2431. +
  2432. +int
  2433. +main ()
  2434. +{
  2435. +
  2436. + ;
  2437. + return 0;
  2438. +}
  2439. +_ACEOF
  2440. +ac_clean_files_save=$ac_clean_files
  2441. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2442. +# Try to create an executable without -o first, disregard a.out.
  2443. +# It will help us diagnose broken compilers, and finding out an intuition
  2444. +# of exeext.
  2445. +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2446. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2447. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2448. +#
  2449. +# List of possible output files, starting from the most likely.
  2450. +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2451. +# only as a last resort. b.out is created by i960 compilers.
  2452. +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2453. +#
  2454. +# The IRIX 6 linker writes into existing files which may not be
  2455. +# executable, retaining their permissions. Remove them first so a
  2456. +# subsequent execution test works.
  2457. +ac_rmfiles=
  2458. +for ac_file in $ac_files
  2459. +do
  2460. + case $ac_file in
  2461. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2462. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2463. + esac
  2464. +done
  2465. +rm -f $ac_rmfiles
  2466. +
  2467. +if { (ac_try="$ac_link_default"
  2468. +case "(($ac_try" in
  2469. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2470. + *) ac_try_echo=$ac_try;;
  2471. +esac
  2472. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2473. + (eval "$ac_link_default") 2>&5
  2474. + ac_status=$?
  2475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2476. + (exit $ac_status); }; then
  2477. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2478. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2479. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  2480. +# so that the user can short-circuit this test for compilers unknown to
  2481. +# Autoconf.
  2482. +for ac_file in $ac_files ''
  2483. +do
  2484. + test -f "$ac_file" || continue
  2485. + case $ac_file in
  2486. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2487. + ;;
  2488. + [ab].out )
  2489. + # We found the default executable, but exeext='' is most
  2490. + # certainly right.
  2491. + break;;
  2492. + *.* )
  2493. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2494. + then :; else
  2495. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2496. + fi
  2497. + # We set ac_cv_exeext here because the later test for it is not
  2498. + # safe: cross compilers may not add the suffix if given an `-o'
  2499. + # argument, so we may need to know it at that point already.
  2500. + # Even if this section looks crufty: it has the advantage of
  2501. + # actually working.
  2502. + break;;
  2503. + * )
  2504. + break;;
  2505. + esac
  2506. +done
  2507. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  2508. +
  2509. +else
  2510. + ac_file=''
  2511. +fi
  2512. +
  2513. +{ echo "$as_me:$LINENO: result: $ac_file" >&5
  2514. +echo "${ECHO_T}$ac_file" >&6; }
  2515. +if test -z "$ac_file"; then
  2516. + echo "$as_me: failed program was:" >&5
  2517. +sed 's/^/| /' conftest.$ac_ext >&5
  2518. +
  2519. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2520. +See \`config.log' for more details." >&5
  2521. +echo "$as_me: error: C compiler cannot create executables
  2522. +See \`config.log' for more details." >&2;}
  2523. + { (exit 77); exit 77; }; }
  2524. +fi
  2525. +
  2526. +ac_exeext=$ac_cv_exeext
  2527. +
  2528. +# Check that the compiler produces executables we can run. If not, either
  2529. +# the compiler is broken, or we cross compile.
  2530. +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2531. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2532. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2533. +# If not cross compiling, check that we can run a simple program.
  2534. +if test "$cross_compiling" != yes; then
  2535. + if { ac_try='./$ac_file'
  2536. + { (case "(($ac_try" in
  2537. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2538. + *) ac_try_echo=$ac_try;;
  2539. +esac
  2540. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2541. + (eval "$ac_try") 2>&5
  2542. + ac_status=$?
  2543. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. + (exit $ac_status); }; }; then
  2545. + cross_compiling=no
  2546. else
  2547. - ac_cv_prog_cc_cross=yes
  2548. + if test "$cross_compiling" = maybe; then
  2549. + cross_compiling=yes
  2550. + else
  2551. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2552. +If you meant to cross compile, use \`--host'.
  2553. +See \`config.log' for more details." >&5
  2554. +echo "$as_me: error: cannot run C compiled programs.
  2555. +If you meant to cross compile, use \`--host'.
  2556. +See \`config.log' for more details." >&2;}
  2557. + { (exit 1); exit 1; }; }
  2558. + fi
  2559. fi
  2560. +fi
  2561. +{ echo "$as_me:$LINENO: result: yes" >&5
  2562. +echo "${ECHO_T}yes" >&6; }
  2563. +
  2564. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2565. +ac_clean_files=$ac_clean_files_save
  2566. +# Check that the compiler produces executables we can run. If not, either
  2567. +# the compiler is broken, or we cross compile.
  2568. +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2569. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2570. +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2571. +echo "${ECHO_T}$cross_compiling" >&6; }
  2572. +
  2573. +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2574. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2575. +if { (ac_try="$ac_link"
  2576. +case "(($ac_try" in
  2577. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2578. + *) ac_try_echo=$ac_try;;
  2579. +esac
  2580. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2581. + (eval "$ac_link") 2>&5
  2582. + ac_status=$?
  2583. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. + (exit $ac_status); }; then
  2585. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2586. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2587. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2588. +# `rm'.
  2589. +for ac_file in conftest.exe conftest conftest.*; do
  2590. + test -f "$ac_file" || continue
  2591. + case $ac_file in
  2592. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2593. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2594. + break;;
  2595. + * ) break;;
  2596. + esac
  2597. +done
  2598. else
  2599. - echo "configure: failed program was:" >&5
  2600. - cat conftest.$ac_ext >&5
  2601. - ac_cv_prog_cc_works=no
  2602. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2603. +See \`config.log' for more details." >&5
  2604. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2605. +See \`config.log' for more details." >&2;}
  2606. + { (exit 1); exit 1; }; }
  2607. fi
  2608. -rm -fr conftest*
  2609. -ac_ext=c
  2610. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2611. -ac_cpp='$CPP $CPPFLAGS'
  2612. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2613. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2614. -cross_compiling=$ac_cv_prog_cc_cross
  2615. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2616. -if test $ac_cv_prog_cc_works = no; then
  2617. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2618. +rm -f conftest$ac_cv_exeext
  2619. +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2620. +echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2621. +
  2622. +rm -f conftest.$ac_ext
  2623. +EXEEXT=$ac_cv_exeext
  2624. +ac_exeext=$EXEEXT
  2625. +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2626. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2627. +if test "${ac_cv_objext+set}" = set; then
  2628. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2629. +else
  2630. + cat >conftest.$ac_ext <<_ACEOF
  2631. +/* confdefs.h. */
  2632. +_ACEOF
  2633. +cat confdefs.h >>conftest.$ac_ext
  2634. +cat >>conftest.$ac_ext <<_ACEOF
  2635. +/* end confdefs.h. */
  2636. +
  2637. +int
  2638. +main ()
  2639. +{
  2640. +
  2641. + ;
  2642. + return 0;
  2643. +}
  2644. +_ACEOF
  2645. +rm -f conftest.o conftest.obj
  2646. +if { (ac_try="$ac_compile"
  2647. +case "(($ac_try" in
  2648. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2649. + *) ac_try_echo=$ac_try;;
  2650. +esac
  2651. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2652. + (eval "$ac_compile") 2>&5
  2653. + ac_status=$?
  2654. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. + (exit $ac_status); }; then
  2656. + for ac_file in conftest.o conftest.obj conftest.*; do
  2657. + test -f "$ac_file" || continue;
  2658. + case $ac_file in
  2659. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2660. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2661. + break;;
  2662. + esac
  2663. +done
  2664. +else
  2665. + echo "$as_me: failed program was:" >&5
  2666. +sed 's/^/| /' conftest.$ac_ext >&5
  2667. +
  2668. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2669. +See \`config.log' for more details." >&5
  2670. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2671. +See \`config.log' for more details." >&2;}
  2672. + { (exit 1); exit 1; }; }
  2673. fi
  2674. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2675. -echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2676. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2677. -cross_compiling=$ac_cv_prog_cc_cross
  2678. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2679. -echo "configure:771: checking whether we are using GNU C" >&5
  2680. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2681. - echo $ac_n "(cached) $ac_c" 1>&6
  2682. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2683. +fi
  2684. +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2685. +echo "${ECHO_T}$ac_cv_objext" >&6; }
  2686. +OBJEXT=$ac_cv_objext
  2687. +ac_objext=$OBJEXT
  2688. +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2689. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2690. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2691. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. - cat > conftest.c <<EOF
  2694. -#ifdef __GNUC__
  2695. - yes;
  2696. + cat >conftest.$ac_ext <<_ACEOF
  2697. +/* confdefs.h. */
  2698. +_ACEOF
  2699. +cat confdefs.h >>conftest.$ac_ext
  2700. +cat >>conftest.$ac_ext <<_ACEOF
  2701. +/* end confdefs.h. */
  2702. +
  2703. +int
  2704. +main ()
  2705. +{
  2706. +#ifndef __GNUC__
  2707. + choke me
  2708. #endif
  2709. -EOF
  2710. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2711. - ac_cv_prog_gcc=yes
  2712. +
  2713. + ;
  2714. + return 0;
  2715. +}
  2716. +_ACEOF
  2717. +rm -f conftest.$ac_objext
  2718. +if { (ac_try="$ac_compile"
  2719. +case "(($ac_try" in
  2720. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. + *) ac_try_echo=$ac_try;;
  2722. +esac
  2723. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2724. + (eval "$ac_compile") 2>conftest.er1
  2725. + ac_status=$?
  2726. + grep -v '^ *+' conftest.er1 >conftest.err
  2727. + rm -f conftest.er1
  2728. + cat conftest.err >&5
  2729. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. + (exit $ac_status); } && {
  2731. + test -z "$ac_c_werror_flag" ||
  2732. + test ! -s conftest.err
  2733. + } && test -s conftest.$ac_objext; then
  2734. + ac_compiler_gnu=yes
  2735. else
  2736. - ac_cv_prog_gcc=no
  2737. + echo "$as_me: failed program was:" >&5
  2738. +sed 's/^/| /' conftest.$ac_ext >&5
  2739. +
  2740. + ac_compiler_gnu=no
  2741. fi
  2742. +
  2743. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2744. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2745. +
  2746. fi
  2747. +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2748. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2749. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2750. +ac_test_CFLAGS=${CFLAGS+set}
  2751. +ac_save_CFLAGS=$CFLAGS
  2752. +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2753. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2754. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2755. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2756. +else
  2757. + ac_save_c_werror_flag=$ac_c_werror_flag
  2758. + ac_c_werror_flag=yes
  2759. + ac_cv_prog_cc_g=no
  2760. + CFLAGS="-g"
  2761. + cat >conftest.$ac_ext <<_ACEOF
  2762. +/* confdefs.h. */
  2763. +_ACEOF
  2764. +cat confdefs.h >>conftest.$ac_ext
  2765. +cat >>conftest.$ac_ext <<_ACEOF
  2766. +/* end confdefs.h. */
  2767. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2768. +int
  2769. +main ()
  2770. +{
  2771. -if test $ac_cv_prog_gcc = yes; then
  2772. - GCC=yes
  2773. + ;
  2774. + return 0;
  2775. +}
  2776. +_ACEOF
  2777. +rm -f conftest.$ac_objext
  2778. +if { (ac_try="$ac_compile"
  2779. +case "(($ac_try" in
  2780. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2781. + *) ac_try_echo=$ac_try;;
  2782. +esac
  2783. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2784. + (eval "$ac_compile") 2>conftest.er1
  2785. + ac_status=$?
  2786. + grep -v '^ *+' conftest.er1 >conftest.err
  2787. + rm -f conftest.er1
  2788. + cat conftest.err >&5
  2789. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. + (exit $ac_status); } && {
  2791. + test -z "$ac_c_werror_flag" ||
  2792. + test ! -s conftest.err
  2793. + } && test -s conftest.$ac_objext; then
  2794. + ac_cv_prog_cc_g=yes
  2795. else
  2796. - GCC=
  2797. -fi
  2798. + echo "$as_me: failed program was:" >&5
  2799. +sed 's/^/| /' conftest.$ac_ext >&5
  2800. -ac_test_CFLAGS="${CFLAGS+set}"
  2801. -ac_save_CFLAGS="$CFLAGS"
  2802. -CFLAGS=
  2803. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2804. -echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
  2805. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2806. - echo $ac_n "(cached) $ac_c" 1>&6
  2807. + CFLAGS=""
  2808. + cat >conftest.$ac_ext <<_ACEOF
  2809. +/* confdefs.h. */
  2810. +_ACEOF
  2811. +cat confdefs.h >>conftest.$ac_ext
  2812. +cat >>conftest.$ac_ext <<_ACEOF
  2813. +/* end confdefs.h. */
  2814. +
  2815. +int
  2816. +main ()
  2817. +{
  2818. +
  2819. + ;
  2820. + return 0;
  2821. +}
  2822. +_ACEOF
  2823. +rm -f conftest.$ac_objext
  2824. +if { (ac_try="$ac_compile"
  2825. +case "(($ac_try" in
  2826. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. + *) ac_try_echo=$ac_try;;
  2828. +esac
  2829. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2830. + (eval "$ac_compile") 2>conftest.er1
  2831. + ac_status=$?
  2832. + grep -v '^ *+' conftest.er1 >conftest.err
  2833. + rm -f conftest.er1
  2834. + cat conftest.err >&5
  2835. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. + (exit $ac_status); } && {
  2837. + test -z "$ac_c_werror_flag" ||
  2838. + test ! -s conftest.err
  2839. + } && test -s conftest.$ac_objext; then
  2840. + :
  2841. else
  2842. - echo 'void f(){}' > conftest.c
  2843. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2844. + echo "$as_me: failed program was:" >&5
  2845. +sed 's/^/| /' conftest.$ac_ext >&5
  2846. +
  2847. + ac_c_werror_flag=$ac_save_c_werror_flag
  2848. + CFLAGS="-g"
  2849. + cat >conftest.$ac_ext <<_ACEOF
  2850. +/* confdefs.h. */
  2851. +_ACEOF
  2852. +cat confdefs.h >>conftest.$ac_ext
  2853. +cat >>conftest.$ac_ext <<_ACEOF
  2854. +/* end confdefs.h. */
  2855. +
  2856. +int
  2857. +main ()
  2858. +{
  2859. +
  2860. + ;
  2861. + return 0;
  2862. +}
  2863. +_ACEOF
  2864. +rm -f conftest.$ac_objext
  2865. +if { (ac_try="$ac_compile"
  2866. +case "(($ac_try" in
  2867. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. + *) ac_try_echo=$ac_try;;
  2869. +esac
  2870. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2871. + (eval "$ac_compile") 2>conftest.er1
  2872. + ac_status=$?
  2873. + grep -v '^ *+' conftest.er1 >conftest.err
  2874. + rm -f conftest.er1
  2875. + cat conftest.err >&5
  2876. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. + (exit $ac_status); } && {
  2878. + test -z "$ac_c_werror_flag" ||
  2879. + test ! -s conftest.err
  2880. + } && test -s conftest.$ac_objext; then
  2881. ac_cv_prog_cc_g=yes
  2882. else
  2883. - ac_cv_prog_cc_g=no
  2884. + echo "$as_me: failed program was:" >&5
  2885. +sed 's/^/| /' conftest.$ac_ext >&5
  2886. +
  2887. +
  2888. fi
  2889. -rm -f conftest*
  2890. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2891. fi
  2892. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2893. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2894. +fi
  2895. +
  2896. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2897. + ac_c_werror_flag=$ac_save_c_werror_flag
  2898. +fi
  2899. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2900. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2901. if test "$ac_test_CFLAGS" = set; then
  2902. - CFLAGS="$ac_save_CFLAGS"
  2903. + CFLAGS=$ac_save_CFLAGS
  2904. elif test $ac_cv_prog_cc_g = yes; then
  2905. if test "$GCC" = yes; then
  2906. CFLAGS="-g -O2"
  2907. @@ -825,105 +2592,387 @@ else
  2908. CFLAGS=
  2909. fi
  2910. fi
  2911. +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2912. +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2913. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  2914. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2915. +else
  2916. + ac_cv_prog_cc_c89=no
  2917. +ac_save_CC=$CC
  2918. +cat >conftest.$ac_ext <<_ACEOF
  2919. +/* confdefs.h. */
  2920. +_ACEOF
  2921. +cat confdefs.h >>conftest.$ac_ext
  2922. +cat >>conftest.$ac_ext <<_ACEOF
  2923. +/* end confdefs.h. */
  2924. +#include <stdarg.h>
  2925. +#include <stdio.h>
  2926. +#include <sys/types.h>
  2927. +#include <sys/stat.h>
  2928. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2929. +struct buf { int x; };
  2930. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2931. +static char *e (p, i)
  2932. + char **p;
  2933. + int i;
  2934. +{
  2935. + return p[i];
  2936. +}
  2937. +static char *f (char * (*g) (char **, int), char **p, ...)
  2938. +{
  2939. + char *s;
  2940. + va_list v;
  2941. + va_start (v,p);
  2942. + s = g (p, va_arg (v,int));
  2943. + va_end (v);
  2944. + return s;
  2945. +}
  2946. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2947. -echo "configure:831: checking how to run the C preprocessor" >&5
  2948. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2949. + function prototypes and stuff, but not '\xHH' hex character constants.
  2950. + These don't provoke an error unfortunately, instead are silently treated
  2951. + as 'x'. The following induces an error, until -std is added to get
  2952. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2953. + array size at least. It's necessary to write '\x00'==0 to get something
  2954. + that's true only with -std. */
  2955. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2956. +
  2957. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2958. + inside strings and character constants. */
  2959. +#define FOO(x) 'x'
  2960. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2961. +
  2962. +int test (int i, double x);
  2963. +struct s1 {int (*f) (int a);};
  2964. +struct s2 {int (*f) (double a);};
  2965. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2966. +int argc;
  2967. +char **argv;
  2968. +int
  2969. +main ()
  2970. +{
  2971. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2972. + ;
  2973. + return 0;
  2974. +}
  2975. +_ACEOF
  2976. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2977. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2978. +do
  2979. + CC="$ac_save_CC $ac_arg"
  2980. + rm -f conftest.$ac_objext
  2981. +if { (ac_try="$ac_compile"
  2982. +case "(($ac_try" in
  2983. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. + *) ac_try_echo=$ac_try;;
  2985. +esac
  2986. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2987. + (eval "$ac_compile") 2>conftest.er1
  2988. + ac_status=$?
  2989. + grep -v '^ *+' conftest.er1 >conftest.err
  2990. + rm -f conftest.er1
  2991. + cat conftest.err >&5
  2992. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2993. + (exit $ac_status); } && {
  2994. + test -z "$ac_c_werror_flag" ||
  2995. + test ! -s conftest.err
  2996. + } && test -s conftest.$ac_objext; then
  2997. + ac_cv_prog_cc_c89=$ac_arg
  2998. +else
  2999. + echo "$as_me: failed program was:" >&5
  3000. +sed 's/^/| /' conftest.$ac_ext >&5
  3001. +
  3002. +
  3003. +fi
  3004. +
  3005. +rm -f core conftest.err conftest.$ac_objext
  3006. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  3007. +done
  3008. +rm -f conftest.$ac_ext
  3009. +CC=$ac_save_CC
  3010. +
  3011. +fi
  3012. +# AC_CACHE_VAL
  3013. +case "x$ac_cv_prog_cc_c89" in
  3014. + x)
  3015. + { echo "$as_me:$LINENO: result: none needed" >&5
  3016. +echo "${ECHO_T}none needed" >&6; } ;;
  3017. + xno)
  3018. + { echo "$as_me:$LINENO: result: unsupported" >&5
  3019. +echo "${ECHO_T}unsupported" >&6; } ;;
  3020. + *)
  3021. + CC="$CC $ac_cv_prog_cc_c89"
  3022. + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3023. +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3024. +esac
  3025. +
  3026. +
  3027. +ac_ext=c
  3028. +ac_cpp='$CPP $CPPFLAGS'
  3029. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3030. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3031. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3032. +
  3033. +ac_ext=c
  3034. +ac_cpp='$CPP $CPPFLAGS'
  3035. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3036. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3037. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3038. +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3039. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3040. # On Suns, sometimes $CPP names a directory.
  3041. if test -n "$CPP" && test -d "$CPP"; then
  3042. CPP=
  3043. fi
  3044. if test -z "$CPP"; then
  3045. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  3046. - echo $ac_n "(cached) $ac_c" 1>&6
  3047. + if test "${ac_cv_prog_CPP+set}" = set; then
  3048. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3049. else
  3050. - # This must be in double quotes, not single quotes, because CPP may get
  3051. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  3052. - CPP="${CC-cc} -E"
  3053. + # Double quotes because CPP needs to be expanded
  3054. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3055. + do
  3056. + ac_preproc_ok=false
  3057. +for ac_c_preproc_warn_flag in '' yes
  3058. +do
  3059. + # Use a header file that comes with gcc, so configuring glibc
  3060. + # with a fresh cross-compiler works.
  3061. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3062. + # <limits.h> exists even on freestanding compilers.
  3063. # On the NeXT, cc -E runs the code through the compiler's parser,
  3064. - # not just through cpp.
  3065. - cat > conftest.$ac_ext <<EOF
  3066. -#line 846 "configure"
  3067. -#include "confdefs.h"
  3068. -#include <assert.h>
  3069. -Syntax Error
  3070. -EOF
  3071. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3072. -{ (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3073. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3074. -if test -z "$ac_err"; then
  3075. - :
  3076. -else
  3077. - echo "$ac_err" >&5
  3078. - echo "configure: failed program was:" >&5
  3079. - cat conftest.$ac_ext >&5
  3080. - rm -rf conftest*
  3081. - CPP="${CC-cc} -E -traditional-cpp"
  3082. - cat > conftest.$ac_ext <<EOF
  3083. -#line 863 "configure"
  3084. -#include "confdefs.h"
  3085. -#include <assert.h>
  3086. -Syntax Error
  3087. -EOF
  3088. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3089. -{ (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3090. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3091. -if test -z "$ac_err"; then
  3092. + # not just through cpp. "Syntax error" is here to catch this case.
  3093. + cat >conftest.$ac_ext <<_ACEOF
  3094. +/* confdefs.h. */
  3095. +_ACEOF
  3096. +cat confdefs.h >>conftest.$ac_ext
  3097. +cat >>conftest.$ac_ext <<_ACEOF
  3098. +/* end confdefs.h. */
  3099. +#ifdef __STDC__
  3100. +# include <limits.h>
  3101. +#else
  3102. +# include <assert.h>
  3103. +#endif
  3104. + Syntax error
  3105. +_ACEOF
  3106. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3107. +case "(($ac_try" in
  3108. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3109. + *) ac_try_echo=$ac_try;;
  3110. +esac
  3111. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3112. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3113. + ac_status=$?
  3114. + grep -v '^ *+' conftest.er1 >conftest.err
  3115. + rm -f conftest.er1
  3116. + cat conftest.err >&5
  3117. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. + (exit $ac_status); } >/dev/null && {
  3119. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3120. + test ! -s conftest.err
  3121. + }; then
  3122. :
  3123. else
  3124. - echo "$ac_err" >&5
  3125. - echo "configure: failed program was:" >&5
  3126. - cat conftest.$ac_ext >&5
  3127. - rm -rf conftest*
  3128. - CPP="${CC-cc} -nologo -E"
  3129. - cat > conftest.$ac_ext <<EOF
  3130. -#line 880 "configure"
  3131. -#include "confdefs.h"
  3132. -#include <assert.h>
  3133. -Syntax Error
  3134. -EOF
  3135. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3136. -{ (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3137. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3138. -if test -z "$ac_err"; then
  3139. - :
  3140. + echo "$as_me: failed program was:" >&5
  3141. +sed 's/^/| /' conftest.$ac_ext >&5
  3142. +
  3143. + # Broken: fails on valid input.
  3144. +continue
  3145. +fi
  3146. +
  3147. +rm -f conftest.err conftest.$ac_ext
  3148. +
  3149. + # OK, works on sane cases. Now check whether nonexistent headers
  3150. + # can be detected and how.
  3151. + cat >conftest.$ac_ext <<_ACEOF
  3152. +/* confdefs.h. */
  3153. +_ACEOF
  3154. +cat confdefs.h >>conftest.$ac_ext
  3155. +cat >>conftest.$ac_ext <<_ACEOF
  3156. +/* end confdefs.h. */
  3157. +#include <ac_nonexistent.h>
  3158. +_ACEOF
  3159. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3160. +case "(($ac_try" in
  3161. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3162. + *) ac_try_echo=$ac_try;;
  3163. +esac
  3164. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3165. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3166. + ac_status=$?
  3167. + grep -v '^ *+' conftest.er1 >conftest.err
  3168. + rm -f conftest.er1
  3169. + cat conftest.err >&5
  3170. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3171. + (exit $ac_status); } >/dev/null && {
  3172. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3173. + test ! -s conftest.err
  3174. + }; then
  3175. + # Broken: success on invalid input.
  3176. +continue
  3177. else
  3178. - echo "$ac_err" >&5
  3179. - echo "configure: failed program was:" >&5
  3180. - cat conftest.$ac_ext >&5
  3181. - rm -rf conftest*
  3182. - CPP=/lib/cpp
  3183. + echo "$as_me: failed program was:" >&5
  3184. +sed 's/^/| /' conftest.$ac_ext >&5
  3185. +
  3186. + # Passes both tests.
  3187. +ac_preproc_ok=:
  3188. +break
  3189. fi
  3190. -rm -f conftest*
  3191. +
  3192. +rm -f conftest.err conftest.$ac_ext
  3193. +
  3194. +done
  3195. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3196. +rm -f conftest.err conftest.$ac_ext
  3197. +if $ac_preproc_ok; then
  3198. + break
  3199. fi
  3200. -rm -f conftest*
  3201. +
  3202. + done
  3203. + ac_cv_prog_CPP=$CPP
  3204. +
  3205. fi
  3206. -rm -f conftest*
  3207. - ac_cv_prog_CPP="$CPP"
  3208. + CPP=$ac_cv_prog_CPP
  3209. +else
  3210. + ac_cv_prog_CPP=$CPP
  3211. fi
  3212. - CPP="$ac_cv_prog_CPP"
  3213. +{ echo "$as_me:$LINENO: result: $CPP" >&5
  3214. +echo "${ECHO_T}$CPP" >&6; }
  3215. +ac_preproc_ok=false
  3216. +for ac_c_preproc_warn_flag in '' yes
  3217. +do
  3218. + # Use a header file that comes with gcc, so configuring glibc
  3219. + # with a fresh cross-compiler works.
  3220. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3221. + # <limits.h> exists even on freestanding compilers.
  3222. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3223. + # not just through cpp. "Syntax error" is here to catch this case.
  3224. + cat >conftest.$ac_ext <<_ACEOF
  3225. +/* confdefs.h. */
  3226. +_ACEOF
  3227. +cat confdefs.h >>conftest.$ac_ext
  3228. +cat >>conftest.$ac_ext <<_ACEOF
  3229. +/* end confdefs.h. */
  3230. +#ifdef __STDC__
  3231. +# include <limits.h>
  3232. +#else
  3233. +# include <assert.h>
  3234. +#endif
  3235. + Syntax error
  3236. +_ACEOF
  3237. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3238. +case "(($ac_try" in
  3239. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. + *) ac_try_echo=$ac_try;;
  3241. +esac
  3242. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3243. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3244. + ac_status=$?
  3245. + grep -v '^ *+' conftest.er1 >conftest.err
  3246. + rm -f conftest.er1
  3247. + cat conftest.err >&5
  3248. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. + (exit $ac_status); } >/dev/null && {
  3250. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3251. + test ! -s conftest.err
  3252. + }; then
  3253. + :
  3254. else
  3255. - ac_cv_prog_CPP="$CPP"
  3256. + echo "$as_me: failed program was:" >&5
  3257. +sed 's/^/| /' conftest.$ac_ext >&5
  3258. +
  3259. + # Broken: fails on valid input.
  3260. +continue
  3261. fi
  3262. -echo "$ac_t""$CPP" 1>&6
  3263. +
  3264. +rm -f conftest.err conftest.$ac_ext
  3265. +
  3266. + # OK, works on sane cases. Now check whether nonexistent headers
  3267. + # can be detected and how.
  3268. + cat >conftest.$ac_ext <<_ACEOF
  3269. +/* confdefs.h. */
  3270. +_ACEOF
  3271. +cat confdefs.h >>conftest.$ac_ext
  3272. +cat >>conftest.$ac_ext <<_ACEOF
  3273. +/* end confdefs.h. */
  3274. +#include <ac_nonexistent.h>
  3275. +_ACEOF
  3276. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  3277. +case "(($ac_try" in
  3278. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3279. + *) ac_try_echo=$ac_try;;
  3280. +esac
  3281. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3282. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3283. + ac_status=$?
  3284. + grep -v '^ *+' conftest.er1 >conftest.err
  3285. + rm -f conftest.er1
  3286. + cat conftest.err >&5
  3287. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3288. + (exit $ac_status); } >/dev/null && {
  3289. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3290. + test ! -s conftest.err
  3291. + }; then
  3292. + # Broken: success on invalid input.
  3293. +continue
  3294. +else
  3295. + echo "$as_me: failed program was:" >&5
  3296. +sed 's/^/| /' conftest.$ac_ext >&5
  3297. +
  3298. + # Passes both tests.
  3299. +ac_preproc_ok=:
  3300. +break
  3301. +fi
  3302. +
  3303. +rm -f conftest.err conftest.$ac_ext
  3304. +
  3305. +done
  3306. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3307. +rm -f conftest.err conftest.$ac_ext
  3308. +if $ac_preproc_ok; then
  3309. + :
  3310. +else
  3311. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3312. +See \`config.log' for more details." >&5
  3313. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3314. +See \`config.log' for more details." >&2;}
  3315. + { (exit 1); exit 1; }; }
  3316. +fi
  3317. +
  3318. +ac_ext=c
  3319. +ac_cpp='$CPP $CPPFLAGS'
  3320. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3323. ac_aux_dir=
  3324. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  3325. - if test -f $ac_dir/install-sh; then
  3326. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3327. + if test -f "$ac_dir/install-sh"; then
  3328. ac_aux_dir=$ac_dir
  3329. ac_install_sh="$ac_aux_dir/install-sh -c"
  3330. break
  3331. - elif test -f $ac_dir/install.sh; then
  3332. + elif test -f "$ac_dir/install.sh"; then
  3333. ac_aux_dir=$ac_dir
  3334. ac_install_sh="$ac_aux_dir/install.sh -c"
  3335. break
  3336. + elif test -f "$ac_dir/shtool"; then
  3337. + ac_aux_dir=$ac_dir
  3338. + ac_install_sh="$ac_aux_dir/shtool install -c"
  3339. + break
  3340. fi
  3341. done
  3342. if test -z "$ac_aux_dir"; then
  3343. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  3344. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  3345. +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  3346. + { (exit 1); exit 1; }; }
  3347. fi
  3348. -ac_config_guess=$ac_aux_dir/config.guess
  3349. -ac_config_sub=$ac_aux_dir/config.sub
  3350. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  3351. +
  3352. +# These three variables are undocumented and unsupported,
  3353. +# and are intended to be withdrawn in a future Autoconf release.
  3354. +# They can cause serious problems if a builder's source tree is in a directory
  3355. +# whose full name contains unusual characters.
  3356. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3357. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3358. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3359. +
  3360. # Find a good install program. We prefer a C program (faster),
  3361. # so one script is as good as another. But avoid the broken or
  3362. @@ -932,156 +2981,418 @@ ac_configure=$ac_aux_dir/configure # Thi
  3363. # SunOS /usr/etc/install
  3364. # IRIX /sbin/install
  3365. # AIX /bin/install
  3366. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  3367. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3368. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3369. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3370. +# OS/2's system install, which has a completely different semantic
  3371. # ./install, which can be erroneously created by make from ./install.sh.
  3372. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3373. -echo "configure:941: checking for a BSD compatible install" >&5
  3374. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3375. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3376. if test -z "$INSTALL"; then
  3377. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3378. - echo $ac_n "(cached) $ac_c" 1>&6
  3379. +if test "${ac_cv_path_install+set}" = set; then
  3380. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3381. else
  3382. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3383. - for ac_dir in $PATH; do
  3384. - # Account for people who put trailing slashes in PATH elements.
  3385. - case "$ac_dir/" in
  3386. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3387. - *)
  3388. - # OSF1 and SCO ODT 3.0 have their own names for install.
  3389. - # Don't use installbsd from OSF since it installs stuff as root
  3390. - # by default.
  3391. - for ac_prog in ginstall scoinst install; do
  3392. - if test -f $ac_dir/$ac_prog; then
  3393. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3394. +for as_dir in $PATH
  3395. +do
  3396. + IFS=$as_save_IFS
  3397. + test -z "$as_dir" && as_dir=.
  3398. + # Account for people who put trailing slashes in PATH elements.
  3399. +case $as_dir/ in
  3400. + ./ | .// | /cC/* | \
  3401. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3402. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3403. + /usr/ucb/* ) ;;
  3404. + *)
  3405. + # OSF1 and SCO ODT 3.0 have their own names for install.
  3406. + # Don't use installbsd from OSF since it installs stuff as root
  3407. + # by default.
  3408. + for ac_prog in ginstall scoinst install; do
  3409. + for ac_exec_ext in '' $ac_executable_extensions; do
  3410. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3411. if test $ac_prog = install &&
  3412. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3413. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3414. # AIX install. It has an incompatible calling convention.
  3415. :
  3416. + elif test $ac_prog = install &&
  3417. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3418. + # program-specific install script used by HP pwplus--don't use.
  3419. + :
  3420. else
  3421. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  3422. - break 2
  3423. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3424. + break 3
  3425. fi
  3426. fi
  3427. done
  3428. - ;;
  3429. - esac
  3430. - done
  3431. - IFS="$ac_save_IFS"
  3432. + done
  3433. + ;;
  3434. +esac
  3435. +done
  3436. +IFS=$as_save_IFS
  3437. +
  3438. fi
  3439. if test "${ac_cv_path_install+set}" = set; then
  3440. - INSTALL="$ac_cv_path_install"
  3441. + INSTALL=$ac_cv_path_install
  3442. else
  3443. - # As a last resort, use the slow shell script. We don't cache a
  3444. - # path for INSTALL within a source directory, because that will
  3445. + # As a last resort, use the slow shell script. Don't cache a
  3446. + # value for INSTALL within a source directory, because that will
  3447. # break other packages using the cache if that directory is
  3448. - # removed, or if the path is relative.
  3449. - INSTALL="$ac_install_sh"
  3450. + # removed, or if the value is a relative name.
  3451. + INSTALL=$ac_install_sh
  3452. fi
  3453. fi
  3454. -echo "$ac_t""$INSTALL" 1>&6
  3455. +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  3456. +echo "${ECHO_T}$INSTALL" >&6; }
  3457. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3458. # It thinks the first close brace ends the variable substitution.
  3459. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3460. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3461. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3462. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3463. -# Extract the first word of "ranlib", so it can be a program name with args.
  3464. -set dummy ranlib; ac_word=$2
  3465. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3466. -echo "configure:996: checking for $ac_word" >&5
  3467. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  3468. - echo $ac_n "(cached) $ac_c" 1>&6
  3469. +if test -n "$ac_tool_prefix"; then
  3470. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3471. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3472. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  3473. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3474. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  3475. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3476. else
  3477. if test -n "$RANLIB"; then
  3478. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3479. else
  3480. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3481. - ac_dummy="$PATH"
  3482. - for ac_dir in $ac_dummy; do
  3483. - test -z "$ac_dir" && ac_dir=.
  3484. - if test -f $ac_dir/$ac_word; then
  3485. - ac_cv_prog_RANLIB="ranlib"
  3486. - break
  3487. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3488. +for as_dir in $PATH
  3489. +do
  3490. + IFS=$as_save_IFS
  3491. + test -z "$as_dir" && as_dir=.
  3492. + for ac_exec_ext in '' $ac_executable_extensions; do
  3493. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3494. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3495. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3496. + break 2
  3497. + fi
  3498. +done
  3499. +done
  3500. +IFS=$as_save_IFS
  3501. +
  3502. +fi
  3503. +fi
  3504. +RANLIB=$ac_cv_prog_RANLIB
  3505. +if test -n "$RANLIB"; then
  3506. + { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3507. +echo "${ECHO_T}$RANLIB" >&6; }
  3508. +else
  3509. + { echo "$as_me:$LINENO: result: no" >&5
  3510. +echo "${ECHO_T}no" >&6; }
  3511. +fi
  3512. +
  3513. +
  3514. +fi
  3515. +if test -z "$ac_cv_prog_RANLIB"; then
  3516. + ac_ct_RANLIB=$RANLIB
  3517. + # Extract the first word of "ranlib", so it can be a program name with args.
  3518. +set dummy ranlib; ac_word=$2
  3519. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  3520. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3521. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3522. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3523. +else
  3524. + if test -n "$ac_ct_RANLIB"; then
  3525. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3526. +else
  3527. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. +for as_dir in $PATH
  3529. +do
  3530. + IFS=$as_save_IFS
  3531. + test -z "$as_dir" && as_dir=.
  3532. + for ac_exec_ext in '' $ac_executable_extensions; do
  3533. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3534. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  3535. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3536. + break 2
  3537. + fi
  3538. +done
  3539. +done
  3540. +IFS=$as_save_IFS
  3541. +
  3542. +fi
  3543. +fi
  3544. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3545. +if test -n "$ac_ct_RANLIB"; then
  3546. + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3547. +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3548. +else
  3549. + { echo "$as_me:$LINENO: result: no" >&5
  3550. +echo "${ECHO_T}no" >&6; }
  3551. +fi
  3552. +
  3553. + if test "x$ac_ct_RANLIB" = x; then
  3554. + RANLIB=":"
  3555. + else
  3556. + case $cross_compiling:$ac_tool_warned in
  3557. +yes:)
  3558. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3559. +whose name does not start with the host triplet. If you think this
  3560. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  3561. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3562. +whose name does not start with the host triplet. If you think this
  3563. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3564. +ac_tool_warned=yes ;;
  3565. +esac
  3566. + RANLIB=$ac_ct_RANLIB
  3567. + fi
  3568. +else
  3569. + RANLIB="$ac_cv_prog_RANLIB"
  3570. +fi
  3571. +
  3572. +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3573. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3574. +LN_S=$as_ln_s
  3575. +if test "$LN_S" = "ln -s"; then
  3576. + { echo "$as_me:$LINENO: result: yes" >&5
  3577. +echo "${ECHO_T}yes" >&6; }
  3578. +else
  3579. + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3580. +echo "${ECHO_T}no, using $LN_S" >&6; }
  3581. +fi
  3582. +
  3583. +
  3584. +
  3585. +
  3586. +
  3587. +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3588. +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3589. +if test "${ac_cv_path_GREP+set}" = set; then
  3590. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. +else
  3592. + # Extract the first word of "grep ggrep" to use in msg output
  3593. +if test -z "$GREP"; then
  3594. +set dummy grep ggrep; ac_prog_name=$2
  3595. +if test "${ac_cv_path_GREP+set}" = set; then
  3596. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3597. +else
  3598. + ac_path_GREP_found=false
  3599. +# Loop through the user's path and test for each of PROGNAME-LIST
  3600. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3602. +do
  3603. + IFS=$as_save_IFS
  3604. + test -z "$as_dir" && as_dir=.
  3605. + for ac_prog in grep ggrep; do
  3606. + for ac_exec_ext in '' $ac_executable_extensions; do
  3607. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3608. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3609. + # Check for GNU ac_path_GREP and select it if it is found.
  3610. + # Check for GNU $ac_path_GREP
  3611. +case `"$ac_path_GREP" --version 2>&1` in
  3612. +*GNU*)
  3613. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3614. +*)
  3615. + ac_count=0
  3616. + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3617. + while :
  3618. + do
  3619. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  3620. + mv "conftest.tmp" "conftest.in"
  3621. + cp "conftest.in" "conftest.nl"
  3622. + echo 'GREP' >> "conftest.nl"
  3623. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3624. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3625. + ac_count=`expr $ac_count + 1`
  3626. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3627. + # Best one so far, save it but keep looking for a better one
  3628. + ac_cv_path_GREP="$ac_path_GREP"
  3629. + ac_path_GREP_max=$ac_count
  3630. fi
  3631. + # 10*(2^10) chars as input seems more than enough
  3632. + test $ac_count -gt 10 && break
  3633. done
  3634. - IFS="$ac_save_ifs"
  3635. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  3636. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3637. +esac
  3638. +
  3639. +
  3640. + $ac_path_GREP_found && break 3
  3641. + done
  3642. +done
  3643. +
  3644. +done
  3645. +IFS=$as_save_IFS
  3646. +
  3647. +
  3648. fi
  3649. +
  3650. +GREP="$ac_cv_path_GREP"
  3651. +if test -z "$GREP"; then
  3652. + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3653. +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3654. + { (exit 1); exit 1; }; }
  3655. fi
  3656. -RANLIB="$ac_cv_prog_RANLIB"
  3657. -if test -n "$RANLIB"; then
  3658. - echo "$ac_t""$RANLIB" 1>&6
  3659. +
  3660. else
  3661. - echo "$ac_t""no" 1>&6
  3662. + ac_cv_path_GREP=$GREP
  3663. fi
  3664. -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  3665. -echo "configure:1024: checking whether ln -s works" >&5
  3666. -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  3667. - echo $ac_n "(cached) $ac_c" 1>&6
  3668. +
  3669. +fi
  3670. +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3671. +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3672. + GREP="$ac_cv_path_GREP"
  3673. +
  3674. +
  3675. +{ echo "$as_me:$LINENO: checking for egrep" >&5
  3676. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3677. +if test "${ac_cv_path_EGREP+set}" = set; then
  3678. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3679. else
  3680. - rm -f conftestdata
  3681. -if ln -s X conftestdata 2>/dev/null
  3682. -then
  3683. - rm -f conftestdata
  3684. - ac_cv_prog_LN_S="ln -s"
  3685. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3686. + then ac_cv_path_EGREP="$GREP -E"
  3687. + else
  3688. + # Extract the first word of "egrep" to use in msg output
  3689. +if test -z "$EGREP"; then
  3690. +set dummy egrep; ac_prog_name=$2
  3691. +if test "${ac_cv_path_EGREP+set}" = set; then
  3692. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3693. else
  3694. - ac_cv_prog_LN_S=ln
  3695. + ac_path_EGREP_found=false
  3696. +# Loop through the user's path and test for each of PROGNAME-LIST
  3697. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3698. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3699. +do
  3700. + IFS=$as_save_IFS
  3701. + test -z "$as_dir" && as_dir=.
  3702. + for ac_prog in egrep; do
  3703. + for ac_exec_ext in '' $ac_executable_extensions; do
  3704. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3705. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3706. + # Check for GNU ac_path_EGREP and select it if it is found.
  3707. + # Check for GNU $ac_path_EGREP
  3708. +case `"$ac_path_EGREP" --version 2>&1` in
  3709. +*GNU*)
  3710. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3711. +*)
  3712. + ac_count=0
  3713. + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3714. + while :
  3715. + do
  3716. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  3717. + mv "conftest.tmp" "conftest.in"
  3718. + cp "conftest.in" "conftest.nl"
  3719. + echo 'EGREP' >> "conftest.nl"
  3720. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3721. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3722. + ac_count=`expr $ac_count + 1`
  3723. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3724. + # Best one so far, save it but keep looking for a better one
  3725. + ac_cv_path_EGREP="$ac_path_EGREP"
  3726. + ac_path_EGREP_max=$ac_count
  3727. + fi
  3728. + # 10*(2^10) chars as input seems more than enough
  3729. + test $ac_count -gt 10 && break
  3730. + done
  3731. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3732. +esac
  3733. +
  3734. +
  3735. + $ac_path_EGREP_found && break 3
  3736. + done
  3737. +done
  3738. +
  3739. +done
  3740. +IFS=$as_save_IFS
  3741. +
  3742. +
  3743. fi
  3744. +
  3745. +EGREP="$ac_cv_path_EGREP"
  3746. +if test -z "$EGREP"; then
  3747. + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3748. +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3749. + { (exit 1); exit 1; }; }
  3750. fi
  3751. -LN_S="$ac_cv_prog_LN_S"
  3752. -if test "$ac_cv_prog_LN_S" = "ln -s"; then
  3753. - echo "$ac_t""yes" 1>&6
  3754. +
  3755. else
  3756. - echo "$ac_t""no" 1>&6
  3757. + ac_cv_path_EGREP=$EGREP
  3758. fi
  3759. + fi
  3760. +fi
  3761. +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3762. +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3763. + EGREP="$ac_cv_path_EGREP"
  3764. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  3765. -echo "configure:1047: checking for ANSI C header files" >&5
  3766. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  3767. - echo $ac_n "(cached) $ac_c" 1>&6
  3768. +
  3769. +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3770. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3771. +if test "${ac_cv_header_stdc+set}" = set; then
  3772. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3773. else
  3774. - cat > conftest.$ac_ext <<EOF
  3775. -#line 1052 "configure"
  3776. -#include "confdefs.h"
  3777. + cat >conftest.$ac_ext <<_ACEOF
  3778. +/* confdefs.h. */
  3779. +_ACEOF
  3780. +cat confdefs.h >>conftest.$ac_ext
  3781. +cat >>conftest.$ac_ext <<_ACEOF
  3782. +/* end confdefs.h. */
  3783. #include <stdlib.h>
  3784. #include <stdarg.h>
  3785. #include <string.h>
  3786. #include <float.h>
  3787. -EOF
  3788. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3789. -{ (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3790. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3791. -if test -z "$ac_err"; then
  3792. - rm -rf conftest*
  3793. +
  3794. +int
  3795. +main ()
  3796. +{
  3797. +
  3798. + ;
  3799. + return 0;
  3800. +}
  3801. +_ACEOF
  3802. +rm -f conftest.$ac_objext
  3803. +if { (ac_try="$ac_compile"
  3804. +case "(($ac_try" in
  3805. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3806. + *) ac_try_echo=$ac_try;;
  3807. +esac
  3808. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3809. + (eval "$ac_compile") 2>conftest.er1
  3810. + ac_status=$?
  3811. + grep -v '^ *+' conftest.er1 >conftest.err
  3812. + rm -f conftest.er1
  3813. + cat conftest.err >&5
  3814. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. + (exit $ac_status); } && {
  3816. + test -z "$ac_c_werror_flag" ||
  3817. + test ! -s conftest.err
  3818. + } && test -s conftest.$ac_objext; then
  3819. ac_cv_header_stdc=yes
  3820. else
  3821. - echo "$ac_err" >&5
  3822. - echo "configure: failed program was:" >&5
  3823. - cat conftest.$ac_ext >&5
  3824. - rm -rf conftest*
  3825. - ac_cv_header_stdc=no
  3826. + echo "$as_me: failed program was:" >&5
  3827. +sed 's/^/| /' conftest.$ac_ext >&5
  3828. +
  3829. + ac_cv_header_stdc=no
  3830. fi
  3831. -rm -f conftest*
  3832. +
  3833. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3834. if test $ac_cv_header_stdc = yes; then
  3835. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3836. -cat > conftest.$ac_ext <<EOF
  3837. -#line 1077 "configure"
  3838. -#include "confdefs.h"
  3839. + cat >conftest.$ac_ext <<_ACEOF
  3840. +/* confdefs.h. */
  3841. +_ACEOF
  3842. +cat confdefs.h >>conftest.$ac_ext
  3843. +cat >>conftest.$ac_ext <<_ACEOF
  3844. +/* end confdefs.h. */
  3845. #include <string.h>
  3846. -EOF
  3847. +
  3848. +_ACEOF
  3849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3850. - egrep "memchr" >/dev/null 2>&1; then
  3851. + $EGREP "memchr" >/dev/null 2>&1; then
  3852. :
  3853. else
  3854. - rm -rf conftest*
  3855. ac_cv_header_stdc=no
  3856. fi
  3857. rm -f conftest*
  3858. @@ -1090,16 +3401,19 @@ fi
  3859. if test $ac_cv_header_stdc = yes; then
  3860. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3861. -cat > conftest.$ac_ext <<EOF
  3862. -#line 1095 "configure"
  3863. -#include "confdefs.h"
  3864. + cat >conftest.$ac_ext <<_ACEOF
  3865. +/* confdefs.h. */
  3866. +_ACEOF
  3867. +cat confdefs.h >>conftest.$ac_ext
  3868. +cat >>conftest.$ac_ext <<_ACEOF
  3869. +/* end confdefs.h. */
  3870. #include <stdlib.h>
  3871. -EOF
  3872. +
  3873. +_ACEOF
  3874. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3875. - egrep "free" >/dev/null 2>&1; then
  3876. + $EGREP "free" >/dev/null 2>&1; then
  3877. :
  3878. else
  3879. - rm -rf conftest*
  3880. ac_cv_header_stdc=no
  3881. fi
  3882. rm -f conftest*
  3883. @@ -1108,218 +3422,658 @@ fi
  3884. if test $ac_cv_header_stdc = yes; then
  3885. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3886. -if test "$cross_compiling" = yes; then
  3887. + if test "$cross_compiling" = yes; then
  3888. :
  3889. else
  3890. - cat > conftest.$ac_ext <<EOF
  3891. -#line 1116 "configure"
  3892. -#include "confdefs.h"
  3893. + cat >conftest.$ac_ext <<_ACEOF
  3894. +/* confdefs.h. */
  3895. +_ACEOF
  3896. +cat confdefs.h >>conftest.$ac_ext
  3897. +cat >>conftest.$ac_ext <<_ACEOF
  3898. +/* end confdefs.h. */
  3899. #include <ctype.h>
  3900. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3901. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3902. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3903. -int main () { int i; for (i = 0; i < 256; i++)
  3904. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  3905. -exit (0); }
  3906. +#include <stdlib.h>
  3907. +#if ((' ' & 0x0FF) == 0x020)
  3908. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3909. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3910. +#else
  3911. +# define ISLOWER(c) \
  3912. + (('a' <= (c) && (c) <= 'i') \
  3913. + || ('j' <= (c) && (c) <= 'r') \
  3914. + || ('s' <= (c) && (c) <= 'z'))
  3915. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3916. +#endif
  3917. -EOF
  3918. -if { (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3919. -then
  3920. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3921. +int
  3922. +main ()
  3923. +{
  3924. + int i;
  3925. + for (i = 0; i < 256; i++)
  3926. + if (XOR (islower (i), ISLOWER (i))
  3927. + || toupper (i) != TOUPPER (i))
  3928. + return 2;
  3929. + return 0;
  3930. +}
  3931. +_ACEOF
  3932. +rm -f conftest$ac_exeext
  3933. +if { (ac_try="$ac_link"
  3934. +case "(($ac_try" in
  3935. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3936. + *) ac_try_echo=$ac_try;;
  3937. +esac
  3938. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3939. + (eval "$ac_link") 2>&5
  3940. + ac_status=$?
  3941. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3942. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3943. + { (case "(($ac_try" in
  3944. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3945. + *) ac_try_echo=$ac_try;;
  3946. +esac
  3947. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3948. + (eval "$ac_try") 2>&5
  3949. + ac_status=$?
  3950. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3951. + (exit $ac_status); }; }; then
  3952. :
  3953. else
  3954. - echo "configure: failed program was:" >&5
  3955. - cat conftest.$ac_ext >&5
  3956. - rm -fr conftest*
  3957. - ac_cv_header_stdc=no
  3958. + echo "$as_me: program exited with status $ac_status" >&5
  3959. +echo "$as_me: failed program was:" >&5
  3960. +sed 's/^/| /' conftest.$ac_ext >&5
  3961. +
  3962. +( exit $ac_status )
  3963. +ac_cv_header_stdc=no
  3964. fi
  3965. -rm -fr conftest*
  3966. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3967. fi
  3968. +
  3969. fi
  3970. fi
  3971. -
  3972. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  3973. +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3974. +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3975. if test $ac_cv_header_stdc = yes; then
  3976. - cat >> confdefs.h <<\EOF
  3977. +
  3978. +cat >>confdefs.h <<\_ACEOF
  3979. #define STDC_HEADERS 1
  3980. -EOF
  3981. +_ACEOF
  3982. fi
  3983. -for ac_hdr in unistd.h stdint.h fcntl.h
  3984. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3985. +
  3986. +
  3987. +
  3988. +
  3989. +
  3990. +
  3991. +
  3992. +
  3993. +
  3994. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3995. + inttypes.h stdint.h unistd.h
  3996. do
  3997. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3998. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3999. -echo "configure:1154: checking for $ac_hdr" >&5
  4000. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4001. - echo $ac_n "(cached) $ac_c" 1>&6
  4002. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4003. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  4004. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4005. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4006. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4007. else
  4008. - cat > conftest.$ac_ext <<EOF
  4009. -#line 1159 "configure"
  4010. -#include "confdefs.h"
  4011. -#include <$ac_hdr>
  4012. -EOF
  4013. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4014. -{ (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4015. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4016. -if test -z "$ac_err"; then
  4017. - rm -rf conftest*
  4018. - eval "ac_cv_header_$ac_safe=yes"
  4019. + cat >conftest.$ac_ext <<_ACEOF
  4020. +/* confdefs.h. */
  4021. +_ACEOF
  4022. +cat confdefs.h >>conftest.$ac_ext
  4023. +cat >>conftest.$ac_ext <<_ACEOF
  4024. +/* end confdefs.h. */
  4025. +$ac_includes_default
  4026. +
  4027. +#include <$ac_header>
  4028. +_ACEOF
  4029. +rm -f conftest.$ac_objext
  4030. +if { (ac_try="$ac_compile"
  4031. +case "(($ac_try" in
  4032. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4033. + *) ac_try_echo=$ac_try;;
  4034. +esac
  4035. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4036. + (eval "$ac_compile") 2>conftest.er1
  4037. + ac_status=$?
  4038. + grep -v '^ *+' conftest.er1 >conftest.err
  4039. + rm -f conftest.er1
  4040. + cat conftest.err >&5
  4041. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4042. + (exit $ac_status); } && {
  4043. + test -z "$ac_c_werror_flag" ||
  4044. + test ! -s conftest.err
  4045. + } && test -s conftest.$ac_objext; then
  4046. + eval "$as_ac_Header=yes"
  4047. else
  4048. - echo "$ac_err" >&5
  4049. - echo "configure: failed program was:" >&5
  4050. - cat conftest.$ac_ext >&5
  4051. - rm -rf conftest*
  4052. - eval "ac_cv_header_$ac_safe=no"
  4053. + echo "$as_me: failed program was:" >&5
  4054. +sed 's/^/| /' conftest.$ac_ext >&5
  4055. +
  4056. + eval "$as_ac_Header=no"
  4057. fi
  4058. -rm -f conftest*
  4059. +
  4060. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4061. fi
  4062. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4063. - echo "$ac_t""yes" 1>&6
  4064. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4065. - cat >> confdefs.h <<EOF
  4066. -#define $ac_tr_hdr 1
  4067. -EOF
  4068. -
  4069. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4070. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4071. +echo "${ECHO_T}$ac_res" >&6; }
  4072. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4073. + cat >>confdefs.h <<_ACEOF
  4074. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4075. +_ACEOF
  4076. +
  4077. +fi
  4078. +
  4079. +done
  4080. +
  4081. +
  4082. +
  4083. +
  4084. +
  4085. +for ac_header in unistd.h stdint.h fcntl.h
  4086. +do
  4087. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4088. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4089. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4090. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4091. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4092. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4093. +fi
  4094. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4095. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4096. +echo "${ECHO_T}$ac_res" >&6; }
  4097. else
  4098. - echo "$ac_t""no" 1>&6
  4099. + # Is the header compilable?
  4100. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4101. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4102. +cat >conftest.$ac_ext <<_ACEOF
  4103. +/* confdefs.h. */
  4104. +_ACEOF
  4105. +cat confdefs.h >>conftest.$ac_ext
  4106. +cat >>conftest.$ac_ext <<_ACEOF
  4107. +/* end confdefs.h. */
  4108. +$ac_includes_default
  4109. +#include <$ac_header>
  4110. +_ACEOF
  4111. +rm -f conftest.$ac_objext
  4112. +if { (ac_try="$ac_compile"
  4113. +case "(($ac_try" in
  4114. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4115. + *) ac_try_echo=$ac_try;;
  4116. +esac
  4117. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4118. + (eval "$ac_compile") 2>conftest.er1
  4119. + ac_status=$?
  4120. + grep -v '^ *+' conftest.er1 >conftest.err
  4121. + rm -f conftest.er1
  4122. + cat conftest.err >&5
  4123. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4124. + (exit $ac_status); } && {
  4125. + test -z "$ac_c_werror_flag" ||
  4126. + test ! -s conftest.err
  4127. + } && test -s conftest.$ac_objext; then
  4128. + ac_header_compiler=yes
  4129. +else
  4130. + echo "$as_me: failed program was:" >&5
  4131. +sed 's/^/| /' conftest.$ac_ext >&5
  4132. +
  4133. + ac_header_compiler=no
  4134. fi
  4135. +
  4136. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4137. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4138. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  4139. +
  4140. +# Is the header present?
  4141. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4142. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4143. +cat >conftest.$ac_ext <<_ACEOF
  4144. +/* confdefs.h. */
  4145. +_ACEOF
  4146. +cat confdefs.h >>conftest.$ac_ext
  4147. +cat >>conftest.$ac_ext <<_ACEOF
  4148. +/* end confdefs.h. */
  4149. +#include <$ac_header>
  4150. +_ACEOF
  4151. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4152. +case "(($ac_try" in
  4153. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. + *) ac_try_echo=$ac_try;;
  4155. +esac
  4156. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4158. + ac_status=$?
  4159. + grep -v '^ *+' conftest.er1 >conftest.err
  4160. + rm -f conftest.er1
  4161. + cat conftest.err >&5
  4162. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. + (exit $ac_status); } >/dev/null && {
  4164. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4165. + test ! -s conftest.err
  4166. + }; then
  4167. + ac_header_preproc=yes
  4168. +else
  4169. + echo "$as_me: failed program was:" >&5
  4170. +sed 's/^/| /' conftest.$ac_ext >&5
  4171. +
  4172. + ac_header_preproc=no
  4173. +fi
  4174. +
  4175. +rm -f conftest.err conftest.$ac_ext
  4176. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4177. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  4178. +
  4179. +# So? What about this header?
  4180. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4181. + yes:no: )
  4182. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4183. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4184. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4185. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4186. + ac_header_preproc=yes
  4187. + ;;
  4188. + no:yes:* )
  4189. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4190. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4191. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4192. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4193. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4194. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4195. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4196. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4197. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4198. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4199. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4200. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4201. +
  4202. + ;;
  4203. +esac
  4204. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  4205. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4206. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4207. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4208. +else
  4209. + eval "$as_ac_Header=\$ac_header_preproc"
  4210. +fi
  4211. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4212. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4213. +echo "${ECHO_T}$ac_res" >&6; }
  4214. +
  4215. +fi
  4216. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4217. + cat >>confdefs.h <<_ACEOF
  4218. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4219. +_ACEOF
  4220. +
  4221. +fi
  4222. +
  4223. done
  4224. -for ac_hdr in elf.h sys/elf.h link.h sys/link.h
  4225. +
  4226. +
  4227. +
  4228. +
  4229. +for ac_header in elf.h sys/elf.h link.h sys/link.h
  4230. do
  4231. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4232. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4233. -echo "configure:1194: checking for $ac_hdr" >&5
  4234. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4235. - echo $ac_n "(cached) $ac_c" 1>&6
  4236. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4237. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4238. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4239. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4240. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4241. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4242. +fi
  4243. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4244. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4245. +echo "${ECHO_T}$ac_res" >&6; }
  4246. else
  4247. - cat > conftest.$ac_ext <<EOF
  4248. -#line 1199 "configure"
  4249. -#include "confdefs.h"
  4250. -#include <$ac_hdr>
  4251. -EOF
  4252. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4253. -{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4254. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4255. -if test -z "$ac_err"; then
  4256. - rm -rf conftest*
  4257. - eval "ac_cv_header_$ac_safe=yes"
  4258. + # Is the header compilable?
  4259. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4260. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4261. +cat >conftest.$ac_ext <<_ACEOF
  4262. +/* confdefs.h. */
  4263. +_ACEOF
  4264. +cat confdefs.h >>conftest.$ac_ext
  4265. +cat >>conftest.$ac_ext <<_ACEOF
  4266. +/* end confdefs.h. */
  4267. +$ac_includes_default
  4268. +#include <$ac_header>
  4269. +_ACEOF
  4270. +rm -f conftest.$ac_objext
  4271. +if { (ac_try="$ac_compile"
  4272. +case "(($ac_try" in
  4273. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4274. + *) ac_try_echo=$ac_try;;
  4275. +esac
  4276. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4277. + (eval "$ac_compile") 2>conftest.er1
  4278. + ac_status=$?
  4279. + grep -v '^ *+' conftest.er1 >conftest.err
  4280. + rm -f conftest.er1
  4281. + cat conftest.err >&5
  4282. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4283. + (exit $ac_status); } && {
  4284. + test -z "$ac_c_werror_flag" ||
  4285. + test ! -s conftest.err
  4286. + } && test -s conftest.$ac_objext; then
  4287. + ac_header_compiler=yes
  4288. else
  4289. - echo "$ac_err" >&5
  4290. - echo "configure: failed program was:" >&5
  4291. - cat conftest.$ac_ext >&5
  4292. - rm -rf conftest*
  4293. - eval "ac_cv_header_$ac_safe=no"
  4294. + echo "$as_me: failed program was:" >&5
  4295. +sed 's/^/| /' conftest.$ac_ext >&5
  4296. +
  4297. + ac_header_compiler=no
  4298. fi
  4299. -rm -f conftest*
  4300. +
  4301. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4302. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4303. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  4304. +
  4305. +# Is the header present?
  4306. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4307. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4308. +cat >conftest.$ac_ext <<_ACEOF
  4309. +/* confdefs.h. */
  4310. +_ACEOF
  4311. +cat confdefs.h >>conftest.$ac_ext
  4312. +cat >>conftest.$ac_ext <<_ACEOF
  4313. +/* end confdefs.h. */
  4314. +#include <$ac_header>
  4315. +_ACEOF
  4316. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4317. +case "(($ac_try" in
  4318. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4319. + *) ac_try_echo=$ac_try;;
  4320. +esac
  4321. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4322. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4323. + ac_status=$?
  4324. + grep -v '^ *+' conftest.er1 >conftest.err
  4325. + rm -f conftest.er1
  4326. + cat conftest.err >&5
  4327. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. + (exit $ac_status); } >/dev/null && {
  4329. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4330. + test ! -s conftest.err
  4331. + }; then
  4332. + ac_header_preproc=yes
  4333. +else
  4334. + echo "$as_me: failed program was:" >&5
  4335. +sed 's/^/| /' conftest.$ac_ext >&5
  4336. +
  4337. + ac_header_preproc=no
  4338. fi
  4339. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4340. - echo "$ac_t""yes" 1>&6
  4341. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4342. - cat >> confdefs.h <<EOF
  4343. -#define $ac_tr_hdr 1
  4344. -EOF
  4345. -
  4346. +
  4347. +rm -f conftest.err conftest.$ac_ext
  4348. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4349. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  4350. +
  4351. +# So? What about this header?
  4352. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4353. + yes:no: )
  4354. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4355. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4356. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4357. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4358. + ac_header_preproc=yes
  4359. + ;;
  4360. + no:yes:* )
  4361. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4362. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4363. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4364. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4365. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4366. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4367. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4368. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4369. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4370. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4371. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4372. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4373. +
  4374. + ;;
  4375. +esac
  4376. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  4377. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4378. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4379. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4380. else
  4381. - echo "$ac_t""no" 1>&6
  4382. + eval "$as_ac_Header=\$ac_header_preproc"
  4383. fi
  4384. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4385. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4386. +echo "${ECHO_T}$ac_res" >&6; }
  4387. +
  4388. +fi
  4389. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4390. + cat >>confdefs.h <<_ACEOF
  4391. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4392. +_ACEOF
  4393. +
  4394. +fi
  4395. +
  4396. done
  4397. -echo $ac_n "checking if ${CC} can compile elf.h""... $ac_c" 1>&6
  4398. -echo "configure:1231: checking if ${CC} can compile elf.h" >&5
  4399. -if eval "test \"`echo '$''{'libelf_cv_elf_h_works'+set}'`\" = set"; then
  4400. - echo $ac_n "(cached) $ac_c" 1>&6
  4401. +{ echo "$as_me:$LINENO: checking if ${CC} can compile elf.h" >&5
  4402. +echo $ECHO_N "checking if ${CC} can compile elf.h... $ECHO_C" >&6; }
  4403. +if test "${libelf_cv_elf_h_works+set}" = set; then
  4404. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4405. else
  4406. -
  4407. - cat > conftest.$ac_ext <<EOF
  4408. -#line 1237 "configure"
  4409. -#include "confdefs.h"
  4410. +
  4411. + cat >conftest.$ac_ext <<_ACEOF
  4412. +/* confdefs.h. */
  4413. +_ACEOF
  4414. +cat confdefs.h >>conftest.$ac_ext
  4415. +cat >>conftest.$ac_ext <<_ACEOF
  4416. +/* end confdefs.h. */
  4417. #if HAVE_ELF_H
  4418. #include <elf.h>
  4419. #elif HAVE_SYS_ELF_H
  4420. #include <sys/elf.h>
  4421. #endif
  4422. -int main() {
  4423. +int
  4424. +main ()
  4425. +{
  4426. Elf32_Ehdr dummy
  4427. -; return 0; }
  4428. -EOF
  4429. -if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4430. - rm -rf conftest*
  4431. + ;
  4432. + return 0;
  4433. +}
  4434. +_ACEOF
  4435. +rm -f conftest.$ac_objext
  4436. +if { (ac_try="$ac_compile"
  4437. +case "(($ac_try" in
  4438. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4439. + *) ac_try_echo=$ac_try;;
  4440. +esac
  4441. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4442. + (eval "$ac_compile") 2>conftest.er1
  4443. + ac_status=$?
  4444. + grep -v '^ *+' conftest.er1 >conftest.err
  4445. + rm -f conftest.er1
  4446. + cat conftest.err >&5
  4447. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4448. + (exit $ac_status); } && {
  4449. + test -z "$ac_c_werror_flag" ||
  4450. + test ! -s conftest.err
  4451. + } && test -s conftest.$ac_objext; then
  4452. libelf_cv_elf_h_works=yes
  4453. else
  4454. - echo "configure: failed program was:" >&5
  4455. - cat conftest.$ac_ext >&5
  4456. - rm -rf conftest*
  4457. - libelf_cv_elf_h_works=no
  4458. -fi
  4459. -rm -f conftest*
  4460. + echo "$as_me: failed program was:" >&5
  4461. +sed 's/^/| /' conftest.$ac_ext >&5
  4462. + libelf_cv_elf_h_works=no
  4463. fi
  4464. -echo "$ac_t""$libelf_cv_elf_h_works" 1>&6
  4465. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4466. +
  4467. +fi
  4468. +{ echo "$as_me:$LINENO: result: $libelf_cv_elf_h_works" >&5
  4469. +echo "${ECHO_T}$libelf_cv_elf_h_works" >&6; }
  4470. if test "$libelf_cv_elf_h_works" = no; then
  4471. ac_cv_header_elf_h=no
  4472. ac_cv_header_sys_elf_h=no
  4473. fi
  4474. if test "$ac_cv_header_elf_h" = yes; then
  4475. - cat >> confdefs.h <<\EOF
  4476. + cat >>confdefs.h <<\_ACEOF
  4477. #define __LIBELF_HEADER_ELF_H <elf.h>
  4478. -EOF
  4479. +_ACEOF
  4480. elif test "$ac_cv_header_sys_elf_h" = yes; then
  4481. - cat >> confdefs.h <<\EOF
  4482. + cat >>confdefs.h <<\_ACEOF
  4483. #define __LIBELF_HEADER_ELF_H <sys/elf.h>
  4484. -EOF
  4485. +_ACEOF
  4486. fi
  4487. -for ac_hdr in ar.h libelf.h nlist.h gelf.h
  4488. +
  4489. +
  4490. +
  4491. +
  4492. +for ac_header in ar.h libelf.h nlist.h gelf.h
  4493. do
  4494. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4495. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4496. -echo "configure:1282: checking for $ac_hdr" >&5
  4497. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4498. - echo $ac_n "(cached) $ac_c" 1>&6
  4499. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4500. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4501. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4502. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4503. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4504. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4505. +fi
  4506. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4507. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4508. +echo "${ECHO_T}$ac_res" >&6; }
  4509. else
  4510. - cat > conftest.$ac_ext <<EOF
  4511. -#line 1287 "configure"
  4512. -#include "confdefs.h"
  4513. -#include <$ac_hdr>
  4514. -EOF
  4515. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4516. -{ (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4517. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4518. -if test -z "$ac_err"; then
  4519. - rm -rf conftest*
  4520. - eval "ac_cv_header_$ac_safe=yes"
  4521. + # Is the header compilable?
  4522. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4523. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4524. +cat >conftest.$ac_ext <<_ACEOF
  4525. +/* confdefs.h. */
  4526. +_ACEOF
  4527. +cat confdefs.h >>conftest.$ac_ext
  4528. +cat >>conftest.$ac_ext <<_ACEOF
  4529. +/* end confdefs.h. */
  4530. +$ac_includes_default
  4531. +#include <$ac_header>
  4532. +_ACEOF
  4533. +rm -f conftest.$ac_objext
  4534. +if { (ac_try="$ac_compile"
  4535. +case "(($ac_try" in
  4536. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4537. + *) ac_try_echo=$ac_try;;
  4538. +esac
  4539. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4540. + (eval "$ac_compile") 2>conftest.er1
  4541. + ac_status=$?
  4542. + grep -v '^ *+' conftest.er1 >conftest.err
  4543. + rm -f conftest.er1
  4544. + cat conftest.err >&5
  4545. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. + (exit $ac_status); } && {
  4547. + test -z "$ac_c_werror_flag" ||
  4548. + test ! -s conftest.err
  4549. + } && test -s conftest.$ac_objext; then
  4550. + ac_header_compiler=yes
  4551. else
  4552. - echo "$ac_err" >&5
  4553. - echo "configure: failed program was:" >&5
  4554. - cat conftest.$ac_ext >&5
  4555. - rm -rf conftest*
  4556. - eval "ac_cv_header_$ac_safe=no"
  4557. + echo "$as_me: failed program was:" >&5
  4558. +sed 's/^/| /' conftest.$ac_ext >&5
  4559. +
  4560. + ac_header_compiler=no
  4561. fi
  4562. -rm -f conftest*
  4563. +
  4564. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4565. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4566. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  4567. +
  4568. +# Is the header present?
  4569. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4570. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4571. +cat >conftest.$ac_ext <<_ACEOF
  4572. +/* confdefs.h. */
  4573. +_ACEOF
  4574. +cat confdefs.h >>conftest.$ac_ext
  4575. +cat >>conftest.$ac_ext <<_ACEOF
  4576. +/* end confdefs.h. */
  4577. +#include <$ac_header>
  4578. +_ACEOF
  4579. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  4580. +case "(($ac_try" in
  4581. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4582. + *) ac_try_echo=$ac_try;;
  4583. +esac
  4584. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4585. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4586. + ac_status=$?
  4587. + grep -v '^ *+' conftest.er1 >conftest.err
  4588. + rm -f conftest.er1
  4589. + cat conftest.err >&5
  4590. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. + (exit $ac_status); } >/dev/null && {
  4592. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4593. + test ! -s conftest.err
  4594. + }; then
  4595. + ac_header_preproc=yes
  4596. +else
  4597. + echo "$as_me: failed program was:" >&5
  4598. +sed 's/^/| /' conftest.$ac_ext >&5
  4599. +
  4600. + ac_header_preproc=no
  4601. fi
  4602. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4603. - echo "$ac_t""yes" 1>&6
  4604. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4605. - cat >> confdefs.h <<EOF
  4606. -#define $ac_tr_hdr 1
  4607. -EOF
  4608. -
  4609. +
  4610. +rm -f conftest.err conftest.$ac_ext
  4611. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4612. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  4613. +
  4614. +# So? What about this header?
  4615. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4616. + yes:no: )
  4617. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4618. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4619. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4620. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4621. + ac_header_preproc=yes
  4622. + ;;
  4623. + no:yes:* )
  4624. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4625. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4626. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4627. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4628. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4629. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4630. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4631. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4632. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4633. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4634. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4635. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4636. +
  4637. + ;;
  4638. +esac
  4639. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  4640. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4641. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4642. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4643. else
  4644. - echo "$ac_t""no" 1>&6
  4645. + eval "$as_ac_Header=\$ac_header_preproc"
  4646. +fi
  4647. +ac_res=`eval echo '${'$as_ac_Header'}'`
  4648. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  4649. +echo "${ECHO_T}$ac_res" >&6; }
  4650. +
  4651. +fi
  4652. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4653. + cat >>confdefs.h <<_ACEOF
  4654. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4655. +_ACEOF
  4656. +
  4657. fi
  4658. +
  4659. done
  4660. -echo $ac_n "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>""... $ac_c" 1>&6
  4661. -echo "configure:1319: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
  4662. -# Check whether --enable-compat or --disable-compat was given.
  4663. +{ echo "$as_me:$LINENO: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
  4664. +echo $ECHO_N "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>... $ECHO_C" >&6; }
  4665. +# Check whether --enable-compat was given.
  4666. if test "${enable_compat+set}" = set; then
  4667. - enableval="$enable_compat"
  4668. - DO_COMPAT="$enableval"
  4669. + enableval=$enable_compat; DO_COMPAT="$enableval"
  4670. else
  4671. if test "$ac_cv_header_libelf_h$ac_cv_header_nlist_h$ac_cv_header_gelf_h" = yesyesyes
  4672. then DO_COMPAT=no
  4673. @@ -1327,345 +4081,2267 @@ else
  4674. fi
  4675. fi
  4676. -echo "$ac_t""$DO_COMPAT" 1>&6
  4677. +{ echo "$as_me:$LINENO: result: $DO_COMPAT" >&5
  4678. +echo "${ECHO_T}$DO_COMPAT" >&6; }
  4679. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  4680. -echo "configure:1335: checking for working const" >&5
  4681. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  4682. - echo $ac_n "(cached) $ac_c" 1>&6
  4683. +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4684. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  4685. +if test "${ac_cv_c_const+set}" = set; then
  4686. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. else
  4688. - cat > conftest.$ac_ext <<EOF
  4689. -#line 1340 "configure"
  4690. -#include "confdefs.h"
  4691. + cat >conftest.$ac_ext <<_ACEOF
  4692. +/* confdefs.h. */
  4693. +_ACEOF
  4694. +cat confdefs.h >>conftest.$ac_ext
  4695. +cat >>conftest.$ac_ext <<_ACEOF
  4696. +/* end confdefs.h. */
  4697. -int main() {
  4698. +int
  4699. +main ()
  4700. +{
  4701. +/* FIXME: Include the comments suggested by Paul. */
  4702. +#ifndef __cplusplus
  4703. + /* Ultrix mips cc rejects this. */
  4704. + typedef int charset[2];
  4705. + const charset cs;
  4706. + /* SunOS 4.1.1 cc rejects this. */
  4707. + char const *const *pcpcc;
  4708. + char **ppc;
  4709. + /* NEC SVR4.0.2 mips cc rejects this. */
  4710. + struct point {int x, y;};
  4711. + static struct point const zero = {0,0};
  4712. + /* AIX XL C 1.02.0.0 rejects this.
  4713. + It does not let you subtract one const X* pointer from another in
  4714. + an arm of an if-expression whose if-part is not a constant
  4715. + expression */
  4716. + const char *g = "string";
  4717. + pcpcc = &g + (g ? g-g : 0);
  4718. + /* HPUX 7.0 cc rejects these. */
  4719. + ++pcpcc;
  4720. + ppc = (char**) pcpcc;
  4721. + pcpcc = (char const *const *) ppc;
  4722. + { /* SCO 3.2v4 cc rejects this. */
  4723. + char *t;
  4724. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  4725. -/* Ultrix mips cc rejects this. */
  4726. -typedef int charset[2]; const charset x;
  4727. -/* SunOS 4.1.1 cc rejects this. */
  4728. -char const *const *ccp;
  4729. -char **p;
  4730. -/* NEC SVR4.0.2 mips cc rejects this. */
  4731. -struct point {int x, y;};
  4732. -static struct point const zero = {0,0};
  4733. -/* AIX XL C 1.02.0.0 rejects this.
  4734. - It does not let you subtract one const X* pointer from another in an arm
  4735. - of an if-expression whose if-part is not a constant expression */
  4736. -const char *g = "string";
  4737. -ccp = &g + (g ? g-g : 0);
  4738. -/* HPUX 7.0 cc rejects these. */
  4739. -++ccp;
  4740. -p = (char**) ccp;
  4741. -ccp = (char const *const *) p;
  4742. -{ /* SCO 3.2v4 cc rejects this. */
  4743. - char *t;
  4744. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  4745. + *t++ = 0;
  4746. + if (s) return 0;
  4747. + }
  4748. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4749. + int x[] = {25, 17};
  4750. + const int *foo = &x[0];
  4751. + ++foo;
  4752. + }
  4753. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4754. + typedef const int *iptr;
  4755. + iptr p = 0;
  4756. + ++p;
  4757. + }
  4758. + { /* AIX XL C 1.02.0.0 rejects this saying
  4759. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4760. + struct s { int j; const int *ap[3]; };
  4761. + struct s *b; b->j = 5;
  4762. + }
  4763. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4764. + const int foo = 10;
  4765. + if (!foo) return 0;
  4766. + }
  4767. + return !cs[0] && !zero.x;
  4768. +#endif
  4769. - *t++ = 0;
  4770. -}
  4771. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4772. - int x[] = {25, 17};
  4773. - const int *foo = &x[0];
  4774. - ++foo;
  4775. -}
  4776. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4777. - typedef const int *iptr;
  4778. - iptr p = 0;
  4779. - ++p;
  4780. -}
  4781. -{ /* AIX XL C 1.02.0.0 rejects this saying
  4782. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4783. - struct s { int j; const int *ap[3]; };
  4784. - struct s *b; b->j = 5;
  4785. -}
  4786. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4787. - const int foo = 10;
  4788. + ;
  4789. + return 0;
  4790. }
  4791. -
  4792. -; return 0; }
  4793. -EOF
  4794. -if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4795. - rm -rf conftest*
  4796. +_ACEOF
  4797. +rm -f conftest.$ac_objext
  4798. +if { (ac_try="$ac_compile"
  4799. +case "(($ac_try" in
  4800. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801. + *) ac_try_echo=$ac_try;;
  4802. +esac
  4803. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4804. + (eval "$ac_compile") 2>conftest.er1
  4805. + ac_status=$?
  4806. + grep -v '^ *+' conftest.er1 >conftest.err
  4807. + rm -f conftest.er1
  4808. + cat conftest.err >&5
  4809. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. + (exit $ac_status); } && {
  4811. + test -z "$ac_c_werror_flag" ||
  4812. + test ! -s conftest.err
  4813. + } && test -s conftest.$ac_objext; then
  4814. ac_cv_c_const=yes
  4815. else
  4816. - echo "configure: failed program was:" >&5
  4817. - cat conftest.$ac_ext >&5
  4818. - rm -rf conftest*
  4819. - ac_cv_c_const=no
  4820. -fi
  4821. -rm -f conftest*
  4822. + echo "$as_me: failed program was:" >&5
  4823. +sed 's/^/| /' conftest.$ac_ext >&5
  4824. +
  4825. + ac_cv_c_const=no
  4826. fi
  4827. -echo "$ac_t""$ac_cv_c_const" 1>&6
  4828. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4829. +fi
  4830. +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4831. +echo "${ECHO_T}$ac_cv_c_const" >&6; }
  4832. if test $ac_cv_c_const = no; then
  4833. - cat >> confdefs.h <<\EOF
  4834. -#define const
  4835. -EOF
  4836. +
  4837. +cat >>confdefs.h <<\_ACEOF
  4838. +#define const
  4839. +_ACEOF
  4840. fi
  4841. -echo $ac_n "checking for off_t""... $ac_c" 1>&6
  4842. -echo "configure:1410: checking for off_t" >&5
  4843. -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  4844. - echo $ac_n "(cached) $ac_c" 1>&6
  4845. +{ echo "$as_me:$LINENO: checking for off_t" >&5
  4846. +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  4847. +if test "${ac_cv_type_off_t+set}" = set; then
  4848. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4849. else
  4850. - cat > conftest.$ac_ext <<EOF
  4851. -#line 1415 "configure"
  4852. -#include "confdefs.h"
  4853. -#include <sys/types.h>
  4854. -#if STDC_HEADERS
  4855. -#include <stdlib.h>
  4856. -#include <stddef.h>
  4857. -#endif
  4858. -EOF
  4859. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4860. - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  4861. - rm -rf conftest*
  4862. + cat >conftest.$ac_ext <<_ACEOF
  4863. +/* confdefs.h. */
  4864. +_ACEOF
  4865. +cat confdefs.h >>conftest.$ac_ext
  4866. +cat >>conftest.$ac_ext <<_ACEOF
  4867. +/* end confdefs.h. */
  4868. +$ac_includes_default
  4869. +typedef off_t ac__type_new_;
  4870. +int
  4871. +main ()
  4872. +{
  4873. +if ((ac__type_new_ *) 0)
  4874. + return 0;
  4875. +if (sizeof (ac__type_new_))
  4876. + return 0;
  4877. + ;
  4878. + return 0;
  4879. +}
  4880. +_ACEOF
  4881. +rm -f conftest.$ac_objext
  4882. +if { (ac_try="$ac_compile"
  4883. +case "(($ac_try" in
  4884. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4885. + *) ac_try_echo=$ac_try;;
  4886. +esac
  4887. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4888. + (eval "$ac_compile") 2>conftest.er1
  4889. + ac_status=$?
  4890. + grep -v '^ *+' conftest.er1 >conftest.err
  4891. + rm -f conftest.er1
  4892. + cat conftest.err >&5
  4893. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4894. + (exit $ac_status); } && {
  4895. + test -z "$ac_c_werror_flag" ||
  4896. + test ! -s conftest.err
  4897. + } && test -s conftest.$ac_objext; then
  4898. ac_cv_type_off_t=yes
  4899. else
  4900. - rm -rf conftest*
  4901. - ac_cv_type_off_t=no
  4902. + echo "$as_me: failed program was:" >&5
  4903. +sed 's/^/| /' conftest.$ac_ext >&5
  4904. +
  4905. + ac_cv_type_off_t=no
  4906. fi
  4907. -rm -f conftest*
  4908. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4909. fi
  4910. -echo "$ac_t""$ac_cv_type_off_t" 1>&6
  4911. -if test $ac_cv_type_off_t = no; then
  4912. - cat >> confdefs.h <<\EOF
  4913. -#define off_t long
  4914. -EOF
  4915. +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  4916. +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  4917. +if test $ac_cv_type_off_t = yes; then
  4918. + :
  4919. +else
  4920. +
  4921. +cat >>confdefs.h <<_ACEOF
  4922. +#define off_t long int
  4923. +_ACEOF
  4924. fi
  4925. -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  4926. -echo "configure:1443: checking for size_t" >&5
  4927. -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  4928. - echo $ac_n "(cached) $ac_c" 1>&6
  4929. +{ echo "$as_me:$LINENO: checking for size_t" >&5
  4930. +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  4931. +if test "${ac_cv_type_size_t+set}" = set; then
  4932. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4933. else
  4934. - cat > conftest.$ac_ext <<EOF
  4935. -#line 1448 "configure"
  4936. -#include "confdefs.h"
  4937. -#include <sys/types.h>
  4938. -#if STDC_HEADERS
  4939. -#include <stdlib.h>
  4940. -#include <stddef.h>
  4941. -#endif
  4942. -EOF
  4943. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4944. - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  4945. - rm -rf conftest*
  4946. + cat >conftest.$ac_ext <<_ACEOF
  4947. +/* confdefs.h. */
  4948. +_ACEOF
  4949. +cat confdefs.h >>conftest.$ac_ext
  4950. +cat >>conftest.$ac_ext <<_ACEOF
  4951. +/* end confdefs.h. */
  4952. +$ac_includes_default
  4953. +typedef size_t ac__type_new_;
  4954. +int
  4955. +main ()
  4956. +{
  4957. +if ((ac__type_new_ *) 0)
  4958. + return 0;
  4959. +if (sizeof (ac__type_new_))
  4960. + return 0;
  4961. + ;
  4962. + return 0;
  4963. +}
  4964. +_ACEOF
  4965. +rm -f conftest.$ac_objext
  4966. +if { (ac_try="$ac_compile"
  4967. +case "(($ac_try" in
  4968. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4969. + *) ac_try_echo=$ac_try;;
  4970. +esac
  4971. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4972. + (eval "$ac_compile") 2>conftest.er1
  4973. + ac_status=$?
  4974. + grep -v '^ *+' conftest.er1 >conftest.err
  4975. + rm -f conftest.er1
  4976. + cat conftest.err >&5
  4977. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. + (exit $ac_status); } && {
  4979. + test -z "$ac_c_werror_flag" ||
  4980. + test ! -s conftest.err
  4981. + } && test -s conftest.$ac_objext; then
  4982. ac_cv_type_size_t=yes
  4983. else
  4984. - rm -rf conftest*
  4985. - ac_cv_type_size_t=no
  4986. + echo "$as_me: failed program was:" >&5
  4987. +sed 's/^/| /' conftest.$ac_ext >&5
  4988. +
  4989. + ac_cv_type_size_t=no
  4990. fi
  4991. -rm -f conftest*
  4992. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4993. fi
  4994. -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  4995. -if test $ac_cv_type_size_t = no; then
  4996. - cat >> confdefs.h <<\EOF
  4997. -#define size_t unsigned
  4998. -EOF
  4999. +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5000. +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5001. +if test $ac_cv_type_size_t = yes; then
  5002. + :
  5003. +else
  5004. +
  5005. +cat >>confdefs.h <<_ACEOF
  5006. +#define size_t unsigned int
  5007. +_ACEOF
  5008. fi
  5009. -echo $ac_n "checking size of short""... $ac_c" 1>&6
  5010. -echo "configure:1477: checking size of short" >&5
  5011. -if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  5012. - echo $ac_n "(cached) $ac_c" 1>&6
  5013. +{ echo "$as_me:$LINENO: checking for short" >&5
  5014. +echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  5015. +if test "${ac_cv_type_short+set}" = set; then
  5016. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5017. +else
  5018. + cat >conftest.$ac_ext <<_ACEOF
  5019. +/* confdefs.h. */
  5020. +_ACEOF
  5021. +cat confdefs.h >>conftest.$ac_ext
  5022. +cat >>conftest.$ac_ext <<_ACEOF
  5023. +/* end confdefs.h. */
  5024. +$ac_includes_default
  5025. +typedef short ac__type_new_;
  5026. +int
  5027. +main ()
  5028. +{
  5029. +if ((ac__type_new_ *) 0)
  5030. + return 0;
  5031. +if (sizeof (ac__type_new_))
  5032. + return 0;
  5033. + ;
  5034. + return 0;
  5035. +}
  5036. +_ACEOF
  5037. +rm -f conftest.$ac_objext
  5038. +if { (ac_try="$ac_compile"
  5039. +case "(($ac_try" in
  5040. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5041. + *) ac_try_echo=$ac_try;;
  5042. +esac
  5043. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5044. + (eval "$ac_compile") 2>conftest.er1
  5045. + ac_status=$?
  5046. + grep -v '^ *+' conftest.er1 >conftest.err
  5047. + rm -f conftest.er1
  5048. + cat conftest.err >&5
  5049. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. + (exit $ac_status); } && {
  5051. + test -z "$ac_c_werror_flag" ||
  5052. + test ! -s conftest.err
  5053. + } && test -s conftest.$ac_objext; then
  5054. + ac_cv_type_short=yes
  5055. +else
  5056. + echo "$as_me: failed program was:" >&5
  5057. +sed 's/^/| /' conftest.$ac_ext >&5
  5058. +
  5059. + ac_cv_type_short=no
  5060. +fi
  5061. +
  5062. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5063. +fi
  5064. +{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5065. +echo "${ECHO_T}$ac_cv_type_short" >&6; }
  5066. +
  5067. +# The cast to long int works around a bug in the HP C Compiler
  5068. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5069. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5070. +# This bug is HP SR number 8606223364.
  5071. +{ echo "$as_me:$LINENO: checking size of short" >&5
  5072. +echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  5073. +if test "${ac_cv_sizeof_short+set}" = set; then
  5074. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5075. else
  5076. if test "$cross_compiling" = yes; then
  5077. - ac_cv_sizeof_short=2
  5078. + # Depending upon the size, compute the lo and hi bounds.
  5079. +cat >conftest.$ac_ext <<_ACEOF
  5080. +/* confdefs.h. */
  5081. +_ACEOF
  5082. +cat confdefs.h >>conftest.$ac_ext
  5083. +cat >>conftest.$ac_ext <<_ACEOF
  5084. +/* end confdefs.h. */
  5085. +$ac_includes_default
  5086. + typedef short ac__type_sizeof_;
  5087. +int
  5088. +main ()
  5089. +{
  5090. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5091. +test_array [0] = 0
  5092. +
  5093. + ;
  5094. + return 0;
  5095. +}
  5096. +_ACEOF
  5097. +rm -f conftest.$ac_objext
  5098. +if { (ac_try="$ac_compile"
  5099. +case "(($ac_try" in
  5100. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5101. + *) ac_try_echo=$ac_try;;
  5102. +esac
  5103. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5104. + (eval "$ac_compile") 2>conftest.er1
  5105. + ac_status=$?
  5106. + grep -v '^ *+' conftest.er1 >conftest.err
  5107. + rm -f conftest.er1
  5108. + cat conftest.err >&5
  5109. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5110. + (exit $ac_status); } && {
  5111. + test -z "$ac_c_werror_flag" ||
  5112. + test ! -s conftest.err
  5113. + } && test -s conftest.$ac_objext; then
  5114. + ac_lo=0 ac_mid=0
  5115. + while :; do
  5116. + cat >conftest.$ac_ext <<_ACEOF
  5117. +/* confdefs.h. */
  5118. +_ACEOF
  5119. +cat confdefs.h >>conftest.$ac_ext
  5120. +cat >>conftest.$ac_ext <<_ACEOF
  5121. +/* end confdefs.h. */
  5122. +$ac_includes_default
  5123. + typedef short ac__type_sizeof_;
  5124. +int
  5125. +main ()
  5126. +{
  5127. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5128. +test_array [0] = 0
  5129. +
  5130. + ;
  5131. + return 0;
  5132. +}
  5133. +_ACEOF
  5134. +rm -f conftest.$ac_objext
  5135. +if { (ac_try="$ac_compile"
  5136. +case "(($ac_try" in
  5137. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5138. + *) ac_try_echo=$ac_try;;
  5139. +esac
  5140. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5141. + (eval "$ac_compile") 2>conftest.er1
  5142. + ac_status=$?
  5143. + grep -v '^ *+' conftest.er1 >conftest.err
  5144. + rm -f conftest.er1
  5145. + cat conftest.err >&5
  5146. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5147. + (exit $ac_status); } && {
  5148. + test -z "$ac_c_werror_flag" ||
  5149. + test ! -s conftest.err
  5150. + } && test -s conftest.$ac_objext; then
  5151. + ac_hi=$ac_mid; break
  5152. else
  5153. - cat > conftest.$ac_ext <<EOF
  5154. -#line 1485 "configure"
  5155. -#include "confdefs.h"
  5156. -#include <stdio.h>
  5157. -main()
  5158. + echo "$as_me: failed program was:" >&5
  5159. +sed 's/^/| /' conftest.$ac_ext >&5
  5160. +
  5161. + ac_lo=`expr $ac_mid + 1`
  5162. + if test $ac_lo -le $ac_mid; then
  5163. + ac_lo= ac_hi=
  5164. + break
  5165. + fi
  5166. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5167. +fi
  5168. +
  5169. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5170. + done
  5171. +else
  5172. + echo "$as_me: failed program was:" >&5
  5173. +sed 's/^/| /' conftest.$ac_ext >&5
  5174. +
  5175. + cat >conftest.$ac_ext <<_ACEOF
  5176. +/* confdefs.h. */
  5177. +_ACEOF
  5178. +cat confdefs.h >>conftest.$ac_ext
  5179. +cat >>conftest.$ac_ext <<_ACEOF
  5180. +/* end confdefs.h. */
  5181. +$ac_includes_default
  5182. + typedef short ac__type_sizeof_;
  5183. +int
  5184. +main ()
  5185. {
  5186. - FILE *f=fopen("conftestval", "w");
  5187. - if (!f) exit(1);
  5188. - fprintf(f, "%d\n", sizeof(short));
  5189. - exit(0);
  5190. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5191. +test_array [0] = 0
  5192. +
  5193. + ;
  5194. + return 0;
  5195. }
  5196. -EOF
  5197. -if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5198. -then
  5199. - ac_cv_sizeof_short=`cat conftestval`
  5200. +_ACEOF
  5201. +rm -f conftest.$ac_objext
  5202. +if { (ac_try="$ac_compile"
  5203. +case "(($ac_try" in
  5204. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5205. + *) ac_try_echo=$ac_try;;
  5206. +esac
  5207. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5208. + (eval "$ac_compile") 2>conftest.er1
  5209. + ac_status=$?
  5210. + grep -v '^ *+' conftest.er1 >conftest.err
  5211. + rm -f conftest.er1
  5212. + cat conftest.err >&5
  5213. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5214. + (exit $ac_status); } && {
  5215. + test -z "$ac_c_werror_flag" ||
  5216. + test ! -s conftest.err
  5217. + } && test -s conftest.$ac_objext; then
  5218. + ac_hi=-1 ac_mid=-1
  5219. + while :; do
  5220. + cat >conftest.$ac_ext <<_ACEOF
  5221. +/* confdefs.h. */
  5222. +_ACEOF
  5223. +cat confdefs.h >>conftest.$ac_ext
  5224. +cat >>conftest.$ac_ext <<_ACEOF
  5225. +/* end confdefs.h. */
  5226. +$ac_includes_default
  5227. + typedef short ac__type_sizeof_;
  5228. +int
  5229. +main ()
  5230. +{
  5231. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5232. +test_array [0] = 0
  5233. +
  5234. + ;
  5235. + return 0;
  5236. +}
  5237. +_ACEOF
  5238. +rm -f conftest.$ac_objext
  5239. +if { (ac_try="$ac_compile"
  5240. +case "(($ac_try" in
  5241. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5242. + *) ac_try_echo=$ac_try;;
  5243. +esac
  5244. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5245. + (eval "$ac_compile") 2>conftest.er1
  5246. + ac_status=$?
  5247. + grep -v '^ *+' conftest.er1 >conftest.err
  5248. + rm -f conftest.er1
  5249. + cat conftest.err >&5
  5250. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5251. + (exit $ac_status); } && {
  5252. + test -z "$ac_c_werror_flag" ||
  5253. + test ! -s conftest.err
  5254. + } && test -s conftest.$ac_objext; then
  5255. + ac_lo=$ac_mid; break
  5256. else
  5257. - echo "configure: failed program was:" >&5
  5258. - cat conftest.$ac_ext >&5
  5259. - rm -fr conftest*
  5260. - ac_cv_sizeof_short=0
  5261. + echo "$as_me: failed program was:" >&5
  5262. +sed 's/^/| /' conftest.$ac_ext >&5
  5263. +
  5264. + ac_hi=`expr '(' $ac_mid ')' - 1`
  5265. + if test $ac_mid -le $ac_hi; then
  5266. + ac_lo= ac_hi=
  5267. + break
  5268. + fi
  5269. + ac_mid=`expr 2 '*' $ac_mid`
  5270. fi
  5271. -rm -fr conftest*
  5272. +
  5273. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5274. + done
  5275. +else
  5276. + echo "$as_me: failed program was:" >&5
  5277. +sed 's/^/| /' conftest.$ac_ext >&5
  5278. +
  5279. + ac_lo= ac_hi=
  5280. fi
  5281. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5282. fi
  5283. -echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  5284. -cat >> confdefs.h <<EOF
  5285. +
  5286. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5287. +# Binary search between lo and hi bounds.
  5288. +while test "x$ac_lo" != "x$ac_hi"; do
  5289. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5290. + cat >conftest.$ac_ext <<_ACEOF
  5291. +/* confdefs.h. */
  5292. +_ACEOF
  5293. +cat confdefs.h >>conftest.$ac_ext
  5294. +cat >>conftest.$ac_ext <<_ACEOF
  5295. +/* end confdefs.h. */
  5296. +$ac_includes_default
  5297. + typedef short ac__type_sizeof_;
  5298. +int
  5299. +main ()
  5300. +{
  5301. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5302. +test_array [0] = 0
  5303. +
  5304. + ;
  5305. + return 0;
  5306. +}
  5307. +_ACEOF
  5308. +rm -f conftest.$ac_objext
  5309. +if { (ac_try="$ac_compile"
  5310. +case "(($ac_try" in
  5311. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5312. + *) ac_try_echo=$ac_try;;
  5313. +esac
  5314. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5315. + (eval "$ac_compile") 2>conftest.er1
  5316. + ac_status=$?
  5317. + grep -v '^ *+' conftest.er1 >conftest.err
  5318. + rm -f conftest.er1
  5319. + cat conftest.err >&5
  5320. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. + (exit $ac_status); } && {
  5322. + test -z "$ac_c_werror_flag" ||
  5323. + test ! -s conftest.err
  5324. + } && test -s conftest.$ac_objext; then
  5325. + ac_hi=$ac_mid
  5326. +else
  5327. + echo "$as_me: failed program was:" >&5
  5328. +sed 's/^/| /' conftest.$ac_ext >&5
  5329. +
  5330. + ac_lo=`expr '(' $ac_mid ')' + 1`
  5331. +fi
  5332. +
  5333. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5334. +done
  5335. +case $ac_lo in
  5336. +?*) ac_cv_sizeof_short=$ac_lo;;
  5337. +'') if test "$ac_cv_type_short" = yes; then
  5338. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  5339. +See \`config.log' for more details." >&5
  5340. +echo "$as_me: error: cannot compute sizeof (short)
  5341. +See \`config.log' for more details." >&2;}
  5342. + { (exit 77); exit 77; }; }
  5343. + else
  5344. + ac_cv_sizeof_short=0
  5345. + fi ;;
  5346. +esac
  5347. +else
  5348. + cat >conftest.$ac_ext <<_ACEOF
  5349. +/* confdefs.h. */
  5350. +_ACEOF
  5351. +cat confdefs.h >>conftest.$ac_ext
  5352. +cat >>conftest.$ac_ext <<_ACEOF
  5353. +/* end confdefs.h. */
  5354. +$ac_includes_default
  5355. + typedef short ac__type_sizeof_;
  5356. +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5357. +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5358. +#include <stdio.h>
  5359. +#include <stdlib.h>
  5360. +int
  5361. +main ()
  5362. +{
  5363. +
  5364. + FILE *f = fopen ("conftest.val", "w");
  5365. + if (! f)
  5366. + return 1;
  5367. + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5368. + {
  5369. + long int i = longval ();
  5370. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5371. + return 1;
  5372. + fprintf (f, "%ld\n", i);
  5373. + }
  5374. + else
  5375. + {
  5376. + unsigned long int i = ulongval ();
  5377. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5378. + return 1;
  5379. + fprintf (f, "%lu\n", i);
  5380. + }
  5381. + return ferror (f) || fclose (f) != 0;
  5382. +
  5383. + ;
  5384. + return 0;
  5385. +}
  5386. +_ACEOF
  5387. +rm -f conftest$ac_exeext
  5388. +if { (ac_try="$ac_link"
  5389. +case "(($ac_try" in
  5390. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5391. + *) ac_try_echo=$ac_try;;
  5392. +esac
  5393. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5394. + (eval "$ac_link") 2>&5
  5395. + ac_status=$?
  5396. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5398. + { (case "(($ac_try" in
  5399. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5400. + *) ac_try_echo=$ac_try;;
  5401. +esac
  5402. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5403. + (eval "$ac_try") 2>&5
  5404. + ac_status=$?
  5405. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. + (exit $ac_status); }; }; then
  5407. + ac_cv_sizeof_short=`cat conftest.val`
  5408. +else
  5409. + echo "$as_me: program exited with status $ac_status" >&5
  5410. +echo "$as_me: failed program was:" >&5
  5411. +sed 's/^/| /' conftest.$ac_ext >&5
  5412. +
  5413. +( exit $ac_status )
  5414. +if test "$ac_cv_type_short" = yes; then
  5415. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  5416. +See \`config.log' for more details." >&5
  5417. +echo "$as_me: error: cannot compute sizeof (short)
  5418. +See \`config.log' for more details." >&2;}
  5419. + { (exit 77); exit 77; }; }
  5420. + else
  5421. + ac_cv_sizeof_short=0
  5422. + fi
  5423. +fi
  5424. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5425. +fi
  5426. +rm -f conftest.val
  5427. +fi
  5428. +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5429. +echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  5430. +
  5431. +
  5432. +
  5433. +cat >>confdefs.h <<_ACEOF
  5434. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5435. -EOF
  5436. +_ACEOF
  5437. -echo $ac_n "checking size of int""... $ac_c" 1>&6
  5438. -echo "configure:1516: checking size of int" >&5
  5439. -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  5440. - echo $ac_n "(cached) $ac_c" 1>&6
  5441. +{ echo "$as_me:$LINENO: checking for int" >&5
  5442. +echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  5443. +if test "${ac_cv_type_int+set}" = set; then
  5444. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5445. +else
  5446. + cat >conftest.$ac_ext <<_ACEOF
  5447. +/* confdefs.h. */
  5448. +_ACEOF
  5449. +cat confdefs.h >>conftest.$ac_ext
  5450. +cat >>conftest.$ac_ext <<_ACEOF
  5451. +/* end confdefs.h. */
  5452. +$ac_includes_default
  5453. +typedef int ac__type_new_;
  5454. +int
  5455. +main ()
  5456. +{
  5457. +if ((ac__type_new_ *) 0)
  5458. + return 0;
  5459. +if (sizeof (ac__type_new_))
  5460. + return 0;
  5461. + ;
  5462. + return 0;
  5463. +}
  5464. +_ACEOF
  5465. +rm -f conftest.$ac_objext
  5466. +if { (ac_try="$ac_compile"
  5467. +case "(($ac_try" in
  5468. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5469. + *) ac_try_echo=$ac_try;;
  5470. +esac
  5471. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5472. + (eval "$ac_compile") 2>conftest.er1
  5473. + ac_status=$?
  5474. + grep -v '^ *+' conftest.er1 >conftest.err
  5475. + rm -f conftest.er1
  5476. + cat conftest.err >&5
  5477. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5478. + (exit $ac_status); } && {
  5479. + test -z "$ac_c_werror_flag" ||
  5480. + test ! -s conftest.err
  5481. + } && test -s conftest.$ac_objext; then
  5482. + ac_cv_type_int=yes
  5483. +else
  5484. + echo "$as_me: failed program was:" >&5
  5485. +sed 's/^/| /' conftest.$ac_ext >&5
  5486. +
  5487. + ac_cv_type_int=no
  5488. +fi
  5489. +
  5490. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5491. +fi
  5492. +{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5493. +echo "${ECHO_T}$ac_cv_type_int" >&6; }
  5494. +
  5495. +# The cast to long int works around a bug in the HP C Compiler
  5496. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5497. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5498. +# This bug is HP SR number 8606223364.
  5499. +{ echo "$as_me:$LINENO: checking size of int" >&5
  5500. +echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  5501. +if test "${ac_cv_sizeof_int+set}" = set; then
  5502. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5503. else
  5504. if test "$cross_compiling" = yes; then
  5505. - ac_cv_sizeof_int=4
  5506. + # Depending upon the size, compute the lo and hi bounds.
  5507. +cat >conftest.$ac_ext <<_ACEOF
  5508. +/* confdefs.h. */
  5509. +_ACEOF
  5510. +cat confdefs.h >>conftest.$ac_ext
  5511. +cat >>conftest.$ac_ext <<_ACEOF
  5512. +/* end confdefs.h. */
  5513. +$ac_includes_default
  5514. + typedef int ac__type_sizeof_;
  5515. +int
  5516. +main ()
  5517. +{
  5518. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5519. +test_array [0] = 0
  5520. +
  5521. + ;
  5522. + return 0;
  5523. +}
  5524. +_ACEOF
  5525. +rm -f conftest.$ac_objext
  5526. +if { (ac_try="$ac_compile"
  5527. +case "(($ac_try" in
  5528. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5529. + *) ac_try_echo=$ac_try;;
  5530. +esac
  5531. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5532. + (eval "$ac_compile") 2>conftest.er1
  5533. + ac_status=$?
  5534. + grep -v '^ *+' conftest.er1 >conftest.err
  5535. + rm -f conftest.er1
  5536. + cat conftest.err >&5
  5537. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5538. + (exit $ac_status); } && {
  5539. + test -z "$ac_c_werror_flag" ||
  5540. + test ! -s conftest.err
  5541. + } && test -s conftest.$ac_objext; then
  5542. + ac_lo=0 ac_mid=0
  5543. + while :; do
  5544. + cat >conftest.$ac_ext <<_ACEOF
  5545. +/* confdefs.h. */
  5546. +_ACEOF
  5547. +cat confdefs.h >>conftest.$ac_ext
  5548. +cat >>conftest.$ac_ext <<_ACEOF
  5549. +/* end confdefs.h. */
  5550. +$ac_includes_default
  5551. + typedef int ac__type_sizeof_;
  5552. +int
  5553. +main ()
  5554. +{
  5555. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5556. +test_array [0] = 0
  5557. +
  5558. + ;
  5559. + return 0;
  5560. +}
  5561. +_ACEOF
  5562. +rm -f conftest.$ac_objext
  5563. +if { (ac_try="$ac_compile"
  5564. +case "(($ac_try" in
  5565. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5566. + *) ac_try_echo=$ac_try;;
  5567. +esac
  5568. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5569. + (eval "$ac_compile") 2>conftest.er1
  5570. + ac_status=$?
  5571. + grep -v '^ *+' conftest.er1 >conftest.err
  5572. + rm -f conftest.er1
  5573. + cat conftest.err >&5
  5574. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5575. + (exit $ac_status); } && {
  5576. + test -z "$ac_c_werror_flag" ||
  5577. + test ! -s conftest.err
  5578. + } && test -s conftest.$ac_objext; then
  5579. + ac_hi=$ac_mid; break
  5580. else
  5581. - cat > conftest.$ac_ext <<EOF
  5582. -#line 1524 "configure"
  5583. -#include "confdefs.h"
  5584. -#include <stdio.h>
  5585. -main()
  5586. + echo "$as_me: failed program was:" >&5
  5587. +sed 's/^/| /' conftest.$ac_ext >&5
  5588. +
  5589. + ac_lo=`expr $ac_mid + 1`
  5590. + if test $ac_lo -le $ac_mid; then
  5591. + ac_lo= ac_hi=
  5592. + break
  5593. + fi
  5594. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5595. +fi
  5596. +
  5597. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5598. + done
  5599. +else
  5600. + echo "$as_me: failed program was:" >&5
  5601. +sed 's/^/| /' conftest.$ac_ext >&5
  5602. +
  5603. + cat >conftest.$ac_ext <<_ACEOF
  5604. +/* confdefs.h. */
  5605. +_ACEOF
  5606. +cat confdefs.h >>conftest.$ac_ext
  5607. +cat >>conftest.$ac_ext <<_ACEOF
  5608. +/* end confdefs.h. */
  5609. +$ac_includes_default
  5610. + typedef int ac__type_sizeof_;
  5611. +int
  5612. +main ()
  5613. {
  5614. - FILE *f=fopen("conftestval", "w");
  5615. - if (!f) exit(1);
  5616. - fprintf(f, "%d\n", sizeof(int));
  5617. - exit(0);
  5618. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5619. +test_array [0] = 0
  5620. +
  5621. + ;
  5622. + return 0;
  5623. }
  5624. -EOF
  5625. -if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5626. -then
  5627. - ac_cv_sizeof_int=`cat conftestval`
  5628. +_ACEOF
  5629. +rm -f conftest.$ac_objext
  5630. +if { (ac_try="$ac_compile"
  5631. +case "(($ac_try" in
  5632. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5633. + *) ac_try_echo=$ac_try;;
  5634. +esac
  5635. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5636. + (eval "$ac_compile") 2>conftest.er1
  5637. + ac_status=$?
  5638. + grep -v '^ *+' conftest.er1 >conftest.err
  5639. + rm -f conftest.er1
  5640. + cat conftest.err >&5
  5641. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5642. + (exit $ac_status); } && {
  5643. + test -z "$ac_c_werror_flag" ||
  5644. + test ! -s conftest.err
  5645. + } && test -s conftest.$ac_objext; then
  5646. + ac_hi=-1 ac_mid=-1
  5647. + while :; do
  5648. + cat >conftest.$ac_ext <<_ACEOF
  5649. +/* confdefs.h. */
  5650. +_ACEOF
  5651. +cat confdefs.h >>conftest.$ac_ext
  5652. +cat >>conftest.$ac_ext <<_ACEOF
  5653. +/* end confdefs.h. */
  5654. +$ac_includes_default
  5655. + typedef int ac__type_sizeof_;
  5656. +int
  5657. +main ()
  5658. +{
  5659. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5660. +test_array [0] = 0
  5661. +
  5662. + ;
  5663. + return 0;
  5664. +}
  5665. +_ACEOF
  5666. +rm -f conftest.$ac_objext
  5667. +if { (ac_try="$ac_compile"
  5668. +case "(($ac_try" in
  5669. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5670. + *) ac_try_echo=$ac_try;;
  5671. +esac
  5672. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5673. + (eval "$ac_compile") 2>conftest.er1
  5674. + ac_status=$?
  5675. + grep -v '^ *+' conftest.er1 >conftest.err
  5676. + rm -f conftest.er1
  5677. + cat conftest.err >&5
  5678. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5679. + (exit $ac_status); } && {
  5680. + test -z "$ac_c_werror_flag" ||
  5681. + test ! -s conftest.err
  5682. + } && test -s conftest.$ac_objext; then
  5683. + ac_lo=$ac_mid; break
  5684. else
  5685. - echo "configure: failed program was:" >&5
  5686. - cat conftest.$ac_ext >&5
  5687. - rm -fr conftest*
  5688. - ac_cv_sizeof_int=0
  5689. + echo "$as_me: failed program was:" >&5
  5690. +sed 's/^/| /' conftest.$ac_ext >&5
  5691. +
  5692. + ac_hi=`expr '(' $ac_mid ')' - 1`
  5693. + if test $ac_mid -le $ac_hi; then
  5694. + ac_lo= ac_hi=
  5695. + break
  5696. + fi
  5697. + ac_mid=`expr 2 '*' $ac_mid`
  5698. fi
  5699. -rm -fr conftest*
  5700. +
  5701. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. + done
  5703. +else
  5704. + echo "$as_me: failed program was:" >&5
  5705. +sed 's/^/| /' conftest.$ac_ext >&5
  5706. +
  5707. + ac_lo= ac_hi=
  5708. fi
  5709. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5710. fi
  5711. -echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  5712. -cat >> confdefs.h <<EOF
  5713. +
  5714. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5715. +# Binary search between lo and hi bounds.
  5716. +while test "x$ac_lo" != "x$ac_hi"; do
  5717. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5718. + cat >conftest.$ac_ext <<_ACEOF
  5719. +/* confdefs.h. */
  5720. +_ACEOF
  5721. +cat confdefs.h >>conftest.$ac_ext
  5722. +cat >>conftest.$ac_ext <<_ACEOF
  5723. +/* end confdefs.h. */
  5724. +$ac_includes_default
  5725. + typedef int ac__type_sizeof_;
  5726. +int
  5727. +main ()
  5728. +{
  5729. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5730. +test_array [0] = 0
  5731. +
  5732. + ;
  5733. + return 0;
  5734. +}
  5735. +_ACEOF
  5736. +rm -f conftest.$ac_objext
  5737. +if { (ac_try="$ac_compile"
  5738. +case "(($ac_try" in
  5739. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5740. + *) ac_try_echo=$ac_try;;
  5741. +esac
  5742. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5743. + (eval "$ac_compile") 2>conftest.er1
  5744. + ac_status=$?
  5745. + grep -v '^ *+' conftest.er1 >conftest.err
  5746. + rm -f conftest.er1
  5747. + cat conftest.err >&5
  5748. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. + (exit $ac_status); } && {
  5750. + test -z "$ac_c_werror_flag" ||
  5751. + test ! -s conftest.err
  5752. + } && test -s conftest.$ac_objext; then
  5753. + ac_hi=$ac_mid
  5754. +else
  5755. + echo "$as_me: failed program was:" >&5
  5756. +sed 's/^/| /' conftest.$ac_ext >&5
  5757. +
  5758. + ac_lo=`expr '(' $ac_mid ')' + 1`
  5759. +fi
  5760. +
  5761. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5762. +done
  5763. +case $ac_lo in
  5764. +?*) ac_cv_sizeof_int=$ac_lo;;
  5765. +'') if test "$ac_cv_type_int" = yes; then
  5766. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5767. +See \`config.log' for more details." >&5
  5768. +echo "$as_me: error: cannot compute sizeof (int)
  5769. +See \`config.log' for more details." >&2;}
  5770. + { (exit 77); exit 77; }; }
  5771. + else
  5772. + ac_cv_sizeof_int=0
  5773. + fi ;;
  5774. +esac
  5775. +else
  5776. + cat >conftest.$ac_ext <<_ACEOF
  5777. +/* confdefs.h. */
  5778. +_ACEOF
  5779. +cat confdefs.h >>conftest.$ac_ext
  5780. +cat >>conftest.$ac_ext <<_ACEOF
  5781. +/* end confdefs.h. */
  5782. +$ac_includes_default
  5783. + typedef int ac__type_sizeof_;
  5784. +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5785. +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5786. +#include <stdio.h>
  5787. +#include <stdlib.h>
  5788. +int
  5789. +main ()
  5790. +{
  5791. +
  5792. + FILE *f = fopen ("conftest.val", "w");
  5793. + if (! f)
  5794. + return 1;
  5795. + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5796. + {
  5797. + long int i = longval ();
  5798. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5799. + return 1;
  5800. + fprintf (f, "%ld\n", i);
  5801. + }
  5802. + else
  5803. + {
  5804. + unsigned long int i = ulongval ();
  5805. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5806. + return 1;
  5807. + fprintf (f, "%lu\n", i);
  5808. + }
  5809. + return ferror (f) || fclose (f) != 0;
  5810. +
  5811. + ;
  5812. + return 0;
  5813. +}
  5814. +_ACEOF
  5815. +rm -f conftest$ac_exeext
  5816. +if { (ac_try="$ac_link"
  5817. +case "(($ac_try" in
  5818. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5819. + *) ac_try_echo=$ac_try;;
  5820. +esac
  5821. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5822. + (eval "$ac_link") 2>&5
  5823. + ac_status=$?
  5824. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5825. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5826. + { (case "(($ac_try" in
  5827. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5828. + *) ac_try_echo=$ac_try;;
  5829. +esac
  5830. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5831. + (eval "$ac_try") 2>&5
  5832. + ac_status=$?
  5833. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5834. + (exit $ac_status); }; }; then
  5835. + ac_cv_sizeof_int=`cat conftest.val`
  5836. +else
  5837. + echo "$as_me: program exited with status $ac_status" >&5
  5838. +echo "$as_me: failed program was:" >&5
  5839. +sed 's/^/| /' conftest.$ac_ext >&5
  5840. +
  5841. +( exit $ac_status )
  5842. +if test "$ac_cv_type_int" = yes; then
  5843. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5844. +See \`config.log' for more details." >&5
  5845. +echo "$as_me: error: cannot compute sizeof (int)
  5846. +See \`config.log' for more details." >&2;}
  5847. + { (exit 77); exit 77; }; }
  5848. + else
  5849. + ac_cv_sizeof_int=0
  5850. + fi
  5851. +fi
  5852. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5853. +fi
  5854. +rm -f conftest.val
  5855. +fi
  5856. +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5857. +echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  5858. +
  5859. +
  5860. +
  5861. +cat >>confdefs.h <<_ACEOF
  5862. #define SIZEOF_INT $ac_cv_sizeof_int
  5863. -EOF
  5864. +_ACEOF
  5865. -echo $ac_n "checking size of long""... $ac_c" 1>&6
  5866. -echo "configure:1555: checking size of long" >&5
  5867. -if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  5868. - echo $ac_n "(cached) $ac_c" 1>&6
  5869. +{ echo "$as_me:$LINENO: checking for long" >&5
  5870. +echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  5871. +if test "${ac_cv_type_long+set}" = set; then
  5872. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5873. +else
  5874. + cat >conftest.$ac_ext <<_ACEOF
  5875. +/* confdefs.h. */
  5876. +_ACEOF
  5877. +cat confdefs.h >>conftest.$ac_ext
  5878. +cat >>conftest.$ac_ext <<_ACEOF
  5879. +/* end confdefs.h. */
  5880. +$ac_includes_default
  5881. +typedef long ac__type_new_;
  5882. +int
  5883. +main ()
  5884. +{
  5885. +if ((ac__type_new_ *) 0)
  5886. + return 0;
  5887. +if (sizeof (ac__type_new_))
  5888. + return 0;
  5889. + ;
  5890. + return 0;
  5891. +}
  5892. +_ACEOF
  5893. +rm -f conftest.$ac_objext
  5894. +if { (ac_try="$ac_compile"
  5895. +case "(($ac_try" in
  5896. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5897. + *) ac_try_echo=$ac_try;;
  5898. +esac
  5899. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5900. + (eval "$ac_compile") 2>conftest.er1
  5901. + ac_status=$?
  5902. + grep -v '^ *+' conftest.er1 >conftest.err
  5903. + rm -f conftest.er1
  5904. + cat conftest.err >&5
  5905. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5906. + (exit $ac_status); } && {
  5907. + test -z "$ac_c_werror_flag" ||
  5908. + test ! -s conftest.err
  5909. + } && test -s conftest.$ac_objext; then
  5910. + ac_cv_type_long=yes
  5911. +else
  5912. + echo "$as_me: failed program was:" >&5
  5913. +sed 's/^/| /' conftest.$ac_ext >&5
  5914. +
  5915. + ac_cv_type_long=no
  5916. +fi
  5917. +
  5918. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5919. +fi
  5920. +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5921. +echo "${ECHO_T}$ac_cv_type_long" >&6; }
  5922. +
  5923. +# The cast to long int works around a bug in the HP C Compiler
  5924. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5925. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5926. +# This bug is HP SR number 8606223364.
  5927. +{ echo "$as_me:$LINENO: checking size of long" >&5
  5928. +echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  5929. +if test "${ac_cv_sizeof_long+set}" = set; then
  5930. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5931. else
  5932. if test "$cross_compiling" = yes; then
  5933. - ac_cv_sizeof_long=4
  5934. + # Depending upon the size, compute the lo and hi bounds.
  5935. +cat >conftest.$ac_ext <<_ACEOF
  5936. +/* confdefs.h. */
  5937. +_ACEOF
  5938. +cat confdefs.h >>conftest.$ac_ext
  5939. +cat >>conftest.$ac_ext <<_ACEOF
  5940. +/* end confdefs.h. */
  5941. +$ac_includes_default
  5942. + typedef long ac__type_sizeof_;
  5943. +int
  5944. +main ()
  5945. +{
  5946. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5947. +test_array [0] = 0
  5948. +
  5949. + ;
  5950. + return 0;
  5951. +}
  5952. +_ACEOF
  5953. +rm -f conftest.$ac_objext
  5954. +if { (ac_try="$ac_compile"
  5955. +case "(($ac_try" in
  5956. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5957. + *) ac_try_echo=$ac_try;;
  5958. +esac
  5959. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5960. + (eval "$ac_compile") 2>conftest.er1
  5961. + ac_status=$?
  5962. + grep -v '^ *+' conftest.er1 >conftest.err
  5963. + rm -f conftest.er1
  5964. + cat conftest.err >&5
  5965. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. + (exit $ac_status); } && {
  5967. + test -z "$ac_c_werror_flag" ||
  5968. + test ! -s conftest.err
  5969. + } && test -s conftest.$ac_objext; then
  5970. + ac_lo=0 ac_mid=0
  5971. + while :; do
  5972. + cat >conftest.$ac_ext <<_ACEOF
  5973. +/* confdefs.h. */
  5974. +_ACEOF
  5975. +cat confdefs.h >>conftest.$ac_ext
  5976. +cat >>conftest.$ac_ext <<_ACEOF
  5977. +/* end confdefs.h. */
  5978. +$ac_includes_default
  5979. + typedef long ac__type_sizeof_;
  5980. +int
  5981. +main ()
  5982. +{
  5983. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5984. +test_array [0] = 0
  5985. +
  5986. + ;
  5987. + return 0;
  5988. +}
  5989. +_ACEOF
  5990. +rm -f conftest.$ac_objext
  5991. +if { (ac_try="$ac_compile"
  5992. +case "(($ac_try" in
  5993. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5994. + *) ac_try_echo=$ac_try;;
  5995. +esac
  5996. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5997. + (eval "$ac_compile") 2>conftest.er1
  5998. + ac_status=$?
  5999. + grep -v '^ *+' conftest.er1 >conftest.err
  6000. + rm -f conftest.er1
  6001. + cat conftest.err >&5
  6002. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6003. + (exit $ac_status); } && {
  6004. + test -z "$ac_c_werror_flag" ||
  6005. + test ! -s conftest.err
  6006. + } && test -s conftest.$ac_objext; then
  6007. + ac_hi=$ac_mid; break
  6008. else
  6009. - cat > conftest.$ac_ext <<EOF
  6010. -#line 1563 "configure"
  6011. -#include "confdefs.h"
  6012. -#include <stdio.h>
  6013. -main()
  6014. + echo "$as_me: failed program was:" >&5
  6015. +sed 's/^/| /' conftest.$ac_ext >&5
  6016. +
  6017. + ac_lo=`expr $ac_mid + 1`
  6018. + if test $ac_lo -le $ac_mid; then
  6019. + ac_lo= ac_hi=
  6020. + break
  6021. + fi
  6022. + ac_mid=`expr 2 '*' $ac_mid + 1`
  6023. +fi
  6024. +
  6025. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6026. + done
  6027. +else
  6028. + echo "$as_me: failed program was:" >&5
  6029. +sed 's/^/| /' conftest.$ac_ext >&5
  6030. +
  6031. + cat >conftest.$ac_ext <<_ACEOF
  6032. +/* confdefs.h. */
  6033. +_ACEOF
  6034. +cat confdefs.h >>conftest.$ac_ext
  6035. +cat >>conftest.$ac_ext <<_ACEOF
  6036. +/* end confdefs.h. */
  6037. +$ac_includes_default
  6038. + typedef long ac__type_sizeof_;
  6039. +int
  6040. +main ()
  6041. {
  6042. - FILE *f=fopen("conftestval", "w");
  6043. - if (!f) exit(1);
  6044. - fprintf(f, "%d\n", sizeof(long));
  6045. - exit(0);
  6046. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6047. +test_array [0] = 0
  6048. +
  6049. + ;
  6050. + return 0;
  6051. }
  6052. -EOF
  6053. -if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6054. -then
  6055. - ac_cv_sizeof_long=`cat conftestval`
  6056. +_ACEOF
  6057. +rm -f conftest.$ac_objext
  6058. +if { (ac_try="$ac_compile"
  6059. +case "(($ac_try" in
  6060. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6061. + *) ac_try_echo=$ac_try;;
  6062. +esac
  6063. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6064. + (eval "$ac_compile") 2>conftest.er1
  6065. + ac_status=$?
  6066. + grep -v '^ *+' conftest.er1 >conftest.err
  6067. + rm -f conftest.er1
  6068. + cat conftest.err >&5
  6069. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. + (exit $ac_status); } && {
  6071. + test -z "$ac_c_werror_flag" ||
  6072. + test ! -s conftest.err
  6073. + } && test -s conftest.$ac_objext; then
  6074. + ac_hi=-1 ac_mid=-1
  6075. + while :; do
  6076. + cat >conftest.$ac_ext <<_ACEOF
  6077. +/* confdefs.h. */
  6078. +_ACEOF
  6079. +cat confdefs.h >>conftest.$ac_ext
  6080. +cat >>conftest.$ac_ext <<_ACEOF
  6081. +/* end confdefs.h. */
  6082. +$ac_includes_default
  6083. + typedef long ac__type_sizeof_;
  6084. +int
  6085. +main ()
  6086. +{
  6087. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6088. +test_array [0] = 0
  6089. +
  6090. + ;
  6091. + return 0;
  6092. +}
  6093. +_ACEOF
  6094. +rm -f conftest.$ac_objext
  6095. +if { (ac_try="$ac_compile"
  6096. +case "(($ac_try" in
  6097. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6098. + *) ac_try_echo=$ac_try;;
  6099. +esac
  6100. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6101. + (eval "$ac_compile") 2>conftest.er1
  6102. + ac_status=$?
  6103. + grep -v '^ *+' conftest.er1 >conftest.err
  6104. + rm -f conftest.er1
  6105. + cat conftest.err >&5
  6106. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6107. + (exit $ac_status); } && {
  6108. + test -z "$ac_c_werror_flag" ||
  6109. + test ! -s conftest.err
  6110. + } && test -s conftest.$ac_objext; then
  6111. + ac_lo=$ac_mid; break
  6112. else
  6113. - echo "configure: failed program was:" >&5
  6114. - cat conftest.$ac_ext >&5
  6115. - rm -fr conftest*
  6116. - ac_cv_sizeof_long=0
  6117. + echo "$as_me: failed program was:" >&5
  6118. +sed 's/^/| /' conftest.$ac_ext >&5
  6119. +
  6120. + ac_hi=`expr '(' $ac_mid ')' - 1`
  6121. + if test $ac_mid -le $ac_hi; then
  6122. + ac_lo= ac_hi=
  6123. + break
  6124. + fi
  6125. + ac_mid=`expr 2 '*' $ac_mid`
  6126. fi
  6127. -rm -fr conftest*
  6128. +
  6129. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130. + done
  6131. +else
  6132. + echo "$as_me: failed program was:" >&5
  6133. +sed 's/^/| /' conftest.$ac_ext >&5
  6134. +
  6135. + ac_lo= ac_hi=
  6136. fi
  6137. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6138. fi
  6139. -echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  6140. -cat >> confdefs.h <<EOF
  6141. +
  6142. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6143. +# Binary search between lo and hi bounds.
  6144. +while test "x$ac_lo" != "x$ac_hi"; do
  6145. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6146. + cat >conftest.$ac_ext <<_ACEOF
  6147. +/* confdefs.h. */
  6148. +_ACEOF
  6149. +cat confdefs.h >>conftest.$ac_ext
  6150. +cat >>conftest.$ac_ext <<_ACEOF
  6151. +/* end confdefs.h. */
  6152. +$ac_includes_default
  6153. + typedef long ac__type_sizeof_;
  6154. +int
  6155. +main ()
  6156. +{
  6157. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6158. +test_array [0] = 0
  6159. +
  6160. + ;
  6161. + return 0;
  6162. +}
  6163. +_ACEOF
  6164. +rm -f conftest.$ac_objext
  6165. +if { (ac_try="$ac_compile"
  6166. +case "(($ac_try" in
  6167. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6168. + *) ac_try_echo=$ac_try;;
  6169. +esac
  6170. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6171. + (eval "$ac_compile") 2>conftest.er1
  6172. + ac_status=$?
  6173. + grep -v '^ *+' conftest.er1 >conftest.err
  6174. + rm -f conftest.er1
  6175. + cat conftest.err >&5
  6176. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6177. + (exit $ac_status); } && {
  6178. + test -z "$ac_c_werror_flag" ||
  6179. + test ! -s conftest.err
  6180. + } && test -s conftest.$ac_objext; then
  6181. + ac_hi=$ac_mid
  6182. +else
  6183. + echo "$as_me: failed program was:" >&5
  6184. +sed 's/^/| /' conftest.$ac_ext >&5
  6185. +
  6186. + ac_lo=`expr '(' $ac_mid ')' + 1`
  6187. +fi
  6188. +
  6189. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6190. +done
  6191. +case $ac_lo in
  6192. +?*) ac_cv_sizeof_long=$ac_lo;;
  6193. +'') if test "$ac_cv_type_long" = yes; then
  6194. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6195. +See \`config.log' for more details." >&5
  6196. +echo "$as_me: error: cannot compute sizeof (long)
  6197. +See \`config.log' for more details." >&2;}
  6198. + { (exit 77); exit 77; }; }
  6199. + else
  6200. + ac_cv_sizeof_long=0
  6201. + fi ;;
  6202. +esac
  6203. +else
  6204. + cat >conftest.$ac_ext <<_ACEOF
  6205. +/* confdefs.h. */
  6206. +_ACEOF
  6207. +cat confdefs.h >>conftest.$ac_ext
  6208. +cat >>conftest.$ac_ext <<_ACEOF
  6209. +/* end confdefs.h. */
  6210. +$ac_includes_default
  6211. + typedef long ac__type_sizeof_;
  6212. +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6213. +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6214. +#include <stdio.h>
  6215. +#include <stdlib.h>
  6216. +int
  6217. +main ()
  6218. +{
  6219. +
  6220. + FILE *f = fopen ("conftest.val", "w");
  6221. + if (! f)
  6222. + return 1;
  6223. + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6224. + {
  6225. + long int i = longval ();
  6226. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6227. + return 1;
  6228. + fprintf (f, "%ld\n", i);
  6229. + }
  6230. + else
  6231. + {
  6232. + unsigned long int i = ulongval ();
  6233. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6234. + return 1;
  6235. + fprintf (f, "%lu\n", i);
  6236. + }
  6237. + return ferror (f) || fclose (f) != 0;
  6238. +
  6239. + ;
  6240. + return 0;
  6241. +}
  6242. +_ACEOF
  6243. +rm -f conftest$ac_exeext
  6244. +if { (ac_try="$ac_link"
  6245. +case "(($ac_try" in
  6246. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. + *) ac_try_echo=$ac_try;;
  6248. +esac
  6249. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. + (eval "$ac_link") 2>&5
  6251. + ac_status=$?
  6252. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6253. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6254. + { (case "(($ac_try" in
  6255. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6256. + *) ac_try_echo=$ac_try;;
  6257. +esac
  6258. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6259. + (eval "$ac_try") 2>&5
  6260. + ac_status=$?
  6261. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. + (exit $ac_status); }; }; then
  6263. + ac_cv_sizeof_long=`cat conftest.val`
  6264. +else
  6265. + echo "$as_me: program exited with status $ac_status" >&5
  6266. +echo "$as_me: failed program was:" >&5
  6267. +sed 's/^/| /' conftest.$ac_ext >&5
  6268. +
  6269. +( exit $ac_status )
  6270. +if test "$ac_cv_type_long" = yes; then
  6271. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6272. +See \`config.log' for more details." >&5
  6273. +echo "$as_me: error: cannot compute sizeof (long)
  6274. +See \`config.log' for more details." >&2;}
  6275. + { (exit 77); exit 77; }; }
  6276. + else
  6277. + ac_cv_sizeof_long=0
  6278. + fi
  6279. +fi
  6280. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6281. +fi
  6282. +rm -f conftest.val
  6283. +fi
  6284. +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6285. +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  6286. +
  6287. +
  6288. +
  6289. +cat >>confdefs.h <<_ACEOF
  6290. #define SIZEOF_LONG $ac_cv_sizeof_long
  6291. -EOF
  6292. +_ACEOF
  6293. -echo $ac_n "checking size of long long""... $ac_c" 1>&6
  6294. -echo "configure:1594: checking size of long long" >&5
  6295. -if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  6296. - echo $ac_n "(cached) $ac_c" 1>&6
  6297. +{ echo "$as_me:$LINENO: checking for long long" >&5
  6298. +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  6299. +if test "${ac_cv_type_long_long+set}" = set; then
  6300. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6301. +else
  6302. + cat >conftest.$ac_ext <<_ACEOF
  6303. +/* confdefs.h. */
  6304. +_ACEOF
  6305. +cat confdefs.h >>conftest.$ac_ext
  6306. +cat >>conftest.$ac_ext <<_ACEOF
  6307. +/* end confdefs.h. */
  6308. +$ac_includes_default
  6309. +typedef long long ac__type_new_;
  6310. +int
  6311. +main ()
  6312. +{
  6313. +if ((ac__type_new_ *) 0)
  6314. + return 0;
  6315. +if (sizeof (ac__type_new_))
  6316. + return 0;
  6317. + ;
  6318. + return 0;
  6319. +}
  6320. +_ACEOF
  6321. +rm -f conftest.$ac_objext
  6322. +if { (ac_try="$ac_compile"
  6323. +case "(($ac_try" in
  6324. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6325. + *) ac_try_echo=$ac_try;;
  6326. +esac
  6327. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6328. + (eval "$ac_compile") 2>conftest.er1
  6329. + ac_status=$?
  6330. + grep -v '^ *+' conftest.er1 >conftest.err
  6331. + rm -f conftest.er1
  6332. + cat conftest.err >&5
  6333. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6334. + (exit $ac_status); } && {
  6335. + test -z "$ac_c_werror_flag" ||
  6336. + test ! -s conftest.err
  6337. + } && test -s conftest.$ac_objext; then
  6338. + ac_cv_type_long_long=yes
  6339. +else
  6340. + echo "$as_me: failed program was:" >&5
  6341. +sed 's/^/| /' conftest.$ac_ext >&5
  6342. +
  6343. + ac_cv_type_long_long=no
  6344. +fi
  6345. +
  6346. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6347. +fi
  6348. +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6349. +echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  6350. +
  6351. +# The cast to long int works around a bug in the HP C Compiler
  6352. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6353. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6354. +# This bug is HP SR number 8606223364.
  6355. +{ echo "$as_me:$LINENO: checking size of long long" >&5
  6356. +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  6357. +if test "${ac_cv_sizeof_long_long+set}" = set; then
  6358. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6359. else
  6360. if test "$cross_compiling" = yes; then
  6361. - ac_cv_sizeof_long_long=0
  6362. + # Depending upon the size, compute the lo and hi bounds.
  6363. +cat >conftest.$ac_ext <<_ACEOF
  6364. +/* confdefs.h. */
  6365. +_ACEOF
  6366. +cat confdefs.h >>conftest.$ac_ext
  6367. +cat >>conftest.$ac_ext <<_ACEOF
  6368. +/* end confdefs.h. */
  6369. +$ac_includes_default
  6370. + typedef long long ac__type_sizeof_;
  6371. +int
  6372. +main ()
  6373. +{
  6374. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6375. +test_array [0] = 0
  6376. +
  6377. + ;
  6378. + return 0;
  6379. +}
  6380. +_ACEOF
  6381. +rm -f conftest.$ac_objext
  6382. +if { (ac_try="$ac_compile"
  6383. +case "(($ac_try" in
  6384. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6385. + *) ac_try_echo=$ac_try;;
  6386. +esac
  6387. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6388. + (eval "$ac_compile") 2>conftest.er1
  6389. + ac_status=$?
  6390. + grep -v '^ *+' conftest.er1 >conftest.err
  6391. + rm -f conftest.er1
  6392. + cat conftest.err >&5
  6393. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6394. + (exit $ac_status); } && {
  6395. + test -z "$ac_c_werror_flag" ||
  6396. + test ! -s conftest.err
  6397. + } && test -s conftest.$ac_objext; then
  6398. + ac_lo=0 ac_mid=0
  6399. + while :; do
  6400. + cat >conftest.$ac_ext <<_ACEOF
  6401. +/* confdefs.h. */
  6402. +_ACEOF
  6403. +cat confdefs.h >>conftest.$ac_ext
  6404. +cat >>conftest.$ac_ext <<_ACEOF
  6405. +/* end confdefs.h. */
  6406. +$ac_includes_default
  6407. + typedef long long ac__type_sizeof_;
  6408. +int
  6409. +main ()
  6410. +{
  6411. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6412. +test_array [0] = 0
  6413. +
  6414. + ;
  6415. + return 0;
  6416. +}
  6417. +_ACEOF
  6418. +rm -f conftest.$ac_objext
  6419. +if { (ac_try="$ac_compile"
  6420. +case "(($ac_try" in
  6421. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6422. + *) ac_try_echo=$ac_try;;
  6423. +esac
  6424. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6425. + (eval "$ac_compile") 2>conftest.er1
  6426. + ac_status=$?
  6427. + grep -v '^ *+' conftest.er1 >conftest.err
  6428. + rm -f conftest.er1
  6429. + cat conftest.err >&5
  6430. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6431. + (exit $ac_status); } && {
  6432. + test -z "$ac_c_werror_flag" ||
  6433. + test ! -s conftest.err
  6434. + } && test -s conftest.$ac_objext; then
  6435. + ac_hi=$ac_mid; break
  6436. else
  6437. - cat > conftest.$ac_ext <<EOF
  6438. -#line 1602 "configure"
  6439. -#include "confdefs.h"
  6440. -#include <stdio.h>
  6441. -main()
  6442. + echo "$as_me: failed program was:" >&5
  6443. +sed 's/^/| /' conftest.$ac_ext >&5
  6444. +
  6445. + ac_lo=`expr $ac_mid + 1`
  6446. + if test $ac_lo -le $ac_mid; then
  6447. + ac_lo= ac_hi=
  6448. + break
  6449. + fi
  6450. + ac_mid=`expr 2 '*' $ac_mid + 1`
  6451. +fi
  6452. +
  6453. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. + done
  6455. +else
  6456. + echo "$as_me: failed program was:" >&5
  6457. +sed 's/^/| /' conftest.$ac_ext >&5
  6458. +
  6459. + cat >conftest.$ac_ext <<_ACEOF
  6460. +/* confdefs.h. */
  6461. +_ACEOF
  6462. +cat confdefs.h >>conftest.$ac_ext
  6463. +cat >>conftest.$ac_ext <<_ACEOF
  6464. +/* end confdefs.h. */
  6465. +$ac_includes_default
  6466. + typedef long long ac__type_sizeof_;
  6467. +int
  6468. +main ()
  6469. {
  6470. - FILE *f=fopen("conftestval", "w");
  6471. - if (!f) exit(1);
  6472. - fprintf(f, "%d\n", sizeof(long long));
  6473. - exit(0);
  6474. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6475. +test_array [0] = 0
  6476. +
  6477. + ;
  6478. + return 0;
  6479. }
  6480. -EOF
  6481. -if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6482. -then
  6483. - ac_cv_sizeof_long_long=`cat conftestval`
  6484. +_ACEOF
  6485. +rm -f conftest.$ac_objext
  6486. +if { (ac_try="$ac_compile"
  6487. +case "(($ac_try" in
  6488. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6489. + *) ac_try_echo=$ac_try;;
  6490. +esac
  6491. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6492. + (eval "$ac_compile") 2>conftest.er1
  6493. + ac_status=$?
  6494. + grep -v '^ *+' conftest.er1 >conftest.err
  6495. + rm -f conftest.er1
  6496. + cat conftest.err >&5
  6497. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. + (exit $ac_status); } && {
  6499. + test -z "$ac_c_werror_flag" ||
  6500. + test ! -s conftest.err
  6501. + } && test -s conftest.$ac_objext; then
  6502. + ac_hi=-1 ac_mid=-1
  6503. + while :; do
  6504. + cat >conftest.$ac_ext <<_ACEOF
  6505. +/* confdefs.h. */
  6506. +_ACEOF
  6507. +cat confdefs.h >>conftest.$ac_ext
  6508. +cat >>conftest.$ac_ext <<_ACEOF
  6509. +/* end confdefs.h. */
  6510. +$ac_includes_default
  6511. + typedef long long ac__type_sizeof_;
  6512. +int
  6513. +main ()
  6514. +{
  6515. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6516. +test_array [0] = 0
  6517. +
  6518. + ;
  6519. + return 0;
  6520. +}
  6521. +_ACEOF
  6522. +rm -f conftest.$ac_objext
  6523. +if { (ac_try="$ac_compile"
  6524. +case "(($ac_try" in
  6525. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6526. + *) ac_try_echo=$ac_try;;
  6527. +esac
  6528. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6529. + (eval "$ac_compile") 2>conftest.er1
  6530. + ac_status=$?
  6531. + grep -v '^ *+' conftest.er1 >conftest.err
  6532. + rm -f conftest.er1
  6533. + cat conftest.err >&5
  6534. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. + (exit $ac_status); } && {
  6536. + test -z "$ac_c_werror_flag" ||
  6537. + test ! -s conftest.err
  6538. + } && test -s conftest.$ac_objext; then
  6539. + ac_lo=$ac_mid; break
  6540. else
  6541. - echo "configure: failed program was:" >&5
  6542. - cat conftest.$ac_ext >&5
  6543. - rm -fr conftest*
  6544. - ac_cv_sizeof_long_long=0
  6545. + echo "$as_me: failed program was:" >&5
  6546. +sed 's/^/| /' conftest.$ac_ext >&5
  6547. +
  6548. + ac_hi=`expr '(' $ac_mid ')' - 1`
  6549. + if test $ac_mid -le $ac_hi; then
  6550. + ac_lo= ac_hi=
  6551. + break
  6552. + fi
  6553. + ac_mid=`expr 2 '*' $ac_mid`
  6554. fi
  6555. -rm -fr conftest*
  6556. +
  6557. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6558. + done
  6559. +else
  6560. + echo "$as_me: failed program was:" >&5
  6561. +sed 's/^/| /' conftest.$ac_ext >&5
  6562. +
  6563. + ac_lo= ac_hi=
  6564. fi
  6565. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6566. fi
  6567. -echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  6568. -cat >> confdefs.h <<EOF
  6569. +
  6570. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6571. +# Binary search between lo and hi bounds.
  6572. +while test "x$ac_lo" != "x$ac_hi"; do
  6573. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6574. + cat >conftest.$ac_ext <<_ACEOF
  6575. +/* confdefs.h. */
  6576. +_ACEOF
  6577. +cat confdefs.h >>conftest.$ac_ext
  6578. +cat >>conftest.$ac_ext <<_ACEOF
  6579. +/* end confdefs.h. */
  6580. +$ac_includes_default
  6581. + typedef long long ac__type_sizeof_;
  6582. +int
  6583. +main ()
  6584. +{
  6585. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6586. +test_array [0] = 0
  6587. +
  6588. + ;
  6589. + return 0;
  6590. +}
  6591. +_ACEOF
  6592. +rm -f conftest.$ac_objext
  6593. +if { (ac_try="$ac_compile"
  6594. +case "(($ac_try" in
  6595. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6596. + *) ac_try_echo=$ac_try;;
  6597. +esac
  6598. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6599. + (eval "$ac_compile") 2>conftest.er1
  6600. + ac_status=$?
  6601. + grep -v '^ *+' conftest.er1 >conftest.err
  6602. + rm -f conftest.er1
  6603. + cat conftest.err >&5
  6604. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6605. + (exit $ac_status); } && {
  6606. + test -z "$ac_c_werror_flag" ||
  6607. + test ! -s conftest.err
  6608. + } && test -s conftest.$ac_objext; then
  6609. + ac_hi=$ac_mid
  6610. +else
  6611. + echo "$as_me: failed program was:" >&5
  6612. +sed 's/^/| /' conftest.$ac_ext >&5
  6613. +
  6614. + ac_lo=`expr '(' $ac_mid ')' + 1`
  6615. +fi
  6616. +
  6617. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6618. +done
  6619. +case $ac_lo in
  6620. +?*) ac_cv_sizeof_long_long=$ac_lo;;
  6621. +'') if test "$ac_cv_type_long_long" = yes; then
  6622. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  6623. +See \`config.log' for more details." >&5
  6624. +echo "$as_me: error: cannot compute sizeof (long long)
  6625. +See \`config.log' for more details." >&2;}
  6626. + { (exit 77); exit 77; }; }
  6627. + else
  6628. + ac_cv_sizeof_long_long=0
  6629. + fi ;;
  6630. +esac
  6631. +else
  6632. + cat >conftest.$ac_ext <<_ACEOF
  6633. +/* confdefs.h. */
  6634. +_ACEOF
  6635. +cat confdefs.h >>conftest.$ac_ext
  6636. +cat >>conftest.$ac_ext <<_ACEOF
  6637. +/* end confdefs.h. */
  6638. +$ac_includes_default
  6639. + typedef long long ac__type_sizeof_;
  6640. +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6641. +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6642. +#include <stdio.h>
  6643. +#include <stdlib.h>
  6644. +int
  6645. +main ()
  6646. +{
  6647. +
  6648. + FILE *f = fopen ("conftest.val", "w");
  6649. + if (! f)
  6650. + return 1;
  6651. + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6652. + {
  6653. + long int i = longval ();
  6654. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6655. + return 1;
  6656. + fprintf (f, "%ld\n", i);
  6657. + }
  6658. + else
  6659. + {
  6660. + unsigned long int i = ulongval ();
  6661. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6662. + return 1;
  6663. + fprintf (f, "%lu\n", i);
  6664. + }
  6665. + return ferror (f) || fclose (f) != 0;
  6666. +
  6667. + ;
  6668. + return 0;
  6669. +}
  6670. +_ACEOF
  6671. +rm -f conftest$ac_exeext
  6672. +if { (ac_try="$ac_link"
  6673. +case "(($ac_try" in
  6674. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6675. + *) ac_try_echo=$ac_try;;
  6676. +esac
  6677. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6678. + (eval "$ac_link") 2>&5
  6679. + ac_status=$?
  6680. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6681. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6682. + { (case "(($ac_try" in
  6683. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6684. + *) ac_try_echo=$ac_try;;
  6685. +esac
  6686. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6687. + (eval "$ac_try") 2>&5
  6688. + ac_status=$?
  6689. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6690. + (exit $ac_status); }; }; then
  6691. + ac_cv_sizeof_long_long=`cat conftest.val`
  6692. +else
  6693. + echo "$as_me: program exited with status $ac_status" >&5
  6694. +echo "$as_me: failed program was:" >&5
  6695. +sed 's/^/| /' conftest.$ac_ext >&5
  6696. +
  6697. +( exit $ac_status )
  6698. +if test "$ac_cv_type_long_long" = yes; then
  6699. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  6700. +See \`config.log' for more details." >&5
  6701. +echo "$as_me: error: cannot compute sizeof (long long)
  6702. +See \`config.log' for more details." >&2;}
  6703. + { (exit 77); exit 77; }; }
  6704. + else
  6705. + ac_cv_sizeof_long_long=0
  6706. + fi
  6707. +fi
  6708. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6709. +fi
  6710. +rm -f conftest.val
  6711. +fi
  6712. +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6713. +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  6714. +
  6715. +
  6716. +
  6717. +cat >>confdefs.h <<_ACEOF
  6718. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6719. -EOF
  6720. +_ACEOF
  6721. # Windows port
  6722. -echo $ac_n "checking size of __int64""... $ac_c" 1>&6
  6723. -echo "configure:1634: checking size of __int64" >&5
  6724. -if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
  6725. - echo $ac_n "(cached) $ac_c" 1>&6
  6726. +{ echo "$as_me:$LINENO: checking for __int64" >&5
  6727. +echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
  6728. +if test "${ac_cv_type___int64+set}" = set; then
  6729. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6730. +else
  6731. + cat >conftest.$ac_ext <<_ACEOF
  6732. +/* confdefs.h. */
  6733. +_ACEOF
  6734. +cat confdefs.h >>conftest.$ac_ext
  6735. +cat >>conftest.$ac_ext <<_ACEOF
  6736. +/* end confdefs.h. */
  6737. +$ac_includes_default
  6738. +typedef __int64 ac__type_new_;
  6739. +int
  6740. +main ()
  6741. +{
  6742. +if ((ac__type_new_ *) 0)
  6743. + return 0;
  6744. +if (sizeof (ac__type_new_))
  6745. + return 0;
  6746. + ;
  6747. + return 0;
  6748. +}
  6749. +_ACEOF
  6750. +rm -f conftest.$ac_objext
  6751. +if { (ac_try="$ac_compile"
  6752. +case "(($ac_try" in
  6753. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6754. + *) ac_try_echo=$ac_try;;
  6755. +esac
  6756. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6757. + (eval "$ac_compile") 2>conftest.er1
  6758. + ac_status=$?
  6759. + grep -v '^ *+' conftest.er1 >conftest.err
  6760. + rm -f conftest.er1
  6761. + cat conftest.err >&5
  6762. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6763. + (exit $ac_status); } && {
  6764. + test -z "$ac_c_werror_flag" ||
  6765. + test ! -s conftest.err
  6766. + } && test -s conftest.$ac_objext; then
  6767. + ac_cv_type___int64=yes
  6768. +else
  6769. + echo "$as_me: failed program was:" >&5
  6770. +sed 's/^/| /' conftest.$ac_ext >&5
  6771. +
  6772. + ac_cv_type___int64=no
  6773. +fi
  6774. +
  6775. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6776. +fi
  6777. +{ echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
  6778. +echo "${ECHO_T}$ac_cv_type___int64" >&6; }
  6779. +
  6780. +# The cast to long int works around a bug in the HP C Compiler
  6781. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6782. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6783. +# This bug is HP SR number 8606223364.
  6784. +{ echo "$as_me:$LINENO: checking size of __int64" >&5
  6785. +echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
  6786. +if test "${ac_cv_sizeof___int64+set}" = set; then
  6787. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6788. else
  6789. if test "$cross_compiling" = yes; then
  6790. - ac_cv_sizeof___int64=0
  6791. + # Depending upon the size, compute the lo and hi bounds.
  6792. +cat >conftest.$ac_ext <<_ACEOF
  6793. +/* confdefs.h. */
  6794. +_ACEOF
  6795. +cat confdefs.h >>conftest.$ac_ext
  6796. +cat >>conftest.$ac_ext <<_ACEOF
  6797. +/* end confdefs.h. */
  6798. +$ac_includes_default
  6799. + typedef __int64 ac__type_sizeof_;
  6800. +int
  6801. +main ()
  6802. +{
  6803. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6804. +test_array [0] = 0
  6805. +
  6806. + ;
  6807. + return 0;
  6808. +}
  6809. +_ACEOF
  6810. +rm -f conftest.$ac_objext
  6811. +if { (ac_try="$ac_compile"
  6812. +case "(($ac_try" in
  6813. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6814. + *) ac_try_echo=$ac_try;;
  6815. +esac
  6816. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6817. + (eval "$ac_compile") 2>conftest.er1
  6818. + ac_status=$?
  6819. + grep -v '^ *+' conftest.er1 >conftest.err
  6820. + rm -f conftest.er1
  6821. + cat conftest.err >&5
  6822. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. + (exit $ac_status); } && {
  6824. + test -z "$ac_c_werror_flag" ||
  6825. + test ! -s conftest.err
  6826. + } && test -s conftest.$ac_objext; then
  6827. + ac_lo=0 ac_mid=0
  6828. + while :; do
  6829. + cat >conftest.$ac_ext <<_ACEOF
  6830. +/* confdefs.h. */
  6831. +_ACEOF
  6832. +cat confdefs.h >>conftest.$ac_ext
  6833. +cat >>conftest.$ac_ext <<_ACEOF
  6834. +/* end confdefs.h. */
  6835. +$ac_includes_default
  6836. + typedef __int64 ac__type_sizeof_;
  6837. +int
  6838. +main ()
  6839. +{
  6840. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6841. +test_array [0] = 0
  6842. +
  6843. + ;
  6844. + return 0;
  6845. +}
  6846. +_ACEOF
  6847. +rm -f conftest.$ac_objext
  6848. +if { (ac_try="$ac_compile"
  6849. +case "(($ac_try" in
  6850. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6851. + *) ac_try_echo=$ac_try;;
  6852. +esac
  6853. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6854. + (eval "$ac_compile") 2>conftest.er1
  6855. + ac_status=$?
  6856. + grep -v '^ *+' conftest.er1 >conftest.err
  6857. + rm -f conftest.er1
  6858. + cat conftest.err >&5
  6859. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6860. + (exit $ac_status); } && {
  6861. + test -z "$ac_c_werror_flag" ||
  6862. + test ! -s conftest.err
  6863. + } && test -s conftest.$ac_objext; then
  6864. + ac_hi=$ac_mid; break
  6865. else
  6866. - cat > conftest.$ac_ext <<EOF
  6867. -#line 1642 "configure"
  6868. -#include "confdefs.h"
  6869. -#include <stdio.h>
  6870. -main()
  6871. + echo "$as_me: failed program was:" >&5
  6872. +sed 's/^/| /' conftest.$ac_ext >&5
  6873. +
  6874. + ac_lo=`expr $ac_mid + 1`
  6875. + if test $ac_lo -le $ac_mid; then
  6876. + ac_lo= ac_hi=
  6877. + break
  6878. + fi
  6879. + ac_mid=`expr 2 '*' $ac_mid + 1`
  6880. +fi
  6881. +
  6882. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6883. + done
  6884. +else
  6885. + echo "$as_me: failed program was:" >&5
  6886. +sed 's/^/| /' conftest.$ac_ext >&5
  6887. +
  6888. + cat >conftest.$ac_ext <<_ACEOF
  6889. +/* confdefs.h. */
  6890. +_ACEOF
  6891. +cat confdefs.h >>conftest.$ac_ext
  6892. +cat >>conftest.$ac_ext <<_ACEOF
  6893. +/* end confdefs.h. */
  6894. +$ac_includes_default
  6895. + typedef __int64 ac__type_sizeof_;
  6896. +int
  6897. +main ()
  6898. {
  6899. - FILE *f=fopen("conftestval", "w");
  6900. - if (!f) exit(1);
  6901. - fprintf(f, "%d\n", sizeof(__int64));
  6902. - exit(0);
  6903. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6904. +test_array [0] = 0
  6905. +
  6906. + ;
  6907. + return 0;
  6908. }
  6909. -EOF
  6910. -if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6911. -then
  6912. - ac_cv_sizeof___int64=`cat conftestval`
  6913. +_ACEOF
  6914. +rm -f conftest.$ac_objext
  6915. +if { (ac_try="$ac_compile"
  6916. +case "(($ac_try" in
  6917. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6918. + *) ac_try_echo=$ac_try;;
  6919. +esac
  6920. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6921. + (eval "$ac_compile") 2>conftest.er1
  6922. + ac_status=$?
  6923. + grep -v '^ *+' conftest.er1 >conftest.err
  6924. + rm -f conftest.er1
  6925. + cat conftest.err >&5
  6926. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6927. + (exit $ac_status); } && {
  6928. + test -z "$ac_c_werror_flag" ||
  6929. + test ! -s conftest.err
  6930. + } && test -s conftest.$ac_objext; then
  6931. + ac_hi=-1 ac_mid=-1
  6932. + while :; do
  6933. + cat >conftest.$ac_ext <<_ACEOF
  6934. +/* confdefs.h. */
  6935. +_ACEOF
  6936. +cat confdefs.h >>conftest.$ac_ext
  6937. +cat >>conftest.$ac_ext <<_ACEOF
  6938. +/* end confdefs.h. */
  6939. +$ac_includes_default
  6940. + typedef __int64 ac__type_sizeof_;
  6941. +int
  6942. +main ()
  6943. +{
  6944. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6945. +test_array [0] = 0
  6946. +
  6947. + ;
  6948. + return 0;
  6949. +}
  6950. +_ACEOF
  6951. +rm -f conftest.$ac_objext
  6952. +if { (ac_try="$ac_compile"
  6953. +case "(($ac_try" in
  6954. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6955. + *) ac_try_echo=$ac_try;;
  6956. +esac
  6957. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6958. + (eval "$ac_compile") 2>conftest.er1
  6959. + ac_status=$?
  6960. + grep -v '^ *+' conftest.er1 >conftest.err
  6961. + rm -f conftest.er1
  6962. + cat conftest.err >&5
  6963. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6964. + (exit $ac_status); } && {
  6965. + test -z "$ac_c_werror_flag" ||
  6966. + test ! -s conftest.err
  6967. + } && test -s conftest.$ac_objext; then
  6968. + ac_lo=$ac_mid; break
  6969. else
  6970. - echo "configure: failed program was:" >&5
  6971. - cat conftest.$ac_ext >&5
  6972. - rm -fr conftest*
  6973. - ac_cv_sizeof___int64=0
  6974. + echo "$as_me: failed program was:" >&5
  6975. +sed 's/^/| /' conftest.$ac_ext >&5
  6976. +
  6977. + ac_hi=`expr '(' $ac_mid ')' - 1`
  6978. + if test $ac_mid -le $ac_hi; then
  6979. + ac_lo= ac_hi=
  6980. + break
  6981. + fi
  6982. + ac_mid=`expr 2 '*' $ac_mid`
  6983. fi
  6984. -rm -fr conftest*
  6985. +
  6986. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6987. + done
  6988. +else
  6989. + echo "$as_me: failed program was:" >&5
  6990. +sed 's/^/| /' conftest.$ac_ext >&5
  6991. +
  6992. + ac_lo= ac_hi=
  6993. fi
  6994. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6995. fi
  6996. -echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
  6997. -cat >> confdefs.h <<EOF
  6998. +
  6999. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7000. +# Binary search between lo and hi bounds.
  7001. +while test "x$ac_lo" != "x$ac_hi"; do
  7002. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7003. + cat >conftest.$ac_ext <<_ACEOF
  7004. +/* confdefs.h. */
  7005. +_ACEOF
  7006. +cat confdefs.h >>conftest.$ac_ext
  7007. +cat >>conftest.$ac_ext <<_ACEOF
  7008. +/* end confdefs.h. */
  7009. +$ac_includes_default
  7010. + typedef __int64 ac__type_sizeof_;
  7011. +int
  7012. +main ()
  7013. +{
  7014. +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7015. +test_array [0] = 0
  7016. +
  7017. + ;
  7018. + return 0;
  7019. +}
  7020. +_ACEOF
  7021. +rm -f conftest.$ac_objext
  7022. +if { (ac_try="$ac_compile"
  7023. +case "(($ac_try" in
  7024. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7025. + *) ac_try_echo=$ac_try;;
  7026. +esac
  7027. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7028. + (eval "$ac_compile") 2>conftest.er1
  7029. + ac_status=$?
  7030. + grep -v '^ *+' conftest.er1 >conftest.err
  7031. + rm -f conftest.er1
  7032. + cat conftest.err >&5
  7033. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. + (exit $ac_status); } && {
  7035. + test -z "$ac_c_werror_flag" ||
  7036. + test ! -s conftest.err
  7037. + } && test -s conftest.$ac_objext; then
  7038. + ac_hi=$ac_mid
  7039. +else
  7040. + echo "$as_me: failed program was:" >&5
  7041. +sed 's/^/| /' conftest.$ac_ext >&5
  7042. +
  7043. + ac_lo=`expr '(' $ac_mid ')' + 1`
  7044. +fi
  7045. +
  7046. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7047. +done
  7048. +case $ac_lo in
  7049. +?*) ac_cv_sizeof___int64=$ac_lo;;
  7050. +'') if test "$ac_cv_type___int64" = yes; then
  7051. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  7052. +See \`config.log' for more details." >&5
  7053. +echo "$as_me: error: cannot compute sizeof (__int64)
  7054. +See \`config.log' for more details." >&2;}
  7055. + { (exit 77); exit 77; }; }
  7056. + else
  7057. + ac_cv_sizeof___int64=0
  7058. + fi ;;
  7059. +esac
  7060. +else
  7061. + cat >conftest.$ac_ext <<_ACEOF
  7062. +/* confdefs.h. */
  7063. +_ACEOF
  7064. +cat confdefs.h >>conftest.$ac_ext
  7065. +cat >>conftest.$ac_ext <<_ACEOF
  7066. +/* end confdefs.h. */
  7067. +$ac_includes_default
  7068. + typedef __int64 ac__type_sizeof_;
  7069. +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7070. +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7071. +#include <stdio.h>
  7072. +#include <stdlib.h>
  7073. +int
  7074. +main ()
  7075. +{
  7076. +
  7077. + FILE *f = fopen ("conftest.val", "w");
  7078. + if (! f)
  7079. + return 1;
  7080. + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7081. + {
  7082. + long int i = longval ();
  7083. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7084. + return 1;
  7085. + fprintf (f, "%ld\n", i);
  7086. + }
  7087. + else
  7088. + {
  7089. + unsigned long int i = ulongval ();
  7090. + if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7091. + return 1;
  7092. + fprintf (f, "%lu\n", i);
  7093. + }
  7094. + return ferror (f) || fclose (f) != 0;
  7095. +
  7096. + ;
  7097. + return 0;
  7098. +}
  7099. +_ACEOF
  7100. +rm -f conftest$ac_exeext
  7101. +if { (ac_try="$ac_link"
  7102. +case "(($ac_try" in
  7103. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7104. + *) ac_try_echo=$ac_try;;
  7105. +esac
  7106. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7107. + (eval "$ac_link") 2>&5
  7108. + ac_status=$?
  7109. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7111. + { (case "(($ac_try" in
  7112. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7113. + *) ac_try_echo=$ac_try;;
  7114. +esac
  7115. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7116. + (eval "$ac_try") 2>&5
  7117. + ac_status=$?
  7118. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7119. + (exit $ac_status); }; }; then
  7120. + ac_cv_sizeof___int64=`cat conftest.val`
  7121. +else
  7122. + echo "$as_me: program exited with status $ac_status" >&5
  7123. +echo "$as_me: failed program was:" >&5
  7124. +sed 's/^/| /' conftest.$ac_ext >&5
  7125. +
  7126. +( exit $ac_status )
  7127. +if test "$ac_cv_type___int64" = yes; then
  7128. + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  7129. +See \`config.log' for more details." >&5
  7130. +echo "$as_me: error: cannot compute sizeof (__int64)
  7131. +See \`config.log' for more details." >&2;}
  7132. + { (exit 77); exit 77; }; }
  7133. + else
  7134. + ac_cv_sizeof___int64=0
  7135. + fi
  7136. +fi
  7137. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7138. +fi
  7139. +rm -f conftest.val
  7140. +fi
  7141. +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
  7142. +echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
  7143. +
  7144. +
  7145. +
  7146. +cat >>confdefs.h <<_ACEOF
  7147. #define SIZEOF___INT64 $ac_cv_sizeof___int64
  7148. -EOF
  7149. +_ACEOF
  7150. @@ -1674,362 +6350,652 @@ if test "$ac_cv_header_elf_h" = yes \
  7151. # Slowaris declares Elf32_Dyn in <link.h>.
  7152. # QNX declares Elf32_Dyn in <sys/link.h>.
  7153. - echo $ac_n "checking for struct Elf32_Dyn""... $ac_c" 1>&6
  7154. -echo "configure:1679: checking for struct Elf32_Dyn" >&5
  7155. -if eval "test \"`echo '$''{'libelf_cv_struct_elf32_dyn'+set}'`\" = set"; then
  7156. - echo $ac_n "(cached) $ac_c" 1>&6
  7157. + { echo "$as_me:$LINENO: checking for struct Elf32_Dyn" >&5
  7158. +echo $ECHO_N "checking for struct Elf32_Dyn... $ECHO_C" >&6; }
  7159. +if test "${libelf_cv_struct_elf32_dyn+set}" = set; then
  7160. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7161. else
  7162. -
  7163. - cat > conftest.$ac_ext <<EOF
  7164. -#line 1685 "configure"
  7165. -#include "confdefs.h"
  7166. +
  7167. + cat >conftest.$ac_ext <<_ACEOF
  7168. +/* confdefs.h. */
  7169. +_ACEOF
  7170. +cat confdefs.h >>conftest.$ac_ext
  7171. +cat >>conftest.$ac_ext <<_ACEOF
  7172. +/* end confdefs.h. */
  7173. #include __LIBELF_HEADER_ELF_H
  7174. -int main() {
  7175. +int
  7176. +main ()
  7177. +{
  7178. Elf32_Dyn x
  7179. -; return 0; }
  7180. -EOF
  7181. -if { (eval echo configure:1692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7182. - rm -rf conftest*
  7183. + ;
  7184. + return 0;
  7185. +}
  7186. +_ACEOF
  7187. +rm -f conftest.$ac_objext
  7188. +if { (ac_try="$ac_compile"
  7189. +case "(($ac_try" in
  7190. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7191. + *) ac_try_echo=$ac_try;;
  7192. +esac
  7193. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7194. + (eval "$ac_compile") 2>conftest.er1
  7195. + ac_status=$?
  7196. + grep -v '^ *+' conftest.er1 >conftest.err
  7197. + rm -f conftest.er1
  7198. + cat conftest.err >&5
  7199. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. + (exit $ac_status); } && {
  7201. + test -z "$ac_c_werror_flag" ||
  7202. + test ! -s conftest.err
  7203. + } && test -s conftest.$ac_objext; then
  7204. libelf_cv_struct_elf32_dyn=yes
  7205. else
  7206. - echo "configure: failed program was:" >&5
  7207. - cat conftest.$ac_ext >&5
  7208. - rm -rf conftest*
  7209. - cat > conftest.$ac_ext <<EOF
  7210. -#line 1700 "configure"
  7211. -#include "confdefs.h"
  7212. + echo "$as_me: failed program was:" >&5
  7213. +sed 's/^/| /' conftest.$ac_ext >&5
  7214. +
  7215. + cat >conftest.$ac_ext <<_ACEOF
  7216. +/* confdefs.h. */
  7217. +_ACEOF
  7218. +cat confdefs.h >>conftest.$ac_ext
  7219. +cat >>conftest.$ac_ext <<_ACEOF
  7220. +/* end confdefs.h. */
  7221. #include <link.h>
  7222. -int main() {
  7223. +int
  7224. +main ()
  7225. +{
  7226. Elf32_Dyn x
  7227. -; return 0; }
  7228. -EOF
  7229. -if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7230. - rm -rf conftest*
  7231. + ;
  7232. + return 0;
  7233. +}
  7234. +_ACEOF
  7235. +rm -f conftest.$ac_objext
  7236. +if { (ac_try="$ac_compile"
  7237. +case "(($ac_try" in
  7238. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7239. + *) ac_try_echo=$ac_try;;
  7240. +esac
  7241. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7242. + (eval "$ac_compile") 2>conftest.er1
  7243. + ac_status=$?
  7244. + grep -v '^ *+' conftest.er1 >conftest.err
  7245. + rm -f conftest.er1
  7246. + cat conftest.err >&5
  7247. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. + (exit $ac_status); } && {
  7249. + test -z "$ac_c_werror_flag" ||
  7250. + test ! -s conftest.err
  7251. + } && test -s conftest.$ac_objext; then
  7252. libelf_cv_struct_elf32_dyn=link.h
  7253. else
  7254. - echo "configure: failed program was:" >&5
  7255. - cat conftest.$ac_ext >&5
  7256. - rm -rf conftest*
  7257. - cat > conftest.$ac_ext <<EOF
  7258. -#line 1715 "configure"
  7259. -#include "confdefs.h"
  7260. + echo "$as_me: failed program was:" >&5
  7261. +sed 's/^/| /' conftest.$ac_ext >&5
  7262. +
  7263. + cat >conftest.$ac_ext <<_ACEOF
  7264. +/* confdefs.h. */
  7265. +_ACEOF
  7266. +cat confdefs.h >>conftest.$ac_ext
  7267. +cat >>conftest.$ac_ext <<_ACEOF
  7268. +/* end confdefs.h. */
  7269. #include <sys/link.h>
  7270. -int main() {
  7271. +int
  7272. +main ()
  7273. +{
  7274. Elf32_Dyn x
  7275. -; return 0; }
  7276. -EOF
  7277. -if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7278. - rm -rf conftest*
  7279. + ;
  7280. + return 0;
  7281. +}
  7282. +_ACEOF
  7283. +rm -f conftest.$ac_objext
  7284. +if { (ac_try="$ac_compile"
  7285. +case "(($ac_try" in
  7286. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7287. + *) ac_try_echo=$ac_try;;
  7288. +esac
  7289. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7290. + (eval "$ac_compile") 2>conftest.er1
  7291. + ac_status=$?
  7292. + grep -v '^ *+' conftest.er1 >conftest.err
  7293. + rm -f conftest.er1
  7294. + cat conftest.err >&5
  7295. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7296. + (exit $ac_status); } && {
  7297. + test -z "$ac_c_werror_flag" ||
  7298. + test ! -s conftest.err
  7299. + } && test -s conftest.$ac_objext; then
  7300. libelf_cv_struct_elf32_dyn=sys/link.h
  7301. else
  7302. - echo "configure: failed program was:" >&5
  7303. - cat conftest.$ac_ext >&5
  7304. - rm -rf conftest*
  7305. - libelf_cv_struct_elf32_dyn=no
  7306. -fi
  7307. -rm -f conftest*
  7308. + echo "$as_me: failed program was:" >&5
  7309. +sed 's/^/| /' conftest.$ac_ext >&5
  7310. +
  7311. + libelf_cv_struct_elf32_dyn=no
  7312. fi
  7313. -rm -f conftest*
  7314. +
  7315. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7316. fi
  7317. -rm -f conftest*
  7318. +
  7319. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7320. fi
  7321. -echo "$ac_t""$libelf_cv_struct_elf32_dyn" 1>&6
  7322. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7323. +fi
  7324. +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf32_dyn" >&5
  7325. +echo "${ECHO_T}$libelf_cv_struct_elf32_dyn" >&6; }
  7326. if test "$libelf_cv_struct_elf32_dyn" = link.h; then
  7327. - cat >> confdefs.h <<\EOF
  7328. + cat >>confdefs.h <<\_ACEOF
  7329. #define __LIBELF_NEED_LINK_H 1
  7330. -EOF
  7331. +_ACEOF
  7332. elif test "$libelf_cv_struct_elf32_dyn" = sys/link.h; then
  7333. - cat >> confdefs.h <<\EOF
  7334. + cat >>confdefs.h <<\_ACEOF
  7335. #define __LIBELF_NEED_SYS_LINK_H 1
  7336. -EOF
  7337. +_ACEOF
  7338. elif test "$libelf_cv_struct_elf32_dyn" = no; then
  7339. - { echo "configure: error: no declaration for Elf32_Dyn" 1>&2; exit 1; }
  7340. + { { echo "$as_me:$LINENO: error: no declaration for Elf32_Dyn" >&5
  7341. +echo "$as_me: error: no declaration for Elf32_Dyn" >&2;}
  7342. + { (exit 1); exit 1; }; }
  7343. fi
  7344. # Linux declares struct nlist in <elf.h>.
  7345. - echo $ac_n "checking for struct nlist in elf.h""... $ac_c" 1>&6
  7346. -echo "configure:1755: checking for struct nlist in elf.h" >&5
  7347. -if eval "test \"`echo '$''{'libelf_cv_struct_nlist'+set}'`\" = set"; then
  7348. - echo $ac_n "(cached) $ac_c" 1>&6
  7349. + { echo "$as_me:$LINENO: checking for struct nlist in elf.h" >&5
  7350. +echo $ECHO_N "checking for struct nlist in elf.h... $ECHO_C" >&6; }
  7351. +if test "${libelf_cv_struct_nlist+set}" = set; then
  7352. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7353. else
  7354. -
  7355. - cat > conftest.$ac_ext <<EOF
  7356. -#line 1761 "configure"
  7357. -#include "confdefs.h"
  7358. +
  7359. + cat >conftest.$ac_ext <<_ACEOF
  7360. +/* confdefs.h. */
  7361. +_ACEOF
  7362. +cat confdefs.h >>conftest.$ac_ext
  7363. +cat >>conftest.$ac_ext <<_ACEOF
  7364. +/* end confdefs.h. */
  7365. #include __LIBELF_HEADER_ELF_H
  7366. -int main() {
  7367. +int
  7368. +main ()
  7369. +{
  7370. struct nlist nl
  7371. -; return 0; }
  7372. -EOF
  7373. -if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7374. - rm -rf conftest*
  7375. + ;
  7376. + return 0;
  7377. +}
  7378. +_ACEOF
  7379. +rm -f conftest.$ac_objext
  7380. +if { (ac_try="$ac_compile"
  7381. +case "(($ac_try" in
  7382. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7383. + *) ac_try_echo=$ac_try;;
  7384. +esac
  7385. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7386. + (eval "$ac_compile") 2>conftest.er1
  7387. + ac_status=$?
  7388. + grep -v '^ *+' conftest.er1 >conftest.err
  7389. + rm -f conftest.er1
  7390. + cat conftest.err >&5
  7391. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. + (exit $ac_status); } && {
  7393. + test -z "$ac_c_werror_flag" ||
  7394. + test ! -s conftest.err
  7395. + } && test -s conftest.$ac_objext; then
  7396. libelf_cv_struct_nlist=yes
  7397. else
  7398. - echo "configure: failed program was:" >&5
  7399. - cat conftest.$ac_ext >&5
  7400. - rm -rf conftest*
  7401. - libelf_cv_struct_nlist=no
  7402. -fi
  7403. -rm -f conftest*
  7404. + echo "$as_me: failed program was:" >&5
  7405. +sed 's/^/| /' conftest.$ac_ext >&5
  7406. +
  7407. + libelf_cv_struct_nlist=no
  7408. fi
  7409. -echo "$ac_t""$libelf_cv_struct_nlist" 1>&6
  7410. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7411. +fi
  7412. +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_nlist" >&5
  7413. +echo "${ECHO_T}$libelf_cv_struct_nlist" >&6; }
  7414. if test "$libelf_cv_struct_nlist" = yes; then
  7415. - cat >> confdefs.h <<\EOF
  7416. + cat >>confdefs.h <<\_ACEOF
  7417. #define HAVE_STRUCT_NLIST_DECLARATION 1
  7418. -EOF
  7419. +_ACEOF
  7420. fi
  7421. # Check for 64-bit data types.
  7422. - echo $ac_n "checking for struct Elf64_Ehdr""... $ac_c" 1>&6
  7423. -echo "configure:1790: checking for struct Elf64_Ehdr" >&5
  7424. -if eval "test \"`echo '$''{'libelf_cv_struct_elf64_ehdr'+set}'`\" = set"; then
  7425. - echo $ac_n "(cached) $ac_c" 1>&6
  7426. + { echo "$as_me:$LINENO: checking for struct Elf64_Ehdr" >&5
  7427. +echo $ECHO_N "checking for struct Elf64_Ehdr... $ECHO_C" >&6; }
  7428. +if test "${libelf_cv_struct_elf64_ehdr+set}" = set; then
  7429. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7430. else
  7431. - cat > conftest.$ac_ext <<EOF
  7432. -#line 1795 "configure"
  7433. -#include "confdefs.h"
  7434. + cat >conftest.$ac_ext <<_ACEOF
  7435. +/* confdefs.h. */
  7436. +_ACEOF
  7437. +cat confdefs.h >>conftest.$ac_ext
  7438. +cat >>conftest.$ac_ext <<_ACEOF
  7439. +/* end confdefs.h. */
  7440. #include __LIBELF_HEADER_ELF_H
  7441. -int main() {
  7442. +int
  7443. +main ()
  7444. +{
  7445. Elf64_Ehdr x
  7446. -; return 0; }
  7447. -EOF
  7448. -if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7449. - rm -rf conftest*
  7450. + ;
  7451. + return 0;
  7452. +}
  7453. +_ACEOF
  7454. +rm -f conftest.$ac_objext
  7455. +if { (ac_try="$ac_compile"
  7456. +case "(($ac_try" in
  7457. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7458. + *) ac_try_echo=$ac_try;;
  7459. +esac
  7460. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7461. + (eval "$ac_compile") 2>conftest.er1
  7462. + ac_status=$?
  7463. + grep -v '^ *+' conftest.er1 >conftest.err
  7464. + rm -f conftest.er1
  7465. + cat conftest.err >&5
  7466. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7467. + (exit $ac_status); } && {
  7468. + test -z "$ac_c_werror_flag" ||
  7469. + test ! -s conftest.err
  7470. + } && test -s conftest.$ac_objext; then
  7471. libelf_cv_struct_elf64_ehdr=yes
  7472. else
  7473. - echo "configure: failed program was:" >&5
  7474. - cat conftest.$ac_ext >&5
  7475. - rm -rf conftest*
  7476. - libelf_cv_struct_elf64_ehdr=no
  7477. -fi
  7478. -rm -f conftest*
  7479. + echo "$as_me: failed program was:" >&5
  7480. +sed 's/^/| /' conftest.$ac_ext >&5
  7481. +
  7482. + libelf_cv_struct_elf64_ehdr=no
  7483. fi
  7484. -echo "$ac_t""$libelf_cv_struct_elf64_ehdr" 1>&6
  7485. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7486. +fi
  7487. +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf64_ehdr" >&5
  7488. +echo "${ECHO_T}$libelf_cv_struct_elf64_ehdr" >&6; }
  7489. # Linux lacks typedefs for scalar ELF64_* types.
  7490. - echo $ac_n "checking for Elf64_Addr""... $ac_c" 1>&6
  7491. -echo "configure:1818: checking for Elf64_Addr" >&5
  7492. -if eval "test \"`echo '$''{'libelf_cv_type_elf64_addr'+set}'`\" = set"; then
  7493. - echo $ac_n "(cached) $ac_c" 1>&6
  7494. + { echo "$as_me:$LINENO: checking for Elf64_Addr" >&5
  7495. +echo $ECHO_N "checking for Elf64_Addr... $ECHO_C" >&6; }
  7496. +if test "${libelf_cv_type_elf64_addr+set}" = set; then
  7497. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7498. else
  7499. - cat > conftest.$ac_ext <<EOF
  7500. -#line 1823 "configure"
  7501. -#include "confdefs.h"
  7502. + cat >conftest.$ac_ext <<_ACEOF
  7503. +/* confdefs.h. */
  7504. +_ACEOF
  7505. +cat confdefs.h >>conftest.$ac_ext
  7506. +cat >>conftest.$ac_ext <<_ACEOF
  7507. +/* end confdefs.h. */
  7508. #include __LIBELF_HEADER_ELF_H
  7509. -int main() {
  7510. +int
  7511. +main ()
  7512. +{
  7513. Elf64_Addr x
  7514. -; return 0; }
  7515. -EOF
  7516. -if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7517. - rm -rf conftest*
  7518. + ;
  7519. + return 0;
  7520. +}
  7521. +_ACEOF
  7522. +rm -f conftest.$ac_objext
  7523. +if { (ac_try="$ac_compile"
  7524. +case "(($ac_try" in
  7525. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7526. + *) ac_try_echo=$ac_try;;
  7527. +esac
  7528. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7529. + (eval "$ac_compile") 2>conftest.er1
  7530. + ac_status=$?
  7531. + grep -v '^ *+' conftest.er1 >conftest.err
  7532. + rm -f conftest.er1
  7533. + cat conftest.err >&5
  7534. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. + (exit $ac_status); } && {
  7536. + test -z "$ac_c_werror_flag" ||
  7537. + test ! -s conftest.err
  7538. + } && test -s conftest.$ac_objext; then
  7539. libelf_cv_type_elf64_addr=yes
  7540. else
  7541. - echo "configure: failed program was:" >&5
  7542. - cat conftest.$ac_ext >&5
  7543. - rm -rf conftest*
  7544. - libelf_cv_type_elf64_addr=no
  7545. -fi
  7546. -rm -f conftest*
  7547. + echo "$as_me: failed program was:" >&5
  7548. +sed 's/^/| /' conftest.$ac_ext >&5
  7549. +
  7550. + libelf_cv_type_elf64_addr=no
  7551. fi
  7552. -echo "$ac_t""$libelf_cv_type_elf64_addr" 1>&6
  7553. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. +fi
  7555. +{ echo "$as_me:$LINENO: result: $libelf_cv_type_elf64_addr" >&5
  7556. +echo "${ECHO_T}$libelf_cv_type_elf64_addr" >&6; }
  7557. # IRIX' struct Elf64_Rel is slightly different. Ugh.
  7558. - echo $ac_n "checking for struct Elf64_Rel""... $ac_c" 1>&6
  7559. -echo "configure:1846: checking for struct Elf64_Rel" >&5
  7560. -if eval "test \"`echo '$''{'libelf_cv_struct_elf64_rel'+set}'`\" = set"; then
  7561. - echo $ac_n "(cached) $ac_c" 1>&6
  7562. + { echo "$as_me:$LINENO: checking for struct Elf64_Rel" >&5
  7563. +echo $ECHO_N "checking for struct Elf64_Rel... $ECHO_C" >&6; }
  7564. +if test "${libelf_cv_struct_elf64_rel+set}" = set; then
  7565. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. - cat > conftest.$ac_ext <<EOF
  7568. -#line 1851 "configure"
  7569. -#include "confdefs.h"
  7570. + cat >conftest.$ac_ext <<_ACEOF
  7571. +/* confdefs.h. */
  7572. +_ACEOF
  7573. +cat confdefs.h >>conftest.$ac_ext
  7574. +cat >>conftest.$ac_ext <<_ACEOF
  7575. +/* end confdefs.h. */
  7576. #include __LIBELF_HEADER_ELF_H
  7577. -int main() {
  7578. +int
  7579. +main ()
  7580. +{
  7581. Elf64_Rel x; x.r_info = 1
  7582. -; return 0; }
  7583. -EOF
  7584. -if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7585. - rm -rf conftest*
  7586. + ;
  7587. + return 0;
  7588. +}
  7589. +_ACEOF
  7590. +rm -f conftest.$ac_objext
  7591. +if { (ac_try="$ac_compile"
  7592. +case "(($ac_try" in
  7593. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7594. + *) ac_try_echo=$ac_try;;
  7595. +esac
  7596. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7597. + (eval "$ac_compile") 2>conftest.er1
  7598. + ac_status=$?
  7599. + grep -v '^ *+' conftest.er1 >conftest.err
  7600. + rm -f conftest.er1
  7601. + cat conftest.err >&5
  7602. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7603. + (exit $ac_status); } && {
  7604. + test -z "$ac_c_werror_flag" ||
  7605. + test ! -s conftest.err
  7606. + } && test -s conftest.$ac_objext; then
  7607. libelf_cv_struct_elf64_rel=yes
  7608. else
  7609. - echo "configure: failed program was:" >&5
  7610. - cat conftest.$ac_ext >&5
  7611. - rm -rf conftest*
  7612. - cat > conftest.$ac_ext <<EOF
  7613. -#line 1866 "configure"
  7614. -#include "confdefs.h"
  7615. + echo "$as_me: failed program was:" >&5
  7616. +sed 's/^/| /' conftest.$ac_ext >&5
  7617. +
  7618. + cat >conftest.$ac_ext <<_ACEOF
  7619. +/* confdefs.h. */
  7620. +_ACEOF
  7621. +cat confdefs.h >>conftest.$ac_ext
  7622. +cat >>conftest.$ac_ext <<_ACEOF
  7623. +/* end confdefs.h. */
  7624. #include __LIBELF_HEADER_ELF_H
  7625. -int main() {
  7626. +int
  7627. +main ()
  7628. +{
  7629. Elf64_Rel x; x.r_sym = 1
  7630. -; return 0; }
  7631. -EOF
  7632. -if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7633. - rm -rf conftest*
  7634. + ;
  7635. + return 0;
  7636. +}
  7637. +_ACEOF
  7638. +rm -f conftest.$ac_objext
  7639. +if { (ac_try="$ac_compile"
  7640. +case "(($ac_try" in
  7641. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. + *) ac_try_echo=$ac_try;;
  7643. +esac
  7644. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7645. + (eval "$ac_compile") 2>conftest.er1
  7646. + ac_status=$?
  7647. + grep -v '^ *+' conftest.er1 >conftest.err
  7648. + rm -f conftest.er1
  7649. + cat conftest.err >&5
  7650. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. + (exit $ac_status); } && {
  7652. + test -z "$ac_c_werror_flag" ||
  7653. + test ! -s conftest.err
  7654. + } && test -s conftest.$ac_objext; then
  7655. libelf_cv_struct_elf64_rel=irix
  7656. else
  7657. - echo "configure: failed program was:" >&5
  7658. - cat conftest.$ac_ext >&5
  7659. - rm -rf conftest*
  7660. - libelf_cv_struct_elf64_rel=no
  7661. -fi
  7662. -rm -f conftest*
  7663. + echo "$as_me: failed program was:" >&5
  7664. +sed 's/^/| /' conftest.$ac_ext >&5
  7665. +
  7666. + libelf_cv_struct_elf64_rel=no
  7667. fi
  7668. -rm -f conftest*
  7669. +
  7670. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7671. fi
  7672. -echo "$ac_t""$libelf_cv_struct_elf64_rel" 1>&6
  7673. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7674. +fi
  7675. +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf64_rel" >&5
  7676. +echo "${ECHO_T}$libelf_cv_struct_elf64_rel" >&6; }
  7677. + { echo "$as_me:$LINENO: checking for 64bit support" >&5
  7678. +echo $ECHO_N "checking for 64bit support... $ECHO_C" >&6; }
  7679. +if test "${libelf_64bit+set}" = set; then
  7680. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7681. +else
  7682. case "$libelf_cv_struct_elf64_ehdr:\
  7683. $libelf_cv_type_elf64_addr:\
  7684. $libelf_cv_struct_elf64_rel" in
  7685. yes:yes:yes)
  7686. libelf_64bit=yes;;
  7687. yes:yes:irix)
  7688. - cat >> confdefs.h <<\EOF
  7689. -#define __LIBELF64_IRIX 1
  7690. -EOF
  7691. -
  7692. - libelf_64bit=yes;;
  7693. + libelf_64bit=irix;;
  7694. yes:no:yes)
  7695. - cat >> confdefs.h <<\EOF
  7696. -#define __LIBELF64_LINUX 1
  7697. -EOF
  7698. -
  7699. - libelf_64bit=yes;;
  7700. + libelf_64bit=linux;;
  7701. *)
  7702. libelf_64bit=no;;
  7703. esac
  7704. +fi
  7705. +{ echo "$as_me:$LINENO: result: $libelf_64bit" >&5
  7706. +echo "${ECHO_T}$libelf_64bit" >&6; }
  7707. + case $libelf_64bit in
  7708. + yes) ;;
  7709. + linux) cat >>confdefs.h <<\_ACEOF
  7710. +#define __LIBELF64_LINUX 1
  7711. +_ACEOF
  7712. + ;;
  7713. + irix) cat >>confdefs.h <<\_ACEOF
  7714. +#define __LIBELF64_IRIX 1
  7715. +_ACEOF
  7716. + ;;
  7717. + esac
  7718. +
  7719. # Check for symbol versioning definitions
  7720. - echo $ac_n "checking for Elf32_Verdef""... $ac_c" 1>&6
  7721. -echo "configure:1912: checking for Elf32_Verdef" >&5
  7722. -if eval "test \"`echo '$''{'libelf_cv_verdef32'+set}'`\" = set"; then
  7723. - echo $ac_n "(cached) $ac_c" 1>&6
  7724. + { echo "$as_me:$LINENO: checking for Elf32_Verdef" >&5
  7725. +echo $ECHO_N "checking for Elf32_Verdef... $ECHO_C" >&6; }
  7726. +if test "${libelf_cv_verdef32+set}" = set; then
  7727. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7728. else
  7729. - cat > conftest.$ac_ext <<EOF
  7730. -#line 1917 "configure"
  7731. -#include "confdefs.h"
  7732. + cat >conftest.$ac_ext <<_ACEOF
  7733. +/* confdefs.h. */
  7734. +_ACEOF
  7735. +cat confdefs.h >>conftest.$ac_ext
  7736. +cat >>conftest.$ac_ext <<_ACEOF
  7737. +/* end confdefs.h. */
  7738. #include __LIBELF_HEADER_ELF_H
  7739. #if __LIBELF_NEED_LINK_H
  7740. #include <link.h> /* Solaris wants this */
  7741. #endif
  7742. -int main() {
  7743. +int
  7744. +main ()
  7745. +{
  7746. struct {
  7747. Elf32_Verdef vd;
  7748. Elf32_Verdaux vda;
  7749. Elf32_Verneed vn;
  7750. Elf32_Vernaux vna;
  7751. } x
  7752. -; return 0; }
  7753. -EOF
  7754. -if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7755. - rm -rf conftest*
  7756. + ;
  7757. + return 0;
  7758. +}
  7759. +_ACEOF
  7760. +rm -f conftest.$ac_objext
  7761. +if { (ac_try="$ac_compile"
  7762. +case "(($ac_try" in
  7763. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7764. + *) ac_try_echo=$ac_try;;
  7765. +esac
  7766. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7767. + (eval "$ac_compile") 2>conftest.er1
  7768. + ac_status=$?
  7769. + grep -v '^ *+' conftest.er1 >conftest.err
  7770. + rm -f conftest.er1
  7771. + cat conftest.err >&5
  7772. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7773. + (exit $ac_status); } && {
  7774. + test -z "$ac_c_werror_flag" ||
  7775. + test ! -s conftest.err
  7776. + } && test -s conftest.$ac_objext; then
  7777. libelf_cv_verdef32=yes
  7778. else
  7779. - echo "configure: failed program was:" >&5
  7780. - cat conftest.$ac_ext >&5
  7781. - rm -rf conftest*
  7782. - libelf_cv_verdef32=no
  7783. -fi
  7784. -rm -f conftest*
  7785. + echo "$as_me: failed program was:" >&5
  7786. +sed 's/^/| /' conftest.$ac_ext >&5
  7787. +
  7788. + libelf_cv_verdef32=no
  7789. fi
  7790. -echo "$ac_t""$libelf_cv_verdef32" 1>&6
  7791. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7792. +fi
  7793. +{ echo "$as_me:$LINENO: result: $libelf_cv_verdef32" >&5
  7794. +echo "${ECHO_T}$libelf_cv_verdef32" >&6; }
  7795. - echo $ac_n "checking for Elf64_Verdef""... $ac_c" 1>&6
  7796. -echo "configure:1947: checking for Elf64_Verdef" >&5
  7797. -if eval "test \"`echo '$''{'libelf_cv_verdef64'+set}'`\" = set"; then
  7798. - echo $ac_n "(cached) $ac_c" 1>&6
  7799. + { echo "$as_me:$LINENO: checking for Elf64_Verdef" >&5
  7800. +echo $ECHO_N "checking for Elf64_Verdef... $ECHO_C" >&6; }
  7801. +if test "${libelf_cv_verdef64+set}" = set; then
  7802. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7803. else
  7804. - cat > conftest.$ac_ext <<EOF
  7805. -#line 1952 "configure"
  7806. -#include "confdefs.h"
  7807. + cat >conftest.$ac_ext <<_ACEOF
  7808. +/* confdefs.h. */
  7809. +_ACEOF
  7810. +cat confdefs.h >>conftest.$ac_ext
  7811. +cat >>conftest.$ac_ext <<_ACEOF
  7812. +/* end confdefs.h. */
  7813. #include __LIBELF_HEADER_ELF_H
  7814. #if __LIBELF_NEED_LINK_H
  7815. #include <link.h> /* Solaris wants this */
  7816. #endif
  7817. -int main() {
  7818. +int
  7819. +main ()
  7820. +{
  7821. struct {
  7822. Elf64_Verdef vd;
  7823. Elf64_Verdaux vda;
  7824. Elf64_Verneed vn;
  7825. Elf64_Vernaux vna;
  7826. } x
  7827. -; return 0; }
  7828. -EOF
  7829. -if { (eval echo configure:1967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7830. - rm -rf conftest*
  7831. + ;
  7832. + return 0;
  7833. +}
  7834. +_ACEOF
  7835. +rm -f conftest.$ac_objext
  7836. +if { (ac_try="$ac_compile"
  7837. +case "(($ac_try" in
  7838. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7839. + *) ac_try_echo=$ac_try;;
  7840. +esac
  7841. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7842. + (eval "$ac_compile") 2>conftest.er1
  7843. + ac_status=$?
  7844. + grep -v '^ *+' conftest.er1 >conftest.err
  7845. + rm -f conftest.er1
  7846. + cat conftest.err >&5
  7847. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7848. + (exit $ac_status); } && {
  7849. + test -z "$ac_c_werror_flag" ||
  7850. + test ! -s conftest.err
  7851. + } && test -s conftest.$ac_objext; then
  7852. libelf_cv_verdef64=yes
  7853. else
  7854. - echo "configure: failed program was:" >&5
  7855. - cat conftest.$ac_ext >&5
  7856. - rm -rf conftest*
  7857. - libelf_cv_verdef64=no
  7858. -fi
  7859. -rm -f conftest*
  7860. + echo "$as_me: failed program was:" >&5
  7861. +sed 's/^/| /' conftest.$ac_ext >&5
  7862. +
  7863. + libelf_cv_verdef64=no
  7864. fi
  7865. -echo "$ac_t""$libelf_cv_verdef64" 1>&6
  7866. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7867. +fi
  7868. +{ echo "$as_me:$LINENO: result: $libelf_cv_verdef64" >&5
  7869. +echo "${ECHO_T}$libelf_cv_verdef64" >&6; }
  7870. - echo $ac_n "checking for SHT_SUNW_verdef""... $ac_c" 1>&6
  7871. -echo "configure:1982: checking for SHT_SUNW_verdef" >&5
  7872. -if eval "test \"`echo '$''{'libelf_cv_sun_verdef'+set}'`\" = set"; then
  7873. - echo $ac_n "(cached) $ac_c" 1>&6
  7874. + { echo "$as_me:$LINENO: checking for SHT_SUNW_verdef" >&5
  7875. +echo $ECHO_N "checking for SHT_SUNW_verdef... $ECHO_C" >&6; }
  7876. +if test "${libelf_cv_sun_verdef+set}" = set; then
  7877. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7878. else
  7879. - cat > conftest.$ac_ext <<EOF
  7880. -#line 1987 "configure"
  7881. -#include "confdefs.h"
  7882. + cat >conftest.$ac_ext <<_ACEOF
  7883. +/* confdefs.h. */
  7884. +_ACEOF
  7885. +cat confdefs.h >>conftest.$ac_ext
  7886. +cat >>conftest.$ac_ext <<_ACEOF
  7887. +/* end confdefs.h. */
  7888. #include __LIBELF_HEADER_ELF_H
  7889. -int main() {
  7890. +int
  7891. +main ()
  7892. +{
  7893. Elf32_Word x = SHT_SUNW_verdef + SHT_SUNW_verneed + SHT_SUNW_versym
  7894. -; return 0; }
  7895. -EOF
  7896. -if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7897. - rm -rf conftest*
  7898. + ;
  7899. + return 0;
  7900. +}
  7901. +_ACEOF
  7902. +rm -f conftest.$ac_objext
  7903. +if { (ac_try="$ac_compile"
  7904. +case "(($ac_try" in
  7905. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7906. + *) ac_try_echo=$ac_try;;
  7907. +esac
  7908. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7909. + (eval "$ac_compile") 2>conftest.er1
  7910. + ac_status=$?
  7911. + grep -v '^ *+' conftest.er1 >conftest.err
  7912. + rm -f conftest.er1
  7913. + cat conftest.err >&5
  7914. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7915. + (exit $ac_status); } && {
  7916. + test -z "$ac_c_werror_flag" ||
  7917. + test ! -s conftest.err
  7918. + } && test -s conftest.$ac_objext; then
  7919. libelf_cv_sun_verdef=yes
  7920. else
  7921. - echo "configure: failed program was:" >&5
  7922. - cat conftest.$ac_ext >&5
  7923. - rm -rf conftest*
  7924. - libelf_cv_sun_verdef=no
  7925. -fi
  7926. -rm -f conftest*
  7927. + echo "$as_me: failed program was:" >&5
  7928. +sed 's/^/| /' conftest.$ac_ext >&5
  7929. +
  7930. + libelf_cv_sun_verdef=no
  7931. fi
  7932. -echo "$ac_t""$libelf_cv_sun_verdef" 1>&6
  7933. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7934. +fi
  7935. +{ echo "$as_me:$LINENO: result: $libelf_cv_sun_verdef" >&5
  7936. +echo "${ECHO_T}$libelf_cv_sun_verdef" >&6; }
  7937. - echo $ac_n "checking for SHT_GNU_verdef""... $ac_c" 1>&6
  7938. -echo "configure:2009: checking for SHT_GNU_verdef" >&5
  7939. -if eval "test \"`echo '$''{'libelf_cv_gnu_verdef'+set}'`\" = set"; then
  7940. - echo $ac_n "(cached) $ac_c" 1>&6
  7941. + { echo "$as_me:$LINENO: checking for SHT_GNU_verdef" >&5
  7942. +echo $ECHO_N "checking for SHT_GNU_verdef... $ECHO_C" >&6; }
  7943. +if test "${libelf_cv_gnu_verdef+set}" = set; then
  7944. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7945. else
  7946. - cat > conftest.$ac_ext <<EOF
  7947. -#line 2014 "configure"
  7948. -#include "confdefs.h"
  7949. + cat >conftest.$ac_ext <<_ACEOF
  7950. +/* confdefs.h. */
  7951. +_ACEOF
  7952. +cat confdefs.h >>conftest.$ac_ext
  7953. +cat >>conftest.$ac_ext <<_ACEOF
  7954. +/* end confdefs.h. */
  7955. #include __LIBELF_HEADER_ELF_H
  7956. -int main() {
  7957. +int
  7958. +main ()
  7959. +{
  7960. Elf32_Word x = SHT_GNU_verdef + SHT_GNU_verneed + SHT_GNU_versym
  7961. -; return 0; }
  7962. -EOF
  7963. -if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7964. - rm -rf conftest*
  7965. + ;
  7966. + return 0;
  7967. +}
  7968. +_ACEOF
  7969. +rm -f conftest.$ac_objext
  7970. +if { (ac_try="$ac_compile"
  7971. +case "(($ac_try" in
  7972. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7973. + *) ac_try_echo=$ac_try;;
  7974. +esac
  7975. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7976. + (eval "$ac_compile") 2>conftest.er1
  7977. + ac_status=$?
  7978. + grep -v '^ *+' conftest.er1 >conftest.err
  7979. + rm -f conftest.er1
  7980. + cat conftest.err >&5
  7981. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. + (exit $ac_status); } && {
  7983. + test -z "$ac_c_werror_flag" ||
  7984. + test ! -s conftest.err
  7985. + } && test -s conftest.$ac_objext; then
  7986. libelf_cv_gnu_verdef=yes
  7987. else
  7988. - echo "configure: failed program was:" >&5
  7989. - cat conftest.$ac_ext >&5
  7990. - rm -rf conftest*
  7991. - libelf_cv_gnu_verdef=no
  7992. -fi
  7993. -rm -f conftest*
  7994. + echo "$as_me: failed program was:" >&5
  7995. +sed 's/^/| /' conftest.$ac_ext >&5
  7996. +
  7997. + libelf_cv_gnu_verdef=no
  7998. fi
  7999. -echo "$ac_t""$libelf_cv_gnu_verdef" 1>&6
  8000. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8001. +fi
  8002. +{ echo "$as_me:$LINENO: result: $libelf_cv_gnu_verdef" >&5
  8003. +echo "${ECHO_T}$libelf_cv_gnu_verdef" >&6; }
  8004. else
  8005. # lib/elf_repl.h supports 64-bit
  8006. libelf_64bit=yes
  8007. @@ -2041,12 +7007,12 @@ else
  8008. libelf_cv_gnu_verdef=yes
  8009. fi
  8010. -echo $ac_n "checking for 64-bit integer""... $ac_c" 1>&6
  8011. -echo "configure:2046: checking for 64-bit integer" >&5
  8012. -if eval "test \"`echo '$''{'libelf_cv_int64'+set}'`\" = set"; then
  8013. - echo $ac_n "(cached) $ac_c" 1>&6
  8014. +{ echo "$as_me:$LINENO: checking for 64-bit integer" >&5
  8015. +echo $ECHO_N "checking for 64-bit integer... $ECHO_C" >&6; }
  8016. +if test "${libelf_cv_int64+set}" = set; then
  8017. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8018. else
  8019. -
  8020. +
  8021. if test "$ac_cv_sizeof_long" = 8; then
  8022. libelf_cv_int64='long'
  8023. elif test "$ac_cv_sizeof___int64" = 8; then
  8024. @@ -2057,27 +7023,27 @@ else
  8025. libelf_cv_int64=no
  8026. fi
  8027. fi
  8028. -
  8029. -echo "$ac_t""$libelf_cv_int64" 1>&6
  8030. +{ echo "$as_me:$LINENO: result: $libelf_cv_int64" >&5
  8031. +echo "${ECHO_T}$libelf_cv_int64" >&6; }
  8032. if test "$libelf_cv_int64" = no; then
  8033. libelf_64bit=no
  8034. else
  8035. - cat >> confdefs.h <<EOF
  8036. + cat >>confdefs.h <<_ACEOF
  8037. #define __libelf_i64_t $libelf_cv_int64
  8038. -EOF
  8039. +_ACEOF
  8040. - cat >> confdefs.h <<EOF
  8041. + cat >>confdefs.h <<_ACEOF
  8042. #define __libelf_u64_t unsigned $libelf_cv_int64
  8043. -EOF
  8044. +_ACEOF
  8045. fi
  8046. -echo $ac_n "checking for 32-bit integer""... $ac_c" 1>&6
  8047. -echo "configure:2077: checking for 32-bit integer" >&5
  8048. -if eval "test \"`echo '$''{'libelf_cv_int32'+set}'`\" = set"; then
  8049. - echo $ac_n "(cached) $ac_c" 1>&6
  8050. +{ echo "$as_me:$LINENO: checking for 32-bit integer" >&5
  8051. +echo $ECHO_N "checking for 32-bit integer... $ECHO_C" >&6; }
  8052. +if test "${libelf_cv_int32+set}" = set; then
  8053. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8054. else
  8055. -
  8056. +
  8057. if test "$ac_cv_sizeof_int" = 4; then
  8058. libelf_cv_int32='int'
  8059. elif test "$ac_cv_sizeof_long" = 4; then
  8060. @@ -2086,27 +7052,29 @@ else
  8061. libelf_cv_int32=no
  8062. fi
  8063. fi
  8064. -
  8065. -echo "$ac_t""$libelf_cv_int32" 1>&6
  8066. +{ echo "$as_me:$LINENO: result: $libelf_cv_int32" >&5
  8067. +echo "${ECHO_T}$libelf_cv_int32" >&6; }
  8068. if test "$libelf_cv_int32" = no; then
  8069. - { echo "configure: error: neither int nor long is 32-bit" 1>&2; exit 1; }
  8070. + { { echo "$as_me:$LINENO: error: neither int nor long is 32-bit" >&5
  8071. +echo "$as_me: error: neither int nor long is 32-bit" >&2;}
  8072. + { (exit 1); exit 1; }; }
  8073. else
  8074. - cat >> confdefs.h <<EOF
  8075. + cat >>confdefs.h <<_ACEOF
  8076. #define __libelf_i32_t $libelf_cv_int32
  8077. -EOF
  8078. +_ACEOF
  8079. - cat >> confdefs.h <<EOF
  8080. + cat >>confdefs.h <<_ACEOF
  8081. #define __libelf_u32_t unsigned $libelf_cv_int32
  8082. -EOF
  8083. +_ACEOF
  8084. fi
  8085. -echo $ac_n "checking for 16-bit integer""... $ac_c" 1>&6
  8086. -echo "configure:2106: checking for 16-bit integer" >&5
  8087. -if eval "test \"`echo '$''{'libelf_cv_int16'+set}'`\" = set"; then
  8088. - echo $ac_n "(cached) $ac_c" 1>&6
  8089. +{ echo "$as_me:$LINENO: checking for 16-bit integer" >&5
  8090. +echo $ECHO_N "checking for 16-bit integer... $ECHO_C" >&6; }
  8091. +if test "${libelf_cv_int16+set}" = set; then
  8092. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8093. else
  8094. -
  8095. +
  8096. if test "$ac_cv_sizeof_short" = 2; then
  8097. libelf_cv_int16='short'
  8098. elif test "$ac_cv_sizeof_int" = 2; then
  8099. @@ -2115,127 +7083,275 @@ else
  8100. libelf_cv_int16=no
  8101. fi
  8102. fi
  8103. -
  8104. -echo "$ac_t""$libelf_cv_int16" 1>&6
  8105. +{ echo "$as_me:$LINENO: result: $libelf_cv_int16" >&5
  8106. +echo "${ECHO_T}$libelf_cv_int16" >&6; }
  8107. if test "$libelf_cv_int16" = no; then
  8108. - { echo "configure: error: neither short nor int is 16-bit" 1>&2; exit 1; }
  8109. + { { echo "$as_me:$LINENO: error: neither short nor int is 16-bit" >&5
  8110. +echo "$as_me: error: neither short nor int is 16-bit" >&2;}
  8111. + { (exit 1); exit 1; }; }
  8112. else
  8113. - cat >> confdefs.h <<EOF
  8114. + cat >>confdefs.h <<_ACEOF
  8115. #define __libelf_i16_t $libelf_cv_int16
  8116. -EOF
  8117. +_ACEOF
  8118. - cat >> confdefs.h <<EOF
  8119. + cat >>confdefs.h <<_ACEOF
  8120. #define __libelf_u16_t unsigned $libelf_cv_int16
  8121. -EOF
  8122. +_ACEOF
  8123. fi
  8124. -for ac_hdr in unistd.h
  8125. +
  8126. +
  8127. +for ac_header in stdlib.h unistd.h
  8128. do
  8129. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8130. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8131. -echo "configure:2138: checking for $ac_hdr" >&5
  8132. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8133. - echo $ac_n "(cached) $ac_c" 1>&6
  8134. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8135. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8136. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8137. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8138. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8139. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8140. +fi
  8141. +ac_res=`eval echo '${'$as_ac_Header'}'`
  8142. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  8143. +echo "${ECHO_T}$ac_res" >&6; }
  8144. else
  8145. - cat > conftest.$ac_ext <<EOF
  8146. -#line 2143 "configure"
  8147. -#include "confdefs.h"
  8148. -#include <$ac_hdr>
  8149. -EOF
  8150. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8151. -{ (eval echo configure:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8152. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8153. -if test -z "$ac_err"; then
  8154. - rm -rf conftest*
  8155. - eval "ac_cv_header_$ac_safe=yes"
  8156. + # Is the header compilable?
  8157. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8158. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8159. +cat >conftest.$ac_ext <<_ACEOF
  8160. +/* confdefs.h. */
  8161. +_ACEOF
  8162. +cat confdefs.h >>conftest.$ac_ext
  8163. +cat >>conftest.$ac_ext <<_ACEOF
  8164. +/* end confdefs.h. */
  8165. +$ac_includes_default
  8166. +#include <$ac_header>
  8167. +_ACEOF
  8168. +rm -f conftest.$ac_objext
  8169. +if { (ac_try="$ac_compile"
  8170. +case "(($ac_try" in
  8171. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8172. + *) ac_try_echo=$ac_try;;
  8173. +esac
  8174. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8175. + (eval "$ac_compile") 2>conftest.er1
  8176. + ac_status=$?
  8177. + grep -v '^ *+' conftest.er1 >conftest.err
  8178. + rm -f conftest.er1
  8179. + cat conftest.err >&5
  8180. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8181. + (exit $ac_status); } && {
  8182. + test -z "$ac_c_werror_flag" ||
  8183. + test ! -s conftest.err
  8184. + } && test -s conftest.$ac_objext; then
  8185. + ac_header_compiler=yes
  8186. else
  8187. - echo "$ac_err" >&5
  8188. - echo "configure: failed program was:" >&5
  8189. - cat conftest.$ac_ext >&5
  8190. - rm -rf conftest*
  8191. - eval "ac_cv_header_$ac_safe=no"
  8192. + echo "$as_me: failed program was:" >&5
  8193. +sed 's/^/| /' conftest.$ac_ext >&5
  8194. +
  8195. + ac_header_compiler=no
  8196. fi
  8197. -rm -f conftest*
  8198. +
  8199. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8200. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8201. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  8202. +
  8203. +# Is the header present?
  8204. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8205. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8206. +cat >conftest.$ac_ext <<_ACEOF
  8207. +/* confdefs.h. */
  8208. +_ACEOF
  8209. +cat confdefs.h >>conftest.$ac_ext
  8210. +cat >>conftest.$ac_ext <<_ACEOF
  8211. +/* end confdefs.h. */
  8212. +#include <$ac_header>
  8213. +_ACEOF
  8214. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  8215. +case "(($ac_try" in
  8216. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8217. + *) ac_try_echo=$ac_try;;
  8218. +esac
  8219. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8220. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8221. + ac_status=$?
  8222. + grep -v '^ *+' conftest.er1 >conftest.err
  8223. + rm -f conftest.er1
  8224. + cat conftest.err >&5
  8225. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. + (exit $ac_status); } >/dev/null && {
  8227. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8228. + test ! -s conftest.err
  8229. + }; then
  8230. + ac_header_preproc=yes
  8231. +else
  8232. + echo "$as_me: failed program was:" >&5
  8233. +sed 's/^/| /' conftest.$ac_ext >&5
  8234. +
  8235. + ac_header_preproc=no
  8236. fi
  8237. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8238. - echo "$ac_t""yes" 1>&6
  8239. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8240. - cat >> confdefs.h <<EOF
  8241. -#define $ac_tr_hdr 1
  8242. -EOF
  8243. -
  8244. +
  8245. +rm -f conftest.err conftest.$ac_ext
  8246. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8247. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  8248. +
  8249. +# So? What about this header?
  8250. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8251. + yes:no: )
  8252. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8253. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8254. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8255. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8256. + ac_header_preproc=yes
  8257. + ;;
  8258. + no:yes:* )
  8259. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8260. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8261. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8262. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8263. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8264. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8265. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8266. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8267. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8268. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8269. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8270. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8271. +
  8272. + ;;
  8273. +esac
  8274. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  8275. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8276. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8277. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8278. else
  8279. - echo "$ac_t""no" 1>&6
  8280. + eval "$as_ac_Header=\$ac_header_preproc"
  8281. +fi
  8282. +ac_res=`eval echo '${'$as_ac_Header'}'`
  8283. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  8284. +echo "${ECHO_T}$ac_res" >&6; }
  8285. +
  8286. +fi
  8287. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8288. + cat >>confdefs.h <<_ACEOF
  8289. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8290. +_ACEOF
  8291. +
  8292. fi
  8293. +
  8294. done
  8295. +
  8296. for ac_func in getpagesize
  8297. do
  8298. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8299. -echo "configure:2177: checking for $ac_func" >&5
  8300. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8301. - echo $ac_n "(cached) $ac_c" 1>&6
  8302. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8303. +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  8304. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8305. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8306. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8307. else
  8308. - cat > conftest.$ac_ext <<EOF
  8309. -#line 2182 "configure"
  8310. -#include "confdefs.h"
  8311. + cat >conftest.$ac_ext <<_ACEOF
  8312. +/* confdefs.h. */
  8313. +_ACEOF
  8314. +cat confdefs.h >>conftest.$ac_ext
  8315. +cat >>conftest.$ac_ext <<_ACEOF
  8316. +/* end confdefs.h. */
  8317. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8318. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8319. +#define $ac_func innocuous_$ac_func
  8320. +
  8321. /* System header to define __stub macros and hopefully few prototypes,
  8322. - which can conflict with char $ac_func(); below. */
  8323. -#include <assert.h>
  8324. -/* Override any gcc2 internal prototype to avoid an error. */
  8325. -/* We use char because int might match the return type of a gcc2
  8326. - builtin and then its argument prototype would still apply. */
  8327. -char $ac_func();
  8328. + which can conflict with char $ac_func (); below.
  8329. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8330. + <limits.h> exists even on freestanding compilers. */
  8331. -int main() {
  8332. +#ifdef __STDC__
  8333. +# include <limits.h>
  8334. +#else
  8335. +# include <assert.h>
  8336. +#endif
  8337. +
  8338. +#undef $ac_func
  8339. +/* Override any GCC internal prototype to avoid an error.
  8340. + Use char because int might match the return type of a GCC
  8341. + builtin and then its argument prototype would still apply. */
  8342. +#ifdef __cplusplus
  8343. +extern "C"
  8344. +#endif
  8345. +char $ac_func ();
  8346. /* The GNU C library defines this for functions which it implements
  8347. to always fail with ENOSYS. Some functions are actually named
  8348. something starting with __ and the normal name is an alias. */
  8349. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8350. +#if defined __stub_$ac_func || defined __stub___$ac_func
  8351. choke me
  8352. -#else
  8353. -$ac_func();
  8354. #endif
  8355. -; return 0; }
  8356. -EOF
  8357. -if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8358. - rm -rf conftest*
  8359. - eval "ac_cv_func_$ac_func=yes"
  8360. +int
  8361. +main ()
  8362. +{
  8363. +return $ac_func ();
  8364. + ;
  8365. + return 0;
  8366. +}
  8367. +_ACEOF
  8368. +rm -f conftest.$ac_objext conftest$ac_exeext
  8369. +if { (ac_try="$ac_link"
  8370. +case "(($ac_try" in
  8371. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8372. + *) ac_try_echo=$ac_try;;
  8373. +esac
  8374. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8375. + (eval "$ac_link") 2>conftest.er1
  8376. + ac_status=$?
  8377. + grep -v '^ *+' conftest.er1 >conftest.err
  8378. + rm -f conftest.er1
  8379. + cat conftest.err >&5
  8380. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381. + (exit $ac_status); } && {
  8382. + test -z "$ac_c_werror_flag" ||
  8383. + test ! -s conftest.err
  8384. + } && test -s conftest$ac_exeext &&
  8385. + $as_test_x conftest$ac_exeext; then
  8386. + eval "$as_ac_var=yes"
  8387. else
  8388. - echo "configure: failed program was:" >&5
  8389. - cat conftest.$ac_ext >&5
  8390. - rm -rf conftest*
  8391. - eval "ac_cv_func_$ac_func=no"
  8392. + echo "$as_me: failed program was:" >&5
  8393. +sed 's/^/| /' conftest.$ac_ext >&5
  8394. +
  8395. + eval "$as_ac_var=no"
  8396. fi
  8397. -rm -f conftest*
  8398. +
  8399. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8400. + conftest$ac_exeext conftest.$ac_ext
  8401. fi
  8402. +ac_res=`eval echo '${'$as_ac_var'}'`
  8403. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  8404. +echo "${ECHO_T}$ac_res" >&6; }
  8405. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  8406. + cat >>confdefs.h <<_ACEOF
  8407. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8408. +_ACEOF
  8409. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8410. - echo "$ac_t""yes" 1>&6
  8411. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8412. - cat >> confdefs.h <<EOF
  8413. -#define $ac_tr_func 1
  8414. -EOF
  8415. -
  8416. -else
  8417. - echo "$ac_t""no" 1>&6
  8418. fi
  8419. done
  8420. -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  8421. -echo "configure:2230: checking for working mmap" >&5
  8422. -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  8423. - echo $ac_n "(cached) $ac_c" 1>&6
  8424. +{ echo "$as_me:$LINENO: checking for working mmap" >&5
  8425. +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  8426. +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8427. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8428. else
  8429. if test "$cross_compiling" = yes; then
  8430. ac_cv_func_mmap_fixed_mapped=no
  8431. else
  8432. - cat > conftest.$ac_ext <<EOF
  8433. -#line 2238 "configure"
  8434. -#include "confdefs.h"
  8435. + cat >conftest.$ac_ext <<_ACEOF
  8436. +/* confdefs.h. */
  8437. +_ACEOF
  8438. +cat confdefs.h >>conftest.$ac_ext
  8439. +cat >>conftest.$ac_ext <<_ACEOF
  8440. +/* end confdefs.h. */
  8441. +$ac_includes_default
  8442. +/* malloc might have been renamed as rpl_malloc. */
  8443. +#undef malloc
  8444. /* Thanks to Mike Haertel and Jim Avera for this test.
  8445. Here is a matrix of mmap possibilities:
  8446. @@ -2249,25 +7365,25 @@ else
  8447. back from the file, nor mmap's back from the file at a different
  8448. address. (There have been systems where private was not correctly
  8449. implemented like the infamous i386 svr4.0, and systems where the
  8450. - VM page cache was not coherent with the filesystem buffer cache
  8451. + VM page cache was not coherent with the file system buffer cache
  8452. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8453. For shared mappings, we should conversely verify that changes get
  8454. - propogated back to all the places they're supposed to be.
  8455. + propagated back to all the places they're supposed to be.
  8456. Grep wants private fixed already mapped.
  8457. The main things grep needs to know about mmap are:
  8458. * does it exist and is it safe to write into the mmap'd area
  8459. * how to use it (BSD variants) */
  8460. -#include <sys/types.h>
  8461. +
  8462. #include <fcntl.h>
  8463. #include <sys/mman.h>
  8464. +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8465. +char *malloc ();
  8466. +#endif
  8467. +
  8468. /* This mess was copied from the GNU getpagesize.h. */
  8469. #ifndef HAVE_GETPAGESIZE
  8470. -# ifdef HAVE_UNISTD_H
  8471. -# include <unistd.h>
  8472. -# endif
  8473. -
  8474. /* Assume that all systems that can run configure have sys/param.h. */
  8475. # ifndef HAVE_SYS_PARAM_H
  8476. # define HAVE_SYS_PARAM_H 1
  8477. @@ -2303,229 +7419,328 @@ else
  8478. #endif /* no HAVE_GETPAGESIZE */
  8479. -#ifdef __cplusplus
  8480. -extern "C" { void *malloc(unsigned); }
  8481. -#else
  8482. -char *malloc();
  8483. -#endif
  8484. -
  8485. int
  8486. -main()
  8487. +main ()
  8488. {
  8489. - char *data, *data2, *data3;
  8490. - int i, pagesize;
  8491. - int fd;
  8492. + char *data, *data2, *data3;
  8493. + int i, pagesize;
  8494. + int fd;
  8495. - pagesize = getpagesize();
  8496. + pagesize = getpagesize ();
  8497. - /*
  8498. - * First, make a file with some known garbage in it.
  8499. - */
  8500. - data = malloc(pagesize);
  8501. - if (!data)
  8502. - exit(1);
  8503. - for (i = 0; i < pagesize; ++i)
  8504. - *(data + i) = rand();
  8505. - umask(0);
  8506. - fd = creat("conftestmmap", 0600);
  8507. - if (fd < 0)
  8508. - exit(1);
  8509. - if (write(fd, data, pagesize) != pagesize)
  8510. - exit(1);
  8511. - close(fd);
  8512. + /* First, make a file with some known garbage in it. */
  8513. + data = (char *) malloc (pagesize);
  8514. + if (!data)
  8515. + return 1;
  8516. + for (i = 0; i < pagesize; ++i)
  8517. + *(data + i) = rand ();
  8518. + umask (0);
  8519. + fd = creat ("conftest.mmap", 0600);
  8520. + if (fd < 0)
  8521. + return 1;
  8522. + if (write (fd, data, pagesize) != pagesize)
  8523. + return 1;
  8524. + close (fd);
  8525. - /*
  8526. - * Next, try to mmap the file at a fixed address which
  8527. - * already has something else allocated at it. If we can,
  8528. - * also make sure that we see the same garbage.
  8529. - */
  8530. - fd = open("conftestmmap", O_RDWR);
  8531. - if (fd < 0)
  8532. - exit(1);
  8533. - data2 = malloc(2 * pagesize);
  8534. - if (!data2)
  8535. - exit(1);
  8536. - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  8537. - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  8538. - MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8539. - exit(1);
  8540. - for (i = 0; i < pagesize; ++i)
  8541. - if (*(data + i) != *(data2 + i))
  8542. - exit(1);
  8543. + /* Next, try to mmap the file at a fixed address which already has
  8544. + something else allocated at it. If we can, also make sure that
  8545. + we see the same garbage. */
  8546. + fd = open ("conftest.mmap", O_RDWR);
  8547. + if (fd < 0)
  8548. + return 1;
  8549. + data2 = (char *) malloc (2 * pagesize);
  8550. + if (!data2)
  8551. + return 1;
  8552. + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8553. + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8554. + MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8555. + return 1;
  8556. + for (i = 0; i < pagesize; ++i)
  8557. + if (*(data + i) != *(data2 + i))
  8558. + return 1;
  8559. - /*
  8560. - * Finally, make sure that changes to the mapped area
  8561. - * do not percolate back to the file as seen by read().
  8562. - * (This is a bug on some variants of i386 svr4.0.)
  8563. - */
  8564. - for (i = 0; i < pagesize; ++i)
  8565. - *(data2 + i) = *(data2 + i) + 1;
  8566. - data3 = malloc(pagesize);
  8567. - if (!data3)
  8568. - exit(1);
  8569. - if (read(fd, data3, pagesize) != pagesize)
  8570. - exit(1);
  8571. - for (i = 0; i < pagesize; ++i)
  8572. - if (*(data + i) != *(data3 + i))
  8573. - exit(1);
  8574. - close(fd);
  8575. - unlink("conftestmmap");
  8576. - exit(0);
  8577. + /* Finally, make sure that changes to the mapped area do not
  8578. + percolate back to the file as seen by read(). (This is a bug on
  8579. + some variants of i386 svr4.0.) */
  8580. + for (i = 0; i < pagesize; ++i)
  8581. + *(data2 + i) = *(data2 + i) + 1;
  8582. + data3 = (char *) malloc (pagesize);
  8583. + if (!data3)
  8584. + return 1;
  8585. + if (read (fd, data3, pagesize) != pagesize)
  8586. + return 1;
  8587. + for (i = 0; i < pagesize; ++i)
  8588. + if (*(data + i) != *(data3 + i))
  8589. + return 1;
  8590. + close (fd);
  8591. + return 0;
  8592. }
  8593. -
  8594. -EOF
  8595. -if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8596. -then
  8597. +_ACEOF
  8598. +rm -f conftest$ac_exeext
  8599. +if { (ac_try="$ac_link"
  8600. +case "(($ac_try" in
  8601. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8602. + *) ac_try_echo=$ac_try;;
  8603. +esac
  8604. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8605. + (eval "$ac_link") 2>&5
  8606. + ac_status=$?
  8607. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8608. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8609. + { (case "(($ac_try" in
  8610. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8611. + *) ac_try_echo=$ac_try;;
  8612. +esac
  8613. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8614. + (eval "$ac_try") 2>&5
  8615. + ac_status=$?
  8616. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8617. + (exit $ac_status); }; }; then
  8618. ac_cv_func_mmap_fixed_mapped=yes
  8619. else
  8620. - echo "configure: failed program was:" >&5
  8621. - cat conftest.$ac_ext >&5
  8622. - rm -fr conftest*
  8623. - ac_cv_func_mmap_fixed_mapped=no
  8624. + echo "$as_me: program exited with status $ac_status" >&5
  8625. +echo "$as_me: failed program was:" >&5
  8626. +sed 's/^/| /' conftest.$ac_ext >&5
  8627. +
  8628. +( exit $ac_status )
  8629. +ac_cv_func_mmap_fixed_mapped=no
  8630. fi
  8631. -rm -fr conftest*
  8632. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8633. fi
  8634. -fi
  8635. -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  8636. +fi
  8637. +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8638. +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  8639. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8640. - cat >> confdefs.h <<\EOF
  8641. +
  8642. +cat >>confdefs.h <<\_ACEOF
  8643. #define HAVE_MMAP 1
  8644. -EOF
  8645. +_ACEOF
  8646. fi
  8647. +rm -f conftest.mmap
  8648. +
  8649. +
  8650. +
  8651. +
  8652. for ac_func in ftruncate memcmp memcpy memmove
  8653. do
  8654. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8655. -echo "configure:2403: checking for $ac_func" >&5
  8656. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8657. - echo $ac_n "(cached) $ac_c" 1>&6
  8658. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8659. +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  8660. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8661. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8662. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8663. else
  8664. - cat > conftest.$ac_ext <<EOF
  8665. -#line 2408 "configure"
  8666. -#include "confdefs.h"
  8667. + cat >conftest.$ac_ext <<_ACEOF
  8668. +/* confdefs.h. */
  8669. +_ACEOF
  8670. +cat confdefs.h >>conftest.$ac_ext
  8671. +cat >>conftest.$ac_ext <<_ACEOF
  8672. +/* end confdefs.h. */
  8673. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8674. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8675. +#define $ac_func innocuous_$ac_func
  8676. +
  8677. /* System header to define __stub macros and hopefully few prototypes,
  8678. - which can conflict with char $ac_func(); below. */
  8679. -#include <assert.h>
  8680. -/* Override any gcc2 internal prototype to avoid an error. */
  8681. -/* We use char because int might match the return type of a gcc2
  8682. - builtin and then its argument prototype would still apply. */
  8683. -char $ac_func();
  8684. + which can conflict with char $ac_func (); below.
  8685. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8686. + <limits.h> exists even on freestanding compilers. */
  8687. -int main() {
  8688. +#ifdef __STDC__
  8689. +# include <limits.h>
  8690. +#else
  8691. +# include <assert.h>
  8692. +#endif
  8693. +
  8694. +#undef $ac_func
  8695. +/* Override any GCC internal prototype to avoid an error.
  8696. + Use char because int might match the return type of a GCC
  8697. + builtin and then its argument prototype would still apply. */
  8698. +#ifdef __cplusplus
  8699. +extern "C"
  8700. +#endif
  8701. +char $ac_func ();
  8702. /* The GNU C library defines this for functions which it implements
  8703. to always fail with ENOSYS. Some functions are actually named
  8704. something starting with __ and the normal name is an alias. */
  8705. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8706. +#if defined __stub_$ac_func || defined __stub___$ac_func
  8707. choke me
  8708. -#else
  8709. -$ac_func();
  8710. #endif
  8711. -; return 0; }
  8712. -EOF
  8713. -if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8714. - rm -rf conftest*
  8715. - eval "ac_cv_func_$ac_func=yes"
  8716. +int
  8717. +main ()
  8718. +{
  8719. +return $ac_func ();
  8720. + ;
  8721. + return 0;
  8722. +}
  8723. +_ACEOF
  8724. +rm -f conftest.$ac_objext conftest$ac_exeext
  8725. +if { (ac_try="$ac_link"
  8726. +case "(($ac_try" in
  8727. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8728. + *) ac_try_echo=$ac_try;;
  8729. +esac
  8730. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8731. + (eval "$ac_link") 2>conftest.er1
  8732. + ac_status=$?
  8733. + grep -v '^ *+' conftest.er1 >conftest.err
  8734. + rm -f conftest.er1
  8735. + cat conftest.err >&5
  8736. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8737. + (exit $ac_status); } && {
  8738. + test -z "$ac_c_werror_flag" ||
  8739. + test ! -s conftest.err
  8740. + } && test -s conftest$ac_exeext &&
  8741. + $as_test_x conftest$ac_exeext; then
  8742. + eval "$as_ac_var=yes"
  8743. else
  8744. - echo "configure: failed program was:" >&5
  8745. - cat conftest.$ac_ext >&5
  8746. - rm -rf conftest*
  8747. - eval "ac_cv_func_$ac_func=no"
  8748. + echo "$as_me: failed program was:" >&5
  8749. +sed 's/^/| /' conftest.$ac_ext >&5
  8750. +
  8751. + eval "$as_ac_var=no"
  8752. fi
  8753. -rm -f conftest*
  8754. +
  8755. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8756. + conftest$ac_exeext conftest.$ac_ext
  8757. fi
  8758. +ac_res=`eval echo '${'$as_ac_var'}'`
  8759. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  8760. +echo "${ECHO_T}$ac_res" >&6; }
  8761. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  8762. + cat >>confdefs.h <<_ACEOF
  8763. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8764. +_ACEOF
  8765. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8766. - echo "$ac_t""yes" 1>&6
  8767. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8768. - cat >> confdefs.h <<EOF
  8769. -#define $ac_tr_func 1
  8770. -EOF
  8771. -
  8772. -else
  8773. - echo "$ac_t""no" 1>&6
  8774. fi
  8775. done
  8776. +
  8777. for ac_func in memset
  8778. do
  8779. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8780. -echo "configure:2458: checking for $ac_func" >&5
  8781. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8782. - echo $ac_n "(cached) $ac_c" 1>&6
  8783. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8784. +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  8785. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8786. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8787. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8788. else
  8789. - cat > conftest.$ac_ext <<EOF
  8790. -#line 2463 "configure"
  8791. -#include "confdefs.h"
  8792. + cat >conftest.$ac_ext <<_ACEOF
  8793. +/* confdefs.h. */
  8794. +_ACEOF
  8795. +cat confdefs.h >>conftest.$ac_ext
  8796. +cat >>conftest.$ac_ext <<_ACEOF
  8797. +/* end confdefs.h. */
  8798. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8799. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8800. +#define $ac_func innocuous_$ac_func
  8801. +
  8802. /* System header to define __stub macros and hopefully few prototypes,
  8803. - which can conflict with char $ac_func(); below. */
  8804. -#include <assert.h>
  8805. -/* Override any gcc2 internal prototype to avoid an error. */
  8806. -/* We use char because int might match the return type of a gcc2
  8807. - builtin and then its argument prototype would still apply. */
  8808. -char $ac_func();
  8809. + which can conflict with char $ac_func (); below.
  8810. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8811. + <limits.h> exists even on freestanding compilers. */
  8812. -int main() {
  8813. +#ifdef __STDC__
  8814. +# include <limits.h>
  8815. +#else
  8816. +# include <assert.h>
  8817. +#endif
  8818. +
  8819. +#undef $ac_func
  8820. +/* Override any GCC internal prototype to avoid an error.
  8821. + Use char because int might match the return type of a GCC
  8822. + builtin and then its argument prototype would still apply. */
  8823. +#ifdef __cplusplus
  8824. +extern "C"
  8825. +#endif
  8826. +char $ac_func ();
  8827. /* The GNU C library defines this for functions which it implements
  8828. to always fail with ENOSYS. Some functions are actually named
  8829. something starting with __ and the normal name is an alias. */
  8830. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8831. +#if defined __stub_$ac_func || defined __stub___$ac_func
  8832. choke me
  8833. -#else
  8834. -$ac_func();
  8835. #endif
  8836. -; return 0; }
  8837. -EOF
  8838. -if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8839. - rm -rf conftest*
  8840. - eval "ac_cv_func_$ac_func=yes"
  8841. +int
  8842. +main ()
  8843. +{
  8844. +return $ac_func ();
  8845. + ;
  8846. + return 0;
  8847. +}
  8848. +_ACEOF
  8849. +rm -f conftest.$ac_objext conftest$ac_exeext
  8850. +if { (ac_try="$ac_link"
  8851. +case "(($ac_try" in
  8852. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8853. + *) ac_try_echo=$ac_try;;
  8854. +esac
  8855. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8856. + (eval "$ac_link") 2>conftest.er1
  8857. + ac_status=$?
  8858. + grep -v '^ *+' conftest.er1 >conftest.err
  8859. + rm -f conftest.er1
  8860. + cat conftest.err >&5
  8861. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8862. + (exit $ac_status); } && {
  8863. + test -z "$ac_c_werror_flag" ||
  8864. + test ! -s conftest.err
  8865. + } && test -s conftest$ac_exeext &&
  8866. + $as_test_x conftest$ac_exeext; then
  8867. + eval "$as_ac_var=yes"
  8868. else
  8869. - echo "configure: failed program was:" >&5
  8870. - cat conftest.$ac_ext >&5
  8871. - rm -rf conftest*
  8872. - eval "ac_cv_func_$ac_func=no"
  8873. + echo "$as_me: failed program was:" >&5
  8874. +sed 's/^/| /' conftest.$ac_ext >&5
  8875. +
  8876. + eval "$as_ac_var=no"
  8877. fi
  8878. -rm -f conftest*
  8879. +
  8880. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8881. + conftest$ac_exeext conftest.$ac_ext
  8882. fi
  8883. +ac_res=`eval echo '${'$as_ac_var'}'`
  8884. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  8885. +echo "${ECHO_T}$ac_res" >&6; }
  8886. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  8887. + cat >>confdefs.h <<_ACEOF
  8888. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8889. +_ACEOF
  8890. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8891. - echo "$ac_t""yes" 1>&6
  8892. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8893. - cat >> confdefs.h <<EOF
  8894. -#define $ac_tr_func 1
  8895. -EOF
  8896. -
  8897. else
  8898. - echo "$ac_t""no" 1>&6
  8899. -LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
  8900. + case " $LIBOBJS " in
  8901. + *" $ac_func.$ac_objext "* ) ;;
  8902. + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  8903. + ;;
  8904. +esac
  8905. +
  8906. fi
  8907. done
  8908. if test "$ac_cv_func_memset" = yes; then
  8909. - cat >> confdefs.h <<\EOF
  8910. + cat >>confdefs.h <<\_ACEOF
  8911. #define HAVE_MEMSET 1
  8912. -EOF
  8913. +_ACEOF
  8914. fi
  8915. -echo $ac_n "checking whether overlapping arrays are copied correctly""... $ac_c" 1>&6
  8916. -echo "configure:2520: checking whether overlapping arrays are copied correctly" >&5
  8917. -if eval "test \"`echo '$''{'libelf_cv_working_memmove'+set}'`\" = set"; then
  8918. - echo $ac_n "(cached) $ac_c" 1>&6
  8919. +{ echo "$as_me:$LINENO: checking whether overlapping arrays are copied correctly" >&5
  8920. +echo $ECHO_N "checking whether overlapping arrays are copied correctly... $ECHO_C" >&6; }
  8921. +if test "${libelf_cv_working_memmove+set}" = set; then
  8922. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8923. else
  8924. if test "$cross_compiling" = yes; then
  8925. libelf_cv_working_memmove='maybe not'
  8926. else
  8927. - cat > conftest.$ac_ext <<EOF
  8928. -#line 2528 "configure"
  8929. -#include "confdefs.h"
  8930. + cat >conftest.$ac_ext <<_ACEOF
  8931. +/* confdefs.h. */
  8932. +_ACEOF
  8933. +cat confdefs.h >>conftest.$ac_ext
  8934. +cat >>conftest.$ac_ext <<_ACEOF
  8935. +/* end confdefs.h. */
  8936. #include "confdefs.h"
  8937. #if HAVE_MEMMOVE
  8938. extern void *memmove();
  8939. @@ -2540,108 +7755,131 @@ main() {
  8940. if (strcmp(buf, "0012345678")) exit(1);
  8941. exit(0);
  8942. }
  8943. -EOF
  8944. -if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8945. -then
  8946. +_ACEOF
  8947. +rm -f conftest$ac_exeext
  8948. +if { (ac_try="$ac_link"
  8949. +case "(($ac_try" in
  8950. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8951. + *) ac_try_echo=$ac_try;;
  8952. +esac
  8953. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8954. + (eval "$ac_link") 2>&5
  8955. + ac_status=$?
  8956. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8957. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8958. + { (case "(($ac_try" in
  8959. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8960. + *) ac_try_echo=$ac_try;;
  8961. +esac
  8962. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8963. + (eval "$ac_try") 2>&5
  8964. + ac_status=$?
  8965. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8966. + (exit $ac_status); }; }; then
  8967. libelf_cv_working_memmove=yes
  8968. else
  8969. - echo "configure: failed program was:" >&5
  8970. - cat conftest.$ac_ext >&5
  8971. - rm -fr conftest*
  8972. - libelf_cv_working_memmove=no
  8973. + echo "$as_me: program exited with status $ac_status" >&5
  8974. +echo "$as_me: failed program was:" >&5
  8975. +sed 's/^/| /' conftest.$ac_ext >&5
  8976. +
  8977. +( exit $ac_status )
  8978. +libelf_cv_working_memmove=no
  8979. fi
  8980. -rm -fr conftest*
  8981. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8982. fi
  8983. -fi
  8984. -echo "$ac_t""$libelf_cv_working_memmove" 1>&6
  8985. +fi
  8986. +{ echo "$as_me:$LINENO: result: $libelf_cv_working_memmove" >&5
  8987. +echo "${ECHO_T}$libelf_cv_working_memmove" >&6; }
  8988. if test "$libelf_cv_working_memmove" != yes; then
  8989. - cat >> confdefs.h <<\EOF
  8990. + cat >>confdefs.h <<\_ACEOF
  8991. #define HAVE_BROKEN_MEMMOVE 1
  8992. -EOF
  8993. +_ACEOF
  8994. fi
  8995. -echo $ac_n "checking the coffee machine""... $ac_c" 1>&6
  8996. -echo "configure:2568: checking the coffee machine" >&5
  8997. -if eval "test \"`echo '$''{'mr_cv_coffee_machine'+set}'`\" = set"; then
  8998. - echo $ac_n "(cached) $ac_c" 1>&6
  8999. +{ echo "$as_me:$LINENO: checking the coffee machine" >&5
  9000. +echo $ECHO_N "checking the coffee machine... $ECHO_C" >&6; }
  9001. +if test "${mr_cv_coffee_machine+set}" = set; then
  9002. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9003. else
  9004. mr_cv_coffee_machine='empty - operator may not work as expected'
  9005. fi
  9006. +{ echo "$as_me:$LINENO: result: $mr_cv_coffee_machine" >&5
  9007. +echo "${ECHO_T}$mr_cv_coffee_machine" >&6; }
  9008. -echo "$ac_t""$mr_cv_coffee_machine" 1>&6
  9009. -
  9010. -echo $ac_n "checking whether 64-bit ELF support is sufficient""... $ac_c" 1>&6
  9011. -echo "configure:2578: checking whether 64-bit ELF support is sufficient" >&5
  9012. -echo "$ac_t""$libelf_64bit" 1>&6
  9013. -echo $ac_n "checking whether to include 64-bit support""... $ac_c" 1>&6
  9014. -echo "configure:2581: checking whether to include 64-bit support" >&5
  9015. +{ echo "$as_me:$LINENO: checking whether 64-bit ELF support is sufficient" >&5
  9016. +echo $ECHO_N "checking whether 64-bit ELF support is sufficient... $ECHO_C" >&6; }
  9017. +{ echo "$as_me:$LINENO: result: $libelf_64bit" >&5
  9018. +echo "${ECHO_T}$libelf_64bit" >&6; }
  9019. +{ echo "$as_me:$LINENO: checking whether to include 64-bit support" >&5
  9020. +echo $ECHO_N "checking whether to include 64-bit support... $ECHO_C" >&6; }
  9021. if test "$libelf_64bit" = no; then
  9022. libelf_enable_64bit=no
  9023. else
  9024. - # Check whether --enable-elf64 or --disable-elf64 was given.
  9025. + # Check whether --enable-elf64 was given.
  9026. if test "${enable_elf64+set}" = set; then
  9027. - enableval="$enable_elf64"
  9028. - libelf_enable_64bit="$enableval"
  9029. + enableval=$enable_elf64; libelf_enable_64bit="$enableval"
  9030. else
  9031. libelf_enable_64bit=yes
  9032. fi
  9033. fi
  9034. -echo "$ac_t""$libelf_enable_64bit" 1>&6
  9035. +{ echo "$as_me:$LINENO: result: $libelf_enable_64bit" >&5
  9036. +echo "${ECHO_T}$libelf_enable_64bit" >&6; }
  9037. if test "$libelf_enable_64bit" = yes; then
  9038. - cat >> confdefs.h <<\EOF
  9039. + cat >>confdefs.h <<\_ACEOF
  9040. #define __LIBELF64 1
  9041. -EOF
  9042. +_ACEOF
  9043. fi
  9044. -echo $ac_n "checking whether versioning support is sufficient""... $ac_c" 1>&6
  9045. -echo "configure:2603: checking whether versioning support is sufficient" >&5
  9046. +{ echo "$as_me:$LINENO: checking whether versioning support is sufficient" >&5
  9047. +echo $ECHO_N "checking whether versioning support is sufficient... $ECHO_C" >&6; }
  9048. libelf_versioning=no
  9049. case "$libelf_enable_64bit:$libelf_cv_verdef32:$libelf_cv_verdef64" in
  9050. no:yes:* | yes:yes:yes)
  9051. if test "$libelf_cv_sun_verdef" = yes; then
  9052. - cat >> confdefs.h <<\EOF
  9053. + cat >>confdefs.h <<\_ACEOF
  9054. #define __LIBELF_SUN_SYMBOL_VERSIONS 1
  9055. -EOF
  9056. +_ACEOF
  9057. libelf_versioning=yes
  9058. elif test "$libelf_cv_gnu_verdef" = yes; then
  9059. - cat >> confdefs.h <<\EOF
  9060. + cat >>confdefs.h <<\_ACEOF
  9061. #define __LIBELF_GNU_SYMBOL_VERSIONS 1
  9062. -EOF
  9063. +_ACEOF
  9064. libelf_versioning=yes
  9065. fi;;
  9066. esac
  9067. -echo "$ac_t""$libelf_versioning" 1>&6
  9068. -echo $ac_n "checking whether to include versioning support""... $ac_c" 1>&6
  9069. -echo "configure:2623: checking whether to include versioning support" >&5
  9070. +{ echo "$as_me:$LINENO: result: $libelf_versioning" >&5
  9071. +echo "${ECHO_T}$libelf_versioning" >&6; }
  9072. +{ echo "$as_me:$LINENO: checking whether to include versioning support" >&5
  9073. +echo $ECHO_N "checking whether to include versioning support... $ECHO_C" >&6; }
  9074. if test "$libelf_versioning" = no; then
  9075. libelf_enable_versioning=no
  9076. else
  9077. - # Check whether --enable-versioning or --disable-versioning was given.
  9078. + # Check whether --enable-versioning was given.
  9079. if test "${enable_versioning+set}" = set; then
  9080. - enableval="$enable_versioning"
  9081. - libelf_enable_versioning="$enableval"
  9082. + enableval=$enable_versioning; libelf_enable_versioning="$enableval"
  9083. else
  9084. libelf_enable_versioning=yes
  9085. fi
  9086. fi
  9087. -echo "$ac_t""$libelf_enable_versioning" 1>&6
  9088. +{ echo "$as_me:$LINENO: result: $libelf_enable_versioning" >&5
  9089. +echo "${ECHO_T}$libelf_enable_versioning" >&6; }
  9090. if test "$libelf_enable_versioning" = yes; then
  9091. - cat >> confdefs.h <<\EOF
  9092. + cat >>confdefs.h <<\_ACEOF
  9093. #define __LIBELF_SYMBOL_VERSIONS 1
  9094. -EOF
  9095. +_ACEOF
  9096. fi
  9097. -
  9098. +
  9099. # Needed for `make dist' even if NLS is disabled.
  9100. GMOFILES=
  9101. @@ -2652,292 +7890,412 @@ fi
  9102. MSGFILES="$MSGFILES $mr_lang.msg"
  9103. POFILES="$POFILES $mr_lang.po"
  9104. done
  9105. -
  9106. -
  9107. -
  9108. - echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  9109. -echo "configure:2661: checking whether NLS is requested" >&5
  9110. - # Check whether --enable-nls or --disable-nls was given.
  9111. +
  9112. +
  9113. +
  9114. + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9115. +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9116. + # Check whether --enable-nls was given.
  9117. if test "${enable_nls+set}" = set; then
  9118. - enableval="$enable_nls"
  9119. - mr_enable_nls="$enableval"
  9120. + enableval=$enable_nls; mr_enable_nls="$enableval"
  9121. else
  9122. mr_enable_nls=yes
  9123. fi
  9124. - echo "$ac_t""$mr_enable_nls" 1>&6
  9125. + { echo "$as_me:$LINENO: result: $mr_enable_nls" >&5
  9126. +echo "${ECHO_T}$mr_enable_nls" >&6; }
  9127. CATOBJEXT=
  9128. INSTOBJEXT=
  9129. localedir=
  9130. if test "$mr_enable_nls" = yes; then
  9131. mr_PATH=`echo ":$PATH" | sed -e 's,:^:*openwin^:*,,g' -e 's,^:,,'`
  9132. - echo $ac_n "checking for dgettext""... $ac_c" 1>&6
  9133. -echo "configure:2678: checking for dgettext" >&5
  9134. -if eval "test \"`echo '$''{'mr_cv_func_dgettext'+set}'`\" = set"; then
  9135. - echo $ac_n "(cached) $ac_c" 1>&6
  9136. + { echo "$as_me:$LINENO: checking for dgettext" >&5
  9137. +echo $ECHO_N "checking for dgettext... $ECHO_C" >&6; }
  9138. +if test "${mr_cv_func_dgettext+set}" = set; then
  9139. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9140. else
  9141. -
  9142. - cat > conftest.$ac_ext <<EOF
  9143. -#line 2684 "configure"
  9144. -#include "confdefs.h"
  9145. +
  9146. + cat >conftest.$ac_ext <<_ACEOF
  9147. +/* confdefs.h. */
  9148. +_ACEOF
  9149. +cat confdefs.h >>conftest.$ac_ext
  9150. +cat >>conftest.$ac_ext <<_ACEOF
  9151. +/* end confdefs.h. */
  9152. #include <libintl.h>
  9153. -int main() {
  9154. +int
  9155. +main ()
  9156. +{
  9157. char *s = dgettext("", ""); return 0
  9158. -; return 0; }
  9159. -EOF
  9160. -if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9161. - rm -rf conftest*
  9162. + ;
  9163. + return 0;
  9164. +}
  9165. +_ACEOF
  9166. +rm -f conftest.$ac_objext conftest$ac_exeext
  9167. +if { (ac_try="$ac_link"
  9168. +case "(($ac_try" in
  9169. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9170. + *) ac_try_echo=$ac_try;;
  9171. +esac
  9172. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9173. + (eval "$ac_link") 2>conftest.er1
  9174. + ac_status=$?
  9175. + grep -v '^ *+' conftest.er1 >conftest.err
  9176. + rm -f conftest.er1
  9177. + cat conftest.err >&5
  9178. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9179. + (exit $ac_status); } && {
  9180. + test -z "$ac_c_werror_flag" ||
  9181. + test ! -s conftest.err
  9182. + } && test -s conftest$ac_exeext &&
  9183. + $as_test_x conftest$ac_exeext; then
  9184. mr_cv_func_dgettext=yes
  9185. else
  9186. - echo "configure: failed program was:" >&5
  9187. - cat conftest.$ac_ext >&5
  9188. - rm -rf conftest*
  9189. - mr_cv_func_dgettext=no
  9190. -fi
  9191. -rm -f conftest*
  9192. -
  9193. + echo "$as_me: failed program was:" >&5
  9194. +sed 's/^/| /' conftest.$ac_ext >&5
  9195. +
  9196. + mr_cv_func_dgettext=no
  9197. fi
  9198. -echo "$ac_t""$mr_cv_func_dgettext" 1>&6
  9199. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9200. + conftest$ac_exeext conftest.$ac_ext
  9201. +
  9202. +fi
  9203. +{ echo "$as_me:$LINENO: result: $mr_cv_func_dgettext" >&5
  9204. +echo "${ECHO_T}$mr_cv_func_dgettext" >&6; }
  9205. if test "$mr_cv_func_dgettext" = yes; then
  9206. # Extract the first word of "msgfmt", so it can be a program name with args.
  9207. set dummy msgfmt; ac_word=$2
  9208. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9209. -echo "configure:2709: checking for $ac_word" >&5
  9210. -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  9211. - echo $ac_n "(cached) $ac_c" 1>&6
  9212. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9213. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9214. +if test "${ac_cv_path_MSGFMT+set}" = set; then
  9215. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9216. else
  9217. - case "$MSGFMT" in
  9218. - /*)
  9219. + case $MSGFMT in
  9220. + [\\/]* | ?:[\\/]*)
  9221. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9222. ;;
  9223. - ?:/*)
  9224. - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
  9225. - ;;
  9226. *)
  9227. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9228. - ac_dummy="$mr_PATH"
  9229. - for ac_dir in $ac_dummy; do
  9230. - test -z "$ac_dir" && ac_dir=.
  9231. - if test -f $ac_dir/$ac_word; then
  9232. - ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  9233. - break
  9234. - fi
  9235. - done
  9236. - IFS="$ac_save_ifs"
  9237. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9238. +for as_dir in $mr_PATH
  9239. +do
  9240. + IFS=$as_save_IFS
  9241. + test -z "$as_dir" && as_dir=.
  9242. + for ac_exec_ext in '' $ac_executable_extensions; do
  9243. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9244. + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9245. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9246. + break 2
  9247. + fi
  9248. +done
  9249. +done
  9250. +IFS=$as_save_IFS
  9251. +
  9252. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  9253. ;;
  9254. esac
  9255. fi
  9256. -MSGFMT="$ac_cv_path_MSGFMT"
  9257. +MSGFMT=$ac_cv_path_MSGFMT
  9258. if test -n "$MSGFMT"; then
  9259. - echo "$ac_t""$MSGFMT" 1>&6
  9260. + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9261. +echo "${ECHO_T}$MSGFMT" >&6; }
  9262. else
  9263. - echo "$ac_t""no" 1>&6
  9264. + { echo "$as_me:$LINENO: result: no" >&5
  9265. +echo "${ECHO_T}no" >&6; }
  9266. fi
  9267. +
  9268. if test "$MSGFMT" != no; then
  9269. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9270. set dummy gmsgfmt; ac_word=$2
  9271. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9272. -echo "configure:2746: checking for $ac_word" >&5
  9273. -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  9274. - echo $ac_n "(cached) $ac_c" 1>&6
  9275. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9276. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9277. +if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9278. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9279. else
  9280. - case "$GMSGFMT" in
  9281. - /*)
  9282. + case $GMSGFMT in
  9283. + [\\/]* | ?:[\\/]*)
  9284. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9285. ;;
  9286. - ?:/*)
  9287. - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  9288. - ;;
  9289. *)
  9290. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9291. - ac_dummy="$mr_PATH"
  9292. - for ac_dir in $ac_dummy; do
  9293. - test -z "$ac_dir" && ac_dir=.
  9294. - if test -f $ac_dir/$ac_word; then
  9295. - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  9296. - break
  9297. - fi
  9298. - done
  9299. - IFS="$ac_save_ifs"
  9300. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9301. +for as_dir in $mr_PATH
  9302. +do
  9303. + IFS=$as_save_IFS
  9304. + test -z "$as_dir" && as_dir=.
  9305. + for ac_exec_ext in '' $ac_executable_extensions; do
  9306. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9307. + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9308. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9309. + break 2
  9310. + fi
  9311. +done
  9312. +done
  9313. +IFS=$as_save_IFS
  9314. +
  9315. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9316. ;;
  9317. esac
  9318. fi
  9319. -GMSGFMT="$ac_cv_path_GMSGFMT"
  9320. +GMSGFMT=$ac_cv_path_GMSGFMT
  9321. if test -n "$GMSGFMT"; then
  9322. - echo "$ac_t""$GMSGFMT" 1>&6
  9323. + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9324. +echo "${ECHO_T}$GMSGFMT" >&6; }
  9325. else
  9326. - echo "$ac_t""no" 1>&6
  9327. + { echo "$as_me:$LINENO: result: no" >&5
  9328. +echo "${ECHO_T}no" >&6; }
  9329. fi
  9330. +
  9331. # Extract the first word of "xgettext", so it can be a program name with args.
  9332. set dummy xgettext; ac_word=$2
  9333. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9334. -echo "configure:2782: checking for $ac_word" >&5
  9335. -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  9336. - echo $ac_n "(cached) $ac_c" 1>&6
  9337. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9338. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9339. +if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9340. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9341. else
  9342. - case "$XGETTEXT" in
  9343. - /*)
  9344. + case $XGETTEXT in
  9345. + [\\/]* | ?:[\\/]*)
  9346. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9347. ;;
  9348. - ?:/*)
  9349. - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
  9350. - ;;
  9351. *)
  9352. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9353. - ac_dummy="$mr_PATH"
  9354. - for ac_dir in $ac_dummy; do
  9355. - test -z "$ac_dir" && ac_dir=.
  9356. - if test -f $ac_dir/$ac_word; then
  9357. - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  9358. - break
  9359. - fi
  9360. - done
  9361. - IFS="$ac_save_ifs"
  9362. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9363. +for as_dir in $mr_PATH
  9364. +do
  9365. + IFS=$as_save_IFS
  9366. + test -z "$as_dir" && as_dir=.
  9367. + for ac_exec_ext in '' $ac_executable_extensions; do
  9368. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9369. + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  9370. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9371. + break 2
  9372. + fi
  9373. +done
  9374. +done
  9375. +IFS=$as_save_IFS
  9376. +
  9377. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  9378. ;;
  9379. esac
  9380. fi
  9381. -XGETTEXT="$ac_cv_path_XGETTEXT"
  9382. +XGETTEXT=$ac_cv_path_XGETTEXT
  9383. if test -n "$XGETTEXT"; then
  9384. - echo "$ac_t""$XGETTEXT" 1>&6
  9385. + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9386. +echo "${ECHO_T}$XGETTEXT" >&6; }
  9387. else
  9388. - echo "$ac_t""no" 1>&6
  9389. + { echo "$as_me:$LINENO: result: no" >&5
  9390. +echo "${ECHO_T}no" >&6; }
  9391. fi
  9392. +
  9393. # Extract the first word of "msgmerge", so it can be a program name with args.
  9394. set dummy msgmerge; ac_word=$2
  9395. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9396. -echo "configure:2818: checking for $ac_word" >&5
  9397. -if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
  9398. - echo $ac_n "(cached) $ac_c" 1>&6
  9399. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9400. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9401. +if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9402. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9403. else
  9404. - case "$MSGMERGE" in
  9405. - /*)
  9406. + case $MSGMERGE in
  9407. + [\\/]* | ?:[\\/]*)
  9408. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9409. ;;
  9410. - ?:/*)
  9411. - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a dos path.
  9412. - ;;
  9413. *)
  9414. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9415. - ac_dummy="$mr_PATH"
  9416. - for ac_dir in $ac_dummy; do
  9417. - test -z "$ac_dir" && ac_dir=.
  9418. - if test -f $ac_dir/$ac_word; then
  9419. - ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
  9420. - break
  9421. - fi
  9422. - done
  9423. - IFS="$ac_save_ifs"
  9424. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9425. +for as_dir in $mr_PATH
  9426. +do
  9427. + IFS=$as_save_IFS
  9428. + test -z "$as_dir" && as_dir=.
  9429. + for ac_exec_ext in '' $ac_executable_extensions; do
  9430. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9431. + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
  9432. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9433. + break 2
  9434. + fi
  9435. +done
  9436. +done
  9437. +IFS=$as_save_IFS
  9438. +
  9439. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
  9440. ;;
  9441. esac
  9442. fi
  9443. -MSGMERGE="$ac_cv_path_MSGMERGE"
  9444. +MSGMERGE=$ac_cv_path_MSGMERGE
  9445. if test -n "$MSGMERGE"; then
  9446. - echo "$ac_t""$MSGMERGE" 1>&6
  9447. + { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9448. +echo "${ECHO_T}$MSGMERGE" >&6; }
  9449. else
  9450. - echo "$ac_t""no" 1>&6
  9451. + { echo "$as_me:$LINENO: result: no" >&5
  9452. +echo "${ECHO_T}no" >&6; }
  9453. fi
  9454. - echo $ac_n "checking for GNU gettext""... $ac_c" 1>&6
  9455. -echo "configure:2852: checking for GNU gettext" >&5
  9456. -if eval "test \"`echo '$''{'mr_cv_gnu_gettext'+set}'`\" = set"; then
  9457. - echo $ac_n "(cached) $ac_c" 1>&6
  9458. +
  9459. + { echo "$as_me:$LINENO: checking for GNU gettext" >&5
  9460. +echo $ECHO_N "checking for GNU gettext... $ECHO_C" >&6; }
  9461. +if test "${mr_cv_gnu_gettext+set}" = set; then
  9462. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9463. else
  9464. -
  9465. - cat > conftest.$ac_ext <<EOF
  9466. -#line 2858 "configure"
  9467. -#include "confdefs.h"
  9468. -int main() {
  9469. + cat >conftest.$ac_ext <<_ACEOF
  9470. +/* confdefs.h. */
  9471. +_ACEOF
  9472. +cat confdefs.h >>conftest.$ac_ext
  9473. +cat >>conftest.$ac_ext <<_ACEOF
  9474. +/* end confdefs.h. */
  9475. +
  9476. +int
  9477. +main ()
  9478. +{
  9479. extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr
  9480. -; return 0; }
  9481. -EOF
  9482. -if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9483. - rm -rf conftest*
  9484. + ;
  9485. + return 0;
  9486. +}
  9487. +_ACEOF
  9488. +rm -f conftest.$ac_objext conftest$ac_exeext
  9489. +if { (ac_try="$ac_link"
  9490. +case "(($ac_try" in
  9491. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9492. + *) ac_try_echo=$ac_try;;
  9493. +esac
  9494. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9495. + (eval "$ac_link") 2>conftest.er1
  9496. + ac_status=$?
  9497. + grep -v '^ *+' conftest.er1 >conftest.err
  9498. + rm -f conftest.er1
  9499. + cat conftest.err >&5
  9500. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9501. + (exit $ac_status); } && {
  9502. + test -z "$ac_c_werror_flag" ||
  9503. + test ! -s conftest.err
  9504. + } && test -s conftest$ac_exeext &&
  9505. + $as_test_x conftest$ac_exeext; then
  9506. mr_cv_gnu_gettext=yes
  9507. else
  9508. - echo "configure: failed program was:" >&5
  9509. - cat conftest.$ac_ext >&5
  9510. - rm -rf conftest*
  9511. - mr_cv_gnu_gettext=no
  9512. -fi
  9513. -rm -f conftest*
  9514. -
  9515. + echo "$as_me: failed program was:" >&5
  9516. +sed 's/^/| /' conftest.$ac_ext >&5
  9517. +
  9518. + mr_cv_gnu_gettext=no
  9519. fi
  9520. -echo "$ac_t""$mr_cv_gnu_gettext" 1>&6
  9521. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9522. + conftest$ac_exeext conftest.$ac_ext
  9523. +
  9524. +fi
  9525. +{ echo "$as_me:$LINENO: result: $mr_cv_gnu_gettext" >&5
  9526. +echo "${ECHO_T}$mr_cv_gnu_gettext" >&6; }
  9527. if test "$mr_cv_gnu_gettext" = yes; then
  9528. - echo $ac_n "checking for losing catgets-based GNU gettext""... $ac_c" 1>&6
  9529. -echo "configure:2881: checking for losing catgets-based GNU gettext" >&5
  9530. -if eval "test \"`echo '$''{'mr_cv_catgets_based_gettext'+set}'`\" = set"; then
  9531. - echo $ac_n "(cached) $ac_c" 1>&6
  9532. + { echo "$as_me:$LINENO: checking for losing catgets-based GNU gettext" >&5
  9533. +echo $ECHO_N "checking for losing catgets-based GNU gettext... $ECHO_C" >&6; }
  9534. +if test "${mr_cv_catgets_based_gettext+set}" = set; then
  9535. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9536. else
  9537. -
  9538. - cat > conftest.$ac_ext <<EOF
  9539. -#line 2887 "configure"
  9540. -#include "confdefs.h"
  9541. -int main() {
  9542. + cat >conftest.$ac_ext <<_ACEOF
  9543. +/* confdefs.h. */
  9544. +_ACEOF
  9545. +cat confdefs.h >>conftest.$ac_ext
  9546. +cat >>conftest.$ac_ext <<_ACEOF
  9547. +/* end confdefs.h. */
  9548. +
  9549. +int
  9550. +main ()
  9551. +{
  9552. extern int _msg_tbl_length; return _msg_tbl_length
  9553. -; return 0; }
  9554. -EOF
  9555. -if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9556. - rm -rf conftest*
  9557. + ;
  9558. + return 0;
  9559. +}
  9560. +_ACEOF
  9561. +rm -f conftest.$ac_objext conftest$ac_exeext
  9562. +if { (ac_try="$ac_link"
  9563. +case "(($ac_try" in
  9564. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9565. + *) ac_try_echo=$ac_try;;
  9566. +esac
  9567. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9568. + (eval "$ac_link") 2>conftest.er1
  9569. + ac_status=$?
  9570. + grep -v '^ *+' conftest.er1 >conftest.err
  9571. + rm -f conftest.er1
  9572. + cat conftest.err >&5
  9573. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9574. + (exit $ac_status); } && {
  9575. + test -z "$ac_c_werror_flag" ||
  9576. + test ! -s conftest.err
  9577. + } && test -s conftest$ac_exeext &&
  9578. + $as_test_x conftest$ac_exeext; then
  9579. mr_cv_catgets_based_gettext=yes
  9580. else
  9581. - echo "configure: failed program was:" >&5
  9582. - cat conftest.$ac_ext >&5
  9583. - rm -rf conftest*
  9584. - mr_cv_catgets_based_gettext=no
  9585. -fi
  9586. -rm -f conftest*
  9587. -
  9588. + echo "$as_me: failed program was:" >&5
  9589. +sed 's/^/| /' conftest.$ac_ext >&5
  9590. +
  9591. + mr_cv_catgets_based_gettext=no
  9592. fi
  9593. -echo "$ac_t""$mr_cv_catgets_based_gettext" 1>&6
  9594. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9595. + conftest$ac_exeext conftest.$ac_ext
  9596. +
  9597. +fi
  9598. +{ echo "$as_me:$LINENO: result: $mr_cv_catgets_based_gettext" >&5
  9599. +echo "${ECHO_T}$mr_cv_catgets_based_gettext" >&6; }
  9600. if test "$mr_cv_catgets_based_gettext" = yes; then
  9601. # This loses completely. Turn it off and use catgets.
  9602. LIBS=`echo $LIBS | sed 's,-lintl,,g'`
  9603. mr_cv_func_dgettext=no
  9604. else
  9605. # Is there a better test for this case?
  9606. - echo $ac_n "checking for pure GNU gettext""... $ac_c" 1>&6
  9607. -echo "configure:2915: checking for pure GNU gettext" >&5
  9608. -if eval "test \"`echo '$''{'mr_cv_pure_gnu_gettext'+set}'`\" = set"; then
  9609. - echo $ac_n "(cached) $ac_c" 1>&6
  9610. + { echo "$as_me:$LINENO: checking for pure GNU gettext" >&5
  9611. +echo $ECHO_N "checking for pure GNU gettext... $ECHO_C" >&6; }
  9612. +if test "${mr_cv_pure_gnu_gettext+set}" = set; then
  9613. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9614. else
  9615. -
  9616. - cat > conftest.$ac_ext <<EOF
  9617. -#line 2921 "configure"
  9618. -#include "confdefs.h"
  9619. -int main() {
  9620. + cat >conftest.$ac_ext <<_ACEOF
  9621. +/* confdefs.h. */
  9622. +_ACEOF
  9623. +cat confdefs.h >>conftest.$ac_ext
  9624. +cat >>conftest.$ac_ext <<_ACEOF
  9625. +/* end confdefs.h. */
  9626. +
  9627. +int
  9628. +main ()
  9629. +{
  9630. extern int gettext(); return gettext()
  9631. -; return 0; }
  9632. -EOF
  9633. -if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9634. - rm -rf conftest*
  9635. + ;
  9636. + return 0;
  9637. +}
  9638. +_ACEOF
  9639. +rm -f conftest.$ac_objext conftest$ac_exeext
  9640. +if { (ac_try="$ac_link"
  9641. +case "(($ac_try" in
  9642. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9643. + *) ac_try_echo=$ac_try;;
  9644. +esac
  9645. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9646. + (eval "$ac_link") 2>conftest.er1
  9647. + ac_status=$?
  9648. + grep -v '^ *+' conftest.er1 >conftest.err
  9649. + rm -f conftest.er1
  9650. + cat conftest.err >&5
  9651. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9652. + (exit $ac_status); } && {
  9653. + test -z "$ac_c_werror_flag" ||
  9654. + test ! -s conftest.err
  9655. + } && test -s conftest$ac_exeext &&
  9656. + $as_test_x conftest$ac_exeext; then
  9657. mr_cv_pure_gnu_gettext=yes
  9658. else
  9659. - echo "configure: failed program was:" >&5
  9660. - cat conftest.$ac_ext >&5
  9661. - rm -rf conftest*
  9662. - mr_cv_pure_gnu_gettext=no
  9663. -fi
  9664. -rm -f conftest*
  9665. -
  9666. + echo "$as_me: failed program was:" >&5
  9667. +sed 's/^/| /' conftest.$ac_ext >&5
  9668. +
  9669. + mr_cv_pure_gnu_gettext=no
  9670. fi
  9671. -echo "$ac_t""$mr_cv_pure_gnu_gettext" 1>&6
  9672. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9673. + conftest$ac_exeext conftest.$ac_ext
  9674. +
  9675. +fi
  9676. +{ echo "$as_me:$LINENO: result: $mr_cv_pure_gnu_gettext" >&5
  9677. +echo "${ECHO_T}$mr_cv_pure_gnu_gettext" >&6; }
  9678. if test "$mr_cv_pure_gnu_gettext" = yes; then
  9679. CATOBJEXT=.gmo
  9680. localedir='$(prefix)/share/locale'
  9681. @@ -2959,172 +8317,213 @@ echo "$ac_t""$mr_cv_pure_gnu_gettext" 1>
  9682. fi
  9683. fi
  9684. if test "$mr_cv_func_dgettext" = yes; then
  9685. - cat >> confdefs.h <<\EOF
  9686. + cat >>confdefs.h <<\_ACEOF
  9687. #define HAVE_DGETTEXT 1
  9688. -EOF
  9689. +_ACEOF
  9690. else
  9691. - echo $ac_n "checking for catgets""... $ac_c" 1>&6
  9692. -echo "configure:2969: checking for catgets" >&5
  9693. -if eval "test \"`echo '$''{'mr_cv_func_catgets'+set}'`\" = set"; then
  9694. - echo $ac_n "(cached) $ac_c" 1>&6
  9695. + { echo "$as_me:$LINENO: checking for catgets" >&5
  9696. +echo $ECHO_N "checking for catgets... $ECHO_C" >&6; }
  9697. +if test "${mr_cv_func_catgets+set}" = set; then
  9698. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9699. else
  9700. -
  9701. - cat > conftest.$ac_ext <<EOF
  9702. -#line 2975 "configure"
  9703. -#include "confdefs.h"
  9704. +
  9705. + cat >conftest.$ac_ext <<_ACEOF
  9706. +/* confdefs.h. */
  9707. +_ACEOF
  9708. +cat confdefs.h >>conftest.$ac_ext
  9709. +cat >>conftest.$ac_ext <<_ACEOF
  9710. +/* end confdefs.h. */
  9711. #include <nl_types.h>
  9712. -int main() {
  9713. +int
  9714. +main ()
  9715. +{
  9716. catgets(catopen("",0),0,0,"");return 0;
  9717. -; return 0; }
  9718. -EOF
  9719. -if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9720. - rm -rf conftest*
  9721. + ;
  9722. + return 0;
  9723. +}
  9724. +_ACEOF
  9725. +rm -f conftest.$ac_objext conftest$ac_exeext
  9726. +if { (ac_try="$ac_link"
  9727. +case "(($ac_try" in
  9728. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9729. + *) ac_try_echo=$ac_try;;
  9730. +esac
  9731. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9732. + (eval "$ac_link") 2>conftest.er1
  9733. + ac_status=$?
  9734. + grep -v '^ *+' conftest.er1 >conftest.err
  9735. + rm -f conftest.er1
  9736. + cat conftest.err >&5
  9737. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9738. + (exit $ac_status); } && {
  9739. + test -z "$ac_c_werror_flag" ||
  9740. + test ! -s conftest.err
  9741. + } && test -s conftest$ac_exeext &&
  9742. + $as_test_x conftest$ac_exeext; then
  9743. mr_cv_func_catgets=yes
  9744. else
  9745. - echo "configure: failed program was:" >&5
  9746. - cat conftest.$ac_ext >&5
  9747. - rm -rf conftest*
  9748. - mr_cv_func_catgets=no
  9749. -fi
  9750. -rm -f conftest*
  9751. -
  9752. + echo "$as_me: failed program was:" >&5
  9753. +sed 's/^/| /' conftest.$ac_ext >&5
  9754. +
  9755. + mr_cv_func_catgets=no
  9756. fi
  9757. -echo "$ac_t""$mr_cv_func_catgets" 1>&6
  9758. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9759. + conftest$ac_exeext conftest.$ac_ext
  9760. +
  9761. +fi
  9762. +{ echo "$as_me:$LINENO: result: $mr_cv_func_catgets" >&5
  9763. +echo "${ECHO_T}$mr_cv_func_catgets" >&6; }
  9764. if test "$mr_cv_func_catgets" = yes; then
  9765. # Extract the first word of "gencat", so it can be a program name with args.
  9766. set dummy gencat; ac_word=$2
  9767. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9768. -echo "configure:3000: checking for $ac_word" >&5
  9769. -if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  9770. - echo $ac_n "(cached) $ac_c" 1>&6
  9771. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9772. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9773. +if test "${ac_cv_path_GENCAT+set}" = set; then
  9774. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9775. else
  9776. - case "$GENCAT" in
  9777. - /*)
  9778. + case $GENCAT in
  9779. + [\\/]* | ?:[\\/]*)
  9780. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  9781. ;;
  9782. - ?:/*)
  9783. - ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
  9784. - ;;
  9785. *)
  9786. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9787. - ac_dummy="$mr_PATH"
  9788. - for ac_dir in $ac_dummy; do
  9789. - test -z "$ac_dir" && ac_dir=.
  9790. - if test -f $ac_dir/$ac_word; then
  9791. - ac_cv_path_GENCAT="$ac_dir/$ac_word"
  9792. - break
  9793. - fi
  9794. - done
  9795. - IFS="$ac_save_ifs"
  9796. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9797. +for as_dir in $mr_PATH
  9798. +do
  9799. + IFS=$as_save_IFS
  9800. + test -z "$as_dir" && as_dir=.
  9801. + for ac_exec_ext in '' $ac_executable_extensions; do
  9802. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9803. + ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
  9804. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9805. + break 2
  9806. + fi
  9807. +done
  9808. +done
  9809. +IFS=$as_save_IFS
  9810. +
  9811. test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  9812. ;;
  9813. esac
  9814. fi
  9815. -GENCAT="$ac_cv_path_GENCAT"
  9816. +GENCAT=$ac_cv_path_GENCAT
  9817. if test -n "$GENCAT"; then
  9818. - echo "$ac_t""$GENCAT" 1>&6
  9819. + { echo "$as_me:$LINENO: result: $GENCAT" >&5
  9820. +echo "${ECHO_T}$GENCAT" >&6; }
  9821. else
  9822. - echo "$ac_t""no" 1>&6
  9823. + { echo "$as_me:$LINENO: result: no" >&5
  9824. +echo "${ECHO_T}no" >&6; }
  9825. fi
  9826. +
  9827. if test "$GENCAT" != no; then
  9828. - cat >> confdefs.h <<\EOF
  9829. + cat >>confdefs.h <<\_ACEOF
  9830. #define HAVE_CATGETS 1
  9831. -EOF
  9832. +_ACEOF
  9833. # Extract the first word of "gmsgfmt msgfmt", so it can be a program name with args.
  9834. set dummy gmsgfmt msgfmt; ac_word=$2
  9835. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9836. -echo "configure:3041: checking for $ac_word" >&5
  9837. -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  9838. - echo $ac_n "(cached) $ac_c" 1>&6
  9839. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9840. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9841. +if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9842. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9843. else
  9844. - case "$GMSGFMT" in
  9845. - /*)
  9846. + case $GMSGFMT in
  9847. + [\\/]* | ?:[\\/]*)
  9848. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9849. ;;
  9850. - ?:/*)
  9851. - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  9852. - ;;
  9853. *)
  9854. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9855. - ac_dummy="$mr_PATH"
  9856. - for ac_dir in $ac_dummy; do
  9857. - test -z "$ac_dir" && ac_dir=.
  9858. - if test -f $ac_dir/$ac_word; then
  9859. - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  9860. - break
  9861. - fi
  9862. - done
  9863. - IFS="$ac_save_ifs"
  9864. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9865. +for as_dir in $mr_PATH
  9866. +do
  9867. + IFS=$as_save_IFS
  9868. + test -z "$as_dir" && as_dir=.
  9869. + for ac_exec_ext in '' $ac_executable_extensions; do
  9870. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9871. + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9872. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9873. + break 2
  9874. + fi
  9875. +done
  9876. +done
  9877. +IFS=$as_save_IFS
  9878. +
  9879. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
  9880. ;;
  9881. esac
  9882. fi
  9883. -GMSGFMT="$ac_cv_path_GMSGFMT"
  9884. +GMSGFMT=$ac_cv_path_GMSGFMT
  9885. if test -n "$GMSGFMT"; then
  9886. - echo "$ac_t""$GMSGFMT" 1>&6
  9887. + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9888. +echo "${ECHO_T}$GMSGFMT" >&6; }
  9889. else
  9890. - echo "$ac_t""no" 1>&6
  9891. + { echo "$as_me:$LINENO: result: no" >&5
  9892. +echo "${ECHO_T}no" >&6; }
  9893. fi
  9894. +
  9895. # Extract the first word of "xgettext", so it can be a program name with args.
  9896. set dummy xgettext; ac_word=$2
  9897. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9898. -echo "configure:3077: checking for $ac_word" >&5
  9899. -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  9900. - echo $ac_n "(cached) $ac_c" 1>&6
  9901. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  9902. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9903. +if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9904. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9905. else
  9906. - case "$XGETTEXT" in
  9907. - /*)
  9908. + case $XGETTEXT in
  9909. + [\\/]* | ?:[\\/]*)
  9910. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9911. ;;
  9912. - ?:/*)
  9913. - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
  9914. - ;;
  9915. *)
  9916. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9917. - ac_dummy="$mr_PATH"
  9918. - for ac_dir in $ac_dummy; do
  9919. - test -z "$ac_dir" && ac_dir=.
  9920. - if test -f $ac_dir/$ac_word; then
  9921. - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  9922. - break
  9923. - fi
  9924. - done
  9925. - IFS="$ac_save_ifs"
  9926. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9927. +for as_dir in $mr_PATH
  9928. +do
  9929. + IFS=$as_save_IFS
  9930. + test -z "$as_dir" && as_dir=.
  9931. + for ac_exec_ext in '' $ac_executable_extensions; do
  9932. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9933. + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  9934. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9935. + break 2
  9936. + fi
  9937. +done
  9938. +done
  9939. +IFS=$as_save_IFS
  9940. +
  9941. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  9942. ;;
  9943. esac
  9944. fi
  9945. -XGETTEXT="$ac_cv_path_XGETTEXT"
  9946. +XGETTEXT=$ac_cv_path_XGETTEXT
  9947. if test -n "$XGETTEXT"; then
  9948. - echo "$ac_t""$XGETTEXT" 1>&6
  9949. + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9950. +echo "${ECHO_T}$XGETTEXT" >&6; }
  9951. else
  9952. - echo "$ac_t""no" 1>&6
  9953. + { echo "$as_me:$LINENO: result: no" >&5
  9954. +echo "${ECHO_T}no" >&6; }
  9955. fi
  9956. +
  9957. CATOBJEXT=.cat
  9958. INSTOBJEXT=.cat
  9959. localedir='$(prefix)/lib/locale'
  9960. fi
  9961. else
  9962. - echo "configure: warning: no NLS support, disabled" 1>&2
  9963. + { echo "$as_me:$LINENO: WARNING: no NLS support, disabled" >&5
  9964. +echo "$as_me: WARNING: no NLS support, disabled" >&2;}
  9965. mr_enable_nls=no
  9966. fi
  9967. fi
  9968. fi
  9969. -
  9970. -
  9971. -
  9972. +
  9973. +
  9974. +
  9975. POSUB=
  9976. CATALOGS=
  9977. if test "$mr_enable_nls" = yes; then
  9978. - echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  9979. -echo "configure:3128: checking for catalogs to be installed" >&5
  9980. + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  9981. +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
  9982. mr_linguas=
  9983. for mr_lang in ${LINGUAS=$ALL_LINGUAS}; do
  9984. case " $ALL_LINGUAS " in
  9985. @@ -3134,84 +8533,166 @@ echo "configure:3128: checking for catal
  9986. ;;
  9987. esac
  9988. done
  9989. - echo "$ac_t""$mr_linguas" 1>&6
  9990. + { echo "$as_me:$LINENO: result: $mr_linguas" >&5
  9991. +echo "${ECHO_T}$mr_linguas" >&6; }
  9992. POSUB=po
  9993. fi
  9994. -
  9995. -
  9996. +
  9997. +
  9998. LIBINTL=
  9999. -echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  10000. -echo "configure:3146: checking for gettext in -lintl" >&5
  10001. -ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  10002. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10003. - echo $ac_n "(cached) $ac_c" 1>&6
  10004. +{ echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
  10005. +echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
  10006. +if test "${ac_cv_lib_intl_gettext+set}" = set; then
  10007. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10008. else
  10009. - ac_save_LIBS="$LIBS"
  10010. + ac_check_lib_save_LIBS=$LIBS
  10011. LIBS="-lintl $LIBS"
  10012. -cat > conftest.$ac_ext <<EOF
  10013. -#line 3154 "configure"
  10014. -#include "confdefs.h"
  10015. -/* Override any gcc2 internal prototype to avoid an error. */
  10016. -/* We use char because int might match the return type of a gcc2
  10017. - builtin and then its argument prototype would still apply. */
  10018. -char gettext();
  10019. +cat >conftest.$ac_ext <<_ACEOF
  10020. +/* confdefs.h. */
  10021. +_ACEOF
  10022. +cat confdefs.h >>conftest.$ac_ext
  10023. +cat >>conftest.$ac_ext <<_ACEOF
  10024. +/* end confdefs.h. */
  10025. -int main() {
  10026. -gettext()
  10027. -; return 0; }
  10028. -EOF
  10029. -if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10030. - rm -rf conftest*
  10031. - eval "ac_cv_lib_$ac_lib_var=yes"
  10032. +/* Override any GCC internal prototype to avoid an error.
  10033. + Use char because int might match the return type of a GCC
  10034. + builtin and then its argument prototype would still apply. */
  10035. +#ifdef __cplusplus
  10036. +extern "C"
  10037. +#endif
  10038. +char gettext ();
  10039. +int
  10040. +main ()
  10041. +{
  10042. +return gettext ();
  10043. + ;
  10044. + return 0;
  10045. +}
  10046. +_ACEOF
  10047. +rm -f conftest.$ac_objext conftest$ac_exeext
  10048. +if { (ac_try="$ac_link"
  10049. +case "(($ac_try" in
  10050. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10051. + *) ac_try_echo=$ac_try;;
  10052. +esac
  10053. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10054. + (eval "$ac_link") 2>conftest.er1
  10055. + ac_status=$?
  10056. + grep -v '^ *+' conftest.er1 >conftest.err
  10057. + rm -f conftest.er1
  10058. + cat conftest.err >&5
  10059. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10060. + (exit $ac_status); } && {
  10061. + test -z "$ac_c_werror_flag" ||
  10062. + test ! -s conftest.err
  10063. + } && test -s conftest$ac_exeext &&
  10064. + $as_test_x conftest$ac_exeext; then
  10065. + ac_cv_lib_intl_gettext=yes
  10066. else
  10067. - echo "configure: failed program was:" >&5
  10068. - cat conftest.$ac_ext >&5
  10069. - rm -rf conftest*
  10070. - eval "ac_cv_lib_$ac_lib_var=no"
  10071. + echo "$as_me: failed program was:" >&5
  10072. +sed 's/^/| /' conftest.$ac_ext >&5
  10073. +
  10074. + ac_cv_lib_intl_gettext=no
  10075. fi
  10076. -rm -f conftest*
  10077. -LIBS="$ac_save_LIBS"
  10078. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10079. + conftest$ac_exeext conftest.$ac_ext
  10080. +LIBS=$ac_check_lib_save_LIBS
  10081. fi
  10082. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10083. - echo "$ac_t""yes" 1>&6
  10084. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
  10085. +echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
  10086. +if test $ac_cv_lib_intl_gettext = yes; then
  10087. LIBINTL=-lintl
  10088. -else
  10089. - echo "$ac_t""no" 1>&6
  10090. fi
  10091. -
  10092. # Make sure we can run config.sub.
  10093. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  10094. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  10095. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  10096. + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  10097. +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  10098. + { (exit 1); exit 1; }; }
  10099. +
  10100. +{ echo "$as_me:$LINENO: checking build system type" >&5
  10101. +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  10102. +if test "${ac_cv_build+set}" = set; then
  10103. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10104. +else
  10105. + ac_build_alias=$build_alias
  10106. +test "x$ac_build_alias" = x &&
  10107. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  10108. +test "x$ac_build_alias" = x &&
  10109. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  10110. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  10111. + { (exit 1); exit 1; }; }
  10112. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  10113. + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  10114. +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  10115. + { (exit 1); exit 1; }; }
  10116. +
  10117. fi
  10118. +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  10119. +echo "${ECHO_T}$ac_cv_build" >&6; }
  10120. +case $ac_cv_build in
  10121. +*-*-*) ;;
  10122. +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  10123. +echo "$as_me: error: invalid value of canonical build" >&2;}
  10124. + { (exit 1); exit 1; }; };;
  10125. +esac
  10126. +build=$ac_cv_build
  10127. +ac_save_IFS=$IFS; IFS='-'
  10128. +set x $ac_cv_build
  10129. +shift
  10130. +build_cpu=$1
  10131. +build_vendor=$2
  10132. +shift; shift
  10133. +# Remember, the first character of IFS is used to create $*,
  10134. +# except with old shells:
  10135. +build_os=$*
  10136. +IFS=$ac_save_IFS
  10137. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  10138. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  10139. -echo "configure:3194: checking host system type" >&5
  10140. -host_alias=$host
  10141. -case "$host_alias" in
  10142. -NONE)
  10143. - case $nonopt in
  10144. - NONE)
  10145. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  10146. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  10147. - fi ;;
  10148. - *) host_alias=$nonopt ;;
  10149. - esac ;;
  10150. +{ echo "$as_me:$LINENO: checking host system type" >&5
  10151. +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  10152. +if test "${ac_cv_host+set}" = set; then
  10153. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10154. +else
  10155. + if test "x$host_alias" = x; then
  10156. + ac_cv_host=$ac_cv_build
  10157. +else
  10158. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10159. + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  10160. +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  10161. + { (exit 1); exit 1; }; }
  10162. +fi
  10163. +
  10164. +fi
  10165. +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10166. +echo "${ECHO_T}$ac_cv_host" >&6; }
  10167. +case $ac_cv_host in
  10168. +*-*-*) ;;
  10169. +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  10170. +echo "$as_me: error: invalid value of canonical host" >&2;}
  10171. + { (exit 1); exit 1; }; };;
  10172. esac
  10173. +host=$ac_cv_host
  10174. +ac_save_IFS=$IFS; IFS='-'
  10175. +set x $ac_cv_host
  10176. +shift
  10177. +host_cpu=$1
  10178. +host_vendor=$2
  10179. +shift; shift
  10180. +# Remember, the first character of IFS is used to create $*,
  10181. +# except with old shells:
  10182. +host_os=$*
  10183. +IFS=$ac_save_IFS
  10184. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10185. +
  10186. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  10187. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10188. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10189. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10190. -echo "$ac_t""$host" 1>&6
  10191. -
  10192. PICFLAGS=
  10193. SHLIB_SFX=
  10194. SHLINK_SFX=
  10195. @@ -3219,83 +8700,91 @@ echo "$ac_t""$host" 1>&6
  10196. LINK_SHLIB=
  10197. INSTALL_SHLIB=
  10198. DEPSHLIBS=
  10199. - echo $ac_n "checking whether to build a shared library""... $ac_c" 1>&6
  10200. -echo "configure:3224: checking whether to build a shared library" >&5
  10201. - # Check whether --enable-shared or --disable-shared was given.
  10202. + { echo "$as_me:$LINENO: checking whether to build a shared library" >&5
  10203. +echo $ECHO_N "checking whether to build a shared library... $ECHO_C" >&6; }
  10204. + # Check whether --enable-shared was given.
  10205. if test "${enable_shared+set}" = set; then
  10206. - enableval="$enable_shared"
  10207. - mr_enable_shared="$enableval"
  10208. + enableval=$enable_shared; mr_enable_shared="$enableval"
  10209. else
  10210. mr_enable_shared=yes
  10211. fi
  10212. - echo "$ac_t""$mr_enable_shared" 1>&6
  10213. + { echo "$as_me:$LINENO: result: $mr_enable_shared" >&5
  10214. +echo "${ECHO_T}$mr_enable_shared" >&6; }
  10215. if test "$mr_enable_shared" = yes; then
  10216. - echo $ac_n "checking whether GNU naming conventions are requested""... $ac_c" 1>&6
  10217. -echo "configure:3236: checking whether GNU naming conventions are requested" >&5
  10218. - # Check whether --enable-gnu-names or --disable-gnu-names was given.
  10219. + { echo "$as_me:$LINENO: checking whether GNU naming conventions are requested" >&5
  10220. +echo $ECHO_N "checking whether GNU naming conventions are requested... $ECHO_C" >&6; }
  10221. + # Check whether --enable-gnu-names was given.
  10222. if test "${enable_gnu_names+set}" = set; then
  10223. - enableval="$enable_gnu_names"
  10224. - mr_enable_gnu_names="$enableval"
  10225. + enableval=$enable_gnu_names; mr_enable_gnu_names="$enableval"
  10226. else
  10227. mr_enable_gnu_names=no
  10228. fi
  10229. - echo "$ac_t""$mr_enable_gnu_names" 1>&6
  10230. -
  10231. -
  10232. + { echo "$as_me:$LINENO: result: $mr_enable_gnu_names" >&5
  10233. +echo "${ECHO_T}$mr_enable_gnu_names" >&6; }
  10234. +
  10235. +
  10236. # Extract the first word of "ld", so it can be a program name with args.
  10237. set dummy ld; ac_word=$2
  10238. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10239. -echo "configure:3251: checking for $ac_word" >&5
  10240. -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  10241. - echo $ac_n "(cached) $ac_c" 1>&6
  10242. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  10243. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10244. +if test "${ac_cv_path_LD+set}" = set; then
  10245. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10246. else
  10247. - case "$LD" in
  10248. - /*)
  10249. + case $LD in
  10250. + [\\/]* | ?:[\\/]*)
  10251. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  10252. ;;
  10253. - ?:/*)
  10254. - ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
  10255. - ;;
  10256. *)
  10257. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10258. - ac_dummy="$PATH"
  10259. - for ac_dir in $ac_dummy; do
  10260. - test -z "$ac_dir" && ac_dir=.
  10261. - if test -f $ac_dir/$ac_word; then
  10262. - ac_cv_path_LD="$ac_dir/$ac_word"
  10263. - break
  10264. - fi
  10265. - done
  10266. - IFS="$ac_save_ifs"
  10267. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10268. +for as_dir in $PATH
  10269. +do
  10270. + IFS=$as_save_IFS
  10271. + test -z "$as_dir" && as_dir=.
  10272. + for ac_exec_ext in '' $ac_executable_extensions; do
  10273. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10274. + ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  10275. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10276. + break 2
  10277. + fi
  10278. +done
  10279. +done
  10280. +IFS=$as_save_IFS
  10281. +
  10282. test -z "$ac_cv_path_LD" && ac_cv_path_LD="ld"
  10283. ;;
  10284. esac
  10285. fi
  10286. -LD="$ac_cv_path_LD"
  10287. +LD=$ac_cv_path_LD
  10288. if test -n "$LD"; then
  10289. - echo "$ac_t""$LD" 1>&6
  10290. + { echo "$as_me:$LINENO: result: $LD" >&5
  10291. +echo "${ECHO_T}$LD" >&6; }
  10292. else
  10293. - echo "$ac_t""no" 1>&6
  10294. + { echo "$as_me:$LINENO: result: no" >&5
  10295. +echo "${ECHO_T}no" >&6; }
  10296. fi
  10297. +
  10298. case "$host" in
  10299. *-linux*|*-gnu*)
  10300. if test "$GCC" = yes; then
  10301. -
  10302. -
  10303. - echo $ac_n "checking for native ELF system""... $ac_c" 1>&6
  10304. -echo "configure:3290: checking for native ELF system" >&5
  10305. -if eval "test \"`echo '$''{'mr_cv_target_elf'+set}'`\" = set"; then
  10306. - echo $ac_n "(cached) $ac_c" 1>&6
  10307. +
  10308. +
  10309. + { echo "$as_me:$LINENO: checking for native ELF system" >&5
  10310. +echo $ECHO_N "checking for native ELF system... $ECHO_C" >&6; }
  10311. +if test "${mr_cv_target_elf+set}" = set; then
  10312. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10313. else
  10314. if test "$cross_compiling" = yes; then
  10315. mr_cv_target_elf=no
  10316. else
  10317. - cat > conftest.$ac_ext <<EOF
  10318. -#line 3298 "configure"
  10319. -#include "confdefs.h"
  10320. + cat >conftest.$ac_ext <<_ACEOF
  10321. +/* confdefs.h. */
  10322. +_ACEOF
  10323. +cat confdefs.h >>conftest.$ac_ext
  10324. +cat >>conftest.$ac_ext <<_ACEOF
  10325. +/* end confdefs.h. */
  10326. #include <stdio.h>
  10327. int
  10328. main(int argc, char **argv) {
  10329. @@ -3316,22 +8805,43 @@ main(int argc, char **argv) {
  10330. }
  10331. exit(1);
  10332. }
  10333. -EOF
  10334. -if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10335. -then
  10336. +_ACEOF
  10337. +rm -f conftest$ac_exeext
  10338. +if { (ac_try="$ac_link"
  10339. +case "(($ac_try" in
  10340. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10341. + *) ac_try_echo=$ac_try;;
  10342. +esac
  10343. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10344. + (eval "$ac_link") 2>&5
  10345. + ac_status=$?
  10346. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10347. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10348. + { (case "(($ac_try" in
  10349. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10350. + *) ac_try_echo=$ac_try;;
  10351. +esac
  10352. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10353. + (eval "$ac_try") 2>&5
  10354. + ac_status=$?
  10355. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. + (exit $ac_status); }; }; then
  10357. mr_cv_target_elf=yes
  10358. else
  10359. - echo "configure: failed program was:" >&5
  10360. - cat conftest.$ac_ext >&5
  10361. - rm -fr conftest*
  10362. - mr_cv_target_elf=no
  10363. + echo "$as_me: program exited with status $ac_status" >&5
  10364. +echo "$as_me: failed program was:" >&5
  10365. +sed 's/^/| /' conftest.$ac_ext >&5
  10366. +
  10367. +( exit $ac_status )
  10368. +mr_cv_target_elf=no
  10369. fi
  10370. -rm -fr conftest*
  10371. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10372. fi
  10373. -fi
  10374. -echo "$ac_t""$mr_cv_target_elf" 1>&6
  10375. +fi
  10376. +{ echo "$as_me:$LINENO: result: $mr_cv_target_elf" >&5
  10377. +echo "${ECHO_T}$mr_cv_target_elf" >&6; }
  10378. if test "$mr_cv_target_elf" = yes; then
  10379. PICFLAGS='-fPIC -DPIC'
  10380. if test "$mr_enable_gnu_names" = yes
  10381. @@ -3344,11 +8854,13 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
  10382. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  10383. DEPSHLIBS='-lc'
  10384. else
  10385. - echo "configure: warning: shared libraries not supported for $host" 1>&2
  10386. + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
  10387. +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  10388. mr_enable_shared=no
  10389. fi
  10390. elif ${CC} -V 2>&1 | grep 'Intel(R) C++ Compiler' >/dev/null 2>&1; then
  10391. - echo "configure: warning: Use --disable-shared if $CC fails to build the shared library" 1>&2
  10392. + { echo "$as_me:$LINENO: WARNING: Use --disable-shared if $CC fails to build the shared library" >&5
  10393. +echo "$as_me: WARNING: Use --disable-shared if $CC fails to build the shared library" >&2;}
  10394. PICFLAGS='-fPIC -DPIC'
  10395. if test "$mr_enable_gnu_names" = yes
  10396. then SHLIB_SFX='-$(VERSION).so'
  10397. @@ -3360,24 +8872,28 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
  10398. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  10399. DEPSHLIBS='-lc'
  10400. else
  10401. - echo "configure: warning: GNU CC required for building shared libraries" 1>&2
  10402. + { echo "$as_me:$LINENO: WARNING: GNU CC required for building shared libraries" >&5
  10403. +echo "$as_me: WARNING: GNU CC required for building shared libraries" >&2;}
  10404. mr_enable_shared=no
  10405. fi
  10406. ;;
  10407. i386-pc-nto-qnx*)
  10408. -
  10409. -
  10410. - echo $ac_n "checking for native ELF system""... $ac_c" 1>&6
  10411. -echo "configure:3372: checking for native ELF system" >&5
  10412. -if eval "test \"`echo '$''{'mr_cv_target_elf'+set}'`\" = set"; then
  10413. - echo $ac_n "(cached) $ac_c" 1>&6
  10414. +
  10415. +
  10416. + { echo "$as_me:$LINENO: checking for native ELF system" >&5
  10417. +echo $ECHO_N "checking for native ELF system... $ECHO_C" >&6; }
  10418. +if test "${mr_cv_target_elf+set}" = set; then
  10419. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10420. else
  10421. if test "$cross_compiling" = yes; then
  10422. mr_cv_target_elf=no
  10423. else
  10424. - cat > conftest.$ac_ext <<EOF
  10425. -#line 3380 "configure"
  10426. -#include "confdefs.h"
  10427. + cat >conftest.$ac_ext <<_ACEOF
  10428. +/* confdefs.h. */
  10429. +_ACEOF
  10430. +cat confdefs.h >>conftest.$ac_ext
  10431. +cat >>conftest.$ac_ext <<_ACEOF
  10432. +/* end confdefs.h. */
  10433. #include <stdio.h>
  10434. int
  10435. main(int argc, char **argv) {
  10436. @@ -3398,22 +8914,43 @@ main(int argc, char **argv) {
  10437. }
  10438. exit(1);
  10439. }
  10440. -EOF
  10441. -if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10442. -then
  10443. +_ACEOF
  10444. +rm -f conftest$ac_exeext
  10445. +if { (ac_try="$ac_link"
  10446. +case "(($ac_try" in
  10447. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10448. + *) ac_try_echo=$ac_try;;
  10449. +esac
  10450. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10451. + (eval "$ac_link") 2>&5
  10452. + ac_status=$?
  10453. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10454. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10455. + { (case "(($ac_try" in
  10456. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10457. + *) ac_try_echo=$ac_try;;
  10458. +esac
  10459. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10460. + (eval "$ac_try") 2>&5
  10461. + ac_status=$?
  10462. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10463. + (exit $ac_status); }; }; then
  10464. mr_cv_target_elf=yes
  10465. else
  10466. - echo "configure: failed program was:" >&5
  10467. - cat conftest.$ac_ext >&5
  10468. - rm -fr conftest*
  10469. - mr_cv_target_elf=no
  10470. + echo "$as_me: program exited with status $ac_status" >&5
  10471. +echo "$as_me: failed program was:" >&5
  10472. +sed 's/^/| /' conftest.$ac_ext >&5
  10473. +
  10474. +( exit $ac_status )
  10475. +mr_cv_target_elf=no
  10476. fi
  10477. -rm -fr conftest*
  10478. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10479. fi
  10480. -fi
  10481. -echo "$ac_t""$mr_cv_target_elf" 1>&6
  10482. +fi
  10483. +{ echo "$as_me:$LINENO: result: $mr_cv_target_elf" >&5
  10484. +echo "${ECHO_T}$mr_cv_target_elf" >&6; }
  10485. if test "$mr_cv_target_elf" = yes; then
  10486. PICFLAGS='-fPIC -DPIC'
  10487. if test "$mr_enable_gnu_names" = yes
  10488. @@ -3426,7 +8963,8 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
  10489. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  10490. DEPSHLIBS='-lc'
  10491. else
  10492. - echo "configure: warning: shared libraries not supported for $host" 1>&2
  10493. + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
  10494. +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  10495. mr_enable_shared=no
  10496. fi
  10497. ;;
  10498. @@ -3446,465 +8984,1227 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
  10499. INSTALL_SHLIB='$(INSTALL_PROGRAM)'
  10500. ;;
  10501. *)
  10502. - echo "configure: warning: shared libraries not supported for $host" 1>&2
  10503. + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
  10504. +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
  10505. mr_enable_shared=no
  10506. ;;
  10507. esac
  10508. else
  10509. mr_enable_shared=no
  10510. fi
  10511. -
  10512. -
  10513. -
  10514. -
  10515. -
  10516. -
  10517. -
  10518. +
  10519. +
  10520. +
  10521. +
  10522. +
  10523. +
  10524. +
  10525. DO_SHLIB="$mr_enable_shared"
  10526. -
  10527. -# Check whether --enable-extended-format or --disable-extended-format was given.
  10528. +
  10529. +# Check whether --enable-extended-format was given.
  10530. if test "${enable_extended_format+set}" = set; then
  10531. - enableval="$enable_extended_format"
  10532. - mr_enable_extended_format="$enableval"
  10533. + enableval=$enable_extended_format; mr_enable_extended_format="$enableval"
  10534. else
  10535. mr_enable_extended_format=no
  10536. fi
  10537. if test "$mr_enable_extended_format" = yes; then
  10538. - cat >> confdefs.h <<\EOF
  10539. + cat >>confdefs.h <<\_ACEOF
  10540. #define ENABLE_EXTENDED_FORMAT 1
  10541. -EOF
  10542. +_ACEOF
  10543. fi
  10544. -# Check whether --enable-sanity-checks or --disable-sanity-checks was given.
  10545. +# Check whether --enable-sanity-checks was given.
  10546. if test "${enable_sanity_checks+set}" = set; then
  10547. - enableval="$enable_sanity_checks"
  10548. - mr_enable_sanity_checks="$enableval"
  10549. + enableval=$enable_sanity_checks; mr_enable_sanity_checks="$enableval"
  10550. else
  10551. mr_enable_sanity_checks=yes
  10552. fi
  10553. if test "$mr_enable_sanity_checks" = yes; then
  10554. - cat >> confdefs.h <<\EOF
  10555. + cat >>confdefs.h <<\_ACEOF
  10556. #define ENABLE_SANITY_CHECKS 1
  10557. -EOF
  10558. +_ACEOF
  10559. fi
  10560. -
  10561. - # Check whether --enable-debug or --disable-debug was given.
  10562. +
  10563. + # Check whether --enable-debug was given.
  10564. if test "${enable_debug+set}" = set; then
  10565. - enableval="$enable_debug"
  10566. - mr_enable_debug="$enableval"
  10567. + enableval=$enable_debug; mr_enable_debug="$enableval"
  10568. else
  10569. mr_enable_debug=no
  10570. fi
  10571. if test "$mr_enable_debug" = yes; then
  10572. - cat >> confdefs.h <<\EOF
  10573. + cat >>confdefs.h <<\_ACEOF
  10574. #define ENABLE_DEBUG 1
  10575. -EOF
  10576. +_ACEOF
  10577. fi
  10578. -trap '' 1 2 15
  10579. -cat > confcache <<\EOF
  10580. +ac_config_files="$ac_config_files Makefile lib/Makefile po/Makefile libelf.pc"
  10581. +
  10582. +ac_config_commands="$ac_config_commands default"
  10583. +
  10584. +cat >confcache <<\_ACEOF
  10585. # This file is a shell script that caches the results of configure
  10586. # tests run on this system so they can be shared between configure
  10587. -# scripts and configure runs. It is not useful on other systems.
  10588. -# If it contains results you don't want to keep, you may remove or edit it.
  10589. +# scripts and configure runs, see configure's option --config-cache.
  10590. +# It is not useful on other systems. If it contains results you don't
  10591. +# want to keep, you may remove or edit it.
  10592. #
  10593. -# By default, configure uses ./config.cache as the cache file,
  10594. -# creating it if it does not exist already. You can give configure
  10595. -# the --cache-file=FILE option to use a different cache file; that is
  10596. -# what configure does when it calls configure scripts in
  10597. -# subdirectories, so they share the cache.
  10598. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  10599. -# config.status only pays attention to the cache file if you give it the
  10600. -# --recheck option to rerun configure.
  10601. +# config.status only pays attention to the cache file if you give it
  10602. +# the --recheck option to rerun configure.
  10603. #
  10604. -EOF
  10605. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  10606. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  10607. +# following values.
  10608. +
  10609. +_ACEOF
  10610. +
  10611. # The following way of writing the cache mishandles newlines in values,
  10612. # but we know of no workaround that is simple, portable, and efficient.
  10613. -# So, don't put newlines in cache variables' values.
  10614. +# So, we kill variables containing newlines.
  10615. # Ultrix sh set writes to stderr and can't be redirected directly,
  10616. # and sets the high bit in the cache file unless we assign to the vars.
  10617. -(set) 2>&1 |
  10618. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10619. - *ac_space=\ *)
  10620. - # `set' does not quote correctly, so add quotes (double-quote substitution
  10621. - # turns \\\\ into \\, and sed turns \\ into \).
  10622. - sed -n \
  10623. - -e "s/'/'\\\\''/g" \
  10624. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  10625. - ;;
  10626. - *)
  10627. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  10628. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  10629. - ;;
  10630. - esac >> confcache
  10631. -if cmp -s $cache_file confcache; then
  10632. - :
  10633. -else
  10634. - if test -w $cache_file; then
  10635. - echo "updating cache $cache_file"
  10636. - cat confcache > $cache_file
  10637. +(
  10638. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10639. + eval ac_val=\$$ac_var
  10640. + case $ac_val in #(
  10641. + *${as_nl}*)
  10642. + case $ac_var in #(
  10643. + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10644. +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10645. + esac
  10646. + case $ac_var in #(
  10647. + _ | IFS | as_nl) ;; #(
  10648. + *) $as_unset $ac_var ;;
  10649. + esac ;;
  10650. + esac
  10651. + done
  10652. +
  10653. + (set) 2>&1 |
  10654. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10655. + *${as_nl}ac_space=\ *)
  10656. + # `set' does not quote correctly, so add quotes (double-quote
  10657. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  10658. + sed -n \
  10659. + "s/'/'\\\\''/g;
  10660. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10661. + ;; #(
  10662. + *)
  10663. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  10664. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10665. + ;;
  10666. + esac |
  10667. + sort
  10668. +) |
  10669. + sed '
  10670. + /^ac_cv_env_/b end
  10671. + t clear
  10672. + :clear
  10673. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10674. + t end
  10675. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10676. + :end' >>confcache
  10677. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10678. + if test -w "$cache_file"; then
  10679. + test "x$cache_file" != "x/dev/null" &&
  10680. + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10681. +echo "$as_me: updating cache $cache_file" >&6;}
  10682. + cat confcache >$cache_file
  10683. else
  10684. - echo "not updating unwritable cache $cache_file"
  10685. + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10686. +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10687. fi
  10688. fi
  10689. rm -f confcache
  10690. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10691. -
  10692. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10693. # Let make expand exec_prefix.
  10694. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10695. -# Any assignment to VPATH causes Sun make to only execute
  10696. -# the first set of double-colon rules, so remove it if not needed.
  10697. -# If there is a colon in the path, we need to keep it.
  10698. -if test "x$srcdir" = x.; then
  10699. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10700. -fi
  10701. +DEFS=-DHAVE_CONFIG_H
  10702. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10703. +ac_libobjs=
  10704. +ac_ltlibobjs=
  10705. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10706. + # 1. Remove the extension, and $U if already installed.
  10707. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10708. + ac_i=`echo "$ac_i" | sed "$ac_script"`
  10709. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10710. + # will be set to the directory where LIBOBJS objects are built.
  10711. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10712. + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  10713. +done
  10714. +LIBOBJS=$ac_libobjs
  10715. -DEFS=-DHAVE_CONFIG_H
  10716. +LTLIBOBJS=$ac_ltlibobjs
  10717. -# Without the "./", some shells look in PATH for config.status.
  10718. -: ${CONFIG_STATUS=./config.status}
  10719. -echo creating $CONFIG_STATUS
  10720. -rm -f $CONFIG_STATUS
  10721. -cat > $CONFIG_STATUS <<EOF
  10722. -#! /bin/sh
  10723. -# Generated automatically by configure.
  10724. +
  10725. +: ${CONFIG_STATUS=./config.status}
  10726. +ac_clean_files_save=$ac_clean_files
  10727. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10728. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10729. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10730. +cat >$CONFIG_STATUS <<_ACEOF
  10731. +#! $SHELL
  10732. +# Generated by $as_me.
  10733. # Run this file to recreate the current configuration.
  10734. -# This directory was configured as follows,
  10735. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10736. -#
  10737. -# $0 $ac_configure_args
  10738. -#
  10739. # Compiler output produced by configure, useful for debugging
  10740. -# configure, is in ./config.log if it exists.
  10741. +# configure, is in config.log if it exists.
  10742. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10743. -for ac_option
  10744. -do
  10745. - case "\$ac_option" in
  10746. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10747. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10748. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10749. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10750. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10751. - exit 0 ;;
  10752. - -help | --help | --hel | --he | --h)
  10753. - echo "\$ac_cs_usage"; exit 0 ;;
  10754. - *) echo "\$ac_cs_usage"; exit 1 ;;
  10755. - esac
  10756. -done
  10757. +debug=false
  10758. +ac_cs_recheck=false
  10759. +ac_cs_silent=false
  10760. +SHELL=\${CONFIG_SHELL-$SHELL}
  10761. +_ACEOF
  10762. -ac_given_srcdir=$srcdir
  10763. -ac_given_INSTALL="$INSTALL"
  10764. +cat >>$CONFIG_STATUS <<\_ACEOF
  10765. +## --------------------- ##
  10766. +## M4sh Initialization. ##
  10767. +## --------------------- ##
  10768. -trap 'rm -fr `echo "Makefile lib/Makefile po/Makefile libelf.pc config.h lib/sys_elf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  10769. -EOF
  10770. -cat >> $CONFIG_STATUS <<EOF
  10771. +# Be more Bourne compatible
  10772. +DUALCASE=1; export DUALCASE # for MKS sh
  10773. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10774. + emulate sh
  10775. + NULLCMD=:
  10776. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10777. + # is contrary to our usage. Disable this feature.
  10778. + alias -g '${1+"$@"}'='"$@"'
  10779. + setopt NO_GLOB_SUBST
  10780. +else
  10781. + case `(set -o) 2>/dev/null` in
  10782. + *posix*) set -o posix ;;
  10783. +esac
  10784. -# Protect against being on the right side of a sed subst in config.status.
  10785. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10786. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10787. -$ac_vpsub
  10788. -$extrasub
  10789. -s%@SHELL@%$SHELL%g
  10790. -s%@CFLAGS@%$CFLAGS%g
  10791. -s%@CPPFLAGS@%$CPPFLAGS%g
  10792. -s%@CXXFLAGS@%$CXXFLAGS%g
  10793. -s%@FFLAGS@%$FFLAGS%g
  10794. -s%@DEFS@%$DEFS%g
  10795. -s%@LDFLAGS@%$LDFLAGS%g
  10796. -s%@LIBS@%$LIBS%g
  10797. -s%@exec_prefix@%$exec_prefix%g
  10798. -s%@prefix@%$prefix%g
  10799. -s%@program_transform_name@%$program_transform_name%g
  10800. -s%@bindir@%$bindir%g
  10801. -s%@sbindir@%$sbindir%g
  10802. -s%@libexecdir@%$libexecdir%g
  10803. -s%@datadir@%$datadir%g
  10804. -s%@sysconfdir@%$sysconfdir%g
  10805. -s%@sharedstatedir@%$sharedstatedir%g
  10806. -s%@localstatedir@%$localstatedir%g
  10807. -s%@libdir@%$libdir%g
  10808. -s%@includedir@%$includedir%g
  10809. -s%@oldincludedir@%$oldincludedir%g
  10810. -s%@infodir@%$infodir%g
  10811. -s%@mandir@%$mandir%g
  10812. -s%@PACKAGE@%$PACKAGE%g
  10813. -s%@VERSION@%$VERSION%g
  10814. -s%@MAINT@%$MAINT%g
  10815. -s%@MAJOR@%$MAJOR%g
  10816. -s%@SET_MAKE@%$SET_MAKE%g
  10817. -s%@CC@%$CC%g
  10818. -s%@CPP@%$CPP%g
  10819. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10820. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10821. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  10822. -s%@RANLIB@%$RANLIB%g
  10823. -s%@LN_S@%$LN_S%g
  10824. -s%@DO_COMPAT@%$DO_COMPAT%g
  10825. -s%@LIBOBJS@%$LIBOBJS%g
  10826. -s%@GMOFILES@%$GMOFILES%g
  10827. -s%@MSGFILES@%$MSGFILES%g
  10828. -s%@POFILES@%$POFILES%g
  10829. -s%@MSGFMT@%$MSGFMT%g
  10830. -s%@GMSGFMT@%$GMSGFMT%g
  10831. -s%@XGETTEXT@%$XGETTEXT%g
  10832. -s%@MSGMERGE@%$MSGMERGE%g
  10833. -s%@GENCAT@%$GENCAT%g
  10834. -s%@CATOBJEXT@%$CATOBJEXT%g
  10835. -s%@INSTOBJEXT@%$INSTOBJEXT%g
  10836. -s%@localedir@%$localedir%g
  10837. -s%@CATALOGS@%$CATALOGS%g
  10838. -s%@POSUB@%$POSUB%g
  10839. -s%@LIBINTL@%$LIBINTL%g
  10840. -s%@host@%$host%g
  10841. -s%@host_alias@%$host_alias%g
  10842. -s%@host_cpu@%$host_cpu%g
  10843. -s%@host_vendor@%$host_vendor%g
  10844. -s%@host_os@%$host_os%g
  10845. -s%@LD@%$LD%g
  10846. -s%@PICFLAGS@%$PICFLAGS%g
  10847. -s%@SHLIB_SFX@%$SHLIB_SFX%g
  10848. -s%@SHLINK_SFX@%$SHLINK_SFX%g
  10849. -s%@SONAME_SFX@%$SONAME_SFX%g
  10850. -s%@LINK_SHLIB@%$LINK_SHLIB%g
  10851. -s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
  10852. -s%@DEPSHLIBS@%$DEPSHLIBS%g
  10853. -s%@DO_SHLIB@%$DO_SHLIB%g
  10854. +fi
  10855. -CEOF
  10856. -EOF
  10857. -cat >> $CONFIG_STATUS <<\EOF
  10858. -# Split the substitutions into bite-sized pieces for seds with
  10859. -# small command number limits, like on Digital OSF/1 and HP-UX.
  10860. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  10861. -ac_file=1 # Number of current file.
  10862. -ac_beg=1 # First line for current file.
  10863. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  10864. -ac_more_lines=:
  10865. -ac_sed_cmds=""
  10866. -while $ac_more_lines; do
  10867. - if test $ac_beg -gt 1; then
  10868. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  10869. +
  10870. +# PATH needs CR
  10871. +# Avoid depending upon Character Ranges.
  10872. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10873. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10874. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10875. +as_cr_digits='0123456789'
  10876. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  10877. +
  10878. +# The user is always right.
  10879. +if test "${PATH_SEPARATOR+set}" != set; then
  10880. + echo "#! /bin/sh" >conf$$.sh
  10881. + echo "exit 0" >>conf$$.sh
  10882. + chmod +x conf$$.sh
  10883. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10884. + PATH_SEPARATOR=';'
  10885. else
  10886. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  10887. + PATH_SEPARATOR=:
  10888. fi
  10889. - if test ! -s conftest.s$ac_file; then
  10890. - ac_more_lines=false
  10891. - rm -f conftest.s$ac_file
  10892. + rm -f conf$$.sh
  10893. +fi
  10894. +
  10895. +# Support unset when possible.
  10896. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10897. + as_unset=unset
  10898. +else
  10899. + as_unset=false
  10900. +fi
  10901. +
  10902. +
  10903. +# IFS
  10904. +# We need space, tab and new line, in precisely that order. Quoting is
  10905. +# there to prevent editors from complaining about space-tab.
  10906. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10907. +# splitting by setting IFS to empty value.)
  10908. +as_nl='
  10909. +'
  10910. +IFS=" "" $as_nl"
  10911. +
  10912. +# Find who we are. Look in the path if we contain no directory separator.
  10913. +case $0 in
  10914. + *[\\/]* ) as_myself=$0 ;;
  10915. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10916. +for as_dir in $PATH
  10917. +do
  10918. + IFS=$as_save_IFS
  10919. + test -z "$as_dir" && as_dir=.
  10920. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10921. +done
  10922. +IFS=$as_save_IFS
  10923. +
  10924. + ;;
  10925. +esac
  10926. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  10927. +# in which case we are not to be found in the path.
  10928. +if test "x$as_myself" = x; then
  10929. + as_myself=$0
  10930. +fi
  10931. +if test ! -f "$as_myself"; then
  10932. + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10933. + { (exit 1); exit 1; }
  10934. +fi
  10935. +
  10936. +# Work around bugs in pre-3.0 UWIN ksh.
  10937. +for as_var in ENV MAIL MAILPATH
  10938. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10939. +done
  10940. +PS1='$ '
  10941. +PS2='> '
  10942. +PS4='+ '
  10943. +
  10944. +# NLS nuisances.
  10945. +for as_var in \
  10946. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10947. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10948. + LC_TELEPHONE LC_TIME
  10949. +do
  10950. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10951. + eval $as_var=C; export $as_var
  10952. else
  10953. - if test -z "$ac_sed_cmds"; then
  10954. - ac_sed_cmds="sed -f conftest.s$ac_file"
  10955. - else
  10956. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  10957. - fi
  10958. - ac_file=`expr $ac_file + 1`
  10959. - ac_beg=$ac_end
  10960. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  10961. + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10962. fi
  10963. done
  10964. -if test -z "$ac_sed_cmds"; then
  10965. - ac_sed_cmds=cat
  10966. +
  10967. +# Required to use basename.
  10968. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  10969. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10970. + as_expr=expr
  10971. +else
  10972. + as_expr=false
  10973. fi
  10974. -EOF
  10975. -cat >> $CONFIG_STATUS <<EOF
  10976. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10977. + as_basename=basename
  10978. +else
  10979. + as_basename=false
  10980. +fi
  10981. -CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile po/Makefile libelf.pc"}
  10982. -EOF
  10983. -cat >> $CONFIG_STATUS <<\EOF
  10984. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  10985. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10986. - case "$ac_file" in
  10987. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  10988. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10989. - *) ac_file_in="${ac_file}.in" ;;
  10990. - esac
  10991. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  10992. +# Name of the executable.
  10993. +as_me=`$as_basename -- "$0" ||
  10994. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10995. + X"$0" : 'X\(//\)$' \| \
  10996. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10997. +echo X/"$0" |
  10998. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  10999. + s//\1/
  11000. + q
  11001. + }
  11002. + /^X\/\(\/\/\)$/{
  11003. + s//\1/
  11004. + q
  11005. + }
  11006. + /^X\/\(\/\).*/{
  11007. + s//\1/
  11008. + q
  11009. + }
  11010. + s/.*/./; q'`
  11011. - # Remove last slash and all that follows it. Not all systems have dirname.
  11012. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11013. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11014. - # The file is in a subdirectory.
  11015. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11016. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11017. - # A "../" for each directory in $ac_dir_suffix.
  11018. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11019. +# CDPATH.
  11020. +$as_unset CDPATH
  11021. +
  11022. +
  11023. +
  11024. + as_lineno_1=$LINENO
  11025. + as_lineno_2=$LINENO
  11026. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  11027. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11028. +
  11029. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11030. + # uniformly replaced by the line number. The first 'sed' inserts a
  11031. + # line-number line after each line using $LINENO; the second 'sed'
  11032. + # does the real work. The second script uses 'N' to pair each
  11033. + # line-number line with the line containing $LINENO, and appends
  11034. + # trailing '-' during substitution so that $LINENO is not a special
  11035. + # case at line end.
  11036. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11037. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  11038. + # E. McMahon (1931-1989) for sed's syntax. :-)
  11039. + sed -n '
  11040. + p
  11041. + /[$]LINENO/=
  11042. + ' <$as_myself |
  11043. + sed '
  11044. + s/[$]LINENO.*/&-/
  11045. + t lineno
  11046. + b
  11047. + :lineno
  11048. + N
  11049. + :loop
  11050. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11051. + t loop
  11052. + s/-\n.*//
  11053. + ' >$as_me.lineno &&
  11054. + chmod +x "$as_me.lineno" ||
  11055. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11056. + { (exit 1); exit 1; }; }
  11057. +
  11058. + # Don't try to exec as it changes $[0], causing all sort of problems
  11059. + # (the dirname of $[0] is not the place where we might find the
  11060. + # original and so on. Autoconf is especially sensitive to this).
  11061. + . "./$as_me.lineno"
  11062. + # Exit status is that of the last command.
  11063. + exit
  11064. +}
  11065. +
  11066. +
  11067. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11068. + as_dirname=dirname
  11069. +else
  11070. + as_dirname=false
  11071. +fi
  11072. +
  11073. +ECHO_C= ECHO_N= ECHO_T=
  11074. +case `echo -n x` in
  11075. +-n*)
  11076. + case `echo 'x\c'` in
  11077. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11078. + *) ECHO_C='\c';;
  11079. + esac;;
  11080. +*)
  11081. + ECHO_N='-n';;
  11082. +esac
  11083. +
  11084. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  11085. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11086. + as_expr=expr
  11087. +else
  11088. + as_expr=false
  11089. +fi
  11090. +
  11091. +rm -f conf$$ conf$$.exe conf$$.file
  11092. +if test -d conf$$.dir; then
  11093. + rm -f conf$$.dir/conf$$.file
  11094. +else
  11095. + rm -f conf$$.dir
  11096. + mkdir conf$$.dir
  11097. +fi
  11098. +echo >conf$$.file
  11099. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  11100. + as_ln_s='ln -s'
  11101. + # ... but there are two gotchas:
  11102. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11103. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11104. + # In both cases, we have to default to `cp -p'.
  11105. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11106. + as_ln_s='cp -p'
  11107. +elif ln conf$$.file conf$$ 2>/dev/null; then
  11108. + as_ln_s=ln
  11109. +else
  11110. + as_ln_s='cp -p'
  11111. +fi
  11112. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11113. +rmdir conf$$.dir 2>/dev/null
  11114. +
  11115. +if mkdir -p . 2>/dev/null; then
  11116. + as_mkdir_p=:
  11117. +else
  11118. + test -d ./-p && rmdir ./-p
  11119. + as_mkdir_p=false
  11120. +fi
  11121. +
  11122. +if test -x / >/dev/null 2>&1; then
  11123. + as_test_x='test -x'
  11124. +else
  11125. + if ls -dL / >/dev/null 2>&1; then
  11126. + as_ls_L_option=L
  11127. else
  11128. - ac_dir_suffix= ac_dots=
  11129. + as_ls_L_option=
  11130. fi
  11131. + as_test_x='
  11132. + eval sh -c '\''
  11133. + if test -d "$1"; then
  11134. + test -d "$1/.";
  11135. + else
  11136. + case $1 in
  11137. + -*)set "./$1";;
  11138. + esac;
  11139. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11140. + ???[sx]*):;;*)false;;esac;fi
  11141. + '\'' sh
  11142. + '
  11143. +fi
  11144. +as_executable_p=$as_test_x
  11145. - case "$ac_given_srcdir" in
  11146. - .) srcdir=.
  11147. - if test -z "$ac_dots"; then top_srcdir=.
  11148. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11149. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11150. - *) # Relative path.
  11151. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11152. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11153. +# Sed expression to map a string onto a valid CPP name.
  11154. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11155. +
  11156. +# Sed expression to map a string onto a valid variable name.
  11157. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11158. +
  11159. +
  11160. +exec 6>&1
  11161. +
  11162. +# Save the log message, to keep $[0] and so on meaningful, and to
  11163. +# report actual input values of CONFIG_FILES etc. instead of their
  11164. +# values after options handling.
  11165. +ac_log="
  11166. +This file was extended by $as_me, which was
  11167. +generated by GNU Autoconf 2.61. Invocation command line was
  11168. +
  11169. + CONFIG_FILES = $CONFIG_FILES
  11170. + CONFIG_HEADERS = $CONFIG_HEADERS
  11171. + CONFIG_LINKS = $CONFIG_LINKS
  11172. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  11173. + $ $0 $@
  11174. +
  11175. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11176. +"
  11177. +
  11178. +_ACEOF
  11179. +
  11180. +cat >>$CONFIG_STATUS <<_ACEOF
  11181. +# Files that config.status was made for.
  11182. +config_files="$ac_config_files"
  11183. +config_headers="$ac_config_headers"
  11184. +config_commands="$ac_config_commands"
  11185. +
  11186. +_ACEOF
  11187. +
  11188. +cat >>$CONFIG_STATUS <<\_ACEOF
  11189. +ac_cs_usage="\
  11190. +\`$as_me' instantiates files from templates according to the
  11191. +current configuration.
  11192. +
  11193. +Usage: $0 [OPTIONS] [FILE]...
  11194. +
  11195. + -h, --help print this help, then exit
  11196. + -V, --version print version number and configuration settings, then exit
  11197. + -q, --quiet do not print progress messages
  11198. + -d, --debug don't remove temporary files
  11199. + --recheck update $as_me by reconfiguring in the same conditions
  11200. + --file=FILE[:TEMPLATE]
  11201. + instantiate the configuration file FILE
  11202. + --header=FILE[:TEMPLATE]
  11203. + instantiate the configuration header FILE
  11204. +
  11205. +Configuration files:
  11206. +$config_files
  11207. +
  11208. +Configuration headers:
  11209. +$config_headers
  11210. +
  11211. +Configuration commands:
  11212. +$config_commands
  11213. +
  11214. +Report bugs to <bug-autoconf@gnu.org>."
  11215. +
  11216. +_ACEOF
  11217. +cat >>$CONFIG_STATUS <<_ACEOF
  11218. +ac_cs_version="\\
  11219. +config.status
  11220. +configured by $0, generated by GNU Autoconf 2.61,
  11221. + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11222. +
  11223. +Copyright (C) 2006 Free Software Foundation, Inc.
  11224. +This config.status script is free software; the Free Software Foundation
  11225. +gives unlimited permission to copy, distribute and modify it."
  11226. +
  11227. +ac_pwd='$ac_pwd'
  11228. +srcdir='$srcdir'
  11229. +INSTALL='$INSTALL'
  11230. +_ACEOF
  11231. +
  11232. +cat >>$CONFIG_STATUS <<\_ACEOF
  11233. +# If no file are specified by the user, then we need to provide default
  11234. +# value. By we need to know if files were specified by the user.
  11235. +ac_need_defaults=:
  11236. +while test $# != 0
  11237. +do
  11238. + case $1 in
  11239. + --*=*)
  11240. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11241. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11242. + ac_shift=:
  11243. + ;;
  11244. + *)
  11245. + ac_option=$1
  11246. + ac_optarg=$2
  11247. + ac_shift=shift
  11248. + ;;
  11249. esac
  11250. - case "$ac_given_INSTALL" in
  11251. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11252. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11253. + case $ac_option in
  11254. + # Handling of the options.
  11255. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11256. + ac_cs_recheck=: ;;
  11257. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11258. + echo "$ac_cs_version"; exit ;;
  11259. + --debug | --debu | --deb | --de | --d | -d )
  11260. + debug=: ;;
  11261. + --file | --fil | --fi | --f )
  11262. + $ac_shift
  11263. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11264. + ac_need_defaults=false;;
  11265. + --header | --heade | --head | --hea )
  11266. + $ac_shift
  11267. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11268. + ac_need_defaults=false;;
  11269. + --he | --h)
  11270. + # Conflict between --help and --header
  11271. + { echo "$as_me: error: ambiguous option: $1
  11272. +Try \`$0 --help' for more information." >&2
  11273. + { (exit 1); exit 1; }; };;
  11274. + --help | --hel | -h )
  11275. + echo "$ac_cs_usage"; exit ;;
  11276. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11277. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11278. + ac_cs_silent=: ;;
  11279. +
  11280. + # This is an error.
  11281. + -*) { echo "$as_me: error: unrecognized option: $1
  11282. +Try \`$0 --help' for more information." >&2
  11283. + { (exit 1); exit 1; }; } ;;
  11284. +
  11285. + *) ac_config_targets="$ac_config_targets $1"
  11286. + ac_need_defaults=false ;;
  11287. +
  11288. esac
  11289. + shift
  11290. +done
  11291. - echo creating "$ac_file"
  11292. - rm -f "$ac_file"
  11293. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11294. - case "$ac_file" in
  11295. - *Makefile*) ac_comsub="1i\\
  11296. -# $configure_input" ;;
  11297. - *) ac_comsub= ;;
  11298. +ac_configure_extra_args=
  11299. +
  11300. +if $ac_cs_silent; then
  11301. + exec 6>/dev/null
  11302. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  11303. +fi
  11304. +
  11305. +_ACEOF
  11306. +cat >>$CONFIG_STATUS <<_ACEOF
  11307. +if \$ac_cs_recheck; then
  11308. + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11309. + CONFIG_SHELL=$SHELL
  11310. + export CONFIG_SHELL
  11311. + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11312. +fi
  11313. +
  11314. +_ACEOF
  11315. +cat >>$CONFIG_STATUS <<\_ACEOF
  11316. +exec 5>>config.log
  11317. +{
  11318. + echo
  11319. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11320. +## Running $as_me. ##
  11321. +_ASBOX
  11322. + echo "$ac_log"
  11323. +} >&5
  11324. +
  11325. +_ACEOF
  11326. +cat >>$CONFIG_STATUS <<_ACEOF
  11327. +_ACEOF
  11328. +
  11329. +cat >>$CONFIG_STATUS <<\_ACEOF
  11330. +
  11331. +# Handling of arguments.
  11332. +for ac_config_target in $ac_config_targets
  11333. +do
  11334. + case $ac_config_target in
  11335. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11336. + "lib/sys_elf.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/sys_elf.h" ;;
  11337. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11338. + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  11339. + "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  11340. + "libelf.pc") CONFIG_FILES="$CONFIG_FILES libelf.pc" ;;
  11341. + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  11342. +
  11343. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11344. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11345. + { (exit 1); exit 1; }; };;
  11346. esac
  11347. +done
  11348. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11349. - sed -e "$ac_comsub
  11350. -s%@configure_input@%$configure_input%g
  11351. -s%@srcdir@%$srcdir%g
  11352. -s%@top_srcdir@%$top_srcdir%g
  11353. -s%@INSTALL@%$INSTALL%g
  11354. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11355. -fi; done
  11356. -rm -f conftest.s*
  11357. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11358. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  11359. +# If the user did not use the arguments to specify the items to instantiate,
  11360. +# then the envvar interface is used. Set only those that are not.
  11361. +# We use the long form for the default assignment because of an extremely
  11362. +# bizarre bug on SunOS 4.1.3.
  11363. +if $ac_need_defaults; then
  11364. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11365. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11366. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11367. +fi
  11368. +
  11369. +# Have a temporary directory for convenience. Make it in the build tree
  11370. +# simply because there is no reason against having it here, and in addition,
  11371. +# creating and moving files from /tmp can sometimes cause problems.
  11372. +# Hook for its removal unless debugging.
  11373. +# Note that there is a small window in which the directory will not be cleaned:
  11374. +# after its creation but before its name has been assigned to `$tmp'.
  11375. +$debug ||
  11376. +{
  11377. + tmp=
  11378. + trap 'exit_status=$?
  11379. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11380. +' 0
  11381. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  11382. +}
  11383. +# Create a (secure) tmp directory for tmp files.
  11384. +
  11385. +{
  11386. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11387. + test -n "$tmp" && test -d "$tmp"
  11388. +} ||
  11389. +{
  11390. + tmp=./conf$$-$RANDOM
  11391. + (umask 077 && mkdir "$tmp")
  11392. +} ||
  11393. +{
  11394. + echo "$me: cannot create a temporary directory in ." >&2
  11395. + { (exit 1); exit 1; }
  11396. +}
  11397. +
  11398. +#
  11399. +# Set up the sed scripts for CONFIG_FILES section.
  11400. #
  11401. -# ac_d sets the value in "#define NAME VALUE" lines.
  11402. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11403. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11404. -ac_dC='\3'
  11405. -ac_dD='%g'
  11406. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11407. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11408. -ac_uB='\([ ]\)%\1#\2define\3'
  11409. -ac_uC=' '
  11410. -ac_uD='\4%g'
  11411. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11412. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11413. -ac_eB='$%\1#\2define\3'
  11414. -ac_eC=' '
  11415. -ac_eD='%g'
  11416. -if test "${CONFIG_HEADERS+set}" != set; then
  11417. -EOF
  11418. -cat >> $CONFIG_STATUS <<EOF
  11419. - CONFIG_HEADERS="config.h lib/sys_elf.h"
  11420. -EOF
  11421. -cat >> $CONFIG_STATUS <<\EOF
  11422. +# No need to generate the scripts if there are no CONFIG_FILES.
  11423. +# This happens for instance when ./config.status config.h
  11424. +if test -n "$CONFIG_FILES"; then
  11425. +
  11426. +_ACEOF
  11427. +
  11428. +
  11429. +
  11430. +ac_delim='%!_!# '
  11431. +for ac_last_try in false false false false false :; do
  11432. + cat >conf$$subs.sed <<_ACEOF
  11433. +SHELL!$SHELL$ac_delim
  11434. +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11435. +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11436. +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11437. +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11438. +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11439. +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11440. +exec_prefix!$exec_prefix$ac_delim
  11441. +prefix!$prefix$ac_delim
  11442. +program_transform_name!$program_transform_name$ac_delim
  11443. +bindir!$bindir$ac_delim
  11444. +sbindir!$sbindir$ac_delim
  11445. +libexecdir!$libexecdir$ac_delim
  11446. +datarootdir!$datarootdir$ac_delim
  11447. +datadir!$datadir$ac_delim
  11448. +sysconfdir!$sysconfdir$ac_delim
  11449. +sharedstatedir!$sharedstatedir$ac_delim
  11450. +localstatedir!$localstatedir$ac_delim
  11451. +includedir!$includedir$ac_delim
  11452. +oldincludedir!$oldincludedir$ac_delim
  11453. +docdir!$docdir$ac_delim
  11454. +infodir!$infodir$ac_delim
  11455. +htmldir!$htmldir$ac_delim
  11456. +dvidir!$dvidir$ac_delim
  11457. +pdfdir!$pdfdir$ac_delim
  11458. +psdir!$psdir$ac_delim
  11459. +libdir!$libdir$ac_delim
  11460. +localedir!$localedir$ac_delim
  11461. +mandir!$mandir$ac_delim
  11462. +DEFS!$DEFS$ac_delim
  11463. +ECHO_C!$ECHO_C$ac_delim
  11464. +ECHO_N!$ECHO_N$ac_delim
  11465. +ECHO_T!$ECHO_T$ac_delim
  11466. +LIBS!$LIBS$ac_delim
  11467. +build_alias!$build_alias$ac_delim
  11468. +host_alias!$host_alias$ac_delim
  11469. +target_alias!$target_alias$ac_delim
  11470. +PACKAGE!$PACKAGE$ac_delim
  11471. +VERSION!$VERSION$ac_delim
  11472. +MAINT!$MAINT$ac_delim
  11473. +MAJOR!$MAJOR$ac_delim
  11474. +SET_MAKE!$SET_MAKE$ac_delim
  11475. +CC!$CC$ac_delim
  11476. +CFLAGS!$CFLAGS$ac_delim
  11477. +LDFLAGS!$LDFLAGS$ac_delim
  11478. +CPPFLAGS!$CPPFLAGS$ac_delim
  11479. +ac_ct_CC!$ac_ct_CC$ac_delim
  11480. +EXEEXT!$EXEEXT$ac_delim
  11481. +OBJEXT!$OBJEXT$ac_delim
  11482. +CPP!$CPP$ac_delim
  11483. +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  11484. +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  11485. +INSTALL_DATA!$INSTALL_DATA$ac_delim
  11486. +RANLIB!$RANLIB$ac_delim
  11487. +LN_S!$LN_S$ac_delim
  11488. +GREP!$GREP$ac_delim
  11489. +EGREP!$EGREP$ac_delim
  11490. +DO_COMPAT!$DO_COMPAT$ac_delim
  11491. +LIBOBJS!$LIBOBJS$ac_delim
  11492. +GMOFILES!$GMOFILES$ac_delim
  11493. +MSGFILES!$MSGFILES$ac_delim
  11494. +POFILES!$POFILES$ac_delim
  11495. +MSGFMT!$MSGFMT$ac_delim
  11496. +GMSGFMT!$GMSGFMT$ac_delim
  11497. +XGETTEXT!$XGETTEXT$ac_delim
  11498. +MSGMERGE!$MSGMERGE$ac_delim
  11499. +GENCAT!$GENCAT$ac_delim
  11500. +CATOBJEXT!$CATOBJEXT$ac_delim
  11501. +INSTOBJEXT!$INSTOBJEXT$ac_delim
  11502. +CATALOGS!$CATALOGS$ac_delim
  11503. +POSUB!$POSUB$ac_delim
  11504. +LIBINTL!$LIBINTL$ac_delim
  11505. +build!$build$ac_delim
  11506. +build_cpu!$build_cpu$ac_delim
  11507. +build_vendor!$build_vendor$ac_delim
  11508. +build_os!$build_os$ac_delim
  11509. +host!$host$ac_delim
  11510. +host_cpu!$host_cpu$ac_delim
  11511. +host_vendor!$host_vendor$ac_delim
  11512. +host_os!$host_os$ac_delim
  11513. +LD!$LD$ac_delim
  11514. +PICFLAGS!$PICFLAGS$ac_delim
  11515. +SHLIB_SFX!$SHLIB_SFX$ac_delim
  11516. +SHLINK_SFX!$SHLINK_SFX$ac_delim
  11517. +SONAME_SFX!$SONAME_SFX$ac_delim
  11518. +LINK_SHLIB!$LINK_SHLIB$ac_delim
  11519. +INSTALL_SHLIB!$INSTALL_SHLIB$ac_delim
  11520. +DEPSHLIBS!$DEPSHLIBS$ac_delim
  11521. +DO_SHLIB!$DO_SHLIB$ac_delim
  11522. +LTLIBOBJS!$LTLIBOBJS$ac_delim
  11523. +_ACEOF
  11524. +
  11525. + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
  11526. + break
  11527. + elif $ac_last_try; then
  11528. + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11529. +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11530. + { (exit 1); exit 1; }; }
  11531. + else
  11532. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11533. + fi
  11534. +done
  11535. +
  11536. +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11537. +if test -n "$ac_eof"; then
  11538. + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11539. + ac_eof=`expr $ac_eof + 1`
  11540. fi
  11541. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11542. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11543. - case "$ac_file" in
  11544. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11545. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11546. - *) ac_file_in="${ac_file}.in" ;;
  11547. +
  11548. +cat >>$CONFIG_STATUS <<_ACEOF
  11549. +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11550. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11551. +_ACEOF
  11552. +sed '
  11553. +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11554. +s/^/s,@/; s/!/@,|#_!!_#|/
  11555. +:n
  11556. +t n
  11557. +s/'"$ac_delim"'$/,g/; t
  11558. +s/$/\\/; p
  11559. +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11560. +' >>$CONFIG_STATUS <conf$$subs.sed
  11561. +rm -f conf$$subs.sed
  11562. +cat >>$CONFIG_STATUS <<_ACEOF
  11563. +:end
  11564. +s/|#_!!_#|//g
  11565. +CEOF$ac_eof
  11566. +_ACEOF
  11567. +
  11568. +
  11569. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  11570. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11571. +# trailing colons and then remove the whole line if VPATH becomes empty
  11572. +# (actually we leave an empty line to preserve line numbers).
  11573. +if test "x$srcdir" = x.; then
  11574. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11575. +s/:*\$(srcdir):*/:/
  11576. +s/:*\${srcdir}:*/:/
  11577. +s/:*@srcdir@:*/:/
  11578. +s/^\([^=]*=[ ]*\):*/\1/
  11579. +s/:*$//
  11580. +s/^[^=]*=[ ]*$//
  11581. +}'
  11582. +fi
  11583. +
  11584. +cat >>$CONFIG_STATUS <<\_ACEOF
  11585. +fi # test -n "$CONFIG_FILES"
  11586. +
  11587. +
  11588. +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  11589. +do
  11590. + case $ac_tag in
  11591. + :[FHLC]) ac_mode=$ac_tag; continue;;
  11592. + esac
  11593. + case $ac_mode$ac_tag in
  11594. + :[FHL]*:*);;
  11595. + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11596. +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11597. + { (exit 1); exit 1; }; };;
  11598. + :[FH]-) ac_tag=-:-;;
  11599. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11600. esac
  11601. + ac_save_IFS=$IFS
  11602. + IFS=:
  11603. + set x $ac_tag
  11604. + IFS=$ac_save_IFS
  11605. + shift
  11606. + ac_file=$1
  11607. + shift
  11608. - echo creating $ac_file
  11609. + case $ac_mode in
  11610. + :L) ac_source=$1;;
  11611. + :[FH])
  11612. + ac_file_inputs=
  11613. + for ac_f
  11614. + do
  11615. + case $ac_f in
  11616. + -) ac_f="$tmp/stdin";;
  11617. + *) # Look for the file first in the build tree, then in the source tree
  11618. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  11619. + # because $ac_f cannot contain `:'.
  11620. + test -f "$ac_f" ||
  11621. + case $ac_f in
  11622. + [\\/$]*) false;;
  11623. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11624. + esac ||
  11625. + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11626. +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11627. + { (exit 1); exit 1; }; };;
  11628. + esac
  11629. + ac_file_inputs="$ac_file_inputs $ac_f"
  11630. + done
  11631. - rm -f conftest.frag conftest.in conftest.out
  11632. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11633. - cat $ac_file_inputs > conftest.in
  11634. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  11635. + # use $as_me), people would be surprised to read:
  11636. + # /* config.h. Generated by config.status. */
  11637. + configure_input="Generated from "`IFS=:
  11638. + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11639. + if test x"$ac_file" != x-; then
  11640. + configure_input="$ac_file. $configure_input"
  11641. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  11642. +echo "$as_me: creating $ac_file" >&6;}
  11643. + fi
  11644. -EOF
  11645. + case $ac_tag in
  11646. + *:-:* | *:-) cat >"$tmp/stdin";;
  11647. + esac
  11648. + ;;
  11649. + esac
  11650. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  11651. -# the proper values into config.h.in to produce config.h. And first:
  11652. -# Protect against being on the right side of a sed subst in config.status.
  11653. -# Protect against being in an unquoted here document in config.status.
  11654. -rm -f conftest.vals
  11655. -cat > conftest.hdr <<\EOF
  11656. -s/[\\&%]/\\&/g
  11657. -s%[\\$`]%\\&%g
  11658. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11659. -s%ac_d%ac_u%gp
  11660. -s%ac_u%ac_e%gp
  11661. -EOF
  11662. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  11663. -rm -f conftest.hdr
  11664. + ac_dir=`$as_dirname -- "$ac_file" ||
  11665. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11666. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11667. + X"$ac_file" : 'X\(//\)$' \| \
  11668. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11669. +echo X"$ac_file" |
  11670. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11671. + s//\1/
  11672. + q
  11673. + }
  11674. + /^X\(\/\/\)[^/].*/{
  11675. + s//\1/
  11676. + q
  11677. + }
  11678. + /^X\(\/\/\)$/{
  11679. + s//\1/
  11680. + q
  11681. + }
  11682. + /^X\(\/\).*/{
  11683. + s//\1/
  11684. + q
  11685. + }
  11686. + s/.*/./; q'`
  11687. + { as_dir="$ac_dir"
  11688. + case $as_dir in #(
  11689. + -*) as_dir=./$as_dir;;
  11690. + esac
  11691. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11692. + as_dirs=
  11693. + while :; do
  11694. + case $as_dir in #(
  11695. + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11696. + *) as_qdir=$as_dir;;
  11697. + esac
  11698. + as_dirs="'$as_qdir' $as_dirs"
  11699. + as_dir=`$as_dirname -- "$as_dir" ||
  11700. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11701. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11702. + X"$as_dir" : 'X\(//\)$' \| \
  11703. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11704. +echo X"$as_dir" |
  11705. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11706. + s//\1/
  11707. + q
  11708. + }
  11709. + /^X\(\/\/\)[^/].*/{
  11710. + s//\1/
  11711. + q
  11712. + }
  11713. + /^X\(\/\/\)$/{
  11714. + s//\1/
  11715. + q
  11716. + }
  11717. + /^X\(\/\).*/{
  11718. + s//\1/
  11719. + q
  11720. + }
  11721. + s/.*/./; q'`
  11722. + test -d "$as_dir" && break
  11723. + done
  11724. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  11725. + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11726. +echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11727. + { (exit 1); exit 1; }; }; }
  11728. + ac_builddir=.
  11729. -# This sed command replaces #undef with comments. This is necessary, for
  11730. +case "$ac_dir" in
  11731. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11732. +*)
  11733. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11734. + # A ".." for each directory in $ac_dir_suffix.
  11735. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11736. + case $ac_top_builddir_sub in
  11737. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11738. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11739. + esac ;;
  11740. +esac
  11741. +ac_abs_top_builddir=$ac_pwd
  11742. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11743. +# for backward compatibility:
  11744. +ac_top_builddir=$ac_top_build_prefix
  11745. +
  11746. +case $srcdir in
  11747. + .) # We are building in place.
  11748. + ac_srcdir=.
  11749. + ac_top_srcdir=$ac_top_builddir_sub
  11750. + ac_abs_top_srcdir=$ac_pwd ;;
  11751. + [\\/]* | ?:[\\/]* ) # Absolute name.
  11752. + ac_srcdir=$srcdir$ac_dir_suffix;
  11753. + ac_top_srcdir=$srcdir
  11754. + ac_abs_top_srcdir=$srcdir ;;
  11755. + *) # Relative name.
  11756. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11757. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  11758. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11759. +esac
  11760. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11761. +
  11762. +
  11763. + case $ac_mode in
  11764. + :F)
  11765. + #
  11766. + # CONFIG_FILE
  11767. + #
  11768. +
  11769. + case $INSTALL in
  11770. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11771. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11772. + esac
  11773. +_ACEOF
  11774. +
  11775. +cat >>$CONFIG_STATUS <<\_ACEOF
  11776. +# If the template does not know about datarootdir, expand it.
  11777. +# FIXME: This hack should be removed a few years after 2.60.
  11778. +ac_datarootdir_hack=; ac_datarootdir_seen=
  11779. +
  11780. +case `sed -n '/datarootdir/ {
  11781. + p
  11782. + q
  11783. +}
  11784. +/@datadir@/p
  11785. +/@docdir@/p
  11786. +/@infodir@/p
  11787. +/@localedir@/p
  11788. +/@mandir@/p
  11789. +' $ac_file_inputs` in
  11790. +*datarootdir*) ac_datarootdir_seen=yes;;
  11791. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11792. + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11793. +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11794. +_ACEOF
  11795. +cat >>$CONFIG_STATUS <<_ACEOF
  11796. + ac_datarootdir_hack='
  11797. + s&@datadir@&$datadir&g
  11798. + s&@docdir@&$docdir&g
  11799. + s&@infodir@&$infodir&g
  11800. + s&@localedir@&$localedir&g
  11801. + s&@mandir@&$mandir&g
  11802. + s&\\\${datarootdir}&$datarootdir&g' ;;
  11803. +esac
  11804. +_ACEOF
  11805. +
  11806. +# Neutralize VPATH when `$srcdir' = `.'.
  11807. +# Shell code in configure.ac might set extrasub.
  11808. +# FIXME: do we really want to maintain this feature?
  11809. +cat >>$CONFIG_STATUS <<_ACEOF
  11810. + sed "$ac_vpsub
  11811. +$extrasub
  11812. +_ACEOF
  11813. +cat >>$CONFIG_STATUS <<\_ACEOF
  11814. +:t
  11815. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11816. +s&@configure_input@&$configure_input&;t t
  11817. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  11818. +s&@srcdir@&$ac_srcdir&;t t
  11819. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11820. +s&@top_srcdir@&$ac_top_srcdir&;t t
  11821. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11822. +s&@builddir@&$ac_builddir&;t t
  11823. +s&@abs_builddir@&$ac_abs_builddir&;t t
  11824. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11825. +s&@INSTALL@&$ac_INSTALL&;t t
  11826. +$ac_datarootdir_hack
  11827. +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  11828. +
  11829. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11830. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11831. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11832. + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11833. +which seems to be undefined. Please make sure it is defined." >&5
  11834. +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11835. +which seems to be undefined. Please make sure it is defined." >&2;}
  11836. +
  11837. + rm -f "$tmp/stdin"
  11838. + case $ac_file in
  11839. + -) cat "$tmp/out"; rm -f "$tmp/out";;
  11840. + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  11841. + esac
  11842. + ;;
  11843. + :H)
  11844. + #
  11845. + # CONFIG_HEADER
  11846. + #
  11847. +_ACEOF
  11848. +
  11849. +# Transform confdefs.h into a sed script `conftest.defines', that
  11850. +# substitutes the proper values into config.h.in to produce config.h.
  11851. +rm -f conftest.defines conftest.tail
  11852. +# First, append a space to every undef/define line, to ease matching.
  11853. +echo 's/$/ /' >conftest.defines
  11854. +# Then, protect against being on the right side of a sed subst, or in
  11855. +# an unquoted here document, in config.status. If some macros were
  11856. +# called several times there might be several #defines for the same
  11857. +# symbol, which is useless. But do not sort them, since the last
  11858. +# AC_DEFINE must be honored.
  11859. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11860. +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  11861. +# NAME is the cpp macro being defined, VALUE is the value it is being given.
  11862. +# PARAMS is the parameter list in the macro definition--in most cases, it's
  11863. +# just an empty string.
  11864. +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  11865. +ac_dB='\\)[ (].*,\\1define\\2'
  11866. +ac_dC=' '
  11867. +ac_dD=' ,'
  11868. +
  11869. +uniq confdefs.h |
  11870. + sed -n '
  11871. + t rset
  11872. + :rset
  11873. + s/^[ ]*#[ ]*define[ ][ ]*//
  11874. + t ok
  11875. + d
  11876. + :ok
  11877. + s/[\\&,]/\\&/g
  11878. + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  11879. + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  11880. + ' >>conftest.defines
  11881. +
  11882. +# Remove the space that was appended to ease matching.
  11883. +# Then replace #undef with comments. This is necessary, for
  11884. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11885. # on some systems where configure will not decide to define it.
  11886. -cat >> conftest.vals <<\EOF
  11887. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11888. -EOF
  11889. +# (The regexp can be short, since the line contains either #define or #undef.)
  11890. +echo 's/ $//
  11891. +s,^[ #]*u.*,/* & */,' >>conftest.defines
  11892. -# Break up conftest.vals because some shells have a limit on
  11893. -# the size of here documents, and old seds have small limits too.
  11894. +# Break up conftest.defines:
  11895. +ac_max_sed_lines=50
  11896. +
  11897. +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  11898. +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  11899. +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  11900. +# et cetera.
  11901. +ac_in='$ac_file_inputs'
  11902. +ac_out='"$tmp/out1"'
  11903. +ac_nxt='"$tmp/out2"'
  11904. -rm -f conftest.tail
  11905. while :
  11906. do
  11907. - ac_lines=`grep -c . conftest.vals`
  11908. - # grep -c gives empty output for an empty file on some AIX systems.
  11909. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11910. - # Write a limited-size here document to conftest.frag.
  11911. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11912. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11913. + # Write a here document:
  11914. + cat >>$CONFIG_STATUS <<_ACEOF
  11915. + # First, check the format of the line:
  11916. + cat >"\$tmp/defines.sed" <<\\CEOF
  11917. +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  11918. +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  11919. +b
  11920. +:def
  11921. +_ACEOF
  11922. + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  11923. echo 'CEOF
  11924. - sed -f conftest.frag conftest.in > conftest.out
  11925. - rm -f conftest.in
  11926. - mv conftest.out conftest.in
  11927. -' >> $CONFIG_STATUS
  11928. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11929. - rm -f conftest.vals
  11930. - mv conftest.tail conftest.vals
  11931. + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  11932. + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  11933. + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  11934. + grep . conftest.tail >/dev/null || break
  11935. + rm -f conftest.defines
  11936. + mv conftest.tail conftest.defines
  11937. done
  11938. -rm -f conftest.vals
  11939. +rm -f conftest.defines conftest.tail
  11940. -cat >> $CONFIG_STATUS <<\EOF
  11941. - rm -f conftest.frag conftest.h
  11942. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11943. - cat conftest.in >> conftest.h
  11944. - rm -f conftest.in
  11945. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  11946. - echo "$ac_file is unchanged"
  11947. - rm -f conftest.h
  11948. - else
  11949. - # Remove last slash and all that follows it. Not all systems have dirname.
  11950. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11951. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11952. - # The file is in a subdirectory.
  11953. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11954. +echo "ac_result=$ac_in" >>$CONFIG_STATUS
  11955. +cat >>$CONFIG_STATUS <<\_ACEOF
  11956. + if test x"$ac_file" != x-; then
  11957. + echo "/* $configure_input */" >"$tmp/config.h"
  11958. + cat "$ac_result" >>"$tmp/config.h"
  11959. + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  11960. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11961. +echo "$as_me: $ac_file is unchanged" >&6;}
  11962. + else
  11963. + rm -f $ac_file
  11964. + mv "$tmp/config.h" $ac_file
  11965. fi
  11966. - rm -f $ac_file
  11967. - mv conftest.h $ac_file
  11968. + else
  11969. + echo "/* $configure_input */"
  11970. + cat "$ac_result"
  11971. fi
  11972. -fi; done
  11973. + rm -f "$tmp/out12"
  11974. + ;;
  11975. -EOF
  11976. -cat >> $CONFIG_STATUS <<EOF
  11977. + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  11978. +echo "$as_me: executing $ac_file commands" >&6;}
  11979. + ;;
  11980. + esac
  11981. -EOF
  11982. -cat >> $CONFIG_STATUS <<\EOF
  11983. -echo timestamp > stamp-h; echo timestamp > lib/stamp-h
  11984. -exit 0
  11985. -EOF
  11986. +
  11987. + case $ac_file$ac_mode in
  11988. + "default":C) echo timestamp > stamp-h; echo timestamp > lib/stamp-h ;;
  11989. +
  11990. + esac
  11991. +done # for ac_tag
  11992. +
  11993. +
  11994. +{ (exit 0); exit 0; }
  11995. +_ACEOF
  11996. chmod +x $CONFIG_STATUS
  11997. -rm -fr confdefs* $ac_clean_files
  11998. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11999. +ac_clean_files=$ac_clean_files_save
  12000. +
  12001. +
  12002. +# configure is writing to config.log, and then calls config.status.
  12003. +# config.status does its own redirection, appending to config.log.
  12004. +# Unfortunately, on DOS this fails, as config.log is still kept open
  12005. +# by configure, so config.status won't be able to write to it; its
  12006. +# output is simply discarded. So we exec the FD to /dev/null,
  12007. +# effectively closing config.log, so it can be properly (re)opened and
  12008. +# appended to by config.status. When coming back to configure, we
  12009. +# need to make the FD available again.
  12010. +if test "$no_create" != yes; then
  12011. + ac_cs_success=:
  12012. + ac_config_status_args=
  12013. + test "$silent" = yes &&
  12014. + ac_config_status_args="$ac_config_status_args --quiet"
  12015. + exec 5>/dev/null
  12016. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12017. + exec 5>>config.log
  12018. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12019. + # would make configure fail if this is the last instruction.
  12020. + $ac_cs_success || { (exit 1); exit 1; }
  12021. +fi
  12022. # vi: set ts=8 sw=2 :
  12023. diff -rdup libelf-0.8.10.orig/configure.in libelf-0.8.10/configure.in
  12024. --- libelf-0.8.10.orig/configure.in 2007-09-07 14:07:59.000000000 +0200
  12025. +++ libelf-0.8.10/configure.in 2007-09-20 10:31:42.000000000 +0200
  12026. @@ -148,20 +148,25 @@ if test "$ac_cv_header_elf_h" = yes \
  12027. [libelf_cv_struct_elf64_rel=irix],
  12028. [libelf_cv_struct_elf64_rel=no])))
  12029. - case "$libelf_cv_struct_elf64_ehdr:\
  12030. + AC_CACHE_CHECK([for 64bit support], libelf_64bit,
  12031. + [case "$libelf_cv_struct_elf64_ehdr:\
  12032. $libelf_cv_type_elf64_addr:\
  12033. $libelf_cv_struct_elf64_rel" in
  12034. yes:yes:yes)
  12035. libelf_64bit=yes;;
  12036. yes:yes:irix)
  12037. - AC_DEFINE(__LIBELF64_IRIX)
  12038. - libelf_64bit=yes;;
  12039. + libelf_64bit=irix;;
  12040. yes:no:yes)
  12041. - AC_DEFINE(__LIBELF64_LINUX)
  12042. - libelf_64bit=yes;;
  12043. + libelf_64bit=linux;;
  12044. *)
  12045. libelf_64bit=no;;
  12046. esac
  12047. + ])
  12048. + case $libelf_64bit in
  12049. + yes) ;;
  12050. + linux) AC_DEFINE(__LIBELF64_LINUX) ;;
  12051. + irix) AC_DEFINE(__LIBELF64_IRIX) ;;
  12052. + esac
  12053. # Check for symbol versioning definitions
  12054. AC_CACHE_CHECK([for Elf32_Verdef], libelf_cv_verdef32,