configure 374 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.3.1.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.3.1'
  239. PACKAGE_STRING='aria2c 0.3.1'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS ALLOCA CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.3.1 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.3.1:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --disable-dependency-tracking speeds up one-time build
  756. --enable-dependency-tracking do not reject slow dependency extractors
  757. --disable-nls do not use Native Language Support
  758. --disable-rpath do not hardcode runtime library paths
  759. Optional Packages:
  760. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  761. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  762. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  763. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  764. --with-gnutls use gnutls library if installed. Default: yes
  765. --with-openssl use openssl library if installed. Default: yes
  766. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  767. --with-libgcrypt-prefix=PFX
  768. prefix where LIBGCRYPT is installed (optional)
  769. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  770. --with-gnu-ld assume the C compiler uses GNU ld default=no
  771. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  772. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  773. --with-included-gettext use the GNU gettext library included here
  774. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  775. --without-libintl-prefix don't search for libintl in includedir and libdir
  776. Some influential environment variables:
  777. CXX C++ compiler command
  778. CXXFLAGS C++ compiler flags
  779. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  780. nonstandard directory <lib dir>
  781. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  782. headers in a nonstandard directory <include dir>
  783. CC C compiler command
  784. CFLAGS C compiler flags
  785. CPP C preprocessor
  786. Use these variables to override the choices made by `configure' or to help
  787. it to find libraries and programs with nonstandard names/locations.
  788. Report bugs to <tujikawa@rednoah.com>.
  789. _ACEOF
  790. fi
  791. if test "$ac_init_help" = "recursive"; then
  792. # If there are subdirs, report their specific --help.
  793. ac_popdir=`pwd`
  794. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  795. test -d $ac_dir || continue
  796. ac_builddir=.
  797. if test "$ac_dir" != .; then
  798. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  799. # A "../" for each directory in $ac_dir_suffix.
  800. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  801. else
  802. ac_dir_suffix= ac_top_builddir=
  803. fi
  804. case $srcdir in
  805. .) # No --srcdir option. We are building in place.
  806. ac_srcdir=.
  807. if test -z "$ac_top_builddir"; then
  808. ac_top_srcdir=.
  809. else
  810. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  811. fi ;;
  812. [\\/]* | ?:[\\/]* ) # Absolute path.
  813. ac_srcdir=$srcdir$ac_dir_suffix;
  814. ac_top_srcdir=$srcdir ;;
  815. *) # Relative path.
  816. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  817. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  818. esac
  819. # Do not use `cd foo && pwd` to compute absolute paths, because
  820. # the directories may not exist.
  821. case `pwd` in
  822. .) ac_abs_builddir="$ac_dir";;
  823. *)
  824. case "$ac_dir" in
  825. .) ac_abs_builddir=`pwd`;;
  826. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  827. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  828. esac;;
  829. esac
  830. case $ac_abs_builddir in
  831. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  832. *)
  833. case ${ac_top_builddir}. in
  834. .) ac_abs_top_builddir=$ac_abs_builddir;;
  835. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  836. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  837. esac;;
  838. esac
  839. case $ac_abs_builddir in
  840. .) ac_abs_srcdir=$ac_srcdir;;
  841. *)
  842. case $ac_srcdir in
  843. .) ac_abs_srcdir=$ac_abs_builddir;;
  844. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  845. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  846. esac;;
  847. esac
  848. case $ac_abs_builddir in
  849. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  850. *)
  851. case $ac_top_srcdir in
  852. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  853. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  854. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  855. esac;;
  856. esac
  857. cd $ac_dir
  858. # Check for guested configure; otherwise get Cygnus style configure.
  859. if test -f $ac_srcdir/configure.gnu; then
  860. echo
  861. $SHELL $ac_srcdir/configure.gnu --help=recursive
  862. elif test -f $ac_srcdir/configure; then
  863. echo
  864. $SHELL $ac_srcdir/configure --help=recursive
  865. elif test -f $ac_srcdir/configure.ac ||
  866. test -f $ac_srcdir/configure.in; then
  867. echo
  868. $ac_configure --help
  869. else
  870. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  871. fi
  872. cd "$ac_popdir"
  873. done
  874. fi
  875. test -n "$ac_init_help" && exit 0
  876. if $ac_init_version; then
  877. cat <<\_ACEOF
  878. aria2c configure 0.3.1
  879. generated by GNU Autoconf 2.59
  880. Copyright (C) 2003 Free Software Foundation, Inc.
  881. This configure script is free software; the Free Software Foundation
  882. gives unlimited permission to copy, distribute and modify it.
  883. _ACEOF
  884. exit 0
  885. fi
  886. exec 5>config.log
  887. cat >&5 <<_ACEOF
  888. This file contains any messages produced by compilers while
  889. running configure, to aid debugging if configure makes a mistake.
  890. It was created by aria2c $as_me 0.3.1, which was
  891. generated by GNU Autoconf 2.59. Invocation command line was
  892. $ $0 $@
  893. _ACEOF
  894. {
  895. cat <<_ASUNAME
  896. ## --------- ##
  897. ## Platform. ##
  898. ## --------- ##
  899. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  900. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  901. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  902. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  903. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  904. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  905. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  906. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  907. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  908. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  909. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  910. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  911. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  912. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  913. _ASUNAME
  914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  915. for as_dir in $PATH
  916. do
  917. IFS=$as_save_IFS
  918. test -z "$as_dir" && as_dir=.
  919. echo "PATH: $as_dir"
  920. done
  921. } >&5
  922. cat >&5 <<_ACEOF
  923. ## ----------- ##
  924. ## Core tests. ##
  925. ## ----------- ##
  926. _ACEOF
  927. # Keep a trace of the command line.
  928. # Strip out --no-create and --no-recursion so they do not pile up.
  929. # Strip out --silent because we don't want to record it for future runs.
  930. # Also quote any args containing shell meta-characters.
  931. # Make two passes to allow for proper duplicate-argument suppression.
  932. ac_configure_args=
  933. ac_configure_args0=
  934. ac_configure_args1=
  935. ac_sep=
  936. ac_must_keep_next=false
  937. for ac_pass in 1 2
  938. do
  939. for ac_arg
  940. do
  941. case $ac_arg in
  942. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  943. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  944. | -silent | --silent | --silen | --sile | --sil)
  945. continue ;;
  946. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  947. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  948. esac
  949. case $ac_pass in
  950. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  951. 2)
  952. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  953. if test $ac_must_keep_next = true; then
  954. ac_must_keep_next=false # Got value, back to normal.
  955. else
  956. case $ac_arg in
  957. *=* | --config-cache | -C | -disable-* | --disable-* \
  958. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  959. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  960. | -with-* | --with-* | -without-* | --without-* | --x)
  961. case "$ac_configure_args0 " in
  962. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  963. esac
  964. ;;
  965. -* ) ac_must_keep_next=true ;;
  966. esac
  967. fi
  968. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  969. # Get rid of the leading space.
  970. ac_sep=" "
  971. ;;
  972. esac
  973. done
  974. done
  975. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  976. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  977. # When interrupted or exit'd, cleanup temporary files, and complete
  978. # config.log. We remove comments because anyway the quotes in there
  979. # would cause problems or look ugly.
  980. # WARNING: Be sure not to use single quotes in there, as some shells,
  981. # such as our DU 5.0 friend, will then `close' the trap.
  982. trap 'exit_status=$?
  983. # Save into config.log some information that might help in debugging.
  984. {
  985. echo
  986. cat <<\_ASBOX
  987. ## ---------------- ##
  988. ## Cache variables. ##
  989. ## ---------------- ##
  990. _ASBOX
  991. echo
  992. # The following way of writing the cache mishandles newlines in values,
  993. {
  994. (set) 2>&1 |
  995. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  996. *ac_space=\ *)
  997. sed -n \
  998. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  999. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1000. ;;
  1001. *)
  1002. sed -n \
  1003. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1004. ;;
  1005. esac;
  1006. }
  1007. echo
  1008. cat <<\_ASBOX
  1009. ## ----------------- ##
  1010. ## Output variables. ##
  1011. ## ----------------- ##
  1012. _ASBOX
  1013. echo
  1014. for ac_var in $ac_subst_vars
  1015. do
  1016. eval ac_val=$`echo $ac_var`
  1017. echo "$ac_var='"'"'$ac_val'"'"'"
  1018. done | sort
  1019. echo
  1020. if test -n "$ac_subst_files"; then
  1021. cat <<\_ASBOX
  1022. ## ------------- ##
  1023. ## Output files. ##
  1024. ## ------------- ##
  1025. _ASBOX
  1026. echo
  1027. for ac_var in $ac_subst_files
  1028. do
  1029. eval ac_val=$`echo $ac_var`
  1030. echo "$ac_var='"'"'$ac_val'"'"'"
  1031. done | sort
  1032. echo
  1033. fi
  1034. if test -s confdefs.h; then
  1035. cat <<\_ASBOX
  1036. ## ----------- ##
  1037. ## confdefs.h. ##
  1038. ## ----------- ##
  1039. _ASBOX
  1040. echo
  1041. sed "/^$/d" confdefs.h | sort
  1042. echo
  1043. fi
  1044. test "$ac_signal" != 0 &&
  1045. echo "$as_me: caught signal $ac_signal"
  1046. echo "$as_me: exit $exit_status"
  1047. } >&5
  1048. rm -f core *.core &&
  1049. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1050. exit $exit_status
  1051. ' 0
  1052. for ac_signal in 1 2 13 15; do
  1053. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1054. done
  1055. ac_signal=0
  1056. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1057. rm -rf conftest* confdefs.h
  1058. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1059. echo >confdefs.h
  1060. # Predefined preprocessor variables.
  1061. cat >>confdefs.h <<_ACEOF
  1062. #define PACKAGE_NAME "$PACKAGE_NAME"
  1063. _ACEOF
  1064. cat >>confdefs.h <<_ACEOF
  1065. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1066. _ACEOF
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1069. _ACEOF
  1070. cat >>confdefs.h <<_ACEOF
  1071. #define PACKAGE_STRING "$PACKAGE_STRING"
  1072. _ACEOF
  1073. cat >>confdefs.h <<_ACEOF
  1074. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1075. _ACEOF
  1076. # Let the site file select an alternate cache file if it wants to.
  1077. # Prefer explicitly selected file to automatically selected ones.
  1078. if test -z "$CONFIG_SITE"; then
  1079. if test "x$prefix" != xNONE; then
  1080. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1081. else
  1082. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1083. fi
  1084. fi
  1085. for ac_site_file in $CONFIG_SITE; do
  1086. if test -r "$ac_site_file"; then
  1087. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1088. echo "$as_me: loading site script $ac_site_file" >&6;}
  1089. sed 's/^/| /' "$ac_site_file" >&5
  1090. . "$ac_site_file"
  1091. fi
  1092. done
  1093. if test -r "$cache_file"; then
  1094. # Some versions of bash will fail to source /dev/null (special
  1095. # files actually), so we avoid doing that.
  1096. if test -f "$cache_file"; then
  1097. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1098. echo "$as_me: loading cache $cache_file" >&6;}
  1099. case $cache_file in
  1100. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1101. *) . ./$cache_file;;
  1102. esac
  1103. fi
  1104. else
  1105. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1106. echo "$as_me: creating cache $cache_file" >&6;}
  1107. >$cache_file
  1108. fi
  1109. # Check that the precious variables saved in the cache have kept the same
  1110. # value.
  1111. ac_cache_corrupted=false
  1112. for ac_var in `(set) 2>&1 |
  1113. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1114. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1115. eval ac_new_set=\$ac_env_${ac_var}_set
  1116. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1117. eval ac_new_val="\$ac_env_${ac_var}_value"
  1118. case $ac_old_set,$ac_new_set in
  1119. set,)
  1120. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1121. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1122. ac_cache_corrupted=: ;;
  1123. ,set)
  1124. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1125. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1126. ac_cache_corrupted=: ;;
  1127. ,);;
  1128. *)
  1129. if test "x$ac_old_val" != "x$ac_new_val"; then
  1130. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1131. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1132. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1133. echo "$as_me: former value: $ac_old_val" >&2;}
  1134. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1135. echo "$as_me: current value: $ac_new_val" >&2;}
  1136. ac_cache_corrupted=:
  1137. fi;;
  1138. esac
  1139. # Pass precious variables to config.status.
  1140. if test "$ac_new_set" = set; then
  1141. case $ac_new_val in
  1142. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1143. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1144. *) ac_arg=$ac_var=$ac_new_val ;;
  1145. esac
  1146. case " $ac_configure_args " in
  1147. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1148. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1149. esac
  1150. fi
  1151. done
  1152. if $ac_cache_corrupted; then
  1153. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1154. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1155. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1156. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1157. { (exit 1); exit 1; }; }
  1158. fi
  1159. ac_ext=c
  1160. ac_cpp='$CPP $CPPFLAGS'
  1161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1164. am__api_version="1.9"
  1165. ac_aux_dir=
  1166. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1167. if test -f $ac_dir/install-sh; then
  1168. ac_aux_dir=$ac_dir
  1169. ac_install_sh="$ac_aux_dir/install-sh -c"
  1170. break
  1171. elif test -f $ac_dir/install.sh; then
  1172. ac_aux_dir=$ac_dir
  1173. ac_install_sh="$ac_aux_dir/install.sh -c"
  1174. break
  1175. elif test -f $ac_dir/shtool; then
  1176. ac_aux_dir=$ac_dir
  1177. ac_install_sh="$ac_aux_dir/shtool install -c"
  1178. break
  1179. fi
  1180. done
  1181. if test -z "$ac_aux_dir"; then
  1182. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1183. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1184. { (exit 1); exit 1; }; }
  1185. fi
  1186. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1187. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1188. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1189. # Find a good install program. We prefer a C program (faster),
  1190. # so one script is as good as another. But avoid the broken or
  1191. # incompatible versions:
  1192. # SysV /etc/install, /usr/sbin/install
  1193. # SunOS /usr/etc/install
  1194. # IRIX /sbin/install
  1195. # AIX /bin/install
  1196. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1197. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1198. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1199. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1200. # OS/2's system install, which has a completely different semantic
  1201. # ./install, which can be erroneously created by make from ./install.sh.
  1202. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1203. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1204. if test -z "$INSTALL"; then
  1205. if test "${ac_cv_path_install+set}" = set; then
  1206. echo $ECHO_N "(cached) $ECHO_C" >&6
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. # Account for people who put trailing slashes in PATH elements.
  1214. case $as_dir/ in
  1215. ./ | .// | /cC/* | \
  1216. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1217. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1218. /usr/ucb/* ) ;;
  1219. *)
  1220. # OSF1 and SCO ODT 3.0 have their own names for install.
  1221. # Don't use installbsd from OSF since it installs stuff as root
  1222. # by default.
  1223. for ac_prog in ginstall scoinst install; do
  1224. for ac_exec_ext in '' $ac_executable_extensions; do
  1225. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1226. if test $ac_prog = install &&
  1227. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1228. # AIX install. It has an incompatible calling convention.
  1229. :
  1230. elif test $ac_prog = install &&
  1231. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1232. # program-specific install script used by HP pwplus--don't use.
  1233. :
  1234. else
  1235. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1236. break 3
  1237. fi
  1238. fi
  1239. done
  1240. done
  1241. ;;
  1242. esac
  1243. done
  1244. fi
  1245. if test "${ac_cv_path_install+set}" = set; then
  1246. INSTALL=$ac_cv_path_install
  1247. else
  1248. # As a last resort, use the slow shell script. We don't cache a
  1249. # path for INSTALL within a source directory, because that will
  1250. # break other packages using the cache if that directory is
  1251. # removed, or if the path is relative.
  1252. INSTALL=$ac_install_sh
  1253. fi
  1254. fi
  1255. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1256. echo "${ECHO_T}$INSTALL" >&6
  1257. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1258. # It thinks the first close brace ends the variable substitution.
  1259. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1260. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1261. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1262. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1263. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1264. # Just in case
  1265. sleep 1
  1266. echo timestamp > conftest.file
  1267. # Do `set' in a subshell so we don't clobber the current shell's
  1268. # arguments. Must try -L first in case configure is actually a
  1269. # symlink; some systems play weird games with the mod time of symlinks
  1270. # (eg FreeBSD returns the mod time of the symlink's containing
  1271. # directory).
  1272. if (
  1273. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1274. if test "$*" = "X"; then
  1275. # -L didn't work.
  1276. set X `ls -t $srcdir/configure conftest.file`
  1277. fi
  1278. rm -f conftest.file
  1279. if test "$*" != "X $srcdir/configure conftest.file" \
  1280. && test "$*" != "X conftest.file $srcdir/configure"; then
  1281. # If neither matched, then we have a broken ls. This can happen
  1282. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1283. # broken ls alias from the environment. This has actually
  1284. # happened. Such a system could not be considered "sane".
  1285. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1286. alias in your environment" >&5
  1287. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1288. alias in your environment" >&2;}
  1289. { (exit 1); exit 1; }; }
  1290. fi
  1291. test "$2" = conftest.file
  1292. )
  1293. then
  1294. # Ok.
  1295. :
  1296. else
  1297. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1298. Check your system clock" >&5
  1299. echo "$as_me: error: newly created file is older than distributed files!
  1300. Check your system clock" >&2;}
  1301. { (exit 1); exit 1; }; }
  1302. fi
  1303. echo "$as_me:$LINENO: result: yes" >&5
  1304. echo "${ECHO_T}yes" >&6
  1305. test "$program_prefix" != NONE &&
  1306. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1307. # Use a double $ so make ignores it.
  1308. test "$program_suffix" != NONE &&
  1309. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1310. # Double any \ or $. echo might interpret backslashes.
  1311. # By default was `s,x,x', remove it if useless.
  1312. cat <<\_ACEOF >conftest.sed
  1313. s/[\\$]/&&/g;s/;s,x,x,$//
  1314. _ACEOF
  1315. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1316. rm conftest.sed
  1317. # expand $ac_aux_dir to an absolute path
  1318. am_aux_dir=`cd $ac_aux_dir && pwd`
  1319. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1320. # Use eval to expand $SHELL
  1321. if eval "$MISSING --run true"; then
  1322. am_missing_run="$MISSING --run "
  1323. else
  1324. am_missing_run=
  1325. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1326. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1327. fi
  1328. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1329. # We used to keeping the `.' as first argument, in order to
  1330. # allow $(mkdir_p) to be used without argument. As in
  1331. # $(mkdir_p) $(somedir)
  1332. # where $(somedir) is conditionally defined. However this is wrong
  1333. # for two reasons:
  1334. # 1. if the package is installed by a user who cannot write `.'
  1335. # make install will fail,
  1336. # 2. the above comment should most certainly read
  1337. # $(mkdir_p) $(DESTDIR)$(somedir)
  1338. # so it does not work when $(somedir) is undefined and
  1339. # $(DESTDIR) is not.
  1340. # To support the latter case, we have to write
  1341. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1342. # so the `.' trick is pointless.
  1343. mkdir_p='mkdir -p --'
  1344. else
  1345. # On NextStep and OpenStep, the `mkdir' command does not
  1346. # recognize any option. It will interpret all options as
  1347. # directories to create, and then abort because `.' already
  1348. # exists.
  1349. for d in ./-p ./--version;
  1350. do
  1351. test -d $d && rmdir $d
  1352. done
  1353. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1354. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1355. mkdir_p='$(mkinstalldirs)'
  1356. else
  1357. mkdir_p='$(install_sh) -d'
  1358. fi
  1359. fi
  1360. for ac_prog in gawk mawk nawk awk
  1361. do
  1362. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1363. set dummy $ac_prog; ac_word=$2
  1364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_AWK+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$AWK"; then
  1370. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1371. else
  1372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1373. for as_dir in $PATH
  1374. do
  1375. IFS=$as_save_IFS
  1376. test -z "$as_dir" && as_dir=.
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1379. ac_cv_prog_AWK="$ac_prog"
  1380. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1381. break 2
  1382. fi
  1383. done
  1384. done
  1385. fi
  1386. fi
  1387. AWK=$ac_cv_prog_AWK
  1388. if test -n "$AWK"; then
  1389. echo "$as_me:$LINENO: result: $AWK" >&5
  1390. echo "${ECHO_T}$AWK" >&6
  1391. else
  1392. echo "$as_me:$LINENO: result: no" >&5
  1393. echo "${ECHO_T}no" >&6
  1394. fi
  1395. test -n "$AWK" && break
  1396. done
  1397. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1398. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1399. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1400. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1401. echo $ECHO_N "(cached) $ECHO_C" >&6
  1402. else
  1403. cat >conftest.make <<\_ACEOF
  1404. all:
  1405. @echo 'ac_maketemp="$(MAKE)"'
  1406. _ACEOF
  1407. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1408. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1409. if test -n "$ac_maketemp"; then
  1410. eval ac_cv_prog_make_${ac_make}_set=yes
  1411. else
  1412. eval ac_cv_prog_make_${ac_make}_set=no
  1413. fi
  1414. rm -f conftest.make
  1415. fi
  1416. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1417. echo "$as_me:$LINENO: result: yes" >&5
  1418. echo "${ECHO_T}yes" >&6
  1419. SET_MAKE=
  1420. else
  1421. echo "$as_me:$LINENO: result: no" >&5
  1422. echo "${ECHO_T}no" >&6
  1423. SET_MAKE="MAKE=${MAKE-make}"
  1424. fi
  1425. rm -rf .tst 2>/dev/null
  1426. mkdir .tst 2>/dev/null
  1427. if test -d .tst; then
  1428. am__leading_dot=.
  1429. else
  1430. am__leading_dot=_
  1431. fi
  1432. rmdir .tst 2>/dev/null
  1433. # test to see if srcdir already configured
  1434. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1435. test -f $srcdir/config.status; then
  1436. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1437. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1438. { (exit 1); exit 1; }; }
  1439. fi
  1440. # test whether we have cygpath
  1441. if test -z "$CYGPATH_W"; then
  1442. if (cygpath --version) >/dev/null 2>/dev/null; then
  1443. CYGPATH_W='cygpath -w'
  1444. else
  1445. CYGPATH_W=echo
  1446. fi
  1447. fi
  1448. # Define the identity of the package.
  1449. PACKAGE='aria2c'
  1450. VERSION='0.3.1'
  1451. cat >>confdefs.h <<_ACEOF
  1452. #define PACKAGE "$PACKAGE"
  1453. _ACEOF
  1454. cat >>confdefs.h <<_ACEOF
  1455. #define VERSION "$VERSION"
  1456. _ACEOF
  1457. # Some tools Automake needs.
  1458. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1459. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1460. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1461. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1462. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1463. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1464. # Installed binaries are usually stripped using `strip' when the user
  1465. # run `make install-strip'. However `strip' might not be the right
  1466. # tool to use in cross-compilation environments, therefore Automake
  1467. # will honor the `STRIP' environment variable to overrule this program.
  1468. if test "$cross_compiling" != no; then
  1469. if test -n "$ac_tool_prefix"; then
  1470. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1471. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1472. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1473. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1474. if test "${ac_cv_prog_STRIP+set}" = set; then
  1475. echo $ECHO_N "(cached) $ECHO_C" >&6
  1476. else
  1477. if test -n "$STRIP"; then
  1478. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1479. else
  1480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1481. for as_dir in $PATH
  1482. do
  1483. IFS=$as_save_IFS
  1484. test -z "$as_dir" && as_dir=.
  1485. for ac_exec_ext in '' $ac_executable_extensions; do
  1486. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1487. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1488. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1489. break 2
  1490. fi
  1491. done
  1492. done
  1493. fi
  1494. fi
  1495. STRIP=$ac_cv_prog_STRIP
  1496. if test -n "$STRIP"; then
  1497. echo "$as_me:$LINENO: result: $STRIP" >&5
  1498. echo "${ECHO_T}$STRIP" >&6
  1499. else
  1500. echo "$as_me:$LINENO: result: no" >&5
  1501. echo "${ECHO_T}no" >&6
  1502. fi
  1503. fi
  1504. if test -z "$ac_cv_prog_STRIP"; then
  1505. ac_ct_STRIP=$STRIP
  1506. # Extract the first word of "strip", so it can be a program name with args.
  1507. set dummy strip; ac_word=$2
  1508. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1510. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1511. echo $ECHO_N "(cached) $ECHO_C" >&6
  1512. else
  1513. if test -n "$ac_ct_STRIP"; then
  1514. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1515. else
  1516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1517. for as_dir in $PATH
  1518. do
  1519. IFS=$as_save_IFS
  1520. test -z "$as_dir" && as_dir=.
  1521. for ac_exec_ext in '' $ac_executable_extensions; do
  1522. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1523. ac_cv_prog_ac_ct_STRIP="strip"
  1524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1525. break 2
  1526. fi
  1527. done
  1528. done
  1529. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1530. fi
  1531. fi
  1532. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1533. if test -n "$ac_ct_STRIP"; then
  1534. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1535. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1536. else
  1537. echo "$as_me:$LINENO: result: no" >&5
  1538. echo "${ECHO_T}no" >&6
  1539. fi
  1540. STRIP=$ac_ct_STRIP
  1541. else
  1542. STRIP="$ac_cv_prog_STRIP"
  1543. fi
  1544. fi
  1545. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1546. # We need awk for the "check" target. The system "awk" is bad on
  1547. # some platforms.
  1548. # Always define AMTAR for backward compatibility.
  1549. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1550. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1551. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1552. if test "${with_cppunit_prefix+set}" = set; then
  1553. withval="$with_cppunit_prefix"
  1554. cppunit_config_prefix="$withval"
  1555. else
  1556. cppunit_config_prefix=""
  1557. fi;
  1558. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1559. if test "${with_cppunit_exec_prefix+set}" = set; then
  1560. withval="$with_cppunit_exec_prefix"
  1561. cppunit_config_exec_prefix="$withval"
  1562. else
  1563. cppunit_config_exec_prefix=""
  1564. fi;
  1565. if test x$cppunit_config_exec_prefix != x ; then
  1566. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1567. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1568. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1569. fi
  1570. fi
  1571. if test x$cppunit_config_prefix != x ; then
  1572. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1573. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1574. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1575. fi
  1576. fi
  1577. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1578. set dummy cppunit-config; ac_word=$2
  1579. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1581. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1582. echo $ECHO_N "(cached) $ECHO_C" >&6
  1583. else
  1584. case $CPPUNIT_CONFIG in
  1585. [\\/]* | ?:[\\/]*)
  1586. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1587. ;;
  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. for ac_exec_ext in '' $ac_executable_extensions; do
  1595. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1596. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1597. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1598. break 2
  1599. fi
  1600. done
  1601. done
  1602. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1603. ;;
  1604. esac
  1605. fi
  1606. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1607. if test -n "$CPPUNIT_CONFIG"; then
  1608. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1609. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1610. else
  1611. echo "$as_me:$LINENO: result: no" >&5
  1612. echo "${ECHO_T}no" >&6
  1613. fi
  1614. cppunit_version_min=1.10.2
  1615. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1616. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1617. no_cppunit=""
  1618. if test "$CPPUNIT_CONFIG" = "no" ; then
  1619. no_cppunit=yes
  1620. else
  1621. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1622. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1623. cppunit_version=`$CPPUNIT_CONFIG --version`
  1624. cppunit_major_version=`echo $cppunit_version | \
  1625. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1626. cppunit_minor_version=`echo $cppunit_version | \
  1627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1628. cppunit_micro_version=`echo $cppunit_version | \
  1629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1630. cppunit_major_min=`echo $cppunit_version_min | \
  1631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1632. cppunit_minor_min=`echo $cppunit_version_min | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1634. cppunit_micro_min=`echo $cppunit_version_min | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1636. cppunit_version_proper=`expr \
  1637. $cppunit_major_version \> $cppunit_major_min \| \
  1638. $cppunit_major_version \= $cppunit_major_min \& \
  1639. $cppunit_minor_version \> $cppunit_minor_min \| \
  1640. $cppunit_major_version \= $cppunit_major_min \& \
  1641. $cppunit_minor_version \= $cppunit_minor_min \& \
  1642. $cppunit_micro_version \>= $cppunit_micro_min `
  1643. if test "$cppunit_version_proper" = "1" ; then
  1644. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1645. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1646. else
  1647. echo "$as_me:$LINENO: result: no" >&5
  1648. echo "${ECHO_T}no" >&6
  1649. no_cppunit=yes
  1650. fi
  1651. fi
  1652. if test "x$no_cppunit" = x ; then
  1653. :
  1654. else
  1655. CPPUNIT_CFLAGS=""
  1656. CPPUNIT_LIBS=""
  1657. :
  1658. fi
  1659. ac_config_headers="$ac_config_headers config.h"
  1660. # Set localedir
  1661. localedir=${datadir}/locale
  1662. # Checks for arguments.
  1663. #AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is installed. Default: yes], [enable_ssl=$enableval], [enable_ssl=yes])
  1664. # Check whether --with-gnutls or --without-gnutls was given.
  1665. if test "${with_gnutls+set}" = set; then
  1666. withval="$with_gnutls"
  1667. with_gnutls=$enableval
  1668. else
  1669. with_gnutls=yes
  1670. fi;
  1671. # Check whether --with-openssl or --without-openssl was given.
  1672. if test "${with_openssl+set}" = set; then
  1673. withval="$with_openssl"
  1674. with_openssl=$enableval
  1675. else
  1676. with_openssl=yes
  1677. fi;
  1678. # Checks for programs.
  1679. ac_ext=cc
  1680. ac_cpp='$CXXCPP $CPPFLAGS'
  1681. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1682. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1683. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1684. if test -n "$ac_tool_prefix"; then
  1685. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1686. do
  1687. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1688. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1689. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1690. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1691. if test "${ac_cv_prog_CXX+set}" = set; then
  1692. echo $ECHO_N "(cached) $ECHO_C" >&6
  1693. else
  1694. if test -n "$CXX"; then
  1695. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1696. else
  1697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1698. for as_dir in $PATH
  1699. do
  1700. IFS=$as_save_IFS
  1701. test -z "$as_dir" && as_dir=.
  1702. for ac_exec_ext in '' $ac_executable_extensions; do
  1703. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1704. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1705. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1706. break 2
  1707. fi
  1708. done
  1709. done
  1710. fi
  1711. fi
  1712. CXX=$ac_cv_prog_CXX
  1713. if test -n "$CXX"; then
  1714. echo "$as_me:$LINENO: result: $CXX" >&5
  1715. echo "${ECHO_T}$CXX" >&6
  1716. else
  1717. echo "$as_me:$LINENO: result: no" >&5
  1718. echo "${ECHO_T}no" >&6
  1719. fi
  1720. test -n "$CXX" && break
  1721. done
  1722. fi
  1723. if test -z "$CXX"; then
  1724. ac_ct_CXX=$CXX
  1725. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1726. do
  1727. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1728. set dummy $ac_prog; ac_word=$2
  1729. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1730. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1731. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1732. echo $ECHO_N "(cached) $ECHO_C" >&6
  1733. else
  1734. if test -n "$ac_ct_CXX"; then
  1735. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1736. else
  1737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1738. for as_dir in $PATH
  1739. do
  1740. IFS=$as_save_IFS
  1741. test -z "$as_dir" && as_dir=.
  1742. for ac_exec_ext in '' $ac_executable_extensions; do
  1743. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1744. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1745. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1746. break 2
  1747. fi
  1748. done
  1749. done
  1750. fi
  1751. fi
  1752. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1753. if test -n "$ac_ct_CXX"; then
  1754. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1755. echo "${ECHO_T}$ac_ct_CXX" >&6
  1756. else
  1757. echo "$as_me:$LINENO: result: no" >&5
  1758. echo "${ECHO_T}no" >&6
  1759. fi
  1760. test -n "$ac_ct_CXX" && break
  1761. done
  1762. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1763. CXX=$ac_ct_CXX
  1764. fi
  1765. # Provide some information about the compiler.
  1766. echo "$as_me:$LINENO:" \
  1767. "checking for C++ compiler version" >&5
  1768. ac_compiler=`set X $ac_compile; echo $2`
  1769. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1770. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1771. ac_status=$?
  1772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1773. (exit $ac_status); }
  1774. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1775. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1776. ac_status=$?
  1777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1778. (exit $ac_status); }
  1779. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1780. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1781. ac_status=$?
  1782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1783. (exit $ac_status); }
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. int
  1791. main ()
  1792. {
  1793. ;
  1794. return 0;
  1795. }
  1796. _ACEOF
  1797. ac_clean_files_save=$ac_clean_files
  1798. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1799. # Try to create an executable without -o first, disregard a.out.
  1800. # It will help us diagnose broken compilers, and finding out an intuition
  1801. # of exeext.
  1802. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1803. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1804. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1805. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1806. (eval $ac_link_default) 2>&5
  1807. ac_status=$?
  1808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1809. (exit $ac_status); }; then
  1810. # Find the output, starting from the most likely. This scheme is
  1811. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1812. # resort.
  1813. # Be careful to initialize this variable, since it used to be cached.
  1814. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1815. ac_cv_exeext=
  1816. # b.out is created by i960 compilers.
  1817. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1818. do
  1819. test -f "$ac_file" || continue
  1820. case $ac_file in
  1821. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1822. ;;
  1823. conftest.$ac_ext )
  1824. # This is the source file.
  1825. ;;
  1826. [ab].out )
  1827. # We found the default executable, but exeext='' is most
  1828. # certainly right.
  1829. break;;
  1830. *.* )
  1831. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1832. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1833. # but it would be cool to find out if it's true. Does anybody
  1834. # maintain Libtool? --akim.
  1835. export ac_cv_exeext
  1836. break;;
  1837. * )
  1838. break;;
  1839. esac
  1840. done
  1841. else
  1842. echo "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1845. See \`config.log' for more details." >&5
  1846. echo "$as_me: error: C++ compiler cannot create executables
  1847. See \`config.log' for more details." >&2;}
  1848. { (exit 77); exit 77; }; }
  1849. fi
  1850. ac_exeext=$ac_cv_exeext
  1851. echo "$as_me:$LINENO: result: $ac_file" >&5
  1852. echo "${ECHO_T}$ac_file" >&6
  1853. # Check the compiler produces executables we can run. If not, either
  1854. # the compiler is broken, or we cross compile.
  1855. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1856. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1857. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1858. # If not cross compiling, check that we can run a simple program.
  1859. if test "$cross_compiling" != yes; then
  1860. if { ac_try='./$ac_file'
  1861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1862. (eval $ac_try) 2>&5
  1863. ac_status=$?
  1864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; }; then
  1866. cross_compiling=no
  1867. else
  1868. if test "$cross_compiling" = maybe; then
  1869. cross_compiling=yes
  1870. else
  1871. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1872. If you meant to cross compile, use \`--host'.
  1873. See \`config.log' for more details." >&5
  1874. echo "$as_me: error: cannot run C++ compiled programs.
  1875. If you meant to cross compile, use \`--host'.
  1876. See \`config.log' for more details." >&2;}
  1877. { (exit 1); exit 1; }; }
  1878. fi
  1879. fi
  1880. fi
  1881. echo "$as_me:$LINENO: result: yes" >&5
  1882. echo "${ECHO_T}yes" >&6
  1883. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1884. ac_clean_files=$ac_clean_files_save
  1885. # Check the compiler produces executables we can run. If not, either
  1886. # the compiler is broken, or we cross compile.
  1887. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1888. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1889. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1890. echo "${ECHO_T}$cross_compiling" >&6
  1891. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1892. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1894. (eval $ac_link) 2>&5
  1895. ac_status=$?
  1896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1897. (exit $ac_status); }; then
  1898. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1899. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1900. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1901. # `rm'.
  1902. for ac_file in conftest.exe conftest conftest.*; do
  1903. test -f "$ac_file" || continue
  1904. case $ac_file in
  1905. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1906. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1907. export ac_cv_exeext
  1908. break;;
  1909. * ) break;;
  1910. esac
  1911. done
  1912. else
  1913. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1914. See \`config.log' for more details." >&5
  1915. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1916. See \`config.log' for more details." >&2;}
  1917. { (exit 1); exit 1; }; }
  1918. fi
  1919. rm -f conftest$ac_cv_exeext
  1920. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1921. echo "${ECHO_T}$ac_cv_exeext" >&6
  1922. rm -f conftest.$ac_ext
  1923. EXEEXT=$ac_cv_exeext
  1924. ac_exeext=$EXEEXT
  1925. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1926. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1927. if test "${ac_cv_objext+set}" = set; then
  1928. echo $ECHO_N "(cached) $ECHO_C" >&6
  1929. else
  1930. cat >conftest.$ac_ext <<_ACEOF
  1931. /* confdefs.h. */
  1932. _ACEOF
  1933. cat confdefs.h >>conftest.$ac_ext
  1934. cat >>conftest.$ac_ext <<_ACEOF
  1935. /* end confdefs.h. */
  1936. int
  1937. main ()
  1938. {
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. rm -f conftest.o conftest.obj
  1944. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1945. (eval $ac_compile) 2>&5
  1946. ac_status=$?
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); }; then
  1949. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1950. case $ac_file in
  1951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1952. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1953. break;;
  1954. esac
  1955. done
  1956. else
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1960. See \`config.log' for more details." >&5
  1961. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1962. See \`config.log' for more details." >&2;}
  1963. { (exit 1); exit 1; }; }
  1964. fi
  1965. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1966. fi
  1967. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1968. echo "${ECHO_T}$ac_cv_objext" >&6
  1969. OBJEXT=$ac_cv_objext
  1970. ac_objext=$OBJEXT
  1971. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1972. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1973. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1974. echo $ECHO_N "(cached) $ECHO_C" >&6
  1975. else
  1976. cat >conftest.$ac_ext <<_ACEOF
  1977. /* confdefs.h. */
  1978. _ACEOF
  1979. cat confdefs.h >>conftest.$ac_ext
  1980. cat >>conftest.$ac_ext <<_ACEOF
  1981. /* end confdefs.h. */
  1982. int
  1983. main ()
  1984. {
  1985. #ifndef __GNUC__
  1986. choke me
  1987. #endif
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. rm -f conftest.$ac_objext
  1993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1994. (eval $ac_compile) 2>conftest.er1
  1995. ac_status=$?
  1996. grep -v '^ *+' conftest.er1 >conftest.err
  1997. rm -f conftest.er1
  1998. cat conftest.err >&5
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); } &&
  2001. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2003. (eval $ac_try) 2>&5
  2004. ac_status=$?
  2005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2006. (exit $ac_status); }; } &&
  2007. { ac_try='test -s conftest.$ac_objext'
  2008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2009. (eval $ac_try) 2>&5
  2010. ac_status=$?
  2011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2012. (exit $ac_status); }; }; then
  2013. ac_compiler_gnu=yes
  2014. else
  2015. echo "$as_me: failed program was:" >&5
  2016. sed 's/^/| /' conftest.$ac_ext >&5
  2017. ac_compiler_gnu=no
  2018. fi
  2019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2021. fi
  2022. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2023. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2024. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2025. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2026. ac_save_CXXFLAGS=$CXXFLAGS
  2027. CXXFLAGS="-g"
  2028. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2029. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2030. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2031. echo $ECHO_N "(cached) $ECHO_C" >&6
  2032. else
  2033. cat >conftest.$ac_ext <<_ACEOF
  2034. /* confdefs.h. */
  2035. _ACEOF
  2036. cat confdefs.h >>conftest.$ac_ext
  2037. cat >>conftest.$ac_ext <<_ACEOF
  2038. /* end confdefs.h. */
  2039. int
  2040. main ()
  2041. {
  2042. ;
  2043. return 0;
  2044. }
  2045. _ACEOF
  2046. rm -f conftest.$ac_objext
  2047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2048. (eval $ac_compile) 2>conftest.er1
  2049. ac_status=$?
  2050. grep -v '^ *+' conftest.er1 >conftest.err
  2051. rm -f conftest.er1
  2052. cat conftest.err >&5
  2053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2054. (exit $ac_status); } &&
  2055. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2057. (eval $ac_try) 2>&5
  2058. ac_status=$?
  2059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2060. (exit $ac_status); }; } &&
  2061. { ac_try='test -s conftest.$ac_objext'
  2062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2063. (eval $ac_try) 2>&5
  2064. ac_status=$?
  2065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2066. (exit $ac_status); }; }; then
  2067. ac_cv_prog_cxx_g=yes
  2068. else
  2069. echo "$as_me: failed program was:" >&5
  2070. sed 's/^/| /' conftest.$ac_ext >&5
  2071. ac_cv_prog_cxx_g=no
  2072. fi
  2073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2074. fi
  2075. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2076. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2077. if test "$ac_test_CXXFLAGS" = set; then
  2078. CXXFLAGS=$ac_save_CXXFLAGS
  2079. elif test $ac_cv_prog_cxx_g = yes; then
  2080. if test "$GXX" = yes; then
  2081. CXXFLAGS="-g -O2"
  2082. else
  2083. CXXFLAGS="-g"
  2084. fi
  2085. else
  2086. if test "$GXX" = yes; then
  2087. CXXFLAGS="-O2"
  2088. else
  2089. CXXFLAGS=
  2090. fi
  2091. fi
  2092. for ac_declaration in \
  2093. '' \
  2094. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2095. 'extern "C" void std::exit (int); using std::exit;' \
  2096. 'extern "C" void exit (int) throw ();' \
  2097. 'extern "C" void exit (int);' \
  2098. 'void exit (int);'
  2099. do
  2100. cat >conftest.$ac_ext <<_ACEOF
  2101. /* confdefs.h. */
  2102. _ACEOF
  2103. cat confdefs.h >>conftest.$ac_ext
  2104. cat >>conftest.$ac_ext <<_ACEOF
  2105. /* end confdefs.h. */
  2106. $ac_declaration
  2107. #include <stdlib.h>
  2108. int
  2109. main ()
  2110. {
  2111. exit (42);
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. rm -f conftest.$ac_objext
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2118. (eval $ac_compile) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } &&
  2125. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2127. (eval $ac_try) 2>&5
  2128. ac_status=$?
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); }; } &&
  2131. { ac_try='test -s conftest.$ac_objext'
  2132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2133. (eval $ac_try) 2>&5
  2134. ac_status=$?
  2135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2136. (exit $ac_status); }; }; then
  2137. :
  2138. else
  2139. echo "$as_me: failed program was:" >&5
  2140. sed 's/^/| /' conftest.$ac_ext >&5
  2141. continue
  2142. fi
  2143. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. cat >conftest.$ac_ext <<_ACEOF
  2145. /* confdefs.h. */
  2146. _ACEOF
  2147. cat confdefs.h >>conftest.$ac_ext
  2148. cat >>conftest.$ac_ext <<_ACEOF
  2149. /* end confdefs.h. */
  2150. $ac_declaration
  2151. int
  2152. main ()
  2153. {
  2154. exit (42);
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. rm -f conftest.$ac_objext
  2160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2161. (eval $ac_compile) 2>conftest.er1
  2162. ac_status=$?
  2163. grep -v '^ *+' conftest.er1 >conftest.err
  2164. rm -f conftest.er1
  2165. cat conftest.err >&5
  2166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2167. (exit $ac_status); } &&
  2168. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2170. (eval $ac_try) 2>&5
  2171. ac_status=$?
  2172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2173. (exit $ac_status); }; } &&
  2174. { ac_try='test -s conftest.$ac_objext'
  2175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2176. (eval $ac_try) 2>&5
  2177. ac_status=$?
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); }; }; then
  2180. break
  2181. else
  2182. echo "$as_me: failed program was:" >&5
  2183. sed 's/^/| /' conftest.$ac_ext >&5
  2184. fi
  2185. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. done
  2187. rm -f conftest*
  2188. if test -n "$ac_declaration"; then
  2189. echo '#ifdef __cplusplus' >>confdefs.h
  2190. echo $ac_declaration >>confdefs.h
  2191. echo '#endif' >>confdefs.h
  2192. fi
  2193. ac_ext=c
  2194. ac_cpp='$CPP $CPPFLAGS'
  2195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2198. DEPDIR="${am__leading_dot}deps"
  2199. ac_config_commands="$ac_config_commands depfiles"
  2200. am_make=${MAKE-make}
  2201. cat > confinc << 'END'
  2202. am__doit:
  2203. @echo done
  2204. .PHONY: am__doit
  2205. END
  2206. # If we don't find an include directive, just comment out the code.
  2207. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2208. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2209. am__include="#"
  2210. am__quote=
  2211. _am_result=none
  2212. # First try GNU make style include.
  2213. echo "include confinc" > confmf
  2214. # We grep out `Entering directory' and `Leaving directory'
  2215. # messages which can occur if `w' ends up in MAKEFLAGS.
  2216. # In particular we don't look at `^make:' because GNU make might
  2217. # be invoked under some other name (usually "gmake"), in which
  2218. # case it prints its new name instead of `make'.
  2219. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2220. am__include=include
  2221. am__quote=
  2222. _am_result=GNU
  2223. fi
  2224. # Now try BSD make style include.
  2225. if test "$am__include" = "#"; then
  2226. echo '.include "confinc"' > confmf
  2227. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2228. am__include=.include
  2229. am__quote="\""
  2230. _am_result=BSD
  2231. fi
  2232. fi
  2233. echo "$as_me:$LINENO: result: $_am_result" >&5
  2234. echo "${ECHO_T}$_am_result" >&6
  2235. rm -f confinc confmf
  2236. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2237. if test "${enable_dependency_tracking+set}" = set; then
  2238. enableval="$enable_dependency_tracking"
  2239. fi;
  2240. if test "x$enable_dependency_tracking" != xno; then
  2241. am_depcomp="$ac_aux_dir/depcomp"
  2242. AMDEPBACKSLASH='\'
  2243. fi
  2244. if test "x$enable_dependency_tracking" != xno; then
  2245. AMDEP_TRUE=
  2246. AMDEP_FALSE='#'
  2247. else
  2248. AMDEP_TRUE='#'
  2249. AMDEP_FALSE=
  2250. fi
  2251. depcc="$CXX" am_compiler_list=
  2252. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2253. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2254. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2255. echo $ECHO_N "(cached) $ECHO_C" >&6
  2256. else
  2257. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2258. # We make a subdir and do the tests there. Otherwise we can end up
  2259. # making bogus files that we don't know about and never remove. For
  2260. # instance it was reported that on HP-UX the gcc test will end up
  2261. # making a dummy file named `D' -- because `-MD' means `put the output
  2262. # in D'.
  2263. mkdir conftest.dir
  2264. # Copy depcomp to subdir because otherwise we won't find it if we're
  2265. # using a relative directory.
  2266. cp "$am_depcomp" conftest.dir
  2267. cd conftest.dir
  2268. # We will build objects and dependencies in a subdirectory because
  2269. # it helps to detect inapplicable dependency modes. For instance
  2270. # both Tru64's cc and ICC support -MD to output dependencies as a
  2271. # side effect of compilation, but ICC will put the dependencies in
  2272. # the current directory while Tru64 will put them in the object
  2273. # directory.
  2274. mkdir sub
  2275. am_cv_CXX_dependencies_compiler_type=none
  2276. if test "$am_compiler_list" = ""; then
  2277. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2278. fi
  2279. for depmode in $am_compiler_list; do
  2280. # Setup a source with many dependencies, because some compilers
  2281. # like to wrap large dependency lists on column 80 (with \), and
  2282. # we should not choose a depcomp mode which is confused by this.
  2283. #
  2284. # We need to recreate these files for each test, as the compiler may
  2285. # overwrite some of them when testing with obscure command lines.
  2286. # This happens at least with the AIX C compiler.
  2287. : > sub/conftest.c
  2288. for i in 1 2 3 4 5 6; do
  2289. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2290. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2291. # Solaris 8's {/usr,}/bin/sh.
  2292. touch sub/conftst$i.h
  2293. done
  2294. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2295. case $depmode in
  2296. nosideeffect)
  2297. # after this tag, mechanisms are not by side-effect, so they'll
  2298. # only be used when explicitly requested
  2299. if test "x$enable_dependency_tracking" = xyes; then
  2300. continue
  2301. else
  2302. break
  2303. fi
  2304. ;;
  2305. none) break ;;
  2306. esac
  2307. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2308. # mode. It turns out that the SunPro C++ compiler does not properly
  2309. # handle `-M -o', and we need to detect this.
  2310. if depmode=$depmode \
  2311. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2312. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2313. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2314. >/dev/null 2>conftest.err &&
  2315. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2316. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2317. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2318. # icc doesn't choke on unknown options, it will just issue warnings
  2319. # or remarks (even with -Werror). So we grep stderr for any message
  2320. # that says an option was ignored or not supported.
  2321. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2322. # icc: Command line warning: ignoring option '-M'; no argument required
  2323. # The diagnosis changed in icc 8.0:
  2324. # icc: Command line remark: option '-MP' not supported
  2325. if (grep 'ignoring option' conftest.err ||
  2326. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2327. am_cv_CXX_dependencies_compiler_type=$depmode
  2328. break
  2329. fi
  2330. fi
  2331. done
  2332. cd ..
  2333. rm -rf conftest.dir
  2334. else
  2335. am_cv_CXX_dependencies_compiler_type=none
  2336. fi
  2337. fi
  2338. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2339. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2340. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2341. if
  2342. test "x$enable_dependency_tracking" != xno \
  2343. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2344. am__fastdepCXX_TRUE=
  2345. am__fastdepCXX_FALSE='#'
  2346. else
  2347. am__fastdepCXX_TRUE='#'
  2348. am__fastdepCXX_FALSE=
  2349. fi
  2350. ac_ext=c
  2351. ac_cpp='$CPP $CPPFLAGS'
  2352. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2353. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2354. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2355. if test -n "$ac_tool_prefix"; then
  2356. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2357. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2358. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2359. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2360. if test "${ac_cv_prog_CC+set}" = set; then
  2361. echo $ECHO_N "(cached) $ECHO_C" >&6
  2362. else
  2363. if test -n "$CC"; then
  2364. ac_cv_prog_CC="$CC" # Let the user override the test.
  2365. else
  2366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2367. for as_dir in $PATH
  2368. do
  2369. IFS=$as_save_IFS
  2370. test -z "$as_dir" && as_dir=.
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2373. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2374. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2375. break 2
  2376. fi
  2377. done
  2378. done
  2379. fi
  2380. fi
  2381. CC=$ac_cv_prog_CC
  2382. if test -n "$CC"; then
  2383. echo "$as_me:$LINENO: result: $CC" >&5
  2384. echo "${ECHO_T}$CC" >&6
  2385. else
  2386. echo "$as_me:$LINENO: result: no" >&5
  2387. echo "${ECHO_T}no" >&6
  2388. fi
  2389. fi
  2390. if test -z "$ac_cv_prog_CC"; then
  2391. ac_ct_CC=$CC
  2392. # Extract the first word of "gcc", so it can be a program name with args.
  2393. set dummy gcc; ac_word=$2
  2394. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2396. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2397. echo $ECHO_N "(cached) $ECHO_C" >&6
  2398. else
  2399. if test -n "$ac_ct_CC"; then
  2400. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2409. ac_cv_prog_ac_ct_CC="gcc"
  2410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. fi
  2416. fi
  2417. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2418. if test -n "$ac_ct_CC"; then
  2419. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2420. echo "${ECHO_T}$ac_ct_CC" >&6
  2421. else
  2422. echo "$as_me:$LINENO: result: no" >&5
  2423. echo "${ECHO_T}no" >&6
  2424. fi
  2425. CC=$ac_ct_CC
  2426. else
  2427. CC="$ac_cv_prog_CC"
  2428. fi
  2429. if test -z "$CC"; then
  2430. if test -n "$ac_tool_prefix"; then
  2431. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2432. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2433. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2434. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2435. if test "${ac_cv_prog_CC+set}" = set; then
  2436. echo $ECHO_N "(cached) $ECHO_C" >&6
  2437. else
  2438. if test -n "$CC"; then
  2439. ac_cv_prog_CC="$CC" # Let the user override the test.
  2440. else
  2441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2442. for as_dir in $PATH
  2443. do
  2444. IFS=$as_save_IFS
  2445. test -z "$as_dir" && as_dir=.
  2446. for ac_exec_ext in '' $ac_executable_extensions; do
  2447. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2448. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2449. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2450. break 2
  2451. fi
  2452. done
  2453. done
  2454. fi
  2455. fi
  2456. CC=$ac_cv_prog_CC
  2457. if test -n "$CC"; then
  2458. echo "$as_me:$LINENO: result: $CC" >&5
  2459. echo "${ECHO_T}$CC" >&6
  2460. else
  2461. echo "$as_me:$LINENO: result: no" >&5
  2462. echo "${ECHO_T}no" >&6
  2463. fi
  2464. fi
  2465. if test -z "$ac_cv_prog_CC"; then
  2466. ac_ct_CC=$CC
  2467. # Extract the first word of "cc", so it can be a program name with args.
  2468. set dummy cc; ac_word=$2
  2469. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2470. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2471. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2472. echo $ECHO_N "(cached) $ECHO_C" >&6
  2473. else
  2474. if test -n "$ac_ct_CC"; then
  2475. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2476. else
  2477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2478. for as_dir in $PATH
  2479. do
  2480. IFS=$as_save_IFS
  2481. test -z "$as_dir" && as_dir=.
  2482. for ac_exec_ext in '' $ac_executable_extensions; do
  2483. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2484. ac_cv_prog_ac_ct_CC="cc"
  2485. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2486. break 2
  2487. fi
  2488. done
  2489. done
  2490. fi
  2491. fi
  2492. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2493. if test -n "$ac_ct_CC"; then
  2494. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2495. echo "${ECHO_T}$ac_ct_CC" >&6
  2496. else
  2497. echo "$as_me:$LINENO: result: no" >&5
  2498. echo "${ECHO_T}no" >&6
  2499. fi
  2500. CC=$ac_ct_CC
  2501. else
  2502. CC="$ac_cv_prog_CC"
  2503. fi
  2504. fi
  2505. if test -z "$CC"; then
  2506. # Extract the first word of "cc", so it can be a program name with args.
  2507. set dummy cc; ac_word=$2
  2508. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2510. if test "${ac_cv_prog_CC+set}" = set; then
  2511. echo $ECHO_N "(cached) $ECHO_C" >&6
  2512. else
  2513. if test -n "$CC"; then
  2514. ac_cv_prog_CC="$CC" # Let the user override the test.
  2515. else
  2516. ac_prog_rejected=no
  2517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2518. for as_dir in $PATH
  2519. do
  2520. IFS=$as_save_IFS
  2521. test -z "$as_dir" && as_dir=.
  2522. for ac_exec_ext in '' $ac_executable_extensions; do
  2523. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2524. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2525. ac_prog_rejected=yes
  2526. continue
  2527. fi
  2528. ac_cv_prog_CC="cc"
  2529. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. if test $ac_prog_rejected = yes; then
  2535. # We found a bogon in the path, so make sure we never use it.
  2536. set dummy $ac_cv_prog_CC
  2537. shift
  2538. if test $# != 0; then
  2539. # We chose a different compiler from the bogus one.
  2540. # However, it has the same basename, so the bogon will be chosen
  2541. # first if we set CC to just the basename; use the full file name.
  2542. shift
  2543. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2544. fi
  2545. fi
  2546. fi
  2547. fi
  2548. CC=$ac_cv_prog_CC
  2549. if test -n "$CC"; then
  2550. echo "$as_me:$LINENO: result: $CC" >&5
  2551. echo "${ECHO_T}$CC" >&6
  2552. else
  2553. echo "$as_me:$LINENO: result: no" >&5
  2554. echo "${ECHO_T}no" >&6
  2555. fi
  2556. fi
  2557. if test -z "$CC"; then
  2558. if test -n "$ac_tool_prefix"; then
  2559. for ac_prog in cl
  2560. do
  2561. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2562. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2563. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2564. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2565. if test "${ac_cv_prog_CC+set}" = set; then
  2566. echo $ECHO_N "(cached) $ECHO_C" >&6
  2567. else
  2568. if test -n "$CC"; then
  2569. ac_cv_prog_CC="$CC" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2578. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2579. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. fi
  2585. fi
  2586. CC=$ac_cv_prog_CC
  2587. if test -n "$CC"; then
  2588. echo "$as_me:$LINENO: result: $CC" >&5
  2589. echo "${ECHO_T}$CC" >&6
  2590. else
  2591. echo "$as_me:$LINENO: result: no" >&5
  2592. echo "${ECHO_T}no" >&6
  2593. fi
  2594. test -n "$CC" && break
  2595. done
  2596. fi
  2597. if test -z "$CC"; then
  2598. ac_ct_CC=$CC
  2599. for ac_prog in cl
  2600. do
  2601. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2602. set dummy $ac_prog; ac_word=$2
  2603. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2604. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2605. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2606. echo $ECHO_N "(cached) $ECHO_C" >&6
  2607. else
  2608. if test -n "$ac_ct_CC"; then
  2609. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_ac_ct_CC="$ac_prog"
  2619. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. fi
  2625. fi
  2626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2627. if test -n "$ac_ct_CC"; then
  2628. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2629. echo "${ECHO_T}$ac_ct_CC" >&6
  2630. else
  2631. echo "$as_me:$LINENO: result: no" >&5
  2632. echo "${ECHO_T}no" >&6
  2633. fi
  2634. test -n "$ac_ct_CC" && break
  2635. done
  2636. CC=$ac_ct_CC
  2637. fi
  2638. fi
  2639. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2640. See \`config.log' for more details." >&5
  2641. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2642. See \`config.log' for more details." >&2;}
  2643. { (exit 1); exit 1; }; }
  2644. # Provide some information about the compiler.
  2645. echo "$as_me:$LINENO:" \
  2646. "checking for C compiler version" >&5
  2647. ac_compiler=`set X $ac_compile; echo $2`
  2648. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2649. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2650. ac_status=$?
  2651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2652. (exit $ac_status); }
  2653. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2654. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2655. ac_status=$?
  2656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2657. (exit $ac_status); }
  2658. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2659. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2660. ac_status=$?
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); }
  2663. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2664. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2665. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2666. echo $ECHO_N "(cached) $ECHO_C" >&6
  2667. else
  2668. cat >conftest.$ac_ext <<_ACEOF
  2669. /* confdefs.h. */
  2670. _ACEOF
  2671. cat confdefs.h >>conftest.$ac_ext
  2672. cat >>conftest.$ac_ext <<_ACEOF
  2673. /* end confdefs.h. */
  2674. int
  2675. main ()
  2676. {
  2677. #ifndef __GNUC__
  2678. choke me
  2679. #endif
  2680. ;
  2681. return 0;
  2682. }
  2683. _ACEOF
  2684. rm -f conftest.$ac_objext
  2685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2686. (eval $ac_compile) 2>conftest.er1
  2687. ac_status=$?
  2688. grep -v '^ *+' conftest.er1 >conftest.err
  2689. rm -f conftest.er1
  2690. cat conftest.err >&5
  2691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2692. (exit $ac_status); } &&
  2693. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2695. (eval $ac_try) 2>&5
  2696. ac_status=$?
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }; } &&
  2699. { ac_try='test -s conftest.$ac_objext'
  2700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2701. (eval $ac_try) 2>&5
  2702. ac_status=$?
  2703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2704. (exit $ac_status); }; }; then
  2705. ac_compiler_gnu=yes
  2706. else
  2707. echo "$as_me: failed program was:" >&5
  2708. sed 's/^/| /' conftest.$ac_ext >&5
  2709. ac_compiler_gnu=no
  2710. fi
  2711. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2713. fi
  2714. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2715. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2716. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2717. ac_test_CFLAGS=${CFLAGS+set}
  2718. ac_save_CFLAGS=$CFLAGS
  2719. CFLAGS="-g"
  2720. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2721. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2722. if test "${ac_cv_prog_cc_g+set}" = set; then
  2723. echo $ECHO_N "(cached) $ECHO_C" >&6
  2724. else
  2725. cat >conftest.$ac_ext <<_ACEOF
  2726. /* confdefs.h. */
  2727. _ACEOF
  2728. cat confdefs.h >>conftest.$ac_ext
  2729. cat >>conftest.$ac_ext <<_ACEOF
  2730. /* end confdefs.h. */
  2731. int
  2732. main ()
  2733. {
  2734. ;
  2735. return 0;
  2736. }
  2737. _ACEOF
  2738. rm -f conftest.$ac_objext
  2739. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2740. (eval $ac_compile) 2>conftest.er1
  2741. ac_status=$?
  2742. grep -v '^ *+' conftest.er1 >conftest.err
  2743. rm -f conftest.er1
  2744. cat conftest.err >&5
  2745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2746. (exit $ac_status); } &&
  2747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2749. (eval $ac_try) 2>&5
  2750. ac_status=$?
  2751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2752. (exit $ac_status); }; } &&
  2753. { ac_try='test -s conftest.$ac_objext'
  2754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2755. (eval $ac_try) 2>&5
  2756. ac_status=$?
  2757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2758. (exit $ac_status); }; }; then
  2759. ac_cv_prog_cc_g=yes
  2760. else
  2761. echo "$as_me: failed program was:" >&5
  2762. sed 's/^/| /' conftest.$ac_ext >&5
  2763. ac_cv_prog_cc_g=no
  2764. fi
  2765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2766. fi
  2767. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2768. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2769. if test "$ac_test_CFLAGS" = set; then
  2770. CFLAGS=$ac_save_CFLAGS
  2771. elif test $ac_cv_prog_cc_g = yes; then
  2772. if test "$GCC" = yes; then
  2773. CFLAGS="-g -O2"
  2774. else
  2775. CFLAGS="-g"
  2776. fi
  2777. else
  2778. if test "$GCC" = yes; then
  2779. CFLAGS="-O2"
  2780. else
  2781. CFLAGS=
  2782. fi
  2783. fi
  2784. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2785. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2786. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2787. echo $ECHO_N "(cached) $ECHO_C" >&6
  2788. else
  2789. ac_cv_prog_cc_stdc=no
  2790. ac_save_CC=$CC
  2791. cat >conftest.$ac_ext <<_ACEOF
  2792. /* confdefs.h. */
  2793. _ACEOF
  2794. cat confdefs.h >>conftest.$ac_ext
  2795. cat >>conftest.$ac_ext <<_ACEOF
  2796. /* end confdefs.h. */
  2797. #include <stdarg.h>
  2798. #include <stdio.h>
  2799. #include <sys/types.h>
  2800. #include <sys/stat.h>
  2801. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2802. struct buf { int x; };
  2803. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2804. static char *e (p, i)
  2805. char **p;
  2806. int i;
  2807. {
  2808. return p[i];
  2809. }
  2810. static char *f (char * (*g) (char **, int), char **p, ...)
  2811. {
  2812. char *s;
  2813. va_list v;
  2814. va_start (v,p);
  2815. s = g (p, va_arg (v,int));
  2816. va_end (v);
  2817. return s;
  2818. }
  2819. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2820. function prototypes and stuff, but not '\xHH' hex character constants.
  2821. These don't provoke an error unfortunately, instead are silently treated
  2822. as 'x'. The following induces an error, until -std1 is added to get
  2823. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2824. array size at least. It's necessary to write '\x00'==0 to get something
  2825. that's true only with -std1. */
  2826. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2827. int test (int i, double x);
  2828. struct s1 {int (*f) (int a);};
  2829. struct s2 {int (*f) (double a);};
  2830. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2831. int argc;
  2832. char **argv;
  2833. int
  2834. main ()
  2835. {
  2836. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2837. ;
  2838. return 0;
  2839. }
  2840. _ACEOF
  2841. # Don't try gcc -ansi; that turns off useful extensions and
  2842. # breaks some systems' header files.
  2843. # AIX -qlanglvl=ansi
  2844. # Ultrix and OSF/1 -std1
  2845. # HP-UX 10.20 and later -Ae
  2846. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2847. # SVR4 -Xc -D__EXTENSIONS__
  2848. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2849. do
  2850. CC="$ac_save_CC $ac_arg"
  2851. rm -f conftest.$ac_objext
  2852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2853. (eval $ac_compile) 2>conftest.er1
  2854. ac_status=$?
  2855. grep -v '^ *+' conftest.er1 >conftest.err
  2856. rm -f conftest.er1
  2857. cat conftest.err >&5
  2858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2859. (exit $ac_status); } &&
  2860. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2862. (eval $ac_try) 2>&5
  2863. ac_status=$?
  2864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); }; } &&
  2866. { ac_try='test -s conftest.$ac_objext'
  2867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2868. (eval $ac_try) 2>&5
  2869. ac_status=$?
  2870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); }; }; then
  2872. ac_cv_prog_cc_stdc=$ac_arg
  2873. break
  2874. else
  2875. echo "$as_me: failed program was:" >&5
  2876. sed 's/^/| /' conftest.$ac_ext >&5
  2877. fi
  2878. rm -f conftest.err conftest.$ac_objext
  2879. done
  2880. rm -f conftest.$ac_ext conftest.$ac_objext
  2881. CC=$ac_save_CC
  2882. fi
  2883. case "x$ac_cv_prog_cc_stdc" in
  2884. x|xno)
  2885. echo "$as_me:$LINENO: result: none needed" >&5
  2886. echo "${ECHO_T}none needed" >&6 ;;
  2887. *)
  2888. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2889. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2890. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2891. esac
  2892. # Some people use a C++ compiler to compile C. Since we use `exit',
  2893. # in C++ we need to declare it. In case someone uses the same compiler
  2894. # for both compiling C and C++ we need to have the C++ compiler decide
  2895. # the declaration of exit, since it's the most demanding environment.
  2896. cat >conftest.$ac_ext <<_ACEOF
  2897. #ifndef __cplusplus
  2898. choke me
  2899. #endif
  2900. _ACEOF
  2901. rm -f conftest.$ac_objext
  2902. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2903. (eval $ac_compile) 2>conftest.er1
  2904. ac_status=$?
  2905. grep -v '^ *+' conftest.er1 >conftest.err
  2906. rm -f conftest.er1
  2907. cat conftest.err >&5
  2908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2909. (exit $ac_status); } &&
  2910. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2912. (eval $ac_try) 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; } &&
  2916. { ac_try='test -s conftest.$ac_objext'
  2917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2918. (eval $ac_try) 2>&5
  2919. ac_status=$?
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; }; then
  2922. for ac_declaration in \
  2923. '' \
  2924. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2925. 'extern "C" void std::exit (int); using std::exit;' \
  2926. 'extern "C" void exit (int) throw ();' \
  2927. 'extern "C" void exit (int);' \
  2928. 'void exit (int);'
  2929. do
  2930. cat >conftest.$ac_ext <<_ACEOF
  2931. /* confdefs.h. */
  2932. _ACEOF
  2933. cat confdefs.h >>conftest.$ac_ext
  2934. cat >>conftest.$ac_ext <<_ACEOF
  2935. /* end confdefs.h. */
  2936. $ac_declaration
  2937. #include <stdlib.h>
  2938. int
  2939. main ()
  2940. {
  2941. exit (42);
  2942. ;
  2943. return 0;
  2944. }
  2945. _ACEOF
  2946. rm -f conftest.$ac_objext
  2947. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2948. (eval $ac_compile) 2>conftest.er1
  2949. ac_status=$?
  2950. grep -v '^ *+' conftest.er1 >conftest.err
  2951. rm -f conftest.er1
  2952. cat conftest.err >&5
  2953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2954. (exit $ac_status); } &&
  2955. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2957. (eval $ac_try) 2>&5
  2958. ac_status=$?
  2959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2960. (exit $ac_status); }; } &&
  2961. { ac_try='test -s conftest.$ac_objext'
  2962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2963. (eval $ac_try) 2>&5
  2964. ac_status=$?
  2965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966. (exit $ac_status); }; }; then
  2967. :
  2968. else
  2969. echo "$as_me: failed program was:" >&5
  2970. sed 's/^/| /' conftest.$ac_ext >&5
  2971. continue
  2972. fi
  2973. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2974. cat >conftest.$ac_ext <<_ACEOF
  2975. /* confdefs.h. */
  2976. _ACEOF
  2977. cat confdefs.h >>conftest.$ac_ext
  2978. cat >>conftest.$ac_ext <<_ACEOF
  2979. /* end confdefs.h. */
  2980. $ac_declaration
  2981. int
  2982. main ()
  2983. {
  2984. exit (42);
  2985. ;
  2986. return 0;
  2987. }
  2988. _ACEOF
  2989. rm -f conftest.$ac_objext
  2990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2991. (eval $ac_compile) 2>conftest.er1
  2992. ac_status=$?
  2993. grep -v '^ *+' conftest.er1 >conftest.err
  2994. rm -f conftest.er1
  2995. cat conftest.err >&5
  2996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2997. (exit $ac_status); } &&
  2998. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3000. (eval $ac_try) 2>&5
  3001. ac_status=$?
  3002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3003. (exit $ac_status); }; } &&
  3004. { ac_try='test -s conftest.$ac_objext'
  3005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3006. (eval $ac_try) 2>&5
  3007. ac_status=$?
  3008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3009. (exit $ac_status); }; }; then
  3010. break
  3011. else
  3012. echo "$as_me: failed program was:" >&5
  3013. sed 's/^/| /' conftest.$ac_ext >&5
  3014. fi
  3015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3016. done
  3017. rm -f conftest*
  3018. if test -n "$ac_declaration"; then
  3019. echo '#ifdef __cplusplus' >>confdefs.h
  3020. echo $ac_declaration >>confdefs.h
  3021. echo '#endif' >>confdefs.h
  3022. fi
  3023. else
  3024. echo "$as_me: failed program was:" >&5
  3025. sed 's/^/| /' conftest.$ac_ext >&5
  3026. fi
  3027. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3028. ac_ext=c
  3029. ac_cpp='$CPP $CPPFLAGS'
  3030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3033. depcc="$CC" am_compiler_list=
  3034. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3035. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3036. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3037. echo $ECHO_N "(cached) $ECHO_C" >&6
  3038. else
  3039. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3040. # We make a subdir and do the tests there. Otherwise we can end up
  3041. # making bogus files that we don't know about and never remove. For
  3042. # instance it was reported that on HP-UX the gcc test will end up
  3043. # making a dummy file named `D' -- because `-MD' means `put the output
  3044. # in D'.
  3045. mkdir conftest.dir
  3046. # Copy depcomp to subdir because otherwise we won't find it if we're
  3047. # using a relative directory.
  3048. cp "$am_depcomp" conftest.dir
  3049. cd conftest.dir
  3050. # We will build objects and dependencies in a subdirectory because
  3051. # it helps to detect inapplicable dependency modes. For instance
  3052. # both Tru64's cc and ICC support -MD to output dependencies as a
  3053. # side effect of compilation, but ICC will put the dependencies in
  3054. # the current directory while Tru64 will put them in the object
  3055. # directory.
  3056. mkdir sub
  3057. am_cv_CC_dependencies_compiler_type=none
  3058. if test "$am_compiler_list" = ""; then
  3059. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3060. fi
  3061. for depmode in $am_compiler_list; do
  3062. # Setup a source with many dependencies, because some compilers
  3063. # like to wrap large dependency lists on column 80 (with \), and
  3064. # we should not choose a depcomp mode which is confused by this.
  3065. #
  3066. # We need to recreate these files for each test, as the compiler may
  3067. # overwrite some of them when testing with obscure command lines.
  3068. # This happens at least with the AIX C compiler.
  3069. : > sub/conftest.c
  3070. for i in 1 2 3 4 5 6; do
  3071. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3072. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3073. # Solaris 8's {/usr,}/bin/sh.
  3074. touch sub/conftst$i.h
  3075. done
  3076. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3077. case $depmode in
  3078. nosideeffect)
  3079. # after this tag, mechanisms are not by side-effect, so they'll
  3080. # only be used when explicitly requested
  3081. if test "x$enable_dependency_tracking" = xyes; then
  3082. continue
  3083. else
  3084. break
  3085. fi
  3086. ;;
  3087. none) break ;;
  3088. esac
  3089. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3090. # mode. It turns out that the SunPro C++ compiler does not properly
  3091. # handle `-M -o', and we need to detect this.
  3092. if depmode=$depmode \
  3093. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3094. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3095. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3096. >/dev/null 2>conftest.err &&
  3097. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3098. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3099. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3100. # icc doesn't choke on unknown options, it will just issue warnings
  3101. # or remarks (even with -Werror). So we grep stderr for any message
  3102. # that says an option was ignored or not supported.
  3103. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3104. # icc: Command line warning: ignoring option '-M'; no argument required
  3105. # The diagnosis changed in icc 8.0:
  3106. # icc: Command line remark: option '-MP' not supported
  3107. if (grep 'ignoring option' conftest.err ||
  3108. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3109. am_cv_CC_dependencies_compiler_type=$depmode
  3110. break
  3111. fi
  3112. fi
  3113. done
  3114. cd ..
  3115. rm -rf conftest.dir
  3116. else
  3117. am_cv_CC_dependencies_compiler_type=none
  3118. fi
  3119. fi
  3120. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3121. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3122. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3123. if
  3124. test "x$enable_dependency_tracking" != xno \
  3125. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3126. am__fastdepCC_TRUE=
  3127. am__fastdepCC_FALSE='#'
  3128. else
  3129. am__fastdepCC_TRUE='#'
  3130. am__fastdepCC_FALSE=
  3131. fi
  3132. # Find a good install program. We prefer a C program (faster),
  3133. # so one script is as good as another. But avoid the broken or
  3134. # incompatible versions:
  3135. # SysV /etc/install, /usr/sbin/install
  3136. # SunOS /usr/etc/install
  3137. # IRIX /sbin/install
  3138. # AIX /bin/install
  3139. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3140. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3141. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3142. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3143. # OS/2's system install, which has a completely different semantic
  3144. # ./install, which can be erroneously created by make from ./install.sh.
  3145. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3146. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3147. if test -z "$INSTALL"; then
  3148. if test "${ac_cv_path_install+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3152. for as_dir in $PATH
  3153. do
  3154. IFS=$as_save_IFS
  3155. test -z "$as_dir" && as_dir=.
  3156. # Account for people who put trailing slashes in PATH elements.
  3157. case $as_dir/ in
  3158. ./ | .// | /cC/* | \
  3159. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3160. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3161. /usr/ucb/* ) ;;
  3162. *)
  3163. # OSF1 and SCO ODT 3.0 have their own names for install.
  3164. # Don't use installbsd from OSF since it installs stuff as root
  3165. # by default.
  3166. for ac_prog in ginstall scoinst install; do
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3169. if test $ac_prog = install &&
  3170. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3171. # AIX install. It has an incompatible calling convention.
  3172. :
  3173. elif test $ac_prog = install &&
  3174. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3175. # program-specific install script used by HP pwplus--don't use.
  3176. :
  3177. else
  3178. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3179. break 3
  3180. fi
  3181. fi
  3182. done
  3183. done
  3184. ;;
  3185. esac
  3186. done
  3187. fi
  3188. if test "${ac_cv_path_install+set}" = set; then
  3189. INSTALL=$ac_cv_path_install
  3190. else
  3191. # As a last resort, use the slow shell script. We don't cache a
  3192. # path for INSTALL within a source directory, because that will
  3193. # break other packages using the cache if that directory is
  3194. # removed, or if the path is relative.
  3195. INSTALL=$ac_install_sh
  3196. fi
  3197. fi
  3198. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3199. echo "${ECHO_T}$INSTALL" >&6
  3200. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3201. # It thinks the first close brace ends the variable substitution.
  3202. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3203. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3204. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3205. if test -n "$ac_tool_prefix"; then
  3206. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3207. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3208. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3209. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3210. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. if test -n "$RANLIB"; then
  3214. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3215. else
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3223. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3224. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. fi
  3230. fi
  3231. RANLIB=$ac_cv_prog_RANLIB
  3232. if test -n "$RANLIB"; then
  3233. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3234. echo "${ECHO_T}$RANLIB" >&6
  3235. else
  3236. echo "$as_me:$LINENO: result: no" >&5
  3237. echo "${ECHO_T}no" >&6
  3238. fi
  3239. fi
  3240. if test -z "$ac_cv_prog_RANLIB"; then
  3241. ac_ct_RANLIB=$RANLIB
  3242. # Extract the first word of "ranlib", so it can be a program name with args.
  3243. set dummy ranlib; ac_word=$2
  3244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3246. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3247. echo $ECHO_N "(cached) $ECHO_C" >&6
  3248. else
  3249. if test -n "$ac_ct_RANLIB"; then
  3250. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3259. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3266. fi
  3267. fi
  3268. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3269. if test -n "$ac_ct_RANLIB"; then
  3270. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3271. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3272. else
  3273. echo "$as_me:$LINENO: result: no" >&5
  3274. echo "${ECHO_T}no" >&6
  3275. fi
  3276. RANLIB=$ac_ct_RANLIB
  3277. else
  3278. RANLIB="$ac_cv_prog_RANLIB"
  3279. fi
  3280. for ac_prog in 'bison -y' byacc
  3281. do
  3282. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3283. set dummy $ac_prog; ac_word=$2
  3284. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3286. if test "${ac_cv_prog_YACC+set}" = set; then
  3287. echo $ECHO_N "(cached) $ECHO_C" >&6
  3288. else
  3289. if test -n "$YACC"; then
  3290. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3291. else
  3292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3293. for as_dir in $PATH
  3294. do
  3295. IFS=$as_save_IFS
  3296. test -z "$as_dir" && as_dir=.
  3297. for ac_exec_ext in '' $ac_executable_extensions; do
  3298. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3299. ac_cv_prog_YACC="$ac_prog"
  3300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3301. break 2
  3302. fi
  3303. done
  3304. done
  3305. fi
  3306. fi
  3307. YACC=$ac_cv_prog_YACC
  3308. if test -n "$YACC"; then
  3309. echo "$as_me:$LINENO: result: $YACC" >&5
  3310. echo "${ECHO_T}$YACC" >&6
  3311. else
  3312. echo "$as_me:$LINENO: result: no" >&5
  3313. echo "${ECHO_T}no" >&6
  3314. fi
  3315. test -n "$YACC" && break
  3316. done
  3317. test -n "$YACC" || YACC="yacc"
  3318. # Checks for libraries.
  3319. if test "x$with_gnutls" = "xyes"; then
  3320. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3321. if test "${with_libgnutls_prefix+set}" = set; then
  3322. withval="$with_libgnutls_prefix"
  3323. libgnutls_config_prefix="$withval"
  3324. else
  3325. libgnutls_config_prefix=""
  3326. fi;
  3327. if test x$libgnutls_config_prefix != x ; then
  3328. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3329. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3330. fi
  3331. fi
  3332. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3333. set dummy libgnutls-config; ac_word=$2
  3334. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3335. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3336. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3337. echo $ECHO_N "(cached) $ECHO_C" >&6
  3338. else
  3339. case $LIBGNUTLS_CONFIG in
  3340. [\\/]* | ?:[\\/]*)
  3341. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3342. ;;
  3343. *)
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3351. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3358. ;;
  3359. esac
  3360. fi
  3361. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3362. if test -n "$LIBGNUTLS_CONFIG"; then
  3363. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3364. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3365. else
  3366. echo "$as_me:$LINENO: result: no" >&5
  3367. echo "${ECHO_T}no" >&6
  3368. fi
  3369. min_libgnutls_version=1.2.9
  3370. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3371. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3372. no_libgnutls=""
  3373. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3374. no_libgnutls=yes
  3375. else
  3376. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3377. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3378. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3379. ac_save_CFLAGS="$CFLAGS"
  3380. ac_save_LIBS="$LIBS"
  3381. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3382. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3383. rm -f conf.libgnutlstest
  3384. if test "$cross_compiling" = yes; then
  3385. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3386. else
  3387. cat >conftest.$ac_ext <<_ACEOF
  3388. /* confdefs.h. */
  3389. _ACEOF
  3390. cat confdefs.h >>conftest.$ac_ext
  3391. cat >>conftest.$ac_ext <<_ACEOF
  3392. /* end confdefs.h. */
  3393. #include <stdio.h>
  3394. #include <stdlib.h>
  3395. #include <string.h>
  3396. #include <gnutls/gnutls.h>
  3397. int
  3398. main ()
  3399. {
  3400. system ("touch conf.libgnutlstest");
  3401. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3402. {
  3403. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3404. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3405. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3406. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3407. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3408. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3409. printf("*** required on your system.\n");
  3410. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3411. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3412. printf("*** before re-running configure\n");
  3413. }
  3414. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3415. {
  3416. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3417. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3418. }
  3419. else
  3420. {
  3421. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3422. {
  3423. return 0;
  3424. }
  3425. else
  3426. {
  3427. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3428. gnutls_check_version(NULL) );
  3429. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3430. "$min_libgnutls_version" );
  3431. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3432. printf("*** \n");
  3433. printf("*** If you have already installed a sufficiently new version, this error\n");
  3434. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3435. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3436. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3437. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3438. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3439. printf("*** so that the correct libraries are found at run-time))\n");
  3440. }
  3441. }
  3442. return 1;
  3443. }
  3444. _ACEOF
  3445. rm -f conftest$ac_exeext
  3446. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3447. (eval $ac_link) 2>&5
  3448. ac_status=$?
  3449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3450. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3452. (eval $ac_try) 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }; }; then
  3456. :
  3457. else
  3458. echo "$as_me: program exited with status $ac_status" >&5
  3459. echo "$as_me: failed program was:" >&5
  3460. sed 's/^/| /' conftest.$ac_ext >&5
  3461. ( exit $ac_status )
  3462. no_libgnutls=yes
  3463. fi
  3464. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3465. fi
  3466. CFLAGS="$ac_save_CFLAGS"
  3467. LIBS="$ac_save_LIBS"
  3468. fi
  3469. if test "x$no_libgnutls" = x ; then
  3470. echo "$as_me:$LINENO: result: yes" >&5
  3471. echo "${ECHO_T}yes" >&6
  3472. have_libgnutls=yes
  3473. else
  3474. if test -f conf.libgnutlstest ; then
  3475. :
  3476. else
  3477. echo "$as_me:$LINENO: result: no" >&5
  3478. echo "${ECHO_T}no" >&6
  3479. fi
  3480. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3481. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3482. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3483. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3484. echo "*** full path to libgnutls-config."
  3485. else
  3486. if test -f conf.libgnutlstest ; then
  3487. :
  3488. else
  3489. echo "*** Could not run libgnutls test program, checking why..."
  3490. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3491. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3492. cat >conftest.$ac_ext <<_ACEOF
  3493. /* confdefs.h. */
  3494. _ACEOF
  3495. cat confdefs.h >>conftest.$ac_ext
  3496. cat >>conftest.$ac_ext <<_ACEOF
  3497. /* end confdefs.h. */
  3498. #include <stdio.h>
  3499. #include <stdlib.h>
  3500. #include <string.h>
  3501. #include <gnutls/gnutls.h>
  3502. int
  3503. main ()
  3504. {
  3505. return !!gnutls_check_version(NULL);
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. rm -f conftest.$ac_objext conftest$ac_exeext
  3511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3512. (eval $ac_link) 2>conftest.er1
  3513. ac_status=$?
  3514. grep -v '^ *+' conftest.er1 >conftest.err
  3515. rm -f conftest.er1
  3516. cat conftest.err >&5
  3517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3518. (exit $ac_status); } &&
  3519. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3521. (eval $ac_try) 2>&5
  3522. ac_status=$?
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); }; } &&
  3525. { ac_try='test -s conftest$ac_exeext'
  3526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3527. (eval $ac_try) 2>&5
  3528. ac_status=$?
  3529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. (exit $ac_status); }; }; then
  3531. echo "*** The test program compiled, but did not run. This usually means"
  3532. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3533. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3534. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3535. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3536. echo "*** is required on your system"
  3537. echo "***"
  3538. echo "*** If you have an old version installed, it is best to remove it, although"
  3539. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3540. echo "***"
  3541. else
  3542. echo "$as_me: failed program was:" >&5
  3543. sed 's/^/| /' conftest.$ac_ext >&5
  3544. echo "*** The test program failed to compile or link. See the file config.log for the"
  3545. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3546. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3547. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3548. fi
  3549. rm -f conftest.err conftest.$ac_objext \
  3550. conftest$ac_exeext conftest.$ac_ext
  3551. CFLAGS="$ac_save_CFLAGS"
  3552. LIBS="$ac_save_LIBS"
  3553. fi
  3554. fi
  3555. LIBGNUTLS_CFLAGS=""
  3556. LIBGNUTLS_LIBS=""
  3557. :
  3558. fi
  3559. rm -f conf.libgnutlstest
  3560. if test "x$have_libgnutls" = "xyes"; then
  3561. cat >>confdefs.h <<\_ACEOF
  3562. #define HAVE_LIBGNUTLS 1
  3563. _ACEOF
  3564. fi
  3565. fi
  3566. if test "x$have_libgnutls" = "xyes"; then
  3567. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3568. if test "${with_libgcrypt_prefix+set}" = set; then
  3569. withval="$with_libgcrypt_prefix"
  3570. libgcrypt_config_prefix="$withval"
  3571. else
  3572. libgcrypt_config_prefix=""
  3573. fi;
  3574. if test x$libgcrypt_config_prefix != x ; then
  3575. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3576. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3577. fi
  3578. fi
  3579. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3580. set dummy libgcrypt-config; ac_word=$2
  3581. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3582. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3583. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3584. echo $ECHO_N "(cached) $ECHO_C" >&6
  3585. else
  3586. case $LIBGCRYPT_CONFIG in
  3587. [\\/]* | ?:[\\/]*)
  3588. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3589. ;;
  3590. *)
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3598. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3599. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3600. break 2
  3601. fi
  3602. done
  3603. done
  3604. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3605. ;;
  3606. esac
  3607. fi
  3608. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3609. if test -n "$LIBGCRYPT_CONFIG"; then
  3610. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3611. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3612. else
  3613. echo "$as_me:$LINENO: result: no" >&5
  3614. echo "${ECHO_T}no" >&6
  3615. fi
  3616. tmp=1.2.2
  3617. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3618. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3619. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3620. else
  3621. req_libgcrypt_api=0
  3622. min_libgcrypt_version="$tmp"
  3623. fi
  3624. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3625. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3626. ok=no
  3627. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3628. req_major=`echo $min_libgcrypt_version | \
  3629. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3630. req_minor=`echo $min_libgcrypt_version | \
  3631. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3632. req_micro=`echo $min_libgcrypt_version | \
  3633. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3634. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3635. major=`echo $libgcrypt_config_version | \
  3636. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3637. minor=`echo $libgcrypt_config_version | \
  3638. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3639. micro=`echo $libgcrypt_config_version | \
  3640. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3641. if test "$major" -gt "$req_major"; then
  3642. ok=yes
  3643. else
  3644. if test "$major" -eq "$req_major"; then
  3645. if test "$minor" -gt "$req_minor"; then
  3646. ok=yes
  3647. else
  3648. if test "$minor" -eq "$req_minor"; then
  3649. if test "$micro" -ge "$req_micro"; then
  3650. ok=yes
  3651. fi
  3652. fi
  3653. fi
  3654. fi
  3655. fi
  3656. fi
  3657. if test $ok = yes; then
  3658. echo "$as_me:$LINENO: result: yes" >&5
  3659. echo "${ECHO_T}yes" >&6
  3660. else
  3661. echo "$as_me:$LINENO: result: no" >&5
  3662. echo "${ECHO_T}no" >&6
  3663. fi
  3664. if test $ok = yes; then
  3665. # If we have a recent libgcrypt, we should also check that the
  3666. # API is compatible
  3667. if test "$req_libgcrypt_api" -gt 0 ; then
  3668. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3669. if test "$tmp" -gt 0 ; then
  3670. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3671. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3672. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3673. echo "$as_me:$LINENO: result: okay" >&5
  3674. echo "${ECHO_T}okay" >&6
  3675. else
  3676. ok=no
  3677. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3678. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3679. fi
  3680. fi
  3681. fi
  3682. fi
  3683. if test $ok = yes; then
  3684. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  3685. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  3686. have_libgcrypt=yes
  3687. else
  3688. LIBGCRYPT_CFLAGS=""
  3689. LIBGCRYPT_LIBS=""
  3690. :
  3691. fi
  3692. if test "x$have_libgcrypt" = "xyes"; then
  3693. cat >>confdefs.h <<\_ACEOF
  3694. #define HAVE_LIBGCRYPT 1
  3695. _ACEOF
  3696. fi
  3697. fi
  3698. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  3699. # AC_CHECK_LIB([ssl], [SSL_library_init], [have_openssl=yes])
  3700. # if test "x$have_openssl" = "xyes"; then
  3701. # AC_DEFINE([HAVE_LIBSSL], [1], [Define to 1 if you have openssl.])
  3702. # OPENSSL_LIBS="-lssl"
  3703. # OPENSSL_CFLAGS=""
  3704. # AC_SUBST(OPENSSL_LIBS)
  3705. # AC_SUBST(OPENSSL_CFLAGS)
  3706. # fi
  3707. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  3708. if test "${with_openssl_prefix+set}" = set; then
  3709. withval="$with_openssl_prefix"
  3710. openssl_prefix=$withval
  3711. else
  3712. openssl_prefix=""
  3713. fi;
  3714. if test "x$openssl_prefix" = "x"; then
  3715. openssl_prefix=$prefix
  3716. fi
  3717. openssl_prefix_lib=$openssl_prefix/lib
  3718. openssl_prefix_include=$openssl_prefix/include
  3719. LIBS_save=$LIBS
  3720. CPPFLAGS_save=$CPPFLAGS
  3721. LIBS="-L$openssl_prefix_lib $LIBS"
  3722. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  3723. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  3724. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  3725. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  3726. echo $ECHO_N "(cached) $ECHO_C" >&6
  3727. else
  3728. ac_check_lib_save_LIBS=$LIBS
  3729. LIBS="-lssl $LIBS"
  3730. cat >conftest.$ac_ext <<_ACEOF
  3731. /* confdefs.h. */
  3732. _ACEOF
  3733. cat confdefs.h >>conftest.$ac_ext
  3734. cat >>conftest.$ac_ext <<_ACEOF
  3735. /* end confdefs.h. */
  3736. /* Override any gcc2 internal prototype to avoid an error. */
  3737. #ifdef __cplusplus
  3738. extern "C"
  3739. #endif
  3740. /* We use char because int might match the return type of a gcc2
  3741. builtin and then its argument prototype would still apply. */
  3742. char SSL_library_init ();
  3743. int
  3744. main ()
  3745. {
  3746. SSL_library_init ();
  3747. ;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. rm -f conftest.$ac_objext conftest$ac_exeext
  3752. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3753. (eval $ac_link) 2>conftest.er1
  3754. ac_status=$?
  3755. grep -v '^ *+' conftest.er1 >conftest.err
  3756. rm -f conftest.er1
  3757. cat conftest.err >&5
  3758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3759. (exit $ac_status); } &&
  3760. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3762. (eval $ac_try) 2>&5
  3763. ac_status=$?
  3764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765. (exit $ac_status); }; } &&
  3766. { ac_try='test -s conftest$ac_exeext'
  3767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3768. (eval $ac_try) 2>&5
  3769. ac_status=$?
  3770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3771. (exit $ac_status); }; }; then
  3772. ac_cv_lib_ssl_SSL_library_init=yes
  3773. else
  3774. echo "$as_me: failed program was:" >&5
  3775. sed 's/^/| /' conftest.$ac_ext >&5
  3776. ac_cv_lib_ssl_SSL_library_init=no
  3777. fi
  3778. rm -f conftest.err conftest.$ac_objext \
  3779. conftest$ac_exeext conftest.$ac_ext
  3780. LIBS=$ac_check_lib_save_LIBS
  3781. fi
  3782. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  3783. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  3784. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  3785. have_openssl=yes
  3786. fi
  3787. if test "x$have_openssl" = "xyes"; then
  3788. have_openssl=no
  3789. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  3790. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  3791. if test "${ac_cv_lib_crypto_main+set}" = set; then
  3792. echo $ECHO_N "(cached) $ECHO_C" >&6
  3793. else
  3794. ac_check_lib_save_LIBS=$LIBS
  3795. LIBS="-lcrypto $LIBS"
  3796. cat >conftest.$ac_ext <<_ACEOF
  3797. /* confdefs.h. */
  3798. _ACEOF
  3799. cat confdefs.h >>conftest.$ac_ext
  3800. cat >>conftest.$ac_ext <<_ACEOF
  3801. /* end confdefs.h. */
  3802. int
  3803. main ()
  3804. {
  3805. main ();
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. rm -f conftest.$ac_objext conftest$ac_exeext
  3811. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3812. (eval $ac_link) 2>conftest.er1
  3813. ac_status=$?
  3814. grep -v '^ *+' conftest.er1 >conftest.err
  3815. rm -f conftest.er1
  3816. cat conftest.err >&5
  3817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. (exit $ac_status); } &&
  3819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3821. (eval $ac_try) 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); }; } &&
  3825. { ac_try='test -s conftest$ac_exeext'
  3826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3827. (eval $ac_try) 2>&5
  3828. ac_status=$?
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); }; }; then
  3831. ac_cv_lib_crypto_main=yes
  3832. else
  3833. echo "$as_me: failed program was:" >&5
  3834. sed 's/^/| /' conftest.$ac_ext >&5
  3835. ac_cv_lib_crypto_main=no
  3836. fi
  3837. rm -f conftest.err conftest.$ac_objext \
  3838. conftest$ac_exeext conftest.$ac_ext
  3839. LIBS=$ac_check_lib_save_LIBS
  3840. fi
  3841. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  3842. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  3843. if test $ac_cv_lib_crypto_main = yes; then
  3844. have_openssl=yes
  3845. fi
  3846. if test "x$have_openssl" = "xyes"; then
  3847. cat >>confdefs.h <<\_ACEOF
  3848. #define HAVE_LIBSSL 1
  3849. _ACEOF
  3850. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  3851. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  3852. fi
  3853. fi
  3854. LIBS=$LIBS_save
  3855. CPPFLAGS=$CPPFLAGS_save
  3856. fi
  3857. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  3858. cat >>confdefs.h <<\_ACEOF
  3859. #define ENABLE_SSL 1
  3860. _ACEOF
  3861. fi
  3862. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  3863. cat >>confdefs.h <<\_ACEOF
  3864. #define ENABLE_SHA1DIGEST 1
  3865. _ACEOF
  3866. cat >>confdefs.h <<\_ACEOF
  3867. #define ENABLE_BITTORRENT 1
  3868. _ACEOF
  3869. fi
  3870. # Checks for header files.
  3871. ac_ext=c
  3872. ac_cpp='$CPP $CPPFLAGS'
  3873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3876. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3877. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3878. # On Suns, sometimes $CPP names a directory.
  3879. if test -n "$CPP" && test -d "$CPP"; then
  3880. CPP=
  3881. fi
  3882. if test -z "$CPP"; then
  3883. if test "${ac_cv_prog_CPP+set}" = set; then
  3884. echo $ECHO_N "(cached) $ECHO_C" >&6
  3885. else
  3886. # Double quotes because CPP needs to be expanded
  3887. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3888. do
  3889. ac_preproc_ok=false
  3890. for ac_c_preproc_warn_flag in '' yes
  3891. do
  3892. # Use a header file that comes with gcc, so configuring glibc
  3893. # with a fresh cross-compiler works.
  3894. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3895. # <limits.h> exists even on freestanding compilers.
  3896. # On the NeXT, cc -E runs the code through the compiler's parser,
  3897. # not just through cpp. "Syntax error" is here to catch this case.
  3898. cat >conftest.$ac_ext <<_ACEOF
  3899. /* confdefs.h. */
  3900. _ACEOF
  3901. cat confdefs.h >>conftest.$ac_ext
  3902. cat >>conftest.$ac_ext <<_ACEOF
  3903. /* end confdefs.h. */
  3904. #ifdef __STDC__
  3905. # include <limits.h>
  3906. #else
  3907. # include <assert.h>
  3908. #endif
  3909. Syntax error
  3910. _ACEOF
  3911. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3912. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3913. ac_status=$?
  3914. grep -v '^ *+' conftest.er1 >conftest.err
  3915. rm -f conftest.er1
  3916. cat conftest.err >&5
  3917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3918. (exit $ac_status); } >/dev/null; then
  3919. if test -s conftest.err; then
  3920. ac_cpp_err=$ac_c_preproc_warn_flag
  3921. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3922. else
  3923. ac_cpp_err=
  3924. fi
  3925. else
  3926. ac_cpp_err=yes
  3927. fi
  3928. if test -z "$ac_cpp_err"; then
  3929. :
  3930. else
  3931. echo "$as_me: failed program was:" >&5
  3932. sed 's/^/| /' conftest.$ac_ext >&5
  3933. # Broken: fails on valid input.
  3934. continue
  3935. fi
  3936. rm -f conftest.err conftest.$ac_ext
  3937. # OK, works on sane cases. Now check whether non-existent headers
  3938. # can be detected and how.
  3939. cat >conftest.$ac_ext <<_ACEOF
  3940. /* confdefs.h. */
  3941. _ACEOF
  3942. cat confdefs.h >>conftest.$ac_ext
  3943. cat >>conftest.$ac_ext <<_ACEOF
  3944. /* end confdefs.h. */
  3945. #include <ac_nonexistent.h>
  3946. _ACEOF
  3947. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3948. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3949. ac_status=$?
  3950. grep -v '^ *+' conftest.er1 >conftest.err
  3951. rm -f conftest.er1
  3952. cat conftest.err >&5
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); } >/dev/null; then
  3955. if test -s conftest.err; then
  3956. ac_cpp_err=$ac_c_preproc_warn_flag
  3957. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3958. else
  3959. ac_cpp_err=
  3960. fi
  3961. else
  3962. ac_cpp_err=yes
  3963. fi
  3964. if test -z "$ac_cpp_err"; then
  3965. # Broken: success on invalid input.
  3966. continue
  3967. else
  3968. echo "$as_me: failed program was:" >&5
  3969. sed 's/^/| /' conftest.$ac_ext >&5
  3970. # Passes both tests.
  3971. ac_preproc_ok=:
  3972. break
  3973. fi
  3974. rm -f conftest.err conftest.$ac_ext
  3975. done
  3976. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3977. rm -f conftest.err conftest.$ac_ext
  3978. if $ac_preproc_ok; then
  3979. break
  3980. fi
  3981. done
  3982. ac_cv_prog_CPP=$CPP
  3983. fi
  3984. CPP=$ac_cv_prog_CPP
  3985. else
  3986. ac_cv_prog_CPP=$CPP
  3987. fi
  3988. echo "$as_me:$LINENO: result: $CPP" >&5
  3989. echo "${ECHO_T}$CPP" >&6
  3990. ac_preproc_ok=false
  3991. for ac_c_preproc_warn_flag in '' yes
  3992. do
  3993. # Use a header file that comes with gcc, so configuring glibc
  3994. # with a fresh cross-compiler works.
  3995. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3996. # <limits.h> exists even on freestanding compilers.
  3997. # On the NeXT, cc -E runs the code through the compiler's parser,
  3998. # not just through cpp. "Syntax error" is here to catch this case.
  3999. cat >conftest.$ac_ext <<_ACEOF
  4000. /* confdefs.h. */
  4001. _ACEOF
  4002. cat confdefs.h >>conftest.$ac_ext
  4003. cat >>conftest.$ac_ext <<_ACEOF
  4004. /* end confdefs.h. */
  4005. #ifdef __STDC__
  4006. # include <limits.h>
  4007. #else
  4008. # include <assert.h>
  4009. #endif
  4010. Syntax error
  4011. _ACEOF
  4012. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4013. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4014. ac_status=$?
  4015. grep -v '^ *+' conftest.er1 >conftest.err
  4016. rm -f conftest.er1
  4017. cat conftest.err >&5
  4018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. (exit $ac_status); } >/dev/null; then
  4020. if test -s conftest.err; then
  4021. ac_cpp_err=$ac_c_preproc_warn_flag
  4022. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4023. else
  4024. ac_cpp_err=
  4025. fi
  4026. else
  4027. ac_cpp_err=yes
  4028. fi
  4029. if test -z "$ac_cpp_err"; then
  4030. :
  4031. else
  4032. echo "$as_me: failed program was:" >&5
  4033. sed 's/^/| /' conftest.$ac_ext >&5
  4034. # Broken: fails on valid input.
  4035. continue
  4036. fi
  4037. rm -f conftest.err conftest.$ac_ext
  4038. # OK, works on sane cases. Now check whether non-existent headers
  4039. # can be detected and how.
  4040. cat >conftest.$ac_ext <<_ACEOF
  4041. /* confdefs.h. */
  4042. _ACEOF
  4043. cat confdefs.h >>conftest.$ac_ext
  4044. cat >>conftest.$ac_ext <<_ACEOF
  4045. /* end confdefs.h. */
  4046. #include <ac_nonexistent.h>
  4047. _ACEOF
  4048. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4049. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4050. ac_status=$?
  4051. grep -v '^ *+' conftest.er1 >conftest.err
  4052. rm -f conftest.er1
  4053. cat conftest.err >&5
  4054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4055. (exit $ac_status); } >/dev/null; then
  4056. if test -s conftest.err; then
  4057. ac_cpp_err=$ac_c_preproc_warn_flag
  4058. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4059. else
  4060. ac_cpp_err=
  4061. fi
  4062. else
  4063. ac_cpp_err=yes
  4064. fi
  4065. if test -z "$ac_cpp_err"; then
  4066. # Broken: success on invalid input.
  4067. continue
  4068. else
  4069. echo "$as_me: failed program was:" >&5
  4070. sed 's/^/| /' conftest.$ac_ext >&5
  4071. # Passes both tests.
  4072. ac_preproc_ok=:
  4073. break
  4074. fi
  4075. rm -f conftest.err conftest.$ac_ext
  4076. done
  4077. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4078. rm -f conftest.err conftest.$ac_ext
  4079. if $ac_preproc_ok; then
  4080. :
  4081. else
  4082. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4083. See \`config.log' for more details." >&5
  4084. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4085. See \`config.log' for more details." >&2;}
  4086. { (exit 1); exit 1; }; }
  4087. fi
  4088. ac_ext=c
  4089. ac_cpp='$CPP $CPPFLAGS'
  4090. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4091. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4092. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4093. echo "$as_me:$LINENO: checking for egrep" >&5
  4094. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4095. if test "${ac_cv_prog_egrep+set}" = set; then
  4096. echo $ECHO_N "(cached) $ECHO_C" >&6
  4097. else
  4098. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4099. then ac_cv_prog_egrep='grep -E'
  4100. else ac_cv_prog_egrep='egrep'
  4101. fi
  4102. fi
  4103. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4104. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4105. EGREP=$ac_cv_prog_egrep
  4106. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4107. # for constant arguments. Useless!
  4108. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4109. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4110. if test "${ac_cv_working_alloca_h+set}" = set; then
  4111. echo $ECHO_N "(cached) $ECHO_C" >&6
  4112. else
  4113. cat >conftest.$ac_ext <<_ACEOF
  4114. /* confdefs.h. */
  4115. _ACEOF
  4116. cat confdefs.h >>conftest.$ac_ext
  4117. cat >>conftest.$ac_ext <<_ACEOF
  4118. /* end confdefs.h. */
  4119. #include <alloca.h>
  4120. int
  4121. main ()
  4122. {
  4123. char *p = (char *) alloca (2 * sizeof (int));
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. rm -f conftest.$ac_objext conftest$ac_exeext
  4129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4130. (eval $ac_link) 2>conftest.er1
  4131. ac_status=$?
  4132. grep -v '^ *+' conftest.er1 >conftest.err
  4133. rm -f conftest.er1
  4134. cat conftest.err >&5
  4135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4136. (exit $ac_status); } &&
  4137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4139. (eval $ac_try) 2>&5
  4140. ac_status=$?
  4141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4142. (exit $ac_status); }; } &&
  4143. { ac_try='test -s conftest$ac_exeext'
  4144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4145. (eval $ac_try) 2>&5
  4146. ac_status=$?
  4147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. (exit $ac_status); }; }; then
  4149. ac_cv_working_alloca_h=yes
  4150. else
  4151. echo "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. ac_cv_working_alloca_h=no
  4154. fi
  4155. rm -f conftest.err conftest.$ac_objext \
  4156. conftest$ac_exeext conftest.$ac_ext
  4157. fi
  4158. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4159. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4160. if test $ac_cv_working_alloca_h = yes; then
  4161. cat >>confdefs.h <<\_ACEOF
  4162. #define HAVE_ALLOCA_H 1
  4163. _ACEOF
  4164. fi
  4165. echo "$as_me:$LINENO: checking for alloca" >&5
  4166. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4167. if test "${ac_cv_func_alloca_works+set}" = set; then
  4168. echo $ECHO_N "(cached) $ECHO_C" >&6
  4169. else
  4170. cat >conftest.$ac_ext <<_ACEOF
  4171. /* confdefs.h. */
  4172. _ACEOF
  4173. cat confdefs.h >>conftest.$ac_ext
  4174. cat >>conftest.$ac_ext <<_ACEOF
  4175. /* end confdefs.h. */
  4176. #ifdef __GNUC__
  4177. # define alloca __builtin_alloca
  4178. #else
  4179. # ifdef _MSC_VER
  4180. # include <malloc.h>
  4181. # define alloca _alloca
  4182. # else
  4183. # if HAVE_ALLOCA_H
  4184. # include <alloca.h>
  4185. # else
  4186. # ifdef _AIX
  4187. #pragma alloca
  4188. # else
  4189. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4190. char *alloca ();
  4191. # endif
  4192. # endif
  4193. # endif
  4194. # endif
  4195. #endif
  4196. int
  4197. main ()
  4198. {
  4199. char *p = (char *) alloca (1);
  4200. ;
  4201. return 0;
  4202. }
  4203. _ACEOF
  4204. rm -f conftest.$ac_objext conftest$ac_exeext
  4205. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4206. (eval $ac_link) 2>conftest.er1
  4207. ac_status=$?
  4208. grep -v '^ *+' conftest.er1 >conftest.err
  4209. rm -f conftest.er1
  4210. cat conftest.err >&5
  4211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4212. (exit $ac_status); } &&
  4213. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4215. (eval $ac_try) 2>&5
  4216. ac_status=$?
  4217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4218. (exit $ac_status); }; } &&
  4219. { ac_try='test -s conftest$ac_exeext'
  4220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4221. (eval $ac_try) 2>&5
  4222. ac_status=$?
  4223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224. (exit $ac_status); }; }; then
  4225. ac_cv_func_alloca_works=yes
  4226. else
  4227. echo "$as_me: failed program was:" >&5
  4228. sed 's/^/| /' conftest.$ac_ext >&5
  4229. ac_cv_func_alloca_works=no
  4230. fi
  4231. rm -f conftest.err conftest.$ac_objext \
  4232. conftest$ac_exeext conftest.$ac_ext
  4233. fi
  4234. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4235. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4236. if test $ac_cv_func_alloca_works = yes; then
  4237. cat >>confdefs.h <<\_ACEOF
  4238. #define HAVE_ALLOCA 1
  4239. _ACEOF
  4240. else
  4241. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4242. # that cause trouble. Some versions do not even contain alloca or
  4243. # contain a buggy version. If you still want to use their alloca,
  4244. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4245. ALLOCA=alloca.$ac_objext
  4246. cat >>confdefs.h <<\_ACEOF
  4247. #define C_ALLOCA 1
  4248. _ACEOF
  4249. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4250. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4251. if test "${ac_cv_os_cray+set}" = set; then
  4252. echo $ECHO_N "(cached) $ECHO_C" >&6
  4253. else
  4254. cat >conftest.$ac_ext <<_ACEOF
  4255. /* confdefs.h. */
  4256. _ACEOF
  4257. cat confdefs.h >>conftest.$ac_ext
  4258. cat >>conftest.$ac_ext <<_ACEOF
  4259. /* end confdefs.h. */
  4260. #if defined(CRAY) && ! defined(CRAY2)
  4261. webecray
  4262. #else
  4263. wenotbecray
  4264. #endif
  4265. _ACEOF
  4266. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4267. $EGREP "webecray" >/dev/null 2>&1; then
  4268. ac_cv_os_cray=yes
  4269. else
  4270. ac_cv_os_cray=no
  4271. fi
  4272. rm -f conftest*
  4273. fi
  4274. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4275. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4276. if test $ac_cv_os_cray = yes; then
  4277. for ac_func in _getb67 GETB67 getb67; do
  4278. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4279. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4280. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4281. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4282. echo $ECHO_N "(cached) $ECHO_C" >&6
  4283. else
  4284. cat >conftest.$ac_ext <<_ACEOF
  4285. /* confdefs.h. */
  4286. _ACEOF
  4287. cat confdefs.h >>conftest.$ac_ext
  4288. cat >>conftest.$ac_ext <<_ACEOF
  4289. /* end confdefs.h. */
  4290. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4291. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4292. #define $ac_func innocuous_$ac_func
  4293. /* System header to define __stub macros and hopefully few prototypes,
  4294. which can conflict with char $ac_func (); below.
  4295. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4296. <limits.h> exists even on freestanding compilers. */
  4297. #ifdef __STDC__
  4298. # include <limits.h>
  4299. #else
  4300. # include <assert.h>
  4301. #endif
  4302. #undef $ac_func
  4303. /* Override any gcc2 internal prototype to avoid an error. */
  4304. #ifdef __cplusplus
  4305. extern "C"
  4306. {
  4307. #endif
  4308. /* We use char because int might match the return type of a gcc2
  4309. builtin and then its argument prototype would still apply. */
  4310. char $ac_func ();
  4311. /* The GNU C library defines this for functions which it implements
  4312. to always fail with ENOSYS. Some functions are actually named
  4313. something starting with __ and the normal name is an alias. */
  4314. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4315. choke me
  4316. #else
  4317. char (*f) () = $ac_func;
  4318. #endif
  4319. #ifdef __cplusplus
  4320. }
  4321. #endif
  4322. int
  4323. main ()
  4324. {
  4325. return f != $ac_func;
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. rm -f conftest.$ac_objext conftest$ac_exeext
  4331. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4332. (eval $ac_link) 2>conftest.er1
  4333. ac_status=$?
  4334. grep -v '^ *+' conftest.er1 >conftest.err
  4335. rm -f conftest.er1
  4336. cat conftest.err >&5
  4337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4338. (exit $ac_status); } &&
  4339. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4341. (eval $ac_try) 2>&5
  4342. ac_status=$?
  4343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4344. (exit $ac_status); }; } &&
  4345. { ac_try='test -s conftest$ac_exeext'
  4346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4347. (eval $ac_try) 2>&5
  4348. ac_status=$?
  4349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4350. (exit $ac_status); }; }; then
  4351. eval "$as_ac_var=yes"
  4352. else
  4353. echo "$as_me: failed program was:" >&5
  4354. sed 's/^/| /' conftest.$ac_ext >&5
  4355. eval "$as_ac_var=no"
  4356. fi
  4357. rm -f conftest.err conftest.$ac_objext \
  4358. conftest$ac_exeext conftest.$ac_ext
  4359. fi
  4360. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4361. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4362. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4363. cat >>confdefs.h <<_ACEOF
  4364. #define CRAY_STACKSEG_END $ac_func
  4365. _ACEOF
  4366. break
  4367. fi
  4368. done
  4369. fi
  4370. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4371. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4372. if test "${ac_cv_c_stack_direction+set}" = set; then
  4373. echo $ECHO_N "(cached) $ECHO_C" >&6
  4374. else
  4375. if test "$cross_compiling" = yes; then
  4376. ac_cv_c_stack_direction=0
  4377. else
  4378. cat >conftest.$ac_ext <<_ACEOF
  4379. /* confdefs.h. */
  4380. _ACEOF
  4381. cat confdefs.h >>conftest.$ac_ext
  4382. cat >>conftest.$ac_ext <<_ACEOF
  4383. /* end confdefs.h. */
  4384. int
  4385. find_stack_direction ()
  4386. {
  4387. static char *addr = 0;
  4388. auto char dummy;
  4389. if (addr == 0)
  4390. {
  4391. addr = &dummy;
  4392. return find_stack_direction ();
  4393. }
  4394. else
  4395. return (&dummy > addr) ? 1 : -1;
  4396. }
  4397. int
  4398. main ()
  4399. {
  4400. exit (find_stack_direction () < 0);
  4401. }
  4402. _ACEOF
  4403. rm -f conftest$ac_exeext
  4404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4405. (eval $ac_link) 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4410. (eval $ac_try) 2>&5
  4411. ac_status=$?
  4412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4413. (exit $ac_status); }; }; then
  4414. ac_cv_c_stack_direction=1
  4415. else
  4416. echo "$as_me: program exited with status $ac_status" >&5
  4417. echo "$as_me: failed program was:" >&5
  4418. sed 's/^/| /' conftest.$ac_ext >&5
  4419. ( exit $ac_status )
  4420. ac_cv_c_stack_direction=-1
  4421. fi
  4422. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4423. fi
  4424. fi
  4425. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4426. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4427. cat >>confdefs.h <<_ACEOF
  4428. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4429. _ACEOF
  4430. fi
  4431. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4432. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4433. if test "${ac_cv_header_stdc+set}" = set; then
  4434. echo $ECHO_N "(cached) $ECHO_C" >&6
  4435. else
  4436. cat >conftest.$ac_ext <<_ACEOF
  4437. /* confdefs.h. */
  4438. _ACEOF
  4439. cat confdefs.h >>conftest.$ac_ext
  4440. cat >>conftest.$ac_ext <<_ACEOF
  4441. /* end confdefs.h. */
  4442. #include <stdlib.h>
  4443. #include <stdarg.h>
  4444. #include <string.h>
  4445. #include <float.h>
  4446. int
  4447. main ()
  4448. {
  4449. ;
  4450. return 0;
  4451. }
  4452. _ACEOF
  4453. rm -f conftest.$ac_objext
  4454. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4455. (eval $ac_compile) 2>conftest.er1
  4456. ac_status=$?
  4457. grep -v '^ *+' conftest.er1 >conftest.err
  4458. rm -f conftest.er1
  4459. cat conftest.err >&5
  4460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4461. (exit $ac_status); } &&
  4462. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4464. (eval $ac_try) 2>&5
  4465. ac_status=$?
  4466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4467. (exit $ac_status); }; } &&
  4468. { ac_try='test -s conftest.$ac_objext'
  4469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4470. (eval $ac_try) 2>&5
  4471. ac_status=$?
  4472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); }; }; then
  4474. ac_cv_header_stdc=yes
  4475. else
  4476. echo "$as_me: failed program was:" >&5
  4477. sed 's/^/| /' conftest.$ac_ext >&5
  4478. ac_cv_header_stdc=no
  4479. fi
  4480. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. if test $ac_cv_header_stdc = yes; then
  4482. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4483. cat >conftest.$ac_ext <<_ACEOF
  4484. /* confdefs.h. */
  4485. _ACEOF
  4486. cat confdefs.h >>conftest.$ac_ext
  4487. cat >>conftest.$ac_ext <<_ACEOF
  4488. /* end confdefs.h. */
  4489. #include <string.h>
  4490. _ACEOF
  4491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4492. $EGREP "memchr" >/dev/null 2>&1; then
  4493. :
  4494. else
  4495. ac_cv_header_stdc=no
  4496. fi
  4497. rm -f conftest*
  4498. fi
  4499. if test $ac_cv_header_stdc = yes; then
  4500. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <stdlib.h>
  4508. _ACEOF
  4509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4510. $EGREP "free" >/dev/null 2>&1; then
  4511. :
  4512. else
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f conftest*
  4516. fi
  4517. if test $ac_cv_header_stdc = yes; then
  4518. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4519. if test "$cross_compiling" = yes; then
  4520. :
  4521. else
  4522. cat >conftest.$ac_ext <<_ACEOF
  4523. /* confdefs.h. */
  4524. _ACEOF
  4525. cat confdefs.h >>conftest.$ac_ext
  4526. cat >>conftest.$ac_ext <<_ACEOF
  4527. /* end confdefs.h. */
  4528. #include <ctype.h>
  4529. #if ((' ' & 0x0FF) == 0x020)
  4530. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4531. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4532. #else
  4533. # define ISLOWER(c) \
  4534. (('a' <= (c) && (c) <= 'i') \
  4535. || ('j' <= (c) && (c) <= 'r') \
  4536. || ('s' <= (c) && (c) <= 'z'))
  4537. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4538. #endif
  4539. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4540. int
  4541. main ()
  4542. {
  4543. int i;
  4544. for (i = 0; i < 256; i++)
  4545. if (XOR (islower (i), ISLOWER (i))
  4546. || toupper (i) != TOUPPER (i))
  4547. exit(2);
  4548. exit (0);
  4549. }
  4550. _ACEOF
  4551. rm -f conftest$ac_exeext
  4552. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4553. (eval $ac_link) 2>&5
  4554. ac_status=$?
  4555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4556. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4558. (eval $ac_try) 2>&5
  4559. ac_status=$?
  4560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4561. (exit $ac_status); }; }; then
  4562. :
  4563. else
  4564. echo "$as_me: program exited with status $ac_status" >&5
  4565. echo "$as_me: failed program was:" >&5
  4566. sed 's/^/| /' conftest.$ac_ext >&5
  4567. ( exit $ac_status )
  4568. ac_cv_header_stdc=no
  4569. fi
  4570. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4571. fi
  4572. fi
  4573. fi
  4574. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4575. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4576. if test $ac_cv_header_stdc = yes; then
  4577. cat >>confdefs.h <<\_ACEOF
  4578. #define STDC_HEADERS 1
  4579. _ACEOF
  4580. fi
  4581. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4582. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4583. inttypes.h stdint.h unistd.h
  4584. do
  4585. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4586. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4587. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4588. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4589. echo $ECHO_N "(cached) $ECHO_C" >&6
  4590. else
  4591. cat >conftest.$ac_ext <<_ACEOF
  4592. /* confdefs.h. */
  4593. _ACEOF
  4594. cat confdefs.h >>conftest.$ac_ext
  4595. cat >>conftest.$ac_ext <<_ACEOF
  4596. /* end confdefs.h. */
  4597. $ac_includes_default
  4598. #include <$ac_header>
  4599. _ACEOF
  4600. rm -f conftest.$ac_objext
  4601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4602. (eval $ac_compile) 2>conftest.er1
  4603. ac_status=$?
  4604. grep -v '^ *+' conftest.er1 >conftest.err
  4605. rm -f conftest.er1
  4606. cat conftest.err >&5
  4607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4608. (exit $ac_status); } &&
  4609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4611. (eval $ac_try) 2>&5
  4612. ac_status=$?
  4613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4614. (exit $ac_status); }; } &&
  4615. { ac_try='test -s conftest.$ac_objext'
  4616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4617. (eval $ac_try) 2>&5
  4618. ac_status=$?
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); }; }; then
  4621. eval "$as_ac_Header=yes"
  4622. else
  4623. echo "$as_me: failed program was:" >&5
  4624. sed 's/^/| /' conftest.$ac_ext >&5
  4625. eval "$as_ac_Header=no"
  4626. fi
  4627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4628. fi
  4629. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4630. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4631. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4632. cat >>confdefs.h <<_ACEOF
  4633. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4634. _ACEOF
  4635. fi
  4636. done
  4637. for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  4638. do
  4639. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4640. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4641. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4642. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4643. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4644. echo $ECHO_N "(cached) $ECHO_C" >&6
  4645. fi
  4646. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4647. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4648. else
  4649. # Is the header compilable?
  4650. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4651. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4652. cat >conftest.$ac_ext <<_ACEOF
  4653. /* confdefs.h. */
  4654. _ACEOF
  4655. cat confdefs.h >>conftest.$ac_ext
  4656. cat >>conftest.$ac_ext <<_ACEOF
  4657. /* end confdefs.h. */
  4658. $ac_includes_default
  4659. #include <$ac_header>
  4660. _ACEOF
  4661. rm -f conftest.$ac_objext
  4662. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4663. (eval $ac_compile) 2>conftest.er1
  4664. ac_status=$?
  4665. grep -v '^ *+' conftest.er1 >conftest.err
  4666. rm -f conftest.er1
  4667. cat conftest.err >&5
  4668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. (exit $ac_status); } &&
  4670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4672. (eval $ac_try) 2>&5
  4673. ac_status=$?
  4674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4675. (exit $ac_status); }; } &&
  4676. { ac_try='test -s conftest.$ac_objext'
  4677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4678. (eval $ac_try) 2>&5
  4679. ac_status=$?
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); }; }; then
  4682. ac_header_compiler=yes
  4683. else
  4684. echo "$as_me: failed program was:" >&5
  4685. sed 's/^/| /' conftest.$ac_ext >&5
  4686. ac_header_compiler=no
  4687. fi
  4688. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4689. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4690. echo "${ECHO_T}$ac_header_compiler" >&6
  4691. # Is the header present?
  4692. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4693. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4694. cat >conftest.$ac_ext <<_ACEOF
  4695. /* confdefs.h. */
  4696. _ACEOF
  4697. cat confdefs.h >>conftest.$ac_ext
  4698. cat >>conftest.$ac_ext <<_ACEOF
  4699. /* end confdefs.h. */
  4700. #include <$ac_header>
  4701. _ACEOF
  4702. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4703. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4704. ac_status=$?
  4705. grep -v '^ *+' conftest.er1 >conftest.err
  4706. rm -f conftest.er1
  4707. cat conftest.err >&5
  4708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4709. (exit $ac_status); } >/dev/null; then
  4710. if test -s conftest.err; then
  4711. ac_cpp_err=$ac_c_preproc_warn_flag
  4712. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4713. else
  4714. ac_cpp_err=
  4715. fi
  4716. else
  4717. ac_cpp_err=yes
  4718. fi
  4719. if test -z "$ac_cpp_err"; then
  4720. ac_header_preproc=yes
  4721. else
  4722. echo "$as_me: failed program was:" >&5
  4723. sed 's/^/| /' conftest.$ac_ext >&5
  4724. ac_header_preproc=no
  4725. fi
  4726. rm -f conftest.err conftest.$ac_ext
  4727. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4728. echo "${ECHO_T}$ac_header_preproc" >&6
  4729. # So? What about this header?
  4730. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4731. yes:no: )
  4732. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4733. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4734. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4735. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4736. ac_header_preproc=yes
  4737. ;;
  4738. no:yes:* )
  4739. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4740. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4741. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4742. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4743. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4744. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4745. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4746. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4747. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4748. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4749. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4750. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4751. (
  4752. cat <<\_ASBOX
  4753. ## ----------------------------------- ##
  4754. ## Report this to tujikawa@rednoah.com ##
  4755. ## ----------------------------------- ##
  4756. _ASBOX
  4757. ) |
  4758. sed "s/^/$as_me: WARNING: /" >&2
  4759. ;;
  4760. esac
  4761. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4762. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4763. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4764. echo $ECHO_N "(cached) $ECHO_C" >&6
  4765. else
  4766. eval "$as_ac_Header=\$ac_header_preproc"
  4767. fi
  4768. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4769. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4770. fi
  4771. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4772. cat >>confdefs.h <<_ACEOF
  4773. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4774. _ACEOF
  4775. fi
  4776. done
  4777. # Checks for typedefs, structures, and compiler characteristics.
  4778. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  4779. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  4780. if test "${ac_cv_header_stdbool_h+set}" = set; then
  4781. echo $ECHO_N "(cached) $ECHO_C" >&6
  4782. else
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. #include <stdbool.h>
  4790. #ifndef bool
  4791. # error bool is not defined
  4792. #endif
  4793. #ifndef false
  4794. # error false is not defined
  4795. #endif
  4796. #if false
  4797. # error false is not 0
  4798. #endif
  4799. #ifndef true
  4800. # error true is not defined
  4801. #endif
  4802. #if true != 1
  4803. # error true is not 1
  4804. #endif
  4805. #ifndef __bool_true_false_are_defined
  4806. # error __bool_true_false_are_defined is not defined
  4807. #endif
  4808. struct s { _Bool s: 1; _Bool t; } s;
  4809. char a[true == 1 ? 1 : -1];
  4810. char b[false == 0 ? 1 : -1];
  4811. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4812. char d[(bool) -0.5 == true ? 1 : -1];
  4813. bool e = &s;
  4814. char f[(_Bool) -0.0 == false ? 1 : -1];
  4815. char g[true];
  4816. char h[sizeof (_Bool)];
  4817. char i[sizeof s.t];
  4818. int
  4819. main ()
  4820. {
  4821. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  4822. ;
  4823. return 0;
  4824. }
  4825. _ACEOF
  4826. rm -f conftest.$ac_objext
  4827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4828. (eval $ac_compile) 2>conftest.er1
  4829. ac_status=$?
  4830. grep -v '^ *+' conftest.er1 >conftest.err
  4831. rm -f conftest.er1
  4832. cat conftest.err >&5
  4833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4834. (exit $ac_status); } &&
  4835. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4837. (eval $ac_try) 2>&5
  4838. ac_status=$?
  4839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4840. (exit $ac_status); }; } &&
  4841. { ac_try='test -s conftest.$ac_objext'
  4842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4843. (eval $ac_try) 2>&5
  4844. ac_status=$?
  4845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4846. (exit $ac_status); }; }; then
  4847. ac_cv_header_stdbool_h=yes
  4848. else
  4849. echo "$as_me: failed program was:" >&5
  4850. sed 's/^/| /' conftest.$ac_ext >&5
  4851. ac_cv_header_stdbool_h=no
  4852. fi
  4853. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4854. fi
  4855. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  4856. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  4857. echo "$as_me:$LINENO: checking for _Bool" >&5
  4858. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  4859. if test "${ac_cv_type__Bool+set}" = set; then
  4860. echo $ECHO_N "(cached) $ECHO_C" >&6
  4861. else
  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. int
  4870. main ()
  4871. {
  4872. if ((_Bool *) 0)
  4873. return 0;
  4874. if (sizeof (_Bool))
  4875. return 0;
  4876. ;
  4877. return 0;
  4878. }
  4879. _ACEOF
  4880. rm -f conftest.$ac_objext
  4881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4882. (eval $ac_compile) 2>conftest.er1
  4883. ac_status=$?
  4884. grep -v '^ *+' conftest.er1 >conftest.err
  4885. rm -f conftest.er1
  4886. cat conftest.err >&5
  4887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4888. (exit $ac_status); } &&
  4889. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4891. (eval $ac_try) 2>&5
  4892. ac_status=$?
  4893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4894. (exit $ac_status); }; } &&
  4895. { ac_try='test -s conftest.$ac_objext'
  4896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4897. (eval $ac_try) 2>&5
  4898. ac_status=$?
  4899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4900. (exit $ac_status); }; }; then
  4901. ac_cv_type__Bool=yes
  4902. else
  4903. echo "$as_me: failed program was:" >&5
  4904. sed 's/^/| /' conftest.$ac_ext >&5
  4905. ac_cv_type__Bool=no
  4906. fi
  4907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4908. fi
  4909. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  4910. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  4911. if test $ac_cv_type__Bool = yes; then
  4912. cat >>confdefs.h <<_ACEOF
  4913. #define HAVE__BOOL 1
  4914. _ACEOF
  4915. fi
  4916. if test $ac_cv_header_stdbool_h = yes; then
  4917. cat >>confdefs.h <<\_ACEOF
  4918. #define HAVE_STDBOOL_H 1
  4919. _ACEOF
  4920. fi
  4921. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4922. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4923. if test "${ac_cv_c_const+set}" = set; then
  4924. echo $ECHO_N "(cached) $ECHO_C" >&6
  4925. else
  4926. cat >conftest.$ac_ext <<_ACEOF
  4927. /* confdefs.h. */
  4928. _ACEOF
  4929. cat confdefs.h >>conftest.$ac_ext
  4930. cat >>conftest.$ac_ext <<_ACEOF
  4931. /* end confdefs.h. */
  4932. int
  4933. main ()
  4934. {
  4935. /* FIXME: Include the comments suggested by Paul. */
  4936. #ifndef __cplusplus
  4937. /* Ultrix mips cc rejects this. */
  4938. typedef int charset[2];
  4939. const charset x;
  4940. /* SunOS 4.1.1 cc rejects this. */
  4941. char const *const *ccp;
  4942. char **p;
  4943. /* NEC SVR4.0.2 mips cc rejects this. */
  4944. struct point {int x, y;};
  4945. static struct point const zero = {0,0};
  4946. /* AIX XL C 1.02.0.0 rejects this.
  4947. It does not let you subtract one const X* pointer from another in
  4948. an arm of an if-expression whose if-part is not a constant
  4949. expression */
  4950. const char *g = "string";
  4951. ccp = &g + (g ? g-g : 0);
  4952. /* HPUX 7.0 cc rejects these. */
  4953. ++ccp;
  4954. p = (char**) ccp;
  4955. ccp = (char const *const *) p;
  4956. { /* SCO 3.2v4 cc rejects this. */
  4957. char *t;
  4958. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4959. *t++ = 0;
  4960. }
  4961. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4962. int x[] = {25, 17};
  4963. const int *foo = &x[0];
  4964. ++foo;
  4965. }
  4966. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4967. typedef const int *iptr;
  4968. iptr p = 0;
  4969. ++p;
  4970. }
  4971. { /* AIX XL C 1.02.0.0 rejects this saying
  4972. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4973. struct s { int j; const int *ap[3]; };
  4974. struct s *b; b->j = 5;
  4975. }
  4976. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4977. const int foo = 10;
  4978. }
  4979. #endif
  4980. ;
  4981. return 0;
  4982. }
  4983. _ACEOF
  4984. rm -f conftest.$ac_objext
  4985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4986. (eval $ac_compile) 2>conftest.er1
  4987. ac_status=$?
  4988. grep -v '^ *+' conftest.er1 >conftest.err
  4989. rm -f conftest.er1
  4990. cat conftest.err >&5
  4991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4992. (exit $ac_status); } &&
  4993. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4995. (eval $ac_try) 2>&5
  4996. ac_status=$?
  4997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); }; } &&
  4999. { ac_try='test -s conftest.$ac_objext'
  5000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5001. (eval $ac_try) 2>&5
  5002. ac_status=$?
  5003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5004. (exit $ac_status); }; }; then
  5005. ac_cv_c_const=yes
  5006. else
  5007. echo "$as_me: failed program was:" >&5
  5008. sed 's/^/| /' conftest.$ac_ext >&5
  5009. ac_cv_c_const=no
  5010. fi
  5011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5012. fi
  5013. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5014. echo "${ECHO_T}$ac_cv_c_const" >&6
  5015. if test $ac_cv_c_const = no; then
  5016. cat >>confdefs.h <<\_ACEOF
  5017. #define const
  5018. _ACEOF
  5019. fi
  5020. echo "$as_me:$LINENO: checking for inline" >&5
  5021. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5022. if test "${ac_cv_c_inline+set}" = set; then
  5023. echo $ECHO_N "(cached) $ECHO_C" >&6
  5024. else
  5025. ac_cv_c_inline=no
  5026. for ac_kw in inline __inline__ __inline; do
  5027. cat >conftest.$ac_ext <<_ACEOF
  5028. /* confdefs.h. */
  5029. _ACEOF
  5030. cat confdefs.h >>conftest.$ac_ext
  5031. cat >>conftest.$ac_ext <<_ACEOF
  5032. /* end confdefs.h. */
  5033. #ifndef __cplusplus
  5034. typedef int foo_t;
  5035. static $ac_kw foo_t static_foo () {return 0; }
  5036. $ac_kw foo_t foo () {return 0; }
  5037. #endif
  5038. _ACEOF
  5039. rm -f conftest.$ac_objext
  5040. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5041. (eval $ac_compile) 2>conftest.er1
  5042. ac_status=$?
  5043. grep -v '^ *+' conftest.er1 >conftest.err
  5044. rm -f conftest.er1
  5045. cat conftest.err >&5
  5046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5047. (exit $ac_status); } &&
  5048. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5050. (eval $ac_try) 2>&5
  5051. ac_status=$?
  5052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5053. (exit $ac_status); }; } &&
  5054. { ac_try='test -s conftest.$ac_objext'
  5055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5056. (eval $ac_try) 2>&5
  5057. ac_status=$?
  5058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5059. (exit $ac_status); }; }; then
  5060. ac_cv_c_inline=$ac_kw; break
  5061. else
  5062. echo "$as_me: failed program was:" >&5
  5063. sed 's/^/| /' conftest.$ac_ext >&5
  5064. fi
  5065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. done
  5067. fi
  5068. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5069. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5070. case $ac_cv_c_inline in
  5071. inline | yes) ;;
  5072. *)
  5073. case $ac_cv_c_inline in
  5074. no) ac_val=;;
  5075. *) ac_val=$ac_cv_c_inline;;
  5076. esac
  5077. cat >>confdefs.h <<_ACEOF
  5078. #ifndef __cplusplus
  5079. #define inline $ac_val
  5080. #endif
  5081. _ACEOF
  5082. ;;
  5083. esac
  5084. echo "$as_me:$LINENO: checking for size_t" >&5
  5085. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5086. if test "${ac_cv_type_size_t+set}" = set; then
  5087. echo $ECHO_N "(cached) $ECHO_C" >&6
  5088. else
  5089. cat >conftest.$ac_ext <<_ACEOF
  5090. /* confdefs.h. */
  5091. _ACEOF
  5092. cat confdefs.h >>conftest.$ac_ext
  5093. cat >>conftest.$ac_ext <<_ACEOF
  5094. /* end confdefs.h. */
  5095. $ac_includes_default
  5096. int
  5097. main ()
  5098. {
  5099. if ((size_t *) 0)
  5100. return 0;
  5101. if (sizeof (size_t))
  5102. return 0;
  5103. ;
  5104. return 0;
  5105. }
  5106. _ACEOF
  5107. rm -f conftest.$ac_objext
  5108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5109. (eval $ac_compile) 2>conftest.er1
  5110. ac_status=$?
  5111. grep -v '^ *+' conftest.er1 >conftest.err
  5112. rm -f conftest.er1
  5113. cat conftest.err >&5
  5114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5115. (exit $ac_status); } &&
  5116. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5118. (eval $ac_try) 2>&5
  5119. ac_status=$?
  5120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); }; } &&
  5122. { ac_try='test -s conftest.$ac_objext'
  5123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5124. (eval $ac_try) 2>&5
  5125. ac_status=$?
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); }; }; then
  5128. ac_cv_type_size_t=yes
  5129. else
  5130. echo "$as_me: failed program was:" >&5
  5131. sed 's/^/| /' conftest.$ac_ext >&5
  5132. ac_cv_type_size_t=no
  5133. fi
  5134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5135. fi
  5136. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5137. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5138. if test $ac_cv_type_size_t = yes; then
  5139. :
  5140. else
  5141. cat >>confdefs.h <<_ACEOF
  5142. #define size_t unsigned
  5143. _ACEOF
  5144. fi
  5145. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5146. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5147. if test "${ac_cv_header_time+set}" = set; then
  5148. echo $ECHO_N "(cached) $ECHO_C" >&6
  5149. else
  5150. cat >conftest.$ac_ext <<_ACEOF
  5151. /* confdefs.h. */
  5152. _ACEOF
  5153. cat confdefs.h >>conftest.$ac_ext
  5154. cat >>conftest.$ac_ext <<_ACEOF
  5155. /* end confdefs.h. */
  5156. #include <sys/types.h>
  5157. #include <sys/time.h>
  5158. #include <time.h>
  5159. int
  5160. main ()
  5161. {
  5162. if ((struct tm *) 0)
  5163. return 0;
  5164. ;
  5165. return 0;
  5166. }
  5167. _ACEOF
  5168. rm -f conftest.$ac_objext
  5169. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5170. (eval $ac_compile) 2>conftest.er1
  5171. ac_status=$?
  5172. grep -v '^ *+' conftest.er1 >conftest.err
  5173. rm -f conftest.er1
  5174. cat conftest.err >&5
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); } &&
  5177. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5179. (eval $ac_try) 2>&5
  5180. ac_status=$?
  5181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182. (exit $ac_status); }; } &&
  5183. { ac_try='test -s conftest.$ac_objext'
  5184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5185. (eval $ac_try) 2>&5
  5186. ac_status=$?
  5187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5188. (exit $ac_status); }; }; then
  5189. ac_cv_header_time=yes
  5190. else
  5191. echo "$as_me: failed program was:" >&5
  5192. sed 's/^/| /' conftest.$ac_ext >&5
  5193. ac_cv_header_time=no
  5194. fi
  5195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5196. fi
  5197. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5198. echo "${ECHO_T}$ac_cv_header_time" >&6
  5199. if test $ac_cv_header_time = yes; then
  5200. cat >>confdefs.h <<\_ACEOF
  5201. #define TIME_WITH_SYS_TIME 1
  5202. _ACEOF
  5203. fi
  5204. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5205. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5206. if test "${ac_cv_struct_tm+set}" = set; then
  5207. echo $ECHO_N "(cached) $ECHO_C" >&6
  5208. else
  5209. cat >conftest.$ac_ext <<_ACEOF
  5210. /* confdefs.h. */
  5211. _ACEOF
  5212. cat confdefs.h >>conftest.$ac_ext
  5213. cat >>conftest.$ac_ext <<_ACEOF
  5214. /* end confdefs.h. */
  5215. #include <sys/types.h>
  5216. #include <time.h>
  5217. int
  5218. main ()
  5219. {
  5220. struct tm *tp; tp->tm_sec;
  5221. ;
  5222. return 0;
  5223. }
  5224. _ACEOF
  5225. rm -f conftest.$ac_objext
  5226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5227. (eval $ac_compile) 2>conftest.er1
  5228. ac_status=$?
  5229. grep -v '^ *+' conftest.er1 >conftest.err
  5230. rm -f conftest.er1
  5231. cat conftest.err >&5
  5232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); } &&
  5234. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5236. (eval $ac_try) 2>&5
  5237. ac_status=$?
  5238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5239. (exit $ac_status); }; } &&
  5240. { ac_try='test -s conftest.$ac_objext'
  5241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5242. (eval $ac_try) 2>&5
  5243. ac_status=$?
  5244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5245. (exit $ac_status); }; }; then
  5246. ac_cv_struct_tm=time.h
  5247. else
  5248. echo "$as_me: failed program was:" >&5
  5249. sed 's/^/| /' conftest.$ac_ext >&5
  5250. ac_cv_struct_tm=sys/time.h
  5251. fi
  5252. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5253. fi
  5254. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5255. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5256. if test $ac_cv_struct_tm = sys/time.h; then
  5257. cat >>confdefs.h <<\_ACEOF
  5258. #define TM_IN_SYS_TIME 1
  5259. _ACEOF
  5260. fi
  5261. echo "$as_me:$LINENO: checking for working volatile" >&5
  5262. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5263. if test "${ac_cv_c_volatile+set}" = set; then
  5264. echo $ECHO_N "(cached) $ECHO_C" >&6
  5265. else
  5266. cat >conftest.$ac_ext <<_ACEOF
  5267. /* confdefs.h. */
  5268. _ACEOF
  5269. cat confdefs.h >>conftest.$ac_ext
  5270. cat >>conftest.$ac_ext <<_ACEOF
  5271. /* end confdefs.h. */
  5272. int
  5273. main ()
  5274. {
  5275. volatile int x;
  5276. int * volatile y;
  5277. ;
  5278. return 0;
  5279. }
  5280. _ACEOF
  5281. rm -f conftest.$ac_objext
  5282. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5283. (eval $ac_compile) 2>conftest.er1
  5284. ac_status=$?
  5285. grep -v '^ *+' conftest.er1 >conftest.err
  5286. rm -f conftest.er1
  5287. cat conftest.err >&5
  5288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5289. (exit $ac_status); } &&
  5290. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5292. (eval $ac_try) 2>&5
  5293. ac_status=$?
  5294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5295. (exit $ac_status); }; } &&
  5296. { ac_try='test -s conftest.$ac_objext'
  5297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5298. (eval $ac_try) 2>&5
  5299. ac_status=$?
  5300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5301. (exit $ac_status); }; }; then
  5302. ac_cv_c_volatile=yes
  5303. else
  5304. echo "$as_me: failed program was:" >&5
  5305. sed 's/^/| /' conftest.$ac_ext >&5
  5306. ac_cv_c_volatile=no
  5307. fi
  5308. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5309. fi
  5310. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5311. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5312. if test $ac_cv_c_volatile = no; then
  5313. cat >>confdefs.h <<\_ACEOF
  5314. #define volatile
  5315. _ACEOF
  5316. fi
  5317. # Checks for library functions.
  5318. MKINSTALLDIRS=
  5319. if test -n "$ac_aux_dir"; then
  5320. case "$ac_aux_dir" in
  5321. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5322. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5323. esac
  5324. fi
  5325. if test -z "$MKINSTALLDIRS"; then
  5326. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5327. fi
  5328. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5329. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5330. # Check whether --enable-nls or --disable-nls was given.
  5331. if test "${enable_nls+set}" = set; then
  5332. enableval="$enable_nls"
  5333. USE_NLS=$enableval
  5334. else
  5335. USE_NLS=yes
  5336. fi;
  5337. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5338. echo "${ECHO_T}$USE_NLS" >&6
  5339. # Prepare PATH_SEPARATOR.
  5340. # The user is always right.
  5341. if test "${PATH_SEPARATOR+set}" != set; then
  5342. echo "#! /bin/sh" >conf$$.sh
  5343. echo "exit 0" >>conf$$.sh
  5344. chmod +x conf$$.sh
  5345. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5346. PATH_SEPARATOR=';'
  5347. else
  5348. PATH_SEPARATOR=:
  5349. fi
  5350. rm -f conf$$.sh
  5351. fi
  5352. # Find out how to test for executable files. Don't use a zero-byte file,
  5353. # as systems may use methods other than mode bits to determine executability.
  5354. cat >conf$$.file <<_ASEOF
  5355. #! /bin/sh
  5356. exit 0
  5357. _ASEOF
  5358. chmod +x conf$$.file
  5359. if test -x conf$$.file >/dev/null 2>&1; then
  5360. ac_executable_p="test -x"
  5361. else
  5362. ac_executable_p="test -f"
  5363. fi
  5364. rm -f conf$$.file
  5365. # Extract the first word of "msgfmt", so it can be a program name with args.
  5366. set dummy msgfmt; ac_word=$2
  5367. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5369. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5370. echo $ECHO_N "(cached) $ECHO_C" >&6
  5371. else
  5372. case "$MSGFMT" in
  5373. [\\/]* | ?:[\\/]*)
  5374. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5375. ;;
  5376. *)
  5377. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5378. for ac_dir in $PATH; do
  5379. IFS="$ac_save_IFS"
  5380. test -z "$ac_dir" && ac_dir=.
  5381. for ac_exec_ext in '' $ac_executable_extensions; do
  5382. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5383. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5384. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5385. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5386. break 2
  5387. fi
  5388. fi
  5389. done
  5390. done
  5391. IFS="$ac_save_IFS"
  5392. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5393. ;;
  5394. esac
  5395. fi
  5396. MSGFMT="$ac_cv_path_MSGFMT"
  5397. if test "$MSGFMT" != ":"; then
  5398. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5399. echo "${ECHO_T}$MSGFMT" >&6
  5400. else
  5401. echo "$as_me:$LINENO: result: no" >&5
  5402. echo "${ECHO_T}no" >&6
  5403. fi
  5404. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5405. set dummy gmsgfmt; ac_word=$2
  5406. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5407. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5408. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5409. echo $ECHO_N "(cached) $ECHO_C" >&6
  5410. else
  5411. case $GMSGFMT in
  5412. [\\/]* | ?:[\\/]*)
  5413. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5414. ;;
  5415. *)
  5416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5417. for as_dir in $PATH
  5418. do
  5419. IFS=$as_save_IFS
  5420. test -z "$as_dir" && as_dir=.
  5421. for ac_exec_ext in '' $ac_executable_extensions; do
  5422. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5423. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5424. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5425. break 2
  5426. fi
  5427. done
  5428. done
  5429. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5430. ;;
  5431. esac
  5432. fi
  5433. GMSGFMT=$ac_cv_path_GMSGFMT
  5434. if test -n "$GMSGFMT"; then
  5435. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5436. echo "${ECHO_T}$GMSGFMT" >&6
  5437. else
  5438. echo "$as_me:$LINENO: result: no" >&5
  5439. echo "${ECHO_T}no" >&6
  5440. fi
  5441. # Prepare PATH_SEPARATOR.
  5442. # The user is always right.
  5443. if test "${PATH_SEPARATOR+set}" != set; then
  5444. echo "#! /bin/sh" >conf$$.sh
  5445. echo "exit 0" >>conf$$.sh
  5446. chmod +x conf$$.sh
  5447. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5448. PATH_SEPARATOR=';'
  5449. else
  5450. PATH_SEPARATOR=:
  5451. fi
  5452. rm -f conf$$.sh
  5453. fi
  5454. # Find out how to test for executable files. Don't use a zero-byte file,
  5455. # as systems may use methods other than mode bits to determine executability.
  5456. cat >conf$$.file <<_ASEOF
  5457. #! /bin/sh
  5458. exit 0
  5459. _ASEOF
  5460. chmod +x conf$$.file
  5461. if test -x conf$$.file >/dev/null 2>&1; then
  5462. ac_executable_p="test -x"
  5463. else
  5464. ac_executable_p="test -f"
  5465. fi
  5466. rm -f conf$$.file
  5467. # Extract the first word of "xgettext", so it can be a program name with args.
  5468. set dummy xgettext; ac_word=$2
  5469. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5470. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5471. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5472. echo $ECHO_N "(cached) $ECHO_C" >&6
  5473. else
  5474. case "$XGETTEXT" in
  5475. [\\/]* | ?:[\\/]*)
  5476. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5477. ;;
  5478. *)
  5479. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5480. for ac_dir in $PATH; do
  5481. IFS="$ac_save_IFS"
  5482. test -z "$ac_dir" && ac_dir=.
  5483. for ac_exec_ext in '' $ac_executable_extensions; do
  5484. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5485. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5486. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5487. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5488. break 2
  5489. fi
  5490. fi
  5491. done
  5492. done
  5493. IFS="$ac_save_IFS"
  5494. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5495. ;;
  5496. esac
  5497. fi
  5498. XGETTEXT="$ac_cv_path_XGETTEXT"
  5499. if test "$XGETTEXT" != ":"; then
  5500. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5501. echo "${ECHO_T}$XGETTEXT" >&6
  5502. else
  5503. echo "$as_me:$LINENO: result: no" >&5
  5504. echo "${ECHO_T}no" >&6
  5505. fi
  5506. rm -f messages.po
  5507. # Prepare PATH_SEPARATOR.
  5508. # The user is always right.
  5509. if test "${PATH_SEPARATOR+set}" != set; then
  5510. echo "#! /bin/sh" >conf$$.sh
  5511. echo "exit 0" >>conf$$.sh
  5512. chmod +x conf$$.sh
  5513. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5514. PATH_SEPARATOR=';'
  5515. else
  5516. PATH_SEPARATOR=:
  5517. fi
  5518. rm -f conf$$.sh
  5519. fi
  5520. # Find out how to test for executable files. Don't use a zero-byte file,
  5521. # as systems may use methods other than mode bits to determine executability.
  5522. cat >conf$$.file <<_ASEOF
  5523. #! /bin/sh
  5524. exit 0
  5525. _ASEOF
  5526. chmod +x conf$$.file
  5527. if test -x conf$$.file >/dev/null 2>&1; then
  5528. ac_executable_p="test -x"
  5529. else
  5530. ac_executable_p="test -f"
  5531. fi
  5532. rm -f conf$$.file
  5533. # Extract the first word of "msgmerge", so it can be a program name with args.
  5534. set dummy msgmerge; ac_word=$2
  5535. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5536. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5537. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5538. echo $ECHO_N "(cached) $ECHO_C" >&6
  5539. else
  5540. case "$MSGMERGE" in
  5541. [\\/]* | ?:[\\/]*)
  5542. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5543. ;;
  5544. *)
  5545. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5546. for ac_dir in $PATH; do
  5547. IFS="$ac_save_IFS"
  5548. test -z "$ac_dir" && ac_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5551. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5552. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5553. break 2
  5554. fi
  5555. fi
  5556. done
  5557. done
  5558. IFS="$ac_save_IFS"
  5559. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5560. ;;
  5561. esac
  5562. fi
  5563. MSGMERGE="$ac_cv_path_MSGMERGE"
  5564. if test "$MSGMERGE" != ":"; then
  5565. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5566. echo "${ECHO_T}$MSGMERGE" >&6
  5567. else
  5568. echo "$as_me:$LINENO: result: no" >&5
  5569. echo "${ECHO_T}no" >&6
  5570. fi
  5571. if test "$GMSGFMT" != ":"; then
  5572. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5573. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5574. : ;
  5575. else
  5576. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5577. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5578. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5579. GMSGFMT=":"
  5580. fi
  5581. fi
  5582. if test "$XGETTEXT" != ":"; then
  5583. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5584. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5585. : ;
  5586. else
  5587. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5588. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5589. XGETTEXT=":"
  5590. fi
  5591. rm -f messages.po
  5592. fi
  5593. ac_config_commands="$ac_config_commands default-1"
  5594. # Make sure we can run config.sub.
  5595. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5596. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5597. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5598. { (exit 1); exit 1; }; }
  5599. echo "$as_me:$LINENO: checking build system type" >&5
  5600. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5601. if test "${ac_cv_build+set}" = set; then
  5602. echo $ECHO_N "(cached) $ECHO_C" >&6
  5603. else
  5604. ac_cv_build_alias=$build_alias
  5605. test -z "$ac_cv_build_alias" &&
  5606. ac_cv_build_alias=`$ac_config_guess`
  5607. test -z "$ac_cv_build_alias" &&
  5608. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5609. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5610. { (exit 1); exit 1; }; }
  5611. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5612. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5613. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5614. { (exit 1); exit 1; }; }
  5615. fi
  5616. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5617. echo "${ECHO_T}$ac_cv_build" >&6
  5618. build=$ac_cv_build
  5619. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5620. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5621. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5622. echo "$as_me:$LINENO: checking host system type" >&5
  5623. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5624. if test "${ac_cv_host+set}" = set; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. else
  5627. ac_cv_host_alias=$host_alias
  5628. test -z "$ac_cv_host_alias" &&
  5629. ac_cv_host_alias=$ac_cv_build_alias
  5630. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5631. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5632. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5633. { (exit 1); exit 1; }; }
  5634. fi
  5635. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5636. echo "${ECHO_T}$ac_cv_host" >&6
  5637. host=$ac_cv_host
  5638. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5639. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5640. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5641. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5642. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5643. if test "${ac_cv_search_strerror+set}" = set; then
  5644. echo $ECHO_N "(cached) $ECHO_C" >&6
  5645. else
  5646. ac_func_search_save_LIBS=$LIBS
  5647. ac_cv_search_strerror=no
  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. /* Override any gcc2 internal prototype to avoid an error. */
  5655. #ifdef __cplusplus
  5656. extern "C"
  5657. #endif
  5658. /* We use char because int might match the return type of a gcc2
  5659. builtin and then its argument prototype would still apply. */
  5660. char strerror ();
  5661. int
  5662. main ()
  5663. {
  5664. strerror ();
  5665. ;
  5666. return 0;
  5667. }
  5668. _ACEOF
  5669. rm -f conftest.$ac_objext conftest$ac_exeext
  5670. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5671. (eval $ac_link) 2>conftest.er1
  5672. ac_status=$?
  5673. grep -v '^ *+' conftest.er1 >conftest.err
  5674. rm -f conftest.er1
  5675. cat conftest.err >&5
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); } &&
  5678. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5680. (eval $ac_try) 2>&5
  5681. ac_status=$?
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); }; } &&
  5684. { ac_try='test -s conftest$ac_exeext'
  5685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5686. (eval $ac_try) 2>&5
  5687. ac_status=$?
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); }; }; then
  5690. ac_cv_search_strerror="none required"
  5691. else
  5692. echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. fi
  5695. rm -f conftest.err conftest.$ac_objext \
  5696. conftest$ac_exeext conftest.$ac_ext
  5697. if test "$ac_cv_search_strerror" = no; then
  5698. for ac_lib in cposix; do
  5699. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5700. cat >conftest.$ac_ext <<_ACEOF
  5701. /* confdefs.h. */
  5702. _ACEOF
  5703. cat confdefs.h >>conftest.$ac_ext
  5704. cat >>conftest.$ac_ext <<_ACEOF
  5705. /* end confdefs.h. */
  5706. /* Override any gcc2 internal prototype to avoid an error. */
  5707. #ifdef __cplusplus
  5708. extern "C"
  5709. #endif
  5710. /* We use char because int might match the return type of a gcc2
  5711. builtin and then its argument prototype would still apply. */
  5712. char strerror ();
  5713. int
  5714. main ()
  5715. {
  5716. strerror ();
  5717. ;
  5718. return 0;
  5719. }
  5720. _ACEOF
  5721. rm -f conftest.$ac_objext conftest$ac_exeext
  5722. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5723. (eval $ac_link) 2>conftest.er1
  5724. ac_status=$?
  5725. grep -v '^ *+' conftest.er1 >conftest.err
  5726. rm -f conftest.er1
  5727. cat conftest.err >&5
  5728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5729. (exit $ac_status); } &&
  5730. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5732. (eval $ac_try) 2>&5
  5733. ac_status=$?
  5734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5735. (exit $ac_status); }; } &&
  5736. { ac_try='test -s conftest$ac_exeext'
  5737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5738. (eval $ac_try) 2>&5
  5739. ac_status=$?
  5740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5741. (exit $ac_status); }; }; then
  5742. ac_cv_search_strerror="-l$ac_lib"
  5743. break
  5744. else
  5745. echo "$as_me: failed program was:" >&5
  5746. sed 's/^/| /' conftest.$ac_ext >&5
  5747. fi
  5748. rm -f conftest.err conftest.$ac_objext \
  5749. conftest$ac_exeext conftest.$ac_ext
  5750. done
  5751. fi
  5752. LIBS=$ac_func_search_save_LIBS
  5753. fi
  5754. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  5755. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  5756. if test "$ac_cv_search_strerror" != no; then
  5757. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  5758. fi
  5759. echo "$as_me:$LINENO: checking for off_t" >&5
  5760. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  5761. if test "${ac_cv_type_off_t+set}" = set; then
  5762. echo $ECHO_N "(cached) $ECHO_C" >&6
  5763. else
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. $ac_includes_default
  5771. int
  5772. main ()
  5773. {
  5774. if ((off_t *) 0)
  5775. return 0;
  5776. if (sizeof (off_t))
  5777. return 0;
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5784. (eval $ac_compile) 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5793. (eval $ac_try) 2>&5
  5794. ac_status=$?
  5795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); }; } &&
  5797. { ac_try='test -s conftest.$ac_objext'
  5798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5799. (eval $ac_try) 2>&5
  5800. ac_status=$?
  5801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802. (exit $ac_status); }; }; then
  5803. ac_cv_type_off_t=yes
  5804. else
  5805. echo "$as_me: failed program was:" >&5
  5806. sed 's/^/| /' conftest.$ac_ext >&5
  5807. ac_cv_type_off_t=no
  5808. fi
  5809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5810. fi
  5811. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  5812. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  5813. if test $ac_cv_type_off_t = yes; then
  5814. :
  5815. else
  5816. cat >>confdefs.h <<_ACEOF
  5817. #define off_t long
  5818. _ACEOF
  5819. fi
  5820. for ac_header in stdlib.h unistd.h
  5821. do
  5822. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5823. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5824. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5825. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5826. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5827. echo $ECHO_N "(cached) $ECHO_C" >&6
  5828. fi
  5829. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5830. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5831. else
  5832. # Is the header compilable?
  5833. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5834. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5835. cat >conftest.$ac_ext <<_ACEOF
  5836. /* confdefs.h. */
  5837. _ACEOF
  5838. cat confdefs.h >>conftest.$ac_ext
  5839. cat >>conftest.$ac_ext <<_ACEOF
  5840. /* end confdefs.h. */
  5841. $ac_includes_default
  5842. #include <$ac_header>
  5843. _ACEOF
  5844. rm -f conftest.$ac_objext
  5845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5846. (eval $ac_compile) 2>conftest.er1
  5847. ac_status=$?
  5848. grep -v '^ *+' conftest.er1 >conftest.err
  5849. rm -f conftest.er1
  5850. cat conftest.err >&5
  5851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5852. (exit $ac_status); } &&
  5853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5855. (eval $ac_try) 2>&5
  5856. ac_status=$?
  5857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5858. (exit $ac_status); }; } &&
  5859. { ac_try='test -s conftest.$ac_objext'
  5860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5861. (eval $ac_try) 2>&5
  5862. ac_status=$?
  5863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5864. (exit $ac_status); }; }; then
  5865. ac_header_compiler=yes
  5866. else
  5867. echo "$as_me: failed program was:" >&5
  5868. sed 's/^/| /' conftest.$ac_ext >&5
  5869. ac_header_compiler=no
  5870. fi
  5871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5872. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5873. echo "${ECHO_T}$ac_header_compiler" >&6
  5874. # Is the header present?
  5875. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5876. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5877. cat >conftest.$ac_ext <<_ACEOF
  5878. /* confdefs.h. */
  5879. _ACEOF
  5880. cat confdefs.h >>conftest.$ac_ext
  5881. cat >>conftest.$ac_ext <<_ACEOF
  5882. /* end confdefs.h. */
  5883. #include <$ac_header>
  5884. _ACEOF
  5885. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5886. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5887. ac_status=$?
  5888. grep -v '^ *+' conftest.er1 >conftest.err
  5889. rm -f conftest.er1
  5890. cat conftest.err >&5
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); } >/dev/null; then
  5893. if test -s conftest.err; then
  5894. ac_cpp_err=$ac_c_preproc_warn_flag
  5895. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5896. else
  5897. ac_cpp_err=
  5898. fi
  5899. else
  5900. ac_cpp_err=yes
  5901. fi
  5902. if test -z "$ac_cpp_err"; then
  5903. ac_header_preproc=yes
  5904. else
  5905. echo "$as_me: failed program was:" >&5
  5906. sed 's/^/| /' conftest.$ac_ext >&5
  5907. ac_header_preproc=no
  5908. fi
  5909. rm -f conftest.err conftest.$ac_ext
  5910. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5911. echo "${ECHO_T}$ac_header_preproc" >&6
  5912. # So? What about this header?
  5913. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5914. yes:no: )
  5915. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5916. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5917. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5918. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5919. ac_header_preproc=yes
  5920. ;;
  5921. no:yes:* )
  5922. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5923. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5924. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5925. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5926. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5927. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5928. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5929. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5930. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5931. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5932. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5933. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5934. (
  5935. cat <<\_ASBOX
  5936. ## ----------------------------------- ##
  5937. ## Report this to tujikawa@rednoah.com ##
  5938. ## ----------------------------------- ##
  5939. _ASBOX
  5940. ) |
  5941. sed "s/^/$as_me: WARNING: /" >&2
  5942. ;;
  5943. esac
  5944. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5945. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5946. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5947. echo $ECHO_N "(cached) $ECHO_C" >&6
  5948. else
  5949. eval "$as_ac_Header=\$ac_header_preproc"
  5950. fi
  5951. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5952. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5953. fi
  5954. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5955. cat >>confdefs.h <<_ACEOF
  5956. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5957. _ACEOF
  5958. fi
  5959. done
  5960. for ac_func in getpagesize
  5961. do
  5962. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5963. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5964. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5965. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5966. echo $ECHO_N "(cached) $ECHO_C" >&6
  5967. else
  5968. cat >conftest.$ac_ext <<_ACEOF
  5969. /* confdefs.h. */
  5970. _ACEOF
  5971. cat confdefs.h >>conftest.$ac_ext
  5972. cat >>conftest.$ac_ext <<_ACEOF
  5973. /* end confdefs.h. */
  5974. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5975. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5976. #define $ac_func innocuous_$ac_func
  5977. /* System header to define __stub macros and hopefully few prototypes,
  5978. which can conflict with char $ac_func (); below.
  5979. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5980. <limits.h> exists even on freestanding compilers. */
  5981. #ifdef __STDC__
  5982. # include <limits.h>
  5983. #else
  5984. # include <assert.h>
  5985. #endif
  5986. #undef $ac_func
  5987. /* Override any gcc2 internal prototype to avoid an error. */
  5988. #ifdef __cplusplus
  5989. extern "C"
  5990. {
  5991. #endif
  5992. /* We use char because int might match the return type of a gcc2
  5993. builtin and then its argument prototype would still apply. */
  5994. char $ac_func ();
  5995. /* The GNU C library defines this for functions which it implements
  5996. to always fail with ENOSYS. Some functions are actually named
  5997. something starting with __ and the normal name is an alias. */
  5998. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5999. choke me
  6000. #else
  6001. char (*f) () = $ac_func;
  6002. #endif
  6003. #ifdef __cplusplus
  6004. }
  6005. #endif
  6006. int
  6007. main ()
  6008. {
  6009. return f != $ac_func;
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. rm -f conftest.$ac_objext conftest$ac_exeext
  6015. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6016. (eval $ac_link) 2>conftest.er1
  6017. ac_status=$?
  6018. grep -v '^ *+' conftest.er1 >conftest.err
  6019. rm -f conftest.er1
  6020. cat conftest.err >&5
  6021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6022. (exit $ac_status); } &&
  6023. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6025. (eval $ac_try) 2>&5
  6026. ac_status=$?
  6027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); }; } &&
  6029. { ac_try='test -s conftest$ac_exeext'
  6030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6031. (eval $ac_try) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; }; then
  6035. eval "$as_ac_var=yes"
  6036. else
  6037. echo "$as_me: failed program was:" >&5
  6038. sed 's/^/| /' conftest.$ac_ext >&5
  6039. eval "$as_ac_var=no"
  6040. fi
  6041. rm -f conftest.err conftest.$ac_objext \
  6042. conftest$ac_exeext conftest.$ac_ext
  6043. fi
  6044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6045. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6046. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6049. _ACEOF
  6050. fi
  6051. done
  6052. echo "$as_me:$LINENO: checking for working mmap" >&5
  6053. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6054. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6055. echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. else
  6057. if test "$cross_compiling" = yes; then
  6058. ac_cv_func_mmap_fixed_mapped=no
  6059. else
  6060. cat >conftest.$ac_ext <<_ACEOF
  6061. /* confdefs.h. */
  6062. _ACEOF
  6063. cat confdefs.h >>conftest.$ac_ext
  6064. cat >>conftest.$ac_ext <<_ACEOF
  6065. /* end confdefs.h. */
  6066. $ac_includes_default
  6067. /* malloc might have been renamed as rpl_malloc. */
  6068. #undef malloc
  6069. /* Thanks to Mike Haertel and Jim Avera for this test.
  6070. Here is a matrix of mmap possibilities:
  6071. mmap private not fixed
  6072. mmap private fixed at somewhere currently unmapped
  6073. mmap private fixed at somewhere already mapped
  6074. mmap shared not fixed
  6075. mmap shared fixed at somewhere currently unmapped
  6076. mmap shared fixed at somewhere already mapped
  6077. For private mappings, we should verify that changes cannot be read()
  6078. back from the file, nor mmap's back from the file at a different
  6079. address. (There have been systems where private was not correctly
  6080. implemented like the infamous i386 svr4.0, and systems where the
  6081. VM page cache was not coherent with the file system buffer cache
  6082. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6083. For shared mappings, we should conversely verify that changes get
  6084. propagated back to all the places they're supposed to be.
  6085. Grep wants private fixed already mapped.
  6086. The main things grep needs to know about mmap are:
  6087. * does it exist and is it safe to write into the mmap'd area
  6088. * how to use it (BSD variants) */
  6089. #include <fcntl.h>
  6090. #include <sys/mman.h>
  6091. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6092. char *malloc ();
  6093. #endif
  6094. /* This mess was copied from the GNU getpagesize.h. */
  6095. #if !HAVE_GETPAGESIZE
  6096. /* Assume that all systems that can run configure have sys/param.h. */
  6097. # if !HAVE_SYS_PARAM_H
  6098. # define HAVE_SYS_PARAM_H 1
  6099. # endif
  6100. # ifdef _SC_PAGESIZE
  6101. # define getpagesize() sysconf(_SC_PAGESIZE)
  6102. # else /* no _SC_PAGESIZE */
  6103. # if HAVE_SYS_PARAM_H
  6104. # include <sys/param.h>
  6105. # ifdef EXEC_PAGESIZE
  6106. # define getpagesize() EXEC_PAGESIZE
  6107. # else /* no EXEC_PAGESIZE */
  6108. # ifdef NBPG
  6109. # define getpagesize() NBPG * CLSIZE
  6110. # ifndef CLSIZE
  6111. # define CLSIZE 1
  6112. # endif /* no CLSIZE */
  6113. # else /* no NBPG */
  6114. # ifdef NBPC
  6115. # define getpagesize() NBPC
  6116. # else /* no NBPC */
  6117. # ifdef PAGESIZE
  6118. # define getpagesize() PAGESIZE
  6119. # endif /* PAGESIZE */
  6120. # endif /* no NBPC */
  6121. # endif /* no NBPG */
  6122. # endif /* no EXEC_PAGESIZE */
  6123. # else /* no HAVE_SYS_PARAM_H */
  6124. # define getpagesize() 8192 /* punt totally */
  6125. # endif /* no HAVE_SYS_PARAM_H */
  6126. # endif /* no _SC_PAGESIZE */
  6127. #endif /* no HAVE_GETPAGESIZE */
  6128. int
  6129. main ()
  6130. {
  6131. char *data, *data2, *data3;
  6132. int i, pagesize;
  6133. int fd;
  6134. pagesize = getpagesize ();
  6135. /* First, make a file with some known garbage in it. */
  6136. data = (char *) malloc (pagesize);
  6137. if (!data)
  6138. exit (1);
  6139. for (i = 0; i < pagesize; ++i)
  6140. *(data + i) = rand ();
  6141. umask (0);
  6142. fd = creat ("conftest.mmap", 0600);
  6143. if (fd < 0)
  6144. exit (1);
  6145. if (write (fd, data, pagesize) != pagesize)
  6146. exit (1);
  6147. close (fd);
  6148. /* Next, try to mmap the file at a fixed address which already has
  6149. something else allocated at it. If we can, also make sure that
  6150. we see the same garbage. */
  6151. fd = open ("conftest.mmap", O_RDWR);
  6152. if (fd < 0)
  6153. exit (1);
  6154. data2 = (char *) malloc (2 * pagesize);
  6155. if (!data2)
  6156. exit (1);
  6157. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6158. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6159. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6160. exit (1);
  6161. for (i = 0; i < pagesize; ++i)
  6162. if (*(data + i) != *(data2 + i))
  6163. exit (1);
  6164. /* Finally, make sure that changes to the mapped area do not
  6165. percolate back to the file as seen by read(). (This is a bug on
  6166. some variants of i386 svr4.0.) */
  6167. for (i = 0; i < pagesize; ++i)
  6168. *(data2 + i) = *(data2 + i) + 1;
  6169. data3 = (char *) malloc (pagesize);
  6170. if (!data3)
  6171. exit (1);
  6172. if (read (fd, data3, pagesize) != pagesize)
  6173. exit (1);
  6174. for (i = 0; i < pagesize; ++i)
  6175. if (*(data + i) != *(data3 + i))
  6176. exit (1);
  6177. close (fd);
  6178. exit (0);
  6179. }
  6180. _ACEOF
  6181. rm -f conftest$ac_exeext
  6182. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6183. (eval $ac_link) 2>&5
  6184. ac_status=$?
  6185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6186. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6188. (eval $ac_try) 2>&5
  6189. ac_status=$?
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); }; }; then
  6192. ac_cv_func_mmap_fixed_mapped=yes
  6193. else
  6194. echo "$as_me: program exited with status $ac_status" >&5
  6195. echo "$as_me: failed program was:" >&5
  6196. sed 's/^/| /' conftest.$ac_ext >&5
  6197. ( exit $ac_status )
  6198. ac_cv_func_mmap_fixed_mapped=no
  6199. fi
  6200. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6201. fi
  6202. fi
  6203. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6204. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6205. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6206. cat >>confdefs.h <<\_ACEOF
  6207. #define HAVE_MMAP 1
  6208. _ACEOF
  6209. fi
  6210. rm -f conftest.mmap
  6211. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6212. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6213. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6214. echo $ECHO_N "(cached) $ECHO_C" >&6
  6215. else
  6216. cat >conftest.$ac_ext <<_ACEOF
  6217. /* confdefs.h. */
  6218. _ACEOF
  6219. cat confdefs.h >>conftest.$ac_ext
  6220. cat >>conftest.$ac_ext <<_ACEOF
  6221. /* end confdefs.h. */
  6222. #include <features.h>
  6223. #ifdef __GNU_LIBRARY__
  6224. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6225. Lucky GNU user
  6226. #endif
  6227. #endif
  6228. _ACEOF
  6229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6230. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6231. ac_cv_gnu_library_2_1=yes
  6232. else
  6233. ac_cv_gnu_library_2_1=no
  6234. fi
  6235. rm -f conftest*
  6236. fi
  6237. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6238. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6239. GLIBC21="$ac_cv_gnu_library_2_1"
  6240. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6241. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6242. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6243. echo $ECHO_N "(cached) $ECHO_C" >&6
  6244. else
  6245. if test "$cross_compiling" = yes; then
  6246. # Guess based on the CPU.
  6247. case "$host_cpu" in
  6248. alpha* | i3456786 | m68k | s390*)
  6249. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6250. *)
  6251. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6252. esac
  6253. else
  6254. cat >conftest.$ac_ext <<_ACEOF
  6255. /* confdefs.h. */
  6256. _ACEOF
  6257. cat confdefs.h >>conftest.$ac_ext
  6258. cat >>conftest.$ac_ext <<_ACEOF
  6259. /* end confdefs.h. */
  6260. #include <stdlib.h>
  6261. #include <signal.h>
  6262. static void
  6263. #ifdef __cplusplus
  6264. sigfpe_handler (int sig)
  6265. #else
  6266. sigfpe_handler (sig) int sig;
  6267. #endif
  6268. {
  6269. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6270. exit (sig != SIGFPE);
  6271. }
  6272. int x = 1;
  6273. int y = 0;
  6274. int z;
  6275. int nan;
  6276. int main ()
  6277. {
  6278. signal (SIGFPE, sigfpe_handler);
  6279. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6280. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6281. signal (SIGTRAP, sigfpe_handler);
  6282. #endif
  6283. /* Linux/SPARC yields signal SIGILL. */
  6284. #if defined (__sparc__) && defined (__linux__)
  6285. signal (SIGILL, sigfpe_handler);
  6286. #endif
  6287. z = x / y;
  6288. nan = y / y;
  6289. exit (1);
  6290. }
  6291. _ACEOF
  6292. rm -f conftest$ac_exeext
  6293. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6294. (eval $ac_link) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6299. (eval $ac_try) 2>&5
  6300. ac_status=$?
  6301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6302. (exit $ac_status); }; }; then
  6303. gt_cv_int_divbyzero_sigfpe=yes
  6304. else
  6305. echo "$as_me: program exited with status $ac_status" >&5
  6306. echo "$as_me: failed program was:" >&5
  6307. sed 's/^/| /' conftest.$ac_ext >&5
  6308. ( exit $ac_status )
  6309. gt_cv_int_divbyzero_sigfpe=no
  6310. fi
  6311. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6312. fi
  6313. fi
  6314. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6315. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6316. case "$gt_cv_int_divbyzero_sigfpe" in
  6317. *yes) value=1;;
  6318. *) value=0;;
  6319. esac
  6320. cat >>confdefs.h <<_ACEOF
  6321. #define INTDIV0_RAISES_SIGFPE $value
  6322. _ACEOF
  6323. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6324. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6325. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. cat >conftest.$ac_ext <<_ACEOF
  6329. /* confdefs.h. */
  6330. _ACEOF
  6331. cat confdefs.h >>conftest.$ac_ext
  6332. cat >>conftest.$ac_ext <<_ACEOF
  6333. /* end confdefs.h. */
  6334. #include <sys/types.h>
  6335. #include <inttypes.h>
  6336. int
  6337. main ()
  6338. {
  6339. uintmax_t i = (uintmax_t) -1;
  6340. ;
  6341. return 0;
  6342. }
  6343. _ACEOF
  6344. rm -f conftest.$ac_objext
  6345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6346. (eval $ac_compile) 2>conftest.er1
  6347. ac_status=$?
  6348. grep -v '^ *+' conftest.er1 >conftest.err
  6349. rm -f conftest.er1
  6350. cat conftest.err >&5
  6351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6352. (exit $ac_status); } &&
  6353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6355. (eval $ac_try) 2>&5
  6356. ac_status=$?
  6357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6358. (exit $ac_status); }; } &&
  6359. { ac_try='test -s conftest.$ac_objext'
  6360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6361. (eval $ac_try) 2>&5
  6362. ac_status=$?
  6363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6364. (exit $ac_status); }; }; then
  6365. jm_ac_cv_header_inttypes_h=yes
  6366. else
  6367. echo "$as_me: failed program was:" >&5
  6368. sed 's/^/| /' conftest.$ac_ext >&5
  6369. jm_ac_cv_header_inttypes_h=no
  6370. fi
  6371. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6372. fi
  6373. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6374. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6375. if test $jm_ac_cv_header_inttypes_h = yes; then
  6376. cat >>confdefs.h <<_ACEOF
  6377. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6378. _ACEOF
  6379. fi
  6380. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6381. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6382. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6383. echo $ECHO_N "(cached) $ECHO_C" >&6
  6384. else
  6385. cat >conftest.$ac_ext <<_ACEOF
  6386. /* confdefs.h. */
  6387. _ACEOF
  6388. cat confdefs.h >>conftest.$ac_ext
  6389. cat >>conftest.$ac_ext <<_ACEOF
  6390. /* end confdefs.h. */
  6391. #include <sys/types.h>
  6392. #include <stdint.h>
  6393. int
  6394. main ()
  6395. {
  6396. uintmax_t i = (uintmax_t) -1;
  6397. ;
  6398. return 0;
  6399. }
  6400. _ACEOF
  6401. rm -f conftest.$ac_objext
  6402. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6403. (eval $ac_compile) 2>conftest.er1
  6404. ac_status=$?
  6405. grep -v '^ *+' conftest.er1 >conftest.err
  6406. rm -f conftest.er1
  6407. cat conftest.err >&5
  6408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6409. (exit $ac_status); } &&
  6410. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6412. (eval $ac_try) 2>&5
  6413. ac_status=$?
  6414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6415. (exit $ac_status); }; } &&
  6416. { ac_try='test -s conftest.$ac_objext'
  6417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6418. (eval $ac_try) 2>&5
  6419. ac_status=$?
  6420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6421. (exit $ac_status); }; }; then
  6422. jm_ac_cv_header_stdint_h=yes
  6423. else
  6424. echo "$as_me: failed program was:" >&5
  6425. sed 's/^/| /' conftest.$ac_ext >&5
  6426. jm_ac_cv_header_stdint_h=no
  6427. fi
  6428. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6429. fi
  6430. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6431. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6432. if test $jm_ac_cv_header_stdint_h = yes; then
  6433. cat >>confdefs.h <<_ACEOF
  6434. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6435. _ACEOF
  6436. fi
  6437. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6438. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6439. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6440. echo $ECHO_N "(cached) $ECHO_C" >&6
  6441. else
  6442. cat >conftest.$ac_ext <<_ACEOF
  6443. /* confdefs.h. */
  6444. _ACEOF
  6445. cat confdefs.h >>conftest.$ac_ext
  6446. cat >>conftest.$ac_ext <<_ACEOF
  6447. /* end confdefs.h. */
  6448. unsigned long long ull = 1; int i = 63;
  6449. int
  6450. main ()
  6451. {
  6452. unsigned long long ullmax = (unsigned long long) -1;
  6453. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6454. ;
  6455. return 0;
  6456. }
  6457. _ACEOF
  6458. rm -f conftest.$ac_objext conftest$ac_exeext
  6459. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6460. (eval $ac_link) 2>conftest.er1
  6461. ac_status=$?
  6462. grep -v '^ *+' conftest.er1 >conftest.err
  6463. rm -f conftest.er1
  6464. cat conftest.err >&5
  6465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6466. (exit $ac_status); } &&
  6467. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6469. (eval $ac_try) 2>&5
  6470. ac_status=$?
  6471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6472. (exit $ac_status); }; } &&
  6473. { ac_try='test -s conftest$ac_exeext'
  6474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6475. (eval $ac_try) 2>&5
  6476. ac_status=$?
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); }; }; then
  6479. ac_cv_type_unsigned_long_long=yes
  6480. else
  6481. echo "$as_me: failed program was:" >&5
  6482. sed 's/^/| /' conftest.$ac_ext >&5
  6483. ac_cv_type_unsigned_long_long=no
  6484. fi
  6485. rm -f conftest.err conftest.$ac_objext \
  6486. conftest$ac_exeext conftest.$ac_ext
  6487. fi
  6488. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6489. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6490. if test $ac_cv_type_unsigned_long_long = yes; then
  6491. cat >>confdefs.h <<\_ACEOF
  6492. #define HAVE_UNSIGNED_LONG_LONG 1
  6493. _ACEOF
  6494. fi
  6495. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6496. test $ac_cv_type_unsigned_long_long = yes \
  6497. && ac_type='unsigned long long' \
  6498. || ac_type='unsigned long'
  6499. cat >>confdefs.h <<_ACEOF
  6500. #define uintmax_t $ac_type
  6501. _ACEOF
  6502. else
  6503. cat >>confdefs.h <<\_ACEOF
  6504. #define HAVE_UINTMAX_T 1
  6505. _ACEOF
  6506. fi
  6507. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6508. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6509. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6510. echo $ECHO_N "(cached) $ECHO_C" >&6
  6511. else
  6512. cat >conftest.$ac_ext <<_ACEOF
  6513. /* confdefs.h. */
  6514. _ACEOF
  6515. cat confdefs.h >>conftest.$ac_ext
  6516. cat >>conftest.$ac_ext <<_ACEOF
  6517. /* end confdefs.h. */
  6518. #include <sys/types.h>
  6519. #include <inttypes.h>
  6520. int
  6521. main ()
  6522. {
  6523. ;
  6524. return 0;
  6525. }
  6526. _ACEOF
  6527. rm -f conftest.$ac_objext
  6528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6538. (eval $ac_try) 2>&5
  6539. ac_status=$?
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); }; } &&
  6542. { ac_try='test -s conftest.$ac_objext'
  6543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6544. (eval $ac_try) 2>&5
  6545. ac_status=$?
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); }; }; then
  6548. gt_cv_header_inttypes_h=yes
  6549. else
  6550. echo "$as_me: failed program was:" >&5
  6551. sed 's/^/| /' conftest.$ac_ext >&5
  6552. gt_cv_header_inttypes_h=no
  6553. fi
  6554. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6555. fi
  6556. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6557. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6558. if test $gt_cv_header_inttypes_h = yes; then
  6559. cat >>confdefs.h <<_ACEOF
  6560. #define HAVE_INTTYPES_H 1
  6561. _ACEOF
  6562. fi
  6563. if test $gt_cv_header_inttypes_h = yes; then
  6564. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6565. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6566. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6567. echo $ECHO_N "(cached) $ECHO_C" >&6
  6568. else
  6569. cat >conftest.$ac_ext <<_ACEOF
  6570. /* confdefs.h. */
  6571. _ACEOF
  6572. cat confdefs.h >>conftest.$ac_ext
  6573. cat >>conftest.$ac_ext <<_ACEOF
  6574. /* end confdefs.h. */
  6575. #include <inttypes.h>
  6576. #ifdef PRId32
  6577. char *p = PRId32;
  6578. #endif
  6579. int
  6580. main ()
  6581. {
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. rm -f conftest.$ac_objext
  6587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6588. (eval $ac_compile) 2>conftest.er1
  6589. ac_status=$?
  6590. grep -v '^ *+' conftest.er1 >conftest.err
  6591. rm -f conftest.er1
  6592. cat conftest.err >&5
  6593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); } &&
  6595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6597. (eval $ac_try) 2>&5
  6598. ac_status=$?
  6599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6600. (exit $ac_status); }; } &&
  6601. { ac_try='test -s conftest.$ac_objext'
  6602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6603. (eval $ac_try) 2>&5
  6604. ac_status=$?
  6605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6606. (exit $ac_status); }; }; then
  6607. gt_cv_inttypes_pri_broken=no
  6608. else
  6609. echo "$as_me: failed program was:" >&5
  6610. sed 's/^/| /' conftest.$ac_ext >&5
  6611. gt_cv_inttypes_pri_broken=yes
  6612. fi
  6613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6614. fi
  6615. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6616. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6617. fi
  6618. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6619. cat >>confdefs.h <<_ACEOF
  6620. #define PRI_MACROS_BROKEN 1
  6621. _ACEOF
  6622. fi
  6623. if test "X$prefix" = "XNONE"; then
  6624. acl_final_prefix="$ac_default_prefix"
  6625. else
  6626. acl_final_prefix="$prefix"
  6627. fi
  6628. if test "X$exec_prefix" = "XNONE"; then
  6629. acl_final_exec_prefix='${prefix}'
  6630. else
  6631. acl_final_exec_prefix="$exec_prefix"
  6632. fi
  6633. acl_save_prefix="$prefix"
  6634. prefix="$acl_final_prefix"
  6635. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6636. prefix="$acl_save_prefix"
  6637. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6638. if test "${with_gnu_ld+set}" = set; then
  6639. withval="$with_gnu_ld"
  6640. test "$withval" = no || with_gnu_ld=yes
  6641. else
  6642. with_gnu_ld=no
  6643. fi;
  6644. # Prepare PATH_SEPARATOR.
  6645. # The user is always right.
  6646. if test "${PATH_SEPARATOR+set}" != set; then
  6647. echo "#! /bin/sh" >conf$$.sh
  6648. echo "exit 0" >>conf$$.sh
  6649. chmod +x conf$$.sh
  6650. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6651. PATH_SEPARATOR=';'
  6652. else
  6653. PATH_SEPARATOR=:
  6654. fi
  6655. rm -f conf$$.sh
  6656. fi
  6657. ac_prog=ld
  6658. if test "$GCC" = yes; then
  6659. # Check if gcc -print-prog-name=ld gives a path.
  6660. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6661. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6662. case $host in
  6663. *-*-mingw*)
  6664. # gcc leaves a trailing carriage return which upsets mingw
  6665. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6666. *)
  6667. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6668. esac
  6669. case $ac_prog in
  6670. # Accept absolute paths.
  6671. [\\/]* | [A-Za-z]:[\\/]*)
  6672. re_direlt='/[^/][^/]*/\.\./'
  6673. # Canonicalize the path of ld
  6674. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6675. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6676. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6677. done
  6678. test -z "$LD" && LD="$ac_prog"
  6679. ;;
  6680. "")
  6681. # If it fails, then pretend we aren't using GCC.
  6682. ac_prog=ld
  6683. ;;
  6684. *)
  6685. # If it is relative, then search for the first ld in PATH.
  6686. with_gnu_ld=unknown
  6687. ;;
  6688. esac
  6689. elif test "$with_gnu_ld" = yes; then
  6690. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6691. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6692. else
  6693. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6694. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6695. fi
  6696. if test "${acl_cv_path_LD+set}" = set; then
  6697. echo $ECHO_N "(cached) $ECHO_C" >&6
  6698. else
  6699. if test -z "$LD"; then
  6700. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6701. for ac_dir in $PATH; do
  6702. test -z "$ac_dir" && ac_dir=.
  6703. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6704. acl_cv_path_LD="$ac_dir/$ac_prog"
  6705. # Check to see if the program is GNU ld. I'd rather use --version,
  6706. # but apparently some GNU ld's only accept -v.
  6707. # Break only if it was the GNU/non-GNU ld that we prefer.
  6708. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  6709. test "$with_gnu_ld" != no && break
  6710. else
  6711. test "$with_gnu_ld" != yes && break
  6712. fi
  6713. fi
  6714. done
  6715. IFS="$ac_save_ifs"
  6716. else
  6717. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6718. fi
  6719. fi
  6720. LD="$acl_cv_path_LD"
  6721. if test -n "$LD"; then
  6722. echo "$as_me:$LINENO: result: $LD" >&5
  6723. echo "${ECHO_T}$LD" >&6
  6724. else
  6725. echo "$as_me:$LINENO: result: no" >&5
  6726. echo "${ECHO_T}no" >&6
  6727. fi
  6728. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6729. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6730. { (exit 1); exit 1; }; }
  6731. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6732. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6733. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6734. echo $ECHO_N "(cached) $ECHO_C" >&6
  6735. else
  6736. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6737. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6738. acl_cv_prog_gnu_ld=yes
  6739. else
  6740. acl_cv_prog_gnu_ld=no
  6741. fi
  6742. fi
  6743. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6744. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6745. with_gnu_ld=$acl_cv_prog_gnu_ld
  6746. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6747. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6748. if test "${acl_cv_rpath+set}" = set; then
  6749. echo $ECHO_N "(cached) $ECHO_C" >&6
  6750. else
  6751. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6752. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6753. . ./conftest.sh
  6754. rm -f ./conftest.sh
  6755. acl_cv_rpath=done
  6756. fi
  6757. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6758. echo "${ECHO_T}$acl_cv_rpath" >&6
  6759. wl="$acl_cv_wl"
  6760. libext="$acl_cv_libext"
  6761. shlibext="$acl_cv_shlibext"
  6762. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6763. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6764. hardcode_direct="$acl_cv_hardcode_direct"
  6765. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6766. # Check whether --enable-rpath or --disable-rpath was given.
  6767. if test "${enable_rpath+set}" = set; then
  6768. enableval="$enable_rpath"
  6769. :
  6770. else
  6771. enable_rpath=yes
  6772. fi;
  6773. use_additional=yes
  6774. acl_save_prefix="$prefix"
  6775. prefix="$acl_final_prefix"
  6776. acl_save_exec_prefix="$exec_prefix"
  6777. exec_prefix="$acl_final_exec_prefix"
  6778. eval additional_includedir=\"$includedir\"
  6779. eval additional_libdir=\"$libdir\"
  6780. exec_prefix="$acl_save_exec_prefix"
  6781. prefix="$acl_save_prefix"
  6782. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6783. if test "${with_libiconv_prefix+set}" = set; then
  6784. withval="$with_libiconv_prefix"
  6785. if test "X$withval" = "Xno"; then
  6786. use_additional=no
  6787. else
  6788. if test "X$withval" = "X"; then
  6789. acl_save_prefix="$prefix"
  6790. prefix="$acl_final_prefix"
  6791. acl_save_exec_prefix="$exec_prefix"
  6792. exec_prefix="$acl_final_exec_prefix"
  6793. eval additional_includedir=\"$includedir\"
  6794. eval additional_libdir=\"$libdir\"
  6795. exec_prefix="$acl_save_exec_prefix"
  6796. prefix="$acl_save_prefix"
  6797. else
  6798. additional_includedir="$withval/include"
  6799. additional_libdir="$withval/lib"
  6800. fi
  6801. fi
  6802. fi;
  6803. LIBICONV=
  6804. LTLIBICONV=
  6805. INCICONV=
  6806. rpathdirs=
  6807. ltrpathdirs=
  6808. names_already_handled=
  6809. names_next_round='iconv '
  6810. while test -n "$names_next_round"; do
  6811. names_this_round="$names_next_round"
  6812. names_next_round=
  6813. for name in $names_this_round; do
  6814. already_handled=
  6815. for n in $names_already_handled; do
  6816. if test "$n" = "$name"; then
  6817. already_handled=yes
  6818. break
  6819. fi
  6820. done
  6821. if test -z "$already_handled"; then
  6822. names_already_handled="$names_already_handled $name"
  6823. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6824. eval value=\"\$HAVE_LIB$uppername\"
  6825. if test -n "$value"; then
  6826. if test "$value" = yes; then
  6827. eval value=\"\$LIB$uppername\"
  6828. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6829. eval value=\"\$LTLIB$uppername\"
  6830. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6831. else
  6832. :
  6833. fi
  6834. else
  6835. found_dir=
  6836. found_la=
  6837. found_so=
  6838. found_a=
  6839. if test $use_additional = yes; then
  6840. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6841. found_dir="$additional_libdir"
  6842. found_so="$additional_libdir/lib$name.$shlibext"
  6843. if test -f "$additional_libdir/lib$name.la"; then
  6844. found_la="$additional_libdir/lib$name.la"
  6845. fi
  6846. else
  6847. if test -f "$additional_libdir/lib$name.$libext"; then
  6848. found_dir="$additional_libdir"
  6849. found_a="$additional_libdir/lib$name.$libext"
  6850. if test -f "$additional_libdir/lib$name.la"; then
  6851. found_la="$additional_libdir/lib$name.la"
  6852. fi
  6853. fi
  6854. fi
  6855. fi
  6856. if test "X$found_dir" = "X"; then
  6857. for x in $LDFLAGS $LTLIBICONV; do
  6858. acl_save_prefix="$prefix"
  6859. prefix="$acl_final_prefix"
  6860. acl_save_exec_prefix="$exec_prefix"
  6861. exec_prefix="$acl_final_exec_prefix"
  6862. eval x=\"$x\"
  6863. exec_prefix="$acl_save_exec_prefix"
  6864. prefix="$acl_save_prefix"
  6865. case "$x" in
  6866. -L*)
  6867. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6868. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6869. found_dir="$dir"
  6870. found_so="$dir/lib$name.$shlibext"
  6871. if test -f "$dir/lib$name.la"; then
  6872. found_la="$dir/lib$name.la"
  6873. fi
  6874. else
  6875. if test -f "$dir/lib$name.$libext"; then
  6876. found_dir="$dir"
  6877. found_a="$dir/lib$name.$libext"
  6878. if test -f "$dir/lib$name.la"; then
  6879. found_la="$dir/lib$name.la"
  6880. fi
  6881. fi
  6882. fi
  6883. ;;
  6884. esac
  6885. if test "X$found_dir" != "X"; then
  6886. break
  6887. fi
  6888. done
  6889. fi
  6890. if test "X$found_dir" != "X"; then
  6891. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6892. if test "X$found_so" != "X"; then
  6893. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6894. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6895. else
  6896. haveit=
  6897. for x in $ltrpathdirs; do
  6898. if test "X$x" = "X$found_dir"; then
  6899. haveit=yes
  6900. break
  6901. fi
  6902. done
  6903. if test -z "$haveit"; then
  6904. ltrpathdirs="$ltrpathdirs $found_dir"
  6905. fi
  6906. if test "$hardcode_direct" = yes; then
  6907. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6908. else
  6909. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6910. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6911. haveit=
  6912. for x in $rpathdirs; do
  6913. if test "X$x" = "X$found_dir"; then
  6914. haveit=yes
  6915. break
  6916. fi
  6917. done
  6918. if test -z "$haveit"; then
  6919. rpathdirs="$rpathdirs $found_dir"
  6920. fi
  6921. else
  6922. haveit=
  6923. for x in $LDFLAGS $LIBICONV; do
  6924. acl_save_prefix="$prefix"
  6925. prefix="$acl_final_prefix"
  6926. acl_save_exec_prefix="$exec_prefix"
  6927. exec_prefix="$acl_final_exec_prefix"
  6928. eval x=\"$x\"
  6929. exec_prefix="$acl_save_exec_prefix"
  6930. prefix="$acl_save_prefix"
  6931. if test "X$x" = "X-L$found_dir"; then
  6932. haveit=yes
  6933. break
  6934. fi
  6935. done
  6936. if test -z "$haveit"; then
  6937. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  6938. fi
  6939. if test "$hardcode_minus_L" != no; then
  6940. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6941. else
  6942. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6943. fi
  6944. fi
  6945. fi
  6946. fi
  6947. else
  6948. if test "X$found_a" != "X"; then
  6949. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  6950. else
  6951. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  6952. fi
  6953. fi
  6954. additional_includedir=
  6955. case "$found_dir" in
  6956. */lib | */lib/)
  6957. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6958. additional_includedir="$basedir/include"
  6959. ;;
  6960. esac
  6961. if test "X$additional_includedir" != "X"; then
  6962. if test "X$additional_includedir" != "X/usr/include"; then
  6963. haveit=
  6964. if test "X$additional_includedir" = "X/usr/local/include"; then
  6965. if test -n "$GCC"; then
  6966. case $host_os in
  6967. linux*) haveit=yes;;
  6968. esac
  6969. fi
  6970. fi
  6971. if test -z "$haveit"; then
  6972. for x in $CPPFLAGS $INCICONV; do
  6973. acl_save_prefix="$prefix"
  6974. prefix="$acl_final_prefix"
  6975. acl_save_exec_prefix="$exec_prefix"
  6976. exec_prefix="$acl_final_exec_prefix"
  6977. eval x=\"$x\"
  6978. exec_prefix="$acl_save_exec_prefix"
  6979. prefix="$acl_save_prefix"
  6980. if test "X$x" = "X-I$additional_includedir"; then
  6981. haveit=yes
  6982. break
  6983. fi
  6984. done
  6985. if test -z "$haveit"; then
  6986. if test -d "$additional_includedir"; then
  6987. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  6988. fi
  6989. fi
  6990. fi
  6991. fi
  6992. fi
  6993. if test -n "$found_la"; then
  6994. save_libdir="$libdir"
  6995. case "$found_la" in
  6996. */* | *\\*) . "$found_la" ;;
  6997. *) . "./$found_la" ;;
  6998. esac
  6999. libdir="$save_libdir"
  7000. for dep in $dependency_libs; do
  7001. case "$dep" in
  7002. -L*)
  7003. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7004. if test "X$additional_libdir" != "X/usr/lib"; then
  7005. haveit=
  7006. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7007. if test -n "$GCC"; then
  7008. case $host_os in
  7009. linux*) haveit=yes;;
  7010. esac
  7011. fi
  7012. fi
  7013. if test -z "$haveit"; then
  7014. haveit=
  7015. for x in $LDFLAGS $LIBICONV; do
  7016. acl_save_prefix="$prefix"
  7017. prefix="$acl_final_prefix"
  7018. acl_save_exec_prefix="$exec_prefix"
  7019. exec_prefix="$acl_final_exec_prefix"
  7020. eval x=\"$x\"
  7021. exec_prefix="$acl_save_exec_prefix"
  7022. prefix="$acl_save_prefix"
  7023. if test "X$x" = "X-L$additional_libdir"; then
  7024. haveit=yes
  7025. break
  7026. fi
  7027. done
  7028. if test -z "$haveit"; then
  7029. if test -d "$additional_libdir"; then
  7030. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7031. fi
  7032. fi
  7033. haveit=
  7034. for x in $LDFLAGS $LTLIBICONV; do
  7035. acl_save_prefix="$prefix"
  7036. prefix="$acl_final_prefix"
  7037. acl_save_exec_prefix="$exec_prefix"
  7038. exec_prefix="$acl_final_exec_prefix"
  7039. eval x=\"$x\"
  7040. exec_prefix="$acl_save_exec_prefix"
  7041. prefix="$acl_save_prefix"
  7042. if test "X$x" = "X-L$additional_libdir"; then
  7043. haveit=yes
  7044. break
  7045. fi
  7046. done
  7047. if test -z "$haveit"; then
  7048. if test -d "$additional_libdir"; then
  7049. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7050. fi
  7051. fi
  7052. fi
  7053. fi
  7054. ;;
  7055. -R*)
  7056. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7057. if test "$enable_rpath" != no; then
  7058. haveit=
  7059. for x in $rpathdirs; do
  7060. if test "X$x" = "X$dir"; then
  7061. haveit=yes
  7062. break
  7063. fi
  7064. done
  7065. if test -z "$haveit"; then
  7066. rpathdirs="$rpathdirs $dir"
  7067. fi
  7068. haveit=
  7069. for x in $ltrpathdirs; do
  7070. if test "X$x" = "X$dir"; then
  7071. haveit=yes
  7072. break
  7073. fi
  7074. done
  7075. if test -z "$haveit"; then
  7076. ltrpathdirs="$ltrpathdirs $dir"
  7077. fi
  7078. fi
  7079. ;;
  7080. -l*)
  7081. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7082. ;;
  7083. *.la)
  7084. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7085. ;;
  7086. *)
  7087. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7088. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7089. ;;
  7090. esac
  7091. done
  7092. fi
  7093. else
  7094. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7095. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7096. fi
  7097. fi
  7098. fi
  7099. done
  7100. done
  7101. if test "X$rpathdirs" != "X"; then
  7102. if test -n "$hardcode_libdir_separator"; then
  7103. alldirs=
  7104. for found_dir in $rpathdirs; do
  7105. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7106. done
  7107. acl_save_libdir="$libdir"
  7108. libdir="$alldirs"
  7109. eval flag=\"$hardcode_libdir_flag_spec\"
  7110. libdir="$acl_save_libdir"
  7111. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7112. else
  7113. for found_dir in $rpathdirs; do
  7114. acl_save_libdir="$libdir"
  7115. libdir="$found_dir"
  7116. eval flag=\"$hardcode_libdir_flag_spec\"
  7117. libdir="$acl_save_libdir"
  7118. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7119. done
  7120. fi
  7121. fi
  7122. if test "X$ltrpathdirs" != "X"; then
  7123. for found_dir in $ltrpathdirs; do
  7124. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7125. done
  7126. fi
  7127. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7128. stdlib.h string.h unistd.h sys/param.h
  7129. do
  7130. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7131. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7132. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7133. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7134. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7135. echo $ECHO_N "(cached) $ECHO_C" >&6
  7136. fi
  7137. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7138. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7139. else
  7140. # Is the header compilable?
  7141. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7142. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7143. cat >conftest.$ac_ext <<_ACEOF
  7144. /* confdefs.h. */
  7145. _ACEOF
  7146. cat confdefs.h >>conftest.$ac_ext
  7147. cat >>conftest.$ac_ext <<_ACEOF
  7148. /* end confdefs.h. */
  7149. $ac_includes_default
  7150. #include <$ac_header>
  7151. _ACEOF
  7152. rm -f conftest.$ac_objext
  7153. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7154. (eval $ac_compile) 2>conftest.er1
  7155. ac_status=$?
  7156. grep -v '^ *+' conftest.er1 >conftest.err
  7157. rm -f conftest.er1
  7158. cat conftest.err >&5
  7159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } &&
  7161. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7163. (eval $ac_try) 2>&5
  7164. ac_status=$?
  7165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7166. (exit $ac_status); }; } &&
  7167. { ac_try='test -s conftest.$ac_objext'
  7168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7169. (eval $ac_try) 2>&5
  7170. ac_status=$?
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); }; }; then
  7173. ac_header_compiler=yes
  7174. else
  7175. echo "$as_me: failed program was:" >&5
  7176. sed 's/^/| /' conftest.$ac_ext >&5
  7177. ac_header_compiler=no
  7178. fi
  7179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7180. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7181. echo "${ECHO_T}$ac_header_compiler" >&6
  7182. # Is the header present?
  7183. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7184. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7185. cat >conftest.$ac_ext <<_ACEOF
  7186. /* confdefs.h. */
  7187. _ACEOF
  7188. cat confdefs.h >>conftest.$ac_ext
  7189. cat >>conftest.$ac_ext <<_ACEOF
  7190. /* end confdefs.h. */
  7191. #include <$ac_header>
  7192. _ACEOF
  7193. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7194. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  7201. if test -s conftest.err; then
  7202. ac_cpp_err=$ac_c_preproc_warn_flag
  7203. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7204. else
  7205. ac_cpp_err=
  7206. fi
  7207. else
  7208. ac_cpp_err=yes
  7209. fi
  7210. if test -z "$ac_cpp_err"; then
  7211. ac_header_preproc=yes
  7212. else
  7213. echo "$as_me: failed program was:" >&5
  7214. sed 's/^/| /' conftest.$ac_ext >&5
  7215. ac_header_preproc=no
  7216. fi
  7217. rm -f conftest.err conftest.$ac_ext
  7218. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7219. echo "${ECHO_T}$ac_header_preproc" >&6
  7220. # So? What about this header?
  7221. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7222. yes:no: )
  7223. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7224. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7225. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7226. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7227. ac_header_preproc=yes
  7228. ;;
  7229. no:yes:* )
  7230. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7231. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7232. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7233. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7234. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7235. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7236. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7237. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7238. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7239. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7240. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7241. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7242. (
  7243. cat <<\_ASBOX
  7244. ## ----------------------------------- ##
  7245. ## Report this to tujikawa@rednoah.com ##
  7246. ## ----------------------------------- ##
  7247. _ASBOX
  7248. ) |
  7249. sed "s/^/$as_me: WARNING: /" >&2
  7250. ;;
  7251. esac
  7252. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7253. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7254. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7255. echo $ECHO_N "(cached) $ECHO_C" >&6
  7256. else
  7257. eval "$as_ac_Header=\$ac_header_preproc"
  7258. fi
  7259. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7260. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7261. fi
  7262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7263. cat >>confdefs.h <<_ACEOF
  7264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7265. _ACEOF
  7266. fi
  7267. done
  7268. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7269. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7270. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7271. __fsetlocking
  7272. do
  7273. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7274. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7275. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7276. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7277. echo $ECHO_N "(cached) $ECHO_C" >&6
  7278. else
  7279. cat >conftest.$ac_ext <<_ACEOF
  7280. /* confdefs.h. */
  7281. _ACEOF
  7282. cat confdefs.h >>conftest.$ac_ext
  7283. cat >>conftest.$ac_ext <<_ACEOF
  7284. /* end confdefs.h. */
  7285. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7286. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7287. #define $ac_func innocuous_$ac_func
  7288. /* System header to define __stub macros and hopefully few prototypes,
  7289. which can conflict with char $ac_func (); below.
  7290. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7291. <limits.h> exists even on freestanding compilers. */
  7292. #ifdef __STDC__
  7293. # include <limits.h>
  7294. #else
  7295. # include <assert.h>
  7296. #endif
  7297. #undef $ac_func
  7298. /* Override any gcc2 internal prototype to avoid an error. */
  7299. #ifdef __cplusplus
  7300. extern "C"
  7301. {
  7302. #endif
  7303. /* We use char because int might match the return type of a gcc2
  7304. builtin and then its argument prototype would still apply. */
  7305. char $ac_func ();
  7306. /* The GNU C library defines this for functions which it implements
  7307. to always fail with ENOSYS. Some functions are actually named
  7308. something starting with __ and the normal name is an alias. */
  7309. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7310. choke me
  7311. #else
  7312. char (*f) () = $ac_func;
  7313. #endif
  7314. #ifdef __cplusplus
  7315. }
  7316. #endif
  7317. int
  7318. main ()
  7319. {
  7320. return f != $ac_func;
  7321. ;
  7322. return 0;
  7323. }
  7324. _ACEOF
  7325. rm -f conftest.$ac_objext conftest$ac_exeext
  7326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7327. (eval $ac_link) 2>conftest.er1
  7328. ac_status=$?
  7329. grep -v '^ *+' conftest.er1 >conftest.err
  7330. rm -f conftest.er1
  7331. cat conftest.err >&5
  7332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7333. (exit $ac_status); } &&
  7334. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7336. (eval $ac_try) 2>&5
  7337. ac_status=$?
  7338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7339. (exit $ac_status); }; } &&
  7340. { ac_try='test -s conftest$ac_exeext'
  7341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7342. (eval $ac_try) 2>&5
  7343. ac_status=$?
  7344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7345. (exit $ac_status); }; }; then
  7346. eval "$as_ac_var=yes"
  7347. else
  7348. echo "$as_me: failed program was:" >&5
  7349. sed 's/^/| /' conftest.$ac_ext >&5
  7350. eval "$as_ac_var=no"
  7351. fi
  7352. rm -f conftest.err conftest.$ac_objext \
  7353. conftest$ac_exeext conftest.$ac_ext
  7354. fi
  7355. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7356. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7357. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7358. cat >>confdefs.h <<_ACEOF
  7359. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7360. _ACEOF
  7361. fi
  7362. done
  7363. am_save_CPPFLAGS="$CPPFLAGS"
  7364. for element in $INCICONV; do
  7365. haveit=
  7366. for x in $CPPFLAGS; do
  7367. acl_save_prefix="$prefix"
  7368. prefix="$acl_final_prefix"
  7369. acl_save_exec_prefix="$exec_prefix"
  7370. exec_prefix="$acl_final_exec_prefix"
  7371. eval x=\"$x\"
  7372. exec_prefix="$acl_save_exec_prefix"
  7373. prefix="$acl_save_prefix"
  7374. if test "X$x" = "X$element"; then
  7375. haveit=yes
  7376. break
  7377. fi
  7378. done
  7379. if test -z "$haveit"; then
  7380. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7381. fi
  7382. done
  7383. echo "$as_me:$LINENO: checking for iconv" >&5
  7384. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7385. if test "${am_cv_func_iconv+set}" = set; then
  7386. echo $ECHO_N "(cached) $ECHO_C" >&6
  7387. else
  7388. am_cv_func_iconv="no, consider installing GNU libiconv"
  7389. am_cv_lib_iconv=no
  7390. cat >conftest.$ac_ext <<_ACEOF
  7391. /* confdefs.h. */
  7392. _ACEOF
  7393. cat confdefs.h >>conftest.$ac_ext
  7394. cat >>conftest.$ac_ext <<_ACEOF
  7395. /* end confdefs.h. */
  7396. #include <stdlib.h>
  7397. #include <iconv.h>
  7398. int
  7399. main ()
  7400. {
  7401. iconv_t cd = iconv_open("","");
  7402. iconv(cd,NULL,NULL,NULL,NULL);
  7403. iconv_close(cd);
  7404. ;
  7405. return 0;
  7406. }
  7407. _ACEOF
  7408. rm -f conftest.$ac_objext conftest$ac_exeext
  7409. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7410. (eval $ac_link) 2>conftest.er1
  7411. ac_status=$?
  7412. grep -v '^ *+' conftest.er1 >conftest.err
  7413. rm -f conftest.er1
  7414. cat conftest.err >&5
  7415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7416. (exit $ac_status); } &&
  7417. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7419. (eval $ac_try) 2>&5
  7420. ac_status=$?
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); }; } &&
  7423. { ac_try='test -s conftest$ac_exeext'
  7424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7425. (eval $ac_try) 2>&5
  7426. ac_status=$?
  7427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7428. (exit $ac_status); }; }; then
  7429. am_cv_func_iconv=yes
  7430. else
  7431. echo "$as_me: failed program was:" >&5
  7432. sed 's/^/| /' conftest.$ac_ext >&5
  7433. fi
  7434. rm -f conftest.err conftest.$ac_objext \
  7435. conftest$ac_exeext conftest.$ac_ext
  7436. if test "$am_cv_func_iconv" != yes; then
  7437. am_save_LIBS="$LIBS"
  7438. LIBS="$LIBS $LIBICONV"
  7439. cat >conftest.$ac_ext <<_ACEOF
  7440. /* confdefs.h. */
  7441. _ACEOF
  7442. cat confdefs.h >>conftest.$ac_ext
  7443. cat >>conftest.$ac_ext <<_ACEOF
  7444. /* end confdefs.h. */
  7445. #include <stdlib.h>
  7446. #include <iconv.h>
  7447. int
  7448. main ()
  7449. {
  7450. iconv_t cd = iconv_open("","");
  7451. iconv(cd,NULL,NULL,NULL,NULL);
  7452. iconv_close(cd);
  7453. ;
  7454. return 0;
  7455. }
  7456. _ACEOF
  7457. rm -f conftest.$ac_objext conftest$ac_exeext
  7458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7459. (eval $ac_link) 2>conftest.er1
  7460. ac_status=$?
  7461. grep -v '^ *+' conftest.er1 >conftest.err
  7462. rm -f conftest.er1
  7463. cat conftest.err >&5
  7464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7465. (exit $ac_status); } &&
  7466. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7468. (eval $ac_try) 2>&5
  7469. ac_status=$?
  7470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7471. (exit $ac_status); }; } &&
  7472. { ac_try='test -s conftest$ac_exeext'
  7473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7474. (eval $ac_try) 2>&5
  7475. ac_status=$?
  7476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7477. (exit $ac_status); }; }; then
  7478. am_cv_lib_iconv=yes
  7479. am_cv_func_iconv=yes
  7480. else
  7481. echo "$as_me: failed program was:" >&5
  7482. sed 's/^/| /' conftest.$ac_ext >&5
  7483. fi
  7484. rm -f conftest.err conftest.$ac_objext \
  7485. conftest$ac_exeext conftest.$ac_ext
  7486. LIBS="$am_save_LIBS"
  7487. fi
  7488. fi
  7489. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7490. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7491. if test "$am_cv_func_iconv" = yes; then
  7492. cat >>confdefs.h <<\_ACEOF
  7493. #define HAVE_ICONV 1
  7494. _ACEOF
  7495. fi
  7496. if test "$am_cv_lib_iconv" = yes; then
  7497. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7498. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7499. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7500. echo "${ECHO_T}$LIBICONV" >&6
  7501. else
  7502. CPPFLAGS="$am_save_CPPFLAGS"
  7503. LIBICONV=
  7504. LTLIBICONV=
  7505. fi
  7506. if test "$am_cv_func_iconv" = yes; then
  7507. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7508. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7509. if test "${am_cv_proto_iconv+set}" = set; then
  7510. echo $ECHO_N "(cached) $ECHO_C" >&6
  7511. else
  7512. cat >conftest.$ac_ext <<_ACEOF
  7513. /* confdefs.h. */
  7514. _ACEOF
  7515. cat confdefs.h >>conftest.$ac_ext
  7516. cat >>conftest.$ac_ext <<_ACEOF
  7517. /* end confdefs.h. */
  7518. #include <stdlib.h>
  7519. #include <iconv.h>
  7520. extern
  7521. #ifdef __cplusplus
  7522. "C"
  7523. #endif
  7524. #if defined(__STDC__) || defined(__cplusplus)
  7525. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7526. #else
  7527. size_t iconv();
  7528. #endif
  7529. int
  7530. main ()
  7531. {
  7532. ;
  7533. return 0;
  7534. }
  7535. _ACEOF
  7536. rm -f conftest.$ac_objext
  7537. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7538. (eval $ac_compile) 2>conftest.er1
  7539. ac_status=$?
  7540. grep -v '^ *+' conftest.er1 >conftest.err
  7541. rm -f conftest.er1
  7542. cat conftest.err >&5
  7543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7544. (exit $ac_status); } &&
  7545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7547. (eval $ac_try) 2>&5
  7548. ac_status=$?
  7549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7550. (exit $ac_status); }; } &&
  7551. { ac_try='test -s conftest.$ac_objext'
  7552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7553. (eval $ac_try) 2>&5
  7554. ac_status=$?
  7555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7556. (exit $ac_status); }; }; then
  7557. am_cv_proto_iconv_arg1=""
  7558. else
  7559. echo "$as_me: failed program was:" >&5
  7560. sed 's/^/| /' conftest.$ac_ext >&5
  7561. am_cv_proto_iconv_arg1="const"
  7562. fi
  7563. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7564. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  7565. fi
  7566. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7567. echo "$as_me:$LINENO: result: ${ac_t:-
  7568. }$am_cv_proto_iconv" >&5
  7569. echo "${ECHO_T}${ac_t:-
  7570. }$am_cv_proto_iconv" >&6
  7571. cat >>confdefs.h <<_ACEOF
  7572. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7573. _ACEOF
  7574. fi
  7575. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7576. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7577. if test "${am_cv_langinfo_codeset+set}" = set; then
  7578. echo $ECHO_N "(cached) $ECHO_C" >&6
  7579. else
  7580. cat >conftest.$ac_ext <<_ACEOF
  7581. /* confdefs.h. */
  7582. _ACEOF
  7583. cat confdefs.h >>conftest.$ac_ext
  7584. cat >>conftest.$ac_ext <<_ACEOF
  7585. /* end confdefs.h. */
  7586. #include <langinfo.h>
  7587. int
  7588. main ()
  7589. {
  7590. char* cs = nl_langinfo(CODESET);
  7591. ;
  7592. return 0;
  7593. }
  7594. _ACEOF
  7595. rm -f conftest.$ac_objext conftest$ac_exeext
  7596. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7597. (eval $ac_link) 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. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7606. (eval $ac_try) 2>&5
  7607. ac_status=$?
  7608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7609. (exit $ac_status); }; } &&
  7610. { ac_try='test -s conftest$ac_exeext'
  7611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7612. (eval $ac_try) 2>&5
  7613. ac_status=$?
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); }; }; then
  7616. am_cv_langinfo_codeset=yes
  7617. else
  7618. echo "$as_me: failed program was:" >&5
  7619. sed 's/^/| /' conftest.$ac_ext >&5
  7620. am_cv_langinfo_codeset=no
  7621. fi
  7622. rm -f conftest.err conftest.$ac_objext \
  7623. conftest$ac_exeext conftest.$ac_ext
  7624. fi
  7625. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7626. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7627. if test $am_cv_langinfo_codeset = yes; then
  7628. cat >>confdefs.h <<\_ACEOF
  7629. #define HAVE_LANGINFO_CODESET 1
  7630. _ACEOF
  7631. fi
  7632. if test $ac_cv_header_locale_h = yes; then
  7633. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7634. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7635. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7636. echo $ECHO_N "(cached) $ECHO_C" >&6
  7637. else
  7638. cat >conftest.$ac_ext <<_ACEOF
  7639. /* confdefs.h. */
  7640. _ACEOF
  7641. cat confdefs.h >>conftest.$ac_ext
  7642. cat >>conftest.$ac_ext <<_ACEOF
  7643. /* end confdefs.h. */
  7644. #include <locale.h>
  7645. int
  7646. main ()
  7647. {
  7648. return LC_MESSAGES
  7649. ;
  7650. return 0;
  7651. }
  7652. _ACEOF
  7653. rm -f conftest.$ac_objext conftest$ac_exeext
  7654. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7655. (eval $ac_link) 2>conftest.er1
  7656. ac_status=$?
  7657. grep -v '^ *+' conftest.er1 >conftest.err
  7658. rm -f conftest.er1
  7659. cat conftest.err >&5
  7660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661. (exit $ac_status); } &&
  7662. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7664. (eval $ac_try) 2>&5
  7665. ac_status=$?
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. (exit $ac_status); }; } &&
  7668. { ac_try='test -s conftest$ac_exeext'
  7669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7670. (eval $ac_try) 2>&5
  7671. ac_status=$?
  7672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7673. (exit $ac_status); }; }; then
  7674. am_cv_val_LC_MESSAGES=yes
  7675. else
  7676. echo "$as_me: failed program was:" >&5
  7677. sed 's/^/| /' conftest.$ac_ext >&5
  7678. am_cv_val_LC_MESSAGES=no
  7679. fi
  7680. rm -f conftest.err conftest.$ac_objext \
  7681. conftest$ac_exeext conftest.$ac_ext
  7682. fi
  7683. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  7684. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  7685. if test $am_cv_val_LC_MESSAGES = yes; then
  7686. cat >>confdefs.h <<\_ACEOF
  7687. #define HAVE_LC_MESSAGES 1
  7688. _ACEOF
  7689. fi
  7690. fi
  7691. for ac_prog in bison
  7692. do
  7693. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7694. set dummy $ac_prog; ac_word=$2
  7695. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7696. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7697. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  7698. echo $ECHO_N "(cached) $ECHO_C" >&6
  7699. else
  7700. if test -n "$INTLBISON"; then
  7701. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  7702. else
  7703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7704. for as_dir in $PATH
  7705. do
  7706. IFS=$as_save_IFS
  7707. test -z "$as_dir" && as_dir=.
  7708. for ac_exec_ext in '' $ac_executable_extensions; do
  7709. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7710. ac_cv_prog_INTLBISON="$ac_prog"
  7711. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7712. break 2
  7713. fi
  7714. done
  7715. done
  7716. fi
  7717. fi
  7718. INTLBISON=$ac_cv_prog_INTLBISON
  7719. if test -n "$INTLBISON"; then
  7720. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  7721. echo "${ECHO_T}$INTLBISON" >&6
  7722. else
  7723. echo "$as_me:$LINENO: result: no" >&5
  7724. echo "${ECHO_T}no" >&6
  7725. fi
  7726. test -n "$INTLBISON" && break
  7727. done
  7728. if test -z "$INTLBISON"; then
  7729. ac_verc_fail=yes
  7730. else
  7731. echo "$as_me:$LINENO: checking version of bison" >&5
  7732. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  7733. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  7734. case $ac_prog_version in
  7735. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  7736. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  7737. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  7738. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  7739. esac
  7740. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  7741. echo "${ECHO_T}$ac_prog_version" >&6
  7742. fi
  7743. if test $ac_verc_fail = yes; then
  7744. INTLBISON=:
  7745. fi
  7746. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7747. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  7748. # Check whether --enable-nls or --disable-nls was given.
  7749. if test "${enable_nls+set}" = set; then
  7750. enableval="$enable_nls"
  7751. USE_NLS=$enableval
  7752. else
  7753. USE_NLS=yes
  7754. fi;
  7755. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7756. echo "${ECHO_T}$USE_NLS" >&6
  7757. BUILD_INCLUDED_LIBINTL=no
  7758. USE_INCLUDED_LIBINTL=no
  7759. LIBINTL=
  7760. LTLIBINTL=
  7761. POSUB=
  7762. if test "$USE_NLS" = "yes"; then
  7763. gt_use_preinstalled_gnugettext=no
  7764. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  7765. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  7766. # Check whether --with-included-gettext or --without-included-gettext was given.
  7767. if test "${with_included_gettext+set}" = set; then
  7768. withval="$with_included_gettext"
  7769. nls_cv_force_use_gnu_gettext=$withval
  7770. else
  7771. nls_cv_force_use_gnu_gettext=no
  7772. fi;
  7773. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  7774. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  7775. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  7776. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  7777. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  7778. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  7779. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  7780. echo $ECHO_N "(cached) $ECHO_C" >&6
  7781. else
  7782. cat >conftest.$ac_ext <<_ACEOF
  7783. /* confdefs.h. */
  7784. _ACEOF
  7785. cat confdefs.h >>conftest.$ac_ext
  7786. cat >>conftest.$ac_ext <<_ACEOF
  7787. /* end confdefs.h. */
  7788. #include <libintl.h>
  7789. extern int _nl_msg_cat_cntr;
  7790. extern int *_nl_domain_bindings;
  7791. int
  7792. main ()
  7793. {
  7794. bindtextdomain ("", "");
  7795. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  7796. ;
  7797. return 0;
  7798. }
  7799. _ACEOF
  7800. rm -f conftest.$ac_objext conftest$ac_exeext
  7801. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7802. (eval $ac_link) 2>conftest.er1
  7803. ac_status=$?
  7804. grep -v '^ *+' conftest.er1 >conftest.err
  7805. rm -f conftest.er1
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); } &&
  7809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7811. (eval $ac_try) 2>&5
  7812. ac_status=$?
  7813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7814. (exit $ac_status); }; } &&
  7815. { ac_try='test -s conftest$ac_exeext'
  7816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7817. (eval $ac_try) 2>&5
  7818. ac_status=$?
  7819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7820. (exit $ac_status); }; }; then
  7821. gt_cv_func_gnugettext1_libc=yes
  7822. else
  7823. echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. gt_cv_func_gnugettext1_libc=no
  7826. fi
  7827. rm -f conftest.err conftest.$ac_objext \
  7828. conftest$ac_exeext conftest.$ac_ext
  7829. fi
  7830. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  7831. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  7832. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  7833. use_additional=yes
  7834. acl_save_prefix="$prefix"
  7835. prefix="$acl_final_prefix"
  7836. acl_save_exec_prefix="$exec_prefix"
  7837. exec_prefix="$acl_final_exec_prefix"
  7838. eval additional_includedir=\"$includedir\"
  7839. eval additional_libdir=\"$libdir\"
  7840. exec_prefix="$acl_save_exec_prefix"
  7841. prefix="$acl_save_prefix"
  7842. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  7843. if test "${with_libintl_prefix+set}" = set; then
  7844. withval="$with_libintl_prefix"
  7845. if test "X$withval" = "Xno"; then
  7846. use_additional=no
  7847. else
  7848. if test "X$withval" = "X"; then
  7849. acl_save_prefix="$prefix"
  7850. prefix="$acl_final_prefix"
  7851. acl_save_exec_prefix="$exec_prefix"
  7852. exec_prefix="$acl_final_exec_prefix"
  7853. eval additional_includedir=\"$includedir\"
  7854. eval additional_libdir=\"$libdir\"
  7855. exec_prefix="$acl_save_exec_prefix"
  7856. prefix="$acl_save_prefix"
  7857. else
  7858. additional_includedir="$withval/include"
  7859. additional_libdir="$withval/lib"
  7860. fi
  7861. fi
  7862. fi;
  7863. LIBINTL=
  7864. LTLIBINTL=
  7865. INCINTL=
  7866. rpathdirs=
  7867. ltrpathdirs=
  7868. names_already_handled=
  7869. names_next_round='intl '
  7870. while test -n "$names_next_round"; do
  7871. names_this_round="$names_next_round"
  7872. names_next_round=
  7873. for name in $names_this_round; do
  7874. already_handled=
  7875. for n in $names_already_handled; do
  7876. if test "$n" = "$name"; then
  7877. already_handled=yes
  7878. break
  7879. fi
  7880. done
  7881. if test -z "$already_handled"; then
  7882. names_already_handled="$names_already_handled $name"
  7883. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7884. eval value=\"\$HAVE_LIB$uppername\"
  7885. if test -n "$value"; then
  7886. if test "$value" = yes; then
  7887. eval value=\"\$LIB$uppername\"
  7888. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  7889. eval value=\"\$LTLIB$uppername\"
  7890. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  7891. else
  7892. :
  7893. fi
  7894. else
  7895. found_dir=
  7896. found_la=
  7897. found_so=
  7898. found_a=
  7899. if test $use_additional = yes; then
  7900. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7901. found_dir="$additional_libdir"
  7902. found_so="$additional_libdir/lib$name.$shlibext"
  7903. if test -f "$additional_libdir/lib$name.la"; then
  7904. found_la="$additional_libdir/lib$name.la"
  7905. fi
  7906. else
  7907. if test -f "$additional_libdir/lib$name.$libext"; then
  7908. found_dir="$additional_libdir"
  7909. found_a="$additional_libdir/lib$name.$libext"
  7910. if test -f "$additional_libdir/lib$name.la"; then
  7911. found_la="$additional_libdir/lib$name.la"
  7912. fi
  7913. fi
  7914. fi
  7915. fi
  7916. if test "X$found_dir" = "X"; then
  7917. for x in $LDFLAGS $LTLIBINTL; do
  7918. acl_save_prefix="$prefix"
  7919. prefix="$acl_final_prefix"
  7920. acl_save_exec_prefix="$exec_prefix"
  7921. exec_prefix="$acl_final_exec_prefix"
  7922. eval x=\"$x\"
  7923. exec_prefix="$acl_save_exec_prefix"
  7924. prefix="$acl_save_prefix"
  7925. case "$x" in
  7926. -L*)
  7927. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7928. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7929. found_dir="$dir"
  7930. found_so="$dir/lib$name.$shlibext"
  7931. if test -f "$dir/lib$name.la"; then
  7932. found_la="$dir/lib$name.la"
  7933. fi
  7934. else
  7935. if test -f "$dir/lib$name.$libext"; then
  7936. found_dir="$dir"
  7937. found_a="$dir/lib$name.$libext"
  7938. if test -f "$dir/lib$name.la"; then
  7939. found_la="$dir/lib$name.la"
  7940. fi
  7941. fi
  7942. fi
  7943. ;;
  7944. esac
  7945. if test "X$found_dir" != "X"; then
  7946. break
  7947. fi
  7948. done
  7949. fi
  7950. if test "X$found_dir" != "X"; then
  7951. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  7952. if test "X$found_so" != "X"; then
  7953. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7954. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7955. else
  7956. haveit=
  7957. for x in $ltrpathdirs; do
  7958. if test "X$x" = "X$found_dir"; then
  7959. haveit=yes
  7960. break
  7961. fi
  7962. done
  7963. if test -z "$haveit"; then
  7964. ltrpathdirs="$ltrpathdirs $found_dir"
  7965. fi
  7966. if test "$hardcode_direct" = yes; then
  7967. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7968. else
  7969. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7970. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7971. haveit=
  7972. for x in $rpathdirs; do
  7973. if test "X$x" = "X$found_dir"; then
  7974. haveit=yes
  7975. break
  7976. fi
  7977. done
  7978. if test -z "$haveit"; then
  7979. rpathdirs="$rpathdirs $found_dir"
  7980. fi
  7981. else
  7982. haveit=
  7983. for x in $LDFLAGS $LIBINTL; do
  7984. acl_save_prefix="$prefix"
  7985. prefix="$acl_final_prefix"
  7986. acl_save_exec_prefix="$exec_prefix"
  7987. exec_prefix="$acl_final_exec_prefix"
  7988. eval x=\"$x\"
  7989. exec_prefix="$acl_save_exec_prefix"
  7990. prefix="$acl_save_prefix"
  7991. if test "X$x" = "X-L$found_dir"; then
  7992. haveit=yes
  7993. break
  7994. fi
  7995. done
  7996. if test -z "$haveit"; then
  7997. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  7998. fi
  7999. if test "$hardcode_minus_L" != no; then
  8000. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8001. else
  8002. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8003. fi
  8004. fi
  8005. fi
  8006. fi
  8007. else
  8008. if test "X$found_a" != "X"; then
  8009. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8010. else
  8011. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8012. fi
  8013. fi
  8014. additional_includedir=
  8015. case "$found_dir" in
  8016. */lib | */lib/)
  8017. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8018. additional_includedir="$basedir/include"
  8019. ;;
  8020. esac
  8021. if test "X$additional_includedir" != "X"; then
  8022. if test "X$additional_includedir" != "X/usr/include"; then
  8023. haveit=
  8024. if test "X$additional_includedir" = "X/usr/local/include"; then
  8025. if test -n "$GCC"; then
  8026. case $host_os in
  8027. linux*) haveit=yes;;
  8028. esac
  8029. fi
  8030. fi
  8031. if test -z "$haveit"; then
  8032. for x in $CPPFLAGS $INCINTL; do
  8033. acl_save_prefix="$prefix"
  8034. prefix="$acl_final_prefix"
  8035. acl_save_exec_prefix="$exec_prefix"
  8036. exec_prefix="$acl_final_exec_prefix"
  8037. eval x=\"$x\"
  8038. exec_prefix="$acl_save_exec_prefix"
  8039. prefix="$acl_save_prefix"
  8040. if test "X$x" = "X-I$additional_includedir"; then
  8041. haveit=yes
  8042. break
  8043. fi
  8044. done
  8045. if test -z "$haveit"; then
  8046. if test -d "$additional_includedir"; then
  8047. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8048. fi
  8049. fi
  8050. fi
  8051. fi
  8052. fi
  8053. if test -n "$found_la"; then
  8054. save_libdir="$libdir"
  8055. case "$found_la" in
  8056. */* | *\\*) . "$found_la" ;;
  8057. *) . "./$found_la" ;;
  8058. esac
  8059. libdir="$save_libdir"
  8060. for dep in $dependency_libs; do
  8061. case "$dep" in
  8062. -L*)
  8063. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8064. if test "X$additional_libdir" != "X/usr/lib"; then
  8065. haveit=
  8066. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8067. if test -n "$GCC"; then
  8068. case $host_os in
  8069. linux*) haveit=yes;;
  8070. esac
  8071. fi
  8072. fi
  8073. if test -z "$haveit"; then
  8074. haveit=
  8075. for x in $LDFLAGS $LIBINTL; do
  8076. acl_save_prefix="$prefix"
  8077. prefix="$acl_final_prefix"
  8078. acl_save_exec_prefix="$exec_prefix"
  8079. exec_prefix="$acl_final_exec_prefix"
  8080. eval x=\"$x\"
  8081. exec_prefix="$acl_save_exec_prefix"
  8082. prefix="$acl_save_prefix"
  8083. if test "X$x" = "X-L$additional_libdir"; then
  8084. haveit=yes
  8085. break
  8086. fi
  8087. done
  8088. if test -z "$haveit"; then
  8089. if test -d "$additional_libdir"; then
  8090. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8091. fi
  8092. fi
  8093. haveit=
  8094. for x in $LDFLAGS $LTLIBINTL; do
  8095. acl_save_prefix="$prefix"
  8096. prefix="$acl_final_prefix"
  8097. acl_save_exec_prefix="$exec_prefix"
  8098. exec_prefix="$acl_final_exec_prefix"
  8099. eval x=\"$x\"
  8100. exec_prefix="$acl_save_exec_prefix"
  8101. prefix="$acl_save_prefix"
  8102. if test "X$x" = "X-L$additional_libdir"; then
  8103. haveit=yes
  8104. break
  8105. fi
  8106. done
  8107. if test -z "$haveit"; then
  8108. if test -d "$additional_libdir"; then
  8109. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8110. fi
  8111. fi
  8112. fi
  8113. fi
  8114. ;;
  8115. -R*)
  8116. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8117. if test "$enable_rpath" != no; then
  8118. haveit=
  8119. for x in $rpathdirs; do
  8120. if test "X$x" = "X$dir"; then
  8121. haveit=yes
  8122. break
  8123. fi
  8124. done
  8125. if test -z "$haveit"; then
  8126. rpathdirs="$rpathdirs $dir"
  8127. fi
  8128. haveit=
  8129. for x in $ltrpathdirs; do
  8130. if test "X$x" = "X$dir"; then
  8131. haveit=yes
  8132. break
  8133. fi
  8134. done
  8135. if test -z "$haveit"; then
  8136. ltrpathdirs="$ltrpathdirs $dir"
  8137. fi
  8138. fi
  8139. ;;
  8140. -l*)
  8141. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8142. ;;
  8143. *.la)
  8144. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8145. ;;
  8146. *)
  8147. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8148. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8149. ;;
  8150. esac
  8151. done
  8152. fi
  8153. else
  8154. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8155. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8156. fi
  8157. fi
  8158. fi
  8159. done
  8160. done
  8161. if test "X$rpathdirs" != "X"; then
  8162. if test -n "$hardcode_libdir_separator"; then
  8163. alldirs=
  8164. for found_dir in $rpathdirs; do
  8165. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8166. done
  8167. acl_save_libdir="$libdir"
  8168. libdir="$alldirs"
  8169. eval flag=\"$hardcode_libdir_flag_spec\"
  8170. libdir="$acl_save_libdir"
  8171. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8172. else
  8173. for found_dir in $rpathdirs; do
  8174. acl_save_libdir="$libdir"
  8175. libdir="$found_dir"
  8176. eval flag=\"$hardcode_libdir_flag_spec\"
  8177. libdir="$acl_save_libdir"
  8178. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8179. done
  8180. fi
  8181. fi
  8182. if test "X$ltrpathdirs" != "X"; then
  8183. for found_dir in $ltrpathdirs; do
  8184. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8185. done
  8186. fi
  8187. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8188. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8189. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8190. echo $ECHO_N "(cached) $ECHO_C" >&6
  8191. else
  8192. gt_save_CPPFLAGS="$CPPFLAGS"
  8193. CPPFLAGS="$CPPFLAGS $INCINTL"
  8194. gt_save_LIBS="$LIBS"
  8195. LIBS="$LIBS $LIBINTL"
  8196. cat >conftest.$ac_ext <<_ACEOF
  8197. /* confdefs.h. */
  8198. _ACEOF
  8199. cat confdefs.h >>conftest.$ac_ext
  8200. cat >>conftest.$ac_ext <<_ACEOF
  8201. /* end confdefs.h. */
  8202. #include <libintl.h>
  8203. extern int _nl_msg_cat_cntr;
  8204. extern
  8205. #ifdef __cplusplus
  8206. "C"
  8207. #endif
  8208. const char *_nl_expand_alias ();
  8209. int
  8210. main ()
  8211. {
  8212. bindtextdomain ("", "");
  8213. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. rm -f conftest.$ac_objext conftest$ac_exeext
  8219. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8220. (eval $ac_link) 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); } &&
  8227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8229. (eval $ac_try) 2>&5
  8230. ac_status=$?
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); }; } &&
  8233. { ac_try='test -s conftest$ac_exeext'
  8234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8235. (eval $ac_try) 2>&5
  8236. ac_status=$?
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. (exit $ac_status); }; }; then
  8239. gt_cv_func_gnugettext1_libintl=yes
  8240. else
  8241. echo "$as_me: failed program was:" >&5
  8242. sed 's/^/| /' conftest.$ac_ext >&5
  8243. gt_cv_func_gnugettext1_libintl=no
  8244. fi
  8245. rm -f conftest.err conftest.$ac_objext \
  8246. conftest$ac_exeext conftest.$ac_ext
  8247. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8248. LIBS="$LIBS $LIBICONV"
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. #include <libintl.h>
  8256. extern int _nl_msg_cat_cntr;
  8257. extern
  8258. #ifdef __cplusplus
  8259. "C"
  8260. #endif
  8261. const char *_nl_expand_alias ();
  8262. int
  8263. main ()
  8264. {
  8265. bindtextdomain ("", "");
  8266. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8267. ;
  8268. return 0;
  8269. }
  8270. _ACEOF
  8271. rm -f conftest.$ac_objext conftest$ac_exeext
  8272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8273. (eval $ac_link) 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } &&
  8280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8282. (eval $ac_try) 2>&5
  8283. ac_status=$?
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); }; } &&
  8286. { ac_try='test -s conftest$ac_exeext'
  8287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8288. (eval $ac_try) 2>&5
  8289. ac_status=$?
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. (exit $ac_status); }; }; then
  8292. LIBINTL="$LIBINTL $LIBICONV"
  8293. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8294. gt_cv_func_gnugettext1_libintl=yes
  8295. else
  8296. echo "$as_me: failed program was:" >&5
  8297. sed 's/^/| /' conftest.$ac_ext >&5
  8298. fi
  8299. rm -f conftest.err conftest.$ac_objext \
  8300. conftest$ac_exeext conftest.$ac_ext
  8301. fi
  8302. CPPFLAGS="$gt_save_CPPFLAGS"
  8303. LIBS="$gt_save_LIBS"
  8304. fi
  8305. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8306. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8307. fi
  8308. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8309. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8310. && test "$PACKAGE" != gettext-runtime \
  8311. && test "$PACKAGE" != gettext-tools; }; then
  8312. gt_use_preinstalled_gnugettext=yes
  8313. else
  8314. LIBINTL=
  8315. LTLIBINTL=
  8316. INCINTL=
  8317. fi
  8318. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8319. nls_cv_use_gnu_gettext=yes
  8320. fi
  8321. fi
  8322. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8323. BUILD_INCLUDED_LIBINTL=yes
  8324. USE_INCLUDED_LIBINTL=yes
  8325. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8326. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8327. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8328. fi
  8329. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8330. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8331. CATOBJEXT=.gmo
  8332. fi
  8333. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8334. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8335. cat >>confdefs.h <<\_ACEOF
  8336. #define ENABLE_NLS 1
  8337. _ACEOF
  8338. else
  8339. USE_NLS=no
  8340. fi
  8341. fi
  8342. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8343. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8344. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8345. echo "${ECHO_T}$USE_NLS" >&6
  8346. if test "$USE_NLS" = "yes"; then
  8347. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8348. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8349. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8350. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8351. gt_source="external libintl"
  8352. else
  8353. gt_source="libc"
  8354. fi
  8355. else
  8356. gt_source="included intl directory"
  8357. fi
  8358. echo "$as_me:$LINENO: result: $gt_source" >&5
  8359. echo "${ECHO_T}$gt_source" >&6
  8360. fi
  8361. if test "$USE_NLS" = "yes"; then
  8362. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8363. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8364. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8365. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8366. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8367. echo "${ECHO_T}$LIBINTL" >&6
  8368. for element in $INCINTL; do
  8369. haveit=
  8370. for x in $CPPFLAGS; do
  8371. acl_save_prefix="$prefix"
  8372. prefix="$acl_final_prefix"
  8373. acl_save_exec_prefix="$exec_prefix"
  8374. exec_prefix="$acl_final_exec_prefix"
  8375. eval x=\"$x\"
  8376. exec_prefix="$acl_save_exec_prefix"
  8377. prefix="$acl_save_prefix"
  8378. if test "X$x" = "X$element"; then
  8379. haveit=yes
  8380. break
  8381. fi
  8382. done
  8383. if test -z "$haveit"; then
  8384. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8385. fi
  8386. done
  8387. fi
  8388. cat >>confdefs.h <<\_ACEOF
  8389. #define HAVE_GETTEXT 1
  8390. _ACEOF
  8391. cat >>confdefs.h <<\_ACEOF
  8392. #define HAVE_DCGETTEXT 1
  8393. _ACEOF
  8394. fi
  8395. POSUB=po
  8396. fi
  8397. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8398. BUILD_INCLUDED_LIBINTL=yes
  8399. fi
  8400. nls_cv_header_intl=
  8401. nls_cv_header_libgt=
  8402. DATADIRNAME=share
  8403. INSTOBJEXT=.mo
  8404. GENCAT=gencat
  8405. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8406. INTLOBJS="\$(GETTOBJS)"
  8407. fi
  8408. INTL_LIBTOOL_SUFFIX_PREFIX=
  8409. INTLLIBS="$LIBINTL"
  8410. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8411. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8412. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8413. echo $ECHO_N "(cached) $ECHO_C" >&6
  8414. else
  8415. cat >conftest.$ac_ext <<_ACEOF
  8416. /* confdefs.h. */
  8417. _ACEOF
  8418. cat confdefs.h >>conftest.$ac_ext
  8419. cat >>conftest.$ac_ext <<_ACEOF
  8420. /* end confdefs.h. */
  8421. $ac_includes_default
  8422. int
  8423. main ()
  8424. {
  8425. error_at_line (0, 0, "", 0, "");
  8426. ;
  8427. return 0;
  8428. }
  8429. _ACEOF
  8430. rm -f conftest.$ac_objext conftest$ac_exeext
  8431. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8432. (eval $ac_link) 2>conftest.er1
  8433. ac_status=$?
  8434. grep -v '^ *+' conftest.er1 >conftest.err
  8435. rm -f conftest.er1
  8436. cat conftest.err >&5
  8437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8438. (exit $ac_status); } &&
  8439. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8441. (eval $ac_try) 2>&5
  8442. ac_status=$?
  8443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8444. (exit $ac_status); }; } &&
  8445. { ac_try='test -s conftest$ac_exeext'
  8446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8447. (eval $ac_try) 2>&5
  8448. ac_status=$?
  8449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8450. (exit $ac_status); }; }; then
  8451. ac_cv_lib_error_at_line=yes
  8452. else
  8453. echo "$as_me: failed program was:" >&5
  8454. sed 's/^/| /' conftest.$ac_ext >&5
  8455. ac_cv_lib_error_at_line=no
  8456. fi
  8457. rm -f conftest.err conftest.$ac_objext \
  8458. conftest$ac_exeext conftest.$ac_ext
  8459. fi
  8460. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8461. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8462. if test $ac_cv_lib_error_at_line = no; then
  8463. case $LIBOBJS in
  8464. "error.$ac_objext" | \
  8465. *" error.$ac_objext" | \
  8466. "error.$ac_objext "* | \
  8467. *" error.$ac_objext "* ) ;;
  8468. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8469. esac
  8470. fi
  8471. for ac_header in stdlib.h
  8472. do
  8473. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8474. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8475. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8476. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8477. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8478. echo $ECHO_N "(cached) $ECHO_C" >&6
  8479. fi
  8480. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8481. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8482. else
  8483. # Is the header compilable?
  8484. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8485. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. $ac_includes_default
  8493. #include <$ac_header>
  8494. _ACEOF
  8495. rm -f conftest.$ac_objext
  8496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8497. (eval $ac_compile) 2>conftest.er1
  8498. ac_status=$?
  8499. grep -v '^ *+' conftest.er1 >conftest.err
  8500. rm -f conftest.er1
  8501. cat conftest.err >&5
  8502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8503. (exit $ac_status); } &&
  8504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8506. (eval $ac_try) 2>&5
  8507. ac_status=$?
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. (exit $ac_status); }; } &&
  8510. { ac_try='test -s conftest.$ac_objext'
  8511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8512. (eval $ac_try) 2>&5
  8513. ac_status=$?
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. (exit $ac_status); }; }; then
  8516. ac_header_compiler=yes
  8517. else
  8518. echo "$as_me: failed program was:" >&5
  8519. sed 's/^/| /' conftest.$ac_ext >&5
  8520. ac_header_compiler=no
  8521. fi
  8522. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8523. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8524. echo "${ECHO_T}$ac_header_compiler" >&6
  8525. # Is the header present?
  8526. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8527. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8528. cat >conftest.$ac_ext <<_ACEOF
  8529. /* confdefs.h. */
  8530. _ACEOF
  8531. cat confdefs.h >>conftest.$ac_ext
  8532. cat >>conftest.$ac_ext <<_ACEOF
  8533. /* end confdefs.h. */
  8534. #include <$ac_header>
  8535. _ACEOF
  8536. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8537. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8538. ac_status=$?
  8539. grep -v '^ *+' conftest.er1 >conftest.err
  8540. rm -f conftest.er1
  8541. cat conftest.err >&5
  8542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. (exit $ac_status); } >/dev/null; then
  8544. if test -s conftest.err; then
  8545. ac_cpp_err=$ac_c_preproc_warn_flag
  8546. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8547. else
  8548. ac_cpp_err=
  8549. fi
  8550. else
  8551. ac_cpp_err=yes
  8552. fi
  8553. if test -z "$ac_cpp_err"; then
  8554. ac_header_preproc=yes
  8555. else
  8556. echo "$as_me: failed program was:" >&5
  8557. sed 's/^/| /' conftest.$ac_ext >&5
  8558. ac_header_preproc=no
  8559. fi
  8560. rm -f conftest.err conftest.$ac_ext
  8561. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8562. echo "${ECHO_T}$ac_header_preproc" >&6
  8563. # So? What about this header?
  8564. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8565. yes:no: )
  8566. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8567. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8568. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8569. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8570. ac_header_preproc=yes
  8571. ;;
  8572. no:yes:* )
  8573. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8574. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8575. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8576. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8577. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8578. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8579. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8580. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8581. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8582. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8583. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8584. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8585. (
  8586. cat <<\_ASBOX
  8587. ## ----------------------------------- ##
  8588. ## Report this to tujikawa@rednoah.com ##
  8589. ## ----------------------------------- ##
  8590. _ASBOX
  8591. ) |
  8592. sed "s/^/$as_me: WARNING: /" >&2
  8593. ;;
  8594. esac
  8595. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8597. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8598. echo $ECHO_N "(cached) $ECHO_C" >&6
  8599. else
  8600. eval "$as_ac_Header=\$ac_header_preproc"
  8601. fi
  8602. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8603. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8604. fi
  8605. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8606. cat >>confdefs.h <<_ACEOF
  8607. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8608. _ACEOF
  8609. fi
  8610. done
  8611. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8612. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8613. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8614. echo $ECHO_N "(cached) $ECHO_C" >&6
  8615. else
  8616. if test "$cross_compiling" = yes; then
  8617. ac_cv_func_malloc_0_nonnull=no
  8618. else
  8619. cat >conftest.$ac_ext <<_ACEOF
  8620. /* confdefs.h. */
  8621. _ACEOF
  8622. cat confdefs.h >>conftest.$ac_ext
  8623. cat >>conftest.$ac_ext <<_ACEOF
  8624. /* end confdefs.h. */
  8625. #if STDC_HEADERS || HAVE_STDLIB_H
  8626. # include <stdlib.h>
  8627. #else
  8628. char *malloc ();
  8629. #endif
  8630. int
  8631. main ()
  8632. {
  8633. exit (malloc (0) ? 0 : 1);
  8634. ;
  8635. return 0;
  8636. }
  8637. _ACEOF
  8638. rm -f conftest$ac_exeext
  8639. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8640. (eval $ac_link) 2>&5
  8641. ac_status=$?
  8642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8643. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8645. (eval $ac_try) 2>&5
  8646. ac_status=$?
  8647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8648. (exit $ac_status); }; }; then
  8649. ac_cv_func_malloc_0_nonnull=yes
  8650. else
  8651. echo "$as_me: program exited with status $ac_status" >&5
  8652. echo "$as_me: failed program was:" >&5
  8653. sed 's/^/| /' conftest.$ac_ext >&5
  8654. ( exit $ac_status )
  8655. ac_cv_func_malloc_0_nonnull=no
  8656. fi
  8657. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8658. fi
  8659. fi
  8660. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8661. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8662. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8663. cat >>confdefs.h <<\_ACEOF
  8664. #define HAVE_MALLOC 1
  8665. _ACEOF
  8666. else
  8667. cat >>confdefs.h <<\_ACEOF
  8668. #define HAVE_MALLOC 0
  8669. _ACEOF
  8670. case $LIBOBJS in
  8671. "malloc.$ac_objext" | \
  8672. *" malloc.$ac_objext" | \
  8673. "malloc.$ac_objext "* | \
  8674. *" malloc.$ac_objext "* ) ;;
  8675. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8676. esac
  8677. cat >>confdefs.h <<\_ACEOF
  8678. #define malloc rpl_malloc
  8679. _ACEOF
  8680. fi
  8681. echo "$as_me:$LINENO: checking for working memcmp" >&5
  8682. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  8683. if test "${ac_cv_func_memcmp_working+set}" = set; then
  8684. echo $ECHO_N "(cached) $ECHO_C" >&6
  8685. else
  8686. if test "$cross_compiling" = yes; then
  8687. ac_cv_func_memcmp_working=no
  8688. else
  8689. cat >conftest.$ac_ext <<_ACEOF
  8690. /* confdefs.h. */
  8691. _ACEOF
  8692. cat confdefs.h >>conftest.$ac_ext
  8693. cat >>conftest.$ac_ext <<_ACEOF
  8694. /* end confdefs.h. */
  8695. $ac_includes_default
  8696. int
  8697. main ()
  8698. {
  8699. /* Some versions of memcmp are not 8-bit clean. */
  8700. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  8701. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  8702. exit (1);
  8703. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  8704. or more and with at least one buffer not starting on a 4-byte boundary.
  8705. William Lewis provided this test program. */
  8706. {
  8707. char foo[21];
  8708. char bar[21];
  8709. int i;
  8710. for (i = 0; i < 4; i++)
  8711. {
  8712. char *a = foo + i;
  8713. char *b = bar + i;
  8714. strcpy (a, "--------01111111");
  8715. strcpy (b, "--------10000000");
  8716. if (memcmp (a, b, 16) >= 0)
  8717. exit (1);
  8718. }
  8719. exit (0);
  8720. }
  8721. ;
  8722. return 0;
  8723. }
  8724. _ACEOF
  8725. rm -f conftest$ac_exeext
  8726. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8727. (eval $ac_link) 2>&5
  8728. ac_status=$?
  8729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8730. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8732. (eval $ac_try) 2>&5
  8733. ac_status=$?
  8734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8735. (exit $ac_status); }; }; then
  8736. ac_cv_func_memcmp_working=yes
  8737. else
  8738. echo "$as_me: program exited with status $ac_status" >&5
  8739. echo "$as_me: failed program was:" >&5
  8740. sed 's/^/| /' conftest.$ac_ext >&5
  8741. ( exit $ac_status )
  8742. ac_cv_func_memcmp_working=no
  8743. fi
  8744. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8745. fi
  8746. fi
  8747. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  8748. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  8749. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  8750. "memcmp.$ac_objext" | \
  8751. *" memcmp.$ac_objext" | \
  8752. "memcmp.$ac_objext "* | \
  8753. *" memcmp.$ac_objext "* ) ;;
  8754. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  8755. esac
  8756. for ac_header in stdlib.h unistd.h
  8757. do
  8758. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8759. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8760. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8762. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. fi
  8765. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8766. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8767. else
  8768. # Is the header compilable?
  8769. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8770. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8771. cat >conftest.$ac_ext <<_ACEOF
  8772. /* confdefs.h. */
  8773. _ACEOF
  8774. cat confdefs.h >>conftest.$ac_ext
  8775. cat >>conftest.$ac_ext <<_ACEOF
  8776. /* end confdefs.h. */
  8777. $ac_includes_default
  8778. #include <$ac_header>
  8779. _ACEOF
  8780. rm -f conftest.$ac_objext
  8781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8782. (eval $ac_compile) 2>conftest.er1
  8783. ac_status=$?
  8784. grep -v '^ *+' conftest.er1 >conftest.err
  8785. rm -f conftest.er1
  8786. cat conftest.err >&5
  8787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788. (exit $ac_status); } &&
  8789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8791. (eval $ac_try) 2>&5
  8792. ac_status=$?
  8793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); }; } &&
  8795. { ac_try='test -s conftest.$ac_objext'
  8796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8797. (eval $ac_try) 2>&5
  8798. ac_status=$?
  8799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8800. (exit $ac_status); }; }; then
  8801. ac_header_compiler=yes
  8802. else
  8803. echo "$as_me: failed program was:" >&5
  8804. sed 's/^/| /' conftest.$ac_ext >&5
  8805. ac_header_compiler=no
  8806. fi
  8807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8808. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8809. echo "${ECHO_T}$ac_header_compiler" >&6
  8810. # Is the header present?
  8811. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8812. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8813. cat >conftest.$ac_ext <<_ACEOF
  8814. /* confdefs.h. */
  8815. _ACEOF
  8816. cat confdefs.h >>conftest.$ac_ext
  8817. cat >>conftest.$ac_ext <<_ACEOF
  8818. /* end confdefs.h. */
  8819. #include <$ac_header>
  8820. _ACEOF
  8821. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8822. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8823. ac_status=$?
  8824. grep -v '^ *+' conftest.er1 >conftest.err
  8825. rm -f conftest.er1
  8826. cat conftest.err >&5
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } >/dev/null; then
  8829. if test -s conftest.err; then
  8830. ac_cpp_err=$ac_c_preproc_warn_flag
  8831. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8832. else
  8833. ac_cpp_err=
  8834. fi
  8835. else
  8836. ac_cpp_err=yes
  8837. fi
  8838. if test -z "$ac_cpp_err"; then
  8839. ac_header_preproc=yes
  8840. else
  8841. echo "$as_me: failed program was:" >&5
  8842. sed 's/^/| /' conftest.$ac_ext >&5
  8843. ac_header_preproc=no
  8844. fi
  8845. rm -f conftest.err conftest.$ac_ext
  8846. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8847. echo "${ECHO_T}$ac_header_preproc" >&6
  8848. # So? What about this header?
  8849. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8850. yes:no: )
  8851. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8852. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8853. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8854. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8855. ac_header_preproc=yes
  8856. ;;
  8857. no:yes:* )
  8858. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8859. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8860. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8861. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8862. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8863. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8864. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8865. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8866. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8867. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8868. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8869. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8870. (
  8871. cat <<\_ASBOX
  8872. ## ----------------------------------- ##
  8873. ## Report this to tujikawa@rednoah.com ##
  8874. ## ----------------------------------- ##
  8875. _ASBOX
  8876. ) |
  8877. sed "s/^/$as_me: WARNING: /" >&2
  8878. ;;
  8879. esac
  8880. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8883. echo $ECHO_N "(cached) $ECHO_C" >&6
  8884. else
  8885. eval "$as_ac_Header=\$ac_header_preproc"
  8886. fi
  8887. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8888. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8889. fi
  8890. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8891. cat >>confdefs.h <<_ACEOF
  8892. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8893. _ACEOF
  8894. fi
  8895. done
  8896. for ac_func in getpagesize
  8897. do
  8898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8899. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8901. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8902. echo $ECHO_N "(cached) $ECHO_C" >&6
  8903. else
  8904. cat >conftest.$ac_ext <<_ACEOF
  8905. /* confdefs.h. */
  8906. _ACEOF
  8907. cat confdefs.h >>conftest.$ac_ext
  8908. cat >>conftest.$ac_ext <<_ACEOF
  8909. /* end confdefs.h. */
  8910. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8912. #define $ac_func innocuous_$ac_func
  8913. /* System header to define __stub macros and hopefully few prototypes,
  8914. which can conflict with char $ac_func (); below.
  8915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8916. <limits.h> exists even on freestanding compilers. */
  8917. #ifdef __STDC__
  8918. # include <limits.h>
  8919. #else
  8920. # include <assert.h>
  8921. #endif
  8922. #undef $ac_func
  8923. /* Override any gcc2 internal prototype to avoid an error. */
  8924. #ifdef __cplusplus
  8925. extern "C"
  8926. {
  8927. #endif
  8928. /* We use char because int might match the return type of a gcc2
  8929. builtin and then its argument prototype would still apply. */
  8930. char $ac_func ();
  8931. /* The GNU C library defines this for functions which it implements
  8932. to always fail with ENOSYS. Some functions are actually named
  8933. something starting with __ and the normal name is an alias. */
  8934. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8935. choke me
  8936. #else
  8937. char (*f) () = $ac_func;
  8938. #endif
  8939. #ifdef __cplusplus
  8940. }
  8941. #endif
  8942. int
  8943. main ()
  8944. {
  8945. return f != $ac_func;
  8946. ;
  8947. return 0;
  8948. }
  8949. _ACEOF
  8950. rm -f conftest.$ac_objext conftest$ac_exeext
  8951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8952. (eval $ac_link) 2>conftest.er1
  8953. ac_status=$?
  8954. grep -v '^ *+' conftest.er1 >conftest.err
  8955. rm -f conftest.er1
  8956. cat conftest.err >&5
  8957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); } &&
  8959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8961. (eval $ac_try) 2>&5
  8962. ac_status=$?
  8963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8964. (exit $ac_status); }; } &&
  8965. { ac_try='test -s conftest$ac_exeext'
  8966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8967. (eval $ac_try) 2>&5
  8968. ac_status=$?
  8969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8970. (exit $ac_status); }; }; then
  8971. eval "$as_ac_var=yes"
  8972. else
  8973. echo "$as_me: failed program was:" >&5
  8974. sed 's/^/| /' conftest.$ac_ext >&5
  8975. eval "$as_ac_var=no"
  8976. fi
  8977. rm -f conftest.err conftest.$ac_objext \
  8978. conftest$ac_exeext conftest.$ac_ext
  8979. fi
  8980. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8981. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8982. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8983. cat >>confdefs.h <<_ACEOF
  8984. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8985. _ACEOF
  8986. fi
  8987. done
  8988. echo "$as_me:$LINENO: checking for working mmap" >&5
  8989. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8990. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8991. echo $ECHO_N "(cached) $ECHO_C" >&6
  8992. else
  8993. if test "$cross_compiling" = yes; then
  8994. ac_cv_func_mmap_fixed_mapped=no
  8995. else
  8996. cat >conftest.$ac_ext <<_ACEOF
  8997. /* confdefs.h. */
  8998. _ACEOF
  8999. cat confdefs.h >>conftest.$ac_ext
  9000. cat >>conftest.$ac_ext <<_ACEOF
  9001. /* end confdefs.h. */
  9002. $ac_includes_default
  9003. /* malloc might have been renamed as rpl_malloc. */
  9004. #undef malloc
  9005. /* Thanks to Mike Haertel and Jim Avera for this test.
  9006. Here is a matrix of mmap possibilities:
  9007. mmap private not fixed
  9008. mmap private fixed at somewhere currently unmapped
  9009. mmap private fixed at somewhere already mapped
  9010. mmap shared not fixed
  9011. mmap shared fixed at somewhere currently unmapped
  9012. mmap shared fixed at somewhere already mapped
  9013. For private mappings, we should verify that changes cannot be read()
  9014. back from the file, nor mmap's back from the file at a different
  9015. address. (There have been systems where private was not correctly
  9016. implemented like the infamous i386 svr4.0, and systems where the
  9017. VM page cache was not coherent with the file system buffer cache
  9018. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9019. For shared mappings, we should conversely verify that changes get
  9020. propagated back to all the places they're supposed to be.
  9021. Grep wants private fixed already mapped.
  9022. The main things grep needs to know about mmap are:
  9023. * does it exist and is it safe to write into the mmap'd area
  9024. * how to use it (BSD variants) */
  9025. #include <fcntl.h>
  9026. #include <sys/mman.h>
  9027. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9028. char *malloc ();
  9029. #endif
  9030. /* This mess was copied from the GNU getpagesize.h. */
  9031. #if !HAVE_GETPAGESIZE
  9032. /* Assume that all systems that can run configure have sys/param.h. */
  9033. # if !HAVE_SYS_PARAM_H
  9034. # define HAVE_SYS_PARAM_H 1
  9035. # endif
  9036. # ifdef _SC_PAGESIZE
  9037. # define getpagesize() sysconf(_SC_PAGESIZE)
  9038. # else /* no _SC_PAGESIZE */
  9039. # if HAVE_SYS_PARAM_H
  9040. # include <sys/param.h>
  9041. # ifdef EXEC_PAGESIZE
  9042. # define getpagesize() EXEC_PAGESIZE
  9043. # else /* no EXEC_PAGESIZE */
  9044. # ifdef NBPG
  9045. # define getpagesize() NBPG * CLSIZE
  9046. # ifndef CLSIZE
  9047. # define CLSIZE 1
  9048. # endif /* no CLSIZE */
  9049. # else /* no NBPG */
  9050. # ifdef NBPC
  9051. # define getpagesize() NBPC
  9052. # else /* no NBPC */
  9053. # ifdef PAGESIZE
  9054. # define getpagesize() PAGESIZE
  9055. # endif /* PAGESIZE */
  9056. # endif /* no NBPC */
  9057. # endif /* no NBPG */
  9058. # endif /* no EXEC_PAGESIZE */
  9059. # else /* no HAVE_SYS_PARAM_H */
  9060. # define getpagesize() 8192 /* punt totally */
  9061. # endif /* no HAVE_SYS_PARAM_H */
  9062. # endif /* no _SC_PAGESIZE */
  9063. #endif /* no HAVE_GETPAGESIZE */
  9064. int
  9065. main ()
  9066. {
  9067. char *data, *data2, *data3;
  9068. int i, pagesize;
  9069. int fd;
  9070. pagesize = getpagesize ();
  9071. /* First, make a file with some known garbage in it. */
  9072. data = (char *) malloc (pagesize);
  9073. if (!data)
  9074. exit (1);
  9075. for (i = 0; i < pagesize; ++i)
  9076. *(data + i) = rand ();
  9077. umask (0);
  9078. fd = creat ("conftest.mmap", 0600);
  9079. if (fd < 0)
  9080. exit (1);
  9081. if (write (fd, data, pagesize) != pagesize)
  9082. exit (1);
  9083. close (fd);
  9084. /* Next, try to mmap the file at a fixed address which already has
  9085. something else allocated at it. If we can, also make sure that
  9086. we see the same garbage. */
  9087. fd = open ("conftest.mmap", O_RDWR);
  9088. if (fd < 0)
  9089. exit (1);
  9090. data2 = (char *) malloc (2 * pagesize);
  9091. if (!data2)
  9092. exit (1);
  9093. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9094. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9095. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9096. exit (1);
  9097. for (i = 0; i < pagesize; ++i)
  9098. if (*(data + i) != *(data2 + i))
  9099. exit (1);
  9100. /* Finally, make sure that changes to the mapped area do not
  9101. percolate back to the file as seen by read(). (This is a bug on
  9102. some variants of i386 svr4.0.) */
  9103. for (i = 0; i < pagesize; ++i)
  9104. *(data2 + i) = *(data2 + i) + 1;
  9105. data3 = (char *) malloc (pagesize);
  9106. if (!data3)
  9107. exit (1);
  9108. if (read (fd, data3, pagesize) != pagesize)
  9109. exit (1);
  9110. for (i = 0; i < pagesize; ++i)
  9111. if (*(data + i) != *(data3 + i))
  9112. exit (1);
  9113. close (fd);
  9114. exit (0);
  9115. }
  9116. _ACEOF
  9117. rm -f conftest$ac_exeext
  9118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9119. (eval $ac_link) 2>&5
  9120. ac_status=$?
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9124. (eval $ac_try) 2>&5
  9125. ac_status=$?
  9126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9127. (exit $ac_status); }; }; then
  9128. ac_cv_func_mmap_fixed_mapped=yes
  9129. else
  9130. echo "$as_me: program exited with status $ac_status" >&5
  9131. echo "$as_me: failed program was:" >&5
  9132. sed 's/^/| /' conftest.$ac_ext >&5
  9133. ( exit $ac_status )
  9134. ac_cv_func_mmap_fixed_mapped=no
  9135. fi
  9136. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9137. fi
  9138. fi
  9139. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9140. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9141. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9142. cat >>confdefs.h <<\_ACEOF
  9143. #define HAVE_MMAP 1
  9144. _ACEOF
  9145. fi
  9146. rm -f conftest.mmap
  9147. for ac_header in stdlib.h
  9148. do
  9149. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9150. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9151. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9152. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9153. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9154. echo $ECHO_N "(cached) $ECHO_C" >&6
  9155. fi
  9156. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9157. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9158. else
  9159. # Is the header compilable?
  9160. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9161. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9162. cat >conftest.$ac_ext <<_ACEOF
  9163. /* confdefs.h. */
  9164. _ACEOF
  9165. cat confdefs.h >>conftest.$ac_ext
  9166. cat >>conftest.$ac_ext <<_ACEOF
  9167. /* end confdefs.h. */
  9168. $ac_includes_default
  9169. #include <$ac_header>
  9170. _ACEOF
  9171. rm -f conftest.$ac_objext
  9172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9173. (eval $ac_compile) 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. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9182. (eval $ac_try) 2>&5
  9183. ac_status=$?
  9184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9185. (exit $ac_status); }; } &&
  9186. { ac_try='test -s conftest.$ac_objext'
  9187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9188. (eval $ac_try) 2>&5
  9189. ac_status=$?
  9190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9191. (exit $ac_status); }; }; then
  9192. ac_header_compiler=yes
  9193. else
  9194. echo "$as_me: failed program was:" >&5
  9195. sed 's/^/| /' conftest.$ac_ext >&5
  9196. ac_header_compiler=no
  9197. fi
  9198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9199. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9200. echo "${ECHO_T}$ac_header_compiler" >&6
  9201. # Is the header present?
  9202. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9203. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9204. cat >conftest.$ac_ext <<_ACEOF
  9205. /* confdefs.h. */
  9206. _ACEOF
  9207. cat confdefs.h >>conftest.$ac_ext
  9208. cat >>conftest.$ac_ext <<_ACEOF
  9209. /* end confdefs.h. */
  9210. #include <$ac_header>
  9211. _ACEOF
  9212. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9213. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9214. ac_status=$?
  9215. grep -v '^ *+' conftest.er1 >conftest.err
  9216. rm -f conftest.er1
  9217. cat conftest.err >&5
  9218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9219. (exit $ac_status); } >/dev/null; then
  9220. if test -s conftest.err; then
  9221. ac_cpp_err=$ac_c_preproc_warn_flag
  9222. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9223. else
  9224. ac_cpp_err=
  9225. fi
  9226. else
  9227. ac_cpp_err=yes
  9228. fi
  9229. if test -z "$ac_cpp_err"; then
  9230. ac_header_preproc=yes
  9231. else
  9232. echo "$as_me: failed program was:" >&5
  9233. sed 's/^/| /' conftest.$ac_ext >&5
  9234. ac_header_preproc=no
  9235. fi
  9236. rm -f conftest.err conftest.$ac_ext
  9237. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9238. echo "${ECHO_T}$ac_header_preproc" >&6
  9239. # So? What about this header?
  9240. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9241. yes:no: )
  9242. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9243. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9244. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9245. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9246. ac_header_preproc=yes
  9247. ;;
  9248. no:yes:* )
  9249. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9250. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9251. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9252. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9253. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9254. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9255. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9256. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9257. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9258. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9259. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9260. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9261. (
  9262. cat <<\_ASBOX
  9263. ## ----------------------------------- ##
  9264. ## Report this to tujikawa@rednoah.com ##
  9265. ## ----------------------------------- ##
  9266. _ASBOX
  9267. ) |
  9268. sed "s/^/$as_me: WARNING: /" >&2
  9269. ;;
  9270. esac
  9271. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9272. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9273. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9274. echo $ECHO_N "(cached) $ECHO_C" >&6
  9275. else
  9276. eval "$as_ac_Header=\$ac_header_preproc"
  9277. fi
  9278. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9279. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9280. fi
  9281. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9282. cat >>confdefs.h <<_ACEOF
  9283. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9284. _ACEOF
  9285. fi
  9286. done
  9287. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9288. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9289. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9290. echo $ECHO_N "(cached) $ECHO_C" >&6
  9291. else
  9292. if test "$cross_compiling" = yes; then
  9293. ac_cv_func_realloc_0_nonnull=no
  9294. else
  9295. cat >conftest.$ac_ext <<_ACEOF
  9296. /* confdefs.h. */
  9297. _ACEOF
  9298. cat confdefs.h >>conftest.$ac_ext
  9299. cat >>conftest.$ac_ext <<_ACEOF
  9300. /* end confdefs.h. */
  9301. #if STDC_HEADERS || HAVE_STDLIB_H
  9302. # include <stdlib.h>
  9303. #else
  9304. char *realloc ();
  9305. #endif
  9306. int
  9307. main ()
  9308. {
  9309. exit (realloc (0, 0) ? 0 : 1);
  9310. ;
  9311. return 0;
  9312. }
  9313. _ACEOF
  9314. rm -f conftest$ac_exeext
  9315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9316. (eval $ac_link) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9321. (eval $ac_try) 2>&5
  9322. ac_status=$?
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_func_realloc_0_nonnull=yes
  9326. else
  9327. echo "$as_me: program exited with status $ac_status" >&5
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ( exit $ac_status )
  9331. ac_cv_func_realloc_0_nonnull=no
  9332. fi
  9333. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9334. fi
  9335. fi
  9336. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9337. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9338. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9339. cat >>confdefs.h <<\_ACEOF
  9340. #define HAVE_REALLOC 1
  9341. _ACEOF
  9342. else
  9343. cat >>confdefs.h <<\_ACEOF
  9344. #define HAVE_REALLOC 0
  9345. _ACEOF
  9346. case $LIBOBJS in
  9347. "realloc.$ac_objext" | \
  9348. *" realloc.$ac_objext" | \
  9349. "realloc.$ac_objext "* | \
  9350. *" realloc.$ac_objext "* ) ;;
  9351. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9352. esac
  9353. cat >>confdefs.h <<\_ACEOF
  9354. #define realloc rpl_realloc
  9355. _ACEOF
  9356. fi
  9357. for ac_header in sys/select.h sys/socket.h
  9358. do
  9359. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9360. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9361. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9362. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9363. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9364. echo $ECHO_N "(cached) $ECHO_C" >&6
  9365. fi
  9366. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9367. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9368. else
  9369. # Is the header compilable?
  9370. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9371. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9372. cat >conftest.$ac_ext <<_ACEOF
  9373. /* confdefs.h. */
  9374. _ACEOF
  9375. cat confdefs.h >>conftest.$ac_ext
  9376. cat >>conftest.$ac_ext <<_ACEOF
  9377. /* end confdefs.h. */
  9378. $ac_includes_default
  9379. #include <$ac_header>
  9380. _ACEOF
  9381. rm -f conftest.$ac_objext
  9382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9383. (eval $ac_compile) 2>conftest.er1
  9384. ac_status=$?
  9385. grep -v '^ *+' conftest.er1 >conftest.err
  9386. rm -f conftest.er1
  9387. cat conftest.err >&5
  9388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. (exit $ac_status); } &&
  9390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9392. (eval $ac_try) 2>&5
  9393. ac_status=$?
  9394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9395. (exit $ac_status); }; } &&
  9396. { ac_try='test -s conftest.$ac_objext'
  9397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9398. (eval $ac_try) 2>&5
  9399. ac_status=$?
  9400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9401. (exit $ac_status); }; }; then
  9402. ac_header_compiler=yes
  9403. else
  9404. echo "$as_me: failed program was:" >&5
  9405. sed 's/^/| /' conftest.$ac_ext >&5
  9406. ac_header_compiler=no
  9407. fi
  9408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9409. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9410. echo "${ECHO_T}$ac_header_compiler" >&6
  9411. # Is the header present?
  9412. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9413. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9414. cat >conftest.$ac_ext <<_ACEOF
  9415. /* confdefs.h. */
  9416. _ACEOF
  9417. cat confdefs.h >>conftest.$ac_ext
  9418. cat >>conftest.$ac_ext <<_ACEOF
  9419. /* end confdefs.h. */
  9420. #include <$ac_header>
  9421. _ACEOF
  9422. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9423. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9424. ac_status=$?
  9425. grep -v '^ *+' conftest.er1 >conftest.err
  9426. rm -f conftest.er1
  9427. cat conftest.err >&5
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); } >/dev/null; then
  9430. if test -s conftest.err; then
  9431. ac_cpp_err=$ac_c_preproc_warn_flag
  9432. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9433. else
  9434. ac_cpp_err=
  9435. fi
  9436. else
  9437. ac_cpp_err=yes
  9438. fi
  9439. if test -z "$ac_cpp_err"; then
  9440. ac_header_preproc=yes
  9441. else
  9442. echo "$as_me: failed program was:" >&5
  9443. sed 's/^/| /' conftest.$ac_ext >&5
  9444. ac_header_preproc=no
  9445. fi
  9446. rm -f conftest.err conftest.$ac_ext
  9447. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9448. echo "${ECHO_T}$ac_header_preproc" >&6
  9449. # So? What about this header?
  9450. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9451. yes:no: )
  9452. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9453. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9455. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9456. ac_header_preproc=yes
  9457. ;;
  9458. no:yes:* )
  9459. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9460. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9461. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9462. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9463. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9464. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9465. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9466. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9468. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9469. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9470. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9471. (
  9472. cat <<\_ASBOX
  9473. ## ----------------------------------- ##
  9474. ## Report this to tujikawa@rednoah.com ##
  9475. ## ----------------------------------- ##
  9476. _ASBOX
  9477. ) |
  9478. sed "s/^/$as_me: WARNING: /" >&2
  9479. ;;
  9480. esac
  9481. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9484. echo $ECHO_N "(cached) $ECHO_C" >&6
  9485. else
  9486. eval "$as_ac_Header=\$ac_header_preproc"
  9487. fi
  9488. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9489. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9490. fi
  9491. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9492. cat >>confdefs.h <<_ACEOF
  9493. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9494. _ACEOF
  9495. fi
  9496. done
  9497. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9498. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9499. if test "${ac_cv_func_select_args+set}" = set; then
  9500. echo $ECHO_N "(cached) $ECHO_C" >&6
  9501. else
  9502. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9503. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9504. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9505. cat >conftest.$ac_ext <<_ACEOF
  9506. /* confdefs.h. */
  9507. _ACEOF
  9508. cat confdefs.h >>conftest.$ac_ext
  9509. cat >>conftest.$ac_ext <<_ACEOF
  9510. /* end confdefs.h. */
  9511. $ac_includes_default
  9512. #if HAVE_SYS_SELECT_H
  9513. # include <sys/select.h>
  9514. #endif
  9515. #if HAVE_SYS_SOCKET_H
  9516. # include <sys/socket.h>
  9517. #endif
  9518. int
  9519. main ()
  9520. {
  9521. extern int select ($ac_arg1,
  9522. $ac_arg234, $ac_arg234, $ac_arg234,
  9523. $ac_arg5);
  9524. ;
  9525. return 0;
  9526. }
  9527. _ACEOF
  9528. rm -f conftest.$ac_objext
  9529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9530. (eval $ac_compile) 2>conftest.er1
  9531. ac_status=$?
  9532. grep -v '^ *+' conftest.er1 >conftest.err
  9533. rm -f conftest.er1
  9534. cat conftest.err >&5
  9535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9536. (exit $ac_status); } &&
  9537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9539. (eval $ac_try) 2>&5
  9540. ac_status=$?
  9541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9542. (exit $ac_status); }; } &&
  9543. { ac_try='test -s conftest.$ac_objext'
  9544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9545. (eval $ac_try) 2>&5
  9546. ac_status=$?
  9547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9548. (exit $ac_status); }; }; then
  9549. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9550. else
  9551. echo "$as_me: failed program was:" >&5
  9552. sed 's/^/| /' conftest.$ac_ext >&5
  9553. fi
  9554. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9555. done
  9556. done
  9557. done
  9558. # Provide a safe default value.
  9559. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9560. fi
  9561. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9562. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9563. ac_save_IFS=$IFS; IFS=','
  9564. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9565. IFS=$ac_save_IFS
  9566. shift
  9567. cat >>confdefs.h <<_ACEOF
  9568. #define SELECT_TYPE_ARG1 $1
  9569. _ACEOF
  9570. cat >>confdefs.h <<_ACEOF
  9571. #define SELECT_TYPE_ARG234 ($2)
  9572. _ACEOF
  9573. cat >>confdefs.h <<_ACEOF
  9574. #define SELECT_TYPE_ARG5 ($3)
  9575. _ACEOF
  9576. rm -f conftest*
  9577. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9578. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9579. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9580. echo $ECHO_N "(cached) $ECHO_C" >&6
  9581. else
  9582. rm -f conftest.sym conftest.file
  9583. echo >conftest.file
  9584. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9585. if test "$cross_compiling" = yes; then
  9586. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9587. else
  9588. cat >conftest.$ac_ext <<_ACEOF
  9589. /* confdefs.h. */
  9590. _ACEOF
  9591. cat confdefs.h >>conftest.$ac_ext
  9592. cat >>conftest.$ac_ext <<_ACEOF
  9593. /* end confdefs.h. */
  9594. $ac_includes_default
  9595. int
  9596. main ()
  9597. {
  9598. struct stat sbuf;
  9599. /* Linux will dereference the symlink and fail.
  9600. That is better in the sense that it means we will not
  9601. have to compile and use the lstat wrapper. */
  9602. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9603. ;
  9604. return 0;
  9605. }
  9606. _ACEOF
  9607. rm -f conftest$ac_exeext
  9608. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9609. (eval $ac_link) 2>&5
  9610. ac_status=$?
  9611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9612. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9614. (eval $ac_try) 2>&5
  9615. ac_status=$?
  9616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9617. (exit $ac_status); }; }; then
  9618. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9619. else
  9620. echo "$as_me: program exited with status $ac_status" >&5
  9621. echo "$as_me: failed program was:" >&5
  9622. sed 's/^/| /' conftest.$ac_ext >&5
  9623. ( exit $ac_status )
  9624. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9625. fi
  9626. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9627. fi
  9628. else
  9629. # If the `ln -s' command failed, then we probably don't even
  9630. # have an lstat function.
  9631. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9632. fi
  9633. rm -f conftest.sym conftest.file
  9634. fi
  9635. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9636. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9637. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9638. cat >>confdefs.h <<_ACEOF
  9639. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9640. _ACEOF
  9641. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9642. case $LIBOBJS in
  9643. "lstat.$ac_objext" | \
  9644. *" lstat.$ac_objext" | \
  9645. "lstat.$ac_objext "* | \
  9646. *" lstat.$ac_objext "* ) ;;
  9647. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9648. esac
  9649. fi
  9650. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9651. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9652. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9653. echo $ECHO_N "(cached) $ECHO_C" >&6
  9654. else
  9655. if test "$cross_compiling" = yes; then
  9656. ac_cv_func_stat_empty_string_bug=yes
  9657. else
  9658. cat >conftest.$ac_ext <<_ACEOF
  9659. /* confdefs.h. */
  9660. _ACEOF
  9661. cat confdefs.h >>conftest.$ac_ext
  9662. cat >>conftest.$ac_ext <<_ACEOF
  9663. /* end confdefs.h. */
  9664. $ac_includes_default
  9665. int
  9666. main ()
  9667. {
  9668. struct stat sbuf;
  9669. exit (stat ("", &sbuf) ? 1 : 0);
  9670. ;
  9671. return 0;
  9672. }
  9673. _ACEOF
  9674. rm -f conftest$ac_exeext
  9675. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9676. (eval $ac_link) 2>&5
  9677. ac_status=$?
  9678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9679. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9681. (eval $ac_try) 2>&5
  9682. ac_status=$?
  9683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9684. (exit $ac_status); }; }; then
  9685. ac_cv_func_stat_empty_string_bug=yes
  9686. else
  9687. echo "$as_me: program exited with status $ac_status" >&5
  9688. echo "$as_me: failed program was:" >&5
  9689. sed 's/^/| /' conftest.$ac_ext >&5
  9690. ( exit $ac_status )
  9691. ac_cv_func_stat_empty_string_bug=no
  9692. fi
  9693. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9694. fi
  9695. fi
  9696. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9697. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9698. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9699. case $LIBOBJS in
  9700. "stat.$ac_objext" | \
  9701. *" stat.$ac_objext" | \
  9702. "stat.$ac_objext "* | \
  9703. *" stat.$ac_objext "* ) ;;
  9704. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9705. esac
  9706. cat >>confdefs.h <<_ACEOF
  9707. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9708. _ACEOF
  9709. fi
  9710. for ac_func in vprintf
  9711. do
  9712. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9713. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9714. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9715. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9716. echo $ECHO_N "(cached) $ECHO_C" >&6
  9717. else
  9718. cat >conftest.$ac_ext <<_ACEOF
  9719. /* confdefs.h. */
  9720. _ACEOF
  9721. cat confdefs.h >>conftest.$ac_ext
  9722. cat >>conftest.$ac_ext <<_ACEOF
  9723. /* end confdefs.h. */
  9724. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9725. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9726. #define $ac_func innocuous_$ac_func
  9727. /* System header to define __stub macros and hopefully few prototypes,
  9728. which can conflict with char $ac_func (); below.
  9729. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9730. <limits.h> exists even on freestanding compilers. */
  9731. #ifdef __STDC__
  9732. # include <limits.h>
  9733. #else
  9734. # include <assert.h>
  9735. #endif
  9736. #undef $ac_func
  9737. /* Override any gcc2 internal prototype to avoid an error. */
  9738. #ifdef __cplusplus
  9739. extern "C"
  9740. {
  9741. #endif
  9742. /* We use char because int might match the return type of a gcc2
  9743. builtin and then its argument prototype would still apply. */
  9744. char $ac_func ();
  9745. /* The GNU C library defines this for functions which it implements
  9746. to always fail with ENOSYS. Some functions are actually named
  9747. something starting with __ and the normal name is an alias. */
  9748. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9749. choke me
  9750. #else
  9751. char (*f) () = $ac_func;
  9752. #endif
  9753. #ifdef __cplusplus
  9754. }
  9755. #endif
  9756. int
  9757. main ()
  9758. {
  9759. return f != $ac_func;
  9760. ;
  9761. return 0;
  9762. }
  9763. _ACEOF
  9764. rm -f conftest.$ac_objext conftest$ac_exeext
  9765. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9766. (eval $ac_link) 2>conftest.er1
  9767. ac_status=$?
  9768. grep -v '^ *+' conftest.er1 >conftest.err
  9769. rm -f conftest.er1
  9770. cat conftest.err >&5
  9771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9772. (exit $ac_status); } &&
  9773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9775. (eval $ac_try) 2>&5
  9776. ac_status=$?
  9777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9778. (exit $ac_status); }; } &&
  9779. { ac_try='test -s conftest$ac_exeext'
  9780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9781. (eval $ac_try) 2>&5
  9782. ac_status=$?
  9783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9784. (exit $ac_status); }; }; then
  9785. eval "$as_ac_var=yes"
  9786. else
  9787. echo "$as_me: failed program was:" >&5
  9788. sed 's/^/| /' conftest.$ac_ext >&5
  9789. eval "$as_ac_var=no"
  9790. fi
  9791. rm -f conftest.err conftest.$ac_objext \
  9792. conftest$ac_exeext conftest.$ac_ext
  9793. fi
  9794. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9795. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9796. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9797. cat >>confdefs.h <<_ACEOF
  9798. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9799. _ACEOF
  9800. echo "$as_me:$LINENO: checking for _doprnt" >&5
  9801. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  9802. if test "${ac_cv_func__doprnt+set}" = set; then
  9803. echo $ECHO_N "(cached) $ECHO_C" >&6
  9804. else
  9805. cat >conftest.$ac_ext <<_ACEOF
  9806. /* confdefs.h. */
  9807. _ACEOF
  9808. cat confdefs.h >>conftest.$ac_ext
  9809. cat >>conftest.$ac_ext <<_ACEOF
  9810. /* end confdefs.h. */
  9811. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  9812. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9813. #define _doprnt innocuous__doprnt
  9814. /* System header to define __stub macros and hopefully few prototypes,
  9815. which can conflict with char _doprnt (); below.
  9816. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9817. <limits.h> exists even on freestanding compilers. */
  9818. #ifdef __STDC__
  9819. # include <limits.h>
  9820. #else
  9821. # include <assert.h>
  9822. #endif
  9823. #undef _doprnt
  9824. /* Override any gcc2 internal prototype to avoid an error. */
  9825. #ifdef __cplusplus
  9826. extern "C"
  9827. {
  9828. #endif
  9829. /* We use char because int might match the return type of a gcc2
  9830. builtin and then its argument prototype would still apply. */
  9831. char _doprnt ();
  9832. /* The GNU C library defines this for functions which it implements
  9833. to always fail with ENOSYS. Some functions are actually named
  9834. something starting with __ and the normal name is an alias. */
  9835. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  9836. choke me
  9837. #else
  9838. char (*f) () = _doprnt;
  9839. #endif
  9840. #ifdef __cplusplus
  9841. }
  9842. #endif
  9843. int
  9844. main ()
  9845. {
  9846. return f != _doprnt;
  9847. ;
  9848. return 0;
  9849. }
  9850. _ACEOF
  9851. rm -f conftest.$ac_objext conftest$ac_exeext
  9852. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9853. (eval $ac_link) 2>conftest.er1
  9854. ac_status=$?
  9855. grep -v '^ *+' conftest.er1 >conftest.err
  9856. rm -f conftest.er1
  9857. cat conftest.err >&5
  9858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9859. (exit $ac_status); } &&
  9860. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9862. (eval $ac_try) 2>&5
  9863. ac_status=$?
  9864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9865. (exit $ac_status); }; } &&
  9866. { ac_try='test -s conftest$ac_exeext'
  9867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9868. (eval $ac_try) 2>&5
  9869. ac_status=$?
  9870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9871. (exit $ac_status); }; }; then
  9872. ac_cv_func__doprnt=yes
  9873. else
  9874. echo "$as_me: failed program was:" >&5
  9875. sed 's/^/| /' conftest.$ac_ext >&5
  9876. ac_cv_func__doprnt=no
  9877. fi
  9878. rm -f conftest.err conftest.$ac_objext \
  9879. conftest$ac_exeext conftest.$ac_ext
  9880. fi
  9881. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  9882. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  9883. if test $ac_cv_func__doprnt = yes; then
  9884. cat >>confdefs.h <<\_ACEOF
  9885. #define HAVE_DOPRNT 1
  9886. _ACEOF
  9887. fi
  9888. fi
  9889. done
  9890. for ac_func in __argz_count __argz_next __argz_stringify getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul
  9891. do
  9892. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9893. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9894. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9895. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9896. echo $ECHO_N "(cached) $ECHO_C" >&6
  9897. else
  9898. cat >conftest.$ac_ext <<_ACEOF
  9899. /* confdefs.h. */
  9900. _ACEOF
  9901. cat confdefs.h >>conftest.$ac_ext
  9902. cat >>conftest.$ac_ext <<_ACEOF
  9903. /* end confdefs.h. */
  9904. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9905. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9906. #define $ac_func innocuous_$ac_func
  9907. /* System header to define __stub macros and hopefully few prototypes,
  9908. which can conflict with char $ac_func (); below.
  9909. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9910. <limits.h> exists even on freestanding compilers. */
  9911. #ifdef __STDC__
  9912. # include <limits.h>
  9913. #else
  9914. # include <assert.h>
  9915. #endif
  9916. #undef $ac_func
  9917. /* Override any gcc2 internal prototype to avoid an error. */
  9918. #ifdef __cplusplus
  9919. extern "C"
  9920. {
  9921. #endif
  9922. /* We use char because int might match the return type of a gcc2
  9923. builtin and then its argument prototype would still apply. */
  9924. char $ac_func ();
  9925. /* The GNU C library defines this for functions which it implements
  9926. to always fail with ENOSYS. Some functions are actually named
  9927. something starting with __ and the normal name is an alias. */
  9928. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9929. choke me
  9930. #else
  9931. char (*f) () = $ac_func;
  9932. #endif
  9933. #ifdef __cplusplus
  9934. }
  9935. #endif
  9936. int
  9937. main ()
  9938. {
  9939. return f != $ac_func;
  9940. ;
  9941. return 0;
  9942. }
  9943. _ACEOF
  9944. rm -f conftest.$ac_objext conftest$ac_exeext
  9945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9946. (eval $ac_link) 2>conftest.er1
  9947. ac_status=$?
  9948. grep -v '^ *+' conftest.er1 >conftest.err
  9949. rm -f conftest.er1
  9950. cat conftest.err >&5
  9951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } &&
  9953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9955. (eval $ac_try) 2>&5
  9956. ac_status=$?
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); }; } &&
  9959. { ac_try='test -s conftest$ac_exeext'
  9960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9961. (eval $ac_try) 2>&5
  9962. ac_status=$?
  9963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9964. (exit $ac_status); }; }; then
  9965. eval "$as_ac_var=yes"
  9966. else
  9967. echo "$as_me: failed program was:" >&5
  9968. sed 's/^/| /' conftest.$ac_ext >&5
  9969. eval "$as_ac_var=no"
  9970. fi
  9971. rm -f conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. fi
  9974. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9975. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9976. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9977. cat >>confdefs.h <<_ACEOF
  9978. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9979. _ACEOF
  9980. fi
  9981. done
  9982. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  9983. cat >confcache <<\_ACEOF
  9984. # This file is a shell script that caches the results of configure
  9985. # tests run on this system so they can be shared between configure
  9986. # scripts and configure runs, see configure's option --config-cache.
  9987. # It is not useful on other systems. If it contains results you don't
  9988. # want to keep, you may remove or edit it.
  9989. #
  9990. # config.status only pays attention to the cache file if you give it
  9991. # the --recheck option to rerun configure.
  9992. #
  9993. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9994. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9995. # following values.
  9996. _ACEOF
  9997. # The following way of writing the cache mishandles newlines in values,
  9998. # but we know of no workaround that is simple, portable, and efficient.
  9999. # So, don't put newlines in cache variables' values.
  10000. # Ultrix sh set writes to stderr and can't be redirected directly,
  10001. # and sets the high bit in the cache file unless we assign to the vars.
  10002. {
  10003. (set) 2>&1 |
  10004. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10005. *ac_space=\ *)
  10006. # `set' does not quote correctly, so add quotes (double-quote
  10007. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10008. sed -n \
  10009. "s/'/'\\\\''/g;
  10010. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10011. ;;
  10012. *)
  10013. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10014. sed -n \
  10015. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10016. ;;
  10017. esac;
  10018. } |
  10019. sed '
  10020. t clear
  10021. : clear
  10022. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10023. t end
  10024. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10025. : end' >>confcache
  10026. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10027. if test -w $cache_file; then
  10028. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10029. cat confcache >$cache_file
  10030. else
  10031. echo "not updating unwritable cache $cache_file"
  10032. fi
  10033. fi
  10034. rm -f confcache
  10035. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10036. # Let make expand exec_prefix.
  10037. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10038. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10039. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10040. # trailing colons and then remove the whole line if VPATH becomes empty
  10041. # (actually we leave an empty line to preserve line numbers).
  10042. if test "x$srcdir" = x.; then
  10043. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10044. s/:*\$(srcdir):*/:/;
  10045. s/:*\${srcdir}:*/:/;
  10046. s/:*@srcdir@:*/:/;
  10047. s/^\([^=]*=[ ]*\):*/\1/;
  10048. s/:*$//;
  10049. s/^[^=]*=[ ]*$//;
  10050. }'
  10051. fi
  10052. DEFS=-DHAVE_CONFIG_H
  10053. ac_libobjs=
  10054. ac_ltlibobjs=
  10055. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10056. # 1. Remove the extension, and $U if already installed.
  10057. ac_i=`echo "$ac_i" |
  10058. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10059. # 2. Add them.
  10060. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10061. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10062. done
  10063. LIBOBJS=$ac_libobjs
  10064. LTLIBOBJS=$ac_ltlibobjs
  10065. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10066. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10067. Usually this means the macro was only invoked conditionally." >&5
  10068. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10069. Usually this means the macro was only invoked conditionally." >&2;}
  10070. { (exit 1); exit 1; }; }
  10071. fi
  10072. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10073. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10074. Usually this means the macro was only invoked conditionally." >&5
  10075. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10076. Usually this means the macro was only invoked conditionally." >&2;}
  10077. { (exit 1); exit 1; }; }
  10078. fi
  10079. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10080. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10081. Usually this means the macro was only invoked conditionally." >&5
  10082. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10083. Usually this means the macro was only invoked conditionally." >&2;}
  10084. { (exit 1); exit 1; }; }
  10085. fi
  10086. : ${CONFIG_STATUS=./config.status}
  10087. ac_clean_files_save=$ac_clean_files
  10088. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10089. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10090. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10091. cat >$CONFIG_STATUS <<_ACEOF
  10092. #! $SHELL
  10093. # Generated by $as_me.
  10094. # Run this file to recreate the current configuration.
  10095. # Compiler output produced by configure, useful for debugging
  10096. # configure, is in config.log if it exists.
  10097. debug=false
  10098. ac_cs_recheck=false
  10099. ac_cs_silent=false
  10100. SHELL=\${CONFIG_SHELL-$SHELL}
  10101. _ACEOF
  10102. cat >>$CONFIG_STATUS <<\_ACEOF
  10103. ## --------------------- ##
  10104. ## M4sh Initialization. ##
  10105. ## --------------------- ##
  10106. # Be Bourne compatible
  10107. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10108. emulate sh
  10109. NULLCMD=:
  10110. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10111. # is contrary to our usage. Disable this feature.
  10112. alias -g '${1+"$@"}'='"$@"'
  10113. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10114. set -o posix
  10115. fi
  10116. DUALCASE=1; export DUALCASE # for MKS sh
  10117. # Support unset when possible.
  10118. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10119. as_unset=unset
  10120. else
  10121. as_unset=false
  10122. fi
  10123. # Work around bugs in pre-3.0 UWIN ksh.
  10124. $as_unset ENV MAIL MAILPATH
  10125. PS1='$ '
  10126. PS2='> '
  10127. PS4='+ '
  10128. # NLS nuisances.
  10129. for as_var in \
  10130. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10131. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10132. LC_TELEPHONE LC_TIME
  10133. do
  10134. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10135. eval $as_var=C; export $as_var
  10136. else
  10137. $as_unset $as_var
  10138. fi
  10139. done
  10140. # Required to use basename.
  10141. if expr a : '\(a\)' >/dev/null 2>&1; then
  10142. as_expr=expr
  10143. else
  10144. as_expr=false
  10145. fi
  10146. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10147. as_basename=basename
  10148. else
  10149. as_basename=false
  10150. fi
  10151. # Name of the executable.
  10152. as_me=`$as_basename "$0" ||
  10153. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10154. X"$0" : 'X\(//\)$' \| \
  10155. X"$0" : 'X\(/\)$' \| \
  10156. . : '\(.\)' 2>/dev/null ||
  10157. echo X/"$0" |
  10158. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10159. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10160. /^X\/\(\/\).*/{ s//\1/; q; }
  10161. s/.*/./; q'`
  10162. # PATH needs CR, and LINENO needs CR and PATH.
  10163. # Avoid depending upon Character Ranges.
  10164. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10165. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10166. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10167. as_cr_digits='0123456789'
  10168. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10169. # The user is always right.
  10170. if test "${PATH_SEPARATOR+set}" != set; then
  10171. echo "#! /bin/sh" >conf$$.sh
  10172. echo "exit 0" >>conf$$.sh
  10173. chmod +x conf$$.sh
  10174. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10175. PATH_SEPARATOR=';'
  10176. else
  10177. PATH_SEPARATOR=:
  10178. fi
  10179. rm -f conf$$.sh
  10180. fi
  10181. as_lineno_1=$LINENO
  10182. as_lineno_2=$LINENO
  10183. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10184. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10185. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10186. # Find who we are. Look in the path if we contain no path at all
  10187. # relative or not.
  10188. case $0 in
  10189. *[\\/]* ) as_myself=$0 ;;
  10190. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10191. for as_dir in $PATH
  10192. do
  10193. IFS=$as_save_IFS
  10194. test -z "$as_dir" && as_dir=.
  10195. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10196. done
  10197. ;;
  10198. esac
  10199. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10200. # in which case we are not to be found in the path.
  10201. if test "x$as_myself" = x; then
  10202. as_myself=$0
  10203. fi
  10204. if test ! -f "$as_myself"; then
  10205. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10206. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10207. { (exit 1); exit 1; }; }
  10208. fi
  10209. case $CONFIG_SHELL in
  10210. '')
  10211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10212. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10213. do
  10214. IFS=$as_save_IFS
  10215. test -z "$as_dir" && as_dir=.
  10216. for as_base in sh bash ksh sh5; do
  10217. case $as_dir in
  10218. /*)
  10219. if ("$as_dir/$as_base" -c '
  10220. as_lineno_1=$LINENO
  10221. as_lineno_2=$LINENO
  10222. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10223. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10224. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10225. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10226. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10227. CONFIG_SHELL=$as_dir/$as_base
  10228. export CONFIG_SHELL
  10229. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10230. fi;;
  10231. esac
  10232. done
  10233. done
  10234. ;;
  10235. esac
  10236. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10237. # uniformly replaced by the line number. The first 'sed' inserts a
  10238. # line-number line before each line; the second 'sed' does the real
  10239. # work. The second script uses 'N' to pair each line-number line
  10240. # with the numbered line, and appends trailing '-' during
  10241. # substitution so that $LINENO is not a special case at line end.
  10242. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10243. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10244. sed '=' <$as_myself |
  10245. sed '
  10246. N
  10247. s,$,-,
  10248. : loop
  10249. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10250. t loop
  10251. s,-$,,
  10252. s,^['$as_cr_digits']*\n,,
  10253. ' >$as_me.lineno &&
  10254. chmod +x $as_me.lineno ||
  10255. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10256. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10257. { (exit 1); exit 1; }; }
  10258. # Don't try to exec as it changes $[0], causing all sort of problems
  10259. # (the dirname of $[0] is not the place where we might find the
  10260. # original and so on. Autoconf is especially sensible to this).
  10261. . ./$as_me.lineno
  10262. # Exit status is that of the last command.
  10263. exit
  10264. }
  10265. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10266. *c*,-n*) ECHO_N= ECHO_C='
  10267. ' ECHO_T=' ' ;;
  10268. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10269. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10270. esac
  10271. if expr a : '\(a\)' >/dev/null 2>&1; then
  10272. as_expr=expr
  10273. else
  10274. as_expr=false
  10275. fi
  10276. rm -f conf$$ conf$$.exe conf$$.file
  10277. echo >conf$$.file
  10278. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10279. # We could just check for DJGPP; but this test a) works b) is more generic
  10280. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10281. if test -f conf$$.exe; then
  10282. # Don't use ln at all; we don't have any links
  10283. as_ln_s='cp -p'
  10284. else
  10285. as_ln_s='ln -s'
  10286. fi
  10287. elif ln conf$$.file conf$$ 2>/dev/null; then
  10288. as_ln_s=ln
  10289. else
  10290. as_ln_s='cp -p'
  10291. fi
  10292. rm -f conf$$ conf$$.exe conf$$.file
  10293. if mkdir -p . 2>/dev/null; then
  10294. as_mkdir_p=:
  10295. else
  10296. test -d ./-p && rmdir ./-p
  10297. as_mkdir_p=false
  10298. fi
  10299. as_executable_p="test -f"
  10300. # Sed expression to map a string onto a valid CPP name.
  10301. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10302. # Sed expression to map a string onto a valid variable name.
  10303. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10304. # IFS
  10305. # We need space, tab and new line, in precisely that order.
  10306. as_nl='
  10307. '
  10308. IFS=" $as_nl"
  10309. # CDPATH.
  10310. $as_unset CDPATH
  10311. exec 6>&1
  10312. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10313. # report actual input values of CONFIG_FILES etc. instead of their
  10314. # values after options handling. Logging --version etc. is OK.
  10315. exec 5>>config.log
  10316. {
  10317. echo
  10318. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10319. ## Running $as_me. ##
  10320. _ASBOX
  10321. } >&5
  10322. cat >&5 <<_CSEOF
  10323. This file was extended by aria2c $as_me 0.3.1, which was
  10324. generated by GNU Autoconf 2.59. Invocation command line was
  10325. CONFIG_FILES = $CONFIG_FILES
  10326. CONFIG_HEADERS = $CONFIG_HEADERS
  10327. CONFIG_LINKS = $CONFIG_LINKS
  10328. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10329. $ $0 $@
  10330. _CSEOF
  10331. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10332. echo >&5
  10333. _ACEOF
  10334. # Files that config.status was made for.
  10335. if test -n "$ac_config_files"; then
  10336. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10337. fi
  10338. if test -n "$ac_config_headers"; then
  10339. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10340. fi
  10341. if test -n "$ac_config_links"; then
  10342. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10343. fi
  10344. if test -n "$ac_config_commands"; then
  10345. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10346. fi
  10347. cat >>$CONFIG_STATUS <<\_ACEOF
  10348. ac_cs_usage="\
  10349. \`$as_me' instantiates files from templates according to the
  10350. current configuration.
  10351. Usage: $0 [OPTIONS] [FILE]...
  10352. -h, --help print this help, then exit
  10353. -V, --version print version number, then exit
  10354. -q, --quiet do not print progress messages
  10355. -d, --debug don't remove temporary files
  10356. --recheck update $as_me by reconfiguring in the same conditions
  10357. --file=FILE[:TEMPLATE]
  10358. instantiate the configuration file FILE
  10359. --header=FILE[:TEMPLATE]
  10360. instantiate the configuration header FILE
  10361. Configuration files:
  10362. $config_files
  10363. Configuration headers:
  10364. $config_headers
  10365. Configuration commands:
  10366. $config_commands
  10367. Report bugs to <bug-autoconf@gnu.org>."
  10368. _ACEOF
  10369. cat >>$CONFIG_STATUS <<_ACEOF
  10370. ac_cs_version="\\
  10371. aria2c config.status 0.3.1
  10372. configured by $0, generated by GNU Autoconf 2.59,
  10373. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10374. Copyright (C) 2003 Free Software Foundation, Inc.
  10375. This config.status script is free software; the Free Software Foundation
  10376. gives unlimited permission to copy, distribute and modify it."
  10377. srcdir=$srcdir
  10378. INSTALL="$INSTALL"
  10379. _ACEOF
  10380. cat >>$CONFIG_STATUS <<\_ACEOF
  10381. # If no file are specified by the user, then we need to provide default
  10382. # value. By we need to know if files were specified by the user.
  10383. ac_need_defaults=:
  10384. while test $# != 0
  10385. do
  10386. case $1 in
  10387. --*=*)
  10388. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10389. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10390. ac_shift=:
  10391. ;;
  10392. -*)
  10393. ac_option=$1
  10394. ac_optarg=$2
  10395. ac_shift=shift
  10396. ;;
  10397. *) # This is not an option, so the user has probably given explicit
  10398. # arguments.
  10399. ac_option=$1
  10400. ac_need_defaults=false;;
  10401. esac
  10402. case $ac_option in
  10403. # Handling of the options.
  10404. _ACEOF
  10405. cat >>$CONFIG_STATUS <<\_ACEOF
  10406. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10407. ac_cs_recheck=: ;;
  10408. --version | --vers* | -V )
  10409. echo "$ac_cs_version"; exit 0 ;;
  10410. --he | --h)
  10411. # Conflict between --help and --header
  10412. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10413. Try \`$0 --help' for more information." >&5
  10414. echo "$as_me: error: ambiguous option: $1
  10415. Try \`$0 --help' for more information." >&2;}
  10416. { (exit 1); exit 1; }; };;
  10417. --help | --hel | -h )
  10418. echo "$ac_cs_usage"; exit 0 ;;
  10419. --debug | --d* | -d )
  10420. debug=: ;;
  10421. --file | --fil | --fi | --f )
  10422. $ac_shift
  10423. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10424. ac_need_defaults=false;;
  10425. --header | --heade | --head | --hea )
  10426. $ac_shift
  10427. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10428. ac_need_defaults=false;;
  10429. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10430. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10431. ac_cs_silent=: ;;
  10432. # This is an error.
  10433. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10434. Try \`$0 --help' for more information." >&5
  10435. echo "$as_me: error: unrecognized option: $1
  10436. Try \`$0 --help' for more information." >&2;}
  10437. { (exit 1); exit 1; }; } ;;
  10438. *) ac_config_targets="$ac_config_targets $1" ;;
  10439. esac
  10440. shift
  10441. done
  10442. ac_configure_extra_args=
  10443. if $ac_cs_silent; then
  10444. exec 6>/dev/null
  10445. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10446. fi
  10447. _ACEOF
  10448. cat >>$CONFIG_STATUS <<_ACEOF
  10449. if \$ac_cs_recheck; then
  10450. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10451. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10452. fi
  10453. _ACEOF
  10454. cat >>$CONFIG_STATUS <<_ACEOF
  10455. #
  10456. # INIT-COMMANDS section.
  10457. #
  10458. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10459. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10460. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10461. # from automake.
  10462. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10463. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10464. LINGUAS="${LINGUAS-%UNSET%}"
  10465. _ACEOF
  10466. cat >>$CONFIG_STATUS <<\_ACEOF
  10467. for ac_config_target in $ac_config_targets
  10468. do
  10469. case "$ac_config_target" in
  10470. # Handling of arguments.
  10471. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10472. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10473. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10474. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10475. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10476. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10477. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10478. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10479. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10480. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10481. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10482. { (exit 1); exit 1; }; };;
  10483. esac
  10484. done
  10485. # If the user did not use the arguments to specify the items to instantiate,
  10486. # then the envvar interface is used. Set only those that are not.
  10487. # We use the long form for the default assignment because of an extremely
  10488. # bizarre bug on SunOS 4.1.3.
  10489. if $ac_need_defaults; then
  10490. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10491. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10492. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10493. fi
  10494. # Have a temporary directory for convenience. Make it in the build tree
  10495. # simply because there is no reason to put it here, and in addition,
  10496. # creating and moving files from /tmp can sometimes cause problems.
  10497. # Create a temporary directory, and hook for its removal unless debugging.
  10498. $debug ||
  10499. {
  10500. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10501. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10502. }
  10503. # Create a (secure) tmp directory for tmp files.
  10504. {
  10505. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10506. test -n "$tmp" && test -d "$tmp"
  10507. } ||
  10508. {
  10509. tmp=./confstat$$-$RANDOM
  10510. (umask 077 && mkdir $tmp)
  10511. } ||
  10512. {
  10513. echo "$me: cannot create a temporary directory in ." >&2
  10514. { (exit 1); exit 1; }
  10515. }
  10516. _ACEOF
  10517. cat >>$CONFIG_STATUS <<_ACEOF
  10518. #
  10519. # CONFIG_FILES section.
  10520. #
  10521. # No need to generate the scripts if there are no CONFIG_FILES.
  10522. # This happens for instance when ./config.status config.h
  10523. if test -n "\$CONFIG_FILES"; then
  10524. # Protect against being on the right side of a sed subst in config.status.
  10525. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10526. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10527. s,@SHELL@,$SHELL,;t t
  10528. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10529. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10530. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10531. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10532. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10533. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10534. s,@exec_prefix@,$exec_prefix,;t t
  10535. s,@prefix@,$prefix,;t t
  10536. s,@program_transform_name@,$program_transform_name,;t t
  10537. s,@bindir@,$bindir,;t t
  10538. s,@sbindir@,$sbindir,;t t
  10539. s,@libexecdir@,$libexecdir,;t t
  10540. s,@datadir@,$datadir,;t t
  10541. s,@sysconfdir@,$sysconfdir,;t t
  10542. s,@sharedstatedir@,$sharedstatedir,;t t
  10543. s,@localstatedir@,$localstatedir,;t t
  10544. s,@libdir@,$libdir,;t t
  10545. s,@includedir@,$includedir,;t t
  10546. s,@oldincludedir@,$oldincludedir,;t t
  10547. s,@infodir@,$infodir,;t t
  10548. s,@mandir@,$mandir,;t t
  10549. s,@build_alias@,$build_alias,;t t
  10550. s,@host_alias@,$host_alias,;t t
  10551. s,@target_alias@,$target_alias,;t t
  10552. s,@DEFS@,$DEFS,;t t
  10553. s,@ECHO_C@,$ECHO_C,;t t
  10554. s,@ECHO_N@,$ECHO_N,;t t
  10555. s,@ECHO_T@,$ECHO_T,;t t
  10556. s,@LIBS@,$LIBS,;t t
  10557. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10558. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10559. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10560. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10561. s,@PACKAGE@,$PACKAGE,;t t
  10562. s,@VERSION@,$VERSION,;t t
  10563. s,@ACLOCAL@,$ACLOCAL,;t t
  10564. s,@AUTOCONF@,$AUTOCONF,;t t
  10565. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10566. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10567. s,@MAKEINFO@,$MAKEINFO,;t t
  10568. s,@install_sh@,$install_sh,;t t
  10569. s,@STRIP@,$STRIP,;t t
  10570. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10571. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10572. s,@mkdir_p@,$mkdir_p,;t t
  10573. s,@AWK@,$AWK,;t t
  10574. s,@SET_MAKE@,$SET_MAKE,;t t
  10575. s,@am__leading_dot@,$am__leading_dot,;t t
  10576. s,@AMTAR@,$AMTAR,;t t
  10577. s,@am__tar@,$am__tar,;t t
  10578. s,@am__untar@,$am__untar,;t t
  10579. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10580. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10581. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10582. s,@localedir@,$localedir,;t t
  10583. s,@CXX@,$CXX,;t t
  10584. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10585. s,@LDFLAGS@,$LDFLAGS,;t t
  10586. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10587. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10588. s,@EXEEXT@,$EXEEXT,;t t
  10589. s,@OBJEXT@,$OBJEXT,;t t
  10590. s,@DEPDIR@,$DEPDIR,;t t
  10591. s,@am__include@,$am__include,;t t
  10592. s,@am__quote@,$am__quote,;t t
  10593. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10594. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10595. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10596. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10597. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10598. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10599. s,@CC@,$CC,;t t
  10600. s,@CFLAGS@,$CFLAGS,;t t
  10601. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10602. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10603. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10604. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10605. s,@RANLIB@,$RANLIB,;t t
  10606. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10607. s,@YACC@,$YACC,;t t
  10608. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  10609. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  10610. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  10611. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  10612. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  10613. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  10614. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  10615. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  10616. s,@ALLOCA@,$ALLOCA,;t t
  10617. s,@CPP@,$CPP,;t t
  10618. s,@EGREP@,$EGREP,;t t
  10619. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10620. s,@USE_NLS@,$USE_NLS,;t t
  10621. s,@MSGFMT@,$MSGFMT,;t t
  10622. s,@GMSGFMT@,$GMSGFMT,;t t
  10623. s,@XGETTEXT@,$XGETTEXT,;t t
  10624. s,@MSGMERGE@,$MSGMERGE,;t t
  10625. s,@build@,$build,;t t
  10626. s,@build_cpu@,$build_cpu,;t t
  10627. s,@build_vendor@,$build_vendor,;t t
  10628. s,@build_os@,$build_os,;t t
  10629. s,@host@,$host,;t t
  10630. s,@host_cpu@,$host_cpu,;t t
  10631. s,@host_vendor@,$host_vendor,;t t
  10632. s,@host_os@,$host_os,;t t
  10633. s,@GLIBC21@,$GLIBC21,;t t
  10634. s,@LIBICONV@,$LIBICONV,;t t
  10635. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10636. s,@INTLBISON@,$INTLBISON,;t t
  10637. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10638. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10639. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10640. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10641. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10642. s,@GENCAT@,$GENCAT,;t t
  10643. s,@INTLOBJS@,$INTLOBJS,;t t
  10644. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10645. s,@INTLLIBS@,$INTLLIBS,;t t
  10646. s,@LIBINTL@,$LIBINTL,;t t
  10647. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10648. s,@POSUB@,$POSUB,;t t
  10649. s,@LIBOBJS@,$LIBOBJS,;t t
  10650. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10651. CEOF
  10652. _ACEOF
  10653. cat >>$CONFIG_STATUS <<\_ACEOF
  10654. # Split the substitutions into bite-sized pieces for seds with
  10655. # small command number limits, like on Digital OSF/1 and HP-UX.
  10656. ac_max_sed_lines=48
  10657. ac_sed_frag=1 # Number of current file.
  10658. ac_beg=1 # First line for current file.
  10659. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10660. ac_more_lines=:
  10661. ac_sed_cmds=
  10662. while $ac_more_lines; do
  10663. if test $ac_beg -gt 1; then
  10664. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10665. else
  10666. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10667. fi
  10668. if test ! -s $tmp/subs.frag; then
  10669. ac_more_lines=false
  10670. else
  10671. # The purpose of the label and of the branching condition is to
  10672. # speed up the sed processing (if there are no `@' at all, there
  10673. # is no need to browse any of the substitutions).
  10674. # These are the two extra sed commands mentioned above.
  10675. (echo ':t
  10676. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10677. if test -z "$ac_sed_cmds"; then
  10678. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10679. else
  10680. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10681. fi
  10682. ac_sed_frag=`expr $ac_sed_frag + 1`
  10683. ac_beg=$ac_end
  10684. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10685. fi
  10686. done
  10687. if test -z "$ac_sed_cmds"; then
  10688. ac_sed_cmds=cat
  10689. fi
  10690. fi # test -n "$CONFIG_FILES"
  10691. _ACEOF
  10692. cat >>$CONFIG_STATUS <<\_ACEOF
  10693. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10694. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10695. case $ac_file in
  10696. - | *:- | *:-:* ) # input from stdin
  10697. cat >$tmp/stdin
  10698. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10699. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10700. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10701. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10702. * ) ac_file_in=$ac_file.in ;;
  10703. esac
  10704. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10705. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10706. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10707. X"$ac_file" : 'X\(//\)[^/]' \| \
  10708. X"$ac_file" : 'X\(//\)$' \| \
  10709. X"$ac_file" : 'X\(/\)' \| \
  10710. . : '\(.\)' 2>/dev/null ||
  10711. echo X"$ac_file" |
  10712. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10713. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10714. /^X\(\/\/\)$/{ s//\1/; q; }
  10715. /^X\(\/\).*/{ s//\1/; q; }
  10716. s/.*/./; q'`
  10717. { if $as_mkdir_p; then
  10718. mkdir -p "$ac_dir"
  10719. else
  10720. as_dir="$ac_dir"
  10721. as_dirs=
  10722. while test ! -d "$as_dir"; do
  10723. as_dirs="$as_dir $as_dirs"
  10724. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10725. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10726. X"$as_dir" : 'X\(//\)[^/]' \| \
  10727. X"$as_dir" : 'X\(//\)$' \| \
  10728. X"$as_dir" : 'X\(/\)' \| \
  10729. . : '\(.\)' 2>/dev/null ||
  10730. echo X"$as_dir" |
  10731. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10732. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10733. /^X\(\/\/\)$/{ s//\1/; q; }
  10734. /^X\(\/\).*/{ s//\1/; q; }
  10735. s/.*/./; q'`
  10736. done
  10737. test ! -n "$as_dirs" || mkdir $as_dirs
  10738. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10739. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10740. { (exit 1); exit 1; }; }; }
  10741. ac_builddir=.
  10742. if test "$ac_dir" != .; then
  10743. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10744. # A "../" for each directory in $ac_dir_suffix.
  10745. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10746. else
  10747. ac_dir_suffix= ac_top_builddir=
  10748. fi
  10749. case $srcdir in
  10750. .) # No --srcdir option. We are building in place.
  10751. ac_srcdir=.
  10752. if test -z "$ac_top_builddir"; then
  10753. ac_top_srcdir=.
  10754. else
  10755. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10756. fi ;;
  10757. [\\/]* | ?:[\\/]* ) # Absolute path.
  10758. ac_srcdir=$srcdir$ac_dir_suffix;
  10759. ac_top_srcdir=$srcdir ;;
  10760. *) # Relative path.
  10761. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10762. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10763. esac
  10764. # Do not use `cd foo && pwd` to compute absolute paths, because
  10765. # the directories may not exist.
  10766. case `pwd` in
  10767. .) ac_abs_builddir="$ac_dir";;
  10768. *)
  10769. case "$ac_dir" in
  10770. .) ac_abs_builddir=`pwd`;;
  10771. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10772. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10773. esac;;
  10774. esac
  10775. case $ac_abs_builddir in
  10776. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10777. *)
  10778. case ${ac_top_builddir}. in
  10779. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10780. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10781. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10782. esac;;
  10783. esac
  10784. case $ac_abs_builddir in
  10785. .) ac_abs_srcdir=$ac_srcdir;;
  10786. *)
  10787. case $ac_srcdir in
  10788. .) ac_abs_srcdir=$ac_abs_builddir;;
  10789. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10790. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10791. esac;;
  10792. esac
  10793. case $ac_abs_builddir in
  10794. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10795. *)
  10796. case $ac_top_srcdir in
  10797. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10798. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10799. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10800. esac;;
  10801. esac
  10802. case $INSTALL in
  10803. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10804. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10805. esac
  10806. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10807. # use $as_me), people would be surprised to read:
  10808. # /* config.h. Generated by config.status. */
  10809. if test x"$ac_file" = x-; then
  10810. configure_input=
  10811. else
  10812. configure_input="$ac_file. "
  10813. fi
  10814. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10815. sed 's,.*/,,'` by configure."
  10816. # First look for the input files in the build tree, otherwise in the
  10817. # src tree.
  10818. ac_file_inputs=`IFS=:
  10819. for f in $ac_file_in; do
  10820. case $f in
  10821. -) echo $tmp/stdin ;;
  10822. [\\/$]*)
  10823. # Absolute (can't be DOS-style, as IFS=:)
  10824. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10825. echo "$as_me: error: cannot find input file: $f" >&2;}
  10826. { (exit 1); exit 1; }; }
  10827. echo "$f";;
  10828. *) # Relative
  10829. if test -f "$f"; then
  10830. # Build tree
  10831. echo "$f"
  10832. elif test -f "$srcdir/$f"; then
  10833. # Source tree
  10834. echo "$srcdir/$f"
  10835. else
  10836. # /dev/null tree
  10837. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10838. echo "$as_me: error: cannot find input file: $f" >&2;}
  10839. { (exit 1); exit 1; }; }
  10840. fi;;
  10841. esac
  10842. done` || { (exit 1); exit 1; }
  10843. if test x"$ac_file" != x-; then
  10844. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10845. echo "$as_me: creating $ac_file" >&6;}
  10846. rm -f "$ac_file"
  10847. fi
  10848. _ACEOF
  10849. cat >>$CONFIG_STATUS <<_ACEOF
  10850. sed "$ac_vpsub
  10851. $extrasub
  10852. _ACEOF
  10853. cat >>$CONFIG_STATUS <<\_ACEOF
  10854. :t
  10855. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10856. s,@configure_input@,$configure_input,;t t
  10857. s,@srcdir@,$ac_srcdir,;t t
  10858. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10859. s,@top_srcdir@,$ac_top_srcdir,;t t
  10860. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10861. s,@builddir@,$ac_builddir,;t t
  10862. s,@abs_builddir@,$ac_abs_builddir,;t t
  10863. s,@top_builddir@,$ac_top_builddir,;t t
  10864. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10865. s,@INSTALL@,$ac_INSTALL,;t t
  10866. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10867. rm -f $tmp/stdin
  10868. if test x"$ac_file" != x-; then
  10869. mv $tmp/out $ac_file
  10870. else
  10871. cat $tmp/out
  10872. rm -f $tmp/out
  10873. fi
  10874. done
  10875. _ACEOF
  10876. cat >>$CONFIG_STATUS <<\_ACEOF
  10877. #
  10878. # CONFIG_HEADER section.
  10879. #
  10880. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10881. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10882. #
  10883. # ac_d sets the value in "#define NAME VALUE" lines.
  10884. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10885. ac_dB='[ ].*$,\1#\2'
  10886. ac_dC=' '
  10887. ac_dD=',;t'
  10888. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10889. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10890. ac_uB='$,\1#\2define\3'
  10891. ac_uC=' '
  10892. ac_uD=',;t'
  10893. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10894. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10895. case $ac_file in
  10896. - | *:- | *:-:* ) # input from stdin
  10897. cat >$tmp/stdin
  10898. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10899. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10900. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10901. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10902. * ) ac_file_in=$ac_file.in ;;
  10903. esac
  10904. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10905. echo "$as_me: creating $ac_file" >&6;}
  10906. # First look for the input files in the build tree, otherwise in the
  10907. # src tree.
  10908. ac_file_inputs=`IFS=:
  10909. for f in $ac_file_in; do
  10910. case $f in
  10911. -) echo $tmp/stdin ;;
  10912. [\\/$]*)
  10913. # Absolute (can't be DOS-style, as IFS=:)
  10914. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10915. echo "$as_me: error: cannot find input file: $f" >&2;}
  10916. { (exit 1); exit 1; }; }
  10917. # Do quote $f, to prevent DOS paths from being IFS'd.
  10918. echo "$f";;
  10919. *) # Relative
  10920. if test -f "$f"; then
  10921. # Build tree
  10922. echo "$f"
  10923. elif test -f "$srcdir/$f"; then
  10924. # Source tree
  10925. echo "$srcdir/$f"
  10926. else
  10927. # /dev/null tree
  10928. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10929. echo "$as_me: error: cannot find input file: $f" >&2;}
  10930. { (exit 1); exit 1; }; }
  10931. fi;;
  10932. esac
  10933. done` || { (exit 1); exit 1; }
  10934. # Remove the trailing spaces.
  10935. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10936. _ACEOF
  10937. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10938. # `conftest.undefs', that substitutes the proper values into
  10939. # config.h.in to produce config.h. The first handles `#define'
  10940. # templates, and the second `#undef' templates.
  10941. # And first: Protect against being on the right side of a sed subst in
  10942. # config.status. Protect against being in an unquoted here document
  10943. # in config.status.
  10944. rm -f conftest.defines conftest.undefs
  10945. # Using a here document instead of a string reduces the quoting nightmare.
  10946. # Putting comments in sed scripts is not portable.
  10947. #
  10948. # `end' is used to avoid that the second main sed command (meant for
  10949. # 0-ary CPP macros) applies to n-ary macro definitions.
  10950. # See the Autoconf documentation for `clear'.
  10951. cat >confdef2sed.sed <<\_ACEOF
  10952. s/[\\&,]/\\&/g
  10953. s,[\\$`],\\&,g
  10954. t clear
  10955. : clear
  10956. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10957. t end
  10958. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10959. : end
  10960. _ACEOF
  10961. # If some macros were called several times there might be several times
  10962. # the same #defines, which is useless. Nevertheless, we may not want to
  10963. # sort them, since we want the *last* AC-DEFINE to be honored.
  10964. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10965. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10966. rm -f confdef2sed.sed
  10967. # This sed command replaces #undef with comments. This is necessary, for
  10968. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10969. # on some systems where configure will not decide to define it.
  10970. cat >>conftest.undefs <<\_ACEOF
  10971. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10972. _ACEOF
  10973. # Break up conftest.defines because some shells have a limit on the size
  10974. # of here documents, and old seds have small limits too (100 cmds).
  10975. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10976. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10977. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10978. echo ' :' >>$CONFIG_STATUS
  10979. rm -f conftest.tail
  10980. while grep . conftest.defines >/dev/null
  10981. do
  10982. # Write a limited-size here document to $tmp/defines.sed.
  10983. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10984. # Speed up: don't consider the non `#define' lines.
  10985. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10986. # Work around the forget-to-reset-the-flag bug.
  10987. echo 't clr' >>$CONFIG_STATUS
  10988. echo ': clr' >>$CONFIG_STATUS
  10989. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10990. echo 'CEOF
  10991. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10992. rm -f $tmp/in
  10993. mv $tmp/out $tmp/in
  10994. ' >>$CONFIG_STATUS
  10995. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10996. rm -f conftest.defines
  10997. mv conftest.tail conftest.defines
  10998. done
  10999. rm -f conftest.defines
  11000. echo ' fi # grep' >>$CONFIG_STATUS
  11001. echo >>$CONFIG_STATUS
  11002. # Break up conftest.undefs because some shells have a limit on the size
  11003. # of here documents, and old seds have small limits too (100 cmds).
  11004. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11005. rm -f conftest.tail
  11006. while grep . conftest.undefs >/dev/null
  11007. do
  11008. # Write a limited-size here document to $tmp/undefs.sed.
  11009. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11010. # Speed up: don't consider the non `#undef'
  11011. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11012. # Work around the forget-to-reset-the-flag bug.
  11013. echo 't clr' >>$CONFIG_STATUS
  11014. echo ': clr' >>$CONFIG_STATUS
  11015. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11016. echo 'CEOF
  11017. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11018. rm -f $tmp/in
  11019. mv $tmp/out $tmp/in
  11020. ' >>$CONFIG_STATUS
  11021. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11022. rm -f conftest.undefs
  11023. mv conftest.tail conftest.undefs
  11024. done
  11025. rm -f conftest.undefs
  11026. cat >>$CONFIG_STATUS <<\_ACEOF
  11027. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11028. # use $as_me), people would be surprised to read:
  11029. # /* config.h. Generated by config.status. */
  11030. if test x"$ac_file" = x-; then
  11031. echo "/* Generated by configure. */" >$tmp/config.h
  11032. else
  11033. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11034. fi
  11035. cat $tmp/in >>$tmp/config.h
  11036. rm -f $tmp/in
  11037. if test x"$ac_file" != x-; then
  11038. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11039. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11040. echo "$as_me: $ac_file is unchanged" >&6;}
  11041. else
  11042. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11043. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11044. X"$ac_file" : 'X\(//\)[^/]' \| \
  11045. X"$ac_file" : 'X\(//\)$' \| \
  11046. X"$ac_file" : 'X\(/\)' \| \
  11047. . : '\(.\)' 2>/dev/null ||
  11048. echo X"$ac_file" |
  11049. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11050. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11051. /^X\(\/\/\)$/{ s//\1/; q; }
  11052. /^X\(\/\).*/{ s//\1/; q; }
  11053. s/.*/./; q'`
  11054. { if $as_mkdir_p; then
  11055. mkdir -p "$ac_dir"
  11056. else
  11057. as_dir="$ac_dir"
  11058. as_dirs=
  11059. while test ! -d "$as_dir"; do
  11060. as_dirs="$as_dir $as_dirs"
  11061. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11062. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11063. X"$as_dir" : 'X\(//\)[^/]' \| \
  11064. X"$as_dir" : 'X\(//\)$' \| \
  11065. X"$as_dir" : 'X\(/\)' \| \
  11066. . : '\(.\)' 2>/dev/null ||
  11067. echo X"$as_dir" |
  11068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11069. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11070. /^X\(\/\/\)$/{ s//\1/; q; }
  11071. /^X\(\/\).*/{ s//\1/; q; }
  11072. s/.*/./; q'`
  11073. done
  11074. test ! -n "$as_dirs" || mkdir $as_dirs
  11075. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11076. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11077. { (exit 1); exit 1; }; }; }
  11078. rm -f $ac_file
  11079. mv $tmp/config.h $ac_file
  11080. fi
  11081. else
  11082. cat $tmp/config.h
  11083. rm -f $tmp/config.h
  11084. fi
  11085. # Compute $ac_file's index in $config_headers.
  11086. _am_stamp_count=1
  11087. for _am_header in $config_headers :; do
  11088. case $_am_header in
  11089. $ac_file | $ac_file:* )
  11090. break ;;
  11091. * )
  11092. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11093. esac
  11094. done
  11095. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11096. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11097. X$ac_file : 'X\(//\)[^/]' \| \
  11098. X$ac_file : 'X\(//\)$' \| \
  11099. X$ac_file : 'X\(/\)' \| \
  11100. . : '\(.\)' 2>/dev/null ||
  11101. echo X$ac_file |
  11102. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11103. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11104. /^X\(\/\/\)$/{ s//\1/; q; }
  11105. /^X\(\/\).*/{ s//\1/; q; }
  11106. s/.*/./; q'`/stamp-h$_am_stamp_count
  11107. done
  11108. _ACEOF
  11109. cat >>$CONFIG_STATUS <<\_ACEOF
  11110. #
  11111. # CONFIG_COMMANDS section.
  11112. #
  11113. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11114. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11115. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11116. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11117. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11118. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11119. X"$ac_dest" : 'X\(//\)$' \| \
  11120. X"$ac_dest" : 'X\(/\)' \| \
  11121. . : '\(.\)' 2>/dev/null ||
  11122. echo X"$ac_dest" |
  11123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11124. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11125. /^X\(\/\/\)$/{ s//\1/; q; }
  11126. /^X\(\/\).*/{ s//\1/; q; }
  11127. s/.*/./; q'`
  11128. { if $as_mkdir_p; then
  11129. mkdir -p "$ac_dir"
  11130. else
  11131. as_dir="$ac_dir"
  11132. as_dirs=
  11133. while test ! -d "$as_dir"; do
  11134. as_dirs="$as_dir $as_dirs"
  11135. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11136. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11137. X"$as_dir" : 'X\(//\)[^/]' \| \
  11138. X"$as_dir" : 'X\(//\)$' \| \
  11139. X"$as_dir" : 'X\(/\)' \| \
  11140. . : '\(.\)' 2>/dev/null ||
  11141. echo X"$as_dir" |
  11142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11143. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11144. /^X\(\/\/\)$/{ s//\1/; q; }
  11145. /^X\(\/\).*/{ s//\1/; q; }
  11146. s/.*/./; q'`
  11147. done
  11148. test ! -n "$as_dirs" || mkdir $as_dirs
  11149. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11150. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11151. { (exit 1); exit 1; }; }; }
  11152. ac_builddir=.
  11153. if test "$ac_dir" != .; then
  11154. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11155. # A "../" for each directory in $ac_dir_suffix.
  11156. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11157. else
  11158. ac_dir_suffix= ac_top_builddir=
  11159. fi
  11160. case $srcdir in
  11161. .) # No --srcdir option. We are building in place.
  11162. ac_srcdir=.
  11163. if test -z "$ac_top_builddir"; then
  11164. ac_top_srcdir=.
  11165. else
  11166. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11167. fi ;;
  11168. [\\/]* | ?:[\\/]* ) # Absolute path.
  11169. ac_srcdir=$srcdir$ac_dir_suffix;
  11170. ac_top_srcdir=$srcdir ;;
  11171. *) # Relative path.
  11172. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11173. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11174. esac
  11175. # Do not use `cd foo && pwd` to compute absolute paths, because
  11176. # the directories may not exist.
  11177. case `pwd` in
  11178. .) ac_abs_builddir="$ac_dir";;
  11179. *)
  11180. case "$ac_dir" in
  11181. .) ac_abs_builddir=`pwd`;;
  11182. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11183. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11184. esac;;
  11185. esac
  11186. case $ac_abs_builddir in
  11187. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11188. *)
  11189. case ${ac_top_builddir}. in
  11190. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11191. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11192. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11193. esac;;
  11194. esac
  11195. case $ac_abs_builddir in
  11196. .) ac_abs_srcdir=$ac_srcdir;;
  11197. *)
  11198. case $ac_srcdir in
  11199. .) ac_abs_srcdir=$ac_abs_builddir;;
  11200. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11201. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11202. esac;;
  11203. esac
  11204. case $ac_abs_builddir in
  11205. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11206. *)
  11207. case $ac_top_srcdir in
  11208. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11209. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11210. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11211. esac;;
  11212. esac
  11213. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11214. echo "$as_me: executing $ac_dest commands" >&6;}
  11215. case $ac_dest in
  11216. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11217. # Strip MF so we end up with the name of the file.
  11218. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11219. # Check whether this is an Automake generated Makefile or not.
  11220. # We used to match only the files named `Makefile.in', but
  11221. # some people rename them; so instead we look at the file content.
  11222. # Grep'ing the first line is not enough: some people post-process
  11223. # each Makefile.in and add a new line on top of each file to say so.
  11224. # So let's grep whole file.
  11225. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11226. dirpart=`(dirname "$mf") 2>/dev/null ||
  11227. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11228. X"$mf" : 'X\(//\)[^/]' \| \
  11229. X"$mf" : 'X\(//\)$' \| \
  11230. X"$mf" : 'X\(/\)' \| \
  11231. . : '\(.\)' 2>/dev/null ||
  11232. echo X"$mf" |
  11233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11234. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11235. /^X\(\/\/\)$/{ s//\1/; q; }
  11236. /^X\(\/\).*/{ s//\1/; q; }
  11237. s/.*/./; q'`
  11238. else
  11239. continue
  11240. fi
  11241. # Extract the definition of DEPDIR, am__include, and am__quote
  11242. # from the Makefile without running `make'.
  11243. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11244. test -z "$DEPDIR" && continue
  11245. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11246. test -z "am__include" && continue
  11247. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11248. # When using ansi2knr, U may be empty or an underscore; expand it
  11249. U=`sed -n 's/^U = //p' < "$mf"`
  11250. # Find all dependency output files, they are included files with
  11251. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11252. # simplest approach to changing $(DEPDIR) to its actual value in the
  11253. # expansion.
  11254. for file in `sed -n "
  11255. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11256. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11257. # Make sure the directory exists.
  11258. test -f "$dirpart/$file" && continue
  11259. fdir=`(dirname "$file") 2>/dev/null ||
  11260. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11261. X"$file" : 'X\(//\)[^/]' \| \
  11262. X"$file" : 'X\(//\)$' \| \
  11263. X"$file" : 'X\(/\)' \| \
  11264. . : '\(.\)' 2>/dev/null ||
  11265. echo X"$file" |
  11266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11267. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11268. /^X\(\/\/\)$/{ s//\1/; q; }
  11269. /^X\(\/\).*/{ s//\1/; q; }
  11270. s/.*/./; q'`
  11271. { if $as_mkdir_p; then
  11272. mkdir -p $dirpart/$fdir
  11273. else
  11274. as_dir=$dirpart/$fdir
  11275. as_dirs=
  11276. while test ! -d "$as_dir"; do
  11277. as_dirs="$as_dir $as_dirs"
  11278. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11280. X"$as_dir" : 'X\(//\)[^/]' \| \
  11281. X"$as_dir" : 'X\(//\)$' \| \
  11282. X"$as_dir" : 'X\(/\)' \| \
  11283. . : '\(.\)' 2>/dev/null ||
  11284. echo X"$as_dir" |
  11285. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11286. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11287. /^X\(\/\/\)$/{ s//\1/; q; }
  11288. /^X\(\/\).*/{ s//\1/; q; }
  11289. s/.*/./; q'`
  11290. done
  11291. test ! -n "$as_dirs" || mkdir $as_dirs
  11292. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11293. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11294. { (exit 1); exit 1; }; }; }
  11295. # echo "creating $dirpart/$file"
  11296. echo '# dummy' > "$dirpart/$file"
  11297. done
  11298. done
  11299. ;;
  11300. default-1 )
  11301. for ac_file in $CONFIG_FILES; do
  11302. # Support "outfile[:infile[:infile...]]"
  11303. case "$ac_file" in
  11304. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11305. esac
  11306. # PO directories have a Makefile.in generated from Makefile.in.in.
  11307. case "$ac_file" in */Makefile.in)
  11308. # Adjust a relative srcdir.
  11309. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11310. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11311. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11312. # In autoconf-2.13 it is called $ac_given_srcdir.
  11313. # In autoconf-2.50 it is called $srcdir.
  11314. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11315. case "$ac_given_srcdir" in
  11316. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11317. /*) top_srcdir="$ac_given_srcdir" ;;
  11318. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11319. esac
  11320. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11321. rm -f "$ac_dir/POTFILES"
  11322. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11323. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11324. POMAKEFILEDEPS="POTFILES.in"
  11325. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11326. # on $ac_dir but don't depend on user-specified configuration
  11327. # parameters.
  11328. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11329. # The LINGUAS file contains the set of available languages.
  11330. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11331. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11332. fi
  11333. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11334. # Hide the ALL_LINGUAS assigment from automake.
  11335. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11336. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11337. else
  11338. # The set of available languages was given in configure.in.
  11339. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11340. fi
  11341. case "$ac_given_srcdir" in
  11342. .) srcdirpre= ;;
  11343. *) srcdirpre='$(srcdir)/' ;;
  11344. esac
  11345. POFILES=
  11346. GMOFILES=
  11347. UPDATEPOFILES=
  11348. DUMMYPOFILES=
  11349. for lang in $ALL_LINGUAS; do
  11350. POFILES="$POFILES $srcdirpre$lang.po"
  11351. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11352. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11353. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11354. done
  11355. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11356. # environment variable.
  11357. INST_LINGUAS=
  11358. if test -n "$ALL_LINGUAS"; then
  11359. for presentlang in $ALL_LINGUAS; do
  11360. useit=no
  11361. if test "%UNSET%" != "$LINGUAS"; then
  11362. desiredlanguages="$LINGUAS"
  11363. else
  11364. desiredlanguages="$ALL_LINGUAS"
  11365. fi
  11366. for desiredlang in $desiredlanguages; do
  11367. # Use the presentlang catalog if desiredlang is
  11368. # a. equal to presentlang, or
  11369. # b. a variant of presentlang (because in this case,
  11370. # presentlang can be used as a fallback for messages
  11371. # which are not translated in the desiredlang catalog).
  11372. case "$desiredlang" in
  11373. "$presentlang"*) useit=yes;;
  11374. esac
  11375. done
  11376. if test $useit = yes; then
  11377. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11378. fi
  11379. done
  11380. fi
  11381. CATALOGS=
  11382. if test -n "$INST_LINGUAS"; then
  11383. for lang in $INST_LINGUAS; do
  11384. CATALOGS="$CATALOGS $lang.gmo"
  11385. done
  11386. fi
  11387. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11388. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  11389. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11390. if test -f "$f"; then
  11391. case "$f" in
  11392. *.orig | *.bak | *~) ;;
  11393. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11394. esac
  11395. fi
  11396. done
  11397. fi
  11398. ;;
  11399. esac
  11400. done ;;
  11401. esac
  11402. done
  11403. _ACEOF
  11404. cat >>$CONFIG_STATUS <<\_ACEOF
  11405. { (exit 0); exit 0; }
  11406. _ACEOF
  11407. chmod +x $CONFIG_STATUS
  11408. ac_clean_files=$ac_clean_files_save
  11409. # configure is writing to config.log, and then calls config.status.
  11410. # config.status does its own redirection, appending to config.log.
  11411. # Unfortunately, on DOS this fails, as config.log is still kept open
  11412. # by configure, so config.status won't be able to write to it; its
  11413. # output is simply discarded. So we exec the FD to /dev/null,
  11414. # effectively closing config.log, so it can be properly (re)opened and
  11415. # appended to by config.status. When coming back to configure, we
  11416. # need to make the FD available again.
  11417. if test "$no_create" != yes; then
  11418. ac_cs_success=:
  11419. ac_config_status_args=
  11420. test "$silent" = yes &&
  11421. ac_config_status_args="$ac_config_status_args --quiet"
  11422. exec 5>/dev/null
  11423. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11424. exec 5>>config.log
  11425. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11426. # would make configure fail if this is the last instruction.
  11427. $ac_cs_success || { (exit 1); exit 1; }
  11428. fi