configure 392 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.7.0.
  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.7.0'
  239. PACKAGE_STRING='aria2c 0.7.0'
  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 XML2_CONFIG XML_CPPFLAGS XML_LIBS LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS LIBARES_LIBS LIBARES_CPPFLAGS ENABLE_BITTORRENT_TRUE ENABLE_BITTORRENT_FALSE ENABLE_METALINK_TRUE ENABLE_METALINK_FALSE HAVE_LIBARES_TRUE HAVE_LIBARES_FALSE 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.7.0 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.7.0:";;
  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. --enable-bittorrent enable BitTorrent support. Default: yes
  756. --enable-metalink enable Metalink support. Default: yes
  757. --disable-dependency-tracking speeds up one-time build
  758. --enable-dependency-tracking do not reject slow dependency extractors
  759. --disable-xmltest Do not try to compile and run a test LIBXML program
  760. --disable-nls do not use Native Language Support
  761. --disable-rpath do not hardcode runtime library paths
  762. Optional Packages:
  763. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  764. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  765. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  766. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  767. --with-gnutls use gnutls library if installed. Default: yes
  768. --with-openssl use openssl library if installed. Default: yes
  769. --with-libxml2 use libxml2 library if installed. Default: yes
  770. --with-ares use ares library if installed. Default: yes
  771. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  772. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  773. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  774. --with-libgcrypt-prefix=PFX
  775. prefix where LIBGCRYPT is installed (optional)
  776. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  777. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  778. --with-gnu-ld assume the C compiler uses GNU ld default=no
  779. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  780. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  781. --with-included-gettext use the GNU gettext library included here
  782. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  783. --without-libintl-prefix don't search for libintl in includedir and libdir
  784. Some influential environment variables:
  785. CXX C++ compiler command
  786. CXXFLAGS C++ compiler flags
  787. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  788. nonstandard directory <lib dir>
  789. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  790. headers in a nonstandard directory <include dir>
  791. CC C compiler command
  792. CFLAGS C compiler flags
  793. CPP C preprocessor
  794. Use these variables to override the choices made by `configure' or to help
  795. it to find libraries and programs with nonstandard names/locations.
  796. Report bugs to <tujikawa@rednoah.com>.
  797. _ACEOF
  798. fi
  799. if test "$ac_init_help" = "recursive"; then
  800. # If there are subdirs, report their specific --help.
  801. ac_popdir=`pwd`
  802. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  803. test -d $ac_dir || continue
  804. ac_builddir=.
  805. if test "$ac_dir" != .; then
  806. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  807. # A "../" for each directory in $ac_dir_suffix.
  808. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  809. else
  810. ac_dir_suffix= ac_top_builddir=
  811. fi
  812. case $srcdir in
  813. .) # No --srcdir option. We are building in place.
  814. ac_srcdir=.
  815. if test -z "$ac_top_builddir"; then
  816. ac_top_srcdir=.
  817. else
  818. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  819. fi ;;
  820. [\\/]* | ?:[\\/]* ) # Absolute path.
  821. ac_srcdir=$srcdir$ac_dir_suffix;
  822. ac_top_srcdir=$srcdir ;;
  823. *) # Relative path.
  824. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  825. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  826. esac
  827. # Do not use `cd foo && pwd` to compute absolute paths, because
  828. # the directories may not exist.
  829. case `pwd` in
  830. .) ac_abs_builddir="$ac_dir";;
  831. *)
  832. case "$ac_dir" in
  833. .) ac_abs_builddir=`pwd`;;
  834. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  835. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  836. esac;;
  837. esac
  838. case $ac_abs_builddir in
  839. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  840. *)
  841. case ${ac_top_builddir}. in
  842. .) ac_abs_top_builddir=$ac_abs_builddir;;
  843. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  844. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  845. esac;;
  846. esac
  847. case $ac_abs_builddir in
  848. .) ac_abs_srcdir=$ac_srcdir;;
  849. *)
  850. case $ac_srcdir in
  851. .) ac_abs_srcdir=$ac_abs_builddir;;
  852. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  853. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  854. esac;;
  855. esac
  856. case $ac_abs_builddir in
  857. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  858. *)
  859. case $ac_top_srcdir in
  860. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  861. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  862. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  863. esac;;
  864. esac
  865. cd $ac_dir
  866. # Check for guested configure; otherwise get Cygnus style configure.
  867. if test -f $ac_srcdir/configure.gnu; then
  868. echo
  869. $SHELL $ac_srcdir/configure.gnu --help=recursive
  870. elif test -f $ac_srcdir/configure; then
  871. echo
  872. $SHELL $ac_srcdir/configure --help=recursive
  873. elif test -f $ac_srcdir/configure.ac ||
  874. test -f $ac_srcdir/configure.in; then
  875. echo
  876. $ac_configure --help
  877. else
  878. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  879. fi
  880. cd "$ac_popdir"
  881. done
  882. fi
  883. test -n "$ac_init_help" && exit 0
  884. if $ac_init_version; then
  885. cat <<\_ACEOF
  886. aria2c configure 0.7.0
  887. generated by GNU Autoconf 2.59
  888. Copyright (C) 2003 Free Software Foundation, Inc.
  889. This configure script is free software; the Free Software Foundation
  890. gives unlimited permission to copy, distribute and modify it.
  891. _ACEOF
  892. exit 0
  893. fi
  894. exec 5>config.log
  895. cat >&5 <<_ACEOF
  896. This file contains any messages produced by compilers while
  897. running configure, to aid debugging if configure makes a mistake.
  898. It was created by aria2c $as_me 0.7.0, which was
  899. generated by GNU Autoconf 2.59. Invocation command line was
  900. $ $0 $@
  901. _ACEOF
  902. {
  903. cat <<_ASUNAME
  904. ## --------- ##
  905. ## Platform. ##
  906. ## --------- ##
  907. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  908. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  909. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  910. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  911. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  912. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  913. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  914. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  915. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  916. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  917. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  918. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  919. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  920. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  921. _ASUNAME
  922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  923. for as_dir in $PATH
  924. do
  925. IFS=$as_save_IFS
  926. test -z "$as_dir" && as_dir=.
  927. echo "PATH: $as_dir"
  928. done
  929. } >&5
  930. cat >&5 <<_ACEOF
  931. ## ----------- ##
  932. ## Core tests. ##
  933. ## ----------- ##
  934. _ACEOF
  935. # Keep a trace of the command line.
  936. # Strip out --no-create and --no-recursion so they do not pile up.
  937. # Strip out --silent because we don't want to record it for future runs.
  938. # Also quote any args containing shell meta-characters.
  939. # Make two passes to allow for proper duplicate-argument suppression.
  940. ac_configure_args=
  941. ac_configure_args0=
  942. ac_configure_args1=
  943. ac_sep=
  944. ac_must_keep_next=false
  945. for ac_pass in 1 2
  946. do
  947. for ac_arg
  948. do
  949. case $ac_arg in
  950. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  951. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  952. | -silent | --silent | --silen | --sile | --sil)
  953. continue ;;
  954. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  955. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  956. esac
  957. case $ac_pass in
  958. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  959. 2)
  960. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  961. if test $ac_must_keep_next = true; then
  962. ac_must_keep_next=false # Got value, back to normal.
  963. else
  964. case $ac_arg in
  965. *=* | --config-cache | -C | -disable-* | --disable-* \
  966. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  967. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  968. | -with-* | --with-* | -without-* | --without-* | --x)
  969. case "$ac_configure_args0 " in
  970. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  971. esac
  972. ;;
  973. -* ) ac_must_keep_next=true ;;
  974. esac
  975. fi
  976. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  977. # Get rid of the leading space.
  978. ac_sep=" "
  979. ;;
  980. esac
  981. done
  982. done
  983. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  984. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  985. # When interrupted or exit'd, cleanup temporary files, and complete
  986. # config.log. We remove comments because anyway the quotes in there
  987. # would cause problems or look ugly.
  988. # WARNING: Be sure not to use single quotes in there, as some shells,
  989. # such as our DU 5.0 friend, will then `close' the trap.
  990. trap 'exit_status=$?
  991. # Save into config.log some information that might help in debugging.
  992. {
  993. echo
  994. cat <<\_ASBOX
  995. ## ---------------- ##
  996. ## Cache variables. ##
  997. ## ---------------- ##
  998. _ASBOX
  999. echo
  1000. # The following way of writing the cache mishandles newlines in values,
  1001. {
  1002. (set) 2>&1 |
  1003. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1004. *ac_space=\ *)
  1005. sed -n \
  1006. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1007. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1008. ;;
  1009. *)
  1010. sed -n \
  1011. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1012. ;;
  1013. esac;
  1014. }
  1015. echo
  1016. cat <<\_ASBOX
  1017. ## ----------------- ##
  1018. ## Output variables. ##
  1019. ## ----------------- ##
  1020. _ASBOX
  1021. echo
  1022. for ac_var in $ac_subst_vars
  1023. do
  1024. eval ac_val=$`echo $ac_var`
  1025. echo "$ac_var='"'"'$ac_val'"'"'"
  1026. done | sort
  1027. echo
  1028. if test -n "$ac_subst_files"; then
  1029. cat <<\_ASBOX
  1030. ## ------------- ##
  1031. ## Output files. ##
  1032. ## ------------- ##
  1033. _ASBOX
  1034. echo
  1035. for ac_var in $ac_subst_files
  1036. do
  1037. eval ac_val=$`echo $ac_var`
  1038. echo "$ac_var='"'"'$ac_val'"'"'"
  1039. done | sort
  1040. echo
  1041. fi
  1042. if test -s confdefs.h; then
  1043. cat <<\_ASBOX
  1044. ## ----------- ##
  1045. ## confdefs.h. ##
  1046. ## ----------- ##
  1047. _ASBOX
  1048. echo
  1049. sed "/^$/d" confdefs.h | sort
  1050. echo
  1051. fi
  1052. test "$ac_signal" != 0 &&
  1053. echo "$as_me: caught signal $ac_signal"
  1054. echo "$as_me: exit $exit_status"
  1055. } >&5
  1056. rm -f core *.core &&
  1057. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1058. exit $exit_status
  1059. ' 0
  1060. for ac_signal in 1 2 13 15; do
  1061. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1062. done
  1063. ac_signal=0
  1064. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1065. rm -rf conftest* confdefs.h
  1066. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1067. echo >confdefs.h
  1068. # Predefined preprocessor variables.
  1069. cat >>confdefs.h <<_ACEOF
  1070. #define PACKAGE_NAME "$PACKAGE_NAME"
  1071. _ACEOF
  1072. cat >>confdefs.h <<_ACEOF
  1073. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1074. _ACEOF
  1075. cat >>confdefs.h <<_ACEOF
  1076. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1077. _ACEOF
  1078. cat >>confdefs.h <<_ACEOF
  1079. #define PACKAGE_STRING "$PACKAGE_STRING"
  1080. _ACEOF
  1081. cat >>confdefs.h <<_ACEOF
  1082. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1083. _ACEOF
  1084. # Let the site file select an alternate cache file if it wants to.
  1085. # Prefer explicitly selected file to automatically selected ones.
  1086. if test -z "$CONFIG_SITE"; then
  1087. if test "x$prefix" != xNONE; then
  1088. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1089. else
  1090. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1091. fi
  1092. fi
  1093. for ac_site_file in $CONFIG_SITE; do
  1094. if test -r "$ac_site_file"; then
  1095. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1096. echo "$as_me: loading site script $ac_site_file" >&6;}
  1097. sed 's/^/| /' "$ac_site_file" >&5
  1098. . "$ac_site_file"
  1099. fi
  1100. done
  1101. if test -r "$cache_file"; then
  1102. # Some versions of bash will fail to source /dev/null (special
  1103. # files actually), so we avoid doing that.
  1104. if test -f "$cache_file"; then
  1105. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1106. echo "$as_me: loading cache $cache_file" >&6;}
  1107. case $cache_file in
  1108. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1109. *) . ./$cache_file;;
  1110. esac
  1111. fi
  1112. else
  1113. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1114. echo "$as_me: creating cache $cache_file" >&6;}
  1115. >$cache_file
  1116. fi
  1117. # Check that the precious variables saved in the cache have kept the same
  1118. # value.
  1119. ac_cache_corrupted=false
  1120. for ac_var in `(set) 2>&1 |
  1121. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1122. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1123. eval ac_new_set=\$ac_env_${ac_var}_set
  1124. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1125. eval ac_new_val="\$ac_env_${ac_var}_value"
  1126. case $ac_old_set,$ac_new_set in
  1127. set,)
  1128. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1129. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1130. ac_cache_corrupted=: ;;
  1131. ,set)
  1132. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1133. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1134. ac_cache_corrupted=: ;;
  1135. ,);;
  1136. *)
  1137. if test "x$ac_old_val" != "x$ac_new_val"; then
  1138. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1139. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1140. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1141. echo "$as_me: former value: $ac_old_val" >&2;}
  1142. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1143. echo "$as_me: current value: $ac_new_val" >&2;}
  1144. ac_cache_corrupted=:
  1145. fi;;
  1146. esac
  1147. # Pass precious variables to config.status.
  1148. if test "$ac_new_set" = set; then
  1149. case $ac_new_val in
  1150. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1151. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1152. *) ac_arg=$ac_var=$ac_new_val ;;
  1153. esac
  1154. case " $ac_configure_args " in
  1155. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1156. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1157. esac
  1158. fi
  1159. done
  1160. if $ac_cache_corrupted; then
  1161. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1162. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1163. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1164. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1165. { (exit 1); exit 1; }; }
  1166. fi
  1167. ac_ext=c
  1168. ac_cpp='$CPP $CPPFLAGS'
  1169. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1170. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1171. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1172. am__api_version="1.9"
  1173. ac_aux_dir=
  1174. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1175. if test -f $ac_dir/install-sh; then
  1176. ac_aux_dir=$ac_dir
  1177. ac_install_sh="$ac_aux_dir/install-sh -c"
  1178. break
  1179. elif test -f $ac_dir/install.sh; then
  1180. ac_aux_dir=$ac_dir
  1181. ac_install_sh="$ac_aux_dir/install.sh -c"
  1182. break
  1183. elif test -f $ac_dir/shtool; then
  1184. ac_aux_dir=$ac_dir
  1185. ac_install_sh="$ac_aux_dir/shtool install -c"
  1186. break
  1187. fi
  1188. done
  1189. if test -z "$ac_aux_dir"; then
  1190. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1191. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1192. { (exit 1); exit 1; }; }
  1193. fi
  1194. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1195. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1196. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1197. # Find a good install program. We prefer a C program (faster),
  1198. # so one script is as good as another. But avoid the broken or
  1199. # incompatible versions:
  1200. # SysV /etc/install, /usr/sbin/install
  1201. # SunOS /usr/etc/install
  1202. # IRIX /sbin/install
  1203. # AIX /bin/install
  1204. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1205. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1206. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1207. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1208. # OS/2's system install, which has a completely different semantic
  1209. # ./install, which can be erroneously created by make from ./install.sh.
  1210. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1211. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1212. if test -z "$INSTALL"; then
  1213. if test "${ac_cv_path_install+set}" = set; then
  1214. echo $ECHO_N "(cached) $ECHO_C" >&6
  1215. else
  1216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1217. for as_dir in $PATH
  1218. do
  1219. IFS=$as_save_IFS
  1220. test -z "$as_dir" && as_dir=.
  1221. # Account for people who put trailing slashes in PATH elements.
  1222. case $as_dir/ in
  1223. ./ | .// | /cC/* | \
  1224. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1225. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1226. /usr/ucb/* ) ;;
  1227. *)
  1228. # OSF1 and SCO ODT 3.0 have their own names for install.
  1229. # Don't use installbsd from OSF since it installs stuff as root
  1230. # by default.
  1231. for ac_prog in ginstall scoinst install; do
  1232. for ac_exec_ext in '' $ac_executable_extensions; do
  1233. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1234. if test $ac_prog = install &&
  1235. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1236. # AIX install. It has an incompatible calling convention.
  1237. :
  1238. elif test $ac_prog = install &&
  1239. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1240. # program-specific install script used by HP pwplus--don't use.
  1241. :
  1242. else
  1243. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1244. break 3
  1245. fi
  1246. fi
  1247. done
  1248. done
  1249. ;;
  1250. esac
  1251. done
  1252. fi
  1253. if test "${ac_cv_path_install+set}" = set; then
  1254. INSTALL=$ac_cv_path_install
  1255. else
  1256. # As a last resort, use the slow shell script. We don't cache a
  1257. # path for INSTALL within a source directory, because that will
  1258. # break other packages using the cache if that directory is
  1259. # removed, or if the path is relative.
  1260. INSTALL=$ac_install_sh
  1261. fi
  1262. fi
  1263. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1264. echo "${ECHO_T}$INSTALL" >&6
  1265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1266. # It thinks the first close brace ends the variable substitution.
  1267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1270. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1271. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1272. # Just in case
  1273. sleep 1
  1274. echo timestamp > conftest.file
  1275. # Do `set' in a subshell so we don't clobber the current shell's
  1276. # arguments. Must try -L first in case configure is actually a
  1277. # symlink; some systems play weird games with the mod time of symlinks
  1278. # (eg FreeBSD returns the mod time of the symlink's containing
  1279. # directory).
  1280. if (
  1281. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1282. if test "$*" = "X"; then
  1283. # -L didn't work.
  1284. set X `ls -t $srcdir/configure conftest.file`
  1285. fi
  1286. rm -f conftest.file
  1287. if test "$*" != "X $srcdir/configure conftest.file" \
  1288. && test "$*" != "X conftest.file $srcdir/configure"; then
  1289. # If neither matched, then we have a broken ls. This can happen
  1290. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1291. # broken ls alias from the environment. This has actually
  1292. # happened. Such a system could not be considered "sane".
  1293. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1294. alias in your environment" >&5
  1295. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1296. alias in your environment" >&2;}
  1297. { (exit 1); exit 1; }; }
  1298. fi
  1299. test "$2" = conftest.file
  1300. )
  1301. then
  1302. # Ok.
  1303. :
  1304. else
  1305. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1306. Check your system clock" >&5
  1307. echo "$as_me: error: newly created file is older than distributed files!
  1308. Check your system clock" >&2;}
  1309. { (exit 1); exit 1; }; }
  1310. fi
  1311. echo "$as_me:$LINENO: result: yes" >&5
  1312. echo "${ECHO_T}yes" >&6
  1313. test "$program_prefix" != NONE &&
  1314. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1315. # Use a double $ so make ignores it.
  1316. test "$program_suffix" != NONE &&
  1317. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1318. # Double any \ or $. echo might interpret backslashes.
  1319. # By default was `s,x,x', remove it if useless.
  1320. cat <<\_ACEOF >conftest.sed
  1321. s/[\\$]/&&/g;s/;s,x,x,$//
  1322. _ACEOF
  1323. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1324. rm conftest.sed
  1325. # expand $ac_aux_dir to an absolute path
  1326. am_aux_dir=`cd $ac_aux_dir && pwd`
  1327. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1328. # Use eval to expand $SHELL
  1329. if eval "$MISSING --run true"; then
  1330. am_missing_run="$MISSING --run "
  1331. else
  1332. am_missing_run=
  1333. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1334. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1335. fi
  1336. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1337. # We used to keeping the `.' as first argument, in order to
  1338. # allow $(mkdir_p) to be used without argument. As in
  1339. # $(mkdir_p) $(somedir)
  1340. # where $(somedir) is conditionally defined. However this is wrong
  1341. # for two reasons:
  1342. # 1. if the package is installed by a user who cannot write `.'
  1343. # make install will fail,
  1344. # 2. the above comment should most certainly read
  1345. # $(mkdir_p) $(DESTDIR)$(somedir)
  1346. # so it does not work when $(somedir) is undefined and
  1347. # $(DESTDIR) is not.
  1348. # To support the latter case, we have to write
  1349. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1350. # so the `.' trick is pointless.
  1351. mkdir_p='mkdir -p --'
  1352. else
  1353. # On NextStep and OpenStep, the `mkdir' command does not
  1354. # recognize any option. It will interpret all options as
  1355. # directories to create, and then abort because `.' already
  1356. # exists.
  1357. for d in ./-p ./--version;
  1358. do
  1359. test -d $d && rmdir $d
  1360. done
  1361. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1362. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1363. mkdir_p='$(mkinstalldirs)'
  1364. else
  1365. mkdir_p='$(install_sh) -d'
  1366. fi
  1367. fi
  1368. for ac_prog in gawk mawk nawk awk
  1369. do
  1370. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1371. set dummy $ac_prog; ac_word=$2
  1372. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1374. if test "${ac_cv_prog_AWK+set}" = set; then
  1375. echo $ECHO_N "(cached) $ECHO_C" >&6
  1376. else
  1377. if test -n "$AWK"; then
  1378. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1379. else
  1380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1381. for as_dir in $PATH
  1382. do
  1383. IFS=$as_save_IFS
  1384. test -z "$as_dir" && as_dir=.
  1385. for ac_exec_ext in '' $ac_executable_extensions; do
  1386. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1387. ac_cv_prog_AWK="$ac_prog"
  1388. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1389. break 2
  1390. fi
  1391. done
  1392. done
  1393. fi
  1394. fi
  1395. AWK=$ac_cv_prog_AWK
  1396. if test -n "$AWK"; then
  1397. echo "$as_me:$LINENO: result: $AWK" >&5
  1398. echo "${ECHO_T}$AWK" >&6
  1399. else
  1400. echo "$as_me:$LINENO: result: no" >&5
  1401. echo "${ECHO_T}no" >&6
  1402. fi
  1403. test -n "$AWK" && break
  1404. done
  1405. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1406. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1407. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1408. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1409. echo $ECHO_N "(cached) $ECHO_C" >&6
  1410. else
  1411. cat >conftest.make <<\_ACEOF
  1412. all:
  1413. @echo 'ac_maketemp="$(MAKE)"'
  1414. _ACEOF
  1415. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1416. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1417. if test -n "$ac_maketemp"; then
  1418. eval ac_cv_prog_make_${ac_make}_set=yes
  1419. else
  1420. eval ac_cv_prog_make_${ac_make}_set=no
  1421. fi
  1422. rm -f conftest.make
  1423. fi
  1424. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1425. echo "$as_me:$LINENO: result: yes" >&5
  1426. echo "${ECHO_T}yes" >&6
  1427. SET_MAKE=
  1428. else
  1429. echo "$as_me:$LINENO: result: no" >&5
  1430. echo "${ECHO_T}no" >&6
  1431. SET_MAKE="MAKE=${MAKE-make}"
  1432. fi
  1433. rm -rf .tst 2>/dev/null
  1434. mkdir .tst 2>/dev/null
  1435. if test -d .tst; then
  1436. am__leading_dot=.
  1437. else
  1438. am__leading_dot=_
  1439. fi
  1440. rmdir .tst 2>/dev/null
  1441. # test to see if srcdir already configured
  1442. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1443. test -f $srcdir/config.status; then
  1444. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1445. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1446. { (exit 1); exit 1; }; }
  1447. fi
  1448. # test whether we have cygpath
  1449. if test -z "$CYGPATH_W"; then
  1450. if (cygpath --version) >/dev/null 2>/dev/null; then
  1451. CYGPATH_W='cygpath -w'
  1452. else
  1453. CYGPATH_W=echo
  1454. fi
  1455. fi
  1456. # Define the identity of the package.
  1457. PACKAGE='aria2c'
  1458. VERSION='0.7.0'
  1459. cat >>confdefs.h <<_ACEOF
  1460. #define PACKAGE "$PACKAGE"
  1461. _ACEOF
  1462. cat >>confdefs.h <<_ACEOF
  1463. #define VERSION "$VERSION"
  1464. _ACEOF
  1465. # Some tools Automake needs.
  1466. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1467. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1468. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1469. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1470. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1471. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1472. # Installed binaries are usually stripped using `strip' when the user
  1473. # run `make install-strip'. However `strip' might not be the right
  1474. # tool to use in cross-compilation environments, therefore Automake
  1475. # will honor the `STRIP' environment variable to overrule this program.
  1476. if test "$cross_compiling" != no; then
  1477. if test -n "$ac_tool_prefix"; then
  1478. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1479. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1480. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1481. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1482. if test "${ac_cv_prog_STRIP+set}" = set; then
  1483. echo $ECHO_N "(cached) $ECHO_C" >&6
  1484. else
  1485. if test -n "$STRIP"; then
  1486. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1487. else
  1488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1489. for as_dir in $PATH
  1490. do
  1491. IFS=$as_save_IFS
  1492. test -z "$as_dir" && as_dir=.
  1493. for ac_exec_ext in '' $ac_executable_extensions; do
  1494. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1495. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1496. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1497. break 2
  1498. fi
  1499. done
  1500. done
  1501. fi
  1502. fi
  1503. STRIP=$ac_cv_prog_STRIP
  1504. if test -n "$STRIP"; then
  1505. echo "$as_me:$LINENO: result: $STRIP" >&5
  1506. echo "${ECHO_T}$STRIP" >&6
  1507. else
  1508. echo "$as_me:$LINENO: result: no" >&5
  1509. echo "${ECHO_T}no" >&6
  1510. fi
  1511. fi
  1512. if test -z "$ac_cv_prog_STRIP"; then
  1513. ac_ct_STRIP=$STRIP
  1514. # Extract the first word of "strip", so it can be a program name with args.
  1515. set dummy strip; ac_word=$2
  1516. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1517. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1518. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1519. echo $ECHO_N "(cached) $ECHO_C" >&6
  1520. else
  1521. if test -n "$ac_ct_STRIP"; then
  1522. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1523. else
  1524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1525. for as_dir in $PATH
  1526. do
  1527. IFS=$as_save_IFS
  1528. test -z "$as_dir" && as_dir=.
  1529. for ac_exec_ext in '' $ac_executable_extensions; do
  1530. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1531. ac_cv_prog_ac_ct_STRIP="strip"
  1532. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1533. break 2
  1534. fi
  1535. done
  1536. done
  1537. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1538. fi
  1539. fi
  1540. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1541. if test -n "$ac_ct_STRIP"; then
  1542. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1543. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1544. else
  1545. echo "$as_me:$LINENO: result: no" >&5
  1546. echo "${ECHO_T}no" >&6
  1547. fi
  1548. STRIP=$ac_ct_STRIP
  1549. else
  1550. STRIP="$ac_cv_prog_STRIP"
  1551. fi
  1552. fi
  1553. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1554. # We need awk for the "check" target. The system "awk" is bad on
  1555. # some platforms.
  1556. # Always define AMTAR for backward compatibility.
  1557. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1558. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1559. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1560. if test "${with_cppunit_prefix+set}" = set; then
  1561. withval="$with_cppunit_prefix"
  1562. cppunit_config_prefix="$withval"
  1563. else
  1564. cppunit_config_prefix=""
  1565. fi;
  1566. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1567. if test "${with_cppunit_exec_prefix+set}" = set; then
  1568. withval="$with_cppunit_exec_prefix"
  1569. cppunit_config_exec_prefix="$withval"
  1570. else
  1571. cppunit_config_exec_prefix=""
  1572. fi;
  1573. if test x$cppunit_config_exec_prefix != x ; then
  1574. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1575. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1576. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1577. fi
  1578. fi
  1579. if test x$cppunit_config_prefix != x ; then
  1580. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1581. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1582. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1583. fi
  1584. fi
  1585. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1586. set dummy cppunit-config; ac_word=$2
  1587. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1589. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1590. echo $ECHO_N "(cached) $ECHO_C" >&6
  1591. else
  1592. case $CPPUNIT_CONFIG in
  1593. [\\/]* | ?:[\\/]*)
  1594. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1595. ;;
  1596. *)
  1597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1598. for as_dir in $PATH
  1599. do
  1600. IFS=$as_save_IFS
  1601. test -z "$as_dir" && as_dir=.
  1602. for ac_exec_ext in '' $ac_executable_extensions; do
  1603. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1604. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1606. break 2
  1607. fi
  1608. done
  1609. done
  1610. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1611. ;;
  1612. esac
  1613. fi
  1614. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1615. if test -n "$CPPUNIT_CONFIG"; then
  1616. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1617. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1618. else
  1619. echo "$as_me:$LINENO: result: no" >&5
  1620. echo "${ECHO_T}no" >&6
  1621. fi
  1622. cppunit_version_min=1.10.2
  1623. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1624. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1625. no_cppunit=""
  1626. if test "$CPPUNIT_CONFIG" = "no" ; then
  1627. no_cppunit=yes
  1628. else
  1629. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1630. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1631. cppunit_version=`$CPPUNIT_CONFIG --version`
  1632. cppunit_major_version=`echo $cppunit_version | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1634. cppunit_minor_version=`echo $cppunit_version | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1636. cppunit_micro_version=`echo $cppunit_version | \
  1637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1638. cppunit_major_min=`echo $cppunit_version_min | \
  1639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1640. cppunit_minor_min=`echo $cppunit_version_min | \
  1641. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1642. cppunit_micro_min=`echo $cppunit_version_min | \
  1643. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1644. cppunit_version_proper=`expr \
  1645. $cppunit_major_version \> $cppunit_major_min \| \
  1646. $cppunit_major_version \= $cppunit_major_min \& \
  1647. $cppunit_minor_version \> $cppunit_minor_min \| \
  1648. $cppunit_major_version \= $cppunit_major_min \& \
  1649. $cppunit_minor_version \= $cppunit_minor_min \& \
  1650. $cppunit_micro_version \>= $cppunit_micro_min `
  1651. if test "$cppunit_version_proper" = "1" ; then
  1652. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1653. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1654. else
  1655. echo "$as_me:$LINENO: result: no" >&5
  1656. echo "${ECHO_T}no" >&6
  1657. no_cppunit=yes
  1658. fi
  1659. fi
  1660. if test "x$no_cppunit" = x ; then
  1661. :
  1662. else
  1663. CPPUNIT_CFLAGS=""
  1664. CPPUNIT_LIBS=""
  1665. :
  1666. fi
  1667. ac_config_headers="$ac_config_headers config.h"
  1668. # Set localedir
  1669. localedir=${datadir}/locale
  1670. # Checks for arguments.
  1671. # Check whether --with-gnutls or --without-gnutls was given.
  1672. if test "${with_gnutls+set}" = set; then
  1673. withval="$with_gnutls"
  1674. with_gnutls=$withval
  1675. else
  1676. with_gnutls=yes
  1677. fi;
  1678. # Check whether --with-openssl or --without-openssl was given.
  1679. if test "${with_openssl+set}" = set; then
  1680. withval="$with_openssl"
  1681. with_openssl=$withval
  1682. else
  1683. with_openssl=yes
  1684. fi;
  1685. # Check whether --with-libxml2 or --without-libxml2 was given.
  1686. if test "${with_libxml2+set}" = set; then
  1687. withval="$with_libxml2"
  1688. with_libxml2=$withval
  1689. else
  1690. with_libxml2=yes
  1691. fi;
  1692. # Check whether --with-ares or --without-ares was given.
  1693. if test "${with_ares+set}" = set; then
  1694. withval="$with_ares"
  1695. with_libares=$withval
  1696. else
  1697. with_libares=yes
  1698. fi;
  1699. # Check whether --enable-bittorrent or --disable-bittorrent was given.
  1700. if test "${enable_bittorrent+set}" = set; then
  1701. enableval="$enable_bittorrent"
  1702. enable_bittorrent=$enableval
  1703. else
  1704. enable_bittorrent=yes
  1705. fi;
  1706. # Check whether --enable-metalink or --disable-metalink was given.
  1707. if test "${enable_metalink+set}" = set; then
  1708. enableval="$enable_metalink"
  1709. enable_metalink=$enableval
  1710. else
  1711. enable_metalink=yes
  1712. fi;
  1713. # Checks for programs.
  1714. ac_ext=cc
  1715. ac_cpp='$CXXCPP $CPPFLAGS'
  1716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1719. if test -n "$ac_tool_prefix"; then
  1720. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1721. do
  1722. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1723. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1724. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1725. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1726. if test "${ac_cv_prog_CXX+set}" = set; then
  1727. echo $ECHO_N "(cached) $ECHO_C" >&6
  1728. else
  1729. if test -n "$CXX"; then
  1730. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1731. else
  1732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1733. for as_dir in $PATH
  1734. do
  1735. IFS=$as_save_IFS
  1736. test -z "$as_dir" && as_dir=.
  1737. for ac_exec_ext in '' $ac_executable_extensions; do
  1738. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1739. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1740. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1741. break 2
  1742. fi
  1743. done
  1744. done
  1745. fi
  1746. fi
  1747. CXX=$ac_cv_prog_CXX
  1748. if test -n "$CXX"; then
  1749. echo "$as_me:$LINENO: result: $CXX" >&5
  1750. echo "${ECHO_T}$CXX" >&6
  1751. else
  1752. echo "$as_me:$LINENO: result: no" >&5
  1753. echo "${ECHO_T}no" >&6
  1754. fi
  1755. test -n "$CXX" && break
  1756. done
  1757. fi
  1758. if test -z "$CXX"; then
  1759. ac_ct_CXX=$CXX
  1760. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1761. do
  1762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1763. set dummy $ac_prog; ac_word=$2
  1764. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1765. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1766. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1767. echo $ECHO_N "(cached) $ECHO_C" >&6
  1768. else
  1769. if test -n "$ac_ct_CXX"; then
  1770. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1771. else
  1772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1773. for as_dir in $PATH
  1774. do
  1775. IFS=$as_save_IFS
  1776. test -z "$as_dir" && as_dir=.
  1777. for ac_exec_ext in '' $ac_executable_extensions; do
  1778. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1779. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1780. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1781. break 2
  1782. fi
  1783. done
  1784. done
  1785. fi
  1786. fi
  1787. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1788. if test -n "$ac_ct_CXX"; then
  1789. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1790. echo "${ECHO_T}$ac_ct_CXX" >&6
  1791. else
  1792. echo "$as_me:$LINENO: result: no" >&5
  1793. echo "${ECHO_T}no" >&6
  1794. fi
  1795. test -n "$ac_ct_CXX" && break
  1796. done
  1797. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1798. CXX=$ac_ct_CXX
  1799. fi
  1800. # Provide some information about the compiler.
  1801. echo "$as_me:$LINENO:" \
  1802. "checking for C++ compiler version" >&5
  1803. ac_compiler=`set X $ac_compile; echo $2`
  1804. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1805. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1806. ac_status=$?
  1807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1808. (exit $ac_status); }
  1809. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1810. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1811. ac_status=$?
  1812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1813. (exit $ac_status); }
  1814. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1815. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1816. ac_status=$?
  1817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1818. (exit $ac_status); }
  1819. cat >conftest.$ac_ext <<_ACEOF
  1820. /* confdefs.h. */
  1821. _ACEOF
  1822. cat confdefs.h >>conftest.$ac_ext
  1823. cat >>conftest.$ac_ext <<_ACEOF
  1824. /* end confdefs.h. */
  1825. int
  1826. main ()
  1827. {
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. ac_clean_files_save=$ac_clean_files
  1833. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1834. # Try to create an executable without -o first, disregard a.out.
  1835. # It will help us diagnose broken compilers, and finding out an intuition
  1836. # of exeext.
  1837. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1838. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1839. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1840. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1841. (eval $ac_link_default) 2>&5
  1842. ac_status=$?
  1843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1844. (exit $ac_status); }; then
  1845. # Find the output, starting from the most likely. This scheme is
  1846. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1847. # resort.
  1848. # Be careful to initialize this variable, since it used to be cached.
  1849. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1850. ac_cv_exeext=
  1851. # b.out is created by i960 compilers.
  1852. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1853. do
  1854. test -f "$ac_file" || continue
  1855. case $ac_file in
  1856. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1857. ;;
  1858. conftest.$ac_ext )
  1859. # This is the source file.
  1860. ;;
  1861. [ab].out )
  1862. # We found the default executable, but exeext='' is most
  1863. # certainly right.
  1864. break;;
  1865. *.* )
  1866. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1867. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1868. # but it would be cool to find out if it's true. Does anybody
  1869. # maintain Libtool? --akim.
  1870. export ac_cv_exeext
  1871. break;;
  1872. * )
  1873. break;;
  1874. esac
  1875. done
  1876. else
  1877. echo "$as_me: failed program was:" >&5
  1878. sed 's/^/| /' conftest.$ac_ext >&5
  1879. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1880. See \`config.log' for more details." >&5
  1881. echo "$as_me: error: C++ compiler cannot create executables
  1882. See \`config.log' for more details." >&2;}
  1883. { (exit 77); exit 77; }; }
  1884. fi
  1885. ac_exeext=$ac_cv_exeext
  1886. echo "$as_me:$LINENO: result: $ac_file" >&5
  1887. echo "${ECHO_T}$ac_file" >&6
  1888. # Check the compiler produces executables we can run. If not, either
  1889. # the compiler is broken, or we cross compile.
  1890. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1891. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1892. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1893. # If not cross compiling, check that we can run a simple program.
  1894. if test "$cross_compiling" != yes; then
  1895. if { ac_try='./$ac_file'
  1896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1897. (eval $ac_try) 2>&5
  1898. ac_status=$?
  1899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1900. (exit $ac_status); }; }; then
  1901. cross_compiling=no
  1902. else
  1903. if test "$cross_compiling" = maybe; then
  1904. cross_compiling=yes
  1905. else
  1906. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1907. If you meant to cross compile, use \`--host'.
  1908. See \`config.log' for more details." >&5
  1909. echo "$as_me: error: cannot run C++ compiled programs.
  1910. If you meant to cross compile, use \`--host'.
  1911. See \`config.log' for more details." >&2;}
  1912. { (exit 1); exit 1; }; }
  1913. fi
  1914. fi
  1915. fi
  1916. echo "$as_me:$LINENO: result: yes" >&5
  1917. echo "${ECHO_T}yes" >&6
  1918. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1919. ac_clean_files=$ac_clean_files_save
  1920. # Check the compiler produces executables we can run. If not, either
  1921. # the compiler is broken, or we cross compile.
  1922. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1923. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1924. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1925. echo "${ECHO_T}$cross_compiling" >&6
  1926. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1927. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1928. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1929. (eval $ac_link) 2>&5
  1930. ac_status=$?
  1931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1932. (exit $ac_status); }; then
  1933. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1934. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1935. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1936. # `rm'.
  1937. for ac_file in conftest.exe conftest conftest.*; do
  1938. test -f "$ac_file" || continue
  1939. case $ac_file in
  1940. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1941. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1942. export ac_cv_exeext
  1943. break;;
  1944. * ) break;;
  1945. esac
  1946. done
  1947. else
  1948. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1949. See \`config.log' for more details." >&5
  1950. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1951. See \`config.log' for more details." >&2;}
  1952. { (exit 1); exit 1; }; }
  1953. fi
  1954. rm -f conftest$ac_cv_exeext
  1955. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1956. echo "${ECHO_T}$ac_cv_exeext" >&6
  1957. rm -f conftest.$ac_ext
  1958. EXEEXT=$ac_cv_exeext
  1959. ac_exeext=$EXEEXT
  1960. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1961. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1962. if test "${ac_cv_objext+set}" = set; then
  1963. echo $ECHO_N "(cached) $ECHO_C" >&6
  1964. else
  1965. cat >conftest.$ac_ext <<_ACEOF
  1966. /* confdefs.h. */
  1967. _ACEOF
  1968. cat confdefs.h >>conftest.$ac_ext
  1969. cat >>conftest.$ac_ext <<_ACEOF
  1970. /* end confdefs.h. */
  1971. int
  1972. main ()
  1973. {
  1974. ;
  1975. return 0;
  1976. }
  1977. _ACEOF
  1978. rm -f conftest.o conftest.obj
  1979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1980. (eval $ac_compile) 2>&5
  1981. ac_status=$?
  1982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1983. (exit $ac_status); }; then
  1984. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1985. case $ac_file in
  1986. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1987. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1988. break;;
  1989. esac
  1990. done
  1991. else
  1992. echo "$as_me: failed program was:" >&5
  1993. sed 's/^/| /' conftest.$ac_ext >&5
  1994. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1995. See \`config.log' for more details." >&5
  1996. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1997. See \`config.log' for more details." >&2;}
  1998. { (exit 1); exit 1; }; }
  1999. fi
  2000. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2001. fi
  2002. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2003. echo "${ECHO_T}$ac_cv_objext" >&6
  2004. OBJEXT=$ac_cv_objext
  2005. ac_objext=$OBJEXT
  2006. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2007. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2008. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2009. echo $ECHO_N "(cached) $ECHO_C" >&6
  2010. else
  2011. cat >conftest.$ac_ext <<_ACEOF
  2012. /* confdefs.h. */
  2013. _ACEOF
  2014. cat confdefs.h >>conftest.$ac_ext
  2015. cat >>conftest.$ac_ext <<_ACEOF
  2016. /* end confdefs.h. */
  2017. int
  2018. main ()
  2019. {
  2020. #ifndef __GNUC__
  2021. choke me
  2022. #endif
  2023. ;
  2024. return 0;
  2025. }
  2026. _ACEOF
  2027. rm -f conftest.$ac_objext
  2028. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2029. (eval $ac_compile) 2>conftest.er1
  2030. ac_status=$?
  2031. grep -v '^ *+' conftest.er1 >conftest.err
  2032. rm -f conftest.er1
  2033. cat conftest.err >&5
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2035. (exit $ac_status); } &&
  2036. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2038. (eval $ac_try) 2>&5
  2039. ac_status=$?
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); }; } &&
  2042. { ac_try='test -s conftest.$ac_objext'
  2043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2044. (eval $ac_try) 2>&5
  2045. ac_status=$?
  2046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2047. (exit $ac_status); }; }; then
  2048. ac_compiler_gnu=yes
  2049. else
  2050. echo "$as_me: failed program was:" >&5
  2051. sed 's/^/| /' conftest.$ac_ext >&5
  2052. ac_compiler_gnu=no
  2053. fi
  2054. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2055. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2058. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2059. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2060. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2061. ac_save_CXXFLAGS=$CXXFLAGS
  2062. CXXFLAGS="-g"
  2063. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2064. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2065. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2066. echo $ECHO_N "(cached) $ECHO_C" >&6
  2067. else
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. int
  2075. main ()
  2076. {
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. rm -f conftest.$ac_objext
  2082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2083. (eval $ac_compile) 2>conftest.er1
  2084. ac_status=$?
  2085. grep -v '^ *+' conftest.er1 >conftest.err
  2086. rm -f conftest.er1
  2087. cat conftest.err >&5
  2088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2089. (exit $ac_status); } &&
  2090. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2092. (eval $ac_try) 2>&5
  2093. ac_status=$?
  2094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2095. (exit $ac_status); }; } &&
  2096. { ac_try='test -s conftest.$ac_objext'
  2097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2098. (eval $ac_try) 2>&5
  2099. ac_status=$?
  2100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2101. (exit $ac_status); }; }; then
  2102. ac_cv_prog_cxx_g=yes
  2103. else
  2104. echo "$as_me: failed program was:" >&5
  2105. sed 's/^/| /' conftest.$ac_ext >&5
  2106. ac_cv_prog_cxx_g=no
  2107. fi
  2108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2109. fi
  2110. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2111. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2112. if test "$ac_test_CXXFLAGS" = set; then
  2113. CXXFLAGS=$ac_save_CXXFLAGS
  2114. elif test $ac_cv_prog_cxx_g = yes; then
  2115. if test "$GXX" = yes; then
  2116. CXXFLAGS="-g -O2"
  2117. else
  2118. CXXFLAGS="-g"
  2119. fi
  2120. else
  2121. if test "$GXX" = yes; then
  2122. CXXFLAGS="-O2"
  2123. else
  2124. CXXFLAGS=
  2125. fi
  2126. fi
  2127. for ac_declaration in \
  2128. '' \
  2129. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2130. 'extern "C" void std::exit (int); using std::exit;' \
  2131. 'extern "C" void exit (int) throw ();' \
  2132. 'extern "C" void exit (int);' \
  2133. 'void exit (int);'
  2134. do
  2135. cat >conftest.$ac_ext <<_ACEOF
  2136. /* confdefs.h. */
  2137. _ACEOF
  2138. cat confdefs.h >>conftest.$ac_ext
  2139. cat >>conftest.$ac_ext <<_ACEOF
  2140. /* end confdefs.h. */
  2141. $ac_declaration
  2142. #include <stdlib.h>
  2143. int
  2144. main ()
  2145. {
  2146. exit (42);
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. rm -f conftest.$ac_objext
  2152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2153. (eval $ac_compile) 2>conftest.er1
  2154. ac_status=$?
  2155. grep -v '^ *+' conftest.er1 >conftest.err
  2156. rm -f conftest.er1
  2157. cat conftest.err >&5
  2158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2159. (exit $ac_status); } &&
  2160. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2162. (eval $ac_try) 2>&5
  2163. ac_status=$?
  2164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2165. (exit $ac_status); }; } &&
  2166. { ac_try='test -s conftest.$ac_objext'
  2167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2168. (eval $ac_try) 2>&5
  2169. ac_status=$?
  2170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2171. (exit $ac_status); }; }; then
  2172. :
  2173. else
  2174. echo "$as_me: failed program was:" >&5
  2175. sed 's/^/| /' conftest.$ac_ext >&5
  2176. continue
  2177. fi
  2178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2179. cat >conftest.$ac_ext <<_ACEOF
  2180. /* confdefs.h. */
  2181. _ACEOF
  2182. cat confdefs.h >>conftest.$ac_ext
  2183. cat >>conftest.$ac_ext <<_ACEOF
  2184. /* end confdefs.h. */
  2185. $ac_declaration
  2186. int
  2187. main ()
  2188. {
  2189. exit (42);
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. rm -f conftest.$ac_objext
  2195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2196. (eval $ac_compile) 2>conftest.er1
  2197. ac_status=$?
  2198. grep -v '^ *+' conftest.er1 >conftest.err
  2199. rm -f conftest.er1
  2200. cat conftest.err >&5
  2201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2202. (exit $ac_status); } &&
  2203. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2205. (eval $ac_try) 2>&5
  2206. ac_status=$?
  2207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2208. (exit $ac_status); }; } &&
  2209. { ac_try='test -s conftest.$ac_objext'
  2210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2211. (eval $ac_try) 2>&5
  2212. ac_status=$?
  2213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2214. (exit $ac_status); }; }; then
  2215. break
  2216. else
  2217. echo "$as_me: failed program was:" >&5
  2218. sed 's/^/| /' conftest.$ac_ext >&5
  2219. fi
  2220. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2221. done
  2222. rm -f conftest*
  2223. if test -n "$ac_declaration"; then
  2224. echo '#ifdef __cplusplus' >>confdefs.h
  2225. echo $ac_declaration >>confdefs.h
  2226. echo '#endif' >>confdefs.h
  2227. fi
  2228. ac_ext=c
  2229. ac_cpp='$CPP $CPPFLAGS'
  2230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2233. DEPDIR="${am__leading_dot}deps"
  2234. ac_config_commands="$ac_config_commands depfiles"
  2235. am_make=${MAKE-make}
  2236. cat > confinc << 'END'
  2237. am__doit:
  2238. @echo done
  2239. .PHONY: am__doit
  2240. END
  2241. # If we don't find an include directive, just comment out the code.
  2242. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2243. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2244. am__include="#"
  2245. am__quote=
  2246. _am_result=none
  2247. # First try GNU make style include.
  2248. echo "include confinc" > confmf
  2249. # We grep out `Entering directory' and `Leaving directory'
  2250. # messages which can occur if `w' ends up in MAKEFLAGS.
  2251. # In particular we don't look at `^make:' because GNU make might
  2252. # be invoked under some other name (usually "gmake"), in which
  2253. # case it prints its new name instead of `make'.
  2254. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2255. am__include=include
  2256. am__quote=
  2257. _am_result=GNU
  2258. fi
  2259. # Now try BSD make style include.
  2260. if test "$am__include" = "#"; then
  2261. echo '.include "confinc"' > confmf
  2262. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2263. am__include=.include
  2264. am__quote="\""
  2265. _am_result=BSD
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $_am_result" >&5
  2269. echo "${ECHO_T}$_am_result" >&6
  2270. rm -f confinc confmf
  2271. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2272. if test "${enable_dependency_tracking+set}" = set; then
  2273. enableval="$enable_dependency_tracking"
  2274. fi;
  2275. if test "x$enable_dependency_tracking" != xno; then
  2276. am_depcomp="$ac_aux_dir/depcomp"
  2277. AMDEPBACKSLASH='\'
  2278. fi
  2279. if test "x$enable_dependency_tracking" != xno; then
  2280. AMDEP_TRUE=
  2281. AMDEP_FALSE='#'
  2282. else
  2283. AMDEP_TRUE='#'
  2284. AMDEP_FALSE=
  2285. fi
  2286. depcc="$CXX" am_compiler_list=
  2287. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2288. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2289. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2290. echo $ECHO_N "(cached) $ECHO_C" >&6
  2291. else
  2292. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2293. # We make a subdir and do the tests there. Otherwise we can end up
  2294. # making bogus files that we don't know about and never remove. For
  2295. # instance it was reported that on HP-UX the gcc test will end up
  2296. # making a dummy file named `D' -- because `-MD' means `put the output
  2297. # in D'.
  2298. mkdir conftest.dir
  2299. # Copy depcomp to subdir because otherwise we won't find it if we're
  2300. # using a relative directory.
  2301. cp "$am_depcomp" conftest.dir
  2302. cd conftest.dir
  2303. # We will build objects and dependencies in a subdirectory because
  2304. # it helps to detect inapplicable dependency modes. For instance
  2305. # both Tru64's cc and ICC support -MD to output dependencies as a
  2306. # side effect of compilation, but ICC will put the dependencies in
  2307. # the current directory while Tru64 will put them in the object
  2308. # directory.
  2309. mkdir sub
  2310. am_cv_CXX_dependencies_compiler_type=none
  2311. if test "$am_compiler_list" = ""; then
  2312. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2313. fi
  2314. for depmode in $am_compiler_list; do
  2315. # Setup a source with many dependencies, because some compilers
  2316. # like to wrap large dependency lists on column 80 (with \), and
  2317. # we should not choose a depcomp mode which is confused by this.
  2318. #
  2319. # We need to recreate these files for each test, as the compiler may
  2320. # overwrite some of them when testing with obscure command lines.
  2321. # This happens at least with the AIX C compiler.
  2322. : > sub/conftest.c
  2323. for i in 1 2 3 4 5 6; do
  2324. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2325. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2326. # Solaris 8's {/usr,}/bin/sh.
  2327. touch sub/conftst$i.h
  2328. done
  2329. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2330. case $depmode in
  2331. nosideeffect)
  2332. # after this tag, mechanisms are not by side-effect, so they'll
  2333. # only be used when explicitly requested
  2334. if test "x$enable_dependency_tracking" = xyes; then
  2335. continue
  2336. else
  2337. break
  2338. fi
  2339. ;;
  2340. none) break ;;
  2341. esac
  2342. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2343. # mode. It turns out that the SunPro C++ compiler does not properly
  2344. # handle `-M -o', and we need to detect this.
  2345. if depmode=$depmode \
  2346. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2347. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2348. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2349. >/dev/null 2>conftest.err &&
  2350. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2351. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2352. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2353. # icc doesn't choke on unknown options, it will just issue warnings
  2354. # or remarks (even with -Werror). So we grep stderr for any message
  2355. # that says an option was ignored or not supported.
  2356. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2357. # icc: Command line warning: ignoring option '-M'; no argument required
  2358. # The diagnosis changed in icc 8.0:
  2359. # icc: Command line remark: option '-MP' not supported
  2360. if (grep 'ignoring option' conftest.err ||
  2361. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2362. am_cv_CXX_dependencies_compiler_type=$depmode
  2363. break
  2364. fi
  2365. fi
  2366. done
  2367. cd ..
  2368. rm -rf conftest.dir
  2369. else
  2370. am_cv_CXX_dependencies_compiler_type=none
  2371. fi
  2372. fi
  2373. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2374. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2375. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2376. if
  2377. test "x$enable_dependency_tracking" != xno \
  2378. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2379. am__fastdepCXX_TRUE=
  2380. am__fastdepCXX_FALSE='#'
  2381. else
  2382. am__fastdepCXX_TRUE='#'
  2383. am__fastdepCXX_FALSE=
  2384. fi
  2385. ac_ext=c
  2386. ac_cpp='$CPP $CPPFLAGS'
  2387. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2388. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2389. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2390. if test -n "$ac_tool_prefix"; then
  2391. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2392. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2393. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2394. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2395. if test "${ac_cv_prog_CC+set}" = set; then
  2396. echo $ECHO_N "(cached) $ECHO_C" >&6
  2397. else
  2398. if test -n "$CC"; then
  2399. ac_cv_prog_CC="$CC" # Let the user override the test.
  2400. else
  2401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2402. for as_dir in $PATH
  2403. do
  2404. IFS=$as_save_IFS
  2405. test -z "$as_dir" && as_dir=.
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2408. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2409. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2410. break 2
  2411. fi
  2412. done
  2413. done
  2414. fi
  2415. fi
  2416. CC=$ac_cv_prog_CC
  2417. if test -n "$CC"; then
  2418. echo "$as_me:$LINENO: result: $CC" >&5
  2419. echo "${ECHO_T}$CC" >&6
  2420. else
  2421. echo "$as_me:$LINENO: result: no" >&5
  2422. echo "${ECHO_T}no" >&6
  2423. fi
  2424. fi
  2425. if test -z "$ac_cv_prog_CC"; then
  2426. ac_ct_CC=$CC
  2427. # Extract the first word of "gcc", so it can be a program name with args.
  2428. set dummy gcc; ac_word=$2
  2429. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2430. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2431. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2432. echo $ECHO_N "(cached) $ECHO_C" >&6
  2433. else
  2434. if test -n "$ac_ct_CC"; then
  2435. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2436. else
  2437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2438. for as_dir in $PATH
  2439. do
  2440. IFS=$as_save_IFS
  2441. test -z "$as_dir" && as_dir=.
  2442. for ac_exec_ext in '' $ac_executable_extensions; do
  2443. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2444. ac_cv_prog_ac_ct_CC="gcc"
  2445. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2446. break 2
  2447. fi
  2448. done
  2449. done
  2450. fi
  2451. fi
  2452. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2453. if test -n "$ac_ct_CC"; then
  2454. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2455. echo "${ECHO_T}$ac_ct_CC" >&6
  2456. else
  2457. echo "$as_me:$LINENO: result: no" >&5
  2458. echo "${ECHO_T}no" >&6
  2459. fi
  2460. CC=$ac_ct_CC
  2461. else
  2462. CC="$ac_cv_prog_CC"
  2463. fi
  2464. if test -z "$CC"; then
  2465. if test -n "$ac_tool_prefix"; then
  2466. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2467. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2470. if test "${ac_cv_prog_CC+set}" = set; then
  2471. echo $ECHO_N "(cached) $ECHO_C" >&6
  2472. else
  2473. if test -n "$CC"; then
  2474. ac_cv_prog_CC="$CC" # Let the user override the test.
  2475. else
  2476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2477. for as_dir in $PATH
  2478. do
  2479. IFS=$as_save_IFS
  2480. test -z "$as_dir" && as_dir=.
  2481. for ac_exec_ext in '' $ac_executable_extensions; do
  2482. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2483. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2484. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. fi
  2490. fi
  2491. CC=$ac_cv_prog_CC
  2492. if test -n "$CC"; then
  2493. echo "$as_me:$LINENO: result: $CC" >&5
  2494. echo "${ECHO_T}$CC" >&6
  2495. else
  2496. echo "$as_me:$LINENO: result: no" >&5
  2497. echo "${ECHO_T}no" >&6
  2498. fi
  2499. fi
  2500. if test -z "$ac_cv_prog_CC"; then
  2501. ac_ct_CC=$CC
  2502. # Extract the first word of "cc", so it can be a program name with args.
  2503. set dummy cc; ac_word=$2
  2504. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2506. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2507. echo $ECHO_N "(cached) $ECHO_C" >&6
  2508. else
  2509. if test -n "$ac_ct_CC"; then
  2510. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2519. ac_cv_prog_ac_ct_CC="cc"
  2520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. fi
  2526. fi
  2527. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2528. if test -n "$ac_ct_CC"; then
  2529. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2530. echo "${ECHO_T}$ac_ct_CC" >&6
  2531. else
  2532. echo "$as_me:$LINENO: result: no" >&5
  2533. echo "${ECHO_T}no" >&6
  2534. fi
  2535. CC=$ac_ct_CC
  2536. else
  2537. CC="$ac_cv_prog_CC"
  2538. fi
  2539. fi
  2540. if test -z "$CC"; then
  2541. # Extract the first word of "cc", so it can be a program name with args.
  2542. set dummy cc; ac_word=$2
  2543. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2544. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2545. if test "${ac_cv_prog_CC+set}" = set; then
  2546. echo $ECHO_N "(cached) $ECHO_C" >&6
  2547. else
  2548. if test -n "$CC"; then
  2549. ac_cv_prog_CC="$CC" # Let the user override the test.
  2550. else
  2551. ac_prog_rejected=no
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_exec_ext in '' $ac_executable_extensions; do
  2558. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2559. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2560. ac_prog_rejected=yes
  2561. continue
  2562. fi
  2563. ac_cv_prog_CC="cc"
  2564. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2565. break 2
  2566. fi
  2567. done
  2568. done
  2569. if test $ac_prog_rejected = yes; then
  2570. # We found a bogon in the path, so make sure we never use it.
  2571. set dummy $ac_cv_prog_CC
  2572. shift
  2573. if test $# != 0; then
  2574. # We chose a different compiler from the bogus one.
  2575. # However, it has the same basename, so the bogon will be chosen
  2576. # first if we set CC to just the basename; use the full file name.
  2577. shift
  2578. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2579. fi
  2580. fi
  2581. fi
  2582. fi
  2583. CC=$ac_cv_prog_CC
  2584. if test -n "$CC"; then
  2585. echo "$as_me:$LINENO: result: $CC" >&5
  2586. echo "${ECHO_T}$CC" >&6
  2587. else
  2588. echo "$as_me:$LINENO: result: no" >&5
  2589. echo "${ECHO_T}no" >&6
  2590. fi
  2591. fi
  2592. if test -z "$CC"; then
  2593. if test -n "$ac_tool_prefix"; then
  2594. for ac_prog in cl
  2595. do
  2596. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2597. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2598. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2599. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2600. if test "${ac_cv_prog_CC+set}" = set; then
  2601. echo $ECHO_N "(cached) $ECHO_C" >&6
  2602. else
  2603. if test -n "$CC"; then
  2604. ac_cv_prog_CC="$CC" # Let the user override the test.
  2605. else
  2606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2607. for as_dir in $PATH
  2608. do
  2609. IFS=$as_save_IFS
  2610. test -z "$as_dir" && as_dir=.
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2613. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2614. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2615. break 2
  2616. fi
  2617. done
  2618. done
  2619. fi
  2620. fi
  2621. CC=$ac_cv_prog_CC
  2622. if test -n "$CC"; then
  2623. echo "$as_me:$LINENO: result: $CC" >&5
  2624. echo "${ECHO_T}$CC" >&6
  2625. else
  2626. echo "$as_me:$LINENO: result: no" >&5
  2627. echo "${ECHO_T}no" >&6
  2628. fi
  2629. test -n "$CC" && break
  2630. done
  2631. fi
  2632. if test -z "$CC"; then
  2633. ac_ct_CC=$CC
  2634. for ac_prog in cl
  2635. do
  2636. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2637. set dummy $ac_prog; ac_word=$2
  2638. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2639. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2640. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2641. echo $ECHO_N "(cached) $ECHO_C" >&6
  2642. else
  2643. if test -n "$ac_ct_CC"; then
  2644. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2645. else
  2646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2647. for as_dir in $PATH
  2648. do
  2649. IFS=$as_save_IFS
  2650. test -z "$as_dir" && as_dir=.
  2651. for ac_exec_ext in '' $ac_executable_extensions; do
  2652. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2653. ac_cv_prog_ac_ct_CC="$ac_prog"
  2654. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2655. break 2
  2656. fi
  2657. done
  2658. done
  2659. fi
  2660. fi
  2661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2662. if test -n "$ac_ct_CC"; then
  2663. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2664. echo "${ECHO_T}$ac_ct_CC" >&6
  2665. else
  2666. echo "$as_me:$LINENO: result: no" >&5
  2667. echo "${ECHO_T}no" >&6
  2668. fi
  2669. test -n "$ac_ct_CC" && break
  2670. done
  2671. CC=$ac_ct_CC
  2672. fi
  2673. fi
  2674. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2675. See \`config.log' for more details." >&5
  2676. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2677. See \`config.log' for more details." >&2;}
  2678. { (exit 1); exit 1; }; }
  2679. # Provide some information about the compiler.
  2680. echo "$as_me:$LINENO:" \
  2681. "checking for C compiler version" >&5
  2682. ac_compiler=`set X $ac_compile; echo $2`
  2683. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2684. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2685. ac_status=$?
  2686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2687. (exit $ac_status); }
  2688. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2689. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2690. ac_status=$?
  2691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2692. (exit $ac_status); }
  2693. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2694. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2695. ac_status=$?
  2696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2697. (exit $ac_status); }
  2698. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2699. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2700. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2701. echo $ECHO_N "(cached) $ECHO_C" >&6
  2702. else
  2703. cat >conftest.$ac_ext <<_ACEOF
  2704. /* confdefs.h. */
  2705. _ACEOF
  2706. cat confdefs.h >>conftest.$ac_ext
  2707. cat >>conftest.$ac_ext <<_ACEOF
  2708. /* end confdefs.h. */
  2709. int
  2710. main ()
  2711. {
  2712. #ifndef __GNUC__
  2713. choke me
  2714. #endif
  2715. ;
  2716. return 0;
  2717. }
  2718. _ACEOF
  2719. rm -f conftest.$ac_objext
  2720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2721. (eval $ac_compile) 2>conftest.er1
  2722. ac_status=$?
  2723. grep -v '^ *+' conftest.er1 >conftest.err
  2724. rm -f conftest.er1
  2725. cat conftest.err >&5
  2726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2727. (exit $ac_status); } &&
  2728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2730. (eval $ac_try) 2>&5
  2731. ac_status=$?
  2732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2733. (exit $ac_status); }; } &&
  2734. { ac_try='test -s conftest.$ac_objext'
  2735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2736. (eval $ac_try) 2>&5
  2737. ac_status=$?
  2738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); }; }; then
  2740. ac_compiler_gnu=yes
  2741. else
  2742. echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. ac_compiler_gnu=no
  2745. fi
  2746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2747. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2748. fi
  2749. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2750. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2751. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2752. ac_test_CFLAGS=${CFLAGS+set}
  2753. ac_save_CFLAGS=$CFLAGS
  2754. CFLAGS="-g"
  2755. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2756. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2757. if test "${ac_cv_prog_cc_g+set}" = set; then
  2758. echo $ECHO_N "(cached) $ECHO_C" >&6
  2759. else
  2760. cat >conftest.$ac_ext <<_ACEOF
  2761. /* confdefs.h. */
  2762. _ACEOF
  2763. cat confdefs.h >>conftest.$ac_ext
  2764. cat >>conftest.$ac_ext <<_ACEOF
  2765. /* end confdefs.h. */
  2766. int
  2767. main ()
  2768. {
  2769. ;
  2770. return 0;
  2771. }
  2772. _ACEOF
  2773. rm -f conftest.$ac_objext
  2774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2775. (eval $ac_compile) 2>conftest.er1
  2776. ac_status=$?
  2777. grep -v '^ *+' conftest.er1 >conftest.err
  2778. rm -f conftest.er1
  2779. cat conftest.err >&5
  2780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2781. (exit $ac_status); } &&
  2782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2784. (eval $ac_try) 2>&5
  2785. ac_status=$?
  2786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2787. (exit $ac_status); }; } &&
  2788. { ac_try='test -s conftest.$ac_objext'
  2789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2790. (eval $ac_try) 2>&5
  2791. ac_status=$?
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); }; }; then
  2794. ac_cv_prog_cc_g=yes
  2795. else
  2796. echo "$as_me: failed program was:" >&5
  2797. sed 's/^/| /' conftest.$ac_ext >&5
  2798. ac_cv_prog_cc_g=no
  2799. fi
  2800. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2801. fi
  2802. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2803. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2804. if test "$ac_test_CFLAGS" = set; then
  2805. CFLAGS=$ac_save_CFLAGS
  2806. elif test $ac_cv_prog_cc_g = yes; then
  2807. if test "$GCC" = yes; then
  2808. CFLAGS="-g -O2"
  2809. else
  2810. CFLAGS="-g"
  2811. fi
  2812. else
  2813. if test "$GCC" = yes; then
  2814. CFLAGS="-O2"
  2815. else
  2816. CFLAGS=
  2817. fi
  2818. fi
  2819. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2820. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2821. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2822. echo $ECHO_N "(cached) $ECHO_C" >&6
  2823. else
  2824. ac_cv_prog_cc_stdc=no
  2825. ac_save_CC=$CC
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. #include <stdarg.h>
  2833. #include <stdio.h>
  2834. #include <sys/types.h>
  2835. #include <sys/stat.h>
  2836. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2837. struct buf { int x; };
  2838. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2839. static char *e (p, i)
  2840. char **p;
  2841. int i;
  2842. {
  2843. return p[i];
  2844. }
  2845. static char *f (char * (*g) (char **, int), char **p, ...)
  2846. {
  2847. char *s;
  2848. va_list v;
  2849. va_start (v,p);
  2850. s = g (p, va_arg (v,int));
  2851. va_end (v);
  2852. return s;
  2853. }
  2854. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2855. function prototypes and stuff, but not '\xHH' hex character constants.
  2856. These don't provoke an error unfortunately, instead are silently treated
  2857. as 'x'. The following induces an error, until -std1 is added to get
  2858. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2859. array size at least. It's necessary to write '\x00'==0 to get something
  2860. that's true only with -std1. */
  2861. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2862. int test (int i, double x);
  2863. struct s1 {int (*f) (int a);};
  2864. struct s2 {int (*f) (double a);};
  2865. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2866. int argc;
  2867. char **argv;
  2868. int
  2869. main ()
  2870. {
  2871. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2872. ;
  2873. return 0;
  2874. }
  2875. _ACEOF
  2876. # Don't try gcc -ansi; that turns off useful extensions and
  2877. # breaks some systems' header files.
  2878. # AIX -qlanglvl=ansi
  2879. # Ultrix and OSF/1 -std1
  2880. # HP-UX 10.20 and later -Ae
  2881. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2882. # SVR4 -Xc -D__EXTENSIONS__
  2883. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2884. do
  2885. CC="$ac_save_CC $ac_arg"
  2886. rm -f conftest.$ac_objext
  2887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2888. (eval $ac_compile) 2>conftest.er1
  2889. ac_status=$?
  2890. grep -v '^ *+' conftest.er1 >conftest.err
  2891. rm -f conftest.er1
  2892. cat conftest.err >&5
  2893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. (exit $ac_status); } &&
  2895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2897. (eval $ac_try) 2>&5
  2898. ac_status=$?
  2899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. (exit $ac_status); }; } &&
  2901. { ac_try='test -s conftest.$ac_objext'
  2902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2903. (eval $ac_try) 2>&5
  2904. ac_status=$?
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); }; }; then
  2907. ac_cv_prog_cc_stdc=$ac_arg
  2908. break
  2909. else
  2910. echo "$as_me: failed program was:" >&5
  2911. sed 's/^/| /' conftest.$ac_ext >&5
  2912. fi
  2913. rm -f conftest.err conftest.$ac_objext
  2914. done
  2915. rm -f conftest.$ac_ext conftest.$ac_objext
  2916. CC=$ac_save_CC
  2917. fi
  2918. case "x$ac_cv_prog_cc_stdc" in
  2919. x|xno)
  2920. echo "$as_me:$LINENO: result: none needed" >&5
  2921. echo "${ECHO_T}none needed" >&6 ;;
  2922. *)
  2923. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2924. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2925. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2926. esac
  2927. # Some people use a C++ compiler to compile C. Since we use `exit',
  2928. # in C++ we need to declare it. In case someone uses the same compiler
  2929. # for both compiling C and C++ we need to have the C++ compiler decide
  2930. # the declaration of exit, since it's the most demanding environment.
  2931. cat >conftest.$ac_ext <<_ACEOF
  2932. #ifndef __cplusplus
  2933. choke me
  2934. #endif
  2935. _ACEOF
  2936. rm -f conftest.$ac_objext
  2937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2938. (eval $ac_compile) 2>conftest.er1
  2939. ac_status=$?
  2940. grep -v '^ *+' conftest.er1 >conftest.err
  2941. rm -f conftest.er1
  2942. cat conftest.err >&5
  2943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944. (exit $ac_status); } &&
  2945. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2947. (eval $ac_try) 2>&5
  2948. ac_status=$?
  2949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2950. (exit $ac_status); }; } &&
  2951. { ac_try='test -s conftest.$ac_objext'
  2952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2953. (eval $ac_try) 2>&5
  2954. ac_status=$?
  2955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2956. (exit $ac_status); }; }; then
  2957. for ac_declaration in \
  2958. '' \
  2959. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2960. 'extern "C" void std::exit (int); using std::exit;' \
  2961. 'extern "C" void exit (int) throw ();' \
  2962. 'extern "C" void exit (int);' \
  2963. 'void exit (int);'
  2964. do
  2965. cat >conftest.$ac_ext <<_ACEOF
  2966. /* confdefs.h. */
  2967. _ACEOF
  2968. cat confdefs.h >>conftest.$ac_ext
  2969. cat >>conftest.$ac_ext <<_ACEOF
  2970. /* end confdefs.h. */
  2971. $ac_declaration
  2972. #include <stdlib.h>
  2973. int
  2974. main ()
  2975. {
  2976. exit (42);
  2977. ;
  2978. return 0;
  2979. }
  2980. _ACEOF
  2981. rm -f conftest.$ac_objext
  2982. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2983. (eval $ac_compile) 2>conftest.er1
  2984. ac_status=$?
  2985. grep -v '^ *+' conftest.er1 >conftest.err
  2986. rm -f conftest.er1
  2987. cat conftest.err >&5
  2988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2989. (exit $ac_status); } &&
  2990. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2992. (eval $ac_try) 2>&5
  2993. ac_status=$?
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); }; } &&
  2996. { ac_try='test -s conftest.$ac_objext'
  2997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2998. (eval $ac_try) 2>&5
  2999. ac_status=$?
  3000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001. (exit $ac_status); }; }; then
  3002. :
  3003. else
  3004. echo "$as_me: failed program was:" >&5
  3005. sed 's/^/| /' conftest.$ac_ext >&5
  3006. continue
  3007. fi
  3008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. /* confdefs.h. */
  3011. _ACEOF
  3012. cat confdefs.h >>conftest.$ac_ext
  3013. cat >>conftest.$ac_ext <<_ACEOF
  3014. /* end confdefs.h. */
  3015. $ac_declaration
  3016. int
  3017. main ()
  3018. {
  3019. exit (42);
  3020. ;
  3021. return 0;
  3022. }
  3023. _ACEOF
  3024. rm -f conftest.$ac_objext
  3025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3026. (eval $ac_compile) 2>conftest.er1
  3027. ac_status=$?
  3028. grep -v '^ *+' conftest.er1 >conftest.err
  3029. rm -f conftest.er1
  3030. cat conftest.err >&5
  3031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3032. (exit $ac_status); } &&
  3033. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3035. (eval $ac_try) 2>&5
  3036. ac_status=$?
  3037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3038. (exit $ac_status); }; } &&
  3039. { ac_try='test -s conftest.$ac_objext'
  3040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3041. (eval $ac_try) 2>&5
  3042. ac_status=$?
  3043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3044. (exit $ac_status); }; }; then
  3045. break
  3046. else
  3047. echo "$as_me: failed program was:" >&5
  3048. sed 's/^/| /' conftest.$ac_ext >&5
  3049. fi
  3050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3051. done
  3052. rm -f conftest*
  3053. if test -n "$ac_declaration"; then
  3054. echo '#ifdef __cplusplus' >>confdefs.h
  3055. echo $ac_declaration >>confdefs.h
  3056. echo '#endif' >>confdefs.h
  3057. fi
  3058. else
  3059. echo "$as_me: failed program was:" >&5
  3060. sed 's/^/| /' conftest.$ac_ext >&5
  3061. fi
  3062. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3063. ac_ext=c
  3064. ac_cpp='$CPP $CPPFLAGS'
  3065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3068. depcc="$CC" am_compiler_list=
  3069. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3070. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3071. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3072. echo $ECHO_N "(cached) $ECHO_C" >&6
  3073. else
  3074. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3075. # We make a subdir and do the tests there. Otherwise we can end up
  3076. # making bogus files that we don't know about and never remove. For
  3077. # instance it was reported that on HP-UX the gcc test will end up
  3078. # making a dummy file named `D' -- because `-MD' means `put the output
  3079. # in D'.
  3080. mkdir conftest.dir
  3081. # Copy depcomp to subdir because otherwise we won't find it if we're
  3082. # using a relative directory.
  3083. cp "$am_depcomp" conftest.dir
  3084. cd conftest.dir
  3085. # We will build objects and dependencies in a subdirectory because
  3086. # it helps to detect inapplicable dependency modes. For instance
  3087. # both Tru64's cc and ICC support -MD to output dependencies as a
  3088. # side effect of compilation, but ICC will put the dependencies in
  3089. # the current directory while Tru64 will put them in the object
  3090. # directory.
  3091. mkdir sub
  3092. am_cv_CC_dependencies_compiler_type=none
  3093. if test "$am_compiler_list" = ""; then
  3094. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3095. fi
  3096. for depmode in $am_compiler_list; do
  3097. # Setup a source with many dependencies, because some compilers
  3098. # like to wrap large dependency lists on column 80 (with \), and
  3099. # we should not choose a depcomp mode which is confused by this.
  3100. #
  3101. # We need to recreate these files for each test, as the compiler may
  3102. # overwrite some of them when testing with obscure command lines.
  3103. # This happens at least with the AIX C compiler.
  3104. : > sub/conftest.c
  3105. for i in 1 2 3 4 5 6; do
  3106. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3107. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3108. # Solaris 8's {/usr,}/bin/sh.
  3109. touch sub/conftst$i.h
  3110. done
  3111. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3112. case $depmode in
  3113. nosideeffect)
  3114. # after this tag, mechanisms are not by side-effect, so they'll
  3115. # only be used when explicitly requested
  3116. if test "x$enable_dependency_tracking" = xyes; then
  3117. continue
  3118. else
  3119. break
  3120. fi
  3121. ;;
  3122. none) break ;;
  3123. esac
  3124. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3125. # mode. It turns out that the SunPro C++ compiler does not properly
  3126. # handle `-M -o', and we need to detect this.
  3127. if depmode=$depmode \
  3128. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3129. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3130. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3131. >/dev/null 2>conftest.err &&
  3132. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3133. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3134. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3135. # icc doesn't choke on unknown options, it will just issue warnings
  3136. # or remarks (even with -Werror). So we grep stderr for any message
  3137. # that says an option was ignored or not supported.
  3138. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3139. # icc: Command line warning: ignoring option '-M'; no argument required
  3140. # The diagnosis changed in icc 8.0:
  3141. # icc: Command line remark: option '-MP' not supported
  3142. if (grep 'ignoring option' conftest.err ||
  3143. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3144. am_cv_CC_dependencies_compiler_type=$depmode
  3145. break
  3146. fi
  3147. fi
  3148. done
  3149. cd ..
  3150. rm -rf conftest.dir
  3151. else
  3152. am_cv_CC_dependencies_compiler_type=none
  3153. fi
  3154. fi
  3155. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3156. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3157. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3158. if
  3159. test "x$enable_dependency_tracking" != xno \
  3160. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3161. am__fastdepCC_TRUE=
  3162. am__fastdepCC_FALSE='#'
  3163. else
  3164. am__fastdepCC_TRUE='#'
  3165. am__fastdepCC_FALSE=
  3166. fi
  3167. # Find a good install program. We prefer a C program (faster),
  3168. # so one script is as good as another. But avoid the broken or
  3169. # incompatible versions:
  3170. # SysV /etc/install, /usr/sbin/install
  3171. # SunOS /usr/etc/install
  3172. # IRIX /sbin/install
  3173. # AIX /bin/install
  3174. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3175. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3176. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3177. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3178. # OS/2's system install, which has a completely different semantic
  3179. # ./install, which can be erroneously created by make from ./install.sh.
  3180. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3181. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3182. if test -z "$INSTALL"; then
  3183. if test "${ac_cv_path_install+set}" = set; then
  3184. echo $ECHO_N "(cached) $ECHO_C" >&6
  3185. else
  3186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3187. for as_dir in $PATH
  3188. do
  3189. IFS=$as_save_IFS
  3190. test -z "$as_dir" && as_dir=.
  3191. # Account for people who put trailing slashes in PATH elements.
  3192. case $as_dir/ in
  3193. ./ | .// | /cC/* | \
  3194. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3195. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3196. /usr/ucb/* ) ;;
  3197. *)
  3198. # OSF1 and SCO ODT 3.0 have their own names for install.
  3199. # Don't use installbsd from OSF since it installs stuff as root
  3200. # by default.
  3201. for ac_prog in ginstall scoinst install; do
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3204. if test $ac_prog = install &&
  3205. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3206. # AIX install. It has an incompatible calling convention.
  3207. :
  3208. elif test $ac_prog = install &&
  3209. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3210. # program-specific install script used by HP pwplus--don't use.
  3211. :
  3212. else
  3213. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3214. break 3
  3215. fi
  3216. fi
  3217. done
  3218. done
  3219. ;;
  3220. esac
  3221. done
  3222. fi
  3223. if test "${ac_cv_path_install+set}" = set; then
  3224. INSTALL=$ac_cv_path_install
  3225. else
  3226. # As a last resort, use the slow shell script. We don't cache a
  3227. # path for INSTALL within a source directory, because that will
  3228. # break other packages using the cache if that directory is
  3229. # removed, or if the path is relative.
  3230. INSTALL=$ac_install_sh
  3231. fi
  3232. fi
  3233. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3234. echo "${ECHO_T}$INSTALL" >&6
  3235. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3236. # It thinks the first close brace ends the variable substitution.
  3237. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3238. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3239. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3240. if test -n "$ac_tool_prefix"; then
  3241. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3242. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3243. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3245. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3246. echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. if test -n "$RANLIB"; then
  3249. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3258. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. fi
  3265. fi
  3266. RANLIB=$ac_cv_prog_RANLIB
  3267. if test -n "$RANLIB"; then
  3268. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3269. echo "${ECHO_T}$RANLIB" >&6
  3270. else
  3271. echo "$as_me:$LINENO: result: no" >&5
  3272. echo "${ECHO_T}no" >&6
  3273. fi
  3274. fi
  3275. if test -z "$ac_cv_prog_RANLIB"; then
  3276. ac_ct_RANLIB=$RANLIB
  3277. # Extract the first word of "ranlib", so it can be a program name with args.
  3278. set dummy ranlib; ac_word=$2
  3279. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3280. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3281. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3282. echo $ECHO_N "(cached) $ECHO_C" >&6
  3283. else
  3284. if test -n "$ac_ct_RANLIB"; then
  3285. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3286. else
  3287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3288. for as_dir in $PATH
  3289. do
  3290. IFS=$as_save_IFS
  3291. test -z "$as_dir" && as_dir=.
  3292. for ac_exec_ext in '' $ac_executable_extensions; do
  3293. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3294. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3296. break 2
  3297. fi
  3298. done
  3299. done
  3300. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3301. fi
  3302. fi
  3303. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3304. if test -n "$ac_ct_RANLIB"; then
  3305. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3306. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3307. else
  3308. echo "$as_me:$LINENO: result: no" >&5
  3309. echo "${ECHO_T}no" >&6
  3310. fi
  3311. RANLIB=$ac_ct_RANLIB
  3312. else
  3313. RANLIB="$ac_cv_prog_RANLIB"
  3314. fi
  3315. for ac_prog in 'bison -y' byacc
  3316. do
  3317. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3318. set dummy $ac_prog; ac_word=$2
  3319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3321. if test "${ac_cv_prog_YACC+set}" = set; then
  3322. echo $ECHO_N "(cached) $ECHO_C" >&6
  3323. else
  3324. if test -n "$YACC"; then
  3325. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3326. else
  3327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3328. for as_dir in $PATH
  3329. do
  3330. IFS=$as_save_IFS
  3331. test -z "$as_dir" && as_dir=.
  3332. for ac_exec_ext in '' $ac_executable_extensions; do
  3333. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3334. ac_cv_prog_YACC="$ac_prog"
  3335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3336. break 2
  3337. fi
  3338. done
  3339. done
  3340. fi
  3341. fi
  3342. YACC=$ac_cv_prog_YACC
  3343. if test -n "$YACC"; then
  3344. echo "$as_me:$LINENO: result: $YACC" >&5
  3345. echo "${ECHO_T}$YACC" >&6
  3346. else
  3347. echo "$as_me:$LINENO: result: no" >&5
  3348. echo "${ECHO_T}no" >&6
  3349. fi
  3350. test -n "$YACC" && break
  3351. done
  3352. test -n "$YACC" || YACC="yacc"
  3353. # Checks for libraries.
  3354. if test "x$with_libxml2" = "xyes"; then
  3355. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3356. if test "${with_xml_prefix+set}" = set; then
  3357. withval="$with_xml_prefix"
  3358. xml_config_prefix="$withval"
  3359. else
  3360. xml_config_prefix=""
  3361. fi;
  3362. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3363. if test "${with_xml_exec_prefix+set}" = set; then
  3364. withval="$with_xml_exec_prefix"
  3365. xml_config_exec_prefix="$withval"
  3366. else
  3367. xml_config_exec_prefix=""
  3368. fi;
  3369. # Check whether --enable-xmltest or --disable-xmltest was given.
  3370. if test "${enable_xmltest+set}" = set; then
  3371. enableval="$enable_xmltest"
  3372. else
  3373. enable_xmltest=yes
  3374. fi;
  3375. if test x$xml_config_exec_prefix != x ; then
  3376. xml_config_args="$xml_config_args"
  3377. if test x${XML2_CONFIG+set} != xset ; then
  3378. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3379. fi
  3380. fi
  3381. if test x$xml_config_prefix != x ; then
  3382. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3383. if test x${XML2_CONFIG+set} != xset ; then
  3384. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3385. fi
  3386. fi
  3387. # Extract the first word of "xml2-config", so it can be a program name with args.
  3388. set dummy xml2-config; ac_word=$2
  3389. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3390. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3391. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3392. echo $ECHO_N "(cached) $ECHO_C" >&6
  3393. else
  3394. case $XML2_CONFIG in
  3395. [\\/]* | ?:[\\/]*)
  3396. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3397. ;;
  3398. *)
  3399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3400. for as_dir in $PATH
  3401. do
  3402. IFS=$as_save_IFS
  3403. test -z "$as_dir" && as_dir=.
  3404. for ac_exec_ext in '' $ac_executable_extensions; do
  3405. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3406. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3407. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3408. break 2
  3409. fi
  3410. done
  3411. done
  3412. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3413. ;;
  3414. esac
  3415. fi
  3416. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3417. if test -n "$XML2_CONFIG"; then
  3418. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3419. echo "${ECHO_T}$XML2_CONFIG" >&6
  3420. else
  3421. echo "$as_me:$LINENO: result: no" >&5
  3422. echo "${ECHO_T}no" >&6
  3423. fi
  3424. min_xml_version=2.6.26
  3425. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3426. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3427. no_xml=""
  3428. if test "$XML2_CONFIG" = "no" ; then
  3429. no_xml=yes
  3430. else
  3431. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3432. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3433. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3434. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3435. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3436. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3437. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3438. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3439. if test "x$enable_xmltest" = "xyes" ; then
  3440. ac_save_CPPFLAGS="$CPPFLAGS"
  3441. ac_save_LIBS="$LIBS"
  3442. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3443. LIBS="$XML_LIBS $LIBS"
  3444. rm -f conf.xmltest
  3445. if test "$cross_compiling" = yes; then
  3446. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3447. else
  3448. cat >conftest.$ac_ext <<_ACEOF
  3449. /* confdefs.h. */
  3450. _ACEOF
  3451. cat confdefs.h >>conftest.$ac_ext
  3452. cat >>conftest.$ac_ext <<_ACEOF
  3453. /* end confdefs.h. */
  3454. #include <stdlib.h>
  3455. #include <stdio.h>
  3456. #include <string.h>
  3457. #include <libxml/xmlversion.h>
  3458. int
  3459. main()
  3460. {
  3461. int xml_major_version, xml_minor_version, xml_micro_version;
  3462. int major, minor, micro;
  3463. char *tmp_version;
  3464. system("touch conf.xmltest");
  3465. /* Capture xml2-config output via autoconf/configure variables */
  3466. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3467. tmp_version = (char *)strdup("$min_xml_version");
  3468. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3469. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3470. exit(1);
  3471. }
  3472. free(tmp_version);
  3473. /* Capture the version information from the header files */
  3474. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3475. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3476. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3477. exit(1);
  3478. }
  3479. free(tmp_version);
  3480. /* Compare xml2-config output to the libxml headers */
  3481. if ((xml_major_version != $xml_config_major_version) ||
  3482. (xml_minor_version != $xml_config_minor_version) ||
  3483. (xml_micro_version != $xml_config_micro_version))
  3484. {
  3485. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3486. xml_major_version, xml_minor_version, xml_micro_version);
  3487. printf("*** xml2-config (version %d.%d.%d)\n",
  3488. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3489. return 1;
  3490. }
  3491. /* Compare the headers to the library to make sure we match */
  3492. /* Less than ideal -- doesn't provide us with return value feedback,
  3493. * only exits if there's a serious mismatch between header and library.
  3494. */
  3495. LIBXML_TEST_VERSION;
  3496. /* Test that the library is greater than our minimum version */
  3497. if ((xml_major_version > major) ||
  3498. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3499. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3500. (xml_micro_version >= micro)))
  3501. {
  3502. return 0;
  3503. }
  3504. else
  3505. {
  3506. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3507. xml_major_version, xml_minor_version, xml_micro_version);
  3508. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3509. major, minor, micro);
  3510. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3511. printf("***\n");
  3512. printf("*** If you have already installed a sufficiently new version, this error\n");
  3513. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3514. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3515. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3516. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3517. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3518. printf("*** so that the correct libraries are found at run-time))\n");
  3519. }
  3520. return 1;
  3521. }
  3522. _ACEOF
  3523. rm -f conftest$ac_exeext
  3524. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3525. (eval $ac_link) 2>&5
  3526. ac_status=$?
  3527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3530. (eval $ac_try) 2>&5
  3531. ac_status=$?
  3532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3533. (exit $ac_status); }; }; then
  3534. :
  3535. else
  3536. echo "$as_me: program exited with status $ac_status" >&5
  3537. echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. ( exit $ac_status )
  3540. no_xml=yes
  3541. fi
  3542. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3543. fi
  3544. CPPFLAGS="$ac_save_CPPFLAGS"
  3545. LIBS="$ac_save_LIBS"
  3546. fi
  3547. fi
  3548. if test "x$no_xml" = x ; then
  3549. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3550. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3551. have_libxml2=yes
  3552. else
  3553. echo "$as_me:$LINENO: result: no" >&5
  3554. echo "${ECHO_T}no" >&6
  3555. if test "$XML2_CONFIG" = "no" ; then
  3556. echo "*** The xml2-config script installed by LIBXML could not be found"
  3557. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3558. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3559. echo "*** full path to xml2-config."
  3560. else
  3561. if test -f conf.xmltest ; then
  3562. :
  3563. else
  3564. echo "*** Could not run libxml test program, checking why..."
  3565. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3566. LIBS="$LIBS $XML_LIBS"
  3567. cat >conftest.$ac_ext <<_ACEOF
  3568. /* confdefs.h. */
  3569. _ACEOF
  3570. cat confdefs.h >>conftest.$ac_ext
  3571. cat >>conftest.$ac_ext <<_ACEOF
  3572. /* end confdefs.h. */
  3573. #include <libxml/xmlversion.h>
  3574. #include <stdio.h>
  3575. int
  3576. main ()
  3577. {
  3578. LIBXML_TEST_VERSION; return 0;
  3579. ;
  3580. return 0;
  3581. }
  3582. _ACEOF
  3583. rm -f conftest.$ac_objext conftest$ac_exeext
  3584. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3585. (eval $ac_link) 2>conftest.er1
  3586. ac_status=$?
  3587. grep -v '^ *+' conftest.er1 >conftest.err
  3588. rm -f conftest.er1
  3589. cat conftest.err >&5
  3590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3591. (exit $ac_status); } &&
  3592. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3594. (eval $ac_try) 2>&5
  3595. ac_status=$?
  3596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3597. (exit $ac_status); }; } &&
  3598. { ac_try='test -s conftest$ac_exeext'
  3599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3600. (eval $ac_try) 2>&5
  3601. ac_status=$?
  3602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); }; }; then
  3604. echo "*** The test program compiled, but did not run. This usually means"
  3605. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3606. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3607. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3608. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3609. echo "*** is required on your system"
  3610. echo "***"
  3611. echo "*** If you have an old version installed, it is best to remove it, although"
  3612. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3613. else
  3614. echo "$as_me: failed program was:" >&5
  3615. sed 's/^/| /' conftest.$ac_ext >&5
  3616. echo "*** The test program failed to compile or link. See the file config.log for the"
  3617. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3618. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3619. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3620. fi
  3621. rm -f conftest.err conftest.$ac_objext \
  3622. conftest$ac_exeext conftest.$ac_ext
  3623. CPPFLAGS="$ac_save_CPPFLAGS"
  3624. LIBS="$ac_save_LIBS"
  3625. fi
  3626. fi
  3627. XML_CPPFLAGS=""
  3628. XML_LIBS=""
  3629. :
  3630. fi
  3631. rm -f conf.xmltest
  3632. if test "x$have_libxml2" = "xyes"; then
  3633. cat >>confdefs.h <<\_ACEOF
  3634. #define HAVE_LIBXML2 1
  3635. _ACEOF
  3636. fi
  3637. fi
  3638. if test "x$with_gnutls" = "xyes"; then
  3639. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3640. if test "${with_libgnutls_prefix+set}" = set; then
  3641. withval="$with_libgnutls_prefix"
  3642. libgnutls_config_prefix="$withval"
  3643. else
  3644. libgnutls_config_prefix=""
  3645. fi;
  3646. if test x$libgnutls_config_prefix != x ; then
  3647. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3648. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3649. fi
  3650. fi
  3651. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3652. set dummy libgnutls-config; ac_word=$2
  3653. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3654. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3655. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. case $LIBGNUTLS_CONFIG in
  3659. [\\/]* | ?:[\\/]*)
  3660. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3661. ;;
  3662. *)
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3670. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3671. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3672. break 2
  3673. fi
  3674. done
  3675. done
  3676. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3677. ;;
  3678. esac
  3679. fi
  3680. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3681. if test -n "$LIBGNUTLS_CONFIG"; then
  3682. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3683. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3684. else
  3685. echo "$as_me:$LINENO: result: no" >&5
  3686. echo "${ECHO_T}no" >&6
  3687. fi
  3688. min_libgnutls_version=1.2.9
  3689. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3690. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3691. no_libgnutls=""
  3692. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3693. no_libgnutls=yes
  3694. else
  3695. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3696. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3697. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3698. ac_save_CFLAGS="$CFLAGS"
  3699. ac_save_LIBS="$LIBS"
  3700. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3701. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3702. rm -f conf.libgnutlstest
  3703. if test "$cross_compiling" = yes; then
  3704. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3705. else
  3706. cat >conftest.$ac_ext <<_ACEOF
  3707. /* confdefs.h. */
  3708. _ACEOF
  3709. cat confdefs.h >>conftest.$ac_ext
  3710. cat >>conftest.$ac_ext <<_ACEOF
  3711. /* end confdefs.h. */
  3712. #include <stdio.h>
  3713. #include <stdlib.h>
  3714. #include <string.h>
  3715. #include <gnutls/gnutls.h>
  3716. int
  3717. main ()
  3718. {
  3719. system ("touch conf.libgnutlstest");
  3720. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3721. {
  3722. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3723. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3724. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3725. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3726. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3727. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3728. printf("*** required on your system.\n");
  3729. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3730. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3731. printf("*** before re-running configure\n");
  3732. }
  3733. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3734. {
  3735. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3736. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3737. }
  3738. else
  3739. {
  3740. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3741. {
  3742. return 0;
  3743. }
  3744. else
  3745. {
  3746. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3747. gnutls_check_version(NULL) );
  3748. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3749. "$min_libgnutls_version" );
  3750. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3751. printf("*** \n");
  3752. printf("*** If you have already installed a sufficiently new version, this error\n");
  3753. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3754. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3755. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3756. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3757. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3758. printf("*** so that the correct libraries are found at run-time))\n");
  3759. }
  3760. }
  3761. return 1;
  3762. }
  3763. _ACEOF
  3764. rm -f conftest$ac_exeext
  3765. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3766. (eval $ac_link) 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3771. (eval $ac_try) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); }; }; then
  3775. :
  3776. else
  3777. echo "$as_me: program exited with status $ac_status" >&5
  3778. echo "$as_me: failed program was:" >&5
  3779. sed 's/^/| /' conftest.$ac_ext >&5
  3780. ( exit $ac_status )
  3781. no_libgnutls=yes
  3782. fi
  3783. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3784. fi
  3785. CFLAGS="$ac_save_CFLAGS"
  3786. LIBS="$ac_save_LIBS"
  3787. fi
  3788. if test "x$no_libgnutls" = x ; then
  3789. echo "$as_me:$LINENO: result: yes" >&5
  3790. echo "${ECHO_T}yes" >&6
  3791. have_libgnutls=yes
  3792. else
  3793. if test -f conf.libgnutlstest ; then
  3794. :
  3795. else
  3796. echo "$as_me:$LINENO: result: no" >&5
  3797. echo "${ECHO_T}no" >&6
  3798. fi
  3799. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3800. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3801. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3802. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3803. echo "*** full path to libgnutls-config."
  3804. else
  3805. if test -f conf.libgnutlstest ; then
  3806. :
  3807. else
  3808. echo "*** Could not run libgnutls test program, checking why..."
  3809. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3810. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. /* confdefs.h. */
  3813. _ACEOF
  3814. cat confdefs.h >>conftest.$ac_ext
  3815. cat >>conftest.$ac_ext <<_ACEOF
  3816. /* end confdefs.h. */
  3817. #include <stdio.h>
  3818. #include <stdlib.h>
  3819. #include <string.h>
  3820. #include <gnutls/gnutls.h>
  3821. int
  3822. main ()
  3823. {
  3824. return !!gnutls_check_version(NULL);
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. rm -f conftest.$ac_objext conftest$ac_exeext
  3830. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3831. (eval $ac_link) 2>conftest.er1
  3832. ac_status=$?
  3833. grep -v '^ *+' conftest.er1 >conftest.err
  3834. rm -f conftest.er1
  3835. cat conftest.err >&5
  3836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3837. (exit $ac_status); } &&
  3838. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3840. (eval $ac_try) 2>&5
  3841. ac_status=$?
  3842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3843. (exit $ac_status); }; } &&
  3844. { ac_try='test -s conftest$ac_exeext'
  3845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3846. (eval $ac_try) 2>&5
  3847. ac_status=$?
  3848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3849. (exit $ac_status); }; }; then
  3850. echo "*** The test program compiled, but did not run. This usually means"
  3851. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3852. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3853. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3854. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3855. echo "*** is required on your system"
  3856. echo "***"
  3857. echo "*** If you have an old version installed, it is best to remove it, although"
  3858. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3859. echo "***"
  3860. else
  3861. echo "$as_me: failed program was:" >&5
  3862. sed 's/^/| /' conftest.$ac_ext >&5
  3863. echo "*** The test program failed to compile or link. See the file config.log for the"
  3864. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3865. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3866. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3867. fi
  3868. rm -f conftest.err conftest.$ac_objext \
  3869. conftest$ac_exeext conftest.$ac_ext
  3870. CFLAGS="$ac_save_CFLAGS"
  3871. LIBS="$ac_save_LIBS"
  3872. fi
  3873. fi
  3874. LIBGNUTLS_CFLAGS=""
  3875. LIBGNUTLS_LIBS=""
  3876. :
  3877. fi
  3878. rm -f conf.libgnutlstest
  3879. if test "x$have_libgnutls" = "xyes"; then
  3880. cat >>confdefs.h <<\_ACEOF
  3881. #define HAVE_LIBGNUTLS 1
  3882. _ACEOF
  3883. fi
  3884. fi
  3885. if test "x$have_libgnutls" = "xyes"; then
  3886. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3887. if test "${with_libgcrypt_prefix+set}" = set; then
  3888. withval="$with_libgcrypt_prefix"
  3889. libgcrypt_config_prefix="$withval"
  3890. else
  3891. libgcrypt_config_prefix=""
  3892. fi;
  3893. if test x$libgcrypt_config_prefix != x ; then
  3894. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3895. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3896. fi
  3897. fi
  3898. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3899. set dummy libgcrypt-config; ac_word=$2
  3900. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3901. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3902. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3903. echo $ECHO_N "(cached) $ECHO_C" >&6
  3904. else
  3905. case $LIBGCRYPT_CONFIG in
  3906. [\\/]* | ?:[\\/]*)
  3907. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3908. ;;
  3909. *)
  3910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911. for as_dir in $PATH
  3912. do
  3913. IFS=$as_save_IFS
  3914. test -z "$as_dir" && as_dir=.
  3915. for ac_exec_ext in '' $ac_executable_extensions; do
  3916. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3917. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3919. break 2
  3920. fi
  3921. done
  3922. done
  3923. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3924. ;;
  3925. esac
  3926. fi
  3927. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3928. if test -n "$LIBGCRYPT_CONFIG"; then
  3929. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3930. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3931. else
  3932. echo "$as_me:$LINENO: result: no" >&5
  3933. echo "${ECHO_T}no" >&6
  3934. fi
  3935. tmp=1.2.2
  3936. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3937. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3938. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3939. else
  3940. req_libgcrypt_api=0
  3941. min_libgcrypt_version="$tmp"
  3942. fi
  3943. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3944. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3945. ok=no
  3946. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3947. req_major=`echo $min_libgcrypt_version | \
  3948. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3949. req_minor=`echo $min_libgcrypt_version | \
  3950. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3951. req_micro=`echo $min_libgcrypt_version | \
  3952. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3953. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3954. major=`echo $libgcrypt_config_version | \
  3955. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3956. minor=`echo $libgcrypt_config_version | \
  3957. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3958. micro=`echo $libgcrypt_config_version | \
  3959. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3960. if test "$major" -gt "$req_major"; then
  3961. ok=yes
  3962. else
  3963. if test "$major" -eq "$req_major"; then
  3964. if test "$minor" -gt "$req_minor"; then
  3965. ok=yes
  3966. else
  3967. if test "$minor" -eq "$req_minor"; then
  3968. if test "$micro" -ge "$req_micro"; then
  3969. ok=yes
  3970. fi
  3971. fi
  3972. fi
  3973. fi
  3974. fi
  3975. fi
  3976. if test $ok = yes; then
  3977. echo "$as_me:$LINENO: result: yes" >&5
  3978. echo "${ECHO_T}yes" >&6
  3979. else
  3980. echo "$as_me:$LINENO: result: no" >&5
  3981. echo "${ECHO_T}no" >&6
  3982. fi
  3983. if test $ok = yes; then
  3984. # If we have a recent libgcrypt, we should also check that the
  3985. # API is compatible
  3986. if test "$req_libgcrypt_api" -gt 0 ; then
  3987. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3988. if test "$tmp" -gt 0 ; then
  3989. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3990. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3991. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3992. echo "$as_me:$LINENO: result: okay" >&5
  3993. echo "${ECHO_T}okay" >&6
  3994. else
  3995. ok=no
  3996. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3997. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3998. fi
  3999. fi
  4000. fi
  4001. fi
  4002. if test $ok = yes; then
  4003. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4004. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4005. have_libgcrypt=yes
  4006. else
  4007. LIBGCRYPT_CFLAGS=""
  4008. LIBGCRYPT_LIBS=""
  4009. :
  4010. fi
  4011. if test "x$have_libgcrypt" = "xyes"; then
  4012. cat >>confdefs.h <<\_ACEOF
  4013. #define HAVE_LIBGCRYPT 1
  4014. _ACEOF
  4015. fi
  4016. fi
  4017. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4018. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4019. if test "${with_openssl_prefix+set}" = set; then
  4020. withval="$with_openssl_prefix"
  4021. openssl_prefix=$withval
  4022. else
  4023. openssl_prefix=""
  4024. fi;
  4025. if test "x$openssl_prefix" = "x"; then
  4026. openssl_prefix="/usr/local"
  4027. fi
  4028. openssl_prefix_lib=$openssl_prefix/lib
  4029. openssl_prefix_include=$openssl_prefix/include
  4030. LIBS_save=$LIBS
  4031. CPPFLAGS_save=$CPPFLAGS
  4032. LIBS="-L$openssl_prefix_lib $LIBS"
  4033. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4034. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4035. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4036. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4037. echo $ECHO_N "(cached) $ECHO_C" >&6
  4038. else
  4039. ac_check_lib_save_LIBS=$LIBS
  4040. LIBS="-lssl $LIBS"
  4041. cat >conftest.$ac_ext <<_ACEOF
  4042. /* confdefs.h. */
  4043. _ACEOF
  4044. cat confdefs.h >>conftest.$ac_ext
  4045. cat >>conftest.$ac_ext <<_ACEOF
  4046. /* end confdefs.h. */
  4047. /* Override any gcc2 internal prototype to avoid an error. */
  4048. #ifdef __cplusplus
  4049. extern "C"
  4050. #endif
  4051. /* We use char because int might match the return type of a gcc2
  4052. builtin and then its argument prototype would still apply. */
  4053. char SSL_library_init ();
  4054. int
  4055. main ()
  4056. {
  4057. SSL_library_init ();
  4058. ;
  4059. return 0;
  4060. }
  4061. _ACEOF
  4062. rm -f conftest.$ac_objext conftest$ac_exeext
  4063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4064. (eval $ac_link) 2>conftest.er1
  4065. ac_status=$?
  4066. grep -v '^ *+' conftest.er1 >conftest.err
  4067. rm -f conftest.er1
  4068. cat conftest.err >&5
  4069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4070. (exit $ac_status); } &&
  4071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4073. (eval $ac_try) 2>&5
  4074. ac_status=$?
  4075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4076. (exit $ac_status); }; } &&
  4077. { ac_try='test -s conftest$ac_exeext'
  4078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4079. (eval $ac_try) 2>&5
  4080. ac_status=$?
  4081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4082. (exit $ac_status); }; }; then
  4083. ac_cv_lib_ssl_SSL_library_init=yes
  4084. else
  4085. echo "$as_me: failed program was:" >&5
  4086. sed 's/^/| /' conftest.$ac_ext >&5
  4087. ac_cv_lib_ssl_SSL_library_init=no
  4088. fi
  4089. rm -f conftest.err conftest.$ac_objext \
  4090. conftest$ac_exeext conftest.$ac_ext
  4091. LIBS=$ac_check_lib_save_LIBS
  4092. fi
  4093. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4094. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4095. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4096. have_openssl=yes
  4097. fi
  4098. if test "x$have_openssl" = "xyes"; then
  4099. have_openssl=no
  4100. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4101. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4102. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4103. echo $ECHO_N "(cached) $ECHO_C" >&6
  4104. else
  4105. ac_check_lib_save_LIBS=$LIBS
  4106. LIBS="-lcrypto $LIBS"
  4107. cat >conftest.$ac_ext <<_ACEOF
  4108. /* confdefs.h. */
  4109. _ACEOF
  4110. cat confdefs.h >>conftest.$ac_ext
  4111. cat >>conftest.$ac_ext <<_ACEOF
  4112. /* end confdefs.h. */
  4113. int
  4114. main ()
  4115. {
  4116. main ();
  4117. ;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. rm -f conftest.$ac_objext conftest$ac_exeext
  4122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4123. (eval $ac_link) 2>conftest.er1
  4124. ac_status=$?
  4125. grep -v '^ *+' conftest.er1 >conftest.err
  4126. rm -f conftest.er1
  4127. cat conftest.err >&5
  4128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129. (exit $ac_status); } &&
  4130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4132. (eval $ac_try) 2>&5
  4133. ac_status=$?
  4134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); }; } &&
  4136. { ac_try='test -s conftest$ac_exeext'
  4137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4138. (eval $ac_try) 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; }; then
  4142. ac_cv_lib_crypto_main=yes
  4143. else
  4144. echo "$as_me: failed program was:" >&5
  4145. sed 's/^/| /' conftest.$ac_ext >&5
  4146. ac_cv_lib_crypto_main=no
  4147. fi
  4148. rm -f conftest.err conftest.$ac_objext \
  4149. conftest$ac_exeext conftest.$ac_ext
  4150. LIBS=$ac_check_lib_save_LIBS
  4151. fi
  4152. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4153. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4154. if test $ac_cv_lib_crypto_main = yes; then
  4155. have_openssl=yes
  4156. fi
  4157. if test "x$have_openssl" = "xyes"; then
  4158. cat >>confdefs.h <<\_ACEOF
  4159. #define HAVE_LIBSSL 1
  4160. _ACEOF
  4161. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4162. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4163. fi
  4164. fi
  4165. LIBS=$LIBS_save
  4166. CPPFLAGS=$CPPFLAGS_save
  4167. fi
  4168. if test "x$with_libares" = "xyes"; then
  4169. # Check whether --with-libares-prefix or --without-libares-prefix was given.
  4170. if test "${with_libares_prefix+set}" = set; then
  4171. withval="$with_libares_prefix"
  4172. libares_prefix=$withval
  4173. else
  4174. libares_prefix=""
  4175. fi;
  4176. if test "x$libares_prefix" = "x"; then
  4177. libares_prefix="/usr/local"
  4178. fi
  4179. libares_prefix_lib=$libares_prefix/lib
  4180. libares_prefix_include=$libares_prefix/include
  4181. LIBS_save=$LIBS
  4182. CPPFLAGS_save=$CPPFLAGS
  4183. LIBS="-L$libares_prefix_lib $LIBS"
  4184. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4185. echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4186. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6
  4187. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4188. echo $ECHO_N "(cached) $ECHO_C" >&6
  4189. else
  4190. ac_check_lib_save_LIBS=$LIBS
  4191. LIBS="-lares $LIBS"
  4192. cat >conftest.$ac_ext <<_ACEOF
  4193. /* confdefs.h. */
  4194. _ACEOF
  4195. cat confdefs.h >>conftest.$ac_ext
  4196. cat >>conftest.$ac_ext <<_ACEOF
  4197. /* end confdefs.h. */
  4198. /* Override any gcc2 internal prototype to avoid an error. */
  4199. #ifdef __cplusplus
  4200. extern "C"
  4201. #endif
  4202. /* We use char because int might match the return type of a gcc2
  4203. builtin and then its argument prototype would still apply. */
  4204. char ares_init ();
  4205. int
  4206. main ()
  4207. {
  4208. ares_init ();
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. rm -f conftest.$ac_objext conftest$ac_exeext
  4214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4215. (eval $ac_link) 2>conftest.er1
  4216. ac_status=$?
  4217. grep -v '^ *+' conftest.er1 >conftest.err
  4218. rm -f conftest.er1
  4219. cat conftest.err >&5
  4220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4221. (exit $ac_status); } &&
  4222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4224. (eval $ac_try) 2>&5
  4225. ac_status=$?
  4226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227. (exit $ac_status); }; } &&
  4228. { ac_try='test -s conftest$ac_exeext'
  4229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4230. (eval $ac_try) 2>&5
  4231. ac_status=$?
  4232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. (exit $ac_status); }; }; then
  4234. ac_cv_lib_ares_ares_init=yes
  4235. else
  4236. echo "$as_me: failed program was:" >&5
  4237. sed 's/^/| /' conftest.$ac_ext >&5
  4238. ac_cv_lib_ares_ares_init=no
  4239. fi
  4240. rm -f conftest.err conftest.$ac_objext \
  4241. conftest$ac_exeext conftest.$ac_ext
  4242. LIBS=$ac_check_lib_save_LIBS
  4243. fi
  4244. echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4245. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6
  4246. if test $ac_cv_lib_ares_ares_init = yes; then
  4247. have_libares=yes
  4248. fi
  4249. if test "x$have_libares" = "xyes"; then
  4250. cat >>confdefs.h <<\_ACEOF
  4251. #define HAVE_LIBARES 1
  4252. _ACEOF
  4253. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4254. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4255. fi
  4256. LIBS=$LIBS_save
  4257. CPPFLAGS=$CPPFLAGS_save
  4258. fi
  4259. # Define variables based on the result of the checks for libraries.
  4260. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4261. cat >>confdefs.h <<\_ACEOF
  4262. #define ENABLE_SSL 1
  4263. _ACEOF
  4264. fi
  4265. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4266. cat >>confdefs.h <<\_ACEOF
  4267. #define ENABLE_MESSAGE_DIGEST 1
  4268. _ACEOF
  4269. enable_message_digest=yes
  4270. fi
  4271. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4272. cat >>confdefs.h <<\_ACEOF
  4273. #define ENABLE_BITTORRENT 1
  4274. _ACEOF
  4275. if true; then
  4276. ENABLE_BITTORRENT_TRUE=
  4277. ENABLE_BITTORRENT_FALSE='#'
  4278. else
  4279. ENABLE_BITTORRENT_TRUE='#'
  4280. ENABLE_BITTORRENT_FALSE=
  4281. fi
  4282. else
  4283. if false; then
  4284. ENABLE_BITTORRENT_TRUE=
  4285. ENABLE_BITTORRENT_FALSE='#'
  4286. else
  4287. ENABLE_BITTORRENT_TRUE='#'
  4288. ENABLE_BITTORRENT_FALSE=
  4289. fi
  4290. fi
  4291. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4292. cat >>confdefs.h <<\_ACEOF
  4293. #define ENABLE_METALINK 1
  4294. _ACEOF
  4295. if true; then
  4296. ENABLE_METALINK_TRUE=
  4297. ENABLE_METALINK_FALSE='#'
  4298. else
  4299. ENABLE_METALINK_TRUE='#'
  4300. ENABLE_METALINK_FALSE=
  4301. fi
  4302. else
  4303. if false; then
  4304. ENABLE_METALINK_TRUE=
  4305. ENABLE_METALINK_FALSE='#'
  4306. else
  4307. ENABLE_METALINK_TRUE='#'
  4308. ENABLE_METALINK_FALSE=
  4309. fi
  4310. fi
  4311. if test "x$have_libares" = "xyes"; then
  4312. if true; then
  4313. HAVE_LIBARES_TRUE=
  4314. HAVE_LIBARES_FALSE='#'
  4315. else
  4316. HAVE_LIBARES_TRUE='#'
  4317. HAVE_LIBARES_FALSE=
  4318. fi
  4319. else
  4320. if false; then
  4321. HAVE_LIBARES_TRUE=
  4322. HAVE_LIBARES_FALSE='#'
  4323. else
  4324. HAVE_LIBARES_TRUE='#'
  4325. HAVE_LIBARES_FALSE=
  4326. fi
  4327. fi
  4328. # Checks for header files.
  4329. ac_ext=c
  4330. ac_cpp='$CPP $CPPFLAGS'
  4331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4334. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4335. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4336. # On Suns, sometimes $CPP names a directory.
  4337. if test -n "$CPP" && test -d "$CPP"; then
  4338. CPP=
  4339. fi
  4340. if test -z "$CPP"; then
  4341. if test "${ac_cv_prog_CPP+set}" = set; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. else
  4344. # Double quotes because CPP needs to be expanded
  4345. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4346. do
  4347. ac_preproc_ok=false
  4348. for ac_c_preproc_warn_flag in '' yes
  4349. do
  4350. # Use a header file that comes with gcc, so configuring glibc
  4351. # with a fresh cross-compiler works.
  4352. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4353. # <limits.h> exists even on freestanding compilers.
  4354. # On the NeXT, cc -E runs the code through the compiler's parser,
  4355. # not just through cpp. "Syntax error" is here to catch this case.
  4356. cat >conftest.$ac_ext <<_ACEOF
  4357. /* confdefs.h. */
  4358. _ACEOF
  4359. cat confdefs.h >>conftest.$ac_ext
  4360. cat >>conftest.$ac_ext <<_ACEOF
  4361. /* end confdefs.h. */
  4362. #ifdef __STDC__
  4363. # include <limits.h>
  4364. #else
  4365. # include <assert.h>
  4366. #endif
  4367. Syntax error
  4368. _ACEOF
  4369. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4370. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4371. ac_status=$?
  4372. grep -v '^ *+' conftest.er1 >conftest.err
  4373. rm -f conftest.er1
  4374. cat conftest.err >&5
  4375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4376. (exit $ac_status); } >/dev/null; then
  4377. if test -s conftest.err; then
  4378. ac_cpp_err=$ac_c_preproc_warn_flag
  4379. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4380. else
  4381. ac_cpp_err=
  4382. fi
  4383. else
  4384. ac_cpp_err=yes
  4385. fi
  4386. if test -z "$ac_cpp_err"; then
  4387. :
  4388. else
  4389. echo "$as_me: failed program was:" >&5
  4390. sed 's/^/| /' conftest.$ac_ext >&5
  4391. # Broken: fails on valid input.
  4392. continue
  4393. fi
  4394. rm -f conftest.err conftest.$ac_ext
  4395. # OK, works on sane cases. Now check whether non-existent headers
  4396. # can be detected and how.
  4397. cat >conftest.$ac_ext <<_ACEOF
  4398. /* confdefs.h. */
  4399. _ACEOF
  4400. cat confdefs.h >>conftest.$ac_ext
  4401. cat >>conftest.$ac_ext <<_ACEOF
  4402. /* end confdefs.h. */
  4403. #include <ac_nonexistent.h>
  4404. _ACEOF
  4405. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4406. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4407. ac_status=$?
  4408. grep -v '^ *+' conftest.er1 >conftest.err
  4409. rm -f conftest.er1
  4410. cat conftest.err >&5
  4411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4412. (exit $ac_status); } >/dev/null; then
  4413. if test -s conftest.err; then
  4414. ac_cpp_err=$ac_c_preproc_warn_flag
  4415. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4416. else
  4417. ac_cpp_err=
  4418. fi
  4419. else
  4420. ac_cpp_err=yes
  4421. fi
  4422. if test -z "$ac_cpp_err"; then
  4423. # Broken: success on invalid input.
  4424. continue
  4425. else
  4426. echo "$as_me: failed program was:" >&5
  4427. sed 's/^/| /' conftest.$ac_ext >&5
  4428. # Passes both tests.
  4429. ac_preproc_ok=:
  4430. break
  4431. fi
  4432. rm -f conftest.err conftest.$ac_ext
  4433. done
  4434. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4435. rm -f conftest.err conftest.$ac_ext
  4436. if $ac_preproc_ok; then
  4437. break
  4438. fi
  4439. done
  4440. ac_cv_prog_CPP=$CPP
  4441. fi
  4442. CPP=$ac_cv_prog_CPP
  4443. else
  4444. ac_cv_prog_CPP=$CPP
  4445. fi
  4446. echo "$as_me:$LINENO: result: $CPP" >&5
  4447. echo "${ECHO_T}$CPP" >&6
  4448. ac_preproc_ok=false
  4449. for ac_c_preproc_warn_flag in '' yes
  4450. do
  4451. # Use a header file that comes with gcc, so configuring glibc
  4452. # with a fresh cross-compiler works.
  4453. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4454. # <limits.h> exists even on freestanding compilers.
  4455. # On the NeXT, cc -E runs the code through the compiler's parser,
  4456. # not just through cpp. "Syntax error" is here to catch this case.
  4457. cat >conftest.$ac_ext <<_ACEOF
  4458. /* confdefs.h. */
  4459. _ACEOF
  4460. cat confdefs.h >>conftest.$ac_ext
  4461. cat >>conftest.$ac_ext <<_ACEOF
  4462. /* end confdefs.h. */
  4463. #ifdef __STDC__
  4464. # include <limits.h>
  4465. #else
  4466. # include <assert.h>
  4467. #endif
  4468. Syntax error
  4469. _ACEOF
  4470. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4471. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } >/dev/null; then
  4478. if test -s conftest.err; then
  4479. ac_cpp_err=$ac_c_preproc_warn_flag
  4480. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4481. else
  4482. ac_cpp_err=
  4483. fi
  4484. else
  4485. ac_cpp_err=yes
  4486. fi
  4487. if test -z "$ac_cpp_err"; then
  4488. :
  4489. else
  4490. echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. # Broken: fails on valid input.
  4493. continue
  4494. fi
  4495. rm -f conftest.err conftest.$ac_ext
  4496. # OK, works on sane cases. Now check whether non-existent headers
  4497. # can be detected and how.
  4498. cat >conftest.$ac_ext <<_ACEOF
  4499. /* confdefs.h. */
  4500. _ACEOF
  4501. cat confdefs.h >>conftest.$ac_ext
  4502. cat >>conftest.$ac_ext <<_ACEOF
  4503. /* end confdefs.h. */
  4504. #include <ac_nonexistent.h>
  4505. _ACEOF
  4506. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4507. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4508. ac_status=$?
  4509. grep -v '^ *+' conftest.er1 >conftest.err
  4510. rm -f conftest.er1
  4511. cat conftest.err >&5
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); } >/dev/null; then
  4514. if test -s conftest.err; then
  4515. ac_cpp_err=$ac_c_preproc_warn_flag
  4516. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4517. else
  4518. ac_cpp_err=
  4519. fi
  4520. else
  4521. ac_cpp_err=yes
  4522. fi
  4523. if test -z "$ac_cpp_err"; then
  4524. # Broken: success on invalid input.
  4525. continue
  4526. else
  4527. echo "$as_me: failed program was:" >&5
  4528. sed 's/^/| /' conftest.$ac_ext >&5
  4529. # Passes both tests.
  4530. ac_preproc_ok=:
  4531. break
  4532. fi
  4533. rm -f conftest.err conftest.$ac_ext
  4534. done
  4535. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4536. rm -f conftest.err conftest.$ac_ext
  4537. if $ac_preproc_ok; then
  4538. :
  4539. else
  4540. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4541. See \`config.log' for more details." >&5
  4542. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4543. See \`config.log' for more details." >&2;}
  4544. { (exit 1); exit 1; }; }
  4545. fi
  4546. ac_ext=c
  4547. ac_cpp='$CPP $CPPFLAGS'
  4548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4551. echo "$as_me:$LINENO: checking for egrep" >&5
  4552. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4553. if test "${ac_cv_prog_egrep+set}" = set; then
  4554. echo $ECHO_N "(cached) $ECHO_C" >&6
  4555. else
  4556. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4557. then ac_cv_prog_egrep='grep -E'
  4558. else ac_cv_prog_egrep='egrep'
  4559. fi
  4560. fi
  4561. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4562. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4563. EGREP=$ac_cv_prog_egrep
  4564. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4565. # for constant arguments. Useless!
  4566. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4567. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4568. if test "${ac_cv_working_alloca_h+set}" = set; then
  4569. echo $ECHO_N "(cached) $ECHO_C" >&6
  4570. else
  4571. cat >conftest.$ac_ext <<_ACEOF
  4572. /* confdefs.h. */
  4573. _ACEOF
  4574. cat confdefs.h >>conftest.$ac_ext
  4575. cat >>conftest.$ac_ext <<_ACEOF
  4576. /* end confdefs.h. */
  4577. #include <alloca.h>
  4578. int
  4579. main ()
  4580. {
  4581. char *p = (char *) alloca (2 * sizeof (int));
  4582. ;
  4583. return 0;
  4584. }
  4585. _ACEOF
  4586. rm -f conftest.$ac_objext conftest$ac_exeext
  4587. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4588. (eval $ac_link) 2>conftest.er1
  4589. ac_status=$?
  4590. grep -v '^ *+' conftest.er1 >conftest.err
  4591. rm -f conftest.er1
  4592. cat conftest.err >&5
  4593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); } &&
  4595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4597. (eval $ac_try) 2>&5
  4598. ac_status=$?
  4599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4600. (exit $ac_status); }; } &&
  4601. { ac_try='test -s conftest$ac_exeext'
  4602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4603. (eval $ac_try) 2>&5
  4604. ac_status=$?
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); }; }; then
  4607. ac_cv_working_alloca_h=yes
  4608. else
  4609. echo "$as_me: failed program was:" >&5
  4610. sed 's/^/| /' conftest.$ac_ext >&5
  4611. ac_cv_working_alloca_h=no
  4612. fi
  4613. rm -f conftest.err conftest.$ac_objext \
  4614. conftest$ac_exeext conftest.$ac_ext
  4615. fi
  4616. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4617. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4618. if test $ac_cv_working_alloca_h = yes; then
  4619. cat >>confdefs.h <<\_ACEOF
  4620. #define HAVE_ALLOCA_H 1
  4621. _ACEOF
  4622. fi
  4623. echo "$as_me:$LINENO: checking for alloca" >&5
  4624. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4625. if test "${ac_cv_func_alloca_works+set}" = set; then
  4626. echo $ECHO_N "(cached) $ECHO_C" >&6
  4627. else
  4628. cat >conftest.$ac_ext <<_ACEOF
  4629. /* confdefs.h. */
  4630. _ACEOF
  4631. cat confdefs.h >>conftest.$ac_ext
  4632. cat >>conftest.$ac_ext <<_ACEOF
  4633. /* end confdefs.h. */
  4634. #ifdef __GNUC__
  4635. # define alloca __builtin_alloca
  4636. #else
  4637. # ifdef _MSC_VER
  4638. # include <malloc.h>
  4639. # define alloca _alloca
  4640. # else
  4641. # if HAVE_ALLOCA_H
  4642. # include <alloca.h>
  4643. # else
  4644. # ifdef _AIX
  4645. #pragma alloca
  4646. # else
  4647. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4648. char *alloca ();
  4649. # endif
  4650. # endif
  4651. # endif
  4652. # endif
  4653. #endif
  4654. int
  4655. main ()
  4656. {
  4657. char *p = (char *) alloca (1);
  4658. ;
  4659. return 0;
  4660. }
  4661. _ACEOF
  4662. rm -f conftest.$ac_objext conftest$ac_exeext
  4663. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4664. (eval $ac_link) 2>conftest.er1
  4665. ac_status=$?
  4666. grep -v '^ *+' conftest.er1 >conftest.err
  4667. rm -f conftest.er1
  4668. cat conftest.err >&5
  4669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4670. (exit $ac_status); } &&
  4671. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4673. (eval $ac_try) 2>&5
  4674. ac_status=$?
  4675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4676. (exit $ac_status); }; } &&
  4677. { ac_try='test -s conftest$ac_exeext'
  4678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4679. (eval $ac_try) 2>&5
  4680. ac_status=$?
  4681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4682. (exit $ac_status); }; }; then
  4683. ac_cv_func_alloca_works=yes
  4684. else
  4685. echo "$as_me: failed program was:" >&5
  4686. sed 's/^/| /' conftest.$ac_ext >&5
  4687. ac_cv_func_alloca_works=no
  4688. fi
  4689. rm -f conftest.err conftest.$ac_objext \
  4690. conftest$ac_exeext conftest.$ac_ext
  4691. fi
  4692. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4693. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4694. if test $ac_cv_func_alloca_works = yes; then
  4695. cat >>confdefs.h <<\_ACEOF
  4696. #define HAVE_ALLOCA 1
  4697. _ACEOF
  4698. else
  4699. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4700. # that cause trouble. Some versions do not even contain alloca or
  4701. # contain a buggy version. If you still want to use their alloca,
  4702. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4703. ALLOCA=alloca.$ac_objext
  4704. cat >>confdefs.h <<\_ACEOF
  4705. #define C_ALLOCA 1
  4706. _ACEOF
  4707. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4708. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4709. if test "${ac_cv_os_cray+set}" = set; then
  4710. echo $ECHO_N "(cached) $ECHO_C" >&6
  4711. else
  4712. cat >conftest.$ac_ext <<_ACEOF
  4713. /* confdefs.h. */
  4714. _ACEOF
  4715. cat confdefs.h >>conftest.$ac_ext
  4716. cat >>conftest.$ac_ext <<_ACEOF
  4717. /* end confdefs.h. */
  4718. #if defined(CRAY) && ! defined(CRAY2)
  4719. webecray
  4720. #else
  4721. wenotbecray
  4722. #endif
  4723. _ACEOF
  4724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4725. $EGREP "webecray" >/dev/null 2>&1; then
  4726. ac_cv_os_cray=yes
  4727. else
  4728. ac_cv_os_cray=no
  4729. fi
  4730. rm -f conftest*
  4731. fi
  4732. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4733. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4734. if test $ac_cv_os_cray = yes; then
  4735. for ac_func in _getb67 GETB67 getb67; do
  4736. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4737. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4738. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4739. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4740. echo $ECHO_N "(cached) $ECHO_C" >&6
  4741. else
  4742. cat >conftest.$ac_ext <<_ACEOF
  4743. /* confdefs.h. */
  4744. _ACEOF
  4745. cat confdefs.h >>conftest.$ac_ext
  4746. cat >>conftest.$ac_ext <<_ACEOF
  4747. /* end confdefs.h. */
  4748. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4749. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4750. #define $ac_func innocuous_$ac_func
  4751. /* System header to define __stub macros and hopefully few prototypes,
  4752. which can conflict with char $ac_func (); below.
  4753. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4754. <limits.h> exists even on freestanding compilers. */
  4755. #ifdef __STDC__
  4756. # include <limits.h>
  4757. #else
  4758. # include <assert.h>
  4759. #endif
  4760. #undef $ac_func
  4761. /* Override any gcc2 internal prototype to avoid an error. */
  4762. #ifdef __cplusplus
  4763. extern "C"
  4764. {
  4765. #endif
  4766. /* We use char because int might match the return type of a gcc2
  4767. builtin and then its argument prototype would still apply. */
  4768. char $ac_func ();
  4769. /* The GNU C library defines this for functions which it implements
  4770. to always fail with ENOSYS. Some functions are actually named
  4771. something starting with __ and the normal name is an alias. */
  4772. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4773. choke me
  4774. #else
  4775. char (*f) () = $ac_func;
  4776. #endif
  4777. #ifdef __cplusplus
  4778. }
  4779. #endif
  4780. int
  4781. main ()
  4782. {
  4783. return f != $ac_func;
  4784. ;
  4785. return 0;
  4786. }
  4787. _ACEOF
  4788. rm -f conftest.$ac_objext conftest$ac_exeext
  4789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4790. (eval $ac_link) 2>conftest.er1
  4791. ac_status=$?
  4792. grep -v '^ *+' conftest.er1 >conftest.err
  4793. rm -f conftest.er1
  4794. cat conftest.err >&5
  4795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4796. (exit $ac_status); } &&
  4797. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4799. (eval $ac_try) 2>&5
  4800. ac_status=$?
  4801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4802. (exit $ac_status); }; } &&
  4803. { ac_try='test -s conftest$ac_exeext'
  4804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4805. (eval $ac_try) 2>&5
  4806. ac_status=$?
  4807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808. (exit $ac_status); }; }; then
  4809. eval "$as_ac_var=yes"
  4810. else
  4811. echo "$as_me: failed program was:" >&5
  4812. sed 's/^/| /' conftest.$ac_ext >&5
  4813. eval "$as_ac_var=no"
  4814. fi
  4815. rm -f conftest.err conftest.$ac_objext \
  4816. conftest$ac_exeext conftest.$ac_ext
  4817. fi
  4818. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4819. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4820. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4821. cat >>confdefs.h <<_ACEOF
  4822. #define CRAY_STACKSEG_END $ac_func
  4823. _ACEOF
  4824. break
  4825. fi
  4826. done
  4827. fi
  4828. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4829. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4830. if test "${ac_cv_c_stack_direction+set}" = set; then
  4831. echo $ECHO_N "(cached) $ECHO_C" >&6
  4832. else
  4833. if test "$cross_compiling" = yes; then
  4834. ac_cv_c_stack_direction=0
  4835. else
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. int
  4843. find_stack_direction ()
  4844. {
  4845. static char *addr = 0;
  4846. auto char dummy;
  4847. if (addr == 0)
  4848. {
  4849. addr = &dummy;
  4850. return find_stack_direction ();
  4851. }
  4852. else
  4853. return (&dummy > addr) ? 1 : -1;
  4854. }
  4855. int
  4856. main ()
  4857. {
  4858. exit (find_stack_direction () < 0);
  4859. }
  4860. _ACEOF
  4861. rm -f conftest$ac_exeext
  4862. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4863. (eval $ac_link) 2>&5
  4864. ac_status=$?
  4865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4866. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4868. (eval $ac_try) 2>&5
  4869. ac_status=$?
  4870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871. (exit $ac_status); }; }; then
  4872. ac_cv_c_stack_direction=1
  4873. else
  4874. echo "$as_me: program exited with status $ac_status" >&5
  4875. echo "$as_me: failed program was:" >&5
  4876. sed 's/^/| /' conftest.$ac_ext >&5
  4877. ( exit $ac_status )
  4878. ac_cv_c_stack_direction=-1
  4879. fi
  4880. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4881. fi
  4882. fi
  4883. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4884. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4885. cat >>confdefs.h <<_ACEOF
  4886. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4887. _ACEOF
  4888. fi
  4889. #AC_HEADER_STDC
  4890. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4891. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4892. if test "${ac_cv_header_stdc+set}" = set; then
  4893. echo $ECHO_N "(cached) $ECHO_C" >&6
  4894. else
  4895. cat >conftest.$ac_ext <<_ACEOF
  4896. /* confdefs.h. */
  4897. _ACEOF
  4898. cat confdefs.h >>conftest.$ac_ext
  4899. cat >>conftest.$ac_ext <<_ACEOF
  4900. /* end confdefs.h. */
  4901. #include <stdlib.h>
  4902. #include <stdarg.h>
  4903. #include <string.h>
  4904. #include <float.h>
  4905. int
  4906. main ()
  4907. {
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. rm -f conftest.$ac_objext
  4913. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4914. (eval $ac_compile) 2>conftest.er1
  4915. ac_status=$?
  4916. grep -v '^ *+' conftest.er1 >conftest.err
  4917. rm -f conftest.er1
  4918. cat conftest.err >&5
  4919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4920. (exit $ac_status); } &&
  4921. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4923. (eval $ac_try) 2>&5
  4924. ac_status=$?
  4925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4926. (exit $ac_status); }; } &&
  4927. { ac_try='test -s conftest.$ac_objext'
  4928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4929. (eval $ac_try) 2>&5
  4930. ac_status=$?
  4931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4932. (exit $ac_status); }; }; then
  4933. ac_cv_header_stdc=yes
  4934. else
  4935. echo "$as_me: failed program was:" >&5
  4936. sed 's/^/| /' conftest.$ac_ext >&5
  4937. ac_cv_header_stdc=no
  4938. fi
  4939. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4940. if test $ac_cv_header_stdc = yes; then
  4941. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4942. cat >conftest.$ac_ext <<_ACEOF
  4943. /* confdefs.h. */
  4944. _ACEOF
  4945. cat confdefs.h >>conftest.$ac_ext
  4946. cat >>conftest.$ac_ext <<_ACEOF
  4947. /* end confdefs.h. */
  4948. #include <string.h>
  4949. _ACEOF
  4950. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4951. $EGREP "memchr" >/dev/null 2>&1; then
  4952. :
  4953. else
  4954. ac_cv_header_stdc=no
  4955. fi
  4956. rm -f conftest*
  4957. fi
  4958. if test $ac_cv_header_stdc = yes; then
  4959. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4960. cat >conftest.$ac_ext <<_ACEOF
  4961. /* confdefs.h. */
  4962. _ACEOF
  4963. cat confdefs.h >>conftest.$ac_ext
  4964. cat >>conftest.$ac_ext <<_ACEOF
  4965. /* end confdefs.h. */
  4966. #include <stdlib.h>
  4967. _ACEOF
  4968. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4969. $EGREP "free" >/dev/null 2>&1; then
  4970. :
  4971. else
  4972. ac_cv_header_stdc=no
  4973. fi
  4974. rm -f conftest*
  4975. fi
  4976. if test $ac_cv_header_stdc = yes; then
  4977. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4978. if test "$cross_compiling" = yes; then
  4979. :
  4980. else
  4981. cat >conftest.$ac_ext <<_ACEOF
  4982. /* confdefs.h. */
  4983. _ACEOF
  4984. cat confdefs.h >>conftest.$ac_ext
  4985. cat >>conftest.$ac_ext <<_ACEOF
  4986. /* end confdefs.h. */
  4987. #include <ctype.h>
  4988. #if ((' ' & 0x0FF) == 0x020)
  4989. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4990. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4991. #else
  4992. # define ISLOWER(c) \
  4993. (('a' <= (c) && (c) <= 'i') \
  4994. || ('j' <= (c) && (c) <= 'r') \
  4995. || ('s' <= (c) && (c) <= 'z'))
  4996. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4997. #endif
  4998. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4999. int
  5000. main ()
  5001. {
  5002. int i;
  5003. for (i = 0; i < 256; i++)
  5004. if (XOR (islower (i), ISLOWER (i))
  5005. || toupper (i) != TOUPPER (i))
  5006. exit(2);
  5007. exit (0);
  5008. }
  5009. _ACEOF
  5010. rm -f conftest$ac_exeext
  5011. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5012. (eval $ac_link) 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5017. (eval $ac_try) 2>&5
  5018. ac_status=$?
  5019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5020. (exit $ac_status); }; }; then
  5021. :
  5022. else
  5023. echo "$as_me: program exited with status $ac_status" >&5
  5024. echo "$as_me: failed program was:" >&5
  5025. sed 's/^/| /' conftest.$ac_ext >&5
  5026. ( exit $ac_status )
  5027. ac_cv_header_stdc=no
  5028. fi
  5029. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5030. fi
  5031. fi
  5032. fi
  5033. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5034. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5035. if test $ac_cv_header_stdc = yes; then
  5036. cat >>confdefs.h <<\_ACEOF
  5037. #define STDC_HEADERS 1
  5038. _ACEOF
  5039. fi
  5040. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5041. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5042. inttypes.h stdint.h unistd.h
  5043. do
  5044. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5045. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5046. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5047. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5048. echo $ECHO_N "(cached) $ECHO_C" >&6
  5049. else
  5050. cat >conftest.$ac_ext <<_ACEOF
  5051. /* confdefs.h. */
  5052. _ACEOF
  5053. cat confdefs.h >>conftest.$ac_ext
  5054. cat >>conftest.$ac_ext <<_ACEOF
  5055. /* end confdefs.h. */
  5056. $ac_includes_default
  5057. #include <$ac_header>
  5058. _ACEOF
  5059. rm -f conftest.$ac_objext
  5060. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5061. (eval $ac_compile) 2>conftest.er1
  5062. ac_status=$?
  5063. grep -v '^ *+' conftest.er1 >conftest.err
  5064. rm -f conftest.er1
  5065. cat conftest.err >&5
  5066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5067. (exit $ac_status); } &&
  5068. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5070. (eval $ac_try) 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073. (exit $ac_status); }; } &&
  5074. { ac_try='test -s conftest.$ac_objext'
  5075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5076. (eval $ac_try) 2>&5
  5077. ac_status=$?
  5078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5079. (exit $ac_status); }; }; then
  5080. eval "$as_ac_Header=yes"
  5081. else
  5082. echo "$as_me: failed program was:" >&5
  5083. sed 's/^/| /' conftest.$ac_ext >&5
  5084. eval "$as_ac_Header=no"
  5085. fi
  5086. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5087. fi
  5088. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5089. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5090. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5091. cat >>confdefs.h <<_ACEOF
  5092. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5093. _ACEOF
  5094. fi
  5095. done
  5096. 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
  5097. do
  5098. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5099. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5100. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5101. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5102. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5103. echo $ECHO_N "(cached) $ECHO_C" >&6
  5104. fi
  5105. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5106. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5107. else
  5108. # Is the header compilable?
  5109. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5110. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5111. cat >conftest.$ac_ext <<_ACEOF
  5112. /* confdefs.h. */
  5113. _ACEOF
  5114. cat confdefs.h >>conftest.$ac_ext
  5115. cat >>conftest.$ac_ext <<_ACEOF
  5116. /* end confdefs.h. */
  5117. $ac_includes_default
  5118. #include <$ac_header>
  5119. _ACEOF
  5120. rm -f conftest.$ac_objext
  5121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5122. (eval $ac_compile) 2>conftest.er1
  5123. ac_status=$?
  5124. grep -v '^ *+' conftest.er1 >conftest.err
  5125. rm -f conftest.er1
  5126. cat conftest.err >&5
  5127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5128. (exit $ac_status); } &&
  5129. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5131. (eval $ac_try) 2>&5
  5132. ac_status=$?
  5133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134. (exit $ac_status); }; } &&
  5135. { ac_try='test -s conftest.$ac_objext'
  5136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5137. (eval $ac_try) 2>&5
  5138. ac_status=$?
  5139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5140. (exit $ac_status); }; }; then
  5141. ac_header_compiler=yes
  5142. else
  5143. echo "$as_me: failed program was:" >&5
  5144. sed 's/^/| /' conftest.$ac_ext >&5
  5145. ac_header_compiler=no
  5146. fi
  5147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5148. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5149. echo "${ECHO_T}$ac_header_compiler" >&6
  5150. # Is the header present?
  5151. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5152. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5153. cat >conftest.$ac_ext <<_ACEOF
  5154. /* confdefs.h. */
  5155. _ACEOF
  5156. cat confdefs.h >>conftest.$ac_ext
  5157. cat >>conftest.$ac_ext <<_ACEOF
  5158. /* end confdefs.h. */
  5159. #include <$ac_header>
  5160. _ACEOF
  5161. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5162. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5163. ac_status=$?
  5164. grep -v '^ *+' conftest.er1 >conftest.err
  5165. rm -f conftest.er1
  5166. cat conftest.err >&5
  5167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. (exit $ac_status); } >/dev/null; then
  5169. if test -s conftest.err; then
  5170. ac_cpp_err=$ac_c_preproc_warn_flag
  5171. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5172. else
  5173. ac_cpp_err=
  5174. fi
  5175. else
  5176. ac_cpp_err=yes
  5177. fi
  5178. if test -z "$ac_cpp_err"; then
  5179. ac_header_preproc=yes
  5180. else
  5181. echo "$as_me: failed program was:" >&5
  5182. sed 's/^/| /' conftest.$ac_ext >&5
  5183. ac_header_preproc=no
  5184. fi
  5185. rm -f conftest.err conftest.$ac_ext
  5186. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5187. echo "${ECHO_T}$ac_header_preproc" >&6
  5188. # So? What about this header?
  5189. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5190. yes:no: )
  5191. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5192. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5193. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5194. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5195. ac_header_preproc=yes
  5196. ;;
  5197. no:yes:* )
  5198. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5199. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5200. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5201. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5202. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5203. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5204. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5205. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5206. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5207. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5208. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5209. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5210. (
  5211. cat <<\_ASBOX
  5212. ## ----------------------------------- ##
  5213. ## Report this to tujikawa@rednoah.com ##
  5214. ## ----------------------------------- ##
  5215. _ASBOX
  5216. ) |
  5217. sed "s/^/$as_me: WARNING: /" >&2
  5218. ;;
  5219. esac
  5220. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5221. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5222. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5223. echo $ECHO_N "(cached) $ECHO_C" >&6
  5224. else
  5225. eval "$as_ac_Header=\$ac_header_preproc"
  5226. fi
  5227. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5228. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5229. fi
  5230. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5231. cat >>confdefs.h <<_ACEOF
  5232. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5233. _ACEOF
  5234. fi
  5235. done
  5236. # Checks for typedefs, structures, and compiler characteristics.
  5237. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5238. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5239. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5240. echo $ECHO_N "(cached) $ECHO_C" >&6
  5241. else
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. #include <stdbool.h>
  5249. #ifndef bool
  5250. # error bool is not defined
  5251. #endif
  5252. #ifndef false
  5253. # error false is not defined
  5254. #endif
  5255. #if false
  5256. # error false is not 0
  5257. #endif
  5258. #ifndef true
  5259. # error true is not defined
  5260. #endif
  5261. #if true != 1
  5262. # error true is not 1
  5263. #endif
  5264. #ifndef __bool_true_false_are_defined
  5265. # error __bool_true_false_are_defined is not defined
  5266. #endif
  5267. struct s { _Bool s: 1; _Bool t; } s;
  5268. char a[true == 1 ? 1 : -1];
  5269. char b[false == 0 ? 1 : -1];
  5270. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5271. char d[(bool) -0.5 == true ? 1 : -1];
  5272. bool e = &s;
  5273. char f[(_Bool) -0.0 == false ? 1 : -1];
  5274. char g[true];
  5275. char h[sizeof (_Bool)];
  5276. char i[sizeof s.t];
  5277. int
  5278. main ()
  5279. {
  5280. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5281. ;
  5282. return 0;
  5283. }
  5284. _ACEOF
  5285. rm -f conftest.$ac_objext
  5286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5287. (eval $ac_compile) 2>conftest.er1
  5288. ac_status=$?
  5289. grep -v '^ *+' conftest.er1 >conftest.err
  5290. rm -f conftest.er1
  5291. cat conftest.err >&5
  5292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5293. (exit $ac_status); } &&
  5294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5296. (eval $ac_try) 2>&5
  5297. ac_status=$?
  5298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); }; } &&
  5300. { ac_try='test -s conftest.$ac_objext'
  5301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5302. (eval $ac_try) 2>&5
  5303. ac_status=$?
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); }; }; then
  5306. ac_cv_header_stdbool_h=yes
  5307. else
  5308. echo "$as_me: failed program was:" >&5
  5309. sed 's/^/| /' conftest.$ac_ext >&5
  5310. ac_cv_header_stdbool_h=no
  5311. fi
  5312. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5313. fi
  5314. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5315. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5316. echo "$as_me:$LINENO: checking for _Bool" >&5
  5317. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5318. if test "${ac_cv_type__Bool+set}" = set; then
  5319. echo $ECHO_N "(cached) $ECHO_C" >&6
  5320. else
  5321. cat >conftest.$ac_ext <<_ACEOF
  5322. /* confdefs.h. */
  5323. _ACEOF
  5324. cat confdefs.h >>conftest.$ac_ext
  5325. cat >>conftest.$ac_ext <<_ACEOF
  5326. /* end confdefs.h. */
  5327. $ac_includes_default
  5328. int
  5329. main ()
  5330. {
  5331. if ((_Bool *) 0)
  5332. return 0;
  5333. if (sizeof (_Bool))
  5334. return 0;
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. rm -f conftest.$ac_objext
  5340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5341. (eval $ac_compile) 2>conftest.er1
  5342. ac_status=$?
  5343. grep -v '^ *+' conftest.er1 >conftest.err
  5344. rm -f conftest.er1
  5345. cat conftest.err >&5
  5346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5347. (exit $ac_status); } &&
  5348. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5350. (eval $ac_try) 2>&5
  5351. ac_status=$?
  5352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5353. (exit $ac_status); }; } &&
  5354. { ac_try='test -s conftest.$ac_objext'
  5355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5356. (eval $ac_try) 2>&5
  5357. ac_status=$?
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); }; }; then
  5360. ac_cv_type__Bool=yes
  5361. else
  5362. echo "$as_me: failed program was:" >&5
  5363. sed 's/^/| /' conftest.$ac_ext >&5
  5364. ac_cv_type__Bool=no
  5365. fi
  5366. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5367. fi
  5368. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5369. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5370. if test $ac_cv_type__Bool = yes; then
  5371. cat >>confdefs.h <<_ACEOF
  5372. #define HAVE__BOOL 1
  5373. _ACEOF
  5374. fi
  5375. if test $ac_cv_header_stdbool_h = yes; then
  5376. cat >>confdefs.h <<\_ACEOF
  5377. #define HAVE_STDBOOL_H 1
  5378. _ACEOF
  5379. fi
  5380. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5381. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5382. if test "${ac_cv_c_const+set}" = set; then
  5383. echo $ECHO_N "(cached) $ECHO_C" >&6
  5384. else
  5385. cat >conftest.$ac_ext <<_ACEOF
  5386. /* confdefs.h. */
  5387. _ACEOF
  5388. cat confdefs.h >>conftest.$ac_ext
  5389. cat >>conftest.$ac_ext <<_ACEOF
  5390. /* end confdefs.h. */
  5391. int
  5392. main ()
  5393. {
  5394. /* FIXME: Include the comments suggested by Paul. */
  5395. #ifndef __cplusplus
  5396. /* Ultrix mips cc rejects this. */
  5397. typedef int charset[2];
  5398. const charset x;
  5399. /* SunOS 4.1.1 cc rejects this. */
  5400. char const *const *ccp;
  5401. char **p;
  5402. /* NEC SVR4.0.2 mips cc rejects this. */
  5403. struct point {int x, y;};
  5404. static struct point const zero = {0,0};
  5405. /* AIX XL C 1.02.0.0 rejects this.
  5406. It does not let you subtract one const X* pointer from another in
  5407. an arm of an if-expression whose if-part is not a constant
  5408. expression */
  5409. const char *g = "string";
  5410. ccp = &g + (g ? g-g : 0);
  5411. /* HPUX 7.0 cc rejects these. */
  5412. ++ccp;
  5413. p = (char**) ccp;
  5414. ccp = (char const *const *) p;
  5415. { /* SCO 3.2v4 cc rejects this. */
  5416. char *t;
  5417. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5418. *t++ = 0;
  5419. }
  5420. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5421. int x[] = {25, 17};
  5422. const int *foo = &x[0];
  5423. ++foo;
  5424. }
  5425. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5426. typedef const int *iptr;
  5427. iptr p = 0;
  5428. ++p;
  5429. }
  5430. { /* AIX XL C 1.02.0.0 rejects this saying
  5431. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5432. struct s { int j; const int *ap[3]; };
  5433. struct s *b; b->j = 5;
  5434. }
  5435. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5436. const int foo = 10;
  5437. }
  5438. #endif
  5439. ;
  5440. return 0;
  5441. }
  5442. _ACEOF
  5443. rm -f conftest.$ac_objext
  5444. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5445. (eval $ac_compile) 2>conftest.er1
  5446. ac_status=$?
  5447. grep -v '^ *+' conftest.er1 >conftest.err
  5448. rm -f conftest.er1
  5449. cat conftest.err >&5
  5450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5451. (exit $ac_status); } &&
  5452. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5454. (eval $ac_try) 2>&5
  5455. ac_status=$?
  5456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. (exit $ac_status); }; } &&
  5458. { ac_try='test -s conftest.$ac_objext'
  5459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5460. (eval $ac_try) 2>&5
  5461. ac_status=$?
  5462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. (exit $ac_status); }; }; then
  5464. ac_cv_c_const=yes
  5465. else
  5466. echo "$as_me: failed program was:" >&5
  5467. sed 's/^/| /' conftest.$ac_ext >&5
  5468. ac_cv_c_const=no
  5469. fi
  5470. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5471. fi
  5472. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5473. echo "${ECHO_T}$ac_cv_c_const" >&6
  5474. if test $ac_cv_c_const = no; then
  5475. cat >>confdefs.h <<\_ACEOF
  5476. #define const
  5477. _ACEOF
  5478. fi
  5479. echo "$as_me:$LINENO: checking for inline" >&5
  5480. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5481. if test "${ac_cv_c_inline+set}" = set; then
  5482. echo $ECHO_N "(cached) $ECHO_C" >&6
  5483. else
  5484. ac_cv_c_inline=no
  5485. for ac_kw in inline __inline__ __inline; do
  5486. cat >conftest.$ac_ext <<_ACEOF
  5487. /* confdefs.h. */
  5488. _ACEOF
  5489. cat confdefs.h >>conftest.$ac_ext
  5490. cat >>conftest.$ac_ext <<_ACEOF
  5491. /* end confdefs.h. */
  5492. #ifndef __cplusplus
  5493. typedef int foo_t;
  5494. static $ac_kw foo_t static_foo () {return 0; }
  5495. $ac_kw foo_t foo () {return 0; }
  5496. #endif
  5497. _ACEOF
  5498. rm -f conftest.$ac_objext
  5499. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5500. (eval $ac_compile) 2>conftest.er1
  5501. ac_status=$?
  5502. grep -v '^ *+' conftest.er1 >conftest.err
  5503. rm -f conftest.er1
  5504. cat conftest.err >&5
  5505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5506. (exit $ac_status); } &&
  5507. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5509. (eval $ac_try) 2>&5
  5510. ac_status=$?
  5511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5512. (exit $ac_status); }; } &&
  5513. { ac_try='test -s conftest.$ac_objext'
  5514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5515. (eval $ac_try) 2>&5
  5516. ac_status=$?
  5517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5518. (exit $ac_status); }; }; then
  5519. ac_cv_c_inline=$ac_kw; break
  5520. else
  5521. echo "$as_me: failed program was:" >&5
  5522. sed 's/^/| /' conftest.$ac_ext >&5
  5523. fi
  5524. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5525. done
  5526. fi
  5527. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5528. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5529. case $ac_cv_c_inline in
  5530. inline | yes) ;;
  5531. *)
  5532. case $ac_cv_c_inline in
  5533. no) ac_val=;;
  5534. *) ac_val=$ac_cv_c_inline;;
  5535. esac
  5536. cat >>confdefs.h <<_ACEOF
  5537. #ifndef __cplusplus
  5538. #define inline $ac_val
  5539. #endif
  5540. _ACEOF
  5541. ;;
  5542. esac
  5543. echo "$as_me:$LINENO: checking for size_t" >&5
  5544. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5545. if test "${ac_cv_type_size_t+set}" = set; then
  5546. echo $ECHO_N "(cached) $ECHO_C" >&6
  5547. else
  5548. cat >conftest.$ac_ext <<_ACEOF
  5549. /* confdefs.h. */
  5550. _ACEOF
  5551. cat confdefs.h >>conftest.$ac_ext
  5552. cat >>conftest.$ac_ext <<_ACEOF
  5553. /* end confdefs.h. */
  5554. $ac_includes_default
  5555. int
  5556. main ()
  5557. {
  5558. if ((size_t *) 0)
  5559. return 0;
  5560. if (sizeof (size_t))
  5561. return 0;
  5562. ;
  5563. return 0;
  5564. }
  5565. _ACEOF
  5566. rm -f conftest.$ac_objext
  5567. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5568. (eval $ac_compile) 2>conftest.er1
  5569. ac_status=$?
  5570. grep -v '^ *+' conftest.er1 >conftest.err
  5571. rm -f conftest.er1
  5572. cat conftest.err >&5
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); } &&
  5575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5577. (eval $ac_try) 2>&5
  5578. ac_status=$?
  5579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580. (exit $ac_status); }; } &&
  5581. { ac_try='test -s conftest.$ac_objext'
  5582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5583. (eval $ac_try) 2>&5
  5584. ac_status=$?
  5585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5586. (exit $ac_status); }; }; then
  5587. ac_cv_type_size_t=yes
  5588. else
  5589. echo "$as_me: failed program was:" >&5
  5590. sed 's/^/| /' conftest.$ac_ext >&5
  5591. ac_cv_type_size_t=no
  5592. fi
  5593. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5594. fi
  5595. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5596. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5597. if test $ac_cv_type_size_t = yes; then
  5598. :
  5599. else
  5600. cat >>confdefs.h <<_ACEOF
  5601. #define size_t unsigned
  5602. _ACEOF
  5603. fi
  5604. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5605. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5606. if test "${ac_cv_header_time+set}" = set; then
  5607. echo $ECHO_N "(cached) $ECHO_C" >&6
  5608. else
  5609. cat >conftest.$ac_ext <<_ACEOF
  5610. /* confdefs.h. */
  5611. _ACEOF
  5612. cat confdefs.h >>conftest.$ac_ext
  5613. cat >>conftest.$ac_ext <<_ACEOF
  5614. /* end confdefs.h. */
  5615. #include <sys/types.h>
  5616. #include <sys/time.h>
  5617. #include <time.h>
  5618. int
  5619. main ()
  5620. {
  5621. if ((struct tm *) 0)
  5622. return 0;
  5623. ;
  5624. return 0;
  5625. }
  5626. _ACEOF
  5627. rm -f conftest.$ac_objext
  5628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5629. (eval $ac_compile) 2>conftest.er1
  5630. ac_status=$?
  5631. grep -v '^ *+' conftest.er1 >conftest.err
  5632. rm -f conftest.er1
  5633. cat conftest.err >&5
  5634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); } &&
  5636. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5638. (eval $ac_try) 2>&5
  5639. ac_status=$?
  5640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5641. (exit $ac_status); }; } &&
  5642. { ac_try='test -s conftest.$ac_objext'
  5643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5644. (eval $ac_try) 2>&5
  5645. ac_status=$?
  5646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. (exit $ac_status); }; }; then
  5648. ac_cv_header_time=yes
  5649. else
  5650. echo "$as_me: failed program was:" >&5
  5651. sed 's/^/| /' conftest.$ac_ext >&5
  5652. ac_cv_header_time=no
  5653. fi
  5654. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5655. fi
  5656. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5657. echo "${ECHO_T}$ac_cv_header_time" >&6
  5658. if test $ac_cv_header_time = yes; then
  5659. cat >>confdefs.h <<\_ACEOF
  5660. #define TIME_WITH_SYS_TIME 1
  5661. _ACEOF
  5662. fi
  5663. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5664. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5665. if test "${ac_cv_struct_tm+set}" = set; then
  5666. echo $ECHO_N "(cached) $ECHO_C" >&6
  5667. else
  5668. cat >conftest.$ac_ext <<_ACEOF
  5669. /* confdefs.h. */
  5670. _ACEOF
  5671. cat confdefs.h >>conftest.$ac_ext
  5672. cat >>conftest.$ac_ext <<_ACEOF
  5673. /* end confdefs.h. */
  5674. #include <sys/types.h>
  5675. #include <time.h>
  5676. int
  5677. main ()
  5678. {
  5679. struct tm *tp; tp->tm_sec;
  5680. ;
  5681. return 0;
  5682. }
  5683. _ACEOF
  5684. rm -f conftest.$ac_objext
  5685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5686. (eval $ac_compile) 2>conftest.er1
  5687. ac_status=$?
  5688. grep -v '^ *+' conftest.er1 >conftest.err
  5689. rm -f conftest.er1
  5690. cat conftest.err >&5
  5691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5692. (exit $ac_status); } &&
  5693. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5695. (eval $ac_try) 2>&5
  5696. ac_status=$?
  5697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. (exit $ac_status); }; } &&
  5699. { ac_try='test -s conftest.$ac_objext'
  5700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5701. (eval $ac_try) 2>&5
  5702. ac_status=$?
  5703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5704. (exit $ac_status); }; }; then
  5705. ac_cv_struct_tm=time.h
  5706. else
  5707. echo "$as_me: failed program was:" >&5
  5708. sed 's/^/| /' conftest.$ac_ext >&5
  5709. ac_cv_struct_tm=sys/time.h
  5710. fi
  5711. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5712. fi
  5713. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5714. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5715. if test $ac_cv_struct_tm = sys/time.h; then
  5716. cat >>confdefs.h <<\_ACEOF
  5717. #define TM_IN_SYS_TIME 1
  5718. _ACEOF
  5719. fi
  5720. echo "$as_me:$LINENO: checking for working volatile" >&5
  5721. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5722. if test "${ac_cv_c_volatile+set}" = set; then
  5723. echo $ECHO_N "(cached) $ECHO_C" >&6
  5724. else
  5725. cat >conftest.$ac_ext <<_ACEOF
  5726. /* confdefs.h. */
  5727. _ACEOF
  5728. cat confdefs.h >>conftest.$ac_ext
  5729. cat >>conftest.$ac_ext <<_ACEOF
  5730. /* end confdefs.h. */
  5731. int
  5732. main ()
  5733. {
  5734. volatile int x;
  5735. int * volatile y;
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. rm -f conftest.$ac_objext
  5741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5742. (eval $ac_compile) 2>conftest.er1
  5743. ac_status=$?
  5744. grep -v '^ *+' conftest.er1 >conftest.err
  5745. rm -f conftest.er1
  5746. cat conftest.err >&5
  5747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); } &&
  5749. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5751. (eval $ac_try) 2>&5
  5752. ac_status=$?
  5753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754. (exit $ac_status); }; } &&
  5755. { ac_try='test -s conftest.$ac_objext'
  5756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5757. (eval $ac_try) 2>&5
  5758. ac_status=$?
  5759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5760. (exit $ac_status); }; }; then
  5761. ac_cv_c_volatile=yes
  5762. else
  5763. echo "$as_me: failed program was:" >&5
  5764. sed 's/^/| /' conftest.$ac_ext >&5
  5765. ac_cv_c_volatile=no
  5766. fi
  5767. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5768. fi
  5769. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5770. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5771. if test $ac_cv_c_volatile = no; then
  5772. cat >>confdefs.h <<\_ACEOF
  5773. #define volatile
  5774. _ACEOF
  5775. fi
  5776. # Checks for library functions.
  5777. MKINSTALLDIRS=
  5778. if test -n "$ac_aux_dir"; then
  5779. case "$ac_aux_dir" in
  5780. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5781. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5782. esac
  5783. fi
  5784. if test -z "$MKINSTALLDIRS"; then
  5785. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5786. fi
  5787. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5788. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5789. # Check whether --enable-nls or --disable-nls was given.
  5790. if test "${enable_nls+set}" = set; then
  5791. enableval="$enable_nls"
  5792. USE_NLS=$enableval
  5793. else
  5794. USE_NLS=yes
  5795. fi;
  5796. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5797. echo "${ECHO_T}$USE_NLS" >&6
  5798. # Prepare PATH_SEPARATOR.
  5799. # The user is always right.
  5800. if test "${PATH_SEPARATOR+set}" != set; then
  5801. echo "#! /bin/sh" >conf$$.sh
  5802. echo "exit 0" >>conf$$.sh
  5803. chmod +x conf$$.sh
  5804. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5805. PATH_SEPARATOR=';'
  5806. else
  5807. PATH_SEPARATOR=:
  5808. fi
  5809. rm -f conf$$.sh
  5810. fi
  5811. # Find out how to test for executable files. Don't use a zero-byte file,
  5812. # as systems may use methods other than mode bits to determine executability.
  5813. cat >conf$$.file <<_ASEOF
  5814. #! /bin/sh
  5815. exit 0
  5816. _ASEOF
  5817. chmod +x conf$$.file
  5818. if test -x conf$$.file >/dev/null 2>&1; then
  5819. ac_executable_p="test -x"
  5820. else
  5821. ac_executable_p="test -f"
  5822. fi
  5823. rm -f conf$$.file
  5824. # Extract the first word of "msgfmt", so it can be a program name with args.
  5825. set dummy msgfmt; ac_word=$2
  5826. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5827. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5828. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5829. echo $ECHO_N "(cached) $ECHO_C" >&6
  5830. else
  5831. case "$MSGFMT" in
  5832. [\\/]* | ?:[\\/]*)
  5833. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5834. ;;
  5835. *)
  5836. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5837. for ac_dir in $PATH; do
  5838. IFS="$ac_save_IFS"
  5839. test -z "$ac_dir" && ac_dir=.
  5840. for ac_exec_ext in '' $ac_executable_extensions; do
  5841. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5842. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5843. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5844. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5845. break 2
  5846. fi
  5847. fi
  5848. done
  5849. done
  5850. IFS="$ac_save_IFS"
  5851. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5852. ;;
  5853. esac
  5854. fi
  5855. MSGFMT="$ac_cv_path_MSGFMT"
  5856. if test "$MSGFMT" != ":"; then
  5857. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5858. echo "${ECHO_T}$MSGFMT" >&6
  5859. else
  5860. echo "$as_me:$LINENO: result: no" >&5
  5861. echo "${ECHO_T}no" >&6
  5862. fi
  5863. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5864. set dummy gmsgfmt; ac_word=$2
  5865. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5866. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5867. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5868. echo $ECHO_N "(cached) $ECHO_C" >&6
  5869. else
  5870. case $GMSGFMT in
  5871. [\\/]* | ?:[\\/]*)
  5872. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5873. ;;
  5874. *)
  5875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5876. for as_dir in $PATH
  5877. do
  5878. IFS=$as_save_IFS
  5879. test -z "$as_dir" && as_dir=.
  5880. for ac_exec_ext in '' $ac_executable_extensions; do
  5881. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5882. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5883. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5884. break 2
  5885. fi
  5886. done
  5887. done
  5888. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5889. ;;
  5890. esac
  5891. fi
  5892. GMSGFMT=$ac_cv_path_GMSGFMT
  5893. if test -n "$GMSGFMT"; then
  5894. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5895. echo "${ECHO_T}$GMSGFMT" >&6
  5896. else
  5897. echo "$as_me:$LINENO: result: no" >&5
  5898. echo "${ECHO_T}no" >&6
  5899. fi
  5900. # Prepare PATH_SEPARATOR.
  5901. # The user is always right.
  5902. if test "${PATH_SEPARATOR+set}" != set; then
  5903. echo "#! /bin/sh" >conf$$.sh
  5904. echo "exit 0" >>conf$$.sh
  5905. chmod +x conf$$.sh
  5906. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5907. PATH_SEPARATOR=';'
  5908. else
  5909. PATH_SEPARATOR=:
  5910. fi
  5911. rm -f conf$$.sh
  5912. fi
  5913. # Find out how to test for executable files. Don't use a zero-byte file,
  5914. # as systems may use methods other than mode bits to determine executability.
  5915. cat >conf$$.file <<_ASEOF
  5916. #! /bin/sh
  5917. exit 0
  5918. _ASEOF
  5919. chmod +x conf$$.file
  5920. if test -x conf$$.file >/dev/null 2>&1; then
  5921. ac_executable_p="test -x"
  5922. else
  5923. ac_executable_p="test -f"
  5924. fi
  5925. rm -f conf$$.file
  5926. # Extract the first word of "xgettext", so it can be a program name with args.
  5927. set dummy xgettext; ac_word=$2
  5928. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5929. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5930. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5931. echo $ECHO_N "(cached) $ECHO_C" >&6
  5932. else
  5933. case "$XGETTEXT" in
  5934. [\\/]* | ?:[\\/]*)
  5935. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5936. ;;
  5937. *)
  5938. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5939. for ac_dir in $PATH; do
  5940. IFS="$ac_save_IFS"
  5941. test -z "$ac_dir" && ac_dir=.
  5942. for ac_exec_ext in '' $ac_executable_extensions; do
  5943. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5944. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5945. (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
  5946. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5947. break 2
  5948. fi
  5949. fi
  5950. done
  5951. done
  5952. IFS="$ac_save_IFS"
  5953. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5954. ;;
  5955. esac
  5956. fi
  5957. XGETTEXT="$ac_cv_path_XGETTEXT"
  5958. if test "$XGETTEXT" != ":"; then
  5959. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5960. echo "${ECHO_T}$XGETTEXT" >&6
  5961. else
  5962. echo "$as_me:$LINENO: result: no" >&5
  5963. echo "${ECHO_T}no" >&6
  5964. fi
  5965. rm -f messages.po
  5966. # Prepare PATH_SEPARATOR.
  5967. # The user is always right.
  5968. if test "${PATH_SEPARATOR+set}" != set; then
  5969. echo "#! /bin/sh" >conf$$.sh
  5970. echo "exit 0" >>conf$$.sh
  5971. chmod +x conf$$.sh
  5972. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5973. PATH_SEPARATOR=';'
  5974. else
  5975. PATH_SEPARATOR=:
  5976. fi
  5977. rm -f conf$$.sh
  5978. fi
  5979. # Find out how to test for executable files. Don't use a zero-byte file,
  5980. # as systems may use methods other than mode bits to determine executability.
  5981. cat >conf$$.file <<_ASEOF
  5982. #! /bin/sh
  5983. exit 0
  5984. _ASEOF
  5985. chmod +x conf$$.file
  5986. if test -x conf$$.file >/dev/null 2>&1; then
  5987. ac_executable_p="test -x"
  5988. else
  5989. ac_executable_p="test -f"
  5990. fi
  5991. rm -f conf$$.file
  5992. # Extract the first word of "msgmerge", so it can be a program name with args.
  5993. set dummy msgmerge; ac_word=$2
  5994. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5995. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5996. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5997. echo $ECHO_N "(cached) $ECHO_C" >&6
  5998. else
  5999. case "$MSGMERGE" in
  6000. [\\/]* | ?:[\\/]*)
  6001. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6002. ;;
  6003. *)
  6004. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6005. for ac_dir in $PATH; do
  6006. IFS="$ac_save_IFS"
  6007. test -z "$ac_dir" && ac_dir=.
  6008. for ac_exec_ext in '' $ac_executable_extensions; do
  6009. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6010. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6011. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6012. break 2
  6013. fi
  6014. fi
  6015. done
  6016. done
  6017. IFS="$ac_save_IFS"
  6018. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6019. ;;
  6020. esac
  6021. fi
  6022. MSGMERGE="$ac_cv_path_MSGMERGE"
  6023. if test "$MSGMERGE" != ":"; then
  6024. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6025. echo "${ECHO_T}$MSGMERGE" >&6
  6026. else
  6027. echo "$as_me:$LINENO: result: no" >&5
  6028. echo "${ECHO_T}no" >&6
  6029. fi
  6030. if test "$GMSGFMT" != ":"; then
  6031. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6032. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6033. : ;
  6034. else
  6035. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6036. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6037. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  6038. GMSGFMT=":"
  6039. fi
  6040. fi
  6041. if test "$XGETTEXT" != ":"; then
  6042. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6043. (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
  6044. : ;
  6045. else
  6046. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6047. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  6048. XGETTEXT=":"
  6049. fi
  6050. rm -f messages.po
  6051. fi
  6052. ac_config_commands="$ac_config_commands default-1"
  6053. # Make sure we can run config.sub.
  6054. $ac_config_sub sun4 >/dev/null 2>&1 ||
  6055. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  6056. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  6057. { (exit 1); exit 1; }; }
  6058. echo "$as_me:$LINENO: checking build system type" >&5
  6059. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  6060. if test "${ac_cv_build+set}" = set; then
  6061. echo $ECHO_N "(cached) $ECHO_C" >&6
  6062. else
  6063. ac_cv_build_alias=$build_alias
  6064. test -z "$ac_cv_build_alias" &&
  6065. ac_cv_build_alias=`$ac_config_guess`
  6066. test -z "$ac_cv_build_alias" &&
  6067. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6068. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6069. { (exit 1); exit 1; }; }
  6070. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  6071. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  6072. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  6073. { (exit 1); exit 1; }; }
  6074. fi
  6075. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6076. echo "${ECHO_T}$ac_cv_build" >&6
  6077. build=$ac_cv_build
  6078. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6079. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6080. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6081. echo "$as_me:$LINENO: checking host system type" >&5
  6082. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  6083. if test "${ac_cv_host+set}" = set; then
  6084. echo $ECHO_N "(cached) $ECHO_C" >&6
  6085. else
  6086. ac_cv_host_alias=$host_alias
  6087. test -z "$ac_cv_host_alias" &&
  6088. ac_cv_host_alias=$ac_cv_build_alias
  6089. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  6090. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  6091. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  6092. { (exit 1); exit 1; }; }
  6093. fi
  6094. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6095. echo "${ECHO_T}$ac_cv_host" >&6
  6096. host=$ac_cv_host
  6097. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6098. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6099. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6100. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  6101. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  6102. if test "${ac_cv_search_strerror+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. ac_func_search_save_LIBS=$LIBS
  6106. ac_cv_search_strerror=no
  6107. cat >conftest.$ac_ext <<_ACEOF
  6108. /* confdefs.h. */
  6109. _ACEOF
  6110. cat confdefs.h >>conftest.$ac_ext
  6111. cat >>conftest.$ac_ext <<_ACEOF
  6112. /* end confdefs.h. */
  6113. /* Override any gcc2 internal prototype to avoid an error. */
  6114. #ifdef __cplusplus
  6115. extern "C"
  6116. #endif
  6117. /* We use char because int might match the return type of a gcc2
  6118. builtin and then its argument prototype would still apply. */
  6119. char strerror ();
  6120. int
  6121. main ()
  6122. {
  6123. strerror ();
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. rm -f conftest.$ac_objext conftest$ac_exeext
  6129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6130. (eval $ac_link) 2>conftest.er1
  6131. ac_status=$?
  6132. grep -v '^ *+' conftest.er1 >conftest.err
  6133. rm -f conftest.er1
  6134. cat conftest.err >&5
  6135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6136. (exit $ac_status); } &&
  6137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6139. (eval $ac_try) 2>&5
  6140. ac_status=$?
  6141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142. (exit $ac_status); }; } &&
  6143. { ac_try='test -s conftest$ac_exeext'
  6144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6145. (eval $ac_try) 2>&5
  6146. ac_status=$?
  6147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148. (exit $ac_status); }; }; then
  6149. ac_cv_search_strerror="none required"
  6150. else
  6151. echo "$as_me: failed program was:" >&5
  6152. sed 's/^/| /' conftest.$ac_ext >&5
  6153. fi
  6154. rm -f conftest.err conftest.$ac_objext \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. if test "$ac_cv_search_strerror" = no; then
  6157. for ac_lib in cposix; do
  6158. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6159. cat >conftest.$ac_ext <<_ACEOF
  6160. /* confdefs.h. */
  6161. _ACEOF
  6162. cat confdefs.h >>conftest.$ac_ext
  6163. cat >>conftest.$ac_ext <<_ACEOF
  6164. /* end confdefs.h. */
  6165. /* Override any gcc2 internal prototype to avoid an error. */
  6166. #ifdef __cplusplus
  6167. extern "C"
  6168. #endif
  6169. /* We use char because int might match the return type of a gcc2
  6170. builtin and then its argument prototype would still apply. */
  6171. char strerror ();
  6172. int
  6173. main ()
  6174. {
  6175. strerror ();
  6176. ;
  6177. return 0;
  6178. }
  6179. _ACEOF
  6180. rm -f conftest.$ac_objext conftest$ac_exeext
  6181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6182. (eval $ac_link) 2>conftest.er1
  6183. ac_status=$?
  6184. grep -v '^ *+' conftest.er1 >conftest.err
  6185. rm -f conftest.er1
  6186. cat conftest.err >&5
  6187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6188. (exit $ac_status); } &&
  6189. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6191. (eval $ac_try) 2>&5
  6192. ac_status=$?
  6193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6194. (exit $ac_status); }; } &&
  6195. { ac_try='test -s conftest$ac_exeext'
  6196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6197. (eval $ac_try) 2>&5
  6198. ac_status=$?
  6199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6200. (exit $ac_status); }; }; then
  6201. ac_cv_search_strerror="-l$ac_lib"
  6202. break
  6203. else
  6204. echo "$as_me: failed program was:" >&5
  6205. sed 's/^/| /' conftest.$ac_ext >&5
  6206. fi
  6207. rm -f conftest.err conftest.$ac_objext \
  6208. conftest$ac_exeext conftest.$ac_ext
  6209. done
  6210. fi
  6211. LIBS=$ac_func_search_save_LIBS
  6212. fi
  6213. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6214. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6215. if test "$ac_cv_search_strerror" != no; then
  6216. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6217. fi
  6218. echo "$as_me:$LINENO: checking for off_t" >&5
  6219. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6220. if test "${ac_cv_type_off_t+set}" = set; then
  6221. echo $ECHO_N "(cached) $ECHO_C" >&6
  6222. else
  6223. cat >conftest.$ac_ext <<_ACEOF
  6224. /* confdefs.h. */
  6225. _ACEOF
  6226. cat confdefs.h >>conftest.$ac_ext
  6227. cat >>conftest.$ac_ext <<_ACEOF
  6228. /* end confdefs.h. */
  6229. $ac_includes_default
  6230. int
  6231. main ()
  6232. {
  6233. if ((off_t *) 0)
  6234. return 0;
  6235. if (sizeof (off_t))
  6236. return 0;
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. rm -f conftest.$ac_objext
  6242. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6243. (eval $ac_compile) 2>conftest.er1
  6244. ac_status=$?
  6245. grep -v '^ *+' conftest.er1 >conftest.err
  6246. rm -f conftest.er1
  6247. cat conftest.err >&5
  6248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6249. (exit $ac_status); } &&
  6250. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6252. (eval $ac_try) 2>&5
  6253. ac_status=$?
  6254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6255. (exit $ac_status); }; } &&
  6256. { ac_try='test -s conftest.$ac_objext'
  6257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6258. (eval $ac_try) 2>&5
  6259. ac_status=$?
  6260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6261. (exit $ac_status); }; }; then
  6262. ac_cv_type_off_t=yes
  6263. else
  6264. echo "$as_me: failed program was:" >&5
  6265. sed 's/^/| /' conftest.$ac_ext >&5
  6266. ac_cv_type_off_t=no
  6267. fi
  6268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6269. fi
  6270. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6271. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6272. if test $ac_cv_type_off_t = yes; then
  6273. :
  6274. else
  6275. cat >>confdefs.h <<_ACEOF
  6276. #define off_t long
  6277. _ACEOF
  6278. fi
  6279. for ac_header in stdlib.h unistd.h
  6280. do
  6281. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6282. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6286. echo $ECHO_N "(cached) $ECHO_C" >&6
  6287. fi
  6288. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6289. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6290. else
  6291. # Is the header compilable?
  6292. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6294. cat >conftest.$ac_ext <<_ACEOF
  6295. /* confdefs.h. */
  6296. _ACEOF
  6297. cat confdefs.h >>conftest.$ac_ext
  6298. cat >>conftest.$ac_ext <<_ACEOF
  6299. /* end confdefs.h. */
  6300. $ac_includes_default
  6301. #include <$ac_header>
  6302. _ACEOF
  6303. rm -f conftest.$ac_objext
  6304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6305. (eval $ac_compile) 2>conftest.er1
  6306. ac_status=$?
  6307. grep -v '^ *+' conftest.er1 >conftest.err
  6308. rm -f conftest.er1
  6309. cat conftest.err >&5
  6310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311. (exit $ac_status); } &&
  6312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6314. (eval $ac_try) 2>&5
  6315. ac_status=$?
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); }; } &&
  6318. { ac_try='test -s conftest.$ac_objext'
  6319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6320. (eval $ac_try) 2>&5
  6321. ac_status=$?
  6322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6323. (exit $ac_status); }; }; then
  6324. ac_header_compiler=yes
  6325. else
  6326. echo "$as_me: failed program was:" >&5
  6327. sed 's/^/| /' conftest.$ac_ext >&5
  6328. ac_header_compiler=no
  6329. fi
  6330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6331. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6332. echo "${ECHO_T}$ac_header_compiler" >&6
  6333. # Is the header present?
  6334. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. #include <$ac_header>
  6343. _ACEOF
  6344. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6345. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6346. ac_status=$?
  6347. grep -v '^ *+' conftest.er1 >conftest.err
  6348. rm -f conftest.er1
  6349. cat conftest.err >&5
  6350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); } >/dev/null; then
  6352. if test -s conftest.err; then
  6353. ac_cpp_err=$ac_c_preproc_warn_flag
  6354. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6355. else
  6356. ac_cpp_err=
  6357. fi
  6358. else
  6359. ac_cpp_err=yes
  6360. fi
  6361. if test -z "$ac_cpp_err"; then
  6362. ac_header_preproc=yes
  6363. else
  6364. echo "$as_me: failed program was:" >&5
  6365. sed 's/^/| /' conftest.$ac_ext >&5
  6366. ac_header_preproc=no
  6367. fi
  6368. rm -f conftest.err conftest.$ac_ext
  6369. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6370. echo "${ECHO_T}$ac_header_preproc" >&6
  6371. # So? What about this header?
  6372. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6373. yes:no: )
  6374. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6375. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6377. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6378. ac_header_preproc=yes
  6379. ;;
  6380. no:yes:* )
  6381. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6382. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6383. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6384. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6385. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6386. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6387. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6388. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6390. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6391. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6392. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6393. (
  6394. cat <<\_ASBOX
  6395. ## ----------------------------------- ##
  6396. ## Report this to tujikawa@rednoah.com ##
  6397. ## ----------------------------------- ##
  6398. _ASBOX
  6399. ) |
  6400. sed "s/^/$as_me: WARNING: /" >&2
  6401. ;;
  6402. esac
  6403. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6406. echo $ECHO_N "(cached) $ECHO_C" >&6
  6407. else
  6408. eval "$as_ac_Header=\$ac_header_preproc"
  6409. fi
  6410. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6411. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6412. fi
  6413. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6414. cat >>confdefs.h <<_ACEOF
  6415. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6416. _ACEOF
  6417. fi
  6418. done
  6419. for ac_func in getpagesize
  6420. do
  6421. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6422. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6423. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6424. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6425. echo $ECHO_N "(cached) $ECHO_C" >&6
  6426. else
  6427. cat >conftest.$ac_ext <<_ACEOF
  6428. /* confdefs.h. */
  6429. _ACEOF
  6430. cat confdefs.h >>conftest.$ac_ext
  6431. cat >>conftest.$ac_ext <<_ACEOF
  6432. /* end confdefs.h. */
  6433. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6435. #define $ac_func innocuous_$ac_func
  6436. /* System header to define __stub macros and hopefully few prototypes,
  6437. which can conflict with char $ac_func (); below.
  6438. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6439. <limits.h> exists even on freestanding compilers. */
  6440. #ifdef __STDC__
  6441. # include <limits.h>
  6442. #else
  6443. # include <assert.h>
  6444. #endif
  6445. #undef $ac_func
  6446. /* Override any gcc2 internal prototype to avoid an error. */
  6447. #ifdef __cplusplus
  6448. extern "C"
  6449. {
  6450. #endif
  6451. /* We use char because int might match the return type of a gcc2
  6452. builtin and then its argument prototype would still apply. */
  6453. char $ac_func ();
  6454. /* The GNU C library defines this for functions which it implements
  6455. to always fail with ENOSYS. Some functions are actually named
  6456. something starting with __ and the normal name is an alias. */
  6457. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6458. choke me
  6459. #else
  6460. char (*f) () = $ac_func;
  6461. #endif
  6462. #ifdef __cplusplus
  6463. }
  6464. #endif
  6465. int
  6466. main ()
  6467. {
  6468. return f != $ac_func;
  6469. ;
  6470. return 0;
  6471. }
  6472. _ACEOF
  6473. rm -f conftest.$ac_objext conftest$ac_exeext
  6474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6475. (eval $ac_link) 2>conftest.er1
  6476. ac_status=$?
  6477. grep -v '^ *+' conftest.er1 >conftest.err
  6478. rm -f conftest.er1
  6479. cat conftest.err >&5
  6480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6481. (exit $ac_status); } &&
  6482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6484. (eval $ac_try) 2>&5
  6485. ac_status=$?
  6486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6487. (exit $ac_status); }; } &&
  6488. { ac_try='test -s conftest$ac_exeext'
  6489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6490. (eval $ac_try) 2>&5
  6491. ac_status=$?
  6492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6493. (exit $ac_status); }; }; then
  6494. eval "$as_ac_var=yes"
  6495. else
  6496. echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. eval "$as_ac_var=no"
  6499. fi
  6500. rm -f conftest.err conftest.$ac_objext \
  6501. conftest$ac_exeext conftest.$ac_ext
  6502. fi
  6503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6504. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6505. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6506. cat >>confdefs.h <<_ACEOF
  6507. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6508. _ACEOF
  6509. fi
  6510. done
  6511. echo "$as_me:$LINENO: checking for working mmap" >&5
  6512. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6513. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6514. echo $ECHO_N "(cached) $ECHO_C" >&6
  6515. else
  6516. if test "$cross_compiling" = yes; then
  6517. ac_cv_func_mmap_fixed_mapped=no
  6518. else
  6519. cat >conftest.$ac_ext <<_ACEOF
  6520. /* confdefs.h. */
  6521. _ACEOF
  6522. cat confdefs.h >>conftest.$ac_ext
  6523. cat >>conftest.$ac_ext <<_ACEOF
  6524. /* end confdefs.h. */
  6525. $ac_includes_default
  6526. /* malloc might have been renamed as rpl_malloc. */
  6527. #undef malloc
  6528. /* Thanks to Mike Haertel and Jim Avera for this test.
  6529. Here is a matrix of mmap possibilities:
  6530. mmap private not fixed
  6531. mmap private fixed at somewhere currently unmapped
  6532. mmap private fixed at somewhere already mapped
  6533. mmap shared not fixed
  6534. mmap shared fixed at somewhere currently unmapped
  6535. mmap shared fixed at somewhere already mapped
  6536. For private mappings, we should verify that changes cannot be read()
  6537. back from the file, nor mmap's back from the file at a different
  6538. address. (There have been systems where private was not correctly
  6539. implemented like the infamous i386 svr4.0, and systems where the
  6540. VM page cache was not coherent with the file system buffer cache
  6541. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6542. For shared mappings, we should conversely verify that changes get
  6543. propagated back to all the places they're supposed to be.
  6544. Grep wants private fixed already mapped.
  6545. The main things grep needs to know about mmap are:
  6546. * does it exist and is it safe to write into the mmap'd area
  6547. * how to use it (BSD variants) */
  6548. #include <fcntl.h>
  6549. #include <sys/mman.h>
  6550. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6551. char *malloc ();
  6552. #endif
  6553. /* This mess was copied from the GNU getpagesize.h. */
  6554. #if !HAVE_GETPAGESIZE
  6555. /* Assume that all systems that can run configure have sys/param.h. */
  6556. # if !HAVE_SYS_PARAM_H
  6557. # define HAVE_SYS_PARAM_H 1
  6558. # endif
  6559. # ifdef _SC_PAGESIZE
  6560. # define getpagesize() sysconf(_SC_PAGESIZE)
  6561. # else /* no _SC_PAGESIZE */
  6562. # if HAVE_SYS_PARAM_H
  6563. # include <sys/param.h>
  6564. # ifdef EXEC_PAGESIZE
  6565. # define getpagesize() EXEC_PAGESIZE
  6566. # else /* no EXEC_PAGESIZE */
  6567. # ifdef NBPG
  6568. # define getpagesize() NBPG * CLSIZE
  6569. # ifndef CLSIZE
  6570. # define CLSIZE 1
  6571. # endif /* no CLSIZE */
  6572. # else /* no NBPG */
  6573. # ifdef NBPC
  6574. # define getpagesize() NBPC
  6575. # else /* no NBPC */
  6576. # ifdef PAGESIZE
  6577. # define getpagesize() PAGESIZE
  6578. # endif /* PAGESIZE */
  6579. # endif /* no NBPC */
  6580. # endif /* no NBPG */
  6581. # endif /* no EXEC_PAGESIZE */
  6582. # else /* no HAVE_SYS_PARAM_H */
  6583. # define getpagesize() 8192 /* punt totally */
  6584. # endif /* no HAVE_SYS_PARAM_H */
  6585. # endif /* no _SC_PAGESIZE */
  6586. #endif /* no HAVE_GETPAGESIZE */
  6587. int
  6588. main ()
  6589. {
  6590. char *data, *data2, *data3;
  6591. int i, pagesize;
  6592. int fd;
  6593. pagesize = getpagesize ();
  6594. /* First, make a file with some known garbage in it. */
  6595. data = (char *) malloc (pagesize);
  6596. if (!data)
  6597. exit (1);
  6598. for (i = 0; i < pagesize; ++i)
  6599. *(data + i) = rand ();
  6600. umask (0);
  6601. fd = creat ("conftest.mmap", 0600);
  6602. if (fd < 0)
  6603. exit (1);
  6604. if (write (fd, data, pagesize) != pagesize)
  6605. exit (1);
  6606. close (fd);
  6607. /* Next, try to mmap the file at a fixed address which already has
  6608. something else allocated at it. If we can, also make sure that
  6609. we see the same garbage. */
  6610. fd = open ("conftest.mmap", O_RDWR);
  6611. if (fd < 0)
  6612. exit (1);
  6613. data2 = (char *) malloc (2 * pagesize);
  6614. if (!data2)
  6615. exit (1);
  6616. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6617. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6618. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6619. exit (1);
  6620. for (i = 0; i < pagesize; ++i)
  6621. if (*(data + i) != *(data2 + i))
  6622. exit (1);
  6623. /* Finally, make sure that changes to the mapped area do not
  6624. percolate back to the file as seen by read(). (This is a bug on
  6625. some variants of i386 svr4.0.) */
  6626. for (i = 0; i < pagesize; ++i)
  6627. *(data2 + i) = *(data2 + i) + 1;
  6628. data3 = (char *) malloc (pagesize);
  6629. if (!data3)
  6630. exit (1);
  6631. if (read (fd, data3, pagesize) != pagesize)
  6632. exit (1);
  6633. for (i = 0; i < pagesize; ++i)
  6634. if (*(data + i) != *(data3 + i))
  6635. exit (1);
  6636. close (fd);
  6637. exit (0);
  6638. }
  6639. _ACEOF
  6640. rm -f conftest$ac_exeext
  6641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6642. (eval $ac_link) 2>&5
  6643. ac_status=$?
  6644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6645. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6647. (eval $ac_try) 2>&5
  6648. ac_status=$?
  6649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6650. (exit $ac_status); }; }; then
  6651. ac_cv_func_mmap_fixed_mapped=yes
  6652. else
  6653. echo "$as_me: program exited with status $ac_status" >&5
  6654. echo "$as_me: failed program was:" >&5
  6655. sed 's/^/| /' conftest.$ac_ext >&5
  6656. ( exit $ac_status )
  6657. ac_cv_func_mmap_fixed_mapped=no
  6658. fi
  6659. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6660. fi
  6661. fi
  6662. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6663. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6664. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6665. cat >>confdefs.h <<\_ACEOF
  6666. #define HAVE_MMAP 1
  6667. _ACEOF
  6668. fi
  6669. rm -f conftest.mmap
  6670. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6671. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6672. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6673. echo $ECHO_N "(cached) $ECHO_C" >&6
  6674. else
  6675. cat >conftest.$ac_ext <<_ACEOF
  6676. /* confdefs.h. */
  6677. _ACEOF
  6678. cat confdefs.h >>conftest.$ac_ext
  6679. cat >>conftest.$ac_ext <<_ACEOF
  6680. /* end confdefs.h. */
  6681. #include <features.h>
  6682. #ifdef __GNU_LIBRARY__
  6683. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6684. Lucky GNU user
  6685. #endif
  6686. #endif
  6687. _ACEOF
  6688. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6689. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6690. ac_cv_gnu_library_2_1=yes
  6691. else
  6692. ac_cv_gnu_library_2_1=no
  6693. fi
  6694. rm -f conftest*
  6695. fi
  6696. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6697. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6698. GLIBC21="$ac_cv_gnu_library_2_1"
  6699. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6700. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6701. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6702. echo $ECHO_N "(cached) $ECHO_C" >&6
  6703. else
  6704. if test "$cross_compiling" = yes; then
  6705. # Guess based on the CPU.
  6706. case "$host_cpu" in
  6707. alpha* | i3456786 | m68k | s390*)
  6708. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6709. *)
  6710. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6711. esac
  6712. else
  6713. cat >conftest.$ac_ext <<_ACEOF
  6714. /* confdefs.h. */
  6715. _ACEOF
  6716. cat confdefs.h >>conftest.$ac_ext
  6717. cat >>conftest.$ac_ext <<_ACEOF
  6718. /* end confdefs.h. */
  6719. #include <stdlib.h>
  6720. #include <signal.h>
  6721. static void
  6722. #ifdef __cplusplus
  6723. sigfpe_handler (int sig)
  6724. #else
  6725. sigfpe_handler (sig) int sig;
  6726. #endif
  6727. {
  6728. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6729. exit (sig != SIGFPE);
  6730. }
  6731. int x = 1;
  6732. int y = 0;
  6733. int z;
  6734. int nan;
  6735. int main ()
  6736. {
  6737. signal (SIGFPE, sigfpe_handler);
  6738. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6739. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6740. signal (SIGTRAP, sigfpe_handler);
  6741. #endif
  6742. /* Linux/SPARC yields signal SIGILL. */
  6743. #if defined (__sparc__) && defined (__linux__)
  6744. signal (SIGILL, sigfpe_handler);
  6745. #endif
  6746. z = x / y;
  6747. nan = y / y;
  6748. exit (1);
  6749. }
  6750. _ACEOF
  6751. rm -f conftest$ac_exeext
  6752. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6753. (eval $ac_link) 2>&5
  6754. ac_status=$?
  6755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6756. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6758. (eval $ac_try) 2>&5
  6759. ac_status=$?
  6760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6761. (exit $ac_status); }; }; then
  6762. gt_cv_int_divbyzero_sigfpe=yes
  6763. else
  6764. echo "$as_me: program exited with status $ac_status" >&5
  6765. echo "$as_me: failed program was:" >&5
  6766. sed 's/^/| /' conftest.$ac_ext >&5
  6767. ( exit $ac_status )
  6768. gt_cv_int_divbyzero_sigfpe=no
  6769. fi
  6770. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6771. fi
  6772. fi
  6773. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6774. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6775. case "$gt_cv_int_divbyzero_sigfpe" in
  6776. *yes) value=1;;
  6777. *) value=0;;
  6778. esac
  6779. cat >>confdefs.h <<_ACEOF
  6780. #define INTDIV0_RAISES_SIGFPE $value
  6781. _ACEOF
  6782. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6783. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6784. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6785. echo $ECHO_N "(cached) $ECHO_C" >&6
  6786. else
  6787. cat >conftest.$ac_ext <<_ACEOF
  6788. /* confdefs.h. */
  6789. _ACEOF
  6790. cat confdefs.h >>conftest.$ac_ext
  6791. cat >>conftest.$ac_ext <<_ACEOF
  6792. /* end confdefs.h. */
  6793. #include <sys/types.h>
  6794. #include <inttypes.h>
  6795. int
  6796. main ()
  6797. {
  6798. uintmax_t i = (uintmax_t) -1;
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. rm -f conftest.$ac_objext
  6804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6805. (eval $ac_compile) 2>conftest.er1
  6806. ac_status=$?
  6807. grep -v '^ *+' conftest.er1 >conftest.err
  6808. rm -f conftest.er1
  6809. cat conftest.err >&5
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); } &&
  6812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6814. (eval $ac_try) 2>&5
  6815. ac_status=$?
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); }; } &&
  6818. { ac_try='test -s conftest.$ac_objext'
  6819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6820. (eval $ac_try) 2>&5
  6821. ac_status=$?
  6822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. (exit $ac_status); }; }; then
  6824. jm_ac_cv_header_inttypes_h=yes
  6825. else
  6826. echo "$as_me: failed program was:" >&5
  6827. sed 's/^/| /' conftest.$ac_ext >&5
  6828. jm_ac_cv_header_inttypes_h=no
  6829. fi
  6830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6831. fi
  6832. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6833. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6834. if test $jm_ac_cv_header_inttypes_h = yes; then
  6835. cat >>confdefs.h <<_ACEOF
  6836. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6837. _ACEOF
  6838. fi
  6839. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6840. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6841. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6842. echo $ECHO_N "(cached) $ECHO_C" >&6
  6843. else
  6844. cat >conftest.$ac_ext <<_ACEOF
  6845. /* confdefs.h. */
  6846. _ACEOF
  6847. cat confdefs.h >>conftest.$ac_ext
  6848. cat >>conftest.$ac_ext <<_ACEOF
  6849. /* end confdefs.h. */
  6850. #include <sys/types.h>
  6851. #include <stdint.h>
  6852. int
  6853. main ()
  6854. {
  6855. uintmax_t i = (uintmax_t) -1;
  6856. ;
  6857. return 0;
  6858. }
  6859. _ACEOF
  6860. rm -f conftest.$ac_objext
  6861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6862. (eval $ac_compile) 2>conftest.er1
  6863. ac_status=$?
  6864. grep -v '^ *+' conftest.er1 >conftest.err
  6865. rm -f conftest.er1
  6866. cat conftest.err >&5
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); } &&
  6869. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6871. (eval $ac_try) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; } &&
  6875. { ac_try='test -s conftest.$ac_objext'
  6876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6877. (eval $ac_try) 2>&5
  6878. ac_status=$?
  6879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6880. (exit $ac_status); }; }; then
  6881. jm_ac_cv_header_stdint_h=yes
  6882. else
  6883. echo "$as_me: failed program was:" >&5
  6884. sed 's/^/| /' conftest.$ac_ext >&5
  6885. jm_ac_cv_header_stdint_h=no
  6886. fi
  6887. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6888. fi
  6889. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6890. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6891. if test $jm_ac_cv_header_stdint_h = yes; then
  6892. cat >>confdefs.h <<_ACEOF
  6893. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6894. _ACEOF
  6895. fi
  6896. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6897. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6898. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6899. echo $ECHO_N "(cached) $ECHO_C" >&6
  6900. else
  6901. cat >conftest.$ac_ext <<_ACEOF
  6902. /* confdefs.h. */
  6903. _ACEOF
  6904. cat confdefs.h >>conftest.$ac_ext
  6905. cat >>conftest.$ac_ext <<_ACEOF
  6906. /* end confdefs.h. */
  6907. unsigned long long ull = 1; int i = 63;
  6908. int
  6909. main ()
  6910. {
  6911. unsigned long long ullmax = (unsigned long long) -1;
  6912. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6913. ;
  6914. return 0;
  6915. }
  6916. _ACEOF
  6917. rm -f conftest.$ac_objext conftest$ac_exeext
  6918. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6919. (eval $ac_link) 2>conftest.er1
  6920. ac_status=$?
  6921. grep -v '^ *+' conftest.er1 >conftest.err
  6922. rm -f conftest.er1
  6923. cat conftest.err >&5
  6924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6925. (exit $ac_status); } &&
  6926. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6928. (eval $ac_try) 2>&5
  6929. ac_status=$?
  6930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6931. (exit $ac_status); }; } &&
  6932. { ac_try='test -s conftest$ac_exeext'
  6933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6934. (eval $ac_try) 2>&5
  6935. ac_status=$?
  6936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6937. (exit $ac_status); }; }; then
  6938. ac_cv_type_unsigned_long_long=yes
  6939. else
  6940. echo "$as_me: failed program was:" >&5
  6941. sed 's/^/| /' conftest.$ac_ext >&5
  6942. ac_cv_type_unsigned_long_long=no
  6943. fi
  6944. rm -f conftest.err conftest.$ac_objext \
  6945. conftest$ac_exeext conftest.$ac_ext
  6946. fi
  6947. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6948. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6949. if test $ac_cv_type_unsigned_long_long = yes; then
  6950. cat >>confdefs.h <<\_ACEOF
  6951. #define HAVE_UNSIGNED_LONG_LONG 1
  6952. _ACEOF
  6953. fi
  6954. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6955. test $ac_cv_type_unsigned_long_long = yes \
  6956. && ac_type='unsigned long long' \
  6957. || ac_type='unsigned long'
  6958. cat >>confdefs.h <<_ACEOF
  6959. #define uintmax_t $ac_type
  6960. _ACEOF
  6961. else
  6962. cat >>confdefs.h <<\_ACEOF
  6963. #define HAVE_UINTMAX_T 1
  6964. _ACEOF
  6965. fi
  6966. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6967. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6968. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6969. echo $ECHO_N "(cached) $ECHO_C" >&6
  6970. else
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. #include <sys/types.h>
  6978. #include <inttypes.h>
  6979. int
  6980. main ()
  6981. {
  6982. ;
  6983. return 0;
  6984. }
  6985. _ACEOF
  6986. rm -f conftest.$ac_objext
  6987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6988. (eval $ac_compile) 2>conftest.er1
  6989. ac_status=$?
  6990. grep -v '^ *+' conftest.er1 >conftest.err
  6991. rm -f conftest.er1
  6992. cat conftest.err >&5
  6993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6994. (exit $ac_status); } &&
  6995. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6997. (eval $ac_try) 2>&5
  6998. ac_status=$?
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); }; } &&
  7001. { ac_try='test -s conftest.$ac_objext'
  7002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7003. (eval $ac_try) 2>&5
  7004. ac_status=$?
  7005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. (exit $ac_status); }; }; then
  7007. gt_cv_header_inttypes_h=yes
  7008. else
  7009. echo "$as_me: failed program was:" >&5
  7010. sed 's/^/| /' conftest.$ac_ext >&5
  7011. gt_cv_header_inttypes_h=no
  7012. fi
  7013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7014. fi
  7015. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7016. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  7017. if test $gt_cv_header_inttypes_h = yes; then
  7018. cat >>confdefs.h <<_ACEOF
  7019. #define HAVE_INTTYPES_H 1
  7020. _ACEOF
  7021. fi
  7022. if test $gt_cv_header_inttypes_h = yes; then
  7023. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7024. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  7025. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7026. echo $ECHO_N "(cached) $ECHO_C" >&6
  7027. else
  7028. cat >conftest.$ac_ext <<_ACEOF
  7029. /* confdefs.h. */
  7030. _ACEOF
  7031. cat confdefs.h >>conftest.$ac_ext
  7032. cat >>conftest.$ac_ext <<_ACEOF
  7033. /* end confdefs.h. */
  7034. #include <inttypes.h>
  7035. #ifdef PRId32
  7036. char *p = PRId32;
  7037. #endif
  7038. int
  7039. main ()
  7040. {
  7041. ;
  7042. return 0;
  7043. }
  7044. _ACEOF
  7045. rm -f conftest.$ac_objext
  7046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7047. (eval $ac_compile) 2>conftest.er1
  7048. ac_status=$?
  7049. grep -v '^ *+' conftest.er1 >conftest.err
  7050. rm -f conftest.er1
  7051. cat conftest.err >&5
  7052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7053. (exit $ac_status); } &&
  7054. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7056. (eval $ac_try) 2>&5
  7057. ac_status=$?
  7058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7059. (exit $ac_status); }; } &&
  7060. { ac_try='test -s conftest.$ac_objext'
  7061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7062. (eval $ac_try) 2>&5
  7063. ac_status=$?
  7064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7065. (exit $ac_status); }; }; then
  7066. gt_cv_inttypes_pri_broken=no
  7067. else
  7068. echo "$as_me: failed program was:" >&5
  7069. sed 's/^/| /' conftest.$ac_ext >&5
  7070. gt_cv_inttypes_pri_broken=yes
  7071. fi
  7072. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7073. fi
  7074. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7075. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  7076. fi
  7077. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7078. cat >>confdefs.h <<_ACEOF
  7079. #define PRI_MACROS_BROKEN 1
  7080. _ACEOF
  7081. fi
  7082. if test "X$prefix" = "XNONE"; then
  7083. acl_final_prefix="$ac_default_prefix"
  7084. else
  7085. acl_final_prefix="$prefix"
  7086. fi
  7087. if test "X$exec_prefix" = "XNONE"; then
  7088. acl_final_exec_prefix='${prefix}'
  7089. else
  7090. acl_final_exec_prefix="$exec_prefix"
  7091. fi
  7092. acl_save_prefix="$prefix"
  7093. prefix="$acl_final_prefix"
  7094. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7095. prefix="$acl_save_prefix"
  7096. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  7097. if test "${with_gnu_ld+set}" = set; then
  7098. withval="$with_gnu_ld"
  7099. test "$withval" = no || with_gnu_ld=yes
  7100. else
  7101. with_gnu_ld=no
  7102. fi;
  7103. # Prepare PATH_SEPARATOR.
  7104. # The user is always right.
  7105. if test "${PATH_SEPARATOR+set}" != set; then
  7106. echo "#! /bin/sh" >conf$$.sh
  7107. echo "exit 0" >>conf$$.sh
  7108. chmod +x conf$$.sh
  7109. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7110. PATH_SEPARATOR=';'
  7111. else
  7112. PATH_SEPARATOR=:
  7113. fi
  7114. rm -f conf$$.sh
  7115. fi
  7116. ac_prog=ld
  7117. if test "$GCC" = yes; then
  7118. # Check if gcc -print-prog-name=ld gives a path.
  7119. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7120. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  7121. case $host in
  7122. *-*-mingw*)
  7123. # gcc leaves a trailing carriage return which upsets mingw
  7124. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7125. *)
  7126. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7127. esac
  7128. case $ac_prog in
  7129. # Accept absolute paths.
  7130. [\\/]* | [A-Za-z]:[\\/]*)
  7131. re_direlt='/[^/][^/]*/\.\./'
  7132. # Canonicalize the path of ld
  7133. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7134. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7135. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7136. done
  7137. test -z "$LD" && LD="$ac_prog"
  7138. ;;
  7139. "")
  7140. # If it fails, then pretend we aren't using GCC.
  7141. ac_prog=ld
  7142. ;;
  7143. *)
  7144. # If it is relative, then search for the first ld in PATH.
  7145. with_gnu_ld=unknown
  7146. ;;
  7147. esac
  7148. elif test "$with_gnu_ld" = yes; then
  7149. echo "$as_me:$LINENO: checking for GNU ld" >&5
  7150. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  7151. else
  7152. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7153. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  7154. fi
  7155. if test "${acl_cv_path_LD+set}" = set; then
  7156. echo $ECHO_N "(cached) $ECHO_C" >&6
  7157. else
  7158. if test -z "$LD"; then
  7159. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7160. for ac_dir in $PATH; do
  7161. test -z "$ac_dir" && ac_dir=.
  7162. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7163. acl_cv_path_LD="$ac_dir/$ac_prog"
  7164. # Check to see if the program is GNU ld. I'd rather use --version,
  7165. # but apparently some GNU ld's only accept -v.
  7166. # Break only if it was the GNU/non-GNU ld that we prefer.
  7167. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7168. test "$with_gnu_ld" != no && break
  7169. else
  7170. test "$with_gnu_ld" != yes && break
  7171. fi
  7172. fi
  7173. done
  7174. IFS="$ac_save_ifs"
  7175. else
  7176. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7177. fi
  7178. fi
  7179. LD="$acl_cv_path_LD"
  7180. if test -n "$LD"; then
  7181. echo "$as_me:$LINENO: result: $LD" >&5
  7182. echo "${ECHO_T}$LD" >&6
  7183. else
  7184. echo "$as_me:$LINENO: result: no" >&5
  7185. echo "${ECHO_T}no" >&6
  7186. fi
  7187. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7188. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7189. { (exit 1); exit 1; }; }
  7190. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7191. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7192. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7193. echo $ECHO_N "(cached) $ECHO_C" >&6
  7194. else
  7195. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7196. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7197. acl_cv_prog_gnu_ld=yes
  7198. else
  7199. acl_cv_prog_gnu_ld=no
  7200. fi
  7201. fi
  7202. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7203. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7204. with_gnu_ld=$acl_cv_prog_gnu_ld
  7205. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7206. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7207. if test "${acl_cv_rpath+set}" = set; then
  7208. echo $ECHO_N "(cached) $ECHO_C" >&6
  7209. else
  7210. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7211. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7212. . ./conftest.sh
  7213. rm -f ./conftest.sh
  7214. acl_cv_rpath=done
  7215. fi
  7216. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7217. echo "${ECHO_T}$acl_cv_rpath" >&6
  7218. wl="$acl_cv_wl"
  7219. libext="$acl_cv_libext"
  7220. shlibext="$acl_cv_shlibext"
  7221. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7222. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7223. hardcode_direct="$acl_cv_hardcode_direct"
  7224. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7225. # Check whether --enable-rpath or --disable-rpath was given.
  7226. if test "${enable_rpath+set}" = set; then
  7227. enableval="$enable_rpath"
  7228. :
  7229. else
  7230. enable_rpath=yes
  7231. fi;
  7232. use_additional=yes
  7233. acl_save_prefix="$prefix"
  7234. prefix="$acl_final_prefix"
  7235. acl_save_exec_prefix="$exec_prefix"
  7236. exec_prefix="$acl_final_exec_prefix"
  7237. eval additional_includedir=\"$includedir\"
  7238. eval additional_libdir=\"$libdir\"
  7239. exec_prefix="$acl_save_exec_prefix"
  7240. prefix="$acl_save_prefix"
  7241. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7242. if test "${with_libiconv_prefix+set}" = set; then
  7243. withval="$with_libiconv_prefix"
  7244. if test "X$withval" = "Xno"; then
  7245. use_additional=no
  7246. else
  7247. if test "X$withval" = "X"; then
  7248. acl_save_prefix="$prefix"
  7249. prefix="$acl_final_prefix"
  7250. acl_save_exec_prefix="$exec_prefix"
  7251. exec_prefix="$acl_final_exec_prefix"
  7252. eval additional_includedir=\"$includedir\"
  7253. eval additional_libdir=\"$libdir\"
  7254. exec_prefix="$acl_save_exec_prefix"
  7255. prefix="$acl_save_prefix"
  7256. else
  7257. additional_includedir="$withval/include"
  7258. additional_libdir="$withval/lib"
  7259. fi
  7260. fi
  7261. fi;
  7262. LIBICONV=
  7263. LTLIBICONV=
  7264. INCICONV=
  7265. rpathdirs=
  7266. ltrpathdirs=
  7267. names_already_handled=
  7268. names_next_round='iconv '
  7269. while test -n "$names_next_round"; do
  7270. names_this_round="$names_next_round"
  7271. names_next_round=
  7272. for name in $names_this_round; do
  7273. already_handled=
  7274. for n in $names_already_handled; do
  7275. if test "$n" = "$name"; then
  7276. already_handled=yes
  7277. break
  7278. fi
  7279. done
  7280. if test -z "$already_handled"; then
  7281. names_already_handled="$names_already_handled $name"
  7282. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7283. eval value=\"\$HAVE_LIB$uppername\"
  7284. if test -n "$value"; then
  7285. if test "$value" = yes; then
  7286. eval value=\"\$LIB$uppername\"
  7287. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7288. eval value=\"\$LTLIB$uppername\"
  7289. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7290. else
  7291. :
  7292. fi
  7293. else
  7294. found_dir=
  7295. found_la=
  7296. found_so=
  7297. found_a=
  7298. if test $use_additional = yes; then
  7299. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7300. found_dir="$additional_libdir"
  7301. found_so="$additional_libdir/lib$name.$shlibext"
  7302. if test -f "$additional_libdir/lib$name.la"; then
  7303. found_la="$additional_libdir/lib$name.la"
  7304. fi
  7305. else
  7306. if test -f "$additional_libdir/lib$name.$libext"; then
  7307. found_dir="$additional_libdir"
  7308. found_a="$additional_libdir/lib$name.$libext"
  7309. if test -f "$additional_libdir/lib$name.la"; then
  7310. found_la="$additional_libdir/lib$name.la"
  7311. fi
  7312. fi
  7313. fi
  7314. fi
  7315. if test "X$found_dir" = "X"; then
  7316. for x in $LDFLAGS $LTLIBICONV; do
  7317. acl_save_prefix="$prefix"
  7318. prefix="$acl_final_prefix"
  7319. acl_save_exec_prefix="$exec_prefix"
  7320. exec_prefix="$acl_final_exec_prefix"
  7321. eval x=\"$x\"
  7322. exec_prefix="$acl_save_exec_prefix"
  7323. prefix="$acl_save_prefix"
  7324. case "$x" in
  7325. -L*)
  7326. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7327. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7328. found_dir="$dir"
  7329. found_so="$dir/lib$name.$shlibext"
  7330. if test -f "$dir/lib$name.la"; then
  7331. found_la="$dir/lib$name.la"
  7332. fi
  7333. else
  7334. if test -f "$dir/lib$name.$libext"; then
  7335. found_dir="$dir"
  7336. found_a="$dir/lib$name.$libext"
  7337. if test -f "$dir/lib$name.la"; then
  7338. found_la="$dir/lib$name.la"
  7339. fi
  7340. fi
  7341. fi
  7342. ;;
  7343. esac
  7344. if test "X$found_dir" != "X"; then
  7345. break
  7346. fi
  7347. done
  7348. fi
  7349. if test "X$found_dir" != "X"; then
  7350. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7351. if test "X$found_so" != "X"; then
  7352. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7353. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7354. else
  7355. haveit=
  7356. for x in $ltrpathdirs; do
  7357. if test "X$x" = "X$found_dir"; then
  7358. haveit=yes
  7359. break
  7360. fi
  7361. done
  7362. if test -z "$haveit"; then
  7363. ltrpathdirs="$ltrpathdirs $found_dir"
  7364. fi
  7365. if test "$hardcode_direct" = yes; then
  7366. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7367. else
  7368. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7369. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7370. haveit=
  7371. for x in $rpathdirs; do
  7372. if test "X$x" = "X$found_dir"; then
  7373. haveit=yes
  7374. break
  7375. fi
  7376. done
  7377. if test -z "$haveit"; then
  7378. rpathdirs="$rpathdirs $found_dir"
  7379. fi
  7380. else
  7381. haveit=
  7382. for x in $LDFLAGS $LIBICONV; do
  7383. acl_save_prefix="$prefix"
  7384. prefix="$acl_final_prefix"
  7385. acl_save_exec_prefix="$exec_prefix"
  7386. exec_prefix="$acl_final_exec_prefix"
  7387. eval x=\"$x\"
  7388. exec_prefix="$acl_save_exec_prefix"
  7389. prefix="$acl_save_prefix"
  7390. if test "X$x" = "X-L$found_dir"; then
  7391. haveit=yes
  7392. break
  7393. fi
  7394. done
  7395. if test -z "$haveit"; then
  7396. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7397. fi
  7398. if test "$hardcode_minus_L" != no; then
  7399. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7400. else
  7401. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7402. fi
  7403. fi
  7404. fi
  7405. fi
  7406. else
  7407. if test "X$found_a" != "X"; then
  7408. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7409. else
  7410. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7411. fi
  7412. fi
  7413. additional_includedir=
  7414. case "$found_dir" in
  7415. */lib | */lib/)
  7416. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7417. additional_includedir="$basedir/include"
  7418. ;;
  7419. esac
  7420. if test "X$additional_includedir" != "X"; then
  7421. if test "X$additional_includedir" != "X/usr/include"; then
  7422. haveit=
  7423. if test "X$additional_includedir" = "X/usr/local/include"; then
  7424. if test -n "$GCC"; then
  7425. case $host_os in
  7426. linux*) haveit=yes;;
  7427. esac
  7428. fi
  7429. fi
  7430. if test -z "$haveit"; then
  7431. for x in $CPPFLAGS $INCICONV; do
  7432. acl_save_prefix="$prefix"
  7433. prefix="$acl_final_prefix"
  7434. acl_save_exec_prefix="$exec_prefix"
  7435. exec_prefix="$acl_final_exec_prefix"
  7436. eval x=\"$x\"
  7437. exec_prefix="$acl_save_exec_prefix"
  7438. prefix="$acl_save_prefix"
  7439. if test "X$x" = "X-I$additional_includedir"; then
  7440. haveit=yes
  7441. break
  7442. fi
  7443. done
  7444. if test -z "$haveit"; then
  7445. if test -d "$additional_includedir"; then
  7446. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7447. fi
  7448. fi
  7449. fi
  7450. fi
  7451. fi
  7452. if test -n "$found_la"; then
  7453. save_libdir="$libdir"
  7454. case "$found_la" in
  7455. */* | *\\*) . "$found_la" ;;
  7456. *) . "./$found_la" ;;
  7457. esac
  7458. libdir="$save_libdir"
  7459. for dep in $dependency_libs; do
  7460. case "$dep" in
  7461. -L*)
  7462. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7463. if test "X$additional_libdir" != "X/usr/lib"; then
  7464. haveit=
  7465. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7466. if test -n "$GCC"; then
  7467. case $host_os in
  7468. linux*) haveit=yes;;
  7469. esac
  7470. fi
  7471. fi
  7472. if test -z "$haveit"; then
  7473. haveit=
  7474. for x in $LDFLAGS $LIBICONV; do
  7475. acl_save_prefix="$prefix"
  7476. prefix="$acl_final_prefix"
  7477. acl_save_exec_prefix="$exec_prefix"
  7478. exec_prefix="$acl_final_exec_prefix"
  7479. eval x=\"$x\"
  7480. exec_prefix="$acl_save_exec_prefix"
  7481. prefix="$acl_save_prefix"
  7482. if test "X$x" = "X-L$additional_libdir"; then
  7483. haveit=yes
  7484. break
  7485. fi
  7486. done
  7487. if test -z "$haveit"; then
  7488. if test -d "$additional_libdir"; then
  7489. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7490. fi
  7491. fi
  7492. haveit=
  7493. for x in $LDFLAGS $LTLIBICONV; do
  7494. acl_save_prefix="$prefix"
  7495. prefix="$acl_final_prefix"
  7496. acl_save_exec_prefix="$exec_prefix"
  7497. exec_prefix="$acl_final_exec_prefix"
  7498. eval x=\"$x\"
  7499. exec_prefix="$acl_save_exec_prefix"
  7500. prefix="$acl_save_prefix"
  7501. if test "X$x" = "X-L$additional_libdir"; then
  7502. haveit=yes
  7503. break
  7504. fi
  7505. done
  7506. if test -z "$haveit"; then
  7507. if test -d "$additional_libdir"; then
  7508. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7509. fi
  7510. fi
  7511. fi
  7512. fi
  7513. ;;
  7514. -R*)
  7515. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7516. if test "$enable_rpath" != no; then
  7517. haveit=
  7518. for x in $rpathdirs; do
  7519. if test "X$x" = "X$dir"; then
  7520. haveit=yes
  7521. break
  7522. fi
  7523. done
  7524. if test -z "$haveit"; then
  7525. rpathdirs="$rpathdirs $dir"
  7526. fi
  7527. haveit=
  7528. for x in $ltrpathdirs; do
  7529. if test "X$x" = "X$dir"; then
  7530. haveit=yes
  7531. break
  7532. fi
  7533. done
  7534. if test -z "$haveit"; then
  7535. ltrpathdirs="$ltrpathdirs $dir"
  7536. fi
  7537. fi
  7538. ;;
  7539. -l*)
  7540. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7541. ;;
  7542. *.la)
  7543. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7544. ;;
  7545. *)
  7546. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7547. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7548. ;;
  7549. esac
  7550. done
  7551. fi
  7552. else
  7553. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7554. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7555. fi
  7556. fi
  7557. fi
  7558. done
  7559. done
  7560. if test "X$rpathdirs" != "X"; then
  7561. if test -n "$hardcode_libdir_separator"; then
  7562. alldirs=
  7563. for found_dir in $rpathdirs; do
  7564. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7565. done
  7566. acl_save_libdir="$libdir"
  7567. libdir="$alldirs"
  7568. eval flag=\"$hardcode_libdir_flag_spec\"
  7569. libdir="$acl_save_libdir"
  7570. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7571. else
  7572. for found_dir in $rpathdirs; do
  7573. acl_save_libdir="$libdir"
  7574. libdir="$found_dir"
  7575. eval flag=\"$hardcode_libdir_flag_spec\"
  7576. libdir="$acl_save_libdir"
  7577. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7578. done
  7579. fi
  7580. fi
  7581. if test "X$ltrpathdirs" != "X"; then
  7582. for found_dir in $ltrpathdirs; do
  7583. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7584. done
  7585. fi
  7586. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7587. stdlib.h string.h unistd.h sys/param.h
  7588. do
  7589. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7590. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7591. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7592. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7593. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7594. echo $ECHO_N "(cached) $ECHO_C" >&6
  7595. fi
  7596. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7597. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7598. else
  7599. # Is the header compilable?
  7600. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7601. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7602. cat >conftest.$ac_ext <<_ACEOF
  7603. /* confdefs.h. */
  7604. _ACEOF
  7605. cat confdefs.h >>conftest.$ac_ext
  7606. cat >>conftest.$ac_ext <<_ACEOF
  7607. /* end confdefs.h. */
  7608. $ac_includes_default
  7609. #include <$ac_header>
  7610. _ACEOF
  7611. rm -f conftest.$ac_objext
  7612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7613. (eval $ac_compile) 2>conftest.er1
  7614. ac_status=$?
  7615. grep -v '^ *+' conftest.er1 >conftest.err
  7616. rm -f conftest.er1
  7617. cat conftest.err >&5
  7618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7619. (exit $ac_status); } &&
  7620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7622. (eval $ac_try) 2>&5
  7623. ac_status=$?
  7624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7625. (exit $ac_status); }; } &&
  7626. { ac_try='test -s conftest.$ac_objext'
  7627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7628. (eval $ac_try) 2>&5
  7629. ac_status=$?
  7630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); }; }; then
  7632. ac_header_compiler=yes
  7633. else
  7634. echo "$as_me: failed program was:" >&5
  7635. sed 's/^/| /' conftest.$ac_ext >&5
  7636. ac_header_compiler=no
  7637. fi
  7638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7639. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7640. echo "${ECHO_T}$ac_header_compiler" >&6
  7641. # Is the header present?
  7642. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7643. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7644. cat >conftest.$ac_ext <<_ACEOF
  7645. /* confdefs.h. */
  7646. _ACEOF
  7647. cat confdefs.h >>conftest.$ac_ext
  7648. cat >>conftest.$ac_ext <<_ACEOF
  7649. /* end confdefs.h. */
  7650. #include <$ac_header>
  7651. _ACEOF
  7652. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7653. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7654. ac_status=$?
  7655. grep -v '^ *+' conftest.er1 >conftest.err
  7656. rm -f conftest.er1
  7657. cat conftest.err >&5
  7658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659. (exit $ac_status); } >/dev/null; then
  7660. if test -s conftest.err; then
  7661. ac_cpp_err=$ac_c_preproc_warn_flag
  7662. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7663. else
  7664. ac_cpp_err=
  7665. fi
  7666. else
  7667. ac_cpp_err=yes
  7668. fi
  7669. if test -z "$ac_cpp_err"; then
  7670. ac_header_preproc=yes
  7671. else
  7672. echo "$as_me: failed program was:" >&5
  7673. sed 's/^/| /' conftest.$ac_ext >&5
  7674. ac_header_preproc=no
  7675. fi
  7676. rm -f conftest.err conftest.$ac_ext
  7677. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7678. echo "${ECHO_T}$ac_header_preproc" >&6
  7679. # So? What about this header?
  7680. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7681. yes:no: )
  7682. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7683. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7684. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7685. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7686. ac_header_preproc=yes
  7687. ;;
  7688. no:yes:* )
  7689. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7690. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7691. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7692. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7693. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7694. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7695. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7696. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7697. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7698. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7699. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7700. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7701. (
  7702. cat <<\_ASBOX
  7703. ## ----------------------------------- ##
  7704. ## Report this to tujikawa@rednoah.com ##
  7705. ## ----------------------------------- ##
  7706. _ASBOX
  7707. ) |
  7708. sed "s/^/$as_me: WARNING: /" >&2
  7709. ;;
  7710. esac
  7711. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7712. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7713. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7714. echo $ECHO_N "(cached) $ECHO_C" >&6
  7715. else
  7716. eval "$as_ac_Header=\$ac_header_preproc"
  7717. fi
  7718. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7719. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7720. fi
  7721. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7722. cat >>confdefs.h <<_ACEOF
  7723. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7724. _ACEOF
  7725. fi
  7726. done
  7727. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7728. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7729. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7730. __fsetlocking
  7731. do
  7732. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7733. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7734. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7735. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7736. echo $ECHO_N "(cached) $ECHO_C" >&6
  7737. else
  7738. cat >conftest.$ac_ext <<_ACEOF
  7739. /* confdefs.h. */
  7740. _ACEOF
  7741. cat confdefs.h >>conftest.$ac_ext
  7742. cat >>conftest.$ac_ext <<_ACEOF
  7743. /* end confdefs.h. */
  7744. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7745. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7746. #define $ac_func innocuous_$ac_func
  7747. /* System header to define __stub macros and hopefully few prototypes,
  7748. which can conflict with char $ac_func (); below.
  7749. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7750. <limits.h> exists even on freestanding compilers. */
  7751. #ifdef __STDC__
  7752. # include <limits.h>
  7753. #else
  7754. # include <assert.h>
  7755. #endif
  7756. #undef $ac_func
  7757. /* Override any gcc2 internal prototype to avoid an error. */
  7758. #ifdef __cplusplus
  7759. extern "C"
  7760. {
  7761. #endif
  7762. /* We use char because int might match the return type of a gcc2
  7763. builtin and then its argument prototype would still apply. */
  7764. char $ac_func ();
  7765. /* The GNU C library defines this for functions which it implements
  7766. to always fail with ENOSYS. Some functions are actually named
  7767. something starting with __ and the normal name is an alias. */
  7768. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7769. choke me
  7770. #else
  7771. char (*f) () = $ac_func;
  7772. #endif
  7773. #ifdef __cplusplus
  7774. }
  7775. #endif
  7776. int
  7777. main ()
  7778. {
  7779. return f != $ac_func;
  7780. ;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. rm -f conftest.$ac_objext conftest$ac_exeext
  7785. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7786. (eval $ac_link) 2>conftest.er1
  7787. ac_status=$?
  7788. grep -v '^ *+' conftest.er1 >conftest.err
  7789. rm -f conftest.er1
  7790. cat conftest.err >&5
  7791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7792. (exit $ac_status); } &&
  7793. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7795. (eval $ac_try) 2>&5
  7796. ac_status=$?
  7797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7798. (exit $ac_status); }; } &&
  7799. { ac_try='test -s conftest$ac_exeext'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; }; then
  7805. eval "$as_ac_var=yes"
  7806. else
  7807. echo "$as_me: failed program was:" >&5
  7808. sed 's/^/| /' conftest.$ac_ext >&5
  7809. eval "$as_ac_var=no"
  7810. fi
  7811. rm -f conftest.err conftest.$ac_objext \
  7812. conftest$ac_exeext conftest.$ac_ext
  7813. fi
  7814. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7815. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7816. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7817. cat >>confdefs.h <<_ACEOF
  7818. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7819. _ACEOF
  7820. fi
  7821. done
  7822. am_save_CPPFLAGS="$CPPFLAGS"
  7823. for element in $INCICONV; do
  7824. haveit=
  7825. for x in $CPPFLAGS; do
  7826. acl_save_prefix="$prefix"
  7827. prefix="$acl_final_prefix"
  7828. acl_save_exec_prefix="$exec_prefix"
  7829. exec_prefix="$acl_final_exec_prefix"
  7830. eval x=\"$x\"
  7831. exec_prefix="$acl_save_exec_prefix"
  7832. prefix="$acl_save_prefix"
  7833. if test "X$x" = "X$element"; then
  7834. haveit=yes
  7835. break
  7836. fi
  7837. done
  7838. if test -z "$haveit"; then
  7839. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7840. fi
  7841. done
  7842. echo "$as_me:$LINENO: checking for iconv" >&5
  7843. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7844. if test "${am_cv_func_iconv+set}" = set; then
  7845. echo $ECHO_N "(cached) $ECHO_C" >&6
  7846. else
  7847. am_cv_func_iconv="no, consider installing GNU libiconv"
  7848. am_cv_lib_iconv=no
  7849. cat >conftest.$ac_ext <<_ACEOF
  7850. /* confdefs.h. */
  7851. _ACEOF
  7852. cat confdefs.h >>conftest.$ac_ext
  7853. cat >>conftest.$ac_ext <<_ACEOF
  7854. /* end confdefs.h. */
  7855. #include <stdlib.h>
  7856. #include <iconv.h>
  7857. int
  7858. main ()
  7859. {
  7860. iconv_t cd = iconv_open("","");
  7861. iconv(cd,NULL,NULL,NULL,NULL);
  7862. iconv_close(cd);
  7863. ;
  7864. return 0;
  7865. }
  7866. _ACEOF
  7867. rm -f conftest.$ac_objext conftest$ac_exeext
  7868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7869. (eval $ac_link) 2>conftest.er1
  7870. ac_status=$?
  7871. grep -v '^ *+' conftest.er1 >conftest.err
  7872. rm -f conftest.er1
  7873. cat conftest.err >&5
  7874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7875. (exit $ac_status); } &&
  7876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7878. (eval $ac_try) 2>&5
  7879. ac_status=$?
  7880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7881. (exit $ac_status); }; } &&
  7882. { ac_try='test -s conftest$ac_exeext'
  7883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7884. (eval $ac_try) 2>&5
  7885. ac_status=$?
  7886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887. (exit $ac_status); }; }; then
  7888. am_cv_func_iconv=yes
  7889. else
  7890. echo "$as_me: failed program was:" >&5
  7891. sed 's/^/| /' conftest.$ac_ext >&5
  7892. fi
  7893. rm -f conftest.err conftest.$ac_objext \
  7894. conftest$ac_exeext conftest.$ac_ext
  7895. if test "$am_cv_func_iconv" != yes; then
  7896. am_save_LIBS="$LIBS"
  7897. LIBS="$LIBS $LIBICONV"
  7898. cat >conftest.$ac_ext <<_ACEOF
  7899. /* confdefs.h. */
  7900. _ACEOF
  7901. cat confdefs.h >>conftest.$ac_ext
  7902. cat >>conftest.$ac_ext <<_ACEOF
  7903. /* end confdefs.h. */
  7904. #include <stdlib.h>
  7905. #include <iconv.h>
  7906. int
  7907. main ()
  7908. {
  7909. iconv_t cd = iconv_open("","");
  7910. iconv(cd,NULL,NULL,NULL,NULL);
  7911. iconv_close(cd);
  7912. ;
  7913. return 0;
  7914. }
  7915. _ACEOF
  7916. rm -f conftest.$ac_objext conftest$ac_exeext
  7917. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7918. (eval $ac_link) 2>conftest.er1
  7919. ac_status=$?
  7920. grep -v '^ *+' conftest.er1 >conftest.err
  7921. rm -f conftest.er1
  7922. cat conftest.err >&5
  7923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7924. (exit $ac_status); } &&
  7925. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7927. (eval $ac_try) 2>&5
  7928. ac_status=$?
  7929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7930. (exit $ac_status); }; } &&
  7931. { ac_try='test -s conftest$ac_exeext'
  7932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7933. (eval $ac_try) 2>&5
  7934. ac_status=$?
  7935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); }; }; then
  7937. am_cv_lib_iconv=yes
  7938. am_cv_func_iconv=yes
  7939. else
  7940. echo "$as_me: failed program was:" >&5
  7941. sed 's/^/| /' conftest.$ac_ext >&5
  7942. fi
  7943. rm -f conftest.err conftest.$ac_objext \
  7944. conftest$ac_exeext conftest.$ac_ext
  7945. LIBS="$am_save_LIBS"
  7946. fi
  7947. fi
  7948. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7949. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7950. if test "$am_cv_func_iconv" = yes; then
  7951. cat >>confdefs.h <<\_ACEOF
  7952. #define HAVE_ICONV 1
  7953. _ACEOF
  7954. fi
  7955. if test "$am_cv_lib_iconv" = yes; then
  7956. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7957. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7958. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7959. echo "${ECHO_T}$LIBICONV" >&6
  7960. else
  7961. CPPFLAGS="$am_save_CPPFLAGS"
  7962. LIBICONV=
  7963. LTLIBICONV=
  7964. fi
  7965. if test "$am_cv_func_iconv" = yes; then
  7966. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7967. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7968. if test "${am_cv_proto_iconv+set}" = set; then
  7969. echo $ECHO_N "(cached) $ECHO_C" >&6
  7970. else
  7971. cat >conftest.$ac_ext <<_ACEOF
  7972. /* confdefs.h. */
  7973. _ACEOF
  7974. cat confdefs.h >>conftest.$ac_ext
  7975. cat >>conftest.$ac_ext <<_ACEOF
  7976. /* end confdefs.h. */
  7977. #include <stdlib.h>
  7978. #include <iconv.h>
  7979. extern
  7980. #ifdef __cplusplus
  7981. "C"
  7982. #endif
  7983. #if defined(__STDC__) || defined(__cplusplus)
  7984. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7985. #else
  7986. size_t iconv();
  7987. #endif
  7988. int
  7989. main ()
  7990. {
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. rm -f conftest.$ac_objext
  7996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7997. (eval $ac_compile) 2>conftest.er1
  7998. ac_status=$?
  7999. grep -v '^ *+' conftest.er1 >conftest.err
  8000. rm -f conftest.er1
  8001. cat conftest.err >&5
  8002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8003. (exit $ac_status); } &&
  8004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8006. (eval $ac_try) 2>&5
  8007. ac_status=$?
  8008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009. (exit $ac_status); }; } &&
  8010. { ac_try='test -s conftest.$ac_objext'
  8011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8012. (eval $ac_try) 2>&5
  8013. ac_status=$?
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. (exit $ac_status); }; }; then
  8016. am_cv_proto_iconv_arg1=""
  8017. else
  8018. echo "$as_me: failed program was:" >&5
  8019. sed 's/^/| /' conftest.$ac_ext >&5
  8020. am_cv_proto_iconv_arg1="const"
  8021. fi
  8022. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8023. 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);"
  8024. fi
  8025. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8026. echo "$as_me:$LINENO: result: ${ac_t:-
  8027. }$am_cv_proto_iconv" >&5
  8028. echo "${ECHO_T}${ac_t:-
  8029. }$am_cv_proto_iconv" >&6
  8030. cat >>confdefs.h <<_ACEOF
  8031. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8032. _ACEOF
  8033. fi
  8034. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8035. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  8036. if test "${am_cv_langinfo_codeset+set}" = set; then
  8037. echo $ECHO_N "(cached) $ECHO_C" >&6
  8038. else
  8039. cat >conftest.$ac_ext <<_ACEOF
  8040. /* confdefs.h. */
  8041. _ACEOF
  8042. cat confdefs.h >>conftest.$ac_ext
  8043. cat >>conftest.$ac_ext <<_ACEOF
  8044. /* end confdefs.h. */
  8045. #include <langinfo.h>
  8046. int
  8047. main ()
  8048. {
  8049. char* cs = nl_langinfo(CODESET);
  8050. ;
  8051. return 0;
  8052. }
  8053. _ACEOF
  8054. rm -f conftest.$ac_objext conftest$ac_exeext
  8055. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8056. (eval $ac_link) 2>conftest.er1
  8057. ac_status=$?
  8058. grep -v '^ *+' conftest.er1 >conftest.err
  8059. rm -f conftest.er1
  8060. cat conftest.err >&5
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); } &&
  8063. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8065. (eval $ac_try) 2>&5
  8066. ac_status=$?
  8067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. (exit $ac_status); }; } &&
  8069. { ac_try='test -s conftest$ac_exeext'
  8070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8071. (eval $ac_try) 2>&5
  8072. ac_status=$?
  8073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8074. (exit $ac_status); }; }; then
  8075. am_cv_langinfo_codeset=yes
  8076. else
  8077. echo "$as_me: failed program was:" >&5
  8078. sed 's/^/| /' conftest.$ac_ext >&5
  8079. am_cv_langinfo_codeset=no
  8080. fi
  8081. rm -f conftest.err conftest.$ac_objext \
  8082. conftest$ac_exeext conftest.$ac_ext
  8083. fi
  8084. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8085. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  8086. if test $am_cv_langinfo_codeset = yes; then
  8087. cat >>confdefs.h <<\_ACEOF
  8088. #define HAVE_LANGINFO_CODESET 1
  8089. _ACEOF
  8090. fi
  8091. if test $ac_cv_header_locale_h = yes; then
  8092. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8093. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  8094. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8095. echo $ECHO_N "(cached) $ECHO_C" >&6
  8096. else
  8097. cat >conftest.$ac_ext <<_ACEOF
  8098. /* confdefs.h. */
  8099. _ACEOF
  8100. cat confdefs.h >>conftest.$ac_ext
  8101. cat >>conftest.$ac_ext <<_ACEOF
  8102. /* end confdefs.h. */
  8103. #include <locale.h>
  8104. int
  8105. main ()
  8106. {
  8107. return LC_MESSAGES
  8108. ;
  8109. return 0;
  8110. }
  8111. _ACEOF
  8112. rm -f conftest.$ac_objext conftest$ac_exeext
  8113. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8114. (eval $ac_link) 2>conftest.er1
  8115. ac_status=$?
  8116. grep -v '^ *+' conftest.er1 >conftest.err
  8117. rm -f conftest.er1
  8118. cat conftest.err >&5
  8119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8120. (exit $ac_status); } &&
  8121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8123. (eval $ac_try) 2>&5
  8124. ac_status=$?
  8125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126. (exit $ac_status); }; } &&
  8127. { ac_try='test -s conftest$ac_exeext'
  8128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8129. (eval $ac_try) 2>&5
  8130. ac_status=$?
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); }; }; then
  8133. am_cv_val_LC_MESSAGES=yes
  8134. else
  8135. echo "$as_me: failed program was:" >&5
  8136. sed 's/^/| /' conftest.$ac_ext >&5
  8137. am_cv_val_LC_MESSAGES=no
  8138. fi
  8139. rm -f conftest.err conftest.$ac_objext \
  8140. conftest$ac_exeext conftest.$ac_ext
  8141. fi
  8142. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8143. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8144. if test $am_cv_val_LC_MESSAGES = yes; then
  8145. cat >>confdefs.h <<\_ACEOF
  8146. #define HAVE_LC_MESSAGES 1
  8147. _ACEOF
  8148. fi
  8149. fi
  8150. for ac_prog in bison
  8151. do
  8152. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8153. set dummy $ac_prog; ac_word=$2
  8154. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8155. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8156. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8157. echo $ECHO_N "(cached) $ECHO_C" >&6
  8158. else
  8159. if test -n "$INTLBISON"; then
  8160. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8161. else
  8162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8163. for as_dir in $PATH
  8164. do
  8165. IFS=$as_save_IFS
  8166. test -z "$as_dir" && as_dir=.
  8167. for ac_exec_ext in '' $ac_executable_extensions; do
  8168. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8169. ac_cv_prog_INTLBISON="$ac_prog"
  8170. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8171. break 2
  8172. fi
  8173. done
  8174. done
  8175. fi
  8176. fi
  8177. INTLBISON=$ac_cv_prog_INTLBISON
  8178. if test -n "$INTLBISON"; then
  8179. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8180. echo "${ECHO_T}$INTLBISON" >&6
  8181. else
  8182. echo "$as_me:$LINENO: result: no" >&5
  8183. echo "${ECHO_T}no" >&6
  8184. fi
  8185. test -n "$INTLBISON" && break
  8186. done
  8187. if test -z "$INTLBISON"; then
  8188. ac_verc_fail=yes
  8189. else
  8190. echo "$as_me:$LINENO: checking version of bison" >&5
  8191. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8192. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8193. case $ac_prog_version in
  8194. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8195. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8196. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8197. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8198. esac
  8199. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8200. echo "${ECHO_T}$ac_prog_version" >&6
  8201. fi
  8202. if test $ac_verc_fail = yes; then
  8203. INTLBISON=:
  8204. fi
  8205. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8206. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8207. # Check whether --enable-nls or --disable-nls was given.
  8208. if test "${enable_nls+set}" = set; then
  8209. enableval="$enable_nls"
  8210. USE_NLS=$enableval
  8211. else
  8212. USE_NLS=yes
  8213. fi;
  8214. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8215. echo "${ECHO_T}$USE_NLS" >&6
  8216. BUILD_INCLUDED_LIBINTL=no
  8217. USE_INCLUDED_LIBINTL=no
  8218. LIBINTL=
  8219. LTLIBINTL=
  8220. POSUB=
  8221. if test "$USE_NLS" = "yes"; then
  8222. gt_use_preinstalled_gnugettext=no
  8223. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8224. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8225. # Check whether --with-included-gettext or --without-included-gettext was given.
  8226. if test "${with_included_gettext+set}" = set; then
  8227. withval="$with_included_gettext"
  8228. nls_cv_force_use_gnu_gettext=$withval
  8229. else
  8230. nls_cv_force_use_gnu_gettext=no
  8231. fi;
  8232. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8233. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8234. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8235. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8236. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8237. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8238. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8239. echo $ECHO_N "(cached) $ECHO_C" >&6
  8240. else
  8241. cat >conftest.$ac_ext <<_ACEOF
  8242. /* confdefs.h. */
  8243. _ACEOF
  8244. cat confdefs.h >>conftest.$ac_ext
  8245. cat >>conftest.$ac_ext <<_ACEOF
  8246. /* end confdefs.h. */
  8247. #include <libintl.h>
  8248. extern int _nl_msg_cat_cntr;
  8249. extern int *_nl_domain_bindings;
  8250. int
  8251. main ()
  8252. {
  8253. bindtextdomain ("", "");
  8254. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8255. ;
  8256. return 0;
  8257. }
  8258. _ACEOF
  8259. rm -f conftest.$ac_objext conftest$ac_exeext
  8260. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8261. (eval $ac_link) 2>conftest.er1
  8262. ac_status=$?
  8263. grep -v '^ *+' conftest.er1 >conftest.err
  8264. rm -f conftest.er1
  8265. cat conftest.err >&5
  8266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8267. (exit $ac_status); } &&
  8268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8270. (eval $ac_try) 2>&5
  8271. ac_status=$?
  8272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8273. (exit $ac_status); }; } &&
  8274. { ac_try='test -s conftest$ac_exeext'
  8275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8276. (eval $ac_try) 2>&5
  8277. ac_status=$?
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); }; }; then
  8280. gt_cv_func_gnugettext1_libc=yes
  8281. else
  8282. echo "$as_me: failed program was:" >&5
  8283. sed 's/^/| /' conftest.$ac_ext >&5
  8284. gt_cv_func_gnugettext1_libc=no
  8285. fi
  8286. rm -f conftest.err conftest.$ac_objext \
  8287. conftest$ac_exeext conftest.$ac_ext
  8288. fi
  8289. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8290. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8291. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8292. use_additional=yes
  8293. acl_save_prefix="$prefix"
  8294. prefix="$acl_final_prefix"
  8295. acl_save_exec_prefix="$exec_prefix"
  8296. exec_prefix="$acl_final_exec_prefix"
  8297. eval additional_includedir=\"$includedir\"
  8298. eval additional_libdir=\"$libdir\"
  8299. exec_prefix="$acl_save_exec_prefix"
  8300. prefix="$acl_save_prefix"
  8301. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8302. if test "${with_libintl_prefix+set}" = set; then
  8303. withval="$with_libintl_prefix"
  8304. if test "X$withval" = "Xno"; then
  8305. use_additional=no
  8306. else
  8307. if test "X$withval" = "X"; then
  8308. acl_save_prefix="$prefix"
  8309. prefix="$acl_final_prefix"
  8310. acl_save_exec_prefix="$exec_prefix"
  8311. exec_prefix="$acl_final_exec_prefix"
  8312. eval additional_includedir=\"$includedir\"
  8313. eval additional_libdir=\"$libdir\"
  8314. exec_prefix="$acl_save_exec_prefix"
  8315. prefix="$acl_save_prefix"
  8316. else
  8317. additional_includedir="$withval/include"
  8318. additional_libdir="$withval/lib"
  8319. fi
  8320. fi
  8321. fi;
  8322. LIBINTL=
  8323. LTLIBINTL=
  8324. INCINTL=
  8325. rpathdirs=
  8326. ltrpathdirs=
  8327. names_already_handled=
  8328. names_next_round='intl '
  8329. while test -n "$names_next_round"; do
  8330. names_this_round="$names_next_round"
  8331. names_next_round=
  8332. for name in $names_this_round; do
  8333. already_handled=
  8334. for n in $names_already_handled; do
  8335. if test "$n" = "$name"; then
  8336. already_handled=yes
  8337. break
  8338. fi
  8339. done
  8340. if test -z "$already_handled"; then
  8341. names_already_handled="$names_already_handled $name"
  8342. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8343. eval value=\"\$HAVE_LIB$uppername\"
  8344. if test -n "$value"; then
  8345. if test "$value" = yes; then
  8346. eval value=\"\$LIB$uppername\"
  8347. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8348. eval value=\"\$LTLIB$uppername\"
  8349. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8350. else
  8351. :
  8352. fi
  8353. else
  8354. found_dir=
  8355. found_la=
  8356. found_so=
  8357. found_a=
  8358. if test $use_additional = yes; then
  8359. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8360. found_dir="$additional_libdir"
  8361. found_so="$additional_libdir/lib$name.$shlibext"
  8362. if test -f "$additional_libdir/lib$name.la"; then
  8363. found_la="$additional_libdir/lib$name.la"
  8364. fi
  8365. else
  8366. if test -f "$additional_libdir/lib$name.$libext"; then
  8367. found_dir="$additional_libdir"
  8368. found_a="$additional_libdir/lib$name.$libext"
  8369. if test -f "$additional_libdir/lib$name.la"; then
  8370. found_la="$additional_libdir/lib$name.la"
  8371. fi
  8372. fi
  8373. fi
  8374. fi
  8375. if test "X$found_dir" = "X"; then
  8376. for x in $LDFLAGS $LTLIBINTL; do
  8377. acl_save_prefix="$prefix"
  8378. prefix="$acl_final_prefix"
  8379. acl_save_exec_prefix="$exec_prefix"
  8380. exec_prefix="$acl_final_exec_prefix"
  8381. eval x=\"$x\"
  8382. exec_prefix="$acl_save_exec_prefix"
  8383. prefix="$acl_save_prefix"
  8384. case "$x" in
  8385. -L*)
  8386. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8387. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8388. found_dir="$dir"
  8389. found_so="$dir/lib$name.$shlibext"
  8390. if test -f "$dir/lib$name.la"; then
  8391. found_la="$dir/lib$name.la"
  8392. fi
  8393. else
  8394. if test -f "$dir/lib$name.$libext"; then
  8395. found_dir="$dir"
  8396. found_a="$dir/lib$name.$libext"
  8397. if test -f "$dir/lib$name.la"; then
  8398. found_la="$dir/lib$name.la"
  8399. fi
  8400. fi
  8401. fi
  8402. ;;
  8403. esac
  8404. if test "X$found_dir" != "X"; then
  8405. break
  8406. fi
  8407. done
  8408. fi
  8409. if test "X$found_dir" != "X"; then
  8410. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8411. if test "X$found_so" != "X"; then
  8412. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8413. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8414. else
  8415. haveit=
  8416. for x in $ltrpathdirs; do
  8417. if test "X$x" = "X$found_dir"; then
  8418. haveit=yes
  8419. break
  8420. fi
  8421. done
  8422. if test -z "$haveit"; then
  8423. ltrpathdirs="$ltrpathdirs $found_dir"
  8424. fi
  8425. if test "$hardcode_direct" = yes; then
  8426. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8427. else
  8428. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8429. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8430. haveit=
  8431. for x in $rpathdirs; do
  8432. if test "X$x" = "X$found_dir"; then
  8433. haveit=yes
  8434. break
  8435. fi
  8436. done
  8437. if test -z "$haveit"; then
  8438. rpathdirs="$rpathdirs $found_dir"
  8439. fi
  8440. else
  8441. haveit=
  8442. for x in $LDFLAGS $LIBINTL; do
  8443. acl_save_prefix="$prefix"
  8444. prefix="$acl_final_prefix"
  8445. acl_save_exec_prefix="$exec_prefix"
  8446. exec_prefix="$acl_final_exec_prefix"
  8447. eval x=\"$x\"
  8448. exec_prefix="$acl_save_exec_prefix"
  8449. prefix="$acl_save_prefix"
  8450. if test "X$x" = "X-L$found_dir"; then
  8451. haveit=yes
  8452. break
  8453. fi
  8454. done
  8455. if test -z "$haveit"; then
  8456. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8457. fi
  8458. if test "$hardcode_minus_L" != no; then
  8459. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8460. else
  8461. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8462. fi
  8463. fi
  8464. fi
  8465. fi
  8466. else
  8467. if test "X$found_a" != "X"; then
  8468. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8469. else
  8470. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8471. fi
  8472. fi
  8473. additional_includedir=
  8474. case "$found_dir" in
  8475. */lib | */lib/)
  8476. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8477. additional_includedir="$basedir/include"
  8478. ;;
  8479. esac
  8480. if test "X$additional_includedir" != "X"; then
  8481. if test "X$additional_includedir" != "X/usr/include"; then
  8482. haveit=
  8483. if test "X$additional_includedir" = "X/usr/local/include"; then
  8484. if test -n "$GCC"; then
  8485. case $host_os in
  8486. linux*) haveit=yes;;
  8487. esac
  8488. fi
  8489. fi
  8490. if test -z "$haveit"; then
  8491. for x in $CPPFLAGS $INCINTL; do
  8492. acl_save_prefix="$prefix"
  8493. prefix="$acl_final_prefix"
  8494. acl_save_exec_prefix="$exec_prefix"
  8495. exec_prefix="$acl_final_exec_prefix"
  8496. eval x=\"$x\"
  8497. exec_prefix="$acl_save_exec_prefix"
  8498. prefix="$acl_save_prefix"
  8499. if test "X$x" = "X-I$additional_includedir"; then
  8500. haveit=yes
  8501. break
  8502. fi
  8503. done
  8504. if test -z "$haveit"; then
  8505. if test -d "$additional_includedir"; then
  8506. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8507. fi
  8508. fi
  8509. fi
  8510. fi
  8511. fi
  8512. if test -n "$found_la"; then
  8513. save_libdir="$libdir"
  8514. case "$found_la" in
  8515. */* | *\\*) . "$found_la" ;;
  8516. *) . "./$found_la" ;;
  8517. esac
  8518. libdir="$save_libdir"
  8519. for dep in $dependency_libs; do
  8520. case "$dep" in
  8521. -L*)
  8522. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8523. if test "X$additional_libdir" != "X/usr/lib"; then
  8524. haveit=
  8525. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8526. if test -n "$GCC"; then
  8527. case $host_os in
  8528. linux*) haveit=yes;;
  8529. esac
  8530. fi
  8531. fi
  8532. if test -z "$haveit"; then
  8533. haveit=
  8534. for x in $LDFLAGS $LIBINTL; do
  8535. acl_save_prefix="$prefix"
  8536. prefix="$acl_final_prefix"
  8537. acl_save_exec_prefix="$exec_prefix"
  8538. exec_prefix="$acl_final_exec_prefix"
  8539. eval x=\"$x\"
  8540. exec_prefix="$acl_save_exec_prefix"
  8541. prefix="$acl_save_prefix"
  8542. if test "X$x" = "X-L$additional_libdir"; then
  8543. haveit=yes
  8544. break
  8545. fi
  8546. done
  8547. if test -z "$haveit"; then
  8548. if test -d "$additional_libdir"; then
  8549. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8550. fi
  8551. fi
  8552. haveit=
  8553. for x in $LDFLAGS $LTLIBINTL; do
  8554. acl_save_prefix="$prefix"
  8555. prefix="$acl_final_prefix"
  8556. acl_save_exec_prefix="$exec_prefix"
  8557. exec_prefix="$acl_final_exec_prefix"
  8558. eval x=\"$x\"
  8559. exec_prefix="$acl_save_exec_prefix"
  8560. prefix="$acl_save_prefix"
  8561. if test "X$x" = "X-L$additional_libdir"; then
  8562. haveit=yes
  8563. break
  8564. fi
  8565. done
  8566. if test -z "$haveit"; then
  8567. if test -d "$additional_libdir"; then
  8568. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8569. fi
  8570. fi
  8571. fi
  8572. fi
  8573. ;;
  8574. -R*)
  8575. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8576. if test "$enable_rpath" != no; then
  8577. haveit=
  8578. for x in $rpathdirs; do
  8579. if test "X$x" = "X$dir"; then
  8580. haveit=yes
  8581. break
  8582. fi
  8583. done
  8584. if test -z "$haveit"; then
  8585. rpathdirs="$rpathdirs $dir"
  8586. fi
  8587. haveit=
  8588. for x in $ltrpathdirs; do
  8589. if test "X$x" = "X$dir"; then
  8590. haveit=yes
  8591. break
  8592. fi
  8593. done
  8594. if test -z "$haveit"; then
  8595. ltrpathdirs="$ltrpathdirs $dir"
  8596. fi
  8597. fi
  8598. ;;
  8599. -l*)
  8600. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8601. ;;
  8602. *.la)
  8603. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8604. ;;
  8605. *)
  8606. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8607. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8608. ;;
  8609. esac
  8610. done
  8611. fi
  8612. else
  8613. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8614. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8615. fi
  8616. fi
  8617. fi
  8618. done
  8619. done
  8620. if test "X$rpathdirs" != "X"; then
  8621. if test -n "$hardcode_libdir_separator"; then
  8622. alldirs=
  8623. for found_dir in $rpathdirs; do
  8624. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8625. done
  8626. acl_save_libdir="$libdir"
  8627. libdir="$alldirs"
  8628. eval flag=\"$hardcode_libdir_flag_spec\"
  8629. libdir="$acl_save_libdir"
  8630. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8631. else
  8632. for found_dir in $rpathdirs; do
  8633. acl_save_libdir="$libdir"
  8634. libdir="$found_dir"
  8635. eval flag=\"$hardcode_libdir_flag_spec\"
  8636. libdir="$acl_save_libdir"
  8637. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8638. done
  8639. fi
  8640. fi
  8641. if test "X$ltrpathdirs" != "X"; then
  8642. for found_dir in $ltrpathdirs; do
  8643. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8644. done
  8645. fi
  8646. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8647. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8648. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8649. echo $ECHO_N "(cached) $ECHO_C" >&6
  8650. else
  8651. gt_save_CPPFLAGS="$CPPFLAGS"
  8652. CPPFLAGS="$CPPFLAGS $INCINTL"
  8653. gt_save_LIBS="$LIBS"
  8654. LIBS="$LIBS $LIBINTL"
  8655. cat >conftest.$ac_ext <<_ACEOF
  8656. /* confdefs.h. */
  8657. _ACEOF
  8658. cat confdefs.h >>conftest.$ac_ext
  8659. cat >>conftest.$ac_ext <<_ACEOF
  8660. /* end confdefs.h. */
  8661. #include <libintl.h>
  8662. extern int _nl_msg_cat_cntr;
  8663. extern
  8664. #ifdef __cplusplus
  8665. "C"
  8666. #endif
  8667. const char *_nl_expand_alias ();
  8668. int
  8669. main ()
  8670. {
  8671. bindtextdomain ("", "");
  8672. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8673. ;
  8674. return 0;
  8675. }
  8676. _ACEOF
  8677. rm -f conftest.$ac_objext conftest$ac_exeext
  8678. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8679. (eval $ac_link) 2>conftest.er1
  8680. ac_status=$?
  8681. grep -v '^ *+' conftest.er1 >conftest.err
  8682. rm -f conftest.er1
  8683. cat conftest.err >&5
  8684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8685. (exit $ac_status); } &&
  8686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8688. (eval $ac_try) 2>&5
  8689. ac_status=$?
  8690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8691. (exit $ac_status); }; } &&
  8692. { ac_try='test -s conftest$ac_exeext'
  8693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8694. (eval $ac_try) 2>&5
  8695. ac_status=$?
  8696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8697. (exit $ac_status); }; }; then
  8698. gt_cv_func_gnugettext1_libintl=yes
  8699. else
  8700. echo "$as_me: failed program was:" >&5
  8701. sed 's/^/| /' conftest.$ac_ext >&5
  8702. gt_cv_func_gnugettext1_libintl=no
  8703. fi
  8704. rm -f conftest.err conftest.$ac_objext \
  8705. conftest$ac_exeext conftest.$ac_ext
  8706. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8707. LIBS="$LIBS $LIBICONV"
  8708. cat >conftest.$ac_ext <<_ACEOF
  8709. /* confdefs.h. */
  8710. _ACEOF
  8711. cat confdefs.h >>conftest.$ac_ext
  8712. cat >>conftest.$ac_ext <<_ACEOF
  8713. /* end confdefs.h. */
  8714. #include <libintl.h>
  8715. extern int _nl_msg_cat_cntr;
  8716. extern
  8717. #ifdef __cplusplus
  8718. "C"
  8719. #endif
  8720. const char *_nl_expand_alias ();
  8721. int
  8722. main ()
  8723. {
  8724. bindtextdomain ("", "");
  8725. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8726. ;
  8727. return 0;
  8728. }
  8729. _ACEOF
  8730. rm -f conftest.$ac_objext conftest$ac_exeext
  8731. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8732. (eval $ac_link) 2>conftest.er1
  8733. ac_status=$?
  8734. grep -v '^ *+' conftest.er1 >conftest.err
  8735. rm -f conftest.er1
  8736. cat conftest.err >&5
  8737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8738. (exit $ac_status); } &&
  8739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8741. (eval $ac_try) 2>&5
  8742. ac_status=$?
  8743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); }; } &&
  8745. { ac_try='test -s conftest$ac_exeext'
  8746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8747. (eval $ac_try) 2>&5
  8748. ac_status=$?
  8749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8750. (exit $ac_status); }; }; then
  8751. LIBINTL="$LIBINTL $LIBICONV"
  8752. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8753. gt_cv_func_gnugettext1_libintl=yes
  8754. else
  8755. echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. fi
  8758. rm -f conftest.err conftest.$ac_objext \
  8759. conftest$ac_exeext conftest.$ac_ext
  8760. fi
  8761. CPPFLAGS="$gt_save_CPPFLAGS"
  8762. LIBS="$gt_save_LIBS"
  8763. fi
  8764. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8765. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8766. fi
  8767. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8768. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8769. && test "$PACKAGE" != gettext-runtime \
  8770. && test "$PACKAGE" != gettext-tools; }; then
  8771. gt_use_preinstalled_gnugettext=yes
  8772. else
  8773. LIBINTL=
  8774. LTLIBINTL=
  8775. INCINTL=
  8776. fi
  8777. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8778. nls_cv_use_gnu_gettext=yes
  8779. fi
  8780. fi
  8781. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8782. BUILD_INCLUDED_LIBINTL=yes
  8783. USE_INCLUDED_LIBINTL=yes
  8784. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8785. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8786. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8787. fi
  8788. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8789. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8790. CATOBJEXT=.gmo
  8791. fi
  8792. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8793. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8794. cat >>confdefs.h <<\_ACEOF
  8795. #define ENABLE_NLS 1
  8796. _ACEOF
  8797. else
  8798. USE_NLS=no
  8799. fi
  8800. fi
  8801. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8802. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8803. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8804. echo "${ECHO_T}$USE_NLS" >&6
  8805. if test "$USE_NLS" = "yes"; then
  8806. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8807. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8808. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8809. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8810. gt_source="external libintl"
  8811. else
  8812. gt_source="libc"
  8813. fi
  8814. else
  8815. gt_source="included intl directory"
  8816. fi
  8817. echo "$as_me:$LINENO: result: $gt_source" >&5
  8818. echo "${ECHO_T}$gt_source" >&6
  8819. fi
  8820. if test "$USE_NLS" = "yes"; then
  8821. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8822. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8823. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8824. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8825. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8826. echo "${ECHO_T}$LIBINTL" >&6
  8827. for element in $INCINTL; do
  8828. haveit=
  8829. for x in $CPPFLAGS; do
  8830. acl_save_prefix="$prefix"
  8831. prefix="$acl_final_prefix"
  8832. acl_save_exec_prefix="$exec_prefix"
  8833. exec_prefix="$acl_final_exec_prefix"
  8834. eval x=\"$x\"
  8835. exec_prefix="$acl_save_exec_prefix"
  8836. prefix="$acl_save_prefix"
  8837. if test "X$x" = "X$element"; then
  8838. haveit=yes
  8839. break
  8840. fi
  8841. done
  8842. if test -z "$haveit"; then
  8843. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8844. fi
  8845. done
  8846. fi
  8847. cat >>confdefs.h <<\_ACEOF
  8848. #define HAVE_GETTEXT 1
  8849. _ACEOF
  8850. cat >>confdefs.h <<\_ACEOF
  8851. #define HAVE_DCGETTEXT 1
  8852. _ACEOF
  8853. fi
  8854. POSUB=po
  8855. fi
  8856. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8857. BUILD_INCLUDED_LIBINTL=yes
  8858. fi
  8859. nls_cv_header_intl=
  8860. nls_cv_header_libgt=
  8861. DATADIRNAME=share
  8862. INSTOBJEXT=.mo
  8863. GENCAT=gencat
  8864. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8865. INTLOBJS="\$(GETTOBJS)"
  8866. fi
  8867. INTL_LIBTOOL_SUFFIX_PREFIX=
  8868. INTLLIBS="$LIBINTL"
  8869. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8870. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8871. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8872. echo $ECHO_N "(cached) $ECHO_C" >&6
  8873. else
  8874. cat >conftest.$ac_ext <<_ACEOF
  8875. /* confdefs.h. */
  8876. _ACEOF
  8877. cat confdefs.h >>conftest.$ac_ext
  8878. cat >>conftest.$ac_ext <<_ACEOF
  8879. /* end confdefs.h. */
  8880. $ac_includes_default
  8881. int
  8882. main ()
  8883. {
  8884. error_at_line (0, 0, "", 0, "");
  8885. ;
  8886. return 0;
  8887. }
  8888. _ACEOF
  8889. rm -f conftest.$ac_objext conftest$ac_exeext
  8890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8891. (eval $ac_link) 2>conftest.er1
  8892. ac_status=$?
  8893. grep -v '^ *+' conftest.er1 >conftest.err
  8894. rm -f conftest.er1
  8895. cat conftest.err >&5
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); } &&
  8898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8900. (eval $ac_try) 2>&5
  8901. ac_status=$?
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); }; } &&
  8904. { ac_try='test -s conftest$ac_exeext'
  8905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8906. (eval $ac_try) 2>&5
  8907. ac_status=$?
  8908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8909. (exit $ac_status); }; }; then
  8910. ac_cv_lib_error_at_line=yes
  8911. else
  8912. echo "$as_me: failed program was:" >&5
  8913. sed 's/^/| /' conftest.$ac_ext >&5
  8914. ac_cv_lib_error_at_line=no
  8915. fi
  8916. rm -f conftest.err conftest.$ac_objext \
  8917. conftest$ac_exeext conftest.$ac_ext
  8918. fi
  8919. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8920. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8921. if test $ac_cv_lib_error_at_line = no; then
  8922. case $LIBOBJS in
  8923. "error.$ac_objext" | \
  8924. *" error.$ac_objext" | \
  8925. "error.$ac_objext "* | \
  8926. *" error.$ac_objext "* ) ;;
  8927. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8928. esac
  8929. fi
  8930. for ac_header in stdlib.h
  8931. do
  8932. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8933. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8934. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8935. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8936. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8937. echo $ECHO_N "(cached) $ECHO_C" >&6
  8938. fi
  8939. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8940. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8941. else
  8942. # Is the header compilable?
  8943. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8944. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8945. cat >conftest.$ac_ext <<_ACEOF
  8946. /* confdefs.h. */
  8947. _ACEOF
  8948. cat confdefs.h >>conftest.$ac_ext
  8949. cat >>conftest.$ac_ext <<_ACEOF
  8950. /* end confdefs.h. */
  8951. $ac_includes_default
  8952. #include <$ac_header>
  8953. _ACEOF
  8954. rm -f conftest.$ac_objext
  8955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8956. (eval $ac_compile) 2>conftest.er1
  8957. ac_status=$?
  8958. grep -v '^ *+' conftest.er1 >conftest.err
  8959. rm -f conftest.er1
  8960. cat conftest.err >&5
  8961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8962. (exit $ac_status); } &&
  8963. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8965. (eval $ac_try) 2>&5
  8966. ac_status=$?
  8967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8968. (exit $ac_status); }; } &&
  8969. { ac_try='test -s conftest.$ac_objext'
  8970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8971. (eval $ac_try) 2>&5
  8972. ac_status=$?
  8973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8974. (exit $ac_status); }; }; then
  8975. ac_header_compiler=yes
  8976. else
  8977. echo "$as_me: failed program was:" >&5
  8978. sed 's/^/| /' conftest.$ac_ext >&5
  8979. ac_header_compiler=no
  8980. fi
  8981. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8982. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8983. echo "${ECHO_T}$ac_header_compiler" >&6
  8984. # Is the header present?
  8985. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8986. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8987. cat >conftest.$ac_ext <<_ACEOF
  8988. /* confdefs.h. */
  8989. _ACEOF
  8990. cat confdefs.h >>conftest.$ac_ext
  8991. cat >>conftest.$ac_ext <<_ACEOF
  8992. /* end confdefs.h. */
  8993. #include <$ac_header>
  8994. _ACEOF
  8995. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8996. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8997. ac_status=$?
  8998. grep -v '^ *+' conftest.er1 >conftest.err
  8999. rm -f conftest.er1
  9000. cat conftest.err >&5
  9001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9002. (exit $ac_status); } >/dev/null; then
  9003. if test -s conftest.err; then
  9004. ac_cpp_err=$ac_c_preproc_warn_flag
  9005. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9006. else
  9007. ac_cpp_err=
  9008. fi
  9009. else
  9010. ac_cpp_err=yes
  9011. fi
  9012. if test -z "$ac_cpp_err"; then
  9013. ac_header_preproc=yes
  9014. else
  9015. echo "$as_me: failed program was:" >&5
  9016. sed 's/^/| /' conftest.$ac_ext >&5
  9017. ac_header_preproc=no
  9018. fi
  9019. rm -f conftest.err conftest.$ac_ext
  9020. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9021. echo "${ECHO_T}$ac_header_preproc" >&6
  9022. # So? What about this header?
  9023. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9024. yes:no: )
  9025. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9026. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9027. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9028. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9029. ac_header_preproc=yes
  9030. ;;
  9031. no:yes:* )
  9032. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9033. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9034. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9035. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9036. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9037. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9038. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9039. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9040. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9041. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9042. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9043. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9044. (
  9045. cat <<\_ASBOX
  9046. ## ----------------------------------- ##
  9047. ## Report this to tujikawa@rednoah.com ##
  9048. ## ----------------------------------- ##
  9049. _ASBOX
  9050. ) |
  9051. sed "s/^/$as_me: WARNING: /" >&2
  9052. ;;
  9053. esac
  9054. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9055. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9056. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9057. echo $ECHO_N "(cached) $ECHO_C" >&6
  9058. else
  9059. eval "$as_ac_Header=\$ac_header_preproc"
  9060. fi
  9061. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9062. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9063. fi
  9064. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9065. cat >>confdefs.h <<_ACEOF
  9066. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9067. _ACEOF
  9068. fi
  9069. done
  9070. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9071. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9072. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9073. echo $ECHO_N "(cached) $ECHO_C" >&6
  9074. else
  9075. if test "$cross_compiling" = yes; then
  9076. ac_cv_func_malloc_0_nonnull=no
  9077. else
  9078. cat >conftest.$ac_ext <<_ACEOF
  9079. /* confdefs.h. */
  9080. _ACEOF
  9081. cat confdefs.h >>conftest.$ac_ext
  9082. cat >>conftest.$ac_ext <<_ACEOF
  9083. /* end confdefs.h. */
  9084. #if STDC_HEADERS || HAVE_STDLIB_H
  9085. # include <stdlib.h>
  9086. #else
  9087. char *malloc ();
  9088. #endif
  9089. int
  9090. main ()
  9091. {
  9092. exit (malloc (0) ? 0 : 1);
  9093. ;
  9094. return 0;
  9095. }
  9096. _ACEOF
  9097. rm -f conftest$ac_exeext
  9098. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9099. (eval $ac_link) 2>&5
  9100. ac_status=$?
  9101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9104. (eval $ac_try) 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); }; }; then
  9108. ac_cv_func_malloc_0_nonnull=yes
  9109. else
  9110. echo "$as_me: program exited with status $ac_status" >&5
  9111. echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. ( exit $ac_status )
  9114. ac_cv_func_malloc_0_nonnull=no
  9115. fi
  9116. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9117. fi
  9118. fi
  9119. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9120. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9121. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9122. cat >>confdefs.h <<\_ACEOF
  9123. #define HAVE_MALLOC 1
  9124. _ACEOF
  9125. else
  9126. cat >>confdefs.h <<\_ACEOF
  9127. #define HAVE_MALLOC 0
  9128. _ACEOF
  9129. case $LIBOBJS in
  9130. "malloc.$ac_objext" | \
  9131. *" malloc.$ac_objext" | \
  9132. "malloc.$ac_objext "* | \
  9133. *" malloc.$ac_objext "* ) ;;
  9134. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9135. esac
  9136. cat >>confdefs.h <<\_ACEOF
  9137. #define malloc rpl_malloc
  9138. _ACEOF
  9139. fi
  9140. echo "$as_me:$LINENO: checking for working memcmp" >&5
  9141. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  9142. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9143. echo $ECHO_N "(cached) $ECHO_C" >&6
  9144. else
  9145. if test "$cross_compiling" = yes; then
  9146. ac_cv_func_memcmp_working=no
  9147. else
  9148. cat >conftest.$ac_ext <<_ACEOF
  9149. /* confdefs.h. */
  9150. _ACEOF
  9151. cat confdefs.h >>conftest.$ac_ext
  9152. cat >>conftest.$ac_ext <<_ACEOF
  9153. /* end confdefs.h. */
  9154. $ac_includes_default
  9155. int
  9156. main ()
  9157. {
  9158. /* Some versions of memcmp are not 8-bit clean. */
  9159. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9160. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9161. exit (1);
  9162. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9163. or more and with at least one buffer not starting on a 4-byte boundary.
  9164. William Lewis provided this test program. */
  9165. {
  9166. char foo[21];
  9167. char bar[21];
  9168. int i;
  9169. for (i = 0; i < 4; i++)
  9170. {
  9171. char *a = foo + i;
  9172. char *b = bar + i;
  9173. strcpy (a, "--------01111111");
  9174. strcpy (b, "--------10000000");
  9175. if (memcmp (a, b, 16) >= 0)
  9176. exit (1);
  9177. }
  9178. exit (0);
  9179. }
  9180. ;
  9181. return 0;
  9182. }
  9183. _ACEOF
  9184. rm -f conftest$ac_exeext
  9185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9186. (eval $ac_link) 2>&5
  9187. ac_status=$?
  9188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9189. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9191. (eval $ac_try) 2>&5
  9192. ac_status=$?
  9193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9194. (exit $ac_status); }; }; then
  9195. ac_cv_func_memcmp_working=yes
  9196. else
  9197. echo "$as_me: program exited with status $ac_status" >&5
  9198. echo "$as_me: failed program was:" >&5
  9199. sed 's/^/| /' conftest.$ac_ext >&5
  9200. ( exit $ac_status )
  9201. ac_cv_func_memcmp_working=no
  9202. fi
  9203. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9204. fi
  9205. fi
  9206. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9207. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9208. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9209. "memcmp.$ac_objext" | \
  9210. *" memcmp.$ac_objext" | \
  9211. "memcmp.$ac_objext "* | \
  9212. *" memcmp.$ac_objext "* ) ;;
  9213. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9214. esac
  9215. for ac_header in stdlib.h unistd.h
  9216. do
  9217. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9218. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9219. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9220. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9221. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9222. echo $ECHO_N "(cached) $ECHO_C" >&6
  9223. fi
  9224. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9225. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9226. else
  9227. # Is the header compilable?
  9228. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9229. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236. $ac_includes_default
  9237. #include <$ac_header>
  9238. _ACEOF
  9239. rm -f conftest.$ac_objext
  9240. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9241. (eval $ac_compile) 2>conftest.er1
  9242. ac_status=$?
  9243. grep -v '^ *+' conftest.er1 >conftest.err
  9244. rm -f conftest.er1
  9245. cat conftest.err >&5
  9246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); } &&
  9248. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9250. (eval $ac_try) 2>&5
  9251. ac_status=$?
  9252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9253. (exit $ac_status); }; } &&
  9254. { ac_try='test -s conftest.$ac_objext'
  9255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9256. (eval $ac_try) 2>&5
  9257. ac_status=$?
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); }; }; then
  9260. ac_header_compiler=yes
  9261. else
  9262. echo "$as_me: failed program was:" >&5
  9263. sed 's/^/| /' conftest.$ac_ext >&5
  9264. ac_header_compiler=no
  9265. fi
  9266. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9267. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9268. echo "${ECHO_T}$ac_header_compiler" >&6
  9269. # Is the header present?
  9270. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9271. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9272. cat >conftest.$ac_ext <<_ACEOF
  9273. /* confdefs.h. */
  9274. _ACEOF
  9275. cat confdefs.h >>conftest.$ac_ext
  9276. cat >>conftest.$ac_ext <<_ACEOF
  9277. /* end confdefs.h. */
  9278. #include <$ac_header>
  9279. _ACEOF
  9280. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9281. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9282. ac_status=$?
  9283. grep -v '^ *+' conftest.er1 >conftest.err
  9284. rm -f conftest.er1
  9285. cat conftest.err >&5
  9286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9287. (exit $ac_status); } >/dev/null; then
  9288. if test -s conftest.err; then
  9289. ac_cpp_err=$ac_c_preproc_warn_flag
  9290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9291. else
  9292. ac_cpp_err=
  9293. fi
  9294. else
  9295. ac_cpp_err=yes
  9296. fi
  9297. if test -z "$ac_cpp_err"; then
  9298. ac_header_preproc=yes
  9299. else
  9300. echo "$as_me: failed program was:" >&5
  9301. sed 's/^/| /' conftest.$ac_ext >&5
  9302. ac_header_preproc=no
  9303. fi
  9304. rm -f conftest.err conftest.$ac_ext
  9305. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9306. echo "${ECHO_T}$ac_header_preproc" >&6
  9307. # So? What about this header?
  9308. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9309. yes:no: )
  9310. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9311. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9312. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9313. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9314. ac_header_preproc=yes
  9315. ;;
  9316. no:yes:* )
  9317. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9318. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9319. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9320. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9321. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9322. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9323. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9324. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9325. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9326. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9327. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9328. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9329. (
  9330. cat <<\_ASBOX
  9331. ## ----------------------------------- ##
  9332. ## Report this to tujikawa@rednoah.com ##
  9333. ## ----------------------------------- ##
  9334. _ASBOX
  9335. ) |
  9336. sed "s/^/$as_me: WARNING: /" >&2
  9337. ;;
  9338. esac
  9339. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9340. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9341. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9342. echo $ECHO_N "(cached) $ECHO_C" >&6
  9343. else
  9344. eval "$as_ac_Header=\$ac_header_preproc"
  9345. fi
  9346. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9347. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9348. fi
  9349. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9350. cat >>confdefs.h <<_ACEOF
  9351. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9352. _ACEOF
  9353. fi
  9354. done
  9355. for ac_func in getpagesize
  9356. do
  9357. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9358. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9359. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9360. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9361. echo $ECHO_N "(cached) $ECHO_C" >&6
  9362. else
  9363. cat >conftest.$ac_ext <<_ACEOF
  9364. /* confdefs.h. */
  9365. _ACEOF
  9366. cat confdefs.h >>conftest.$ac_ext
  9367. cat >>conftest.$ac_ext <<_ACEOF
  9368. /* end confdefs.h. */
  9369. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9370. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9371. #define $ac_func innocuous_$ac_func
  9372. /* System header to define __stub macros and hopefully few prototypes,
  9373. which can conflict with char $ac_func (); below.
  9374. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9375. <limits.h> exists even on freestanding compilers. */
  9376. #ifdef __STDC__
  9377. # include <limits.h>
  9378. #else
  9379. # include <assert.h>
  9380. #endif
  9381. #undef $ac_func
  9382. /* Override any gcc2 internal prototype to avoid an error. */
  9383. #ifdef __cplusplus
  9384. extern "C"
  9385. {
  9386. #endif
  9387. /* We use char because int might match the return type of a gcc2
  9388. builtin and then its argument prototype would still apply. */
  9389. char $ac_func ();
  9390. /* The GNU C library defines this for functions which it implements
  9391. to always fail with ENOSYS. Some functions are actually named
  9392. something starting with __ and the normal name is an alias. */
  9393. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9394. choke me
  9395. #else
  9396. char (*f) () = $ac_func;
  9397. #endif
  9398. #ifdef __cplusplus
  9399. }
  9400. #endif
  9401. int
  9402. main ()
  9403. {
  9404. return f != $ac_func;
  9405. ;
  9406. return 0;
  9407. }
  9408. _ACEOF
  9409. rm -f conftest.$ac_objext conftest$ac_exeext
  9410. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9411. (eval $ac_link) 2>conftest.er1
  9412. ac_status=$?
  9413. grep -v '^ *+' conftest.er1 >conftest.err
  9414. rm -f conftest.er1
  9415. cat conftest.err >&5
  9416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9417. (exit $ac_status); } &&
  9418. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9420. (eval $ac_try) 2>&5
  9421. ac_status=$?
  9422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9423. (exit $ac_status); }; } &&
  9424. { ac_try='test -s conftest$ac_exeext'
  9425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9426. (eval $ac_try) 2>&5
  9427. ac_status=$?
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); }; }; then
  9430. eval "$as_ac_var=yes"
  9431. else
  9432. echo "$as_me: failed program was:" >&5
  9433. sed 's/^/| /' conftest.$ac_ext >&5
  9434. eval "$as_ac_var=no"
  9435. fi
  9436. rm -f conftest.err conftest.$ac_objext \
  9437. conftest$ac_exeext conftest.$ac_ext
  9438. fi
  9439. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9440. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9441. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9442. cat >>confdefs.h <<_ACEOF
  9443. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9444. _ACEOF
  9445. fi
  9446. done
  9447. echo "$as_me:$LINENO: checking for working mmap" >&5
  9448. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9449. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9450. echo $ECHO_N "(cached) $ECHO_C" >&6
  9451. else
  9452. if test "$cross_compiling" = yes; then
  9453. ac_cv_func_mmap_fixed_mapped=no
  9454. else
  9455. cat >conftest.$ac_ext <<_ACEOF
  9456. /* confdefs.h. */
  9457. _ACEOF
  9458. cat confdefs.h >>conftest.$ac_ext
  9459. cat >>conftest.$ac_ext <<_ACEOF
  9460. /* end confdefs.h. */
  9461. $ac_includes_default
  9462. /* malloc might have been renamed as rpl_malloc. */
  9463. #undef malloc
  9464. /* Thanks to Mike Haertel and Jim Avera for this test.
  9465. Here is a matrix of mmap possibilities:
  9466. mmap private not fixed
  9467. mmap private fixed at somewhere currently unmapped
  9468. mmap private fixed at somewhere already mapped
  9469. mmap shared not fixed
  9470. mmap shared fixed at somewhere currently unmapped
  9471. mmap shared fixed at somewhere already mapped
  9472. For private mappings, we should verify that changes cannot be read()
  9473. back from the file, nor mmap's back from the file at a different
  9474. address. (There have been systems where private was not correctly
  9475. implemented like the infamous i386 svr4.0, and systems where the
  9476. VM page cache was not coherent with the file system buffer cache
  9477. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9478. For shared mappings, we should conversely verify that changes get
  9479. propagated back to all the places they're supposed to be.
  9480. Grep wants private fixed already mapped.
  9481. The main things grep needs to know about mmap are:
  9482. * does it exist and is it safe to write into the mmap'd area
  9483. * how to use it (BSD variants) */
  9484. #include <fcntl.h>
  9485. #include <sys/mman.h>
  9486. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9487. char *malloc ();
  9488. #endif
  9489. /* This mess was copied from the GNU getpagesize.h. */
  9490. #if !HAVE_GETPAGESIZE
  9491. /* Assume that all systems that can run configure have sys/param.h. */
  9492. # if !HAVE_SYS_PARAM_H
  9493. # define HAVE_SYS_PARAM_H 1
  9494. # endif
  9495. # ifdef _SC_PAGESIZE
  9496. # define getpagesize() sysconf(_SC_PAGESIZE)
  9497. # else /* no _SC_PAGESIZE */
  9498. # if HAVE_SYS_PARAM_H
  9499. # include <sys/param.h>
  9500. # ifdef EXEC_PAGESIZE
  9501. # define getpagesize() EXEC_PAGESIZE
  9502. # else /* no EXEC_PAGESIZE */
  9503. # ifdef NBPG
  9504. # define getpagesize() NBPG * CLSIZE
  9505. # ifndef CLSIZE
  9506. # define CLSIZE 1
  9507. # endif /* no CLSIZE */
  9508. # else /* no NBPG */
  9509. # ifdef NBPC
  9510. # define getpagesize() NBPC
  9511. # else /* no NBPC */
  9512. # ifdef PAGESIZE
  9513. # define getpagesize() PAGESIZE
  9514. # endif /* PAGESIZE */
  9515. # endif /* no NBPC */
  9516. # endif /* no NBPG */
  9517. # endif /* no EXEC_PAGESIZE */
  9518. # else /* no HAVE_SYS_PARAM_H */
  9519. # define getpagesize() 8192 /* punt totally */
  9520. # endif /* no HAVE_SYS_PARAM_H */
  9521. # endif /* no _SC_PAGESIZE */
  9522. #endif /* no HAVE_GETPAGESIZE */
  9523. int
  9524. main ()
  9525. {
  9526. char *data, *data2, *data3;
  9527. int i, pagesize;
  9528. int fd;
  9529. pagesize = getpagesize ();
  9530. /* First, make a file with some known garbage in it. */
  9531. data = (char *) malloc (pagesize);
  9532. if (!data)
  9533. exit (1);
  9534. for (i = 0; i < pagesize; ++i)
  9535. *(data + i) = rand ();
  9536. umask (0);
  9537. fd = creat ("conftest.mmap", 0600);
  9538. if (fd < 0)
  9539. exit (1);
  9540. if (write (fd, data, pagesize) != pagesize)
  9541. exit (1);
  9542. close (fd);
  9543. /* Next, try to mmap the file at a fixed address which already has
  9544. something else allocated at it. If we can, also make sure that
  9545. we see the same garbage. */
  9546. fd = open ("conftest.mmap", O_RDWR);
  9547. if (fd < 0)
  9548. exit (1);
  9549. data2 = (char *) malloc (2 * pagesize);
  9550. if (!data2)
  9551. exit (1);
  9552. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9553. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9554. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9555. exit (1);
  9556. for (i = 0; i < pagesize; ++i)
  9557. if (*(data + i) != *(data2 + i))
  9558. exit (1);
  9559. /* Finally, make sure that changes to the mapped area do not
  9560. percolate back to the file as seen by read(). (This is a bug on
  9561. some variants of i386 svr4.0.) */
  9562. for (i = 0; i < pagesize; ++i)
  9563. *(data2 + i) = *(data2 + i) + 1;
  9564. data3 = (char *) malloc (pagesize);
  9565. if (!data3)
  9566. exit (1);
  9567. if (read (fd, data3, pagesize) != pagesize)
  9568. exit (1);
  9569. for (i = 0; i < pagesize; ++i)
  9570. if (*(data + i) != *(data3 + i))
  9571. exit (1);
  9572. close (fd);
  9573. exit (0);
  9574. }
  9575. _ACEOF
  9576. rm -f conftest$ac_exeext
  9577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9578. (eval $ac_link) 2>&5
  9579. ac_status=$?
  9580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9581. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9583. (eval $ac_try) 2>&5
  9584. ac_status=$?
  9585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9586. (exit $ac_status); }; }; then
  9587. ac_cv_func_mmap_fixed_mapped=yes
  9588. else
  9589. echo "$as_me: program exited with status $ac_status" >&5
  9590. echo "$as_me: failed program was:" >&5
  9591. sed 's/^/| /' conftest.$ac_ext >&5
  9592. ( exit $ac_status )
  9593. ac_cv_func_mmap_fixed_mapped=no
  9594. fi
  9595. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9596. fi
  9597. fi
  9598. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9599. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9600. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9601. cat >>confdefs.h <<\_ACEOF
  9602. #define HAVE_MMAP 1
  9603. _ACEOF
  9604. fi
  9605. rm -f conftest.mmap
  9606. for ac_header in stdlib.h
  9607. do
  9608. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9609. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9610. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9612. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9613. echo $ECHO_N "(cached) $ECHO_C" >&6
  9614. fi
  9615. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9616. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9617. else
  9618. # Is the header compilable?
  9619. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9620. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9621. cat >conftest.$ac_ext <<_ACEOF
  9622. /* confdefs.h. */
  9623. _ACEOF
  9624. cat confdefs.h >>conftest.$ac_ext
  9625. cat >>conftest.$ac_ext <<_ACEOF
  9626. /* end confdefs.h. */
  9627. $ac_includes_default
  9628. #include <$ac_header>
  9629. _ACEOF
  9630. rm -f conftest.$ac_objext
  9631. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9632. (eval $ac_compile) 2>conftest.er1
  9633. ac_status=$?
  9634. grep -v '^ *+' conftest.er1 >conftest.err
  9635. rm -f conftest.er1
  9636. cat conftest.err >&5
  9637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9638. (exit $ac_status); } &&
  9639. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9641. (eval $ac_try) 2>&5
  9642. ac_status=$?
  9643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9644. (exit $ac_status); }; } &&
  9645. { ac_try='test -s conftest.$ac_objext'
  9646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9647. (eval $ac_try) 2>&5
  9648. ac_status=$?
  9649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9650. (exit $ac_status); }; }; then
  9651. ac_header_compiler=yes
  9652. else
  9653. echo "$as_me: failed program was:" >&5
  9654. sed 's/^/| /' conftest.$ac_ext >&5
  9655. ac_header_compiler=no
  9656. fi
  9657. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9658. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9659. echo "${ECHO_T}$ac_header_compiler" >&6
  9660. # Is the header present?
  9661. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9662. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9663. cat >conftest.$ac_ext <<_ACEOF
  9664. /* confdefs.h. */
  9665. _ACEOF
  9666. cat confdefs.h >>conftest.$ac_ext
  9667. cat >>conftest.$ac_ext <<_ACEOF
  9668. /* end confdefs.h. */
  9669. #include <$ac_header>
  9670. _ACEOF
  9671. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9672. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9673. ac_status=$?
  9674. grep -v '^ *+' conftest.er1 >conftest.err
  9675. rm -f conftest.er1
  9676. cat conftest.err >&5
  9677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9678. (exit $ac_status); } >/dev/null; then
  9679. if test -s conftest.err; then
  9680. ac_cpp_err=$ac_c_preproc_warn_flag
  9681. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9682. else
  9683. ac_cpp_err=
  9684. fi
  9685. else
  9686. ac_cpp_err=yes
  9687. fi
  9688. if test -z "$ac_cpp_err"; then
  9689. ac_header_preproc=yes
  9690. else
  9691. echo "$as_me: failed program was:" >&5
  9692. sed 's/^/| /' conftest.$ac_ext >&5
  9693. ac_header_preproc=no
  9694. fi
  9695. rm -f conftest.err conftest.$ac_ext
  9696. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9697. echo "${ECHO_T}$ac_header_preproc" >&6
  9698. # So? What about this header?
  9699. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9700. yes:no: )
  9701. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9702. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9703. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9704. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9705. ac_header_preproc=yes
  9706. ;;
  9707. no:yes:* )
  9708. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9709. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9710. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9711. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9712. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9713. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9714. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9715. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9716. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9717. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9718. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9719. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9720. (
  9721. cat <<\_ASBOX
  9722. ## ----------------------------------- ##
  9723. ## Report this to tujikawa@rednoah.com ##
  9724. ## ----------------------------------- ##
  9725. _ASBOX
  9726. ) |
  9727. sed "s/^/$as_me: WARNING: /" >&2
  9728. ;;
  9729. esac
  9730. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9731. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9732. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9733. echo $ECHO_N "(cached) $ECHO_C" >&6
  9734. else
  9735. eval "$as_ac_Header=\$ac_header_preproc"
  9736. fi
  9737. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9738. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9739. fi
  9740. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9741. cat >>confdefs.h <<_ACEOF
  9742. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9743. _ACEOF
  9744. fi
  9745. done
  9746. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9747. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9748. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9749. echo $ECHO_N "(cached) $ECHO_C" >&6
  9750. else
  9751. if test "$cross_compiling" = yes; then
  9752. ac_cv_func_realloc_0_nonnull=no
  9753. else
  9754. cat >conftest.$ac_ext <<_ACEOF
  9755. /* confdefs.h. */
  9756. _ACEOF
  9757. cat confdefs.h >>conftest.$ac_ext
  9758. cat >>conftest.$ac_ext <<_ACEOF
  9759. /* end confdefs.h. */
  9760. #if STDC_HEADERS || HAVE_STDLIB_H
  9761. # include <stdlib.h>
  9762. #else
  9763. char *realloc ();
  9764. #endif
  9765. int
  9766. main ()
  9767. {
  9768. exit (realloc (0, 0) ? 0 : 1);
  9769. ;
  9770. return 0;
  9771. }
  9772. _ACEOF
  9773. rm -f conftest$ac_exeext
  9774. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9775. (eval $ac_link) 2>&5
  9776. ac_status=$?
  9777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9778. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9780. (eval $ac_try) 2>&5
  9781. ac_status=$?
  9782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9783. (exit $ac_status); }; }; then
  9784. ac_cv_func_realloc_0_nonnull=yes
  9785. else
  9786. echo "$as_me: program exited with status $ac_status" >&5
  9787. echo "$as_me: failed program was:" >&5
  9788. sed 's/^/| /' conftest.$ac_ext >&5
  9789. ( exit $ac_status )
  9790. ac_cv_func_realloc_0_nonnull=no
  9791. fi
  9792. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9793. fi
  9794. fi
  9795. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9796. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9797. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9798. cat >>confdefs.h <<\_ACEOF
  9799. #define HAVE_REALLOC 1
  9800. _ACEOF
  9801. else
  9802. cat >>confdefs.h <<\_ACEOF
  9803. #define HAVE_REALLOC 0
  9804. _ACEOF
  9805. case $LIBOBJS in
  9806. "realloc.$ac_objext" | \
  9807. *" realloc.$ac_objext" | \
  9808. "realloc.$ac_objext "* | \
  9809. *" realloc.$ac_objext "* ) ;;
  9810. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9811. esac
  9812. cat >>confdefs.h <<\_ACEOF
  9813. #define realloc rpl_realloc
  9814. _ACEOF
  9815. fi
  9816. for ac_header in sys/select.h sys/socket.h
  9817. do
  9818. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9819. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9820. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9821. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9822. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9823. echo $ECHO_N "(cached) $ECHO_C" >&6
  9824. fi
  9825. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9826. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9827. else
  9828. # Is the header compilable?
  9829. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9830. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9831. cat >conftest.$ac_ext <<_ACEOF
  9832. /* confdefs.h. */
  9833. _ACEOF
  9834. cat confdefs.h >>conftest.$ac_ext
  9835. cat >>conftest.$ac_ext <<_ACEOF
  9836. /* end confdefs.h. */
  9837. $ac_includes_default
  9838. #include <$ac_header>
  9839. _ACEOF
  9840. rm -f conftest.$ac_objext
  9841. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9842. (eval $ac_compile) 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } &&
  9849. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9851. (eval $ac_try) 2>&5
  9852. ac_status=$?
  9853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9854. (exit $ac_status); }; } &&
  9855. { ac_try='test -s conftest.$ac_objext'
  9856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9857. (eval $ac_try) 2>&5
  9858. ac_status=$?
  9859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9860. (exit $ac_status); }; }; then
  9861. ac_header_compiler=yes
  9862. else
  9863. echo "$as_me: failed program was:" >&5
  9864. sed 's/^/| /' conftest.$ac_ext >&5
  9865. ac_header_compiler=no
  9866. fi
  9867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9868. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9869. echo "${ECHO_T}$ac_header_compiler" >&6
  9870. # Is the header present?
  9871. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9872. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9873. cat >conftest.$ac_ext <<_ACEOF
  9874. /* confdefs.h. */
  9875. _ACEOF
  9876. cat confdefs.h >>conftest.$ac_ext
  9877. cat >>conftest.$ac_ext <<_ACEOF
  9878. /* end confdefs.h. */
  9879. #include <$ac_header>
  9880. _ACEOF
  9881. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9882. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9883. ac_status=$?
  9884. grep -v '^ *+' conftest.er1 >conftest.err
  9885. rm -f conftest.er1
  9886. cat conftest.err >&5
  9887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9888. (exit $ac_status); } >/dev/null; then
  9889. if test -s conftest.err; then
  9890. ac_cpp_err=$ac_c_preproc_warn_flag
  9891. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9892. else
  9893. ac_cpp_err=
  9894. fi
  9895. else
  9896. ac_cpp_err=yes
  9897. fi
  9898. if test -z "$ac_cpp_err"; then
  9899. ac_header_preproc=yes
  9900. else
  9901. echo "$as_me: failed program was:" >&5
  9902. sed 's/^/| /' conftest.$ac_ext >&5
  9903. ac_header_preproc=no
  9904. fi
  9905. rm -f conftest.err conftest.$ac_ext
  9906. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9907. echo "${ECHO_T}$ac_header_preproc" >&6
  9908. # So? What about this header?
  9909. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9910. yes:no: )
  9911. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9912. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9913. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9914. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9915. ac_header_preproc=yes
  9916. ;;
  9917. no:yes:* )
  9918. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9919. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9920. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9921. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9922. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9923. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9924. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9925. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9926. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9927. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9928. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9929. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9930. (
  9931. cat <<\_ASBOX
  9932. ## ----------------------------------- ##
  9933. ## Report this to tujikawa@rednoah.com ##
  9934. ## ----------------------------------- ##
  9935. _ASBOX
  9936. ) |
  9937. sed "s/^/$as_me: WARNING: /" >&2
  9938. ;;
  9939. esac
  9940. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9941. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9942. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9943. echo $ECHO_N "(cached) $ECHO_C" >&6
  9944. else
  9945. eval "$as_ac_Header=\$ac_header_preproc"
  9946. fi
  9947. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9948. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9949. fi
  9950. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9951. cat >>confdefs.h <<_ACEOF
  9952. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9953. _ACEOF
  9954. fi
  9955. done
  9956. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9957. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9958. if test "${ac_cv_func_select_args+set}" = set; then
  9959. echo $ECHO_N "(cached) $ECHO_C" >&6
  9960. else
  9961. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9962. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9963. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9964. cat >conftest.$ac_ext <<_ACEOF
  9965. /* confdefs.h. */
  9966. _ACEOF
  9967. cat confdefs.h >>conftest.$ac_ext
  9968. cat >>conftest.$ac_ext <<_ACEOF
  9969. /* end confdefs.h. */
  9970. $ac_includes_default
  9971. #if HAVE_SYS_SELECT_H
  9972. # include <sys/select.h>
  9973. #endif
  9974. #if HAVE_SYS_SOCKET_H
  9975. # include <sys/socket.h>
  9976. #endif
  9977. int
  9978. main ()
  9979. {
  9980. extern int select ($ac_arg1,
  9981. $ac_arg234, $ac_arg234, $ac_arg234,
  9982. $ac_arg5);
  9983. ;
  9984. return 0;
  9985. }
  9986. _ACEOF
  9987. rm -f conftest.$ac_objext
  9988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9989. (eval $ac_compile) 2>conftest.er1
  9990. ac_status=$?
  9991. grep -v '^ *+' conftest.er1 >conftest.err
  9992. rm -f conftest.er1
  9993. cat conftest.err >&5
  9994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9995. (exit $ac_status); } &&
  9996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9998. (eval $ac_try) 2>&5
  9999. ac_status=$?
  10000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10001. (exit $ac_status); }; } &&
  10002. { ac_try='test -s conftest.$ac_objext'
  10003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10004. (eval $ac_try) 2>&5
  10005. ac_status=$?
  10006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10007. (exit $ac_status); }; }; then
  10008. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10009. else
  10010. echo "$as_me: failed program was:" >&5
  10011. sed 's/^/| /' conftest.$ac_ext >&5
  10012. fi
  10013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10014. done
  10015. done
  10016. done
  10017. # Provide a safe default value.
  10018. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10019. fi
  10020. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10021. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10022. ac_save_IFS=$IFS; IFS=','
  10023. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10024. IFS=$ac_save_IFS
  10025. shift
  10026. cat >>confdefs.h <<_ACEOF
  10027. #define SELECT_TYPE_ARG1 $1
  10028. _ACEOF
  10029. cat >>confdefs.h <<_ACEOF
  10030. #define SELECT_TYPE_ARG234 ($2)
  10031. _ACEOF
  10032. cat >>confdefs.h <<_ACEOF
  10033. #define SELECT_TYPE_ARG5 ($3)
  10034. _ACEOF
  10035. rm -f conftest*
  10036. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10037. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  10038. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10039. echo $ECHO_N "(cached) $ECHO_C" >&6
  10040. else
  10041. rm -f conftest.sym conftest.file
  10042. echo >conftest.file
  10043. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10044. if test "$cross_compiling" = yes; then
  10045. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10046. else
  10047. cat >conftest.$ac_ext <<_ACEOF
  10048. /* confdefs.h. */
  10049. _ACEOF
  10050. cat confdefs.h >>conftest.$ac_ext
  10051. cat >>conftest.$ac_ext <<_ACEOF
  10052. /* end confdefs.h. */
  10053. $ac_includes_default
  10054. int
  10055. main ()
  10056. {
  10057. struct stat sbuf;
  10058. /* Linux will dereference the symlink and fail.
  10059. That is better in the sense that it means we will not
  10060. have to compile and use the lstat wrapper. */
  10061. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  10062. ;
  10063. return 0;
  10064. }
  10065. _ACEOF
  10066. rm -f conftest$ac_exeext
  10067. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10068. (eval $ac_link) 2>&5
  10069. ac_status=$?
  10070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10073. (eval $ac_try) 2>&5
  10074. ac_status=$?
  10075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10076. (exit $ac_status); }; }; then
  10077. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10078. else
  10079. echo "$as_me: program exited with status $ac_status" >&5
  10080. echo "$as_me: failed program was:" >&5
  10081. sed 's/^/| /' conftest.$ac_ext >&5
  10082. ( exit $ac_status )
  10083. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10084. fi
  10085. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10086. fi
  10087. else
  10088. # If the `ln -s' command failed, then we probably don't even
  10089. # have an lstat function.
  10090. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10091. fi
  10092. rm -f conftest.sym conftest.file
  10093. fi
  10094. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10095. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  10096. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10097. cat >>confdefs.h <<_ACEOF
  10098. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10099. _ACEOF
  10100. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10101. case $LIBOBJS in
  10102. "lstat.$ac_objext" | \
  10103. *" lstat.$ac_objext" | \
  10104. "lstat.$ac_objext "* | \
  10105. *" lstat.$ac_objext "* ) ;;
  10106. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  10107. esac
  10108. fi
  10109. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10110. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10111. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10112. echo $ECHO_N "(cached) $ECHO_C" >&6
  10113. else
  10114. if test "$cross_compiling" = yes; then
  10115. ac_cv_func_stat_empty_string_bug=yes
  10116. else
  10117. cat >conftest.$ac_ext <<_ACEOF
  10118. /* confdefs.h. */
  10119. _ACEOF
  10120. cat confdefs.h >>conftest.$ac_ext
  10121. cat >>conftest.$ac_ext <<_ACEOF
  10122. /* end confdefs.h. */
  10123. $ac_includes_default
  10124. int
  10125. main ()
  10126. {
  10127. struct stat sbuf;
  10128. exit (stat ("", &sbuf) ? 1 : 0);
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. rm -f conftest$ac_exeext
  10134. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10135. (eval $ac_link) 2>&5
  10136. ac_status=$?
  10137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10138. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10140. (eval $ac_try) 2>&5
  10141. ac_status=$?
  10142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10143. (exit $ac_status); }; }; then
  10144. ac_cv_func_stat_empty_string_bug=yes
  10145. else
  10146. echo "$as_me: program exited with status $ac_status" >&5
  10147. echo "$as_me: failed program was:" >&5
  10148. sed 's/^/| /' conftest.$ac_ext >&5
  10149. ( exit $ac_status )
  10150. ac_cv_func_stat_empty_string_bug=no
  10151. fi
  10152. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10153. fi
  10154. fi
  10155. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10156. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10157. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10158. case $LIBOBJS in
  10159. "stat.$ac_objext" | \
  10160. *" stat.$ac_objext" | \
  10161. "stat.$ac_objext "* | \
  10162. *" stat.$ac_objext "* ) ;;
  10163. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10164. esac
  10165. cat >>confdefs.h <<_ACEOF
  10166. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10167. _ACEOF
  10168. fi
  10169. for ac_func in vprintf
  10170. do
  10171. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10172. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10173. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10174. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10175. echo $ECHO_N "(cached) $ECHO_C" >&6
  10176. else
  10177. cat >conftest.$ac_ext <<_ACEOF
  10178. /* confdefs.h. */
  10179. _ACEOF
  10180. cat confdefs.h >>conftest.$ac_ext
  10181. cat >>conftest.$ac_ext <<_ACEOF
  10182. /* end confdefs.h. */
  10183. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10184. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10185. #define $ac_func innocuous_$ac_func
  10186. /* System header to define __stub macros and hopefully few prototypes,
  10187. which can conflict with char $ac_func (); below.
  10188. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10189. <limits.h> exists even on freestanding compilers. */
  10190. #ifdef __STDC__
  10191. # include <limits.h>
  10192. #else
  10193. # include <assert.h>
  10194. #endif
  10195. #undef $ac_func
  10196. /* Override any gcc2 internal prototype to avoid an error. */
  10197. #ifdef __cplusplus
  10198. extern "C"
  10199. {
  10200. #endif
  10201. /* We use char because int might match the return type of a gcc2
  10202. builtin and then its argument prototype would still apply. */
  10203. char $ac_func ();
  10204. /* The GNU C library defines this for functions which it implements
  10205. to always fail with ENOSYS. Some functions are actually named
  10206. something starting with __ and the normal name is an alias. */
  10207. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10208. choke me
  10209. #else
  10210. char (*f) () = $ac_func;
  10211. #endif
  10212. #ifdef __cplusplus
  10213. }
  10214. #endif
  10215. int
  10216. main ()
  10217. {
  10218. return f != $ac_func;
  10219. ;
  10220. return 0;
  10221. }
  10222. _ACEOF
  10223. rm -f conftest.$ac_objext conftest$ac_exeext
  10224. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10225. (eval $ac_link) 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } &&
  10232. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10234. (eval $ac_try) 2>&5
  10235. ac_status=$?
  10236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10237. (exit $ac_status); }; } &&
  10238. { ac_try='test -s conftest$ac_exeext'
  10239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10240. (eval $ac_try) 2>&5
  10241. ac_status=$?
  10242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10243. (exit $ac_status); }; }; then
  10244. eval "$as_ac_var=yes"
  10245. else
  10246. echo "$as_me: failed program was:" >&5
  10247. sed 's/^/| /' conftest.$ac_ext >&5
  10248. eval "$as_ac_var=no"
  10249. fi
  10250. rm -f conftest.err conftest.$ac_objext \
  10251. conftest$ac_exeext conftest.$ac_ext
  10252. fi
  10253. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10254. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10255. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10256. cat >>confdefs.h <<_ACEOF
  10257. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10258. _ACEOF
  10259. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10260. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10261. if test "${ac_cv_func__doprnt+set}" = set; then
  10262. echo $ECHO_N "(cached) $ECHO_C" >&6
  10263. else
  10264. cat >conftest.$ac_ext <<_ACEOF
  10265. /* confdefs.h. */
  10266. _ACEOF
  10267. cat confdefs.h >>conftest.$ac_ext
  10268. cat >>conftest.$ac_ext <<_ACEOF
  10269. /* end confdefs.h. */
  10270. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10271. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10272. #define _doprnt innocuous__doprnt
  10273. /* System header to define __stub macros and hopefully few prototypes,
  10274. which can conflict with char _doprnt (); below.
  10275. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10276. <limits.h> exists even on freestanding compilers. */
  10277. #ifdef __STDC__
  10278. # include <limits.h>
  10279. #else
  10280. # include <assert.h>
  10281. #endif
  10282. #undef _doprnt
  10283. /* Override any gcc2 internal prototype to avoid an error. */
  10284. #ifdef __cplusplus
  10285. extern "C"
  10286. {
  10287. #endif
  10288. /* We use char because int might match the return type of a gcc2
  10289. builtin and then its argument prototype would still apply. */
  10290. char _doprnt ();
  10291. /* The GNU C library defines this for functions which it implements
  10292. to always fail with ENOSYS. Some functions are actually named
  10293. something starting with __ and the normal name is an alias. */
  10294. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10295. choke me
  10296. #else
  10297. char (*f) () = _doprnt;
  10298. #endif
  10299. #ifdef __cplusplus
  10300. }
  10301. #endif
  10302. int
  10303. main ()
  10304. {
  10305. return f != _doprnt;
  10306. ;
  10307. return 0;
  10308. }
  10309. _ACEOF
  10310. rm -f conftest.$ac_objext conftest$ac_exeext
  10311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10312. (eval $ac_link) 2>conftest.er1
  10313. ac_status=$?
  10314. grep -v '^ *+' conftest.er1 >conftest.err
  10315. rm -f conftest.er1
  10316. cat conftest.err >&5
  10317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10318. (exit $ac_status); } &&
  10319. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10321. (eval $ac_try) 2>&5
  10322. ac_status=$?
  10323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10324. (exit $ac_status); }; } &&
  10325. { ac_try='test -s conftest$ac_exeext'
  10326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10327. (eval $ac_try) 2>&5
  10328. ac_status=$?
  10329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10330. (exit $ac_status); }; }; then
  10331. ac_cv_func__doprnt=yes
  10332. else
  10333. echo "$as_me: failed program was:" >&5
  10334. sed 's/^/| /' conftest.$ac_ext >&5
  10335. ac_cv_func__doprnt=no
  10336. fi
  10337. rm -f conftest.err conftest.$ac_objext \
  10338. conftest$ac_exeext conftest.$ac_ext
  10339. fi
  10340. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10341. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10342. if test $ac_cv_func__doprnt = yes; then
  10343. cat >>confdefs.h <<\_ACEOF
  10344. #define HAVE_DOPRNT 1
  10345. _ACEOF
  10346. fi
  10347. fi
  10348. done
  10349. for ac_func in __argz_count __argz_next __argz_stringify ftruncate 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
  10350. do
  10351. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10352. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10353. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10354. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10355. echo $ECHO_N "(cached) $ECHO_C" >&6
  10356. else
  10357. cat >conftest.$ac_ext <<_ACEOF
  10358. /* confdefs.h. */
  10359. _ACEOF
  10360. cat confdefs.h >>conftest.$ac_ext
  10361. cat >>conftest.$ac_ext <<_ACEOF
  10362. /* end confdefs.h. */
  10363. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10364. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10365. #define $ac_func innocuous_$ac_func
  10366. /* System header to define __stub macros and hopefully few prototypes,
  10367. which can conflict with char $ac_func (); below.
  10368. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10369. <limits.h> exists even on freestanding compilers. */
  10370. #ifdef __STDC__
  10371. # include <limits.h>
  10372. #else
  10373. # include <assert.h>
  10374. #endif
  10375. #undef $ac_func
  10376. /* Override any gcc2 internal prototype to avoid an error. */
  10377. #ifdef __cplusplus
  10378. extern "C"
  10379. {
  10380. #endif
  10381. /* We use char because int might match the return type of a gcc2
  10382. builtin and then its argument prototype would still apply. */
  10383. char $ac_func ();
  10384. /* The GNU C library defines this for functions which it implements
  10385. to always fail with ENOSYS. Some functions are actually named
  10386. something starting with __ and the normal name is an alias. */
  10387. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10388. choke me
  10389. #else
  10390. char (*f) () = $ac_func;
  10391. #endif
  10392. #ifdef __cplusplus
  10393. }
  10394. #endif
  10395. int
  10396. main ()
  10397. {
  10398. return f != $ac_func;
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. rm -f conftest.$ac_objext conftest$ac_exeext
  10404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10405. (eval $ac_link) 2>conftest.er1
  10406. ac_status=$?
  10407. grep -v '^ *+' conftest.er1 >conftest.err
  10408. rm -f conftest.er1
  10409. cat conftest.err >&5
  10410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10411. (exit $ac_status); } &&
  10412. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10414. (eval $ac_try) 2>&5
  10415. ac_status=$?
  10416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10417. (exit $ac_status); }; } &&
  10418. { ac_try='test -s conftest$ac_exeext'
  10419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10420. (eval $ac_try) 2>&5
  10421. ac_status=$?
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); }; }; then
  10424. eval "$as_ac_var=yes"
  10425. else
  10426. echo "$as_me: failed program was:" >&5
  10427. sed 's/^/| /' conftest.$ac_ext >&5
  10428. eval "$as_ac_var=no"
  10429. fi
  10430. rm -f conftest.err conftest.$ac_objext \
  10431. conftest$ac_exeext conftest.$ac_ext
  10432. fi
  10433. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10434. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10435. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10436. cat >>confdefs.h <<_ACEOF
  10437. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10438. _ACEOF
  10439. fi
  10440. done
  10441. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  10442. cat >confcache <<\_ACEOF
  10443. # This file is a shell script that caches the results of configure
  10444. # tests run on this system so they can be shared between configure
  10445. # scripts and configure runs, see configure's option --config-cache.
  10446. # It is not useful on other systems. If it contains results you don't
  10447. # want to keep, you may remove or edit it.
  10448. #
  10449. # config.status only pays attention to the cache file if you give it
  10450. # the --recheck option to rerun configure.
  10451. #
  10452. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10453. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10454. # following values.
  10455. _ACEOF
  10456. # The following way of writing the cache mishandles newlines in values,
  10457. # but we know of no workaround that is simple, portable, and efficient.
  10458. # So, don't put newlines in cache variables' values.
  10459. # Ultrix sh set writes to stderr and can't be redirected directly,
  10460. # and sets the high bit in the cache file unless we assign to the vars.
  10461. {
  10462. (set) 2>&1 |
  10463. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10464. *ac_space=\ *)
  10465. # `set' does not quote correctly, so add quotes (double-quote
  10466. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10467. sed -n \
  10468. "s/'/'\\\\''/g;
  10469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10470. ;;
  10471. *)
  10472. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10473. sed -n \
  10474. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10475. ;;
  10476. esac;
  10477. } |
  10478. sed '
  10479. t clear
  10480. : clear
  10481. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10482. t end
  10483. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10484. : end' >>confcache
  10485. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10486. if test -w $cache_file; then
  10487. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10488. cat confcache >$cache_file
  10489. else
  10490. echo "not updating unwritable cache $cache_file"
  10491. fi
  10492. fi
  10493. rm -f confcache
  10494. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10495. # Let make expand exec_prefix.
  10496. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10497. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10498. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10499. # trailing colons and then remove the whole line if VPATH becomes empty
  10500. # (actually we leave an empty line to preserve line numbers).
  10501. if test "x$srcdir" = x.; then
  10502. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10503. s/:*\$(srcdir):*/:/;
  10504. s/:*\${srcdir}:*/:/;
  10505. s/:*@srcdir@:*/:/;
  10506. s/^\([^=]*=[ ]*\):*/\1/;
  10507. s/:*$//;
  10508. s/^[^=]*=[ ]*$//;
  10509. }'
  10510. fi
  10511. DEFS=-DHAVE_CONFIG_H
  10512. ac_libobjs=
  10513. ac_ltlibobjs=
  10514. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10515. # 1. Remove the extension, and $U if already installed.
  10516. ac_i=`echo "$ac_i" |
  10517. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10518. # 2. Add them.
  10519. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10520. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10521. done
  10522. LIBOBJS=$ac_libobjs
  10523. LTLIBOBJS=$ac_ltlibobjs
  10524. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10525. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10526. Usually this means the macro was only invoked conditionally." >&5
  10527. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10528. Usually this means the macro was only invoked conditionally." >&2;}
  10529. { (exit 1); exit 1; }; }
  10530. fi
  10531. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10532. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10533. Usually this means the macro was only invoked conditionally." >&5
  10534. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10535. Usually this means the macro was only invoked conditionally." >&2;}
  10536. { (exit 1); exit 1; }; }
  10537. fi
  10538. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10539. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10540. Usually this means the macro was only invoked conditionally." >&5
  10541. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10542. Usually this means the macro was only invoked conditionally." >&2;}
  10543. { (exit 1); exit 1; }; }
  10544. fi
  10545. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10546. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10547. Usually this means the macro was only invoked conditionally." >&5
  10548. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10549. Usually this means the macro was only invoked conditionally." >&2;}
  10550. { (exit 1); exit 1; }; }
  10551. fi
  10552. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10553. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10554. Usually this means the macro was only invoked conditionally." >&5
  10555. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10556. Usually this means the macro was only invoked conditionally." >&2;}
  10557. { (exit 1); exit 1; }; }
  10558. fi
  10559. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10560. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10561. Usually this means the macro was only invoked conditionally." >&5
  10562. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10563. Usually this means the macro was only invoked conditionally." >&2;}
  10564. { (exit 1); exit 1; }; }
  10565. fi
  10566. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10567. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10568. Usually this means the macro was only invoked conditionally." >&5
  10569. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10570. Usually this means the macro was only invoked conditionally." >&2;}
  10571. { (exit 1); exit 1; }; }
  10572. fi
  10573. if test -z "${HAVE_LIBARES_TRUE}" && test -z "${HAVE_LIBARES_FALSE}"; then
  10574. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBARES\" was never defined.
  10575. Usually this means the macro was only invoked conditionally." >&5
  10576. echo "$as_me: error: conditional \"HAVE_LIBARES\" was never defined.
  10577. Usually this means the macro was only invoked conditionally." >&2;}
  10578. { (exit 1); exit 1; }; }
  10579. fi
  10580. if test -z "${HAVE_LIBARES_TRUE}" && test -z "${HAVE_LIBARES_FALSE}"; then
  10581. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBARES\" was never defined.
  10582. Usually this means the macro was only invoked conditionally." >&5
  10583. echo "$as_me: error: conditional \"HAVE_LIBARES\" was never defined.
  10584. Usually this means the macro was only invoked conditionally." >&2;}
  10585. { (exit 1); exit 1; }; }
  10586. fi
  10587. : ${CONFIG_STATUS=./config.status}
  10588. ac_clean_files_save=$ac_clean_files
  10589. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10590. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10591. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10592. cat >$CONFIG_STATUS <<_ACEOF
  10593. #! $SHELL
  10594. # Generated by $as_me.
  10595. # Run this file to recreate the current configuration.
  10596. # Compiler output produced by configure, useful for debugging
  10597. # configure, is in config.log if it exists.
  10598. debug=false
  10599. ac_cs_recheck=false
  10600. ac_cs_silent=false
  10601. SHELL=\${CONFIG_SHELL-$SHELL}
  10602. _ACEOF
  10603. cat >>$CONFIG_STATUS <<\_ACEOF
  10604. ## --------------------- ##
  10605. ## M4sh Initialization. ##
  10606. ## --------------------- ##
  10607. # Be Bourne compatible
  10608. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10609. emulate sh
  10610. NULLCMD=:
  10611. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10612. # is contrary to our usage. Disable this feature.
  10613. alias -g '${1+"$@"}'='"$@"'
  10614. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10615. set -o posix
  10616. fi
  10617. DUALCASE=1; export DUALCASE # for MKS sh
  10618. # Support unset when possible.
  10619. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10620. as_unset=unset
  10621. else
  10622. as_unset=false
  10623. fi
  10624. # Work around bugs in pre-3.0 UWIN ksh.
  10625. $as_unset ENV MAIL MAILPATH
  10626. PS1='$ '
  10627. PS2='> '
  10628. PS4='+ '
  10629. # NLS nuisances.
  10630. for as_var in \
  10631. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10632. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10633. LC_TELEPHONE LC_TIME
  10634. do
  10635. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10636. eval $as_var=C; export $as_var
  10637. else
  10638. $as_unset $as_var
  10639. fi
  10640. done
  10641. # Required to use basename.
  10642. if expr a : '\(a\)' >/dev/null 2>&1; then
  10643. as_expr=expr
  10644. else
  10645. as_expr=false
  10646. fi
  10647. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10648. as_basename=basename
  10649. else
  10650. as_basename=false
  10651. fi
  10652. # Name of the executable.
  10653. as_me=`$as_basename "$0" ||
  10654. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10655. X"$0" : 'X\(//\)$' \| \
  10656. X"$0" : 'X\(/\)$' \| \
  10657. . : '\(.\)' 2>/dev/null ||
  10658. echo X/"$0" |
  10659. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10660. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10661. /^X\/\(\/\).*/{ s//\1/; q; }
  10662. s/.*/./; q'`
  10663. # PATH needs CR, and LINENO needs CR and PATH.
  10664. # Avoid depending upon Character Ranges.
  10665. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10666. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10667. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10668. as_cr_digits='0123456789'
  10669. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10670. # The user is always right.
  10671. if test "${PATH_SEPARATOR+set}" != set; then
  10672. echo "#! /bin/sh" >conf$$.sh
  10673. echo "exit 0" >>conf$$.sh
  10674. chmod +x conf$$.sh
  10675. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10676. PATH_SEPARATOR=';'
  10677. else
  10678. PATH_SEPARATOR=:
  10679. fi
  10680. rm -f conf$$.sh
  10681. fi
  10682. as_lineno_1=$LINENO
  10683. as_lineno_2=$LINENO
  10684. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10685. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10686. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10687. # Find who we are. Look in the path if we contain no path at all
  10688. # relative or not.
  10689. case $0 in
  10690. *[\\/]* ) as_myself=$0 ;;
  10691. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10692. for as_dir in $PATH
  10693. do
  10694. IFS=$as_save_IFS
  10695. test -z "$as_dir" && as_dir=.
  10696. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10697. done
  10698. ;;
  10699. esac
  10700. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10701. # in which case we are not to be found in the path.
  10702. if test "x$as_myself" = x; then
  10703. as_myself=$0
  10704. fi
  10705. if test ! -f "$as_myself"; then
  10706. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10707. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10708. { (exit 1); exit 1; }; }
  10709. fi
  10710. case $CONFIG_SHELL in
  10711. '')
  10712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10713. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10714. do
  10715. IFS=$as_save_IFS
  10716. test -z "$as_dir" && as_dir=.
  10717. for as_base in sh bash ksh sh5; do
  10718. case $as_dir in
  10719. /*)
  10720. if ("$as_dir/$as_base" -c '
  10721. as_lineno_1=$LINENO
  10722. as_lineno_2=$LINENO
  10723. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10724. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10725. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10726. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10727. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10728. CONFIG_SHELL=$as_dir/$as_base
  10729. export CONFIG_SHELL
  10730. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10731. fi;;
  10732. esac
  10733. done
  10734. done
  10735. ;;
  10736. esac
  10737. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10738. # uniformly replaced by the line number. The first 'sed' inserts a
  10739. # line-number line before each line; the second 'sed' does the real
  10740. # work. The second script uses 'N' to pair each line-number line
  10741. # with the numbered line, and appends trailing '-' during
  10742. # substitution so that $LINENO is not a special case at line end.
  10743. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10744. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10745. sed '=' <$as_myself |
  10746. sed '
  10747. N
  10748. s,$,-,
  10749. : loop
  10750. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10751. t loop
  10752. s,-$,,
  10753. s,^['$as_cr_digits']*\n,,
  10754. ' >$as_me.lineno &&
  10755. chmod +x $as_me.lineno ||
  10756. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10757. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10758. { (exit 1); exit 1; }; }
  10759. # Don't try to exec as it changes $[0], causing all sort of problems
  10760. # (the dirname of $[0] is not the place where we might find the
  10761. # original and so on. Autoconf is especially sensible to this).
  10762. . ./$as_me.lineno
  10763. # Exit status is that of the last command.
  10764. exit
  10765. }
  10766. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10767. *c*,-n*) ECHO_N= ECHO_C='
  10768. ' ECHO_T=' ' ;;
  10769. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10770. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10771. esac
  10772. if expr a : '\(a\)' >/dev/null 2>&1; then
  10773. as_expr=expr
  10774. else
  10775. as_expr=false
  10776. fi
  10777. rm -f conf$$ conf$$.exe conf$$.file
  10778. echo >conf$$.file
  10779. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10780. # We could just check for DJGPP; but this test a) works b) is more generic
  10781. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10782. if test -f conf$$.exe; then
  10783. # Don't use ln at all; we don't have any links
  10784. as_ln_s='cp -p'
  10785. else
  10786. as_ln_s='ln -s'
  10787. fi
  10788. elif ln conf$$.file conf$$ 2>/dev/null; then
  10789. as_ln_s=ln
  10790. else
  10791. as_ln_s='cp -p'
  10792. fi
  10793. rm -f conf$$ conf$$.exe conf$$.file
  10794. if mkdir -p . 2>/dev/null; then
  10795. as_mkdir_p=:
  10796. else
  10797. test -d ./-p && rmdir ./-p
  10798. as_mkdir_p=false
  10799. fi
  10800. as_executable_p="test -f"
  10801. # Sed expression to map a string onto a valid CPP name.
  10802. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10803. # Sed expression to map a string onto a valid variable name.
  10804. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10805. # IFS
  10806. # We need space, tab and new line, in precisely that order.
  10807. as_nl='
  10808. '
  10809. IFS=" $as_nl"
  10810. # CDPATH.
  10811. $as_unset CDPATH
  10812. exec 6>&1
  10813. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10814. # report actual input values of CONFIG_FILES etc. instead of their
  10815. # values after options handling. Logging --version etc. is OK.
  10816. exec 5>>config.log
  10817. {
  10818. echo
  10819. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10820. ## Running $as_me. ##
  10821. _ASBOX
  10822. } >&5
  10823. cat >&5 <<_CSEOF
  10824. This file was extended by aria2c $as_me 0.7.0, which was
  10825. generated by GNU Autoconf 2.59. Invocation command line was
  10826. CONFIG_FILES = $CONFIG_FILES
  10827. CONFIG_HEADERS = $CONFIG_HEADERS
  10828. CONFIG_LINKS = $CONFIG_LINKS
  10829. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10830. $ $0 $@
  10831. _CSEOF
  10832. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10833. echo >&5
  10834. _ACEOF
  10835. # Files that config.status was made for.
  10836. if test -n "$ac_config_files"; then
  10837. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10838. fi
  10839. if test -n "$ac_config_headers"; then
  10840. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10841. fi
  10842. if test -n "$ac_config_links"; then
  10843. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10844. fi
  10845. if test -n "$ac_config_commands"; then
  10846. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10847. fi
  10848. cat >>$CONFIG_STATUS <<\_ACEOF
  10849. ac_cs_usage="\
  10850. \`$as_me' instantiates files from templates according to the
  10851. current configuration.
  10852. Usage: $0 [OPTIONS] [FILE]...
  10853. -h, --help print this help, then exit
  10854. -V, --version print version number, then exit
  10855. -q, --quiet do not print progress messages
  10856. -d, --debug don't remove temporary files
  10857. --recheck update $as_me by reconfiguring in the same conditions
  10858. --file=FILE[:TEMPLATE]
  10859. instantiate the configuration file FILE
  10860. --header=FILE[:TEMPLATE]
  10861. instantiate the configuration header FILE
  10862. Configuration files:
  10863. $config_files
  10864. Configuration headers:
  10865. $config_headers
  10866. Configuration commands:
  10867. $config_commands
  10868. Report bugs to <bug-autoconf@gnu.org>."
  10869. _ACEOF
  10870. cat >>$CONFIG_STATUS <<_ACEOF
  10871. ac_cs_version="\\
  10872. aria2c config.status 0.7.0
  10873. configured by $0, generated by GNU Autoconf 2.59,
  10874. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10875. Copyright (C) 2003 Free Software Foundation, Inc.
  10876. This config.status script is free software; the Free Software Foundation
  10877. gives unlimited permission to copy, distribute and modify it."
  10878. srcdir=$srcdir
  10879. INSTALL="$INSTALL"
  10880. _ACEOF
  10881. cat >>$CONFIG_STATUS <<\_ACEOF
  10882. # If no file are specified by the user, then we need to provide default
  10883. # value. By we need to know if files were specified by the user.
  10884. ac_need_defaults=:
  10885. while test $# != 0
  10886. do
  10887. case $1 in
  10888. --*=*)
  10889. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10890. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10891. ac_shift=:
  10892. ;;
  10893. -*)
  10894. ac_option=$1
  10895. ac_optarg=$2
  10896. ac_shift=shift
  10897. ;;
  10898. *) # This is not an option, so the user has probably given explicit
  10899. # arguments.
  10900. ac_option=$1
  10901. ac_need_defaults=false;;
  10902. esac
  10903. case $ac_option in
  10904. # Handling of the options.
  10905. _ACEOF
  10906. cat >>$CONFIG_STATUS <<\_ACEOF
  10907. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10908. ac_cs_recheck=: ;;
  10909. --version | --vers* | -V )
  10910. echo "$ac_cs_version"; exit 0 ;;
  10911. --he | --h)
  10912. # Conflict between --help and --header
  10913. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10914. Try \`$0 --help' for more information." >&5
  10915. echo "$as_me: error: ambiguous option: $1
  10916. Try \`$0 --help' for more information." >&2;}
  10917. { (exit 1); exit 1; }; };;
  10918. --help | --hel | -h )
  10919. echo "$ac_cs_usage"; exit 0 ;;
  10920. --debug | --d* | -d )
  10921. debug=: ;;
  10922. --file | --fil | --fi | --f )
  10923. $ac_shift
  10924. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10925. ac_need_defaults=false;;
  10926. --header | --heade | --head | --hea )
  10927. $ac_shift
  10928. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10929. ac_need_defaults=false;;
  10930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10931. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10932. ac_cs_silent=: ;;
  10933. # This is an error.
  10934. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10935. Try \`$0 --help' for more information." >&5
  10936. echo "$as_me: error: unrecognized option: $1
  10937. Try \`$0 --help' for more information." >&2;}
  10938. { (exit 1); exit 1; }; } ;;
  10939. *) ac_config_targets="$ac_config_targets $1" ;;
  10940. esac
  10941. shift
  10942. done
  10943. ac_configure_extra_args=
  10944. if $ac_cs_silent; then
  10945. exec 6>/dev/null
  10946. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10947. fi
  10948. _ACEOF
  10949. cat >>$CONFIG_STATUS <<_ACEOF
  10950. if \$ac_cs_recheck; then
  10951. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10952. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10953. fi
  10954. _ACEOF
  10955. cat >>$CONFIG_STATUS <<_ACEOF
  10956. #
  10957. # INIT-COMMANDS section.
  10958. #
  10959. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10960. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10961. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10962. # from automake.
  10963. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10964. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10965. LINGUAS="${LINGUAS-%UNSET%}"
  10966. _ACEOF
  10967. cat >>$CONFIG_STATUS <<\_ACEOF
  10968. for ac_config_target in $ac_config_targets
  10969. do
  10970. case "$ac_config_target" in
  10971. # Handling of arguments.
  10972. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10973. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10974. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10975. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10976. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10977. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10978. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10979. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10980. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10981. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10982. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10983. { (exit 1); exit 1; }; };;
  10984. esac
  10985. done
  10986. # If the user did not use the arguments to specify the items to instantiate,
  10987. # then the envvar interface is used. Set only those that are not.
  10988. # We use the long form for the default assignment because of an extremely
  10989. # bizarre bug on SunOS 4.1.3.
  10990. if $ac_need_defaults; then
  10991. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10992. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10993. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10994. fi
  10995. # Have a temporary directory for convenience. Make it in the build tree
  10996. # simply because there is no reason to put it here, and in addition,
  10997. # creating and moving files from /tmp can sometimes cause problems.
  10998. # Create a temporary directory, and hook for its removal unless debugging.
  10999. $debug ||
  11000. {
  11001. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11002. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11003. }
  11004. # Create a (secure) tmp directory for tmp files.
  11005. {
  11006. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11007. test -n "$tmp" && test -d "$tmp"
  11008. } ||
  11009. {
  11010. tmp=./confstat$$-$RANDOM
  11011. (umask 077 && mkdir $tmp)
  11012. } ||
  11013. {
  11014. echo "$me: cannot create a temporary directory in ." >&2
  11015. { (exit 1); exit 1; }
  11016. }
  11017. _ACEOF
  11018. cat >>$CONFIG_STATUS <<_ACEOF
  11019. #
  11020. # CONFIG_FILES section.
  11021. #
  11022. # No need to generate the scripts if there are no CONFIG_FILES.
  11023. # This happens for instance when ./config.status config.h
  11024. if test -n "\$CONFIG_FILES"; then
  11025. # Protect against being on the right side of a sed subst in config.status.
  11026. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11027. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11028. s,@SHELL@,$SHELL,;t t
  11029. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11030. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11031. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11032. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11033. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11034. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11035. s,@exec_prefix@,$exec_prefix,;t t
  11036. s,@prefix@,$prefix,;t t
  11037. s,@program_transform_name@,$program_transform_name,;t t
  11038. s,@bindir@,$bindir,;t t
  11039. s,@sbindir@,$sbindir,;t t
  11040. s,@libexecdir@,$libexecdir,;t t
  11041. s,@datadir@,$datadir,;t t
  11042. s,@sysconfdir@,$sysconfdir,;t t
  11043. s,@sharedstatedir@,$sharedstatedir,;t t
  11044. s,@localstatedir@,$localstatedir,;t t
  11045. s,@libdir@,$libdir,;t t
  11046. s,@includedir@,$includedir,;t t
  11047. s,@oldincludedir@,$oldincludedir,;t t
  11048. s,@infodir@,$infodir,;t t
  11049. s,@mandir@,$mandir,;t t
  11050. s,@build_alias@,$build_alias,;t t
  11051. s,@host_alias@,$host_alias,;t t
  11052. s,@target_alias@,$target_alias,;t t
  11053. s,@DEFS@,$DEFS,;t t
  11054. s,@ECHO_C@,$ECHO_C,;t t
  11055. s,@ECHO_N@,$ECHO_N,;t t
  11056. s,@ECHO_T@,$ECHO_T,;t t
  11057. s,@LIBS@,$LIBS,;t t
  11058. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11059. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11060. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11061. s,@CYGPATH_W@,$CYGPATH_W,;t t
  11062. s,@PACKAGE@,$PACKAGE,;t t
  11063. s,@VERSION@,$VERSION,;t t
  11064. s,@ACLOCAL@,$ACLOCAL,;t t
  11065. s,@AUTOCONF@,$AUTOCONF,;t t
  11066. s,@AUTOMAKE@,$AUTOMAKE,;t t
  11067. s,@AUTOHEADER@,$AUTOHEADER,;t t
  11068. s,@MAKEINFO@,$MAKEINFO,;t t
  11069. s,@install_sh@,$install_sh,;t t
  11070. s,@STRIP@,$STRIP,;t t
  11071. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11072. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  11073. s,@mkdir_p@,$mkdir_p,;t t
  11074. s,@AWK@,$AWK,;t t
  11075. s,@SET_MAKE@,$SET_MAKE,;t t
  11076. s,@am__leading_dot@,$am__leading_dot,;t t
  11077. s,@AMTAR@,$AMTAR,;t t
  11078. s,@am__tar@,$am__tar,;t t
  11079. s,@am__untar@,$am__untar,;t t
  11080. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  11081. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  11082. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  11083. s,@localedir@,$localedir,;t t
  11084. s,@CXX@,$CXX,;t t
  11085. s,@CXXFLAGS@,$CXXFLAGS,;t t
  11086. s,@LDFLAGS@,$LDFLAGS,;t t
  11087. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11088. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  11089. s,@EXEEXT@,$EXEEXT,;t t
  11090. s,@OBJEXT@,$OBJEXT,;t t
  11091. s,@DEPDIR@,$DEPDIR,;t t
  11092. s,@am__include@,$am__include,;t t
  11093. s,@am__quote@,$am__quote,;t t
  11094. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  11095. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  11096. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  11097. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  11098. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  11099. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  11100. s,@CC@,$CC,;t t
  11101. s,@CFLAGS@,$CFLAGS,;t t
  11102. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11103. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11104. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  11105. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  11106. s,@RANLIB@,$RANLIB,;t t
  11107. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11108. s,@YACC@,$YACC,;t t
  11109. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  11110. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  11111. s,@XML_LIBS@,$XML_LIBS,;t t
  11112. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  11113. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  11114. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  11115. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  11116. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  11117. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  11118. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  11119. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  11120. s,@LIBARES_LIBS@,$LIBARES_LIBS,;t t
  11121. s,@LIBARES_CPPFLAGS@,$LIBARES_CPPFLAGS,;t t
  11122. s,@ENABLE_BITTORRENT_TRUE@,$ENABLE_BITTORRENT_TRUE,;t t
  11123. s,@ENABLE_BITTORRENT_FALSE@,$ENABLE_BITTORRENT_FALSE,;t t
  11124. s,@ENABLE_METALINK_TRUE@,$ENABLE_METALINK_TRUE,;t t
  11125. s,@ENABLE_METALINK_FALSE@,$ENABLE_METALINK_FALSE,;t t
  11126. s,@HAVE_LIBARES_TRUE@,$HAVE_LIBARES_TRUE,;t t
  11127. s,@HAVE_LIBARES_FALSE@,$HAVE_LIBARES_FALSE,;t t
  11128. s,@ALLOCA@,$ALLOCA,;t t
  11129. s,@CPP@,$CPP,;t t
  11130. s,@EGREP@,$EGREP,;t t
  11131. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  11132. s,@USE_NLS@,$USE_NLS,;t t
  11133. s,@MSGFMT@,$MSGFMT,;t t
  11134. s,@GMSGFMT@,$GMSGFMT,;t t
  11135. s,@XGETTEXT@,$XGETTEXT,;t t
  11136. s,@MSGMERGE@,$MSGMERGE,;t t
  11137. s,@build@,$build,;t t
  11138. s,@build_cpu@,$build_cpu,;t t
  11139. s,@build_vendor@,$build_vendor,;t t
  11140. s,@build_os@,$build_os,;t t
  11141. s,@host@,$host,;t t
  11142. s,@host_cpu@,$host_cpu,;t t
  11143. s,@host_vendor@,$host_vendor,;t t
  11144. s,@host_os@,$host_os,;t t
  11145. s,@GLIBC21@,$GLIBC21,;t t
  11146. s,@LIBICONV@,$LIBICONV,;t t
  11147. s,@LTLIBICONV@,$LTLIBICONV,;t t
  11148. s,@INTLBISON@,$INTLBISON,;t t
  11149. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  11150. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  11151. s,@CATOBJEXT@,$CATOBJEXT,;t t
  11152. s,@DATADIRNAME@,$DATADIRNAME,;t t
  11153. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  11154. s,@GENCAT@,$GENCAT,;t t
  11155. s,@INTLOBJS@,$INTLOBJS,;t t
  11156. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  11157. s,@INTLLIBS@,$INTLLIBS,;t t
  11158. s,@LIBINTL@,$LIBINTL,;t t
  11159. s,@LTLIBINTL@,$LTLIBINTL,;t t
  11160. s,@POSUB@,$POSUB,;t t
  11161. s,@LIBOBJS@,$LIBOBJS,;t t
  11162. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11163. CEOF
  11164. _ACEOF
  11165. cat >>$CONFIG_STATUS <<\_ACEOF
  11166. # Split the substitutions into bite-sized pieces for seds with
  11167. # small command number limits, like on Digital OSF/1 and HP-UX.
  11168. ac_max_sed_lines=48
  11169. ac_sed_frag=1 # Number of current file.
  11170. ac_beg=1 # First line for current file.
  11171. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11172. ac_more_lines=:
  11173. ac_sed_cmds=
  11174. while $ac_more_lines; do
  11175. if test $ac_beg -gt 1; then
  11176. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11177. else
  11178. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11179. fi
  11180. if test ! -s $tmp/subs.frag; then
  11181. ac_more_lines=false
  11182. else
  11183. # The purpose of the label and of the branching condition is to
  11184. # speed up the sed processing (if there are no `@' at all, there
  11185. # is no need to browse any of the substitutions).
  11186. # These are the two extra sed commands mentioned above.
  11187. (echo ':t
  11188. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11189. if test -z "$ac_sed_cmds"; then
  11190. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11191. else
  11192. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11193. fi
  11194. ac_sed_frag=`expr $ac_sed_frag + 1`
  11195. ac_beg=$ac_end
  11196. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11197. fi
  11198. done
  11199. if test -z "$ac_sed_cmds"; then
  11200. ac_sed_cmds=cat
  11201. fi
  11202. fi # test -n "$CONFIG_FILES"
  11203. _ACEOF
  11204. cat >>$CONFIG_STATUS <<\_ACEOF
  11205. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11206. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11207. case $ac_file in
  11208. - | *:- | *:-:* ) # input from stdin
  11209. cat >$tmp/stdin
  11210. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11211. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11212. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11213. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11214. * ) ac_file_in=$ac_file.in ;;
  11215. esac
  11216. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11217. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11218. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11219. X"$ac_file" : 'X\(//\)[^/]' \| \
  11220. X"$ac_file" : 'X\(//\)$' \| \
  11221. X"$ac_file" : 'X\(/\)' \| \
  11222. . : '\(.\)' 2>/dev/null ||
  11223. echo X"$ac_file" |
  11224. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11225. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11226. /^X\(\/\/\)$/{ s//\1/; q; }
  11227. /^X\(\/\).*/{ s//\1/; q; }
  11228. s/.*/./; q'`
  11229. { if $as_mkdir_p; then
  11230. mkdir -p "$ac_dir"
  11231. else
  11232. as_dir="$ac_dir"
  11233. as_dirs=
  11234. while test ! -d "$as_dir"; do
  11235. as_dirs="$as_dir $as_dirs"
  11236. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11237. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11238. X"$as_dir" : 'X\(//\)[^/]' \| \
  11239. X"$as_dir" : 'X\(//\)$' \| \
  11240. X"$as_dir" : 'X\(/\)' \| \
  11241. . : '\(.\)' 2>/dev/null ||
  11242. echo X"$as_dir" |
  11243. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11244. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11245. /^X\(\/\/\)$/{ s//\1/; q; }
  11246. /^X\(\/\).*/{ s//\1/; q; }
  11247. s/.*/./; q'`
  11248. done
  11249. test ! -n "$as_dirs" || mkdir $as_dirs
  11250. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11251. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11252. { (exit 1); exit 1; }; }; }
  11253. ac_builddir=.
  11254. if test "$ac_dir" != .; then
  11255. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11256. # A "../" for each directory in $ac_dir_suffix.
  11257. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11258. else
  11259. ac_dir_suffix= ac_top_builddir=
  11260. fi
  11261. case $srcdir in
  11262. .) # No --srcdir option. We are building in place.
  11263. ac_srcdir=.
  11264. if test -z "$ac_top_builddir"; then
  11265. ac_top_srcdir=.
  11266. else
  11267. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11268. fi ;;
  11269. [\\/]* | ?:[\\/]* ) # Absolute path.
  11270. ac_srcdir=$srcdir$ac_dir_suffix;
  11271. ac_top_srcdir=$srcdir ;;
  11272. *) # Relative path.
  11273. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11274. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11275. esac
  11276. # Do not use `cd foo && pwd` to compute absolute paths, because
  11277. # the directories may not exist.
  11278. case `pwd` in
  11279. .) ac_abs_builddir="$ac_dir";;
  11280. *)
  11281. case "$ac_dir" in
  11282. .) ac_abs_builddir=`pwd`;;
  11283. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11284. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11285. esac;;
  11286. esac
  11287. case $ac_abs_builddir in
  11288. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11289. *)
  11290. case ${ac_top_builddir}. in
  11291. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11292. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11293. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11294. esac;;
  11295. esac
  11296. case $ac_abs_builddir in
  11297. .) ac_abs_srcdir=$ac_srcdir;;
  11298. *)
  11299. case $ac_srcdir in
  11300. .) ac_abs_srcdir=$ac_abs_builddir;;
  11301. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11302. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11303. esac;;
  11304. esac
  11305. case $ac_abs_builddir in
  11306. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11307. *)
  11308. case $ac_top_srcdir in
  11309. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11310. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11311. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11312. esac;;
  11313. esac
  11314. case $INSTALL in
  11315. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11316. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11317. esac
  11318. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11319. # use $as_me), people would be surprised to read:
  11320. # /* config.h. Generated by config.status. */
  11321. if test x"$ac_file" = x-; then
  11322. configure_input=
  11323. else
  11324. configure_input="$ac_file. "
  11325. fi
  11326. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11327. sed 's,.*/,,'` by configure."
  11328. # First look for the input files in the build tree, otherwise in the
  11329. # src tree.
  11330. ac_file_inputs=`IFS=:
  11331. for f in $ac_file_in; do
  11332. case $f in
  11333. -) echo $tmp/stdin ;;
  11334. [\\/$]*)
  11335. # Absolute (can't be DOS-style, as IFS=:)
  11336. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11337. echo "$as_me: error: cannot find input file: $f" >&2;}
  11338. { (exit 1); exit 1; }; }
  11339. echo "$f";;
  11340. *) # Relative
  11341. if test -f "$f"; then
  11342. # Build tree
  11343. echo "$f"
  11344. elif test -f "$srcdir/$f"; then
  11345. # Source tree
  11346. echo "$srcdir/$f"
  11347. else
  11348. # /dev/null tree
  11349. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11350. echo "$as_me: error: cannot find input file: $f" >&2;}
  11351. { (exit 1); exit 1; }; }
  11352. fi;;
  11353. esac
  11354. done` || { (exit 1); exit 1; }
  11355. if test x"$ac_file" != x-; then
  11356. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11357. echo "$as_me: creating $ac_file" >&6;}
  11358. rm -f "$ac_file"
  11359. fi
  11360. _ACEOF
  11361. cat >>$CONFIG_STATUS <<_ACEOF
  11362. sed "$ac_vpsub
  11363. $extrasub
  11364. _ACEOF
  11365. cat >>$CONFIG_STATUS <<\_ACEOF
  11366. :t
  11367. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11368. s,@configure_input@,$configure_input,;t t
  11369. s,@srcdir@,$ac_srcdir,;t t
  11370. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11371. s,@top_srcdir@,$ac_top_srcdir,;t t
  11372. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11373. s,@builddir@,$ac_builddir,;t t
  11374. s,@abs_builddir@,$ac_abs_builddir,;t t
  11375. s,@top_builddir@,$ac_top_builddir,;t t
  11376. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11377. s,@INSTALL@,$ac_INSTALL,;t t
  11378. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11379. rm -f $tmp/stdin
  11380. if test x"$ac_file" != x-; then
  11381. mv $tmp/out $ac_file
  11382. else
  11383. cat $tmp/out
  11384. rm -f $tmp/out
  11385. fi
  11386. done
  11387. _ACEOF
  11388. cat >>$CONFIG_STATUS <<\_ACEOF
  11389. #
  11390. # CONFIG_HEADER section.
  11391. #
  11392. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11393. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11394. #
  11395. # ac_d sets the value in "#define NAME VALUE" lines.
  11396. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11397. ac_dB='[ ].*$,\1#\2'
  11398. ac_dC=' '
  11399. ac_dD=',;t'
  11400. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11401. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11402. ac_uB='$,\1#\2define\3'
  11403. ac_uC=' '
  11404. ac_uD=',;t'
  11405. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11406. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11407. case $ac_file in
  11408. - | *:- | *:-:* ) # input from stdin
  11409. cat >$tmp/stdin
  11410. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11411. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11412. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11413. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11414. * ) ac_file_in=$ac_file.in ;;
  11415. esac
  11416. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11417. echo "$as_me: creating $ac_file" >&6;}
  11418. # First look for the input files in the build tree, otherwise in the
  11419. # src tree.
  11420. ac_file_inputs=`IFS=:
  11421. for f in $ac_file_in; do
  11422. case $f in
  11423. -) echo $tmp/stdin ;;
  11424. [\\/$]*)
  11425. # Absolute (can't be DOS-style, as IFS=:)
  11426. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11427. echo "$as_me: error: cannot find input file: $f" >&2;}
  11428. { (exit 1); exit 1; }; }
  11429. # Do quote $f, to prevent DOS paths from being IFS'd.
  11430. echo "$f";;
  11431. *) # Relative
  11432. if test -f "$f"; then
  11433. # Build tree
  11434. echo "$f"
  11435. elif test -f "$srcdir/$f"; then
  11436. # Source tree
  11437. echo "$srcdir/$f"
  11438. else
  11439. # /dev/null tree
  11440. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11441. echo "$as_me: error: cannot find input file: $f" >&2;}
  11442. { (exit 1); exit 1; }; }
  11443. fi;;
  11444. esac
  11445. done` || { (exit 1); exit 1; }
  11446. # Remove the trailing spaces.
  11447. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11448. _ACEOF
  11449. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11450. # `conftest.undefs', that substitutes the proper values into
  11451. # config.h.in to produce config.h. The first handles `#define'
  11452. # templates, and the second `#undef' templates.
  11453. # And first: Protect against being on the right side of a sed subst in
  11454. # config.status. Protect against being in an unquoted here document
  11455. # in config.status.
  11456. rm -f conftest.defines conftest.undefs
  11457. # Using a here document instead of a string reduces the quoting nightmare.
  11458. # Putting comments in sed scripts is not portable.
  11459. #
  11460. # `end' is used to avoid that the second main sed command (meant for
  11461. # 0-ary CPP macros) applies to n-ary macro definitions.
  11462. # See the Autoconf documentation for `clear'.
  11463. cat >confdef2sed.sed <<\_ACEOF
  11464. s/[\\&,]/\\&/g
  11465. s,[\\$`],\\&,g
  11466. t clear
  11467. : clear
  11468. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11469. t end
  11470. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11471. : end
  11472. _ACEOF
  11473. # If some macros were called several times there might be several times
  11474. # the same #defines, which is useless. Nevertheless, we may not want to
  11475. # sort them, since we want the *last* AC-DEFINE to be honored.
  11476. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11477. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11478. rm -f confdef2sed.sed
  11479. # This sed command replaces #undef with comments. This is necessary, for
  11480. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11481. # on some systems where configure will not decide to define it.
  11482. cat >>conftest.undefs <<\_ACEOF
  11483. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11484. _ACEOF
  11485. # Break up conftest.defines because some shells have a limit on the size
  11486. # of here documents, and old seds have small limits too (100 cmds).
  11487. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11488. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11489. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11490. echo ' :' >>$CONFIG_STATUS
  11491. rm -f conftest.tail
  11492. while grep . conftest.defines >/dev/null
  11493. do
  11494. # Write a limited-size here document to $tmp/defines.sed.
  11495. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11496. # Speed up: don't consider the non `#define' lines.
  11497. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11498. # Work around the forget-to-reset-the-flag bug.
  11499. echo 't clr' >>$CONFIG_STATUS
  11500. echo ': clr' >>$CONFIG_STATUS
  11501. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11502. echo 'CEOF
  11503. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11504. rm -f $tmp/in
  11505. mv $tmp/out $tmp/in
  11506. ' >>$CONFIG_STATUS
  11507. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11508. rm -f conftest.defines
  11509. mv conftest.tail conftest.defines
  11510. done
  11511. rm -f conftest.defines
  11512. echo ' fi # grep' >>$CONFIG_STATUS
  11513. echo >>$CONFIG_STATUS
  11514. # Break up conftest.undefs because some shells have a limit on the size
  11515. # of here documents, and old seds have small limits too (100 cmds).
  11516. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11517. rm -f conftest.tail
  11518. while grep . conftest.undefs >/dev/null
  11519. do
  11520. # Write a limited-size here document to $tmp/undefs.sed.
  11521. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11522. # Speed up: don't consider the non `#undef'
  11523. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11524. # Work around the forget-to-reset-the-flag bug.
  11525. echo 't clr' >>$CONFIG_STATUS
  11526. echo ': clr' >>$CONFIG_STATUS
  11527. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11528. echo 'CEOF
  11529. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11530. rm -f $tmp/in
  11531. mv $tmp/out $tmp/in
  11532. ' >>$CONFIG_STATUS
  11533. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11534. rm -f conftest.undefs
  11535. mv conftest.tail conftest.undefs
  11536. done
  11537. rm -f conftest.undefs
  11538. cat >>$CONFIG_STATUS <<\_ACEOF
  11539. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11540. # use $as_me), people would be surprised to read:
  11541. # /* config.h. Generated by config.status. */
  11542. if test x"$ac_file" = x-; then
  11543. echo "/* Generated by configure. */" >$tmp/config.h
  11544. else
  11545. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11546. fi
  11547. cat $tmp/in >>$tmp/config.h
  11548. rm -f $tmp/in
  11549. if test x"$ac_file" != x-; then
  11550. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11551. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11552. echo "$as_me: $ac_file is unchanged" >&6;}
  11553. else
  11554. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11555. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11556. X"$ac_file" : 'X\(//\)[^/]' \| \
  11557. X"$ac_file" : 'X\(//\)$' \| \
  11558. X"$ac_file" : 'X\(/\)' \| \
  11559. . : '\(.\)' 2>/dev/null ||
  11560. echo X"$ac_file" |
  11561. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11562. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11563. /^X\(\/\/\)$/{ s//\1/; q; }
  11564. /^X\(\/\).*/{ s//\1/; q; }
  11565. s/.*/./; q'`
  11566. { if $as_mkdir_p; then
  11567. mkdir -p "$ac_dir"
  11568. else
  11569. as_dir="$ac_dir"
  11570. as_dirs=
  11571. while test ! -d "$as_dir"; do
  11572. as_dirs="$as_dir $as_dirs"
  11573. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11574. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11575. X"$as_dir" : 'X\(//\)[^/]' \| \
  11576. X"$as_dir" : 'X\(//\)$' \| \
  11577. X"$as_dir" : 'X\(/\)' \| \
  11578. . : '\(.\)' 2>/dev/null ||
  11579. echo X"$as_dir" |
  11580. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11581. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11582. /^X\(\/\/\)$/{ s//\1/; q; }
  11583. /^X\(\/\).*/{ s//\1/; q; }
  11584. s/.*/./; q'`
  11585. done
  11586. test ! -n "$as_dirs" || mkdir $as_dirs
  11587. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11588. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11589. { (exit 1); exit 1; }; }; }
  11590. rm -f $ac_file
  11591. mv $tmp/config.h $ac_file
  11592. fi
  11593. else
  11594. cat $tmp/config.h
  11595. rm -f $tmp/config.h
  11596. fi
  11597. # Compute $ac_file's index in $config_headers.
  11598. _am_stamp_count=1
  11599. for _am_header in $config_headers :; do
  11600. case $_am_header in
  11601. $ac_file | $ac_file:* )
  11602. break ;;
  11603. * )
  11604. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11605. esac
  11606. done
  11607. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11608. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11609. X$ac_file : 'X\(//\)[^/]' \| \
  11610. X$ac_file : 'X\(//\)$' \| \
  11611. X$ac_file : 'X\(/\)' \| \
  11612. . : '\(.\)' 2>/dev/null ||
  11613. echo X$ac_file |
  11614. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11615. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11616. /^X\(\/\/\)$/{ s//\1/; q; }
  11617. /^X\(\/\).*/{ s//\1/; q; }
  11618. s/.*/./; q'`/stamp-h$_am_stamp_count
  11619. done
  11620. _ACEOF
  11621. cat >>$CONFIG_STATUS <<\_ACEOF
  11622. #
  11623. # CONFIG_COMMANDS section.
  11624. #
  11625. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11626. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11627. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11628. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11629. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11630. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11631. X"$ac_dest" : 'X\(//\)$' \| \
  11632. X"$ac_dest" : 'X\(/\)' \| \
  11633. . : '\(.\)' 2>/dev/null ||
  11634. echo X"$ac_dest" |
  11635. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11636. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11637. /^X\(\/\/\)$/{ s//\1/; q; }
  11638. /^X\(\/\).*/{ s//\1/; q; }
  11639. s/.*/./; q'`
  11640. { if $as_mkdir_p; then
  11641. mkdir -p "$ac_dir"
  11642. else
  11643. as_dir="$ac_dir"
  11644. as_dirs=
  11645. while test ! -d "$as_dir"; do
  11646. as_dirs="$as_dir $as_dirs"
  11647. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11648. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11649. X"$as_dir" : 'X\(//\)[^/]' \| \
  11650. X"$as_dir" : 'X\(//\)$' \| \
  11651. X"$as_dir" : 'X\(/\)' \| \
  11652. . : '\(.\)' 2>/dev/null ||
  11653. echo X"$as_dir" |
  11654. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11655. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11656. /^X\(\/\/\)$/{ s//\1/; q; }
  11657. /^X\(\/\).*/{ s//\1/; q; }
  11658. s/.*/./; q'`
  11659. done
  11660. test ! -n "$as_dirs" || mkdir $as_dirs
  11661. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11662. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11663. { (exit 1); exit 1; }; }; }
  11664. ac_builddir=.
  11665. if test "$ac_dir" != .; then
  11666. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11667. # A "../" for each directory in $ac_dir_suffix.
  11668. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11669. else
  11670. ac_dir_suffix= ac_top_builddir=
  11671. fi
  11672. case $srcdir in
  11673. .) # No --srcdir option. We are building in place.
  11674. ac_srcdir=.
  11675. if test -z "$ac_top_builddir"; then
  11676. ac_top_srcdir=.
  11677. else
  11678. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11679. fi ;;
  11680. [\\/]* | ?:[\\/]* ) # Absolute path.
  11681. ac_srcdir=$srcdir$ac_dir_suffix;
  11682. ac_top_srcdir=$srcdir ;;
  11683. *) # Relative path.
  11684. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11685. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11686. esac
  11687. # Do not use `cd foo && pwd` to compute absolute paths, because
  11688. # the directories may not exist.
  11689. case `pwd` in
  11690. .) ac_abs_builddir="$ac_dir";;
  11691. *)
  11692. case "$ac_dir" in
  11693. .) ac_abs_builddir=`pwd`;;
  11694. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11695. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11696. esac;;
  11697. esac
  11698. case $ac_abs_builddir in
  11699. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11700. *)
  11701. case ${ac_top_builddir}. in
  11702. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11703. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11704. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11705. esac;;
  11706. esac
  11707. case $ac_abs_builddir in
  11708. .) ac_abs_srcdir=$ac_srcdir;;
  11709. *)
  11710. case $ac_srcdir in
  11711. .) ac_abs_srcdir=$ac_abs_builddir;;
  11712. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11713. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11714. esac;;
  11715. esac
  11716. case $ac_abs_builddir in
  11717. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11718. *)
  11719. case $ac_top_srcdir in
  11720. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11721. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11722. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11723. esac;;
  11724. esac
  11725. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11726. echo "$as_me: executing $ac_dest commands" >&6;}
  11727. case $ac_dest in
  11728. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11729. # Strip MF so we end up with the name of the file.
  11730. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11731. # Check whether this is an Automake generated Makefile or not.
  11732. # We used to match only the files named `Makefile.in', but
  11733. # some people rename them; so instead we look at the file content.
  11734. # Grep'ing the first line is not enough: some people post-process
  11735. # each Makefile.in and add a new line on top of each file to say so.
  11736. # So let's grep whole file.
  11737. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11738. dirpart=`(dirname "$mf") 2>/dev/null ||
  11739. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11740. X"$mf" : 'X\(//\)[^/]' \| \
  11741. X"$mf" : 'X\(//\)$' \| \
  11742. X"$mf" : 'X\(/\)' \| \
  11743. . : '\(.\)' 2>/dev/null ||
  11744. echo X"$mf" |
  11745. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11746. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11747. /^X\(\/\/\)$/{ s//\1/; q; }
  11748. /^X\(\/\).*/{ s//\1/; q; }
  11749. s/.*/./; q'`
  11750. else
  11751. continue
  11752. fi
  11753. # Extract the definition of DEPDIR, am__include, and am__quote
  11754. # from the Makefile without running `make'.
  11755. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11756. test -z "$DEPDIR" && continue
  11757. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11758. test -z "am__include" && continue
  11759. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11760. # When using ansi2knr, U may be empty or an underscore; expand it
  11761. U=`sed -n 's/^U = //p' < "$mf"`
  11762. # Find all dependency output files, they are included files with
  11763. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11764. # simplest approach to changing $(DEPDIR) to its actual value in the
  11765. # expansion.
  11766. for file in `sed -n "
  11767. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11768. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11769. # Make sure the directory exists.
  11770. test -f "$dirpart/$file" && continue
  11771. fdir=`(dirname "$file") 2>/dev/null ||
  11772. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11773. X"$file" : 'X\(//\)[^/]' \| \
  11774. X"$file" : 'X\(//\)$' \| \
  11775. X"$file" : 'X\(/\)' \| \
  11776. . : '\(.\)' 2>/dev/null ||
  11777. echo X"$file" |
  11778. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11779. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11780. /^X\(\/\/\)$/{ s//\1/; q; }
  11781. /^X\(\/\).*/{ s//\1/; q; }
  11782. s/.*/./; q'`
  11783. { if $as_mkdir_p; then
  11784. mkdir -p $dirpart/$fdir
  11785. else
  11786. as_dir=$dirpart/$fdir
  11787. as_dirs=
  11788. while test ! -d "$as_dir"; do
  11789. as_dirs="$as_dir $as_dirs"
  11790. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11791. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11792. X"$as_dir" : 'X\(//\)[^/]' \| \
  11793. X"$as_dir" : 'X\(//\)$' \| \
  11794. X"$as_dir" : 'X\(/\)' \| \
  11795. . : '\(.\)' 2>/dev/null ||
  11796. echo X"$as_dir" |
  11797. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11798. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11799. /^X\(\/\/\)$/{ s//\1/; q; }
  11800. /^X\(\/\).*/{ s//\1/; q; }
  11801. s/.*/./; q'`
  11802. done
  11803. test ! -n "$as_dirs" || mkdir $as_dirs
  11804. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11805. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11806. { (exit 1); exit 1; }; }; }
  11807. # echo "creating $dirpart/$file"
  11808. echo '# dummy' > "$dirpart/$file"
  11809. done
  11810. done
  11811. ;;
  11812. default-1 )
  11813. for ac_file in $CONFIG_FILES; do
  11814. # Support "outfile[:infile[:infile...]]"
  11815. case "$ac_file" in
  11816. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11817. esac
  11818. # PO directories have a Makefile.in generated from Makefile.in.in.
  11819. case "$ac_file" in */Makefile.in)
  11820. # Adjust a relative srcdir.
  11821. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11822. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11823. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11824. # In autoconf-2.13 it is called $ac_given_srcdir.
  11825. # In autoconf-2.50 it is called $srcdir.
  11826. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11827. case "$ac_given_srcdir" in
  11828. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11829. /*) top_srcdir="$ac_given_srcdir" ;;
  11830. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11831. esac
  11832. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11833. rm -f "$ac_dir/POTFILES"
  11834. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11835. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11836. POMAKEFILEDEPS="POTFILES.in"
  11837. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11838. # on $ac_dir but don't depend on user-specified configuration
  11839. # parameters.
  11840. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11841. # The LINGUAS file contains the set of available languages.
  11842. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11843. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11844. fi
  11845. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11846. # Hide the ALL_LINGUAS assigment from automake.
  11847. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11848. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11849. else
  11850. # The set of available languages was given in configure.in.
  11851. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11852. fi
  11853. case "$ac_given_srcdir" in
  11854. .) srcdirpre= ;;
  11855. *) srcdirpre='$(srcdir)/' ;;
  11856. esac
  11857. POFILES=
  11858. GMOFILES=
  11859. UPDATEPOFILES=
  11860. DUMMYPOFILES=
  11861. for lang in $ALL_LINGUAS; do
  11862. POFILES="$POFILES $srcdirpre$lang.po"
  11863. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11864. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11865. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11866. done
  11867. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11868. # environment variable.
  11869. INST_LINGUAS=
  11870. if test -n "$ALL_LINGUAS"; then
  11871. for presentlang in $ALL_LINGUAS; do
  11872. useit=no
  11873. if test "%UNSET%" != "$LINGUAS"; then
  11874. desiredlanguages="$LINGUAS"
  11875. else
  11876. desiredlanguages="$ALL_LINGUAS"
  11877. fi
  11878. for desiredlang in $desiredlanguages; do
  11879. # Use the presentlang catalog if desiredlang is
  11880. # a. equal to presentlang, or
  11881. # b. a variant of presentlang (because in this case,
  11882. # presentlang can be used as a fallback for messages
  11883. # which are not translated in the desiredlang catalog).
  11884. case "$desiredlang" in
  11885. "$presentlang"*) useit=yes;;
  11886. esac
  11887. done
  11888. if test $useit = yes; then
  11889. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11890. fi
  11891. done
  11892. fi
  11893. CATALOGS=
  11894. if test -n "$INST_LINGUAS"; then
  11895. for lang in $INST_LINGUAS; do
  11896. CATALOGS="$CATALOGS $lang.gmo"
  11897. done
  11898. fi
  11899. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11900. 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"
  11901. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11902. if test -f "$f"; then
  11903. case "$f" in
  11904. *.orig | *.bak | *~) ;;
  11905. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11906. esac
  11907. fi
  11908. done
  11909. fi
  11910. ;;
  11911. esac
  11912. done ;;
  11913. esac
  11914. done
  11915. _ACEOF
  11916. cat >>$CONFIG_STATUS <<\_ACEOF
  11917. { (exit 0); exit 0; }
  11918. _ACEOF
  11919. chmod +x $CONFIG_STATUS
  11920. ac_clean_files=$ac_clean_files_save
  11921. # configure is writing to config.log, and then calls config.status.
  11922. # config.status does its own redirection, appending to config.log.
  11923. # Unfortunately, on DOS this fails, as config.log is still kept open
  11924. # by configure, so config.status won't be able to write to it; its
  11925. # output is simply discarded. So we exec the FD to /dev/null,
  11926. # effectively closing config.log, so it can be properly (re)opened and
  11927. # appended to by config.status. When coming back to configure, we
  11928. # need to make the FD available again.
  11929. if test "$no_create" != yes; then
  11930. ac_cs_success=:
  11931. ac_config_status_args=
  11932. test "$silent" = yes &&
  11933. ac_config_status_args="$ac_config_status_args --quiet"
  11934. exec 5>/dev/null
  11935. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11936. exec 5>>config.log
  11937. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11938. # would make configure fail if this is the last instruction.
  11939. $ac_cs_success || { (exit 1); exit 1; }
  11940. fi