configure 396 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.8.1.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.8.1'
  239. PACKAGE_STRING='aria2c 0.8.1'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC XML2_CONFIG XML_CPPFLAGS XML_LIBS LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS LIBCARES_LIBS LIBCARES_CPPFLAGS LIBARES_LIBS LIBARES_CPPFLAGS ENABLE_BITTORRENT_TRUE ENABLE_BITTORRENT_FALSE ENABLE_METALINK_TRUE ENABLE_METALINK_FALSE ENABLE_ASYNC_DNS_TRUE ENABLE_ASYNC_DNS_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.8.1 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.8.1:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --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-libares use ares library if installed. Default: yes
  771. --with-libcares use c-ares library if installed. Default: yes
  772. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  773. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  774. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  775. --with-libgcrypt-prefix=PFX
  776. prefix where LIBGCRYPT is installed (optional)
  777. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  778. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  779. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  780. --with-gnu-ld assume the C compiler uses GNU ld default=no
  781. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  782. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  783. --with-included-gettext use the GNU gettext library included here
  784. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  785. --without-libintl-prefix don't search for libintl in includedir and libdir
  786. Some influential environment variables:
  787. CXX C++ compiler command
  788. CXXFLAGS C++ compiler flags
  789. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  790. nonstandard directory <lib dir>
  791. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  792. headers in a nonstandard directory <include dir>
  793. CC C compiler command
  794. CFLAGS C compiler flags
  795. CPP C preprocessor
  796. Use these variables to override the choices made by `configure' or to help
  797. it to find libraries and programs with nonstandard names/locations.
  798. Report bugs to <tujikawa@rednoah.com>.
  799. _ACEOF
  800. fi
  801. if test "$ac_init_help" = "recursive"; then
  802. # If there are subdirs, report their specific --help.
  803. ac_popdir=`pwd`
  804. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  805. test -d $ac_dir || continue
  806. ac_builddir=.
  807. if test "$ac_dir" != .; then
  808. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  809. # A "../" for each directory in $ac_dir_suffix.
  810. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  811. else
  812. ac_dir_suffix= ac_top_builddir=
  813. fi
  814. case $srcdir in
  815. .) # No --srcdir option. We are building in place.
  816. ac_srcdir=.
  817. if test -z "$ac_top_builddir"; then
  818. ac_top_srcdir=.
  819. else
  820. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  821. fi ;;
  822. [\\/]* | ?:[\\/]* ) # Absolute path.
  823. ac_srcdir=$srcdir$ac_dir_suffix;
  824. ac_top_srcdir=$srcdir ;;
  825. *) # Relative path.
  826. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  827. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  828. esac
  829. # Do not use `cd foo && pwd` to compute absolute paths, because
  830. # the directories may not exist.
  831. case `pwd` in
  832. .) ac_abs_builddir="$ac_dir";;
  833. *)
  834. case "$ac_dir" in
  835. .) ac_abs_builddir=`pwd`;;
  836. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  837. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  838. esac;;
  839. esac
  840. case $ac_abs_builddir in
  841. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  842. *)
  843. case ${ac_top_builddir}. in
  844. .) ac_abs_top_builddir=$ac_abs_builddir;;
  845. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  846. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  847. esac;;
  848. esac
  849. case $ac_abs_builddir in
  850. .) ac_abs_srcdir=$ac_srcdir;;
  851. *)
  852. case $ac_srcdir in
  853. .) ac_abs_srcdir=$ac_abs_builddir;;
  854. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  855. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  856. esac;;
  857. esac
  858. case $ac_abs_builddir in
  859. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  860. *)
  861. case $ac_top_srcdir in
  862. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  863. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  864. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  865. esac;;
  866. esac
  867. cd $ac_dir
  868. # Check for guested configure; otherwise get Cygnus style configure.
  869. if test -f $ac_srcdir/configure.gnu; then
  870. echo
  871. $SHELL $ac_srcdir/configure.gnu --help=recursive
  872. elif test -f $ac_srcdir/configure; then
  873. echo
  874. $SHELL $ac_srcdir/configure --help=recursive
  875. elif test -f $ac_srcdir/configure.ac ||
  876. test -f $ac_srcdir/configure.in; then
  877. echo
  878. $ac_configure --help
  879. else
  880. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  881. fi
  882. cd "$ac_popdir"
  883. done
  884. fi
  885. test -n "$ac_init_help" && exit 0
  886. if $ac_init_version; then
  887. cat <<\_ACEOF
  888. aria2c configure 0.8.1
  889. generated by GNU Autoconf 2.59
  890. Copyright (C) 2003 Free Software Foundation, Inc.
  891. This configure script is free software; the Free Software Foundation
  892. gives unlimited permission to copy, distribute and modify it.
  893. _ACEOF
  894. exit 0
  895. fi
  896. exec 5>config.log
  897. cat >&5 <<_ACEOF
  898. This file contains any messages produced by compilers while
  899. running configure, to aid debugging if configure makes a mistake.
  900. It was created by aria2c $as_me 0.8.1, which was
  901. generated by GNU Autoconf 2.59. Invocation command line was
  902. $ $0 $@
  903. _ACEOF
  904. {
  905. cat <<_ASUNAME
  906. ## --------- ##
  907. ## Platform. ##
  908. ## --------- ##
  909. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  910. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  911. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  912. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  913. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  914. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  915. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  916. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  917. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  918. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  919. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  920. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  921. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  922. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  923. _ASUNAME
  924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  925. for as_dir in $PATH
  926. do
  927. IFS=$as_save_IFS
  928. test -z "$as_dir" && as_dir=.
  929. echo "PATH: $as_dir"
  930. done
  931. } >&5
  932. cat >&5 <<_ACEOF
  933. ## ----------- ##
  934. ## Core tests. ##
  935. ## ----------- ##
  936. _ACEOF
  937. # Keep a trace of the command line.
  938. # Strip out --no-create and --no-recursion so they do not pile up.
  939. # Strip out --silent because we don't want to record it for future runs.
  940. # Also quote any args containing shell meta-characters.
  941. # Make two passes to allow for proper duplicate-argument suppression.
  942. ac_configure_args=
  943. ac_configure_args0=
  944. ac_configure_args1=
  945. ac_sep=
  946. ac_must_keep_next=false
  947. for ac_pass in 1 2
  948. do
  949. for ac_arg
  950. do
  951. case $ac_arg in
  952. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  953. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  954. | -silent | --silent | --silen | --sile | --sil)
  955. continue ;;
  956. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  957. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  958. esac
  959. case $ac_pass in
  960. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  961. 2)
  962. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  963. if test $ac_must_keep_next = true; then
  964. ac_must_keep_next=false # Got value, back to normal.
  965. else
  966. case $ac_arg in
  967. *=* | --config-cache | -C | -disable-* | --disable-* \
  968. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  969. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  970. | -with-* | --with-* | -without-* | --without-* | --x)
  971. case "$ac_configure_args0 " in
  972. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  973. esac
  974. ;;
  975. -* ) ac_must_keep_next=true ;;
  976. esac
  977. fi
  978. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  979. # Get rid of the leading space.
  980. ac_sep=" "
  981. ;;
  982. esac
  983. done
  984. done
  985. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  986. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  987. # When interrupted or exit'd, cleanup temporary files, and complete
  988. # config.log. We remove comments because anyway the quotes in there
  989. # would cause problems or look ugly.
  990. # WARNING: Be sure not to use single quotes in there, as some shells,
  991. # such as our DU 5.0 friend, will then `close' the trap.
  992. trap 'exit_status=$?
  993. # Save into config.log some information that might help in debugging.
  994. {
  995. echo
  996. cat <<\_ASBOX
  997. ## ---------------- ##
  998. ## Cache variables. ##
  999. ## ---------------- ##
  1000. _ASBOX
  1001. echo
  1002. # The following way of writing the cache mishandles newlines in values,
  1003. {
  1004. (set) 2>&1 |
  1005. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1006. *ac_space=\ *)
  1007. sed -n \
  1008. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1009. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1010. ;;
  1011. *)
  1012. sed -n \
  1013. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1014. ;;
  1015. esac;
  1016. }
  1017. echo
  1018. cat <<\_ASBOX
  1019. ## ----------------- ##
  1020. ## Output variables. ##
  1021. ## ----------------- ##
  1022. _ASBOX
  1023. echo
  1024. for ac_var in $ac_subst_vars
  1025. do
  1026. eval ac_val=$`echo $ac_var`
  1027. echo "$ac_var='"'"'$ac_val'"'"'"
  1028. done | sort
  1029. echo
  1030. if test -n "$ac_subst_files"; then
  1031. cat <<\_ASBOX
  1032. ## ------------- ##
  1033. ## Output files. ##
  1034. ## ------------- ##
  1035. _ASBOX
  1036. echo
  1037. for ac_var in $ac_subst_files
  1038. do
  1039. eval ac_val=$`echo $ac_var`
  1040. echo "$ac_var='"'"'$ac_val'"'"'"
  1041. done | sort
  1042. echo
  1043. fi
  1044. if test -s confdefs.h; then
  1045. cat <<\_ASBOX
  1046. ## ----------- ##
  1047. ## confdefs.h. ##
  1048. ## ----------- ##
  1049. _ASBOX
  1050. echo
  1051. sed "/^$/d" confdefs.h | sort
  1052. echo
  1053. fi
  1054. test "$ac_signal" != 0 &&
  1055. echo "$as_me: caught signal $ac_signal"
  1056. echo "$as_me: exit $exit_status"
  1057. } >&5
  1058. rm -f core *.core &&
  1059. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1060. exit $exit_status
  1061. ' 0
  1062. for ac_signal in 1 2 13 15; do
  1063. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1064. done
  1065. ac_signal=0
  1066. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1067. rm -rf conftest* confdefs.h
  1068. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1069. echo >confdefs.h
  1070. # Predefined preprocessor variables.
  1071. cat >>confdefs.h <<_ACEOF
  1072. #define PACKAGE_NAME "$PACKAGE_NAME"
  1073. _ACEOF
  1074. cat >>confdefs.h <<_ACEOF
  1075. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1076. _ACEOF
  1077. cat >>confdefs.h <<_ACEOF
  1078. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1079. _ACEOF
  1080. cat >>confdefs.h <<_ACEOF
  1081. #define PACKAGE_STRING "$PACKAGE_STRING"
  1082. _ACEOF
  1083. cat >>confdefs.h <<_ACEOF
  1084. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1085. _ACEOF
  1086. # Let the site file select an alternate cache file if it wants to.
  1087. # Prefer explicitly selected file to automatically selected ones.
  1088. if test -z "$CONFIG_SITE"; then
  1089. if test "x$prefix" != xNONE; then
  1090. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1091. else
  1092. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1093. fi
  1094. fi
  1095. for ac_site_file in $CONFIG_SITE; do
  1096. if test -r "$ac_site_file"; then
  1097. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1098. echo "$as_me: loading site script $ac_site_file" >&6;}
  1099. sed 's/^/| /' "$ac_site_file" >&5
  1100. . "$ac_site_file"
  1101. fi
  1102. done
  1103. if test -r "$cache_file"; then
  1104. # Some versions of bash will fail to source /dev/null (special
  1105. # files actually), so we avoid doing that.
  1106. if test -f "$cache_file"; then
  1107. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1108. echo "$as_me: loading cache $cache_file" >&6;}
  1109. case $cache_file in
  1110. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1111. *) . ./$cache_file;;
  1112. esac
  1113. fi
  1114. else
  1115. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1116. echo "$as_me: creating cache $cache_file" >&6;}
  1117. >$cache_file
  1118. fi
  1119. # Check that the precious variables saved in the cache have kept the same
  1120. # value.
  1121. ac_cache_corrupted=false
  1122. for ac_var in `(set) 2>&1 |
  1123. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1124. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1125. eval ac_new_set=\$ac_env_${ac_var}_set
  1126. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1127. eval ac_new_val="\$ac_env_${ac_var}_value"
  1128. case $ac_old_set,$ac_new_set in
  1129. set,)
  1130. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1131. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1132. ac_cache_corrupted=: ;;
  1133. ,set)
  1134. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1135. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1136. ac_cache_corrupted=: ;;
  1137. ,);;
  1138. *)
  1139. if test "x$ac_old_val" != "x$ac_new_val"; then
  1140. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1141. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1142. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1143. echo "$as_me: former value: $ac_old_val" >&2;}
  1144. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1145. echo "$as_me: current value: $ac_new_val" >&2;}
  1146. ac_cache_corrupted=:
  1147. fi;;
  1148. esac
  1149. # Pass precious variables to config.status.
  1150. if test "$ac_new_set" = set; then
  1151. case $ac_new_val in
  1152. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1153. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1154. *) ac_arg=$ac_var=$ac_new_val ;;
  1155. esac
  1156. case " $ac_configure_args " in
  1157. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1158. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1159. esac
  1160. fi
  1161. done
  1162. if $ac_cache_corrupted; then
  1163. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1164. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1165. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1166. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1167. { (exit 1); exit 1; }; }
  1168. fi
  1169. ac_ext=c
  1170. ac_cpp='$CPP $CPPFLAGS'
  1171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1174. am__api_version="1.9"
  1175. ac_aux_dir=
  1176. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1177. if test -f $ac_dir/install-sh; then
  1178. ac_aux_dir=$ac_dir
  1179. ac_install_sh="$ac_aux_dir/install-sh -c"
  1180. break
  1181. elif test -f $ac_dir/install.sh; then
  1182. ac_aux_dir=$ac_dir
  1183. ac_install_sh="$ac_aux_dir/install.sh -c"
  1184. break
  1185. elif test -f $ac_dir/shtool; then
  1186. ac_aux_dir=$ac_dir
  1187. ac_install_sh="$ac_aux_dir/shtool install -c"
  1188. break
  1189. fi
  1190. done
  1191. if test -z "$ac_aux_dir"; then
  1192. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1193. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1194. { (exit 1); exit 1; }; }
  1195. fi
  1196. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1197. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1198. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1199. # Find a good install program. We prefer a C program (faster),
  1200. # so one script is as good as another. But avoid the broken or
  1201. # incompatible versions:
  1202. # SysV /etc/install, /usr/sbin/install
  1203. # SunOS /usr/etc/install
  1204. # IRIX /sbin/install
  1205. # AIX /bin/install
  1206. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1207. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1208. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1209. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1210. # OS/2's system install, which has a completely different semantic
  1211. # ./install, which can be erroneously created by make from ./install.sh.
  1212. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1213. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1214. if test -z "$INSTALL"; then
  1215. if test "${ac_cv_path_install+set}" = set; then
  1216. echo $ECHO_N "(cached) $ECHO_C" >&6
  1217. else
  1218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1219. for as_dir in $PATH
  1220. do
  1221. IFS=$as_save_IFS
  1222. test -z "$as_dir" && as_dir=.
  1223. # Account for people who put trailing slashes in PATH elements.
  1224. case $as_dir/ in
  1225. ./ | .// | /cC/* | \
  1226. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1227. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1228. /usr/ucb/* ) ;;
  1229. *)
  1230. # OSF1 and SCO ODT 3.0 have their own names for install.
  1231. # Don't use installbsd from OSF since it installs stuff as root
  1232. # by default.
  1233. for ac_prog in ginstall scoinst install; do
  1234. for ac_exec_ext in '' $ac_executable_extensions; do
  1235. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1236. if test $ac_prog = install &&
  1237. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1238. # AIX install. It has an incompatible calling convention.
  1239. :
  1240. elif test $ac_prog = install &&
  1241. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1242. # program-specific install script used by HP pwplus--don't use.
  1243. :
  1244. else
  1245. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1246. break 3
  1247. fi
  1248. fi
  1249. done
  1250. done
  1251. ;;
  1252. esac
  1253. done
  1254. fi
  1255. if test "${ac_cv_path_install+set}" = set; then
  1256. INSTALL=$ac_cv_path_install
  1257. else
  1258. # As a last resort, use the slow shell script. We don't cache a
  1259. # path for INSTALL within a source directory, because that will
  1260. # break other packages using the cache if that directory is
  1261. # removed, or if the path is relative.
  1262. INSTALL=$ac_install_sh
  1263. fi
  1264. fi
  1265. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1266. echo "${ECHO_T}$INSTALL" >&6
  1267. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1268. # It thinks the first close brace ends the variable substitution.
  1269. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1270. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1271. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1272. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1273. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1274. # Just in case
  1275. sleep 1
  1276. echo timestamp > conftest.file
  1277. # Do `set' in a subshell so we don't clobber the current shell's
  1278. # arguments. Must try -L first in case configure is actually a
  1279. # symlink; some systems play weird games with the mod time of symlinks
  1280. # (eg FreeBSD returns the mod time of the symlink's containing
  1281. # directory).
  1282. if (
  1283. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1284. if test "$*" = "X"; then
  1285. # -L didn't work.
  1286. set X `ls -t $srcdir/configure conftest.file`
  1287. fi
  1288. rm -f conftest.file
  1289. if test "$*" != "X $srcdir/configure conftest.file" \
  1290. && test "$*" != "X conftest.file $srcdir/configure"; then
  1291. # If neither matched, then we have a broken ls. This can happen
  1292. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1293. # broken ls alias from the environment. This has actually
  1294. # happened. Such a system could not be considered "sane".
  1295. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1296. alias in your environment" >&5
  1297. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1298. alias in your environment" >&2;}
  1299. { (exit 1); exit 1; }; }
  1300. fi
  1301. test "$2" = conftest.file
  1302. )
  1303. then
  1304. # Ok.
  1305. :
  1306. else
  1307. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1308. Check your system clock" >&5
  1309. echo "$as_me: error: newly created file is older than distributed files!
  1310. Check your system clock" >&2;}
  1311. { (exit 1); exit 1; }; }
  1312. fi
  1313. echo "$as_me:$LINENO: result: yes" >&5
  1314. echo "${ECHO_T}yes" >&6
  1315. test "$program_prefix" != NONE &&
  1316. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1317. # Use a double $ so make ignores it.
  1318. test "$program_suffix" != NONE &&
  1319. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1320. # Double any \ or $. echo might interpret backslashes.
  1321. # By default was `s,x,x', remove it if useless.
  1322. cat <<\_ACEOF >conftest.sed
  1323. s/[\\$]/&&/g;s/;s,x,x,$//
  1324. _ACEOF
  1325. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1326. rm conftest.sed
  1327. # expand $ac_aux_dir to an absolute path
  1328. am_aux_dir=`cd $ac_aux_dir && pwd`
  1329. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1330. # Use eval to expand $SHELL
  1331. if eval "$MISSING --run true"; then
  1332. am_missing_run="$MISSING --run "
  1333. else
  1334. am_missing_run=
  1335. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1336. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1337. fi
  1338. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1339. # We used to keeping the `.' as first argument, in order to
  1340. # allow $(mkdir_p) to be used without argument. As in
  1341. # $(mkdir_p) $(somedir)
  1342. # where $(somedir) is conditionally defined. However this is wrong
  1343. # for two reasons:
  1344. # 1. if the package is installed by a user who cannot write `.'
  1345. # make install will fail,
  1346. # 2. the above comment should most certainly read
  1347. # $(mkdir_p) $(DESTDIR)$(somedir)
  1348. # so it does not work when $(somedir) is undefined and
  1349. # $(DESTDIR) is not.
  1350. # To support the latter case, we have to write
  1351. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1352. # so the `.' trick is pointless.
  1353. mkdir_p='mkdir -p --'
  1354. else
  1355. # On NextStep and OpenStep, the `mkdir' command does not
  1356. # recognize any option. It will interpret all options as
  1357. # directories to create, and then abort because `.' already
  1358. # exists.
  1359. for d in ./-p ./--version;
  1360. do
  1361. test -d $d && rmdir $d
  1362. done
  1363. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1364. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1365. mkdir_p='$(mkinstalldirs)'
  1366. else
  1367. mkdir_p='$(install_sh) -d'
  1368. fi
  1369. fi
  1370. for ac_prog in gawk mawk nawk awk
  1371. do
  1372. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_AWK+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$AWK"; then
  1380. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_AWK="$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. AWK=$ac_cv_prog_AWK
  1398. if test -n "$AWK"; then
  1399. echo "$as_me:$LINENO: result: $AWK" >&5
  1400. echo "${ECHO_T}$AWK" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$AWK" && break
  1406. done
  1407. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1408. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1409. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1410. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1411. echo $ECHO_N "(cached) $ECHO_C" >&6
  1412. else
  1413. cat >conftest.make <<\_ACEOF
  1414. all:
  1415. @echo 'ac_maketemp="$(MAKE)"'
  1416. _ACEOF
  1417. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1418. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1419. if test -n "$ac_maketemp"; then
  1420. eval ac_cv_prog_make_${ac_make}_set=yes
  1421. else
  1422. eval ac_cv_prog_make_${ac_make}_set=no
  1423. fi
  1424. rm -f conftest.make
  1425. fi
  1426. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1427. echo "$as_me:$LINENO: result: yes" >&5
  1428. echo "${ECHO_T}yes" >&6
  1429. SET_MAKE=
  1430. else
  1431. echo "$as_me:$LINENO: result: no" >&5
  1432. echo "${ECHO_T}no" >&6
  1433. SET_MAKE="MAKE=${MAKE-make}"
  1434. fi
  1435. rm -rf .tst 2>/dev/null
  1436. mkdir .tst 2>/dev/null
  1437. if test -d .tst; then
  1438. am__leading_dot=.
  1439. else
  1440. am__leading_dot=_
  1441. fi
  1442. rmdir .tst 2>/dev/null
  1443. # test to see if srcdir already configured
  1444. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1445. test -f $srcdir/config.status; then
  1446. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1447. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1448. { (exit 1); exit 1; }; }
  1449. fi
  1450. # test whether we have cygpath
  1451. if test -z "$CYGPATH_W"; then
  1452. if (cygpath --version) >/dev/null 2>/dev/null; then
  1453. CYGPATH_W='cygpath -w'
  1454. else
  1455. CYGPATH_W=echo
  1456. fi
  1457. fi
  1458. # Define the identity of the package.
  1459. PACKAGE='aria2c'
  1460. VERSION='0.8.1'
  1461. cat >>confdefs.h <<_ACEOF
  1462. #define PACKAGE "$PACKAGE"
  1463. _ACEOF
  1464. cat >>confdefs.h <<_ACEOF
  1465. #define VERSION "$VERSION"
  1466. _ACEOF
  1467. # Some tools Automake needs.
  1468. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1469. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1470. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1471. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1472. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1473. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1474. # Installed binaries are usually stripped using `strip' when the user
  1475. # run `make install-strip'. However `strip' might not be the right
  1476. # tool to use in cross-compilation environments, therefore Automake
  1477. # will honor the `STRIP' environment variable to overrule this program.
  1478. if test "$cross_compiling" != no; then
  1479. if test -n "$ac_tool_prefix"; then
  1480. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1481. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1482. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1484. if test "${ac_cv_prog_STRIP+set}" = set; then
  1485. echo $ECHO_N "(cached) $ECHO_C" >&6
  1486. else
  1487. if test -n "$STRIP"; then
  1488. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1489. else
  1490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1491. for as_dir in $PATH
  1492. do
  1493. IFS=$as_save_IFS
  1494. test -z "$as_dir" && as_dir=.
  1495. for ac_exec_ext in '' $ac_executable_extensions; do
  1496. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1497. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1498. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1499. break 2
  1500. fi
  1501. done
  1502. done
  1503. fi
  1504. fi
  1505. STRIP=$ac_cv_prog_STRIP
  1506. if test -n "$STRIP"; then
  1507. echo "$as_me:$LINENO: result: $STRIP" >&5
  1508. echo "${ECHO_T}$STRIP" >&6
  1509. else
  1510. echo "$as_me:$LINENO: result: no" >&5
  1511. echo "${ECHO_T}no" >&6
  1512. fi
  1513. fi
  1514. if test -z "$ac_cv_prog_STRIP"; then
  1515. ac_ct_STRIP=$STRIP
  1516. # Extract the first word of "strip", so it can be a program name with args.
  1517. set dummy strip; ac_word=$2
  1518. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1520. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1521. echo $ECHO_N "(cached) $ECHO_C" >&6
  1522. else
  1523. if test -n "$ac_ct_STRIP"; then
  1524. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1525. else
  1526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1527. for as_dir in $PATH
  1528. do
  1529. IFS=$as_save_IFS
  1530. test -z "$as_dir" && as_dir=.
  1531. for ac_exec_ext in '' $ac_executable_extensions; do
  1532. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1533. ac_cv_prog_ac_ct_STRIP="strip"
  1534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1535. break 2
  1536. fi
  1537. done
  1538. done
  1539. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1540. fi
  1541. fi
  1542. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1543. if test -n "$ac_ct_STRIP"; then
  1544. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1545. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1546. else
  1547. echo "$as_me:$LINENO: result: no" >&5
  1548. echo "${ECHO_T}no" >&6
  1549. fi
  1550. STRIP=$ac_ct_STRIP
  1551. else
  1552. STRIP="$ac_cv_prog_STRIP"
  1553. fi
  1554. fi
  1555. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1556. # We need awk for the "check" target. The system "awk" is bad on
  1557. # some platforms.
  1558. # Always define AMTAR for backward compatibility.
  1559. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1560. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1561. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1562. if test "${with_cppunit_prefix+set}" = set; then
  1563. withval="$with_cppunit_prefix"
  1564. cppunit_config_prefix="$withval"
  1565. else
  1566. cppunit_config_prefix=""
  1567. fi;
  1568. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1569. if test "${with_cppunit_exec_prefix+set}" = set; then
  1570. withval="$with_cppunit_exec_prefix"
  1571. cppunit_config_exec_prefix="$withval"
  1572. else
  1573. cppunit_config_exec_prefix=""
  1574. fi;
  1575. if test x$cppunit_config_exec_prefix != x ; then
  1576. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1577. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1578. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1579. fi
  1580. fi
  1581. if test x$cppunit_config_prefix != x ; then
  1582. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1583. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1584. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1585. fi
  1586. fi
  1587. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1588. set dummy cppunit-config; ac_word=$2
  1589. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1590. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1591. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1592. echo $ECHO_N "(cached) $ECHO_C" >&6
  1593. else
  1594. case $CPPUNIT_CONFIG in
  1595. [\\/]* | ?:[\\/]*)
  1596. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1597. ;;
  1598. *)
  1599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1600. for as_dir in $PATH
  1601. do
  1602. IFS=$as_save_IFS
  1603. test -z "$as_dir" && as_dir=.
  1604. for ac_exec_ext in '' $ac_executable_extensions; do
  1605. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1606. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1607. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1608. break 2
  1609. fi
  1610. done
  1611. done
  1612. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1613. ;;
  1614. esac
  1615. fi
  1616. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1617. if test -n "$CPPUNIT_CONFIG"; then
  1618. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1619. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1620. else
  1621. echo "$as_me:$LINENO: result: no" >&5
  1622. echo "${ECHO_T}no" >&6
  1623. fi
  1624. cppunit_version_min=1.10.2
  1625. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1626. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1627. no_cppunit=""
  1628. if test "$CPPUNIT_CONFIG" = "no" ; then
  1629. no_cppunit=yes
  1630. else
  1631. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1632. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1633. cppunit_version=`$CPPUNIT_CONFIG --version`
  1634. cppunit_major_version=`echo $cppunit_version | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1636. cppunit_minor_version=`echo $cppunit_version | \
  1637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1638. cppunit_micro_version=`echo $cppunit_version | \
  1639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1640. cppunit_major_min=`echo $cppunit_version_min | \
  1641. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1642. cppunit_minor_min=`echo $cppunit_version_min | \
  1643. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1644. cppunit_micro_min=`echo $cppunit_version_min | \
  1645. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1646. cppunit_version_proper=`expr \
  1647. $cppunit_major_version \> $cppunit_major_min \| \
  1648. $cppunit_major_version \= $cppunit_major_min \& \
  1649. $cppunit_minor_version \> $cppunit_minor_min \| \
  1650. $cppunit_major_version \= $cppunit_major_min \& \
  1651. $cppunit_minor_version \= $cppunit_minor_min \& \
  1652. $cppunit_micro_version \>= $cppunit_micro_min `
  1653. if test "$cppunit_version_proper" = "1" ; then
  1654. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1655. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1656. else
  1657. echo "$as_me:$LINENO: result: no" >&5
  1658. echo "${ECHO_T}no" >&6
  1659. no_cppunit=yes
  1660. fi
  1661. fi
  1662. if test "x$no_cppunit" = x ; then
  1663. :
  1664. else
  1665. CPPUNIT_CFLAGS=""
  1666. CPPUNIT_LIBS=""
  1667. :
  1668. fi
  1669. ac_config_headers="$ac_config_headers config.h"
  1670. # Set localedir
  1671. localedir=${datadir}/locale
  1672. # Checks for arguments.
  1673. # Check whether --with-gnutls or --without-gnutls was given.
  1674. if test "${with_gnutls+set}" = set; then
  1675. withval="$with_gnutls"
  1676. with_gnutls=$withval
  1677. else
  1678. with_gnutls=yes
  1679. fi;
  1680. # Check whether --with-openssl or --without-openssl was given.
  1681. if test "${with_openssl+set}" = set; then
  1682. withval="$with_openssl"
  1683. with_openssl=$withval
  1684. else
  1685. with_openssl=yes
  1686. fi;
  1687. # Check whether --with-libxml2 or --without-libxml2 was given.
  1688. if test "${with_libxml2+set}" = set; then
  1689. withval="$with_libxml2"
  1690. with_libxml2=$withval
  1691. else
  1692. with_libxml2=yes
  1693. fi;
  1694. # Check whether --with-libares or --without-libares was given.
  1695. if test "${with_libares+set}" = set; then
  1696. withval="$with_libares"
  1697. with_libares=$withval
  1698. else
  1699. with_libares=yes
  1700. fi;
  1701. # Check whether --with-libcares or --without-libcares was given.
  1702. if test "${with_libcares+set}" = set; then
  1703. withval="$with_libcares"
  1704. with_libcares=$withval
  1705. else
  1706. with_libcares=yes
  1707. fi;
  1708. # Check whether --enable-bittorrent or --disable-bittorrent was given.
  1709. if test "${enable_bittorrent+set}" = set; then
  1710. enableval="$enable_bittorrent"
  1711. enable_bittorrent=$enableval
  1712. else
  1713. enable_bittorrent=yes
  1714. fi;
  1715. # Check whether --enable-metalink or --disable-metalink was given.
  1716. if test "${enable_metalink+set}" = set; then
  1717. enableval="$enable_metalink"
  1718. enable_metalink=$enableval
  1719. else
  1720. enable_metalink=yes
  1721. fi;
  1722. # Checks for programs.
  1723. ac_ext=cc
  1724. ac_cpp='$CXXCPP $CPPFLAGS'
  1725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1728. if test -n "$ac_tool_prefix"; then
  1729. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1730. do
  1731. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1732. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1733. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1734. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1735. if test "${ac_cv_prog_CXX+set}" = set; then
  1736. echo $ECHO_N "(cached) $ECHO_C" >&6
  1737. else
  1738. if test -n "$CXX"; then
  1739. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1740. else
  1741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1742. for as_dir in $PATH
  1743. do
  1744. IFS=$as_save_IFS
  1745. test -z "$as_dir" && as_dir=.
  1746. for ac_exec_ext in '' $ac_executable_extensions; do
  1747. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1748. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1749. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1750. break 2
  1751. fi
  1752. done
  1753. done
  1754. fi
  1755. fi
  1756. CXX=$ac_cv_prog_CXX
  1757. if test -n "$CXX"; then
  1758. echo "$as_me:$LINENO: result: $CXX" >&5
  1759. echo "${ECHO_T}$CXX" >&6
  1760. else
  1761. echo "$as_me:$LINENO: result: no" >&5
  1762. echo "${ECHO_T}no" >&6
  1763. fi
  1764. test -n "$CXX" && break
  1765. done
  1766. fi
  1767. if test -z "$CXX"; then
  1768. ac_ct_CXX=$CXX
  1769. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1770. do
  1771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1772. set dummy $ac_prog; ac_word=$2
  1773. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1774. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1775. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1776. echo $ECHO_N "(cached) $ECHO_C" >&6
  1777. else
  1778. if test -n "$ac_ct_CXX"; then
  1779. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1780. else
  1781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1782. for as_dir in $PATH
  1783. do
  1784. IFS=$as_save_IFS
  1785. test -z "$as_dir" && as_dir=.
  1786. for ac_exec_ext in '' $ac_executable_extensions; do
  1787. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1788. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1789. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1790. break 2
  1791. fi
  1792. done
  1793. done
  1794. fi
  1795. fi
  1796. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1797. if test -n "$ac_ct_CXX"; then
  1798. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1799. echo "${ECHO_T}$ac_ct_CXX" >&6
  1800. else
  1801. echo "$as_me:$LINENO: result: no" >&5
  1802. echo "${ECHO_T}no" >&6
  1803. fi
  1804. test -n "$ac_ct_CXX" && break
  1805. done
  1806. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1807. CXX=$ac_ct_CXX
  1808. fi
  1809. # Provide some information about the compiler.
  1810. echo "$as_me:$LINENO:" \
  1811. "checking for C++ compiler version" >&5
  1812. ac_compiler=`set X $ac_compile; echo $2`
  1813. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1814. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1815. ac_status=$?
  1816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1817. (exit $ac_status); }
  1818. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1819. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1820. ac_status=$?
  1821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1822. (exit $ac_status); }
  1823. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1824. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1825. ac_status=$?
  1826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1827. (exit $ac_status); }
  1828. cat >conftest.$ac_ext <<_ACEOF
  1829. /* confdefs.h. */
  1830. _ACEOF
  1831. cat confdefs.h >>conftest.$ac_ext
  1832. cat >>conftest.$ac_ext <<_ACEOF
  1833. /* end confdefs.h. */
  1834. int
  1835. main ()
  1836. {
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. ac_clean_files_save=$ac_clean_files
  1842. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1843. # Try to create an executable without -o first, disregard a.out.
  1844. # It will help us diagnose broken compilers, and finding out an intuition
  1845. # of exeext.
  1846. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1847. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1848. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1849. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1850. (eval $ac_link_default) 2>&5
  1851. ac_status=$?
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); }; then
  1854. # Find the output, starting from the most likely. This scheme is
  1855. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1856. # resort.
  1857. # Be careful to initialize this variable, since it used to be cached.
  1858. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1859. ac_cv_exeext=
  1860. # b.out is created by i960 compilers.
  1861. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1862. do
  1863. test -f "$ac_file" || continue
  1864. case $ac_file in
  1865. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1866. ;;
  1867. conftest.$ac_ext )
  1868. # This is the source file.
  1869. ;;
  1870. [ab].out )
  1871. # We found the default executable, but exeext='' is most
  1872. # certainly right.
  1873. break;;
  1874. *.* )
  1875. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1876. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1877. # but it would be cool to find out if it's true. Does anybody
  1878. # maintain Libtool? --akim.
  1879. export ac_cv_exeext
  1880. break;;
  1881. * )
  1882. break;;
  1883. esac
  1884. done
  1885. else
  1886. echo "$as_me: failed program was:" >&5
  1887. sed 's/^/| /' conftest.$ac_ext >&5
  1888. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1889. See \`config.log' for more details." >&5
  1890. echo "$as_me: error: C++ compiler cannot create executables
  1891. See \`config.log' for more details." >&2;}
  1892. { (exit 77); exit 77; }; }
  1893. fi
  1894. ac_exeext=$ac_cv_exeext
  1895. echo "$as_me:$LINENO: result: $ac_file" >&5
  1896. echo "${ECHO_T}$ac_file" >&6
  1897. # Check the compiler produces executables we can run. If not, either
  1898. # the compiler is broken, or we cross compile.
  1899. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1900. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1901. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1902. # If not cross compiling, check that we can run a simple program.
  1903. if test "$cross_compiling" != yes; then
  1904. if { ac_try='./$ac_file'
  1905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1906. (eval $ac_try) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }; }; then
  1910. cross_compiling=no
  1911. else
  1912. if test "$cross_compiling" = maybe; then
  1913. cross_compiling=yes
  1914. else
  1915. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1916. If you meant to cross compile, use \`--host'.
  1917. See \`config.log' for more details." >&5
  1918. echo "$as_me: error: cannot run C++ compiled programs.
  1919. If you meant to cross compile, use \`--host'.
  1920. See \`config.log' for more details." >&2;}
  1921. { (exit 1); exit 1; }; }
  1922. fi
  1923. fi
  1924. fi
  1925. echo "$as_me:$LINENO: result: yes" >&5
  1926. echo "${ECHO_T}yes" >&6
  1927. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1928. ac_clean_files=$ac_clean_files_save
  1929. # Check the compiler produces executables we can run. If not, either
  1930. # the compiler is broken, or we cross compile.
  1931. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1932. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1933. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1934. echo "${ECHO_T}$cross_compiling" >&6
  1935. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1936. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1937. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1938. (eval $ac_link) 2>&5
  1939. ac_status=$?
  1940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1941. (exit $ac_status); }; then
  1942. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1943. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1944. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1945. # `rm'.
  1946. for ac_file in conftest.exe conftest conftest.*; do
  1947. test -f "$ac_file" || continue
  1948. case $ac_file in
  1949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1950. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1951. export ac_cv_exeext
  1952. break;;
  1953. * ) break;;
  1954. esac
  1955. done
  1956. else
  1957. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1958. See \`config.log' for more details." >&5
  1959. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1960. See \`config.log' for more details." >&2;}
  1961. { (exit 1); exit 1; }; }
  1962. fi
  1963. rm -f conftest$ac_cv_exeext
  1964. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1965. echo "${ECHO_T}$ac_cv_exeext" >&6
  1966. rm -f conftest.$ac_ext
  1967. EXEEXT=$ac_cv_exeext
  1968. ac_exeext=$EXEEXT
  1969. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1970. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1971. if test "${ac_cv_objext+set}" = set; then
  1972. echo $ECHO_N "(cached) $ECHO_C" >&6
  1973. else
  1974. cat >conftest.$ac_ext <<_ACEOF
  1975. /* confdefs.h. */
  1976. _ACEOF
  1977. cat confdefs.h >>conftest.$ac_ext
  1978. cat >>conftest.$ac_ext <<_ACEOF
  1979. /* end confdefs.h. */
  1980. int
  1981. main ()
  1982. {
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.o conftest.obj
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; then
  1993. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1994. case $ac_file in
  1995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1997. break;;
  1998. esac
  1999. done
  2000. else
  2001. echo "$as_me: failed program was:" >&5
  2002. sed 's/^/| /' conftest.$ac_ext >&5
  2003. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2004. See \`config.log' for more details." >&5
  2005. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2006. See \`config.log' for more details." >&2;}
  2007. { (exit 1); exit 1; }; }
  2008. fi
  2009. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2010. fi
  2011. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2012. echo "${ECHO_T}$ac_cv_objext" >&6
  2013. OBJEXT=$ac_cv_objext
  2014. ac_objext=$OBJEXT
  2015. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2016. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2017. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2018. echo $ECHO_N "(cached) $ECHO_C" >&6
  2019. else
  2020. cat >conftest.$ac_ext <<_ACEOF
  2021. /* confdefs.h. */
  2022. _ACEOF
  2023. cat confdefs.h >>conftest.$ac_ext
  2024. cat >>conftest.$ac_ext <<_ACEOF
  2025. /* end confdefs.h. */
  2026. int
  2027. main ()
  2028. {
  2029. #ifndef __GNUC__
  2030. choke me
  2031. #endif
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. rm -f conftest.$ac_objext
  2037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2038. (eval $ac_compile) 2>conftest.er1
  2039. ac_status=$?
  2040. grep -v '^ *+' conftest.er1 >conftest.err
  2041. rm -f conftest.er1
  2042. cat conftest.err >&5
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); } &&
  2045. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2047. (eval $ac_try) 2>&5
  2048. ac_status=$?
  2049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2050. (exit $ac_status); }; } &&
  2051. { ac_try='test -s conftest.$ac_objext'
  2052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2053. (eval $ac_try) 2>&5
  2054. ac_status=$?
  2055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2056. (exit $ac_status); }; }; then
  2057. ac_compiler_gnu=yes
  2058. else
  2059. echo "$as_me: failed program was:" >&5
  2060. sed 's/^/| /' conftest.$ac_ext >&5
  2061. ac_compiler_gnu=no
  2062. fi
  2063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2065. fi
  2066. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2067. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2068. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2069. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2070. ac_save_CXXFLAGS=$CXXFLAGS
  2071. CXXFLAGS="-g"
  2072. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2073. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2074. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2075. echo $ECHO_N "(cached) $ECHO_C" >&6
  2076. else
  2077. cat >conftest.$ac_ext <<_ACEOF
  2078. /* confdefs.h. */
  2079. _ACEOF
  2080. cat confdefs.h >>conftest.$ac_ext
  2081. cat >>conftest.$ac_ext <<_ACEOF
  2082. /* end confdefs.h. */
  2083. int
  2084. main ()
  2085. {
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. rm -f conftest.$ac_objext
  2091. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2092. (eval $ac_compile) 2>conftest.er1
  2093. ac_status=$?
  2094. grep -v '^ *+' conftest.er1 >conftest.err
  2095. rm -f conftest.er1
  2096. cat conftest.err >&5
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); } &&
  2099. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; } &&
  2105. { ac_try='test -s conftest.$ac_objext'
  2106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2107. (eval $ac_try) 2>&5
  2108. ac_status=$?
  2109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2110. (exit $ac_status); }; }; then
  2111. ac_cv_prog_cxx_g=yes
  2112. else
  2113. echo "$as_me: failed program was:" >&5
  2114. sed 's/^/| /' conftest.$ac_ext >&5
  2115. ac_cv_prog_cxx_g=no
  2116. fi
  2117. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2118. fi
  2119. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2120. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2121. if test "$ac_test_CXXFLAGS" = set; then
  2122. CXXFLAGS=$ac_save_CXXFLAGS
  2123. elif test $ac_cv_prog_cxx_g = yes; then
  2124. if test "$GXX" = yes; then
  2125. CXXFLAGS="-g -O2"
  2126. else
  2127. CXXFLAGS="-g"
  2128. fi
  2129. else
  2130. if test "$GXX" = yes; then
  2131. CXXFLAGS="-O2"
  2132. else
  2133. CXXFLAGS=
  2134. fi
  2135. fi
  2136. for ac_declaration in \
  2137. '' \
  2138. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2139. 'extern "C" void std::exit (int); using std::exit;' \
  2140. 'extern "C" void exit (int) throw ();' \
  2141. 'extern "C" void exit (int);' \
  2142. 'void exit (int);'
  2143. do
  2144. cat >conftest.$ac_ext <<_ACEOF
  2145. /* confdefs.h. */
  2146. _ACEOF
  2147. cat confdefs.h >>conftest.$ac_ext
  2148. cat >>conftest.$ac_ext <<_ACEOF
  2149. /* end confdefs.h. */
  2150. $ac_declaration
  2151. #include <stdlib.h>
  2152. int
  2153. main ()
  2154. {
  2155. exit (42);
  2156. ;
  2157. return 0;
  2158. }
  2159. _ACEOF
  2160. rm -f conftest.$ac_objext
  2161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2162. (eval $ac_compile) 2>conftest.er1
  2163. ac_status=$?
  2164. grep -v '^ *+' conftest.er1 >conftest.err
  2165. rm -f conftest.er1
  2166. cat conftest.err >&5
  2167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2168. (exit $ac_status); } &&
  2169. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2171. (eval $ac_try) 2>&5
  2172. ac_status=$?
  2173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2174. (exit $ac_status); }; } &&
  2175. { ac_try='test -s conftest.$ac_objext'
  2176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2177. (eval $ac_try) 2>&5
  2178. ac_status=$?
  2179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2180. (exit $ac_status); }; }; then
  2181. :
  2182. else
  2183. echo "$as_me: failed program was:" >&5
  2184. sed 's/^/| /' conftest.$ac_ext >&5
  2185. continue
  2186. fi
  2187. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2188. cat >conftest.$ac_ext <<_ACEOF
  2189. /* confdefs.h. */
  2190. _ACEOF
  2191. cat confdefs.h >>conftest.$ac_ext
  2192. cat >>conftest.$ac_ext <<_ACEOF
  2193. /* end confdefs.h. */
  2194. $ac_declaration
  2195. int
  2196. main ()
  2197. {
  2198. exit (42);
  2199. ;
  2200. return 0;
  2201. }
  2202. _ACEOF
  2203. rm -f conftest.$ac_objext
  2204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2205. (eval $ac_compile) 2>conftest.er1
  2206. ac_status=$?
  2207. grep -v '^ *+' conftest.er1 >conftest.err
  2208. rm -f conftest.er1
  2209. cat conftest.err >&5
  2210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2211. (exit $ac_status); } &&
  2212. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2214. (eval $ac_try) 2>&5
  2215. ac_status=$?
  2216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2217. (exit $ac_status); }; } &&
  2218. { ac_try='test -s conftest.$ac_objext'
  2219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2220. (eval $ac_try) 2>&5
  2221. ac_status=$?
  2222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223. (exit $ac_status); }; }; then
  2224. break
  2225. else
  2226. echo "$as_me: failed program was:" >&5
  2227. sed 's/^/| /' conftest.$ac_ext >&5
  2228. fi
  2229. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2230. done
  2231. rm -f conftest*
  2232. if test -n "$ac_declaration"; then
  2233. echo '#ifdef __cplusplus' >>confdefs.h
  2234. echo $ac_declaration >>confdefs.h
  2235. echo '#endif' >>confdefs.h
  2236. fi
  2237. ac_ext=c
  2238. ac_cpp='$CPP $CPPFLAGS'
  2239. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2240. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2241. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2242. DEPDIR="${am__leading_dot}deps"
  2243. ac_config_commands="$ac_config_commands depfiles"
  2244. am_make=${MAKE-make}
  2245. cat > confinc << 'END'
  2246. am__doit:
  2247. @echo done
  2248. .PHONY: am__doit
  2249. END
  2250. # If we don't find an include directive, just comment out the code.
  2251. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2252. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2253. am__include="#"
  2254. am__quote=
  2255. _am_result=none
  2256. # First try GNU make style include.
  2257. echo "include confinc" > confmf
  2258. # We grep out `Entering directory' and `Leaving directory'
  2259. # messages which can occur if `w' ends up in MAKEFLAGS.
  2260. # In particular we don't look at `^make:' because GNU make might
  2261. # be invoked under some other name (usually "gmake"), in which
  2262. # case it prints its new name instead of `make'.
  2263. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2264. am__include=include
  2265. am__quote=
  2266. _am_result=GNU
  2267. fi
  2268. # Now try BSD make style include.
  2269. if test "$am__include" = "#"; then
  2270. echo '.include "confinc"' > confmf
  2271. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2272. am__include=.include
  2273. am__quote="\""
  2274. _am_result=BSD
  2275. fi
  2276. fi
  2277. echo "$as_me:$LINENO: result: $_am_result" >&5
  2278. echo "${ECHO_T}$_am_result" >&6
  2279. rm -f confinc confmf
  2280. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2281. if test "${enable_dependency_tracking+set}" = set; then
  2282. enableval="$enable_dependency_tracking"
  2283. fi;
  2284. if test "x$enable_dependency_tracking" != xno; then
  2285. am_depcomp="$ac_aux_dir/depcomp"
  2286. AMDEPBACKSLASH='\'
  2287. fi
  2288. if test "x$enable_dependency_tracking" != xno; then
  2289. AMDEP_TRUE=
  2290. AMDEP_FALSE='#'
  2291. else
  2292. AMDEP_TRUE='#'
  2293. AMDEP_FALSE=
  2294. fi
  2295. depcc="$CXX" am_compiler_list=
  2296. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2297. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2298. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2299. echo $ECHO_N "(cached) $ECHO_C" >&6
  2300. else
  2301. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2302. # We make a subdir and do the tests there. Otherwise we can end up
  2303. # making bogus files that we don't know about and never remove. For
  2304. # instance it was reported that on HP-UX the gcc test will end up
  2305. # making a dummy file named `D' -- because `-MD' means `put the output
  2306. # in D'.
  2307. mkdir conftest.dir
  2308. # Copy depcomp to subdir because otherwise we won't find it if we're
  2309. # using a relative directory.
  2310. cp "$am_depcomp" conftest.dir
  2311. cd conftest.dir
  2312. # We will build objects and dependencies in a subdirectory because
  2313. # it helps to detect inapplicable dependency modes. For instance
  2314. # both Tru64's cc and ICC support -MD to output dependencies as a
  2315. # side effect of compilation, but ICC will put the dependencies in
  2316. # the current directory while Tru64 will put them in the object
  2317. # directory.
  2318. mkdir sub
  2319. am_cv_CXX_dependencies_compiler_type=none
  2320. if test "$am_compiler_list" = ""; then
  2321. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2322. fi
  2323. for depmode in $am_compiler_list; do
  2324. # Setup a source with many dependencies, because some compilers
  2325. # like to wrap large dependency lists on column 80 (with \), and
  2326. # we should not choose a depcomp mode which is confused by this.
  2327. #
  2328. # We need to recreate these files for each test, as the compiler may
  2329. # overwrite some of them when testing with obscure command lines.
  2330. # This happens at least with the AIX C compiler.
  2331. : > sub/conftest.c
  2332. for i in 1 2 3 4 5 6; do
  2333. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2334. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2335. # Solaris 8's {/usr,}/bin/sh.
  2336. touch sub/conftst$i.h
  2337. done
  2338. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2339. case $depmode in
  2340. nosideeffect)
  2341. # after this tag, mechanisms are not by side-effect, so they'll
  2342. # only be used when explicitly requested
  2343. if test "x$enable_dependency_tracking" = xyes; then
  2344. continue
  2345. else
  2346. break
  2347. fi
  2348. ;;
  2349. none) break ;;
  2350. esac
  2351. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2352. # mode. It turns out that the SunPro C++ compiler does not properly
  2353. # handle `-M -o', and we need to detect this.
  2354. if depmode=$depmode \
  2355. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2356. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2357. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2358. >/dev/null 2>conftest.err &&
  2359. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2360. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2361. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2362. # icc doesn't choke on unknown options, it will just issue warnings
  2363. # or remarks (even with -Werror). So we grep stderr for any message
  2364. # that says an option was ignored or not supported.
  2365. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2366. # icc: Command line warning: ignoring option '-M'; no argument required
  2367. # The diagnosis changed in icc 8.0:
  2368. # icc: Command line remark: option '-MP' not supported
  2369. if (grep 'ignoring option' conftest.err ||
  2370. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2371. am_cv_CXX_dependencies_compiler_type=$depmode
  2372. break
  2373. fi
  2374. fi
  2375. done
  2376. cd ..
  2377. rm -rf conftest.dir
  2378. else
  2379. am_cv_CXX_dependencies_compiler_type=none
  2380. fi
  2381. fi
  2382. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2383. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2384. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2385. if
  2386. test "x$enable_dependency_tracking" != xno \
  2387. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2388. am__fastdepCXX_TRUE=
  2389. am__fastdepCXX_FALSE='#'
  2390. else
  2391. am__fastdepCXX_TRUE='#'
  2392. am__fastdepCXX_FALSE=
  2393. fi
  2394. ac_ext=c
  2395. ac_cpp='$CPP $CPPFLAGS'
  2396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2399. if test -n "$ac_tool_prefix"; then
  2400. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2401. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2402. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2403. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2404. if test "${ac_cv_prog_CC+set}" = set; then
  2405. echo $ECHO_N "(cached) $ECHO_C" >&6
  2406. else
  2407. if test -n "$CC"; then
  2408. ac_cv_prog_CC="$CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2417. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2418. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. fi
  2424. fi
  2425. CC=$ac_cv_prog_CC
  2426. if test -n "$CC"; then
  2427. echo "$as_me:$LINENO: result: $CC" >&5
  2428. echo "${ECHO_T}$CC" >&6
  2429. else
  2430. echo "$as_me:$LINENO: result: no" >&5
  2431. echo "${ECHO_T}no" >&6
  2432. fi
  2433. fi
  2434. if test -z "$ac_cv_prog_CC"; then
  2435. ac_ct_CC=$CC
  2436. # Extract the first word of "gcc", so it can be a program name with args.
  2437. set dummy gcc; ac_word=$2
  2438. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2439. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2440. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2441. echo $ECHO_N "(cached) $ECHO_C" >&6
  2442. else
  2443. if test -n "$ac_ct_CC"; then
  2444. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2445. else
  2446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2447. for as_dir in $PATH
  2448. do
  2449. IFS=$as_save_IFS
  2450. test -z "$as_dir" && as_dir=.
  2451. for ac_exec_ext in '' $ac_executable_extensions; do
  2452. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2453. ac_cv_prog_ac_ct_CC="gcc"
  2454. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2455. break 2
  2456. fi
  2457. done
  2458. done
  2459. fi
  2460. fi
  2461. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2462. if test -n "$ac_ct_CC"; then
  2463. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2464. echo "${ECHO_T}$ac_ct_CC" >&6
  2465. else
  2466. echo "$as_me:$LINENO: result: no" >&5
  2467. echo "${ECHO_T}no" >&6
  2468. fi
  2469. CC=$ac_ct_CC
  2470. else
  2471. CC="$ac_cv_prog_CC"
  2472. fi
  2473. if test -z "$CC"; then
  2474. if test -n "$ac_tool_prefix"; then
  2475. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2476. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2477. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2479. if test "${ac_cv_prog_CC+set}" = set; then
  2480. echo $ECHO_N "(cached) $ECHO_C" >&6
  2481. else
  2482. if test -n "$CC"; then
  2483. ac_cv_prog_CC="$CC" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2492. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. echo "$as_me:$LINENO: result: $CC" >&5
  2503. echo "${ECHO_T}$CC" >&6
  2504. else
  2505. echo "$as_me:$LINENO: result: no" >&5
  2506. echo "${ECHO_T}no" >&6
  2507. fi
  2508. fi
  2509. if test -z "$ac_cv_prog_CC"; then
  2510. ac_ct_CC=$CC
  2511. # Extract the first word of "cc", so it can be a program name with args.
  2512. set dummy cc; ac_word=$2
  2513. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2514. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2515. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2516. echo $ECHO_N "(cached) $ECHO_C" >&6
  2517. else
  2518. if test -n "$ac_ct_CC"; then
  2519. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2528. ac_cv_prog_ac_ct_CC="cc"
  2529. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. fi
  2535. fi
  2536. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2537. if test -n "$ac_ct_CC"; then
  2538. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2539. echo "${ECHO_T}$ac_ct_CC" >&6
  2540. else
  2541. echo "$as_me:$LINENO: result: no" >&5
  2542. echo "${ECHO_T}no" >&6
  2543. fi
  2544. CC=$ac_ct_CC
  2545. else
  2546. CC="$ac_cv_prog_CC"
  2547. fi
  2548. fi
  2549. if test -z "$CC"; then
  2550. # Extract the first word of "cc", so it can be a program name with args.
  2551. set dummy cc; ac_word=$2
  2552. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2554. if test "${ac_cv_prog_CC+set}" = set; then
  2555. echo $ECHO_N "(cached) $ECHO_C" >&6
  2556. else
  2557. if test -n "$CC"; then
  2558. ac_cv_prog_CC="$CC" # Let the user override the test.
  2559. else
  2560. ac_prog_rejected=no
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2569. ac_prog_rejected=yes
  2570. continue
  2571. fi
  2572. ac_cv_prog_CC="cc"
  2573. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574. break 2
  2575. fi
  2576. done
  2577. done
  2578. if test $ac_prog_rejected = yes; then
  2579. # We found a bogon in the path, so make sure we never use it.
  2580. set dummy $ac_cv_prog_CC
  2581. shift
  2582. if test $# != 0; then
  2583. # We chose a different compiler from the bogus one.
  2584. # However, it has the same basename, so the bogon will be chosen
  2585. # first if we set CC to just the basename; use the full file name.
  2586. shift
  2587. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2588. fi
  2589. fi
  2590. fi
  2591. fi
  2592. CC=$ac_cv_prog_CC
  2593. if test -n "$CC"; then
  2594. echo "$as_me:$LINENO: result: $CC" >&5
  2595. echo "${ECHO_T}$CC" >&6
  2596. else
  2597. echo "$as_me:$LINENO: result: no" >&5
  2598. echo "${ECHO_T}no" >&6
  2599. fi
  2600. fi
  2601. if test -z "$CC"; then
  2602. if test -n "$ac_tool_prefix"; then
  2603. for ac_prog in cl
  2604. do
  2605. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2606. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2607. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2608. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2609. if test "${ac_cv_prog_CC+set}" = set; then
  2610. echo $ECHO_N "(cached) $ECHO_C" >&6
  2611. else
  2612. if test -n "$CC"; then
  2613. ac_cv_prog_CC="$CC" # Let the user override the test.
  2614. else
  2615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2616. for as_dir in $PATH
  2617. do
  2618. IFS=$as_save_IFS
  2619. test -z "$as_dir" && as_dir=.
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2622. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2623. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2624. break 2
  2625. fi
  2626. done
  2627. done
  2628. fi
  2629. fi
  2630. CC=$ac_cv_prog_CC
  2631. if test -n "$CC"; then
  2632. echo "$as_me:$LINENO: result: $CC" >&5
  2633. echo "${ECHO_T}$CC" >&6
  2634. else
  2635. echo "$as_me:$LINENO: result: no" >&5
  2636. echo "${ECHO_T}no" >&6
  2637. fi
  2638. test -n "$CC" && break
  2639. done
  2640. fi
  2641. if test -z "$CC"; then
  2642. ac_ct_CC=$CC
  2643. for ac_prog in cl
  2644. do
  2645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_prog; ac_word=$2
  2647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2649. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2650. echo $ECHO_N "(cached) $ECHO_C" >&6
  2651. else
  2652. if test -n "$ac_ct_CC"; then
  2653. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2662. ac_cv_prog_ac_ct_CC="$ac_prog"
  2663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. fi
  2669. fi
  2670. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2671. if test -n "$ac_ct_CC"; then
  2672. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2673. echo "${ECHO_T}$ac_ct_CC" >&6
  2674. else
  2675. echo "$as_me:$LINENO: result: no" >&5
  2676. echo "${ECHO_T}no" >&6
  2677. fi
  2678. test -n "$ac_ct_CC" && break
  2679. done
  2680. CC=$ac_ct_CC
  2681. fi
  2682. fi
  2683. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2684. See \`config.log' for more details." >&5
  2685. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2686. See \`config.log' for more details." >&2;}
  2687. { (exit 1); exit 1; }; }
  2688. # Provide some information about the compiler.
  2689. echo "$as_me:$LINENO:" \
  2690. "checking for C compiler version" >&5
  2691. ac_compiler=`set X $ac_compile; echo $2`
  2692. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2693. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2694. ac_status=$?
  2695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696. (exit $ac_status); }
  2697. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2698. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2699. ac_status=$?
  2700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2701. (exit $ac_status); }
  2702. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2703. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }
  2707. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2708. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2709. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2710. echo $ECHO_N "(cached) $ECHO_C" >&6
  2711. else
  2712. cat >conftest.$ac_ext <<_ACEOF
  2713. /* confdefs.h. */
  2714. _ACEOF
  2715. cat confdefs.h >>conftest.$ac_ext
  2716. cat >>conftest.$ac_ext <<_ACEOF
  2717. /* end confdefs.h. */
  2718. int
  2719. main ()
  2720. {
  2721. #ifndef __GNUC__
  2722. choke me
  2723. #endif
  2724. ;
  2725. return 0;
  2726. }
  2727. _ACEOF
  2728. rm -f conftest.$ac_objext
  2729. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2730. (eval $ac_compile) 2>conftest.er1
  2731. ac_status=$?
  2732. grep -v '^ *+' conftest.er1 >conftest.err
  2733. rm -f conftest.er1
  2734. cat conftest.err >&5
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); } &&
  2737. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2739. (eval $ac_try) 2>&5
  2740. ac_status=$?
  2741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2742. (exit $ac_status); }; } &&
  2743. { ac_try='test -s conftest.$ac_objext'
  2744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2745. (eval $ac_try) 2>&5
  2746. ac_status=$?
  2747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2748. (exit $ac_status); }; }; then
  2749. ac_compiler_gnu=yes
  2750. else
  2751. echo "$as_me: failed program was:" >&5
  2752. sed 's/^/| /' conftest.$ac_ext >&5
  2753. ac_compiler_gnu=no
  2754. fi
  2755. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2756. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2757. fi
  2758. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2759. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2760. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2761. ac_test_CFLAGS=${CFLAGS+set}
  2762. ac_save_CFLAGS=$CFLAGS
  2763. CFLAGS="-g"
  2764. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2765. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2766. if test "${ac_cv_prog_cc_g+set}" = set; then
  2767. echo $ECHO_N "(cached) $ECHO_C" >&6
  2768. else
  2769. cat >conftest.$ac_ext <<_ACEOF
  2770. /* confdefs.h. */
  2771. _ACEOF
  2772. cat confdefs.h >>conftest.$ac_ext
  2773. cat >>conftest.$ac_ext <<_ACEOF
  2774. /* end confdefs.h. */
  2775. int
  2776. main ()
  2777. {
  2778. ;
  2779. return 0;
  2780. }
  2781. _ACEOF
  2782. rm -f conftest.$ac_objext
  2783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2784. (eval $ac_compile) 2>conftest.er1
  2785. ac_status=$?
  2786. grep -v '^ *+' conftest.er1 >conftest.err
  2787. rm -f conftest.er1
  2788. cat conftest.err >&5
  2789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); } &&
  2791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2793. (eval $ac_try) 2>&5
  2794. ac_status=$?
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); }; } &&
  2797. { ac_try='test -s conftest.$ac_objext'
  2798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2799. (eval $ac_try) 2>&5
  2800. ac_status=$?
  2801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2802. (exit $ac_status); }; }; then
  2803. ac_cv_prog_cc_g=yes
  2804. else
  2805. echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. ac_cv_prog_cc_g=no
  2808. fi
  2809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2810. fi
  2811. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2812. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2813. if test "$ac_test_CFLAGS" = set; then
  2814. CFLAGS=$ac_save_CFLAGS
  2815. elif test $ac_cv_prog_cc_g = yes; then
  2816. if test "$GCC" = yes; then
  2817. CFLAGS="-g -O2"
  2818. else
  2819. CFLAGS="-g"
  2820. fi
  2821. else
  2822. if test "$GCC" = yes; then
  2823. CFLAGS="-O2"
  2824. else
  2825. CFLAGS=
  2826. fi
  2827. fi
  2828. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2829. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2830. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2831. echo $ECHO_N "(cached) $ECHO_C" >&6
  2832. else
  2833. ac_cv_prog_cc_stdc=no
  2834. ac_save_CC=$CC
  2835. cat >conftest.$ac_ext <<_ACEOF
  2836. /* confdefs.h. */
  2837. _ACEOF
  2838. cat confdefs.h >>conftest.$ac_ext
  2839. cat >>conftest.$ac_ext <<_ACEOF
  2840. /* end confdefs.h. */
  2841. #include <stdarg.h>
  2842. #include <stdio.h>
  2843. #include <sys/types.h>
  2844. #include <sys/stat.h>
  2845. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2846. struct buf { int x; };
  2847. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2848. static char *e (p, i)
  2849. char **p;
  2850. int i;
  2851. {
  2852. return p[i];
  2853. }
  2854. static char *f (char * (*g) (char **, int), char **p, ...)
  2855. {
  2856. char *s;
  2857. va_list v;
  2858. va_start (v,p);
  2859. s = g (p, va_arg (v,int));
  2860. va_end (v);
  2861. return s;
  2862. }
  2863. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2864. function prototypes and stuff, but not '\xHH' hex character constants.
  2865. These don't provoke an error unfortunately, instead are silently treated
  2866. as 'x'. The following induces an error, until -std1 is added to get
  2867. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2868. array size at least. It's necessary to write '\x00'==0 to get something
  2869. that's true only with -std1. */
  2870. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2871. int test (int i, double x);
  2872. struct s1 {int (*f) (int a);};
  2873. struct s2 {int (*f) (double a);};
  2874. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2875. int argc;
  2876. char **argv;
  2877. int
  2878. main ()
  2879. {
  2880. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. # Don't try gcc -ansi; that turns off useful extensions and
  2886. # breaks some systems' header files.
  2887. # AIX -qlanglvl=ansi
  2888. # Ultrix and OSF/1 -std1
  2889. # HP-UX 10.20 and later -Ae
  2890. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2891. # SVR4 -Xc -D__EXTENSIONS__
  2892. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2893. do
  2894. CC="$ac_save_CC $ac_arg"
  2895. rm -f conftest.$ac_objext
  2896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2897. (eval $ac_compile) 2>conftest.er1
  2898. ac_status=$?
  2899. grep -v '^ *+' conftest.er1 >conftest.err
  2900. rm -f conftest.er1
  2901. cat conftest.err >&5
  2902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2903. (exit $ac_status); } &&
  2904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2906. (eval $ac_try) 2>&5
  2907. ac_status=$?
  2908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2909. (exit $ac_status); }; } &&
  2910. { ac_try='test -s conftest.$ac_objext'
  2911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2912. (eval $ac_try) 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; }; then
  2916. ac_cv_prog_cc_stdc=$ac_arg
  2917. break
  2918. else
  2919. echo "$as_me: failed program was:" >&5
  2920. sed 's/^/| /' conftest.$ac_ext >&5
  2921. fi
  2922. rm -f conftest.err conftest.$ac_objext
  2923. done
  2924. rm -f conftest.$ac_ext conftest.$ac_objext
  2925. CC=$ac_save_CC
  2926. fi
  2927. case "x$ac_cv_prog_cc_stdc" in
  2928. x|xno)
  2929. echo "$as_me:$LINENO: result: none needed" >&5
  2930. echo "${ECHO_T}none needed" >&6 ;;
  2931. *)
  2932. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2933. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2934. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2935. esac
  2936. # Some people use a C++ compiler to compile C. Since we use `exit',
  2937. # in C++ we need to declare it. In case someone uses the same compiler
  2938. # for both compiling C and C++ we need to have the C++ compiler decide
  2939. # the declaration of exit, since it's the most demanding environment.
  2940. cat >conftest.$ac_ext <<_ACEOF
  2941. #ifndef __cplusplus
  2942. choke me
  2943. #endif
  2944. _ACEOF
  2945. rm -f conftest.$ac_objext
  2946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2947. (eval $ac_compile) 2>conftest.er1
  2948. ac_status=$?
  2949. grep -v '^ *+' conftest.er1 >conftest.err
  2950. rm -f conftest.er1
  2951. cat conftest.err >&5
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); } &&
  2954. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2956. (eval $ac_try) 2>&5
  2957. ac_status=$?
  2958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; } &&
  2960. { ac_try='test -s conftest.$ac_objext'
  2961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2962. (eval $ac_try) 2>&5
  2963. ac_status=$?
  2964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2965. (exit $ac_status); }; }; then
  2966. for ac_declaration in \
  2967. '' \
  2968. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2969. 'extern "C" void std::exit (int); using std::exit;' \
  2970. 'extern "C" void exit (int) throw ();' \
  2971. 'extern "C" void exit (int);' \
  2972. 'void exit (int);'
  2973. do
  2974. cat >conftest.$ac_ext <<_ACEOF
  2975. /* confdefs.h. */
  2976. _ACEOF
  2977. cat confdefs.h >>conftest.$ac_ext
  2978. cat >>conftest.$ac_ext <<_ACEOF
  2979. /* end confdefs.h. */
  2980. $ac_declaration
  2981. #include <stdlib.h>
  2982. int
  2983. main ()
  2984. {
  2985. exit (42);
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. rm -f conftest.$ac_objext
  2991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2992. (eval $ac_compile) 2>conftest.er1
  2993. ac_status=$?
  2994. grep -v '^ *+' conftest.er1 >conftest.err
  2995. rm -f conftest.er1
  2996. cat conftest.err >&5
  2997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2998. (exit $ac_status); } &&
  2999. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3001. (eval $ac_try) 2>&5
  3002. ac_status=$?
  3003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); }; } &&
  3005. { ac_try='test -s conftest.$ac_objext'
  3006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3007. (eval $ac_try) 2>&5
  3008. ac_status=$?
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); }; }; then
  3011. :
  3012. else
  3013. echo "$as_me: failed program was:" >&5
  3014. sed 's/^/| /' conftest.$ac_ext >&5
  3015. continue
  3016. fi
  3017. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3018. cat >conftest.$ac_ext <<_ACEOF
  3019. /* confdefs.h. */
  3020. _ACEOF
  3021. cat confdefs.h >>conftest.$ac_ext
  3022. cat >>conftest.$ac_ext <<_ACEOF
  3023. /* end confdefs.h. */
  3024. $ac_declaration
  3025. int
  3026. main ()
  3027. {
  3028. exit (42);
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. rm -f conftest.$ac_objext
  3034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3035. (eval $ac_compile) 2>conftest.er1
  3036. ac_status=$?
  3037. grep -v '^ *+' conftest.er1 >conftest.err
  3038. rm -f conftest.er1
  3039. cat conftest.err >&5
  3040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3041. (exit $ac_status); } &&
  3042. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3044. (eval $ac_try) 2>&5
  3045. ac_status=$?
  3046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. (exit $ac_status); }; } &&
  3048. { ac_try='test -s conftest.$ac_objext'
  3049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3050. (eval $ac_try) 2>&5
  3051. ac_status=$?
  3052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3053. (exit $ac_status); }; }; then
  3054. break
  3055. else
  3056. echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. fi
  3059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3060. done
  3061. rm -f conftest*
  3062. if test -n "$ac_declaration"; then
  3063. echo '#ifdef __cplusplus' >>confdefs.h
  3064. echo $ac_declaration >>confdefs.h
  3065. echo '#endif' >>confdefs.h
  3066. fi
  3067. else
  3068. echo "$as_me: failed program was:" >&5
  3069. sed 's/^/| /' conftest.$ac_ext >&5
  3070. fi
  3071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3072. ac_ext=c
  3073. ac_cpp='$CPP $CPPFLAGS'
  3074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3077. depcc="$CC" am_compiler_list=
  3078. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3079. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3080. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3081. echo $ECHO_N "(cached) $ECHO_C" >&6
  3082. else
  3083. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3084. # We make a subdir and do the tests there. Otherwise we can end up
  3085. # making bogus files that we don't know about and never remove. For
  3086. # instance it was reported that on HP-UX the gcc test will end up
  3087. # making a dummy file named `D' -- because `-MD' means `put the output
  3088. # in D'.
  3089. mkdir conftest.dir
  3090. # Copy depcomp to subdir because otherwise we won't find it if we're
  3091. # using a relative directory.
  3092. cp "$am_depcomp" conftest.dir
  3093. cd conftest.dir
  3094. # We will build objects and dependencies in a subdirectory because
  3095. # it helps to detect inapplicable dependency modes. For instance
  3096. # both Tru64's cc and ICC support -MD to output dependencies as a
  3097. # side effect of compilation, but ICC will put the dependencies in
  3098. # the current directory while Tru64 will put them in the object
  3099. # directory.
  3100. mkdir sub
  3101. am_cv_CC_dependencies_compiler_type=none
  3102. if test "$am_compiler_list" = ""; then
  3103. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3104. fi
  3105. for depmode in $am_compiler_list; do
  3106. # Setup a source with many dependencies, because some compilers
  3107. # like to wrap large dependency lists on column 80 (with \), and
  3108. # we should not choose a depcomp mode which is confused by this.
  3109. #
  3110. # We need to recreate these files for each test, as the compiler may
  3111. # overwrite some of them when testing with obscure command lines.
  3112. # This happens at least with the AIX C compiler.
  3113. : > sub/conftest.c
  3114. for i in 1 2 3 4 5 6; do
  3115. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3116. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3117. # Solaris 8's {/usr,}/bin/sh.
  3118. touch sub/conftst$i.h
  3119. done
  3120. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3121. case $depmode in
  3122. nosideeffect)
  3123. # after this tag, mechanisms are not by side-effect, so they'll
  3124. # only be used when explicitly requested
  3125. if test "x$enable_dependency_tracking" = xyes; then
  3126. continue
  3127. else
  3128. break
  3129. fi
  3130. ;;
  3131. none) break ;;
  3132. esac
  3133. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3134. # mode. It turns out that the SunPro C++ compiler does not properly
  3135. # handle `-M -o', and we need to detect this.
  3136. if depmode=$depmode \
  3137. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3138. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3139. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3140. >/dev/null 2>conftest.err &&
  3141. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3142. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3143. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3144. # icc doesn't choke on unknown options, it will just issue warnings
  3145. # or remarks (even with -Werror). So we grep stderr for any message
  3146. # that says an option was ignored or not supported.
  3147. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3148. # icc: Command line warning: ignoring option '-M'; no argument required
  3149. # The diagnosis changed in icc 8.0:
  3150. # icc: Command line remark: option '-MP' not supported
  3151. if (grep 'ignoring option' conftest.err ||
  3152. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3153. am_cv_CC_dependencies_compiler_type=$depmode
  3154. break
  3155. fi
  3156. fi
  3157. done
  3158. cd ..
  3159. rm -rf conftest.dir
  3160. else
  3161. am_cv_CC_dependencies_compiler_type=none
  3162. fi
  3163. fi
  3164. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3165. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3166. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3167. if
  3168. test "x$enable_dependency_tracking" != xno \
  3169. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3170. am__fastdepCC_TRUE=
  3171. am__fastdepCC_FALSE='#'
  3172. else
  3173. am__fastdepCC_TRUE='#'
  3174. am__fastdepCC_FALSE=
  3175. fi
  3176. # Find a good install program. We prefer a C program (faster),
  3177. # so one script is as good as another. But avoid the broken or
  3178. # incompatible versions:
  3179. # SysV /etc/install, /usr/sbin/install
  3180. # SunOS /usr/etc/install
  3181. # IRIX /sbin/install
  3182. # AIX /bin/install
  3183. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3184. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3185. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3186. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3187. # OS/2's system install, which has a completely different semantic
  3188. # ./install, which can be erroneously created by make from ./install.sh.
  3189. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3190. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3191. if test -z "$INSTALL"; then
  3192. if test "${ac_cv_path_install+set}" = set; then
  3193. echo $ECHO_N "(cached) $ECHO_C" >&6
  3194. else
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. # Account for people who put trailing slashes in PATH elements.
  3201. case $as_dir/ in
  3202. ./ | .// | /cC/* | \
  3203. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3204. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3205. /usr/ucb/* ) ;;
  3206. *)
  3207. # OSF1 and SCO ODT 3.0 have their own names for install.
  3208. # Don't use installbsd from OSF since it installs stuff as root
  3209. # by default.
  3210. for ac_prog in ginstall scoinst install; do
  3211. for ac_exec_ext in '' $ac_executable_extensions; do
  3212. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3213. if test $ac_prog = install &&
  3214. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3215. # AIX install. It has an incompatible calling convention.
  3216. :
  3217. elif test $ac_prog = install &&
  3218. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3219. # program-specific install script used by HP pwplus--don't use.
  3220. :
  3221. else
  3222. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3223. break 3
  3224. fi
  3225. fi
  3226. done
  3227. done
  3228. ;;
  3229. esac
  3230. done
  3231. fi
  3232. if test "${ac_cv_path_install+set}" = set; then
  3233. INSTALL=$ac_cv_path_install
  3234. else
  3235. # As a last resort, use the slow shell script. We don't cache a
  3236. # path for INSTALL within a source directory, because that will
  3237. # break other packages using the cache if that directory is
  3238. # removed, or if the path is relative.
  3239. INSTALL=$ac_install_sh
  3240. fi
  3241. fi
  3242. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3243. echo "${ECHO_T}$INSTALL" >&6
  3244. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3245. # It thinks the first close brace ends the variable substitution.
  3246. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3247. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3248. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3249. if test -n "$ac_tool_prefix"; then
  3250. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3251. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3252. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3253. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3254. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3255. echo $ECHO_N "(cached) $ECHO_C" >&6
  3256. else
  3257. if test -n "$RANLIB"; then
  3258. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3259. else
  3260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3261. for as_dir in $PATH
  3262. do
  3263. IFS=$as_save_IFS
  3264. test -z "$as_dir" && as_dir=.
  3265. for ac_exec_ext in '' $ac_executable_extensions; do
  3266. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3267. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3268. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3269. break 2
  3270. fi
  3271. done
  3272. done
  3273. fi
  3274. fi
  3275. RANLIB=$ac_cv_prog_RANLIB
  3276. if test -n "$RANLIB"; then
  3277. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3278. echo "${ECHO_T}$RANLIB" >&6
  3279. else
  3280. echo "$as_me:$LINENO: result: no" >&5
  3281. echo "${ECHO_T}no" >&6
  3282. fi
  3283. fi
  3284. if test -z "$ac_cv_prog_RANLIB"; then
  3285. ac_ct_RANLIB=$RANLIB
  3286. # Extract the first word of "ranlib", so it can be a program name with args.
  3287. set dummy ranlib; ac_word=$2
  3288. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3289. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3290. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3291. echo $ECHO_N "(cached) $ECHO_C" >&6
  3292. else
  3293. if test -n "$ac_ct_RANLIB"; then
  3294. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3295. else
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. test -z "$as_dir" && as_dir=.
  3301. for ac_exec_ext in '' $ac_executable_extensions; do
  3302. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3303. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3304. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3305. break 2
  3306. fi
  3307. done
  3308. done
  3309. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3310. fi
  3311. fi
  3312. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3313. if test -n "$ac_ct_RANLIB"; then
  3314. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3315. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3316. else
  3317. echo "$as_me:$LINENO: result: no" >&5
  3318. echo "${ECHO_T}no" >&6
  3319. fi
  3320. RANLIB=$ac_ct_RANLIB
  3321. else
  3322. RANLIB="$ac_cv_prog_RANLIB"
  3323. fi
  3324. for ac_prog in 'bison -y' byacc
  3325. do
  3326. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3327. set dummy $ac_prog; ac_word=$2
  3328. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3329. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3330. if test "${ac_cv_prog_YACC+set}" = set; then
  3331. echo $ECHO_N "(cached) $ECHO_C" >&6
  3332. else
  3333. if test -n "$YACC"; then
  3334. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3335. else
  3336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3337. for as_dir in $PATH
  3338. do
  3339. IFS=$as_save_IFS
  3340. test -z "$as_dir" && as_dir=.
  3341. for ac_exec_ext in '' $ac_executable_extensions; do
  3342. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3343. ac_cv_prog_YACC="$ac_prog"
  3344. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3345. break 2
  3346. fi
  3347. done
  3348. done
  3349. fi
  3350. fi
  3351. YACC=$ac_cv_prog_YACC
  3352. if test -n "$YACC"; then
  3353. echo "$as_me:$LINENO: result: $YACC" >&5
  3354. echo "${ECHO_T}$YACC" >&6
  3355. else
  3356. echo "$as_me:$LINENO: result: no" >&5
  3357. echo "${ECHO_T}no" >&6
  3358. fi
  3359. test -n "$YACC" && break
  3360. done
  3361. test -n "$YACC" || YACC="yacc"
  3362. # Checks for libraries.
  3363. if test "x$with_libxml2" = "xyes"; then
  3364. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3365. if test "${with_xml_prefix+set}" = set; then
  3366. withval="$with_xml_prefix"
  3367. xml_config_prefix="$withval"
  3368. else
  3369. xml_config_prefix=""
  3370. fi;
  3371. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3372. if test "${with_xml_exec_prefix+set}" = set; then
  3373. withval="$with_xml_exec_prefix"
  3374. xml_config_exec_prefix="$withval"
  3375. else
  3376. xml_config_exec_prefix=""
  3377. fi;
  3378. # Check whether --enable-xmltest or --disable-xmltest was given.
  3379. if test "${enable_xmltest+set}" = set; then
  3380. enableval="$enable_xmltest"
  3381. else
  3382. enable_xmltest=yes
  3383. fi;
  3384. if test x$xml_config_exec_prefix != x ; then
  3385. xml_config_args="$xml_config_args"
  3386. if test x${XML2_CONFIG+set} != xset ; then
  3387. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3388. fi
  3389. fi
  3390. if test x$xml_config_prefix != x ; then
  3391. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3392. if test x${XML2_CONFIG+set} != xset ; then
  3393. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3394. fi
  3395. fi
  3396. # Extract the first word of "xml2-config", so it can be a program name with args.
  3397. set dummy xml2-config; ac_word=$2
  3398. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3400. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3401. echo $ECHO_N "(cached) $ECHO_C" >&6
  3402. else
  3403. case $XML2_CONFIG in
  3404. [\\/]* | ?:[\\/]*)
  3405. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3406. ;;
  3407. *)
  3408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3409. for as_dir in $PATH
  3410. do
  3411. IFS=$as_save_IFS
  3412. test -z "$as_dir" && as_dir=.
  3413. for ac_exec_ext in '' $ac_executable_extensions; do
  3414. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3415. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3416. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3417. break 2
  3418. fi
  3419. done
  3420. done
  3421. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3422. ;;
  3423. esac
  3424. fi
  3425. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3426. if test -n "$XML2_CONFIG"; then
  3427. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3428. echo "${ECHO_T}$XML2_CONFIG" >&6
  3429. else
  3430. echo "$as_me:$LINENO: result: no" >&5
  3431. echo "${ECHO_T}no" >&6
  3432. fi
  3433. min_xml_version=2.6.24
  3434. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3435. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3436. no_xml=""
  3437. if test "$XML2_CONFIG" = "no" ; then
  3438. no_xml=yes
  3439. else
  3440. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3441. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3442. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3443. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3444. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3445. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3446. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3447. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3448. if test "x$enable_xmltest" = "xyes" ; then
  3449. ac_save_CPPFLAGS="$CPPFLAGS"
  3450. ac_save_LIBS="$LIBS"
  3451. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3452. LIBS="$XML_LIBS $LIBS"
  3453. rm -f conf.xmltest
  3454. if test "$cross_compiling" = yes; then
  3455. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3456. else
  3457. cat >conftest.$ac_ext <<_ACEOF
  3458. /* confdefs.h. */
  3459. _ACEOF
  3460. cat confdefs.h >>conftest.$ac_ext
  3461. cat >>conftest.$ac_ext <<_ACEOF
  3462. /* end confdefs.h. */
  3463. #include <stdlib.h>
  3464. #include <stdio.h>
  3465. #include <string.h>
  3466. #include <libxml/xmlversion.h>
  3467. int
  3468. main()
  3469. {
  3470. int xml_major_version, xml_minor_version, xml_micro_version;
  3471. int major, minor, micro;
  3472. char *tmp_version;
  3473. system("touch conf.xmltest");
  3474. /* Capture xml2-config output via autoconf/configure variables */
  3475. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3476. tmp_version = (char *)strdup("$min_xml_version");
  3477. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3478. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3479. exit(1);
  3480. }
  3481. free(tmp_version);
  3482. /* Capture the version information from the header files */
  3483. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3484. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3485. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3486. exit(1);
  3487. }
  3488. free(tmp_version);
  3489. /* Compare xml2-config output to the libxml headers */
  3490. if ((xml_major_version != $xml_config_major_version) ||
  3491. (xml_minor_version != $xml_config_minor_version) ||
  3492. (xml_micro_version != $xml_config_micro_version))
  3493. {
  3494. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3495. xml_major_version, xml_minor_version, xml_micro_version);
  3496. printf("*** xml2-config (version %d.%d.%d)\n",
  3497. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3498. return 1;
  3499. }
  3500. /* Compare the headers to the library to make sure we match */
  3501. /* Less than ideal -- doesn't provide us with return value feedback,
  3502. * only exits if there's a serious mismatch between header and library.
  3503. */
  3504. LIBXML_TEST_VERSION;
  3505. /* Test that the library is greater than our minimum version */
  3506. if ((xml_major_version > major) ||
  3507. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3508. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3509. (xml_micro_version >= micro)))
  3510. {
  3511. return 0;
  3512. }
  3513. else
  3514. {
  3515. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3516. xml_major_version, xml_minor_version, xml_micro_version);
  3517. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3518. major, minor, micro);
  3519. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3520. printf("***\n");
  3521. printf("*** If you have already installed a sufficiently new version, this error\n");
  3522. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3523. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3524. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3525. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3526. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3527. printf("*** so that the correct libraries are found at run-time))\n");
  3528. }
  3529. return 1;
  3530. }
  3531. _ACEOF
  3532. rm -f conftest$ac_exeext
  3533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3534. (eval $ac_link) 2>&5
  3535. ac_status=$?
  3536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3537. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3539. (eval $ac_try) 2>&5
  3540. ac_status=$?
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); }; }; then
  3543. :
  3544. else
  3545. echo "$as_me: program exited with status $ac_status" >&5
  3546. echo "$as_me: failed program was:" >&5
  3547. sed 's/^/| /' conftest.$ac_ext >&5
  3548. ( exit $ac_status )
  3549. no_xml=yes
  3550. fi
  3551. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3552. fi
  3553. CPPFLAGS="$ac_save_CPPFLAGS"
  3554. LIBS="$ac_save_LIBS"
  3555. fi
  3556. fi
  3557. if test "x$no_xml" = x ; then
  3558. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3559. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3560. have_libxml2=yes
  3561. else
  3562. echo "$as_me:$LINENO: result: no" >&5
  3563. echo "${ECHO_T}no" >&6
  3564. if test "$XML2_CONFIG" = "no" ; then
  3565. echo "*** The xml2-config script installed by LIBXML could not be found"
  3566. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3567. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3568. echo "*** full path to xml2-config."
  3569. else
  3570. if test -f conf.xmltest ; then
  3571. :
  3572. else
  3573. echo "*** Could not run libxml test program, checking why..."
  3574. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3575. LIBS="$LIBS $XML_LIBS"
  3576. cat >conftest.$ac_ext <<_ACEOF
  3577. /* confdefs.h. */
  3578. _ACEOF
  3579. cat confdefs.h >>conftest.$ac_ext
  3580. cat >>conftest.$ac_ext <<_ACEOF
  3581. /* end confdefs.h. */
  3582. #include <libxml/xmlversion.h>
  3583. #include <stdio.h>
  3584. int
  3585. main ()
  3586. {
  3587. LIBXML_TEST_VERSION; return 0;
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. rm -f conftest.$ac_objext conftest$ac_exeext
  3593. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3594. (eval $ac_link) 2>conftest.er1
  3595. ac_status=$?
  3596. grep -v '^ *+' conftest.er1 >conftest.err
  3597. rm -f conftest.er1
  3598. cat conftest.err >&5
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } &&
  3601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; } &&
  3607. { ac_try='test -s conftest$ac_exeext'
  3608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3609. (eval $ac_try) 2>&5
  3610. ac_status=$?
  3611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3612. (exit $ac_status); }; }; then
  3613. echo "*** The test program compiled, but did not run. This usually means"
  3614. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3615. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3616. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3617. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3618. echo "*** is required on your system"
  3619. echo "***"
  3620. echo "*** If you have an old version installed, it is best to remove it, although"
  3621. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3622. else
  3623. echo "$as_me: failed program was:" >&5
  3624. sed 's/^/| /' conftest.$ac_ext >&5
  3625. echo "*** The test program failed to compile or link. See the file config.log for the"
  3626. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3627. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3628. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3629. fi
  3630. rm -f conftest.err conftest.$ac_objext \
  3631. conftest$ac_exeext conftest.$ac_ext
  3632. CPPFLAGS="$ac_save_CPPFLAGS"
  3633. LIBS="$ac_save_LIBS"
  3634. fi
  3635. fi
  3636. XML_CPPFLAGS=""
  3637. XML_LIBS=""
  3638. :
  3639. fi
  3640. rm -f conf.xmltest
  3641. if test "x$have_libxml2" = "xyes"; then
  3642. cat >>confdefs.h <<\_ACEOF
  3643. #define HAVE_LIBXML2 1
  3644. _ACEOF
  3645. fi
  3646. fi
  3647. if test "x$with_gnutls" = "xyes"; then
  3648. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3649. if test "${with_libgnutls_prefix+set}" = set; then
  3650. withval="$with_libgnutls_prefix"
  3651. libgnutls_config_prefix="$withval"
  3652. else
  3653. libgnutls_config_prefix=""
  3654. fi;
  3655. if test x$libgnutls_config_prefix != x ; then
  3656. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3657. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3658. fi
  3659. fi
  3660. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3661. set dummy libgnutls-config; ac_word=$2
  3662. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3663. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3664. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3665. echo $ECHO_N "(cached) $ECHO_C" >&6
  3666. else
  3667. case $LIBGNUTLS_CONFIG in
  3668. [\\/]* | ?:[\\/]*)
  3669. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3670. ;;
  3671. *)
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_exec_ext in '' $ac_executable_extensions; do
  3678. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3679. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3680. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3681. break 2
  3682. fi
  3683. done
  3684. done
  3685. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3686. ;;
  3687. esac
  3688. fi
  3689. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3690. if test -n "$LIBGNUTLS_CONFIG"; then
  3691. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3692. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3693. else
  3694. echo "$as_me:$LINENO: result: no" >&5
  3695. echo "${ECHO_T}no" >&6
  3696. fi
  3697. min_libgnutls_version=1.2.9
  3698. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3699. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3700. no_libgnutls=""
  3701. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3702. no_libgnutls=yes
  3703. else
  3704. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3705. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3706. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3707. ac_save_CFLAGS="$CFLAGS"
  3708. ac_save_LIBS="$LIBS"
  3709. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3710. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3711. rm -f conf.libgnutlstest
  3712. if test "$cross_compiling" = yes; then
  3713. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3714. else
  3715. cat >conftest.$ac_ext <<_ACEOF
  3716. /* confdefs.h. */
  3717. _ACEOF
  3718. cat confdefs.h >>conftest.$ac_ext
  3719. cat >>conftest.$ac_ext <<_ACEOF
  3720. /* end confdefs.h. */
  3721. #include <stdio.h>
  3722. #include <stdlib.h>
  3723. #include <string.h>
  3724. #include <gnutls/gnutls.h>
  3725. int
  3726. main ()
  3727. {
  3728. system ("touch conf.libgnutlstest");
  3729. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3730. {
  3731. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3732. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3733. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3734. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3735. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3736. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3737. printf("*** required on your system.\n");
  3738. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3739. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3740. printf("*** before re-running configure\n");
  3741. }
  3742. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3743. {
  3744. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3745. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3746. }
  3747. else
  3748. {
  3749. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3750. {
  3751. return 0;
  3752. }
  3753. else
  3754. {
  3755. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3756. gnutls_check_version(NULL) );
  3757. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3758. "$min_libgnutls_version" );
  3759. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3760. printf("*** \n");
  3761. printf("*** If you have already installed a sufficiently new version, this error\n");
  3762. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3763. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3764. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3765. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3766. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3767. printf("*** so that the correct libraries are found at run-time))\n");
  3768. }
  3769. }
  3770. return 1;
  3771. }
  3772. _ACEOF
  3773. rm -f conftest$ac_exeext
  3774. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3775. (eval $ac_link) 2>&5
  3776. ac_status=$?
  3777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3778. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3780. (eval $ac_try) 2>&5
  3781. ac_status=$?
  3782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3783. (exit $ac_status); }; }; then
  3784. :
  3785. else
  3786. echo "$as_me: program exited with status $ac_status" >&5
  3787. echo "$as_me: failed program was:" >&5
  3788. sed 's/^/| /' conftest.$ac_ext >&5
  3789. ( exit $ac_status )
  3790. no_libgnutls=yes
  3791. fi
  3792. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3793. fi
  3794. CFLAGS="$ac_save_CFLAGS"
  3795. LIBS="$ac_save_LIBS"
  3796. fi
  3797. if test "x$no_libgnutls" = x ; then
  3798. echo "$as_me:$LINENO: result: yes" >&5
  3799. echo "${ECHO_T}yes" >&6
  3800. have_libgnutls=yes
  3801. else
  3802. if test -f conf.libgnutlstest ; then
  3803. :
  3804. else
  3805. echo "$as_me:$LINENO: result: no" >&5
  3806. echo "${ECHO_T}no" >&6
  3807. fi
  3808. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3809. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3810. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3811. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3812. echo "*** full path to libgnutls-config."
  3813. else
  3814. if test -f conf.libgnutlstest ; then
  3815. :
  3816. else
  3817. echo "*** Could not run libgnutls test program, checking why..."
  3818. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3819. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3820. cat >conftest.$ac_ext <<_ACEOF
  3821. /* confdefs.h. */
  3822. _ACEOF
  3823. cat confdefs.h >>conftest.$ac_ext
  3824. cat >>conftest.$ac_ext <<_ACEOF
  3825. /* end confdefs.h. */
  3826. #include <stdio.h>
  3827. #include <stdlib.h>
  3828. #include <string.h>
  3829. #include <gnutls/gnutls.h>
  3830. int
  3831. main ()
  3832. {
  3833. return !!gnutls_check_version(NULL);
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. rm -f conftest.$ac_objext conftest$ac_exeext
  3839. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3840. (eval $ac_link) 2>conftest.er1
  3841. ac_status=$?
  3842. grep -v '^ *+' conftest.er1 >conftest.err
  3843. rm -f conftest.er1
  3844. cat conftest.err >&5
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); } &&
  3847. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; } &&
  3853. { ac_try='test -s conftest$ac_exeext'
  3854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3855. (eval $ac_try) 2>&5
  3856. ac_status=$?
  3857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3858. (exit $ac_status); }; }; then
  3859. echo "*** The test program compiled, but did not run. This usually means"
  3860. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3861. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3862. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3863. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3864. echo "*** is required on your system"
  3865. echo "***"
  3866. echo "*** If you have an old version installed, it is best to remove it, although"
  3867. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3868. echo "***"
  3869. else
  3870. echo "$as_me: failed program was:" >&5
  3871. sed 's/^/| /' conftest.$ac_ext >&5
  3872. echo "*** The test program failed to compile or link. See the file config.log for the"
  3873. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3874. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3875. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3876. fi
  3877. rm -f conftest.err conftest.$ac_objext \
  3878. conftest$ac_exeext conftest.$ac_ext
  3879. CFLAGS="$ac_save_CFLAGS"
  3880. LIBS="$ac_save_LIBS"
  3881. fi
  3882. fi
  3883. LIBGNUTLS_CFLAGS=""
  3884. LIBGNUTLS_LIBS=""
  3885. :
  3886. fi
  3887. rm -f conf.libgnutlstest
  3888. if test "x$have_libgnutls" = "xyes"; then
  3889. cat >>confdefs.h <<\_ACEOF
  3890. #define HAVE_LIBGNUTLS 1
  3891. _ACEOF
  3892. fi
  3893. fi
  3894. if test "x$have_libgnutls" = "xyes"; then
  3895. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3896. if test "${with_libgcrypt_prefix+set}" = set; then
  3897. withval="$with_libgcrypt_prefix"
  3898. libgcrypt_config_prefix="$withval"
  3899. else
  3900. libgcrypt_config_prefix=""
  3901. fi;
  3902. if test x$libgcrypt_config_prefix != x ; then
  3903. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3904. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3905. fi
  3906. fi
  3907. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3908. set dummy libgcrypt-config; ac_word=$2
  3909. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3910. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3911. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3912. echo $ECHO_N "(cached) $ECHO_C" >&6
  3913. else
  3914. case $LIBGCRYPT_CONFIG in
  3915. [\\/]* | ?:[\\/]*)
  3916. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3917. ;;
  3918. *)
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3927. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3933. ;;
  3934. esac
  3935. fi
  3936. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3937. if test -n "$LIBGCRYPT_CONFIG"; then
  3938. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3939. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3940. else
  3941. echo "$as_me:$LINENO: result: no" >&5
  3942. echo "${ECHO_T}no" >&6
  3943. fi
  3944. tmp=1.2.2
  3945. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3946. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3947. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3948. else
  3949. req_libgcrypt_api=0
  3950. min_libgcrypt_version="$tmp"
  3951. fi
  3952. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3953. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3954. ok=no
  3955. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3956. req_major=`echo $min_libgcrypt_version | \
  3957. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3958. req_minor=`echo $min_libgcrypt_version | \
  3959. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3960. req_micro=`echo $min_libgcrypt_version | \
  3961. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3962. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3963. major=`echo $libgcrypt_config_version | \
  3964. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3965. minor=`echo $libgcrypt_config_version | \
  3966. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3967. micro=`echo $libgcrypt_config_version | \
  3968. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3969. if test "$major" -gt "$req_major"; then
  3970. ok=yes
  3971. else
  3972. if test "$major" -eq "$req_major"; then
  3973. if test "$minor" -gt "$req_minor"; then
  3974. ok=yes
  3975. else
  3976. if test "$minor" -eq "$req_minor"; then
  3977. if test "$micro" -ge "$req_micro"; then
  3978. ok=yes
  3979. fi
  3980. fi
  3981. fi
  3982. fi
  3983. fi
  3984. fi
  3985. if test $ok = yes; then
  3986. echo "$as_me:$LINENO: result: yes" >&5
  3987. echo "${ECHO_T}yes" >&6
  3988. else
  3989. echo "$as_me:$LINENO: result: no" >&5
  3990. echo "${ECHO_T}no" >&6
  3991. fi
  3992. if test $ok = yes; then
  3993. # If we have a recent libgcrypt, we should also check that the
  3994. # API is compatible
  3995. if test "$req_libgcrypt_api" -gt 0 ; then
  3996. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3997. if test "$tmp" -gt 0 ; then
  3998. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3999. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  4000. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4001. echo "$as_me:$LINENO: result: okay" >&5
  4002. echo "${ECHO_T}okay" >&6
  4003. else
  4004. ok=no
  4005. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4006. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  4007. fi
  4008. fi
  4009. fi
  4010. fi
  4011. if test $ok = yes; then
  4012. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4013. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4014. have_libgcrypt=yes
  4015. else
  4016. LIBGCRYPT_CFLAGS=""
  4017. LIBGCRYPT_LIBS=""
  4018. :
  4019. fi
  4020. if test "x$have_libgcrypt" = "xyes"; then
  4021. cat >>confdefs.h <<\_ACEOF
  4022. #define HAVE_LIBGCRYPT 1
  4023. _ACEOF
  4024. fi
  4025. fi
  4026. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4027. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4028. if test "${with_openssl_prefix+set}" = set; then
  4029. withval="$with_openssl_prefix"
  4030. openssl_prefix=$withval
  4031. else
  4032. openssl_prefix=""
  4033. fi;
  4034. if test "x$openssl_prefix" = "x"; then
  4035. openssl_prefix="/usr/local"
  4036. fi
  4037. openssl_prefix_lib=$openssl_prefix/lib
  4038. openssl_prefix_include=$openssl_prefix/include
  4039. LIBS_save=$LIBS
  4040. CPPFLAGS_save=$CPPFLAGS
  4041. LIBS="-L$openssl_prefix_lib $LIBS"
  4042. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4043. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4044. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4045. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4046. echo $ECHO_N "(cached) $ECHO_C" >&6
  4047. else
  4048. ac_check_lib_save_LIBS=$LIBS
  4049. LIBS="-lssl $LIBS"
  4050. cat >conftest.$ac_ext <<_ACEOF
  4051. /* confdefs.h. */
  4052. _ACEOF
  4053. cat confdefs.h >>conftest.$ac_ext
  4054. cat >>conftest.$ac_ext <<_ACEOF
  4055. /* end confdefs.h. */
  4056. /* Override any gcc2 internal prototype to avoid an error. */
  4057. #ifdef __cplusplus
  4058. extern "C"
  4059. #endif
  4060. /* We use char because int might match the return type of a gcc2
  4061. builtin and then its argument prototype would still apply. */
  4062. char SSL_library_init ();
  4063. int
  4064. main ()
  4065. {
  4066. SSL_library_init ();
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. rm -f conftest.$ac_objext conftest$ac_exeext
  4072. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4073. (eval $ac_link) 2>conftest.er1
  4074. ac_status=$?
  4075. grep -v '^ *+' conftest.er1 >conftest.err
  4076. rm -f conftest.er1
  4077. cat conftest.err >&5
  4078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079. (exit $ac_status); } &&
  4080. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4082. (eval $ac_try) 2>&5
  4083. ac_status=$?
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); }; } &&
  4086. { ac_try='test -s conftest$ac_exeext'
  4087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4088. (eval $ac_try) 2>&5
  4089. ac_status=$?
  4090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4091. (exit $ac_status); }; }; then
  4092. ac_cv_lib_ssl_SSL_library_init=yes
  4093. else
  4094. echo "$as_me: failed program was:" >&5
  4095. sed 's/^/| /' conftest.$ac_ext >&5
  4096. ac_cv_lib_ssl_SSL_library_init=no
  4097. fi
  4098. rm -f conftest.err conftest.$ac_objext \
  4099. conftest$ac_exeext conftest.$ac_ext
  4100. LIBS=$ac_check_lib_save_LIBS
  4101. fi
  4102. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4103. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4104. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4105. have_openssl=yes
  4106. fi
  4107. if test "x$have_openssl" = "xyes"; then
  4108. have_openssl=no
  4109. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4110. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4111. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4112. echo $ECHO_N "(cached) $ECHO_C" >&6
  4113. else
  4114. ac_check_lib_save_LIBS=$LIBS
  4115. LIBS="-lcrypto $LIBS"
  4116. cat >conftest.$ac_ext <<_ACEOF
  4117. /* confdefs.h. */
  4118. _ACEOF
  4119. cat confdefs.h >>conftest.$ac_ext
  4120. cat >>conftest.$ac_ext <<_ACEOF
  4121. /* end confdefs.h. */
  4122. int
  4123. main ()
  4124. {
  4125. main ();
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. rm -f conftest.$ac_objext conftest$ac_exeext
  4131. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4132. (eval $ac_link) 2>conftest.er1
  4133. ac_status=$?
  4134. grep -v '^ *+' conftest.er1 >conftest.err
  4135. rm -f conftest.er1
  4136. cat conftest.err >&5
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); } &&
  4139. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4141. (eval $ac_try) 2>&5
  4142. ac_status=$?
  4143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4144. (exit $ac_status); }; } &&
  4145. { ac_try='test -s conftest$ac_exeext'
  4146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4147. (eval $ac_try) 2>&5
  4148. ac_status=$?
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); }; }; then
  4151. ac_cv_lib_crypto_main=yes
  4152. else
  4153. echo "$as_me: failed program was:" >&5
  4154. sed 's/^/| /' conftest.$ac_ext >&5
  4155. ac_cv_lib_crypto_main=no
  4156. fi
  4157. rm -f conftest.err conftest.$ac_objext \
  4158. conftest$ac_exeext conftest.$ac_ext
  4159. LIBS=$ac_check_lib_save_LIBS
  4160. fi
  4161. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4162. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4163. if test $ac_cv_lib_crypto_main = yes; then
  4164. have_openssl=yes
  4165. fi
  4166. if test "x$have_openssl" = "xyes"; then
  4167. cat >>confdefs.h <<\_ACEOF
  4168. #define HAVE_LIBSSL 1
  4169. _ACEOF
  4170. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4171. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4172. fi
  4173. fi
  4174. LIBS=$LIBS_save
  4175. CPPFLAGS=$CPPFLAGS_save
  4176. fi
  4177. if test "x$with_libcares" = "xyes"; then
  4178. # Check whether --with-libcares-prefix or --without-libcares-prefix was given.
  4179. if test "${with_libcares_prefix+set}" = set; then
  4180. withval="$with_libcares_prefix"
  4181. libcares_prefix=$withval
  4182. else
  4183. libcares_prefix=""
  4184. fi;
  4185. if test "x$libcares_prefix" = "x"; then
  4186. libcares_prefix="/usr"
  4187. fi
  4188. libcares_prefix_lib=$libcares_prefix/lib
  4189. libcares_prefix_include=$libcares_prefix/include
  4190. LIBS_save=$LIBS
  4191. CPPFLAGS_save=$CPPFLAGS
  4192. LIBS="-L$libcares_prefix_lib $LIBS"
  4193. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4194. echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4195. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6
  4196. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4197. echo $ECHO_N "(cached) $ECHO_C" >&6
  4198. else
  4199. ac_check_lib_save_LIBS=$LIBS
  4200. LIBS="-lcares $LIBS"
  4201. cat >conftest.$ac_ext <<_ACEOF
  4202. /* confdefs.h. */
  4203. _ACEOF
  4204. cat confdefs.h >>conftest.$ac_ext
  4205. cat >>conftest.$ac_ext <<_ACEOF
  4206. /* end confdefs.h. */
  4207. /* Override any gcc2 internal prototype to avoid an error. */
  4208. #ifdef __cplusplus
  4209. extern "C"
  4210. #endif
  4211. /* We use char because int might match the return type of a gcc2
  4212. builtin and then its argument prototype would still apply. */
  4213. char ares_init ();
  4214. int
  4215. main ()
  4216. {
  4217. ares_init ();
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. rm -f conftest.$ac_objext conftest$ac_exeext
  4223. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4224. (eval $ac_link) 2>conftest.er1
  4225. ac_status=$?
  4226. grep -v '^ *+' conftest.er1 >conftest.err
  4227. rm -f conftest.er1
  4228. cat conftest.err >&5
  4229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4230. (exit $ac_status); } &&
  4231. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4233. (eval $ac_try) 2>&5
  4234. ac_status=$?
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); }; } &&
  4237. { ac_try='test -s conftest$ac_exeext'
  4238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4239. (eval $ac_try) 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); }; }; then
  4243. ac_cv_lib_cares_ares_init=yes
  4244. else
  4245. echo "$as_me: failed program was:" >&5
  4246. sed 's/^/| /' conftest.$ac_ext >&5
  4247. ac_cv_lib_cares_ares_init=no
  4248. fi
  4249. rm -f conftest.err conftest.$ac_objext \
  4250. conftest$ac_exeext conftest.$ac_ext
  4251. LIBS=$ac_check_lib_save_LIBS
  4252. fi
  4253. echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4254. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6
  4255. if test $ac_cv_lib_cares_ares_init = yes; then
  4256. have_libcares=yes
  4257. fi
  4258. if test "x$have_libcares" = "xyes"; then
  4259. cat >>confdefs.h <<\_ACEOF
  4260. #define HAVE_LIBCARES 1
  4261. _ACEOF
  4262. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4263. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4264. fi
  4265. LIBS=$LIBS_save
  4266. CPPFLAGS=$CPPFLAGS_save
  4267. fi
  4268. if test "x$have_libcares" = "x"; then
  4269. if test "x$with_libares" = "xyes"; then
  4270. # Check whether --with-libares-prefix or --without-libares-prefix was given.
  4271. if test "${with_libares_prefix+set}" = set; then
  4272. withval="$with_libares_prefix"
  4273. libares_prefix=$withval
  4274. else
  4275. libares_prefix=""
  4276. fi;
  4277. if test "x$libares_prefix" = "x"; then
  4278. libares_prefix="/usr"
  4279. fi
  4280. libares_prefix_lib=$libares_prefix/lib
  4281. libares_prefix_include=$libares_prefix/include
  4282. LIBS_save=$LIBS
  4283. CPPFLAGS_save=$CPPFLAGS
  4284. LIBS="-L$libares_prefix_lib $LIBS"
  4285. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4286. echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4287. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6
  4288. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4289. echo $ECHO_N "(cached) $ECHO_C" >&6
  4290. else
  4291. ac_check_lib_save_LIBS=$LIBS
  4292. LIBS="-lares $LIBS"
  4293. cat >conftest.$ac_ext <<_ACEOF
  4294. /* confdefs.h. */
  4295. _ACEOF
  4296. cat confdefs.h >>conftest.$ac_ext
  4297. cat >>conftest.$ac_ext <<_ACEOF
  4298. /* end confdefs.h. */
  4299. /* Override any gcc2 internal prototype to avoid an error. */
  4300. #ifdef __cplusplus
  4301. extern "C"
  4302. #endif
  4303. /* We use char because int might match the return type of a gcc2
  4304. builtin and then its argument prototype would still apply. */
  4305. char ares_init ();
  4306. int
  4307. main ()
  4308. {
  4309. ares_init ();
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. rm -f conftest.$ac_objext conftest$ac_exeext
  4315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4316. (eval $ac_link) 2>conftest.er1
  4317. ac_status=$?
  4318. grep -v '^ *+' conftest.er1 >conftest.err
  4319. rm -f conftest.er1
  4320. cat conftest.err >&5
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } &&
  4323. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; } &&
  4329. { ac_try='test -s conftest$ac_exeext'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; }; then
  4335. ac_cv_lib_ares_ares_init=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. ac_cv_lib_ares_ares_init=no
  4340. fi
  4341. rm -f conftest.err conftest.$ac_objext \
  4342. conftest$ac_exeext conftest.$ac_ext
  4343. LIBS=$ac_check_lib_save_LIBS
  4344. fi
  4345. echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4346. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6
  4347. if test $ac_cv_lib_ares_ares_init = yes; then
  4348. have_libares=yes
  4349. fi
  4350. if test "x$have_libares" = "xyes"; then
  4351. cat >>confdefs.h <<\_ACEOF
  4352. #define HAVE_LIBARES 1
  4353. _ACEOF
  4354. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4355. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4356. fi
  4357. LIBS=$LIBS_save
  4358. CPPFLAGS=$CPPFLAGS_save
  4359. fi
  4360. fi
  4361. # Define variables based on the result of the checks for libraries.
  4362. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4363. cat >>confdefs.h <<\_ACEOF
  4364. #define ENABLE_SSL 1
  4365. _ACEOF
  4366. fi
  4367. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4368. cat >>confdefs.h <<\_ACEOF
  4369. #define ENABLE_MESSAGE_DIGEST 1
  4370. _ACEOF
  4371. enable_message_digest=yes
  4372. fi
  4373. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4374. cat >>confdefs.h <<\_ACEOF
  4375. #define ENABLE_BITTORRENT 1
  4376. _ACEOF
  4377. if true; then
  4378. ENABLE_BITTORRENT_TRUE=
  4379. ENABLE_BITTORRENT_FALSE='#'
  4380. else
  4381. ENABLE_BITTORRENT_TRUE='#'
  4382. ENABLE_BITTORRENT_FALSE=
  4383. fi
  4384. else
  4385. if false; then
  4386. ENABLE_BITTORRENT_TRUE=
  4387. ENABLE_BITTORRENT_FALSE='#'
  4388. else
  4389. ENABLE_BITTORRENT_TRUE='#'
  4390. ENABLE_BITTORRENT_FALSE=
  4391. fi
  4392. fi
  4393. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4394. cat >>confdefs.h <<\_ACEOF
  4395. #define ENABLE_METALINK 1
  4396. _ACEOF
  4397. if true; then
  4398. ENABLE_METALINK_TRUE=
  4399. ENABLE_METALINK_FALSE='#'
  4400. else
  4401. ENABLE_METALINK_TRUE='#'
  4402. ENABLE_METALINK_FALSE=
  4403. fi
  4404. else
  4405. if false; then
  4406. ENABLE_METALINK_TRUE=
  4407. ENABLE_METALINK_FALSE='#'
  4408. else
  4409. ENABLE_METALINK_TRUE='#'
  4410. ENABLE_METALINK_FALSE=
  4411. fi
  4412. fi
  4413. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  4414. cat >>confdefs.h <<\_ACEOF
  4415. #define ENABLE_ASYNC_DNS 1
  4416. _ACEOF
  4417. if true; then
  4418. ENABLE_ASYNC_DNS_TRUE=
  4419. ENABLE_ASYNC_DNS_FALSE='#'
  4420. else
  4421. ENABLE_ASYNC_DNS_TRUE='#'
  4422. ENABLE_ASYNC_DNS_FALSE=
  4423. fi
  4424. else
  4425. if false; then
  4426. ENABLE_ASYNC_DNS_TRUE=
  4427. ENABLE_ASYNC_DNS_FALSE='#'
  4428. else
  4429. ENABLE_ASYNC_DNS_TRUE='#'
  4430. ENABLE_ASYNC_DNS_FALSE=
  4431. fi
  4432. fi
  4433. # Checks for header files.
  4434. ac_ext=c
  4435. ac_cpp='$CPP $CPPFLAGS'
  4436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4439. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4440. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4441. # On Suns, sometimes $CPP names a directory.
  4442. if test -n "$CPP" && test -d "$CPP"; then
  4443. CPP=
  4444. fi
  4445. if test -z "$CPP"; then
  4446. if test "${ac_cv_prog_CPP+set}" = set; then
  4447. echo $ECHO_N "(cached) $ECHO_C" >&6
  4448. else
  4449. # Double quotes because CPP needs to be expanded
  4450. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4451. do
  4452. ac_preproc_ok=false
  4453. for ac_c_preproc_warn_flag in '' yes
  4454. do
  4455. # Use a header file that comes with gcc, so configuring glibc
  4456. # with a fresh cross-compiler works.
  4457. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4458. # <limits.h> exists even on freestanding compilers.
  4459. # On the NeXT, cc -E runs the code through the compiler's parser,
  4460. # not just through cpp. "Syntax error" is here to catch this case.
  4461. cat >conftest.$ac_ext <<_ACEOF
  4462. /* confdefs.h. */
  4463. _ACEOF
  4464. cat confdefs.h >>conftest.$ac_ext
  4465. cat >>conftest.$ac_ext <<_ACEOF
  4466. /* end confdefs.h. */
  4467. #ifdef __STDC__
  4468. # include <limits.h>
  4469. #else
  4470. # include <assert.h>
  4471. #endif
  4472. Syntax error
  4473. _ACEOF
  4474. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4475. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4476. ac_status=$?
  4477. grep -v '^ *+' conftest.er1 >conftest.err
  4478. rm -f conftest.er1
  4479. cat conftest.err >&5
  4480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4481. (exit $ac_status); } >/dev/null; then
  4482. if test -s conftest.err; then
  4483. ac_cpp_err=$ac_c_preproc_warn_flag
  4484. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4485. else
  4486. ac_cpp_err=
  4487. fi
  4488. else
  4489. ac_cpp_err=yes
  4490. fi
  4491. if test -z "$ac_cpp_err"; then
  4492. :
  4493. else
  4494. echo "$as_me: failed program was:" >&5
  4495. sed 's/^/| /' conftest.$ac_ext >&5
  4496. # Broken: fails on valid input.
  4497. continue
  4498. fi
  4499. rm -f conftest.err conftest.$ac_ext
  4500. # OK, works on sane cases. Now check whether non-existent headers
  4501. # can be detected and how.
  4502. cat >conftest.$ac_ext <<_ACEOF
  4503. /* confdefs.h. */
  4504. _ACEOF
  4505. cat confdefs.h >>conftest.$ac_ext
  4506. cat >>conftest.$ac_ext <<_ACEOF
  4507. /* end confdefs.h. */
  4508. #include <ac_nonexistent.h>
  4509. _ACEOF
  4510. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4511. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4512. ac_status=$?
  4513. grep -v '^ *+' conftest.er1 >conftest.err
  4514. rm -f conftest.er1
  4515. cat conftest.err >&5
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); } >/dev/null; then
  4518. if test -s conftest.err; then
  4519. ac_cpp_err=$ac_c_preproc_warn_flag
  4520. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4521. else
  4522. ac_cpp_err=
  4523. fi
  4524. else
  4525. ac_cpp_err=yes
  4526. fi
  4527. if test -z "$ac_cpp_err"; then
  4528. # Broken: success on invalid input.
  4529. continue
  4530. else
  4531. echo "$as_me: failed program was:" >&5
  4532. sed 's/^/| /' conftest.$ac_ext >&5
  4533. # Passes both tests.
  4534. ac_preproc_ok=:
  4535. break
  4536. fi
  4537. rm -f conftest.err conftest.$ac_ext
  4538. done
  4539. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4540. rm -f conftest.err conftest.$ac_ext
  4541. if $ac_preproc_ok; then
  4542. break
  4543. fi
  4544. done
  4545. ac_cv_prog_CPP=$CPP
  4546. fi
  4547. CPP=$ac_cv_prog_CPP
  4548. else
  4549. ac_cv_prog_CPP=$CPP
  4550. fi
  4551. echo "$as_me:$LINENO: result: $CPP" >&5
  4552. echo "${ECHO_T}$CPP" >&6
  4553. ac_preproc_ok=false
  4554. for ac_c_preproc_warn_flag in '' yes
  4555. do
  4556. # Use a header file that comes with gcc, so configuring glibc
  4557. # with a fresh cross-compiler works.
  4558. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4559. # <limits.h> exists even on freestanding compilers.
  4560. # On the NeXT, cc -E runs the code through the compiler's parser,
  4561. # not just through cpp. "Syntax error" is here to catch this case.
  4562. cat >conftest.$ac_ext <<_ACEOF
  4563. /* confdefs.h. */
  4564. _ACEOF
  4565. cat confdefs.h >>conftest.$ac_ext
  4566. cat >>conftest.$ac_ext <<_ACEOF
  4567. /* end confdefs.h. */
  4568. #ifdef __STDC__
  4569. # include <limits.h>
  4570. #else
  4571. # include <assert.h>
  4572. #endif
  4573. Syntax error
  4574. _ACEOF
  4575. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4576. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4577. ac_status=$?
  4578. grep -v '^ *+' conftest.er1 >conftest.err
  4579. rm -f conftest.er1
  4580. cat conftest.err >&5
  4581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4582. (exit $ac_status); } >/dev/null; then
  4583. if test -s conftest.err; then
  4584. ac_cpp_err=$ac_c_preproc_warn_flag
  4585. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4586. else
  4587. ac_cpp_err=
  4588. fi
  4589. else
  4590. ac_cpp_err=yes
  4591. fi
  4592. if test -z "$ac_cpp_err"; then
  4593. :
  4594. else
  4595. echo "$as_me: failed program was:" >&5
  4596. sed 's/^/| /' conftest.$ac_ext >&5
  4597. # Broken: fails on valid input.
  4598. continue
  4599. fi
  4600. rm -f conftest.err conftest.$ac_ext
  4601. # OK, works on sane cases. Now check whether non-existent headers
  4602. # can be detected and how.
  4603. cat >conftest.$ac_ext <<_ACEOF
  4604. /* confdefs.h. */
  4605. _ACEOF
  4606. cat confdefs.h >>conftest.$ac_ext
  4607. cat >>conftest.$ac_ext <<_ACEOF
  4608. /* end confdefs.h. */
  4609. #include <ac_nonexistent.h>
  4610. _ACEOF
  4611. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4612. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4613. ac_status=$?
  4614. grep -v '^ *+' conftest.er1 >conftest.err
  4615. rm -f conftest.er1
  4616. cat conftest.err >&5
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); } >/dev/null; then
  4619. if test -s conftest.err; then
  4620. ac_cpp_err=$ac_c_preproc_warn_flag
  4621. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4622. else
  4623. ac_cpp_err=
  4624. fi
  4625. else
  4626. ac_cpp_err=yes
  4627. fi
  4628. if test -z "$ac_cpp_err"; then
  4629. # Broken: success on invalid input.
  4630. continue
  4631. else
  4632. echo "$as_me: failed program was:" >&5
  4633. sed 's/^/| /' conftest.$ac_ext >&5
  4634. # Passes both tests.
  4635. ac_preproc_ok=:
  4636. break
  4637. fi
  4638. rm -f conftest.err conftest.$ac_ext
  4639. done
  4640. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4641. rm -f conftest.err conftest.$ac_ext
  4642. if $ac_preproc_ok; then
  4643. :
  4644. else
  4645. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4646. See \`config.log' for more details." >&5
  4647. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4648. See \`config.log' for more details." >&2;}
  4649. { (exit 1); exit 1; }; }
  4650. fi
  4651. ac_ext=c
  4652. ac_cpp='$CPP $CPPFLAGS'
  4653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4656. echo "$as_me:$LINENO: checking for egrep" >&5
  4657. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4658. if test "${ac_cv_prog_egrep+set}" = set; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4662. then ac_cv_prog_egrep='grep -E'
  4663. else ac_cv_prog_egrep='egrep'
  4664. fi
  4665. fi
  4666. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4667. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4668. EGREP=$ac_cv_prog_egrep
  4669. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4670. # for constant arguments. Useless!
  4671. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4672. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4673. if test "${ac_cv_working_alloca_h+set}" = set; then
  4674. echo $ECHO_N "(cached) $ECHO_C" >&6
  4675. else
  4676. cat >conftest.$ac_ext <<_ACEOF
  4677. /* confdefs.h. */
  4678. _ACEOF
  4679. cat confdefs.h >>conftest.$ac_ext
  4680. cat >>conftest.$ac_ext <<_ACEOF
  4681. /* end confdefs.h. */
  4682. #include <alloca.h>
  4683. int
  4684. main ()
  4685. {
  4686. char *p = (char *) alloca (2 * sizeof (int));
  4687. ;
  4688. return 0;
  4689. }
  4690. _ACEOF
  4691. rm -f conftest.$ac_objext conftest$ac_exeext
  4692. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4693. (eval $ac_link) 2>conftest.er1
  4694. ac_status=$?
  4695. grep -v '^ *+' conftest.er1 >conftest.err
  4696. rm -f conftest.er1
  4697. cat conftest.err >&5
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); } &&
  4700. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4702. (eval $ac_try) 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; } &&
  4706. { ac_try='test -s conftest$ac_exeext'
  4707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4708. (eval $ac_try) 2>&5
  4709. ac_status=$?
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); }; }; then
  4712. ac_cv_working_alloca_h=yes
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. ac_cv_working_alloca_h=no
  4717. fi
  4718. rm -f conftest.err conftest.$ac_objext \
  4719. conftest$ac_exeext conftest.$ac_ext
  4720. fi
  4721. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4722. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4723. if test $ac_cv_working_alloca_h = yes; then
  4724. cat >>confdefs.h <<\_ACEOF
  4725. #define HAVE_ALLOCA_H 1
  4726. _ACEOF
  4727. fi
  4728. echo "$as_me:$LINENO: checking for alloca" >&5
  4729. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4730. if test "${ac_cv_func_alloca_works+set}" = set; then
  4731. echo $ECHO_N "(cached) $ECHO_C" >&6
  4732. else
  4733. cat >conftest.$ac_ext <<_ACEOF
  4734. /* confdefs.h. */
  4735. _ACEOF
  4736. cat confdefs.h >>conftest.$ac_ext
  4737. cat >>conftest.$ac_ext <<_ACEOF
  4738. /* end confdefs.h. */
  4739. #ifdef __GNUC__
  4740. # define alloca __builtin_alloca
  4741. #else
  4742. # ifdef _MSC_VER
  4743. # include <malloc.h>
  4744. # define alloca _alloca
  4745. # else
  4746. # if HAVE_ALLOCA_H
  4747. # include <alloca.h>
  4748. # else
  4749. # ifdef _AIX
  4750. #pragma alloca
  4751. # else
  4752. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4753. char *alloca ();
  4754. # endif
  4755. # endif
  4756. # endif
  4757. # endif
  4758. #endif
  4759. int
  4760. main ()
  4761. {
  4762. char *p = (char *) alloca (1);
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. rm -f conftest.$ac_objext conftest$ac_exeext
  4768. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4769. (eval $ac_link) 2>conftest.er1
  4770. ac_status=$?
  4771. grep -v '^ *+' conftest.er1 >conftest.err
  4772. rm -f conftest.er1
  4773. cat conftest.err >&5
  4774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); } &&
  4776. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4778. (eval $ac_try) 2>&5
  4779. ac_status=$?
  4780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4781. (exit $ac_status); }; } &&
  4782. { ac_try='test -s conftest$ac_exeext'
  4783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4784. (eval $ac_try) 2>&5
  4785. ac_status=$?
  4786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4787. (exit $ac_status); }; }; then
  4788. ac_cv_func_alloca_works=yes
  4789. else
  4790. echo "$as_me: failed program was:" >&5
  4791. sed 's/^/| /' conftest.$ac_ext >&5
  4792. ac_cv_func_alloca_works=no
  4793. fi
  4794. rm -f conftest.err conftest.$ac_objext \
  4795. conftest$ac_exeext conftest.$ac_ext
  4796. fi
  4797. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4798. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4799. if test $ac_cv_func_alloca_works = yes; then
  4800. cat >>confdefs.h <<\_ACEOF
  4801. #define HAVE_ALLOCA 1
  4802. _ACEOF
  4803. else
  4804. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4805. # that cause trouble. Some versions do not even contain alloca or
  4806. # contain a buggy version. If you still want to use their alloca,
  4807. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4808. ALLOCA=alloca.$ac_objext
  4809. cat >>confdefs.h <<\_ACEOF
  4810. #define C_ALLOCA 1
  4811. _ACEOF
  4812. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4813. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4814. if test "${ac_cv_os_cray+set}" = set; then
  4815. echo $ECHO_N "(cached) $ECHO_C" >&6
  4816. else
  4817. cat >conftest.$ac_ext <<_ACEOF
  4818. /* confdefs.h. */
  4819. _ACEOF
  4820. cat confdefs.h >>conftest.$ac_ext
  4821. cat >>conftest.$ac_ext <<_ACEOF
  4822. /* end confdefs.h. */
  4823. #if defined(CRAY) && ! defined(CRAY2)
  4824. webecray
  4825. #else
  4826. wenotbecray
  4827. #endif
  4828. _ACEOF
  4829. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4830. $EGREP "webecray" >/dev/null 2>&1; then
  4831. ac_cv_os_cray=yes
  4832. else
  4833. ac_cv_os_cray=no
  4834. fi
  4835. rm -f conftest*
  4836. fi
  4837. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4838. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4839. if test $ac_cv_os_cray = yes; then
  4840. for ac_func in _getb67 GETB67 getb67; do
  4841. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4842. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4843. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4844. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4845. echo $ECHO_N "(cached) $ECHO_C" >&6
  4846. else
  4847. cat >conftest.$ac_ext <<_ACEOF
  4848. /* confdefs.h. */
  4849. _ACEOF
  4850. cat confdefs.h >>conftest.$ac_ext
  4851. cat >>conftest.$ac_ext <<_ACEOF
  4852. /* end confdefs.h. */
  4853. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4854. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4855. #define $ac_func innocuous_$ac_func
  4856. /* System header to define __stub macros and hopefully few prototypes,
  4857. which can conflict with char $ac_func (); below.
  4858. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4859. <limits.h> exists even on freestanding compilers. */
  4860. #ifdef __STDC__
  4861. # include <limits.h>
  4862. #else
  4863. # include <assert.h>
  4864. #endif
  4865. #undef $ac_func
  4866. /* Override any gcc2 internal prototype to avoid an error. */
  4867. #ifdef __cplusplus
  4868. extern "C"
  4869. {
  4870. #endif
  4871. /* We use char because int might match the return type of a gcc2
  4872. builtin and then its argument prototype would still apply. */
  4873. char $ac_func ();
  4874. /* The GNU C library defines this for functions which it implements
  4875. to always fail with ENOSYS. Some functions are actually named
  4876. something starting with __ and the normal name is an alias. */
  4877. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4878. choke me
  4879. #else
  4880. char (*f) () = $ac_func;
  4881. #endif
  4882. #ifdef __cplusplus
  4883. }
  4884. #endif
  4885. int
  4886. main ()
  4887. {
  4888. return f != $ac_func;
  4889. ;
  4890. return 0;
  4891. }
  4892. _ACEOF
  4893. rm -f conftest.$ac_objext conftest$ac_exeext
  4894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4895. (eval $ac_link) 2>conftest.er1
  4896. ac_status=$?
  4897. grep -v '^ *+' conftest.er1 >conftest.err
  4898. rm -f conftest.er1
  4899. cat conftest.err >&5
  4900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4901. (exit $ac_status); } &&
  4902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4904. (eval $ac_try) 2>&5
  4905. ac_status=$?
  4906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907. (exit $ac_status); }; } &&
  4908. { ac_try='test -s conftest$ac_exeext'
  4909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4910. (eval $ac_try) 2>&5
  4911. ac_status=$?
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); }; }; then
  4914. eval "$as_ac_var=yes"
  4915. else
  4916. echo "$as_me: failed program was:" >&5
  4917. sed 's/^/| /' conftest.$ac_ext >&5
  4918. eval "$as_ac_var=no"
  4919. fi
  4920. rm -f conftest.err conftest.$ac_objext \
  4921. conftest$ac_exeext conftest.$ac_ext
  4922. fi
  4923. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4924. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4925. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4926. cat >>confdefs.h <<_ACEOF
  4927. #define CRAY_STACKSEG_END $ac_func
  4928. _ACEOF
  4929. break
  4930. fi
  4931. done
  4932. fi
  4933. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4934. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4935. if test "${ac_cv_c_stack_direction+set}" = set; then
  4936. echo $ECHO_N "(cached) $ECHO_C" >&6
  4937. else
  4938. if test "$cross_compiling" = yes; then
  4939. ac_cv_c_stack_direction=0
  4940. else
  4941. cat >conftest.$ac_ext <<_ACEOF
  4942. /* confdefs.h. */
  4943. _ACEOF
  4944. cat confdefs.h >>conftest.$ac_ext
  4945. cat >>conftest.$ac_ext <<_ACEOF
  4946. /* end confdefs.h. */
  4947. int
  4948. find_stack_direction ()
  4949. {
  4950. static char *addr = 0;
  4951. auto char dummy;
  4952. if (addr == 0)
  4953. {
  4954. addr = &dummy;
  4955. return find_stack_direction ();
  4956. }
  4957. else
  4958. return (&dummy > addr) ? 1 : -1;
  4959. }
  4960. int
  4961. main ()
  4962. {
  4963. exit (find_stack_direction () < 0);
  4964. }
  4965. _ACEOF
  4966. rm -f conftest$ac_exeext
  4967. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4968. (eval $ac_link) 2>&5
  4969. ac_status=$?
  4970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4971. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4973. (eval $ac_try) 2>&5
  4974. ac_status=$?
  4975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4976. (exit $ac_status); }; }; then
  4977. ac_cv_c_stack_direction=1
  4978. else
  4979. echo "$as_me: program exited with status $ac_status" >&5
  4980. echo "$as_me: failed program was:" >&5
  4981. sed 's/^/| /' conftest.$ac_ext >&5
  4982. ( exit $ac_status )
  4983. ac_cv_c_stack_direction=-1
  4984. fi
  4985. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4986. fi
  4987. fi
  4988. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4989. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4990. cat >>confdefs.h <<_ACEOF
  4991. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4992. _ACEOF
  4993. fi
  4994. #AC_HEADER_STDC
  4995. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4996. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4997. if test "${ac_cv_header_stdc+set}" = set; then
  4998. echo $ECHO_N "(cached) $ECHO_C" >&6
  4999. else
  5000. cat >conftest.$ac_ext <<_ACEOF
  5001. /* confdefs.h. */
  5002. _ACEOF
  5003. cat confdefs.h >>conftest.$ac_ext
  5004. cat >>conftest.$ac_ext <<_ACEOF
  5005. /* end confdefs.h. */
  5006. #include <stdlib.h>
  5007. #include <stdarg.h>
  5008. #include <string.h>
  5009. #include <float.h>
  5010. int
  5011. main ()
  5012. {
  5013. ;
  5014. return 0;
  5015. }
  5016. _ACEOF
  5017. rm -f conftest.$ac_objext
  5018. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5019. (eval $ac_compile) 2>conftest.er1
  5020. ac_status=$?
  5021. grep -v '^ *+' conftest.er1 >conftest.err
  5022. rm -f conftest.er1
  5023. cat conftest.err >&5
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); } &&
  5026. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5028. (eval $ac_try) 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }; } &&
  5032. { ac_try='test -s conftest.$ac_objext'
  5033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5034. (eval $ac_try) 2>&5
  5035. ac_status=$?
  5036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5037. (exit $ac_status); }; }; then
  5038. ac_cv_header_stdc=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. ac_cv_header_stdc=no
  5043. fi
  5044. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. if test $ac_cv_header_stdc = yes; then
  5046. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5047. cat >conftest.$ac_ext <<_ACEOF
  5048. /* confdefs.h. */
  5049. _ACEOF
  5050. cat confdefs.h >>conftest.$ac_ext
  5051. cat >>conftest.$ac_ext <<_ACEOF
  5052. /* end confdefs.h. */
  5053. #include <string.h>
  5054. _ACEOF
  5055. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5056. $EGREP "memchr" >/dev/null 2>&1; then
  5057. :
  5058. else
  5059. ac_cv_header_stdc=no
  5060. fi
  5061. rm -f conftest*
  5062. fi
  5063. if test $ac_cv_header_stdc = yes; then
  5064. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5065. cat >conftest.$ac_ext <<_ACEOF
  5066. /* confdefs.h. */
  5067. _ACEOF
  5068. cat confdefs.h >>conftest.$ac_ext
  5069. cat >>conftest.$ac_ext <<_ACEOF
  5070. /* end confdefs.h. */
  5071. #include <stdlib.h>
  5072. _ACEOF
  5073. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5074. $EGREP "free" >/dev/null 2>&1; then
  5075. :
  5076. else
  5077. ac_cv_header_stdc=no
  5078. fi
  5079. rm -f conftest*
  5080. fi
  5081. if test $ac_cv_header_stdc = yes; then
  5082. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5083. if test "$cross_compiling" = yes; then
  5084. :
  5085. else
  5086. cat >conftest.$ac_ext <<_ACEOF
  5087. /* confdefs.h. */
  5088. _ACEOF
  5089. cat confdefs.h >>conftest.$ac_ext
  5090. cat >>conftest.$ac_ext <<_ACEOF
  5091. /* end confdefs.h. */
  5092. #include <ctype.h>
  5093. #if ((' ' & 0x0FF) == 0x020)
  5094. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5095. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5096. #else
  5097. # define ISLOWER(c) \
  5098. (('a' <= (c) && (c) <= 'i') \
  5099. || ('j' <= (c) && (c) <= 'r') \
  5100. || ('s' <= (c) && (c) <= 'z'))
  5101. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5102. #endif
  5103. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5104. int
  5105. main ()
  5106. {
  5107. int i;
  5108. for (i = 0; i < 256; i++)
  5109. if (XOR (islower (i), ISLOWER (i))
  5110. || toupper (i) != TOUPPER (i))
  5111. exit(2);
  5112. exit (0);
  5113. }
  5114. _ACEOF
  5115. rm -f conftest$ac_exeext
  5116. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5117. (eval $ac_link) 2>&5
  5118. ac_status=$?
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5122. (eval $ac_try) 2>&5
  5123. ac_status=$?
  5124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5125. (exit $ac_status); }; }; then
  5126. :
  5127. else
  5128. echo "$as_me: program exited with status $ac_status" >&5
  5129. echo "$as_me: failed program was:" >&5
  5130. sed 's/^/| /' conftest.$ac_ext >&5
  5131. ( exit $ac_status )
  5132. ac_cv_header_stdc=no
  5133. fi
  5134. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5135. fi
  5136. fi
  5137. fi
  5138. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5139. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5140. if test $ac_cv_header_stdc = yes; then
  5141. cat >>confdefs.h <<\_ACEOF
  5142. #define STDC_HEADERS 1
  5143. _ACEOF
  5144. fi
  5145. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5146. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5147. inttypes.h stdint.h unistd.h
  5148. do
  5149. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5150. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5152. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5153. echo $ECHO_N "(cached) $ECHO_C" >&6
  5154. else
  5155. cat >conftest.$ac_ext <<_ACEOF
  5156. /* confdefs.h. */
  5157. _ACEOF
  5158. cat confdefs.h >>conftest.$ac_ext
  5159. cat >>conftest.$ac_ext <<_ACEOF
  5160. /* end confdefs.h. */
  5161. $ac_includes_default
  5162. #include <$ac_header>
  5163. _ACEOF
  5164. rm -f conftest.$ac_objext
  5165. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5166. (eval $ac_compile) 2>conftest.er1
  5167. ac_status=$?
  5168. grep -v '^ *+' conftest.er1 >conftest.err
  5169. rm -f conftest.er1
  5170. cat conftest.err >&5
  5171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5172. (exit $ac_status); } &&
  5173. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5175. (eval $ac_try) 2>&5
  5176. ac_status=$?
  5177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5178. (exit $ac_status); }; } &&
  5179. { ac_try='test -s conftest.$ac_objext'
  5180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5181. (eval $ac_try) 2>&5
  5182. ac_status=$?
  5183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5184. (exit $ac_status); }; }; then
  5185. eval "$as_ac_Header=yes"
  5186. else
  5187. echo "$as_me: failed program was:" >&5
  5188. sed 's/^/| /' conftest.$ac_ext >&5
  5189. eval "$as_ac_Header=no"
  5190. fi
  5191. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5192. fi
  5193. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5194. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5195. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5196. cat >>confdefs.h <<_ACEOF
  5197. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5198. _ACEOF
  5199. fi
  5200. done
  5201. 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
  5202. do
  5203. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5204. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5205. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5206. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5207. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5208. echo $ECHO_N "(cached) $ECHO_C" >&6
  5209. fi
  5210. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5211. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5212. else
  5213. # Is the header compilable?
  5214. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5215. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5216. cat >conftest.$ac_ext <<_ACEOF
  5217. /* confdefs.h. */
  5218. _ACEOF
  5219. cat confdefs.h >>conftest.$ac_ext
  5220. cat >>conftest.$ac_ext <<_ACEOF
  5221. /* end confdefs.h. */
  5222. $ac_includes_default
  5223. #include <$ac_header>
  5224. _ACEOF
  5225. rm -f conftest.$ac_objext
  5226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5227. (eval $ac_compile) 2>conftest.er1
  5228. ac_status=$?
  5229. grep -v '^ *+' conftest.er1 >conftest.err
  5230. rm -f conftest.er1
  5231. cat conftest.err >&5
  5232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); } &&
  5234. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5236. (eval $ac_try) 2>&5
  5237. ac_status=$?
  5238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5239. (exit $ac_status); }; } &&
  5240. { ac_try='test -s conftest.$ac_objext'
  5241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5242. (eval $ac_try) 2>&5
  5243. ac_status=$?
  5244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5245. (exit $ac_status); }; }; then
  5246. ac_header_compiler=yes
  5247. else
  5248. echo "$as_me: failed program was:" >&5
  5249. sed 's/^/| /' conftest.$ac_ext >&5
  5250. ac_header_compiler=no
  5251. fi
  5252. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5253. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5254. echo "${ECHO_T}$ac_header_compiler" >&6
  5255. # Is the header present?
  5256. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5257. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5258. cat >conftest.$ac_ext <<_ACEOF
  5259. /* confdefs.h. */
  5260. _ACEOF
  5261. cat confdefs.h >>conftest.$ac_ext
  5262. cat >>conftest.$ac_ext <<_ACEOF
  5263. /* end confdefs.h. */
  5264. #include <$ac_header>
  5265. _ACEOF
  5266. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5267. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5268. ac_status=$?
  5269. grep -v '^ *+' conftest.er1 >conftest.err
  5270. rm -f conftest.er1
  5271. cat conftest.err >&5
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); } >/dev/null; then
  5274. if test -s conftest.err; then
  5275. ac_cpp_err=$ac_c_preproc_warn_flag
  5276. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5277. else
  5278. ac_cpp_err=
  5279. fi
  5280. else
  5281. ac_cpp_err=yes
  5282. fi
  5283. if test -z "$ac_cpp_err"; then
  5284. ac_header_preproc=yes
  5285. else
  5286. echo "$as_me: failed program was:" >&5
  5287. sed 's/^/| /' conftest.$ac_ext >&5
  5288. ac_header_preproc=no
  5289. fi
  5290. rm -f conftest.err conftest.$ac_ext
  5291. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5292. echo "${ECHO_T}$ac_header_preproc" >&6
  5293. # So? What about this header?
  5294. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5295. yes:no: )
  5296. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5297. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5299. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5300. ac_header_preproc=yes
  5301. ;;
  5302. no:yes:* )
  5303. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5304. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5305. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5306. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5307. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5308. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5309. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5310. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5311. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5312. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5313. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5314. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5315. (
  5316. cat <<\_ASBOX
  5317. ## ----------------------------------- ##
  5318. ## Report this to tujikawa@rednoah.com ##
  5319. ## ----------------------------------- ##
  5320. _ASBOX
  5321. ) |
  5322. sed "s/^/$as_me: WARNING: /" >&2
  5323. ;;
  5324. esac
  5325. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5328. echo $ECHO_N "(cached) $ECHO_C" >&6
  5329. else
  5330. eval "$as_ac_Header=\$ac_header_preproc"
  5331. fi
  5332. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5333. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5334. fi
  5335. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5336. cat >>confdefs.h <<_ACEOF
  5337. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5338. _ACEOF
  5339. fi
  5340. done
  5341. # Checks for typedefs, structures, and compiler characteristics.
  5342. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5343. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5344. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5345. echo $ECHO_N "(cached) $ECHO_C" >&6
  5346. else
  5347. cat >conftest.$ac_ext <<_ACEOF
  5348. /* confdefs.h. */
  5349. _ACEOF
  5350. cat confdefs.h >>conftest.$ac_ext
  5351. cat >>conftest.$ac_ext <<_ACEOF
  5352. /* end confdefs.h. */
  5353. #include <stdbool.h>
  5354. #ifndef bool
  5355. # error bool is not defined
  5356. #endif
  5357. #ifndef false
  5358. # error false is not defined
  5359. #endif
  5360. #if false
  5361. # error false is not 0
  5362. #endif
  5363. #ifndef true
  5364. # error true is not defined
  5365. #endif
  5366. #if true != 1
  5367. # error true is not 1
  5368. #endif
  5369. #ifndef __bool_true_false_are_defined
  5370. # error __bool_true_false_are_defined is not defined
  5371. #endif
  5372. struct s { _Bool s: 1; _Bool t; } s;
  5373. char a[true == 1 ? 1 : -1];
  5374. char b[false == 0 ? 1 : -1];
  5375. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5376. char d[(bool) -0.5 == true ? 1 : -1];
  5377. bool e = &s;
  5378. char f[(_Bool) -0.0 == false ? 1 : -1];
  5379. char g[true];
  5380. char h[sizeof (_Bool)];
  5381. char i[sizeof s.t];
  5382. int
  5383. main ()
  5384. {
  5385. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. rm -f conftest.$ac_objext
  5391. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5392. (eval $ac_compile) 2>conftest.er1
  5393. ac_status=$?
  5394. grep -v '^ *+' conftest.er1 >conftest.err
  5395. rm -f conftest.er1
  5396. cat conftest.err >&5
  5397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5398. (exit $ac_status); } &&
  5399. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5401. (eval $ac_try) 2>&5
  5402. ac_status=$?
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); }; } &&
  5405. { ac_try='test -s conftest.$ac_objext'
  5406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5407. (eval $ac_try) 2>&5
  5408. ac_status=$?
  5409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); }; }; then
  5411. ac_cv_header_stdbool_h=yes
  5412. else
  5413. echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. ac_cv_header_stdbool_h=no
  5416. fi
  5417. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5418. fi
  5419. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5420. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5421. echo "$as_me:$LINENO: checking for _Bool" >&5
  5422. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5423. if test "${ac_cv_type__Bool+set}" = set; then
  5424. echo $ECHO_N "(cached) $ECHO_C" >&6
  5425. else
  5426. cat >conftest.$ac_ext <<_ACEOF
  5427. /* confdefs.h. */
  5428. _ACEOF
  5429. cat confdefs.h >>conftest.$ac_ext
  5430. cat >>conftest.$ac_ext <<_ACEOF
  5431. /* end confdefs.h. */
  5432. $ac_includes_default
  5433. int
  5434. main ()
  5435. {
  5436. if ((_Bool *) 0)
  5437. return 0;
  5438. if (sizeof (_Bool))
  5439. return 0;
  5440. ;
  5441. return 0;
  5442. }
  5443. _ACEOF
  5444. rm -f conftest.$ac_objext
  5445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5446. (eval $ac_compile) 2>conftest.er1
  5447. ac_status=$?
  5448. grep -v '^ *+' conftest.er1 >conftest.err
  5449. rm -f conftest.er1
  5450. cat conftest.err >&5
  5451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5452. (exit $ac_status); } &&
  5453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5455. (eval $ac_try) 2>&5
  5456. ac_status=$?
  5457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5458. (exit $ac_status); }; } &&
  5459. { ac_try='test -s conftest.$ac_objext'
  5460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5461. (eval $ac_try) 2>&5
  5462. ac_status=$?
  5463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5464. (exit $ac_status); }; }; then
  5465. ac_cv_type__Bool=yes
  5466. else
  5467. echo "$as_me: failed program was:" >&5
  5468. sed 's/^/| /' conftest.$ac_ext >&5
  5469. ac_cv_type__Bool=no
  5470. fi
  5471. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5472. fi
  5473. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5474. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5475. if test $ac_cv_type__Bool = yes; then
  5476. cat >>confdefs.h <<_ACEOF
  5477. #define HAVE__BOOL 1
  5478. _ACEOF
  5479. fi
  5480. if test $ac_cv_header_stdbool_h = yes; then
  5481. cat >>confdefs.h <<\_ACEOF
  5482. #define HAVE_STDBOOL_H 1
  5483. _ACEOF
  5484. fi
  5485. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5486. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5487. if test "${ac_cv_c_const+set}" = set; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. cat >conftest.$ac_ext <<_ACEOF
  5491. /* confdefs.h. */
  5492. _ACEOF
  5493. cat confdefs.h >>conftest.$ac_ext
  5494. cat >>conftest.$ac_ext <<_ACEOF
  5495. /* end confdefs.h. */
  5496. int
  5497. main ()
  5498. {
  5499. /* FIXME: Include the comments suggested by Paul. */
  5500. #ifndef __cplusplus
  5501. /* Ultrix mips cc rejects this. */
  5502. typedef int charset[2];
  5503. const charset x;
  5504. /* SunOS 4.1.1 cc rejects this. */
  5505. char const *const *ccp;
  5506. char **p;
  5507. /* NEC SVR4.0.2 mips cc rejects this. */
  5508. struct point {int x, y;};
  5509. static struct point const zero = {0,0};
  5510. /* AIX XL C 1.02.0.0 rejects this.
  5511. It does not let you subtract one const X* pointer from another in
  5512. an arm of an if-expression whose if-part is not a constant
  5513. expression */
  5514. const char *g = "string";
  5515. ccp = &g + (g ? g-g : 0);
  5516. /* HPUX 7.0 cc rejects these. */
  5517. ++ccp;
  5518. p = (char**) ccp;
  5519. ccp = (char const *const *) p;
  5520. { /* SCO 3.2v4 cc rejects this. */
  5521. char *t;
  5522. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5523. *t++ = 0;
  5524. }
  5525. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5526. int x[] = {25, 17};
  5527. const int *foo = &x[0];
  5528. ++foo;
  5529. }
  5530. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5531. typedef const int *iptr;
  5532. iptr p = 0;
  5533. ++p;
  5534. }
  5535. { /* AIX XL C 1.02.0.0 rejects this saying
  5536. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5537. struct s { int j; const int *ap[3]; };
  5538. struct s *b; b->j = 5;
  5539. }
  5540. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5541. const int foo = 10;
  5542. }
  5543. #endif
  5544. ;
  5545. return 0;
  5546. }
  5547. _ACEOF
  5548. rm -f conftest.$ac_objext
  5549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5550. (eval $ac_compile) 2>conftest.er1
  5551. ac_status=$?
  5552. grep -v '^ *+' conftest.er1 >conftest.err
  5553. rm -f conftest.er1
  5554. cat conftest.err >&5
  5555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5556. (exit $ac_status); } &&
  5557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5559. (eval $ac_try) 2>&5
  5560. ac_status=$?
  5561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. (exit $ac_status); }; } &&
  5563. { ac_try='test -s conftest.$ac_objext'
  5564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5565. (eval $ac_try) 2>&5
  5566. ac_status=$?
  5567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5568. (exit $ac_status); }; }; then
  5569. ac_cv_c_const=yes
  5570. else
  5571. echo "$as_me: failed program was:" >&5
  5572. sed 's/^/| /' conftest.$ac_ext >&5
  5573. ac_cv_c_const=no
  5574. fi
  5575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5576. fi
  5577. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5578. echo "${ECHO_T}$ac_cv_c_const" >&6
  5579. if test $ac_cv_c_const = no; then
  5580. cat >>confdefs.h <<\_ACEOF
  5581. #define const
  5582. _ACEOF
  5583. fi
  5584. echo "$as_me:$LINENO: checking for inline" >&5
  5585. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5586. if test "${ac_cv_c_inline+set}" = set; then
  5587. echo $ECHO_N "(cached) $ECHO_C" >&6
  5588. else
  5589. ac_cv_c_inline=no
  5590. for ac_kw in inline __inline__ __inline; do
  5591. cat >conftest.$ac_ext <<_ACEOF
  5592. /* confdefs.h. */
  5593. _ACEOF
  5594. cat confdefs.h >>conftest.$ac_ext
  5595. cat >>conftest.$ac_ext <<_ACEOF
  5596. /* end confdefs.h. */
  5597. #ifndef __cplusplus
  5598. typedef int foo_t;
  5599. static $ac_kw foo_t static_foo () {return 0; }
  5600. $ac_kw foo_t foo () {return 0; }
  5601. #endif
  5602. _ACEOF
  5603. rm -f conftest.$ac_objext
  5604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5605. (eval $ac_compile) 2>conftest.er1
  5606. ac_status=$?
  5607. grep -v '^ *+' conftest.er1 >conftest.err
  5608. rm -f conftest.er1
  5609. cat conftest.err >&5
  5610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611. (exit $ac_status); } &&
  5612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5614. (eval $ac_try) 2>&5
  5615. ac_status=$?
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); }; } &&
  5618. { ac_try='test -s conftest.$ac_objext'
  5619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5620. (eval $ac_try) 2>&5
  5621. ac_status=$?
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); }; }; then
  5624. ac_cv_c_inline=$ac_kw; break
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. fi
  5629. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5630. done
  5631. fi
  5632. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5633. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5634. case $ac_cv_c_inline in
  5635. inline | yes) ;;
  5636. *)
  5637. case $ac_cv_c_inline in
  5638. no) ac_val=;;
  5639. *) ac_val=$ac_cv_c_inline;;
  5640. esac
  5641. cat >>confdefs.h <<_ACEOF
  5642. #ifndef __cplusplus
  5643. #define inline $ac_val
  5644. #endif
  5645. _ACEOF
  5646. ;;
  5647. esac
  5648. echo "$as_me:$LINENO: checking for size_t" >&5
  5649. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5650. if test "${ac_cv_type_size_t+set}" = set; then
  5651. echo $ECHO_N "(cached) $ECHO_C" >&6
  5652. else
  5653. cat >conftest.$ac_ext <<_ACEOF
  5654. /* confdefs.h. */
  5655. _ACEOF
  5656. cat confdefs.h >>conftest.$ac_ext
  5657. cat >>conftest.$ac_ext <<_ACEOF
  5658. /* end confdefs.h. */
  5659. $ac_includes_default
  5660. int
  5661. main ()
  5662. {
  5663. if ((size_t *) 0)
  5664. return 0;
  5665. if (sizeof (size_t))
  5666. return 0;
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext
  5672. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5673. (eval $ac_compile) 2>conftest.er1
  5674. ac_status=$?
  5675. grep -v '^ *+' conftest.er1 >conftest.err
  5676. rm -f conftest.er1
  5677. cat conftest.err >&5
  5678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5679. (exit $ac_status); } &&
  5680. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5682. (eval $ac_try) 2>&5
  5683. ac_status=$?
  5684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5685. (exit $ac_status); }; } &&
  5686. { ac_try='test -s conftest.$ac_objext'
  5687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5688. (eval $ac_try) 2>&5
  5689. ac_status=$?
  5690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5691. (exit $ac_status); }; }; then
  5692. ac_cv_type_size_t=yes
  5693. else
  5694. echo "$as_me: failed program was:" >&5
  5695. sed 's/^/| /' conftest.$ac_ext >&5
  5696. ac_cv_type_size_t=no
  5697. fi
  5698. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5699. fi
  5700. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5701. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5702. if test $ac_cv_type_size_t = yes; then
  5703. :
  5704. else
  5705. cat >>confdefs.h <<_ACEOF
  5706. #define size_t unsigned
  5707. _ACEOF
  5708. fi
  5709. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5710. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5711. if test "${ac_cv_header_time+set}" = set; then
  5712. echo $ECHO_N "(cached) $ECHO_C" >&6
  5713. else
  5714. cat >conftest.$ac_ext <<_ACEOF
  5715. /* confdefs.h. */
  5716. _ACEOF
  5717. cat confdefs.h >>conftest.$ac_ext
  5718. cat >>conftest.$ac_ext <<_ACEOF
  5719. /* end confdefs.h. */
  5720. #include <sys/types.h>
  5721. #include <sys/time.h>
  5722. #include <time.h>
  5723. int
  5724. main ()
  5725. {
  5726. if ((struct tm *) 0)
  5727. return 0;
  5728. ;
  5729. return 0;
  5730. }
  5731. _ACEOF
  5732. rm -f conftest.$ac_objext
  5733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5734. (eval $ac_compile) 2>conftest.er1
  5735. ac_status=$?
  5736. grep -v '^ *+' conftest.er1 >conftest.err
  5737. rm -f conftest.er1
  5738. cat conftest.err >&5
  5739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5740. (exit $ac_status); } &&
  5741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5743. (eval $ac_try) 2>&5
  5744. ac_status=$?
  5745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5746. (exit $ac_status); }; } &&
  5747. { ac_try='test -s conftest.$ac_objext'
  5748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5749. (eval $ac_try) 2>&5
  5750. ac_status=$?
  5751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752. (exit $ac_status); }; }; then
  5753. ac_cv_header_time=yes
  5754. else
  5755. echo "$as_me: failed program was:" >&5
  5756. sed 's/^/| /' conftest.$ac_ext >&5
  5757. ac_cv_header_time=no
  5758. fi
  5759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5760. fi
  5761. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5762. echo "${ECHO_T}$ac_cv_header_time" >&6
  5763. if test $ac_cv_header_time = yes; then
  5764. cat >>confdefs.h <<\_ACEOF
  5765. #define TIME_WITH_SYS_TIME 1
  5766. _ACEOF
  5767. fi
  5768. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5769. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5770. if test "${ac_cv_struct_tm+set}" = set; then
  5771. echo $ECHO_N "(cached) $ECHO_C" >&6
  5772. else
  5773. cat >conftest.$ac_ext <<_ACEOF
  5774. /* confdefs.h. */
  5775. _ACEOF
  5776. cat confdefs.h >>conftest.$ac_ext
  5777. cat >>conftest.$ac_ext <<_ACEOF
  5778. /* end confdefs.h. */
  5779. #include <sys/types.h>
  5780. #include <time.h>
  5781. int
  5782. main ()
  5783. {
  5784. struct tm *tp; tp->tm_sec;
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. rm -f conftest.$ac_objext
  5790. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5791. (eval $ac_compile) 2>conftest.er1
  5792. ac_status=$?
  5793. grep -v '^ *+' conftest.er1 >conftest.err
  5794. rm -f conftest.er1
  5795. cat conftest.err >&5
  5796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. (exit $ac_status); } &&
  5798. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5800. (eval $ac_try) 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }; } &&
  5804. { ac_try='test -s conftest.$ac_objext'
  5805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5806. (eval $ac_try) 2>&5
  5807. ac_status=$?
  5808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809. (exit $ac_status); }; }; then
  5810. ac_cv_struct_tm=time.h
  5811. else
  5812. echo "$as_me: failed program was:" >&5
  5813. sed 's/^/| /' conftest.$ac_ext >&5
  5814. ac_cv_struct_tm=sys/time.h
  5815. fi
  5816. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5817. fi
  5818. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5819. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5820. if test $ac_cv_struct_tm = sys/time.h; then
  5821. cat >>confdefs.h <<\_ACEOF
  5822. #define TM_IN_SYS_TIME 1
  5823. _ACEOF
  5824. fi
  5825. echo "$as_me:$LINENO: checking for working volatile" >&5
  5826. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5827. if test "${ac_cv_c_volatile+set}" = set; then
  5828. echo $ECHO_N "(cached) $ECHO_C" >&6
  5829. else
  5830. cat >conftest.$ac_ext <<_ACEOF
  5831. /* confdefs.h. */
  5832. _ACEOF
  5833. cat confdefs.h >>conftest.$ac_ext
  5834. cat >>conftest.$ac_ext <<_ACEOF
  5835. /* end confdefs.h. */
  5836. int
  5837. main ()
  5838. {
  5839. volatile int x;
  5840. int * volatile y;
  5841. ;
  5842. return 0;
  5843. }
  5844. _ACEOF
  5845. rm -f conftest.$ac_objext
  5846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5847. (eval $ac_compile) 2>conftest.er1
  5848. ac_status=$?
  5849. grep -v '^ *+' conftest.er1 >conftest.err
  5850. rm -f conftest.er1
  5851. cat conftest.err >&5
  5852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); } &&
  5854. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5856. (eval $ac_try) 2>&5
  5857. ac_status=$?
  5858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5859. (exit $ac_status); }; } &&
  5860. { ac_try='test -s conftest.$ac_objext'
  5861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5862. (eval $ac_try) 2>&5
  5863. ac_status=$?
  5864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5865. (exit $ac_status); }; }; then
  5866. ac_cv_c_volatile=yes
  5867. else
  5868. echo "$as_me: failed program was:" >&5
  5869. sed 's/^/| /' conftest.$ac_ext >&5
  5870. ac_cv_c_volatile=no
  5871. fi
  5872. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5873. fi
  5874. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5875. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5876. if test $ac_cv_c_volatile = no; then
  5877. cat >>confdefs.h <<\_ACEOF
  5878. #define volatile
  5879. _ACEOF
  5880. fi
  5881. # Checks for library functions.
  5882. MKINSTALLDIRS=
  5883. if test -n "$ac_aux_dir"; then
  5884. case "$ac_aux_dir" in
  5885. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5886. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5887. esac
  5888. fi
  5889. if test -z "$MKINSTALLDIRS"; then
  5890. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5891. fi
  5892. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5893. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5894. # Check whether --enable-nls or --disable-nls was given.
  5895. if test "${enable_nls+set}" = set; then
  5896. enableval="$enable_nls"
  5897. USE_NLS=$enableval
  5898. else
  5899. USE_NLS=yes
  5900. fi;
  5901. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5902. echo "${ECHO_T}$USE_NLS" >&6
  5903. # Prepare PATH_SEPARATOR.
  5904. # The user is always right.
  5905. if test "${PATH_SEPARATOR+set}" != set; then
  5906. echo "#! /bin/sh" >conf$$.sh
  5907. echo "exit 0" >>conf$$.sh
  5908. chmod +x conf$$.sh
  5909. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5910. PATH_SEPARATOR=';'
  5911. else
  5912. PATH_SEPARATOR=:
  5913. fi
  5914. rm -f conf$$.sh
  5915. fi
  5916. # Find out how to test for executable files. Don't use a zero-byte file,
  5917. # as systems may use methods other than mode bits to determine executability.
  5918. cat >conf$$.file <<_ASEOF
  5919. #! /bin/sh
  5920. exit 0
  5921. _ASEOF
  5922. chmod +x conf$$.file
  5923. if test -x conf$$.file >/dev/null 2>&1; then
  5924. ac_executable_p="test -x"
  5925. else
  5926. ac_executable_p="test -f"
  5927. fi
  5928. rm -f conf$$.file
  5929. # Extract the first word of "msgfmt", so it can be a program name with args.
  5930. set dummy msgfmt; ac_word=$2
  5931. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5932. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5933. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5934. echo $ECHO_N "(cached) $ECHO_C" >&6
  5935. else
  5936. case "$MSGFMT" in
  5937. [\\/]* | ?:[\\/]*)
  5938. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5939. ;;
  5940. *)
  5941. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5942. for ac_dir in $PATH; do
  5943. IFS="$ac_save_IFS"
  5944. test -z "$ac_dir" && ac_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5947. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5948. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5949. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5950. break 2
  5951. fi
  5952. fi
  5953. done
  5954. done
  5955. IFS="$ac_save_IFS"
  5956. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5957. ;;
  5958. esac
  5959. fi
  5960. MSGFMT="$ac_cv_path_MSGFMT"
  5961. if test "$MSGFMT" != ":"; then
  5962. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5963. echo "${ECHO_T}$MSGFMT" >&6
  5964. else
  5965. echo "$as_me:$LINENO: result: no" >&5
  5966. echo "${ECHO_T}no" >&6
  5967. fi
  5968. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5969. set dummy gmsgfmt; ac_word=$2
  5970. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5972. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5973. echo $ECHO_N "(cached) $ECHO_C" >&6
  5974. else
  5975. case $GMSGFMT in
  5976. [\\/]* | ?:[\\/]*)
  5977. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5978. ;;
  5979. *)
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983. IFS=$as_save_IFS
  5984. test -z "$as_dir" && as_dir=.
  5985. for ac_exec_ext in '' $ac_executable_extensions; do
  5986. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5987. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5988. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989. break 2
  5990. fi
  5991. done
  5992. done
  5993. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5994. ;;
  5995. esac
  5996. fi
  5997. GMSGFMT=$ac_cv_path_GMSGFMT
  5998. if test -n "$GMSGFMT"; then
  5999. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6000. echo "${ECHO_T}$GMSGFMT" >&6
  6001. else
  6002. echo "$as_me:$LINENO: result: no" >&5
  6003. echo "${ECHO_T}no" >&6
  6004. fi
  6005. # Prepare PATH_SEPARATOR.
  6006. # The user is always right.
  6007. if test "${PATH_SEPARATOR+set}" != set; then
  6008. echo "#! /bin/sh" >conf$$.sh
  6009. echo "exit 0" >>conf$$.sh
  6010. chmod +x conf$$.sh
  6011. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6012. PATH_SEPARATOR=';'
  6013. else
  6014. PATH_SEPARATOR=:
  6015. fi
  6016. rm -f conf$$.sh
  6017. fi
  6018. # Find out how to test for executable files. Don't use a zero-byte file,
  6019. # as systems may use methods other than mode bits to determine executability.
  6020. cat >conf$$.file <<_ASEOF
  6021. #! /bin/sh
  6022. exit 0
  6023. _ASEOF
  6024. chmod +x conf$$.file
  6025. if test -x conf$$.file >/dev/null 2>&1; then
  6026. ac_executable_p="test -x"
  6027. else
  6028. ac_executable_p="test -f"
  6029. fi
  6030. rm -f conf$$.file
  6031. # Extract the first word of "xgettext", so it can be a program name with args.
  6032. set dummy xgettext; ac_word=$2
  6033. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6034. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6035. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6036. echo $ECHO_N "(cached) $ECHO_C" >&6
  6037. else
  6038. case "$XGETTEXT" in
  6039. [\\/]* | ?:[\\/]*)
  6040. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6041. ;;
  6042. *)
  6043. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6044. for ac_dir in $PATH; do
  6045. IFS="$ac_save_IFS"
  6046. test -z "$ac_dir" && ac_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6049. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6050. (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
  6051. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6052. break 2
  6053. fi
  6054. fi
  6055. done
  6056. done
  6057. IFS="$ac_save_IFS"
  6058. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6059. ;;
  6060. esac
  6061. fi
  6062. XGETTEXT="$ac_cv_path_XGETTEXT"
  6063. if test "$XGETTEXT" != ":"; then
  6064. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6065. echo "${ECHO_T}$XGETTEXT" >&6
  6066. else
  6067. echo "$as_me:$LINENO: result: no" >&5
  6068. echo "${ECHO_T}no" >&6
  6069. fi
  6070. rm -f messages.po
  6071. # Prepare PATH_SEPARATOR.
  6072. # The user is always right.
  6073. if test "${PATH_SEPARATOR+set}" != set; then
  6074. echo "#! /bin/sh" >conf$$.sh
  6075. echo "exit 0" >>conf$$.sh
  6076. chmod +x conf$$.sh
  6077. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6078. PATH_SEPARATOR=';'
  6079. else
  6080. PATH_SEPARATOR=:
  6081. fi
  6082. rm -f conf$$.sh
  6083. fi
  6084. # Find out how to test for executable files. Don't use a zero-byte file,
  6085. # as systems may use methods other than mode bits to determine executability.
  6086. cat >conf$$.file <<_ASEOF
  6087. #! /bin/sh
  6088. exit 0
  6089. _ASEOF
  6090. chmod +x conf$$.file
  6091. if test -x conf$$.file >/dev/null 2>&1; then
  6092. ac_executable_p="test -x"
  6093. else
  6094. ac_executable_p="test -f"
  6095. fi
  6096. rm -f conf$$.file
  6097. # Extract the first word of "msgmerge", so it can be a program name with args.
  6098. set dummy msgmerge; ac_word=$2
  6099. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6101. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6102. echo $ECHO_N "(cached) $ECHO_C" >&6
  6103. else
  6104. case "$MSGMERGE" in
  6105. [\\/]* | ?:[\\/]*)
  6106. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6107. ;;
  6108. *)
  6109. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6110. for ac_dir in $PATH; do
  6111. IFS="$ac_save_IFS"
  6112. test -z "$ac_dir" && ac_dir=.
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6115. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6116. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6117. break 2
  6118. fi
  6119. fi
  6120. done
  6121. done
  6122. IFS="$ac_save_IFS"
  6123. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6124. ;;
  6125. esac
  6126. fi
  6127. MSGMERGE="$ac_cv_path_MSGMERGE"
  6128. if test "$MSGMERGE" != ":"; then
  6129. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6130. echo "${ECHO_T}$MSGMERGE" >&6
  6131. else
  6132. echo "$as_me:$LINENO: result: no" >&5
  6133. echo "${ECHO_T}no" >&6
  6134. fi
  6135. if test "$GMSGFMT" != ":"; then
  6136. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6137. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6138. : ;
  6139. else
  6140. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6141. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6142. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  6143. GMSGFMT=":"
  6144. fi
  6145. fi
  6146. if test "$XGETTEXT" != ":"; then
  6147. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6148. (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
  6149. : ;
  6150. else
  6151. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6152. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  6153. XGETTEXT=":"
  6154. fi
  6155. rm -f messages.po
  6156. fi
  6157. ac_config_commands="$ac_config_commands default-1"
  6158. # Make sure we can run config.sub.
  6159. $ac_config_sub sun4 >/dev/null 2>&1 ||
  6160. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  6161. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  6162. { (exit 1); exit 1; }; }
  6163. echo "$as_me:$LINENO: checking build system type" >&5
  6164. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  6165. if test "${ac_cv_build+set}" = set; then
  6166. echo $ECHO_N "(cached) $ECHO_C" >&6
  6167. else
  6168. ac_cv_build_alias=$build_alias
  6169. test -z "$ac_cv_build_alias" &&
  6170. ac_cv_build_alias=`$ac_config_guess`
  6171. test -z "$ac_cv_build_alias" &&
  6172. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6173. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6174. { (exit 1); exit 1; }; }
  6175. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  6176. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  6177. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  6178. { (exit 1); exit 1; }; }
  6179. fi
  6180. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6181. echo "${ECHO_T}$ac_cv_build" >&6
  6182. build=$ac_cv_build
  6183. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6184. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6185. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6186. echo "$as_me:$LINENO: checking host system type" >&5
  6187. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  6188. if test "${ac_cv_host+set}" = set; then
  6189. echo $ECHO_N "(cached) $ECHO_C" >&6
  6190. else
  6191. ac_cv_host_alias=$host_alias
  6192. test -z "$ac_cv_host_alias" &&
  6193. ac_cv_host_alias=$ac_cv_build_alias
  6194. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  6195. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  6196. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  6197. { (exit 1); exit 1; }; }
  6198. fi
  6199. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6200. echo "${ECHO_T}$ac_cv_host" >&6
  6201. host=$ac_cv_host
  6202. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6203. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6204. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6205. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  6206. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  6207. if test "${ac_cv_search_strerror+set}" = set; then
  6208. echo $ECHO_N "(cached) $ECHO_C" >&6
  6209. else
  6210. ac_func_search_save_LIBS=$LIBS
  6211. ac_cv_search_strerror=no
  6212. cat >conftest.$ac_ext <<_ACEOF
  6213. /* confdefs.h. */
  6214. _ACEOF
  6215. cat confdefs.h >>conftest.$ac_ext
  6216. cat >>conftest.$ac_ext <<_ACEOF
  6217. /* end confdefs.h. */
  6218. /* Override any gcc2 internal prototype to avoid an error. */
  6219. #ifdef __cplusplus
  6220. extern "C"
  6221. #endif
  6222. /* We use char because int might match the return type of a gcc2
  6223. builtin and then its argument prototype would still apply. */
  6224. char strerror ();
  6225. int
  6226. main ()
  6227. {
  6228. strerror ();
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. rm -f conftest.$ac_objext conftest$ac_exeext
  6234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6235. (eval $ac_link) 2>conftest.er1
  6236. ac_status=$?
  6237. grep -v '^ *+' conftest.er1 >conftest.err
  6238. rm -f conftest.er1
  6239. cat conftest.err >&5
  6240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6241. (exit $ac_status); } &&
  6242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6244. (eval $ac_try) 2>&5
  6245. ac_status=$?
  6246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6247. (exit $ac_status); }; } &&
  6248. { ac_try='test -s conftest$ac_exeext'
  6249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6250. (eval $ac_try) 2>&5
  6251. ac_status=$?
  6252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6253. (exit $ac_status); }; }; then
  6254. ac_cv_search_strerror="none required"
  6255. else
  6256. echo "$as_me: failed program was:" >&5
  6257. sed 's/^/| /' conftest.$ac_ext >&5
  6258. fi
  6259. rm -f conftest.err conftest.$ac_objext \
  6260. conftest$ac_exeext conftest.$ac_ext
  6261. if test "$ac_cv_search_strerror" = no; then
  6262. for ac_lib in cposix; do
  6263. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6264. cat >conftest.$ac_ext <<_ACEOF
  6265. /* confdefs.h. */
  6266. _ACEOF
  6267. cat confdefs.h >>conftest.$ac_ext
  6268. cat >>conftest.$ac_ext <<_ACEOF
  6269. /* end confdefs.h. */
  6270. /* Override any gcc2 internal prototype to avoid an error. */
  6271. #ifdef __cplusplus
  6272. extern "C"
  6273. #endif
  6274. /* We use char because int might match the return type of a gcc2
  6275. builtin and then its argument prototype would still apply. */
  6276. char strerror ();
  6277. int
  6278. main ()
  6279. {
  6280. strerror ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. rm -f conftest.$ac_objext conftest$ac_exeext
  6286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6287. (eval $ac_link) 2>conftest.er1
  6288. ac_status=$?
  6289. grep -v '^ *+' conftest.er1 >conftest.err
  6290. rm -f conftest.er1
  6291. cat conftest.err >&5
  6292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6293. (exit $ac_status); } &&
  6294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6296. (eval $ac_try) 2>&5
  6297. ac_status=$?
  6298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6299. (exit $ac_status); }; } &&
  6300. { ac_try='test -s conftest$ac_exeext'
  6301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6302. (eval $ac_try) 2>&5
  6303. ac_status=$?
  6304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6305. (exit $ac_status); }; }; then
  6306. ac_cv_search_strerror="-l$ac_lib"
  6307. break
  6308. else
  6309. echo "$as_me: failed program was:" >&5
  6310. sed 's/^/| /' conftest.$ac_ext >&5
  6311. fi
  6312. rm -f conftest.err conftest.$ac_objext \
  6313. conftest$ac_exeext conftest.$ac_ext
  6314. done
  6315. fi
  6316. LIBS=$ac_func_search_save_LIBS
  6317. fi
  6318. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6319. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6320. if test "$ac_cv_search_strerror" != no; then
  6321. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6322. fi
  6323. echo "$as_me:$LINENO: checking for off_t" >&5
  6324. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6325. if test "${ac_cv_type_off_t+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. cat >conftest.$ac_ext <<_ACEOF
  6329. /* confdefs.h. */
  6330. _ACEOF
  6331. cat confdefs.h >>conftest.$ac_ext
  6332. cat >>conftest.$ac_ext <<_ACEOF
  6333. /* end confdefs.h. */
  6334. $ac_includes_default
  6335. int
  6336. main ()
  6337. {
  6338. if ((off_t *) 0)
  6339. return 0;
  6340. if (sizeof (off_t))
  6341. return 0;
  6342. ;
  6343. return 0;
  6344. }
  6345. _ACEOF
  6346. rm -f conftest.$ac_objext
  6347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6348. (eval $ac_compile) 2>conftest.er1
  6349. ac_status=$?
  6350. grep -v '^ *+' conftest.er1 >conftest.err
  6351. rm -f conftest.er1
  6352. cat conftest.err >&5
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); } &&
  6355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; } &&
  6361. { ac_try='test -s conftest.$ac_objext'
  6362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6363. (eval $ac_try) 2>&5
  6364. ac_status=$?
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); }; }; then
  6367. ac_cv_type_off_t=yes
  6368. else
  6369. echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. ac_cv_type_off_t=no
  6372. fi
  6373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6374. fi
  6375. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6376. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6377. if test $ac_cv_type_off_t = yes; then
  6378. :
  6379. else
  6380. cat >>confdefs.h <<_ACEOF
  6381. #define off_t long
  6382. _ACEOF
  6383. fi
  6384. for ac_header in stdlib.h unistd.h
  6385. do
  6386. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6387. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6388. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6389. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6390. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6391. echo $ECHO_N "(cached) $ECHO_C" >&6
  6392. fi
  6393. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6394. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6395. else
  6396. # Is the header compilable?
  6397. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6398. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6399. cat >conftest.$ac_ext <<_ACEOF
  6400. /* confdefs.h. */
  6401. _ACEOF
  6402. cat confdefs.h >>conftest.$ac_ext
  6403. cat >>conftest.$ac_ext <<_ACEOF
  6404. /* end confdefs.h. */
  6405. $ac_includes_default
  6406. #include <$ac_header>
  6407. _ACEOF
  6408. rm -f conftest.$ac_objext
  6409. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6410. (eval $ac_compile) 2>conftest.er1
  6411. ac_status=$?
  6412. grep -v '^ *+' conftest.er1 >conftest.err
  6413. rm -f conftest.er1
  6414. cat conftest.err >&5
  6415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); } &&
  6417. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6419. (eval $ac_try) 2>&5
  6420. ac_status=$?
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); }; } &&
  6423. { ac_try='test -s conftest.$ac_objext'
  6424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6425. (eval $ac_try) 2>&5
  6426. ac_status=$?
  6427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6428. (exit $ac_status); }; }; then
  6429. ac_header_compiler=yes
  6430. else
  6431. echo "$as_me: failed program was:" >&5
  6432. sed 's/^/| /' conftest.$ac_ext >&5
  6433. ac_header_compiler=no
  6434. fi
  6435. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6436. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6437. echo "${ECHO_T}$ac_header_compiler" >&6
  6438. # Is the header present?
  6439. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6440. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6441. cat >conftest.$ac_ext <<_ACEOF
  6442. /* confdefs.h. */
  6443. _ACEOF
  6444. cat confdefs.h >>conftest.$ac_ext
  6445. cat >>conftest.$ac_ext <<_ACEOF
  6446. /* end confdefs.h. */
  6447. #include <$ac_header>
  6448. _ACEOF
  6449. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6450. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6451. ac_status=$?
  6452. grep -v '^ *+' conftest.er1 >conftest.err
  6453. rm -f conftest.er1
  6454. cat conftest.err >&5
  6455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6456. (exit $ac_status); } >/dev/null; then
  6457. if test -s conftest.err; then
  6458. ac_cpp_err=$ac_c_preproc_warn_flag
  6459. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6460. else
  6461. ac_cpp_err=
  6462. fi
  6463. else
  6464. ac_cpp_err=yes
  6465. fi
  6466. if test -z "$ac_cpp_err"; then
  6467. ac_header_preproc=yes
  6468. else
  6469. echo "$as_me: failed program was:" >&5
  6470. sed 's/^/| /' conftest.$ac_ext >&5
  6471. ac_header_preproc=no
  6472. fi
  6473. rm -f conftest.err conftest.$ac_ext
  6474. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6475. echo "${ECHO_T}$ac_header_preproc" >&6
  6476. # So? What about this header?
  6477. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6478. yes:no: )
  6479. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6480. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6481. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6482. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6483. ac_header_preproc=yes
  6484. ;;
  6485. no:yes:* )
  6486. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6487. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6488. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6489. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6490. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6491. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6492. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6493. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6494. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6495. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6496. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6497. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6498. (
  6499. cat <<\_ASBOX
  6500. ## ----------------------------------- ##
  6501. ## Report this to tujikawa@rednoah.com ##
  6502. ## ----------------------------------- ##
  6503. _ASBOX
  6504. ) |
  6505. sed "s/^/$as_me: WARNING: /" >&2
  6506. ;;
  6507. esac
  6508. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6509. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6510. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6511. echo $ECHO_N "(cached) $ECHO_C" >&6
  6512. else
  6513. eval "$as_ac_Header=\$ac_header_preproc"
  6514. fi
  6515. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6516. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6517. fi
  6518. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6519. cat >>confdefs.h <<_ACEOF
  6520. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6521. _ACEOF
  6522. fi
  6523. done
  6524. for ac_func in getpagesize
  6525. do
  6526. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6527. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6528. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6529. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6530. echo $ECHO_N "(cached) $ECHO_C" >&6
  6531. else
  6532. cat >conftest.$ac_ext <<_ACEOF
  6533. /* confdefs.h. */
  6534. _ACEOF
  6535. cat confdefs.h >>conftest.$ac_ext
  6536. cat >>conftest.$ac_ext <<_ACEOF
  6537. /* end confdefs.h. */
  6538. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6539. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6540. #define $ac_func innocuous_$ac_func
  6541. /* System header to define __stub macros and hopefully few prototypes,
  6542. which can conflict with char $ac_func (); below.
  6543. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6544. <limits.h> exists even on freestanding compilers. */
  6545. #ifdef __STDC__
  6546. # include <limits.h>
  6547. #else
  6548. # include <assert.h>
  6549. #endif
  6550. #undef $ac_func
  6551. /* Override any gcc2 internal prototype to avoid an error. */
  6552. #ifdef __cplusplus
  6553. extern "C"
  6554. {
  6555. #endif
  6556. /* We use char because int might match the return type of a gcc2
  6557. builtin and then its argument prototype would still apply. */
  6558. char $ac_func ();
  6559. /* The GNU C library defines this for functions which it implements
  6560. to always fail with ENOSYS. Some functions are actually named
  6561. something starting with __ and the normal name is an alias. */
  6562. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6563. choke me
  6564. #else
  6565. char (*f) () = $ac_func;
  6566. #endif
  6567. #ifdef __cplusplus
  6568. }
  6569. #endif
  6570. int
  6571. main ()
  6572. {
  6573. return f != $ac_func;
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. rm -f conftest.$ac_objext conftest$ac_exeext
  6579. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6580. (eval $ac_link) 2>conftest.er1
  6581. ac_status=$?
  6582. grep -v '^ *+' conftest.er1 >conftest.err
  6583. rm -f conftest.er1
  6584. cat conftest.err >&5
  6585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6586. (exit $ac_status); } &&
  6587. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6589. (eval $ac_try) 2>&5
  6590. ac_status=$?
  6591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); }; } &&
  6593. { ac_try='test -s conftest$ac_exeext'
  6594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6595. (eval $ac_try) 2>&5
  6596. ac_status=$?
  6597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); }; }; then
  6599. eval "$as_ac_var=yes"
  6600. else
  6601. echo "$as_me: failed program was:" >&5
  6602. sed 's/^/| /' conftest.$ac_ext >&5
  6603. eval "$as_ac_var=no"
  6604. fi
  6605. rm -f conftest.err conftest.$ac_objext \
  6606. conftest$ac_exeext conftest.$ac_ext
  6607. fi
  6608. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6609. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6610. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6611. cat >>confdefs.h <<_ACEOF
  6612. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6613. _ACEOF
  6614. fi
  6615. done
  6616. echo "$as_me:$LINENO: checking for working mmap" >&5
  6617. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6618. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6619. echo $ECHO_N "(cached) $ECHO_C" >&6
  6620. else
  6621. if test "$cross_compiling" = yes; then
  6622. ac_cv_func_mmap_fixed_mapped=no
  6623. else
  6624. cat >conftest.$ac_ext <<_ACEOF
  6625. /* confdefs.h. */
  6626. _ACEOF
  6627. cat confdefs.h >>conftest.$ac_ext
  6628. cat >>conftest.$ac_ext <<_ACEOF
  6629. /* end confdefs.h. */
  6630. $ac_includes_default
  6631. /* malloc might have been renamed as rpl_malloc. */
  6632. #undef malloc
  6633. /* Thanks to Mike Haertel and Jim Avera for this test.
  6634. Here is a matrix of mmap possibilities:
  6635. mmap private not fixed
  6636. mmap private fixed at somewhere currently unmapped
  6637. mmap private fixed at somewhere already mapped
  6638. mmap shared not fixed
  6639. mmap shared fixed at somewhere currently unmapped
  6640. mmap shared fixed at somewhere already mapped
  6641. For private mappings, we should verify that changes cannot be read()
  6642. back from the file, nor mmap's back from the file at a different
  6643. address. (There have been systems where private was not correctly
  6644. implemented like the infamous i386 svr4.0, and systems where the
  6645. VM page cache was not coherent with the file system buffer cache
  6646. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6647. For shared mappings, we should conversely verify that changes get
  6648. propagated back to all the places they're supposed to be.
  6649. Grep wants private fixed already mapped.
  6650. The main things grep needs to know about mmap are:
  6651. * does it exist and is it safe to write into the mmap'd area
  6652. * how to use it (BSD variants) */
  6653. #include <fcntl.h>
  6654. #include <sys/mman.h>
  6655. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6656. char *malloc ();
  6657. #endif
  6658. /* This mess was copied from the GNU getpagesize.h. */
  6659. #if !HAVE_GETPAGESIZE
  6660. /* Assume that all systems that can run configure have sys/param.h. */
  6661. # if !HAVE_SYS_PARAM_H
  6662. # define HAVE_SYS_PARAM_H 1
  6663. # endif
  6664. # ifdef _SC_PAGESIZE
  6665. # define getpagesize() sysconf(_SC_PAGESIZE)
  6666. # else /* no _SC_PAGESIZE */
  6667. # if HAVE_SYS_PARAM_H
  6668. # include <sys/param.h>
  6669. # ifdef EXEC_PAGESIZE
  6670. # define getpagesize() EXEC_PAGESIZE
  6671. # else /* no EXEC_PAGESIZE */
  6672. # ifdef NBPG
  6673. # define getpagesize() NBPG * CLSIZE
  6674. # ifndef CLSIZE
  6675. # define CLSIZE 1
  6676. # endif /* no CLSIZE */
  6677. # else /* no NBPG */
  6678. # ifdef NBPC
  6679. # define getpagesize() NBPC
  6680. # else /* no NBPC */
  6681. # ifdef PAGESIZE
  6682. # define getpagesize() PAGESIZE
  6683. # endif /* PAGESIZE */
  6684. # endif /* no NBPC */
  6685. # endif /* no NBPG */
  6686. # endif /* no EXEC_PAGESIZE */
  6687. # else /* no HAVE_SYS_PARAM_H */
  6688. # define getpagesize() 8192 /* punt totally */
  6689. # endif /* no HAVE_SYS_PARAM_H */
  6690. # endif /* no _SC_PAGESIZE */
  6691. #endif /* no HAVE_GETPAGESIZE */
  6692. int
  6693. main ()
  6694. {
  6695. char *data, *data2, *data3;
  6696. int i, pagesize;
  6697. int fd;
  6698. pagesize = getpagesize ();
  6699. /* First, make a file with some known garbage in it. */
  6700. data = (char *) malloc (pagesize);
  6701. if (!data)
  6702. exit (1);
  6703. for (i = 0; i < pagesize; ++i)
  6704. *(data + i) = rand ();
  6705. umask (0);
  6706. fd = creat ("conftest.mmap", 0600);
  6707. if (fd < 0)
  6708. exit (1);
  6709. if (write (fd, data, pagesize) != pagesize)
  6710. exit (1);
  6711. close (fd);
  6712. /* Next, try to mmap the file at a fixed address which already has
  6713. something else allocated at it. If we can, also make sure that
  6714. we see the same garbage. */
  6715. fd = open ("conftest.mmap", O_RDWR);
  6716. if (fd < 0)
  6717. exit (1);
  6718. data2 = (char *) malloc (2 * pagesize);
  6719. if (!data2)
  6720. exit (1);
  6721. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6722. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6723. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6724. exit (1);
  6725. for (i = 0; i < pagesize; ++i)
  6726. if (*(data + i) != *(data2 + i))
  6727. exit (1);
  6728. /* Finally, make sure that changes to the mapped area do not
  6729. percolate back to the file as seen by read(). (This is a bug on
  6730. some variants of i386 svr4.0.) */
  6731. for (i = 0; i < pagesize; ++i)
  6732. *(data2 + i) = *(data2 + i) + 1;
  6733. data3 = (char *) malloc (pagesize);
  6734. if (!data3)
  6735. exit (1);
  6736. if (read (fd, data3, pagesize) != pagesize)
  6737. exit (1);
  6738. for (i = 0; i < pagesize; ++i)
  6739. if (*(data + i) != *(data3 + i))
  6740. exit (1);
  6741. close (fd);
  6742. exit (0);
  6743. }
  6744. _ACEOF
  6745. rm -f conftest$ac_exeext
  6746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6747. (eval $ac_link) 2>&5
  6748. ac_status=$?
  6749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6750. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6752. (eval $ac_try) 2>&5
  6753. ac_status=$?
  6754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755. (exit $ac_status); }; }; then
  6756. ac_cv_func_mmap_fixed_mapped=yes
  6757. else
  6758. echo "$as_me: program exited with status $ac_status" >&5
  6759. echo "$as_me: failed program was:" >&5
  6760. sed 's/^/| /' conftest.$ac_ext >&5
  6761. ( exit $ac_status )
  6762. ac_cv_func_mmap_fixed_mapped=no
  6763. fi
  6764. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6765. fi
  6766. fi
  6767. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6768. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6769. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6770. cat >>confdefs.h <<\_ACEOF
  6771. #define HAVE_MMAP 1
  6772. _ACEOF
  6773. fi
  6774. rm -f conftest.mmap
  6775. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6776. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6777. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6778. echo $ECHO_N "(cached) $ECHO_C" >&6
  6779. else
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. #include <features.h>
  6787. #ifdef __GNU_LIBRARY__
  6788. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6789. Lucky GNU user
  6790. #endif
  6791. #endif
  6792. _ACEOF
  6793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6794. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6795. ac_cv_gnu_library_2_1=yes
  6796. else
  6797. ac_cv_gnu_library_2_1=no
  6798. fi
  6799. rm -f conftest*
  6800. fi
  6801. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6802. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6803. GLIBC21="$ac_cv_gnu_library_2_1"
  6804. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6805. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6806. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6807. echo $ECHO_N "(cached) $ECHO_C" >&6
  6808. else
  6809. if test "$cross_compiling" = yes; then
  6810. # Guess based on the CPU.
  6811. case "$host_cpu" in
  6812. alpha* | i3456786 | m68k | s390*)
  6813. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6814. *)
  6815. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6816. esac
  6817. else
  6818. cat >conftest.$ac_ext <<_ACEOF
  6819. /* confdefs.h. */
  6820. _ACEOF
  6821. cat confdefs.h >>conftest.$ac_ext
  6822. cat >>conftest.$ac_ext <<_ACEOF
  6823. /* end confdefs.h. */
  6824. #include <stdlib.h>
  6825. #include <signal.h>
  6826. static void
  6827. #ifdef __cplusplus
  6828. sigfpe_handler (int sig)
  6829. #else
  6830. sigfpe_handler (sig) int sig;
  6831. #endif
  6832. {
  6833. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6834. exit (sig != SIGFPE);
  6835. }
  6836. int x = 1;
  6837. int y = 0;
  6838. int z;
  6839. int nan;
  6840. int main ()
  6841. {
  6842. signal (SIGFPE, sigfpe_handler);
  6843. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6844. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6845. signal (SIGTRAP, sigfpe_handler);
  6846. #endif
  6847. /* Linux/SPARC yields signal SIGILL. */
  6848. #if defined (__sparc__) && defined (__linux__)
  6849. signal (SIGILL, sigfpe_handler);
  6850. #endif
  6851. z = x / y;
  6852. nan = y / y;
  6853. exit (1);
  6854. }
  6855. _ACEOF
  6856. rm -f conftest$ac_exeext
  6857. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6858. (eval $ac_link) 2>&5
  6859. ac_status=$?
  6860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6861. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6863. (eval $ac_try) 2>&5
  6864. ac_status=$?
  6865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6866. (exit $ac_status); }; }; then
  6867. gt_cv_int_divbyzero_sigfpe=yes
  6868. else
  6869. echo "$as_me: program exited with status $ac_status" >&5
  6870. echo "$as_me: failed program was:" >&5
  6871. sed 's/^/| /' conftest.$ac_ext >&5
  6872. ( exit $ac_status )
  6873. gt_cv_int_divbyzero_sigfpe=no
  6874. fi
  6875. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6876. fi
  6877. fi
  6878. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6879. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6880. case "$gt_cv_int_divbyzero_sigfpe" in
  6881. *yes) value=1;;
  6882. *) value=0;;
  6883. esac
  6884. cat >>confdefs.h <<_ACEOF
  6885. #define INTDIV0_RAISES_SIGFPE $value
  6886. _ACEOF
  6887. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6888. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6889. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6890. echo $ECHO_N "(cached) $ECHO_C" >&6
  6891. else
  6892. cat >conftest.$ac_ext <<_ACEOF
  6893. /* confdefs.h. */
  6894. _ACEOF
  6895. cat confdefs.h >>conftest.$ac_ext
  6896. cat >>conftest.$ac_ext <<_ACEOF
  6897. /* end confdefs.h. */
  6898. #include <sys/types.h>
  6899. #include <inttypes.h>
  6900. int
  6901. main ()
  6902. {
  6903. uintmax_t i = (uintmax_t) -1;
  6904. ;
  6905. return 0;
  6906. }
  6907. _ACEOF
  6908. rm -f conftest.$ac_objext
  6909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6910. (eval $ac_compile) 2>conftest.er1
  6911. ac_status=$?
  6912. grep -v '^ *+' conftest.er1 >conftest.err
  6913. rm -f conftest.er1
  6914. cat conftest.err >&5
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. (exit $ac_status); } &&
  6917. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6919. (eval $ac_try) 2>&5
  6920. ac_status=$?
  6921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6922. (exit $ac_status); }; } &&
  6923. { ac_try='test -s conftest.$ac_objext'
  6924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6925. (eval $ac_try) 2>&5
  6926. ac_status=$?
  6927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6928. (exit $ac_status); }; }; then
  6929. jm_ac_cv_header_inttypes_h=yes
  6930. else
  6931. echo "$as_me: failed program was:" >&5
  6932. sed 's/^/| /' conftest.$ac_ext >&5
  6933. jm_ac_cv_header_inttypes_h=no
  6934. fi
  6935. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6936. fi
  6937. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6938. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6939. if test $jm_ac_cv_header_inttypes_h = yes; then
  6940. cat >>confdefs.h <<_ACEOF
  6941. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6942. _ACEOF
  6943. fi
  6944. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6945. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6946. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6947. echo $ECHO_N "(cached) $ECHO_C" >&6
  6948. else
  6949. cat >conftest.$ac_ext <<_ACEOF
  6950. /* confdefs.h. */
  6951. _ACEOF
  6952. cat confdefs.h >>conftest.$ac_ext
  6953. cat >>conftest.$ac_ext <<_ACEOF
  6954. /* end confdefs.h. */
  6955. #include <sys/types.h>
  6956. #include <stdint.h>
  6957. int
  6958. main ()
  6959. {
  6960. uintmax_t i = (uintmax_t) -1;
  6961. ;
  6962. return 0;
  6963. }
  6964. _ACEOF
  6965. rm -f conftest.$ac_objext
  6966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6967. (eval $ac_compile) 2>conftest.er1
  6968. ac_status=$?
  6969. grep -v '^ *+' conftest.er1 >conftest.err
  6970. rm -f conftest.er1
  6971. cat conftest.err >&5
  6972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6973. (exit $ac_status); } &&
  6974. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6976. (eval $ac_try) 2>&5
  6977. ac_status=$?
  6978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6979. (exit $ac_status); }; } &&
  6980. { ac_try='test -s conftest.$ac_objext'
  6981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6982. (eval $ac_try) 2>&5
  6983. ac_status=$?
  6984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. (exit $ac_status); }; }; then
  6986. jm_ac_cv_header_stdint_h=yes
  6987. else
  6988. echo "$as_me: failed program was:" >&5
  6989. sed 's/^/| /' conftest.$ac_ext >&5
  6990. jm_ac_cv_header_stdint_h=no
  6991. fi
  6992. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6993. fi
  6994. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6995. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6996. if test $jm_ac_cv_header_stdint_h = yes; then
  6997. cat >>confdefs.h <<_ACEOF
  6998. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6999. _ACEOF
  7000. fi
  7001. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7002. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  7003. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7004. echo $ECHO_N "(cached) $ECHO_C" >&6
  7005. else
  7006. cat >conftest.$ac_ext <<_ACEOF
  7007. /* confdefs.h. */
  7008. _ACEOF
  7009. cat confdefs.h >>conftest.$ac_ext
  7010. cat >>conftest.$ac_ext <<_ACEOF
  7011. /* end confdefs.h. */
  7012. unsigned long long ull = 1; int i = 63;
  7013. int
  7014. main ()
  7015. {
  7016. unsigned long long ullmax = (unsigned long long) -1;
  7017. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7018. ;
  7019. return 0;
  7020. }
  7021. _ACEOF
  7022. rm -f conftest.$ac_objext conftest$ac_exeext
  7023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7024. (eval $ac_link) 2>conftest.er1
  7025. ac_status=$?
  7026. grep -v '^ *+' conftest.er1 >conftest.err
  7027. rm -f conftest.er1
  7028. cat conftest.err >&5
  7029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7030. (exit $ac_status); } &&
  7031. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7033. (eval $ac_try) 2>&5
  7034. ac_status=$?
  7035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7036. (exit $ac_status); }; } &&
  7037. { ac_try='test -s conftest$ac_exeext'
  7038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7039. (eval $ac_try) 2>&5
  7040. ac_status=$?
  7041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7042. (exit $ac_status); }; }; then
  7043. ac_cv_type_unsigned_long_long=yes
  7044. else
  7045. echo "$as_me: failed program was:" >&5
  7046. sed 's/^/| /' conftest.$ac_ext >&5
  7047. ac_cv_type_unsigned_long_long=no
  7048. fi
  7049. rm -f conftest.err conftest.$ac_objext \
  7050. conftest$ac_exeext conftest.$ac_ext
  7051. fi
  7052. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7053. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  7054. if test $ac_cv_type_unsigned_long_long = yes; then
  7055. cat >>confdefs.h <<\_ACEOF
  7056. #define HAVE_UNSIGNED_LONG_LONG 1
  7057. _ACEOF
  7058. fi
  7059. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7060. test $ac_cv_type_unsigned_long_long = yes \
  7061. && ac_type='unsigned long long' \
  7062. || ac_type='unsigned long'
  7063. cat >>confdefs.h <<_ACEOF
  7064. #define uintmax_t $ac_type
  7065. _ACEOF
  7066. else
  7067. cat >>confdefs.h <<\_ACEOF
  7068. #define HAVE_UINTMAX_T 1
  7069. _ACEOF
  7070. fi
  7071. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7072. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  7073. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7074. echo $ECHO_N "(cached) $ECHO_C" >&6
  7075. else
  7076. cat >conftest.$ac_ext <<_ACEOF
  7077. /* confdefs.h. */
  7078. _ACEOF
  7079. cat confdefs.h >>conftest.$ac_ext
  7080. cat >>conftest.$ac_ext <<_ACEOF
  7081. /* end confdefs.h. */
  7082. #include <sys/types.h>
  7083. #include <inttypes.h>
  7084. int
  7085. main ()
  7086. {
  7087. ;
  7088. return 0;
  7089. }
  7090. _ACEOF
  7091. rm -f conftest.$ac_objext
  7092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7093. (eval $ac_compile) 2>conftest.er1
  7094. ac_status=$?
  7095. grep -v '^ *+' conftest.er1 >conftest.err
  7096. rm -f conftest.er1
  7097. cat conftest.err >&5
  7098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7099. (exit $ac_status); } &&
  7100. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7102. (eval $ac_try) 2>&5
  7103. ac_status=$?
  7104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7105. (exit $ac_status); }; } &&
  7106. { ac_try='test -s conftest.$ac_objext'
  7107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7108. (eval $ac_try) 2>&5
  7109. ac_status=$?
  7110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7111. (exit $ac_status); }; }; then
  7112. gt_cv_header_inttypes_h=yes
  7113. else
  7114. echo "$as_me: failed program was:" >&5
  7115. sed 's/^/| /' conftest.$ac_ext >&5
  7116. gt_cv_header_inttypes_h=no
  7117. fi
  7118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7119. fi
  7120. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7121. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  7122. if test $gt_cv_header_inttypes_h = yes; then
  7123. cat >>confdefs.h <<_ACEOF
  7124. #define HAVE_INTTYPES_H 1
  7125. _ACEOF
  7126. fi
  7127. if test $gt_cv_header_inttypes_h = yes; then
  7128. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7129. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  7130. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7131. echo $ECHO_N "(cached) $ECHO_C" >&6
  7132. else
  7133. cat >conftest.$ac_ext <<_ACEOF
  7134. /* confdefs.h. */
  7135. _ACEOF
  7136. cat confdefs.h >>conftest.$ac_ext
  7137. cat >>conftest.$ac_ext <<_ACEOF
  7138. /* end confdefs.h. */
  7139. #include <inttypes.h>
  7140. #ifdef PRId32
  7141. char *p = PRId32;
  7142. #endif
  7143. int
  7144. main ()
  7145. {
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. rm -f conftest.$ac_objext
  7151. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7152. (eval $ac_compile) 2>conftest.er1
  7153. ac_status=$?
  7154. grep -v '^ *+' conftest.er1 >conftest.err
  7155. rm -f conftest.er1
  7156. cat conftest.err >&5
  7157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7158. (exit $ac_status); } &&
  7159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7161. (eval $ac_try) 2>&5
  7162. ac_status=$?
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); }; } &&
  7165. { ac_try='test -s conftest.$ac_objext'
  7166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7167. (eval $ac_try) 2>&5
  7168. ac_status=$?
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; }; then
  7171. gt_cv_inttypes_pri_broken=no
  7172. else
  7173. echo "$as_me: failed program was:" >&5
  7174. sed 's/^/| /' conftest.$ac_ext >&5
  7175. gt_cv_inttypes_pri_broken=yes
  7176. fi
  7177. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7178. fi
  7179. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7180. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  7181. fi
  7182. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7183. cat >>confdefs.h <<_ACEOF
  7184. #define PRI_MACROS_BROKEN 1
  7185. _ACEOF
  7186. fi
  7187. if test "X$prefix" = "XNONE"; then
  7188. acl_final_prefix="$ac_default_prefix"
  7189. else
  7190. acl_final_prefix="$prefix"
  7191. fi
  7192. if test "X$exec_prefix" = "XNONE"; then
  7193. acl_final_exec_prefix='${prefix}'
  7194. else
  7195. acl_final_exec_prefix="$exec_prefix"
  7196. fi
  7197. acl_save_prefix="$prefix"
  7198. prefix="$acl_final_prefix"
  7199. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7200. prefix="$acl_save_prefix"
  7201. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  7202. if test "${with_gnu_ld+set}" = set; then
  7203. withval="$with_gnu_ld"
  7204. test "$withval" = no || with_gnu_ld=yes
  7205. else
  7206. with_gnu_ld=no
  7207. fi;
  7208. # Prepare PATH_SEPARATOR.
  7209. # The user is always right.
  7210. if test "${PATH_SEPARATOR+set}" != set; then
  7211. echo "#! /bin/sh" >conf$$.sh
  7212. echo "exit 0" >>conf$$.sh
  7213. chmod +x conf$$.sh
  7214. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7215. PATH_SEPARATOR=';'
  7216. else
  7217. PATH_SEPARATOR=:
  7218. fi
  7219. rm -f conf$$.sh
  7220. fi
  7221. ac_prog=ld
  7222. if test "$GCC" = yes; then
  7223. # Check if gcc -print-prog-name=ld gives a path.
  7224. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7225. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  7226. case $host in
  7227. *-*-mingw*)
  7228. # gcc leaves a trailing carriage return which upsets mingw
  7229. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7230. *)
  7231. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7232. esac
  7233. case $ac_prog in
  7234. # Accept absolute paths.
  7235. [\\/]* | [A-Za-z]:[\\/]*)
  7236. re_direlt='/[^/][^/]*/\.\./'
  7237. # Canonicalize the path of ld
  7238. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7239. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7240. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7241. done
  7242. test -z "$LD" && LD="$ac_prog"
  7243. ;;
  7244. "")
  7245. # If it fails, then pretend we aren't using GCC.
  7246. ac_prog=ld
  7247. ;;
  7248. *)
  7249. # If it is relative, then search for the first ld in PATH.
  7250. with_gnu_ld=unknown
  7251. ;;
  7252. esac
  7253. elif test "$with_gnu_ld" = yes; then
  7254. echo "$as_me:$LINENO: checking for GNU ld" >&5
  7255. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  7256. else
  7257. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7258. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  7259. fi
  7260. if test "${acl_cv_path_LD+set}" = set; then
  7261. echo $ECHO_N "(cached) $ECHO_C" >&6
  7262. else
  7263. if test -z "$LD"; then
  7264. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7265. for ac_dir in $PATH; do
  7266. test -z "$ac_dir" && ac_dir=.
  7267. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7268. acl_cv_path_LD="$ac_dir/$ac_prog"
  7269. # Check to see if the program is GNU ld. I'd rather use --version,
  7270. # but apparently some GNU ld's only accept -v.
  7271. # Break only if it was the GNU/non-GNU ld that we prefer.
  7272. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7273. test "$with_gnu_ld" != no && break
  7274. else
  7275. test "$with_gnu_ld" != yes && break
  7276. fi
  7277. fi
  7278. done
  7279. IFS="$ac_save_ifs"
  7280. else
  7281. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7282. fi
  7283. fi
  7284. LD="$acl_cv_path_LD"
  7285. if test -n "$LD"; then
  7286. echo "$as_me:$LINENO: result: $LD" >&5
  7287. echo "${ECHO_T}$LD" >&6
  7288. else
  7289. echo "$as_me:$LINENO: result: no" >&5
  7290. echo "${ECHO_T}no" >&6
  7291. fi
  7292. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7293. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7294. { (exit 1); exit 1; }; }
  7295. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7296. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7297. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7298. echo $ECHO_N "(cached) $ECHO_C" >&6
  7299. else
  7300. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7301. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7302. acl_cv_prog_gnu_ld=yes
  7303. else
  7304. acl_cv_prog_gnu_ld=no
  7305. fi
  7306. fi
  7307. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7308. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7309. with_gnu_ld=$acl_cv_prog_gnu_ld
  7310. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7311. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7312. if test "${acl_cv_rpath+set}" = set; then
  7313. echo $ECHO_N "(cached) $ECHO_C" >&6
  7314. else
  7315. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7316. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7317. . ./conftest.sh
  7318. rm -f ./conftest.sh
  7319. acl_cv_rpath=done
  7320. fi
  7321. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7322. echo "${ECHO_T}$acl_cv_rpath" >&6
  7323. wl="$acl_cv_wl"
  7324. libext="$acl_cv_libext"
  7325. shlibext="$acl_cv_shlibext"
  7326. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7327. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7328. hardcode_direct="$acl_cv_hardcode_direct"
  7329. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7330. # Check whether --enable-rpath or --disable-rpath was given.
  7331. if test "${enable_rpath+set}" = set; then
  7332. enableval="$enable_rpath"
  7333. :
  7334. else
  7335. enable_rpath=yes
  7336. fi;
  7337. use_additional=yes
  7338. acl_save_prefix="$prefix"
  7339. prefix="$acl_final_prefix"
  7340. acl_save_exec_prefix="$exec_prefix"
  7341. exec_prefix="$acl_final_exec_prefix"
  7342. eval additional_includedir=\"$includedir\"
  7343. eval additional_libdir=\"$libdir\"
  7344. exec_prefix="$acl_save_exec_prefix"
  7345. prefix="$acl_save_prefix"
  7346. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7347. if test "${with_libiconv_prefix+set}" = set; then
  7348. withval="$with_libiconv_prefix"
  7349. if test "X$withval" = "Xno"; then
  7350. use_additional=no
  7351. else
  7352. if test "X$withval" = "X"; then
  7353. acl_save_prefix="$prefix"
  7354. prefix="$acl_final_prefix"
  7355. acl_save_exec_prefix="$exec_prefix"
  7356. exec_prefix="$acl_final_exec_prefix"
  7357. eval additional_includedir=\"$includedir\"
  7358. eval additional_libdir=\"$libdir\"
  7359. exec_prefix="$acl_save_exec_prefix"
  7360. prefix="$acl_save_prefix"
  7361. else
  7362. additional_includedir="$withval/include"
  7363. additional_libdir="$withval/lib"
  7364. fi
  7365. fi
  7366. fi;
  7367. LIBICONV=
  7368. LTLIBICONV=
  7369. INCICONV=
  7370. rpathdirs=
  7371. ltrpathdirs=
  7372. names_already_handled=
  7373. names_next_round='iconv '
  7374. while test -n "$names_next_round"; do
  7375. names_this_round="$names_next_round"
  7376. names_next_round=
  7377. for name in $names_this_round; do
  7378. already_handled=
  7379. for n in $names_already_handled; do
  7380. if test "$n" = "$name"; then
  7381. already_handled=yes
  7382. break
  7383. fi
  7384. done
  7385. if test -z "$already_handled"; then
  7386. names_already_handled="$names_already_handled $name"
  7387. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7388. eval value=\"\$HAVE_LIB$uppername\"
  7389. if test -n "$value"; then
  7390. if test "$value" = yes; then
  7391. eval value=\"\$LIB$uppername\"
  7392. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7393. eval value=\"\$LTLIB$uppername\"
  7394. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7395. else
  7396. :
  7397. fi
  7398. else
  7399. found_dir=
  7400. found_la=
  7401. found_so=
  7402. found_a=
  7403. if test $use_additional = yes; then
  7404. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7405. found_dir="$additional_libdir"
  7406. found_so="$additional_libdir/lib$name.$shlibext"
  7407. if test -f "$additional_libdir/lib$name.la"; then
  7408. found_la="$additional_libdir/lib$name.la"
  7409. fi
  7410. else
  7411. if test -f "$additional_libdir/lib$name.$libext"; then
  7412. found_dir="$additional_libdir"
  7413. found_a="$additional_libdir/lib$name.$libext"
  7414. if test -f "$additional_libdir/lib$name.la"; then
  7415. found_la="$additional_libdir/lib$name.la"
  7416. fi
  7417. fi
  7418. fi
  7419. fi
  7420. if test "X$found_dir" = "X"; then
  7421. for x in $LDFLAGS $LTLIBICONV; do
  7422. acl_save_prefix="$prefix"
  7423. prefix="$acl_final_prefix"
  7424. acl_save_exec_prefix="$exec_prefix"
  7425. exec_prefix="$acl_final_exec_prefix"
  7426. eval x=\"$x\"
  7427. exec_prefix="$acl_save_exec_prefix"
  7428. prefix="$acl_save_prefix"
  7429. case "$x" in
  7430. -L*)
  7431. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7432. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7433. found_dir="$dir"
  7434. found_so="$dir/lib$name.$shlibext"
  7435. if test -f "$dir/lib$name.la"; then
  7436. found_la="$dir/lib$name.la"
  7437. fi
  7438. else
  7439. if test -f "$dir/lib$name.$libext"; then
  7440. found_dir="$dir"
  7441. found_a="$dir/lib$name.$libext"
  7442. if test -f "$dir/lib$name.la"; then
  7443. found_la="$dir/lib$name.la"
  7444. fi
  7445. fi
  7446. fi
  7447. ;;
  7448. esac
  7449. if test "X$found_dir" != "X"; then
  7450. break
  7451. fi
  7452. done
  7453. fi
  7454. if test "X$found_dir" != "X"; then
  7455. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7456. if test "X$found_so" != "X"; then
  7457. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7458. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7459. else
  7460. haveit=
  7461. for x in $ltrpathdirs; do
  7462. if test "X$x" = "X$found_dir"; then
  7463. haveit=yes
  7464. break
  7465. fi
  7466. done
  7467. if test -z "$haveit"; then
  7468. ltrpathdirs="$ltrpathdirs $found_dir"
  7469. fi
  7470. if test "$hardcode_direct" = yes; then
  7471. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7472. else
  7473. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7474. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7475. haveit=
  7476. for x in $rpathdirs; do
  7477. if test "X$x" = "X$found_dir"; then
  7478. haveit=yes
  7479. break
  7480. fi
  7481. done
  7482. if test -z "$haveit"; then
  7483. rpathdirs="$rpathdirs $found_dir"
  7484. fi
  7485. else
  7486. haveit=
  7487. for x in $LDFLAGS $LIBICONV; do
  7488. acl_save_prefix="$prefix"
  7489. prefix="$acl_final_prefix"
  7490. acl_save_exec_prefix="$exec_prefix"
  7491. exec_prefix="$acl_final_exec_prefix"
  7492. eval x=\"$x\"
  7493. exec_prefix="$acl_save_exec_prefix"
  7494. prefix="$acl_save_prefix"
  7495. if test "X$x" = "X-L$found_dir"; then
  7496. haveit=yes
  7497. break
  7498. fi
  7499. done
  7500. if test -z "$haveit"; then
  7501. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7502. fi
  7503. if test "$hardcode_minus_L" != no; then
  7504. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7505. else
  7506. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7507. fi
  7508. fi
  7509. fi
  7510. fi
  7511. else
  7512. if test "X$found_a" != "X"; then
  7513. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7514. else
  7515. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7516. fi
  7517. fi
  7518. additional_includedir=
  7519. case "$found_dir" in
  7520. */lib | */lib/)
  7521. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7522. additional_includedir="$basedir/include"
  7523. ;;
  7524. esac
  7525. if test "X$additional_includedir" != "X"; then
  7526. if test "X$additional_includedir" != "X/usr/include"; then
  7527. haveit=
  7528. if test "X$additional_includedir" = "X/usr/local/include"; then
  7529. if test -n "$GCC"; then
  7530. case $host_os in
  7531. linux*) haveit=yes;;
  7532. esac
  7533. fi
  7534. fi
  7535. if test -z "$haveit"; then
  7536. for x in $CPPFLAGS $INCICONV; do
  7537. acl_save_prefix="$prefix"
  7538. prefix="$acl_final_prefix"
  7539. acl_save_exec_prefix="$exec_prefix"
  7540. exec_prefix="$acl_final_exec_prefix"
  7541. eval x=\"$x\"
  7542. exec_prefix="$acl_save_exec_prefix"
  7543. prefix="$acl_save_prefix"
  7544. if test "X$x" = "X-I$additional_includedir"; then
  7545. haveit=yes
  7546. break
  7547. fi
  7548. done
  7549. if test -z "$haveit"; then
  7550. if test -d "$additional_includedir"; then
  7551. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7552. fi
  7553. fi
  7554. fi
  7555. fi
  7556. fi
  7557. if test -n "$found_la"; then
  7558. save_libdir="$libdir"
  7559. case "$found_la" in
  7560. */* | *\\*) . "$found_la" ;;
  7561. *) . "./$found_la" ;;
  7562. esac
  7563. libdir="$save_libdir"
  7564. for dep in $dependency_libs; do
  7565. case "$dep" in
  7566. -L*)
  7567. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7568. if test "X$additional_libdir" != "X/usr/lib"; then
  7569. haveit=
  7570. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7571. if test -n "$GCC"; then
  7572. case $host_os in
  7573. linux*) haveit=yes;;
  7574. esac
  7575. fi
  7576. fi
  7577. if test -z "$haveit"; then
  7578. haveit=
  7579. for x in $LDFLAGS $LIBICONV; do
  7580. acl_save_prefix="$prefix"
  7581. prefix="$acl_final_prefix"
  7582. acl_save_exec_prefix="$exec_prefix"
  7583. exec_prefix="$acl_final_exec_prefix"
  7584. eval x=\"$x\"
  7585. exec_prefix="$acl_save_exec_prefix"
  7586. prefix="$acl_save_prefix"
  7587. if test "X$x" = "X-L$additional_libdir"; then
  7588. haveit=yes
  7589. break
  7590. fi
  7591. done
  7592. if test -z "$haveit"; then
  7593. if test -d "$additional_libdir"; then
  7594. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7595. fi
  7596. fi
  7597. haveit=
  7598. for x in $LDFLAGS $LTLIBICONV; do
  7599. acl_save_prefix="$prefix"
  7600. prefix="$acl_final_prefix"
  7601. acl_save_exec_prefix="$exec_prefix"
  7602. exec_prefix="$acl_final_exec_prefix"
  7603. eval x=\"$x\"
  7604. exec_prefix="$acl_save_exec_prefix"
  7605. prefix="$acl_save_prefix"
  7606. if test "X$x" = "X-L$additional_libdir"; then
  7607. haveit=yes
  7608. break
  7609. fi
  7610. done
  7611. if test -z "$haveit"; then
  7612. if test -d "$additional_libdir"; then
  7613. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7614. fi
  7615. fi
  7616. fi
  7617. fi
  7618. ;;
  7619. -R*)
  7620. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7621. if test "$enable_rpath" != no; then
  7622. haveit=
  7623. for x in $rpathdirs; do
  7624. if test "X$x" = "X$dir"; then
  7625. haveit=yes
  7626. break
  7627. fi
  7628. done
  7629. if test -z "$haveit"; then
  7630. rpathdirs="$rpathdirs $dir"
  7631. fi
  7632. haveit=
  7633. for x in $ltrpathdirs; do
  7634. if test "X$x" = "X$dir"; then
  7635. haveit=yes
  7636. break
  7637. fi
  7638. done
  7639. if test -z "$haveit"; then
  7640. ltrpathdirs="$ltrpathdirs $dir"
  7641. fi
  7642. fi
  7643. ;;
  7644. -l*)
  7645. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7646. ;;
  7647. *.la)
  7648. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7649. ;;
  7650. *)
  7651. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7652. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7653. ;;
  7654. esac
  7655. done
  7656. fi
  7657. else
  7658. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7659. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7660. fi
  7661. fi
  7662. fi
  7663. done
  7664. done
  7665. if test "X$rpathdirs" != "X"; then
  7666. if test -n "$hardcode_libdir_separator"; then
  7667. alldirs=
  7668. for found_dir in $rpathdirs; do
  7669. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7670. done
  7671. acl_save_libdir="$libdir"
  7672. libdir="$alldirs"
  7673. eval flag=\"$hardcode_libdir_flag_spec\"
  7674. libdir="$acl_save_libdir"
  7675. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7676. else
  7677. for found_dir in $rpathdirs; do
  7678. acl_save_libdir="$libdir"
  7679. libdir="$found_dir"
  7680. eval flag=\"$hardcode_libdir_flag_spec\"
  7681. libdir="$acl_save_libdir"
  7682. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7683. done
  7684. fi
  7685. fi
  7686. if test "X$ltrpathdirs" != "X"; then
  7687. for found_dir in $ltrpathdirs; do
  7688. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7689. done
  7690. fi
  7691. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7692. stdlib.h string.h unistd.h sys/param.h
  7693. do
  7694. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7695. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7696. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7697. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7698. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7699. echo $ECHO_N "(cached) $ECHO_C" >&6
  7700. fi
  7701. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7702. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7703. else
  7704. # Is the header compilable?
  7705. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7706. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7707. cat >conftest.$ac_ext <<_ACEOF
  7708. /* confdefs.h. */
  7709. _ACEOF
  7710. cat confdefs.h >>conftest.$ac_ext
  7711. cat >>conftest.$ac_ext <<_ACEOF
  7712. /* end confdefs.h. */
  7713. $ac_includes_default
  7714. #include <$ac_header>
  7715. _ACEOF
  7716. rm -f conftest.$ac_objext
  7717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7718. (eval $ac_compile) 2>conftest.er1
  7719. ac_status=$?
  7720. grep -v '^ *+' conftest.er1 >conftest.err
  7721. rm -f conftest.er1
  7722. cat conftest.err >&5
  7723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7724. (exit $ac_status); } &&
  7725. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7727. (eval $ac_try) 2>&5
  7728. ac_status=$?
  7729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7730. (exit $ac_status); }; } &&
  7731. { ac_try='test -s conftest.$ac_objext'
  7732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7733. (eval $ac_try) 2>&5
  7734. ac_status=$?
  7735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7736. (exit $ac_status); }; }; then
  7737. ac_header_compiler=yes
  7738. else
  7739. echo "$as_me: failed program was:" >&5
  7740. sed 's/^/| /' conftest.$ac_ext >&5
  7741. ac_header_compiler=no
  7742. fi
  7743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7744. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7745. echo "${ECHO_T}$ac_header_compiler" >&6
  7746. # Is the header present?
  7747. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7748. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7749. cat >conftest.$ac_ext <<_ACEOF
  7750. /* confdefs.h. */
  7751. _ACEOF
  7752. cat confdefs.h >>conftest.$ac_ext
  7753. cat >>conftest.$ac_ext <<_ACEOF
  7754. /* end confdefs.h. */
  7755. #include <$ac_header>
  7756. _ACEOF
  7757. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7758. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7759. ac_status=$?
  7760. grep -v '^ *+' conftest.er1 >conftest.err
  7761. rm -f conftest.er1
  7762. cat conftest.err >&5
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); } >/dev/null; then
  7765. if test -s conftest.err; then
  7766. ac_cpp_err=$ac_c_preproc_warn_flag
  7767. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7768. else
  7769. ac_cpp_err=
  7770. fi
  7771. else
  7772. ac_cpp_err=yes
  7773. fi
  7774. if test -z "$ac_cpp_err"; then
  7775. ac_header_preproc=yes
  7776. else
  7777. echo "$as_me: failed program was:" >&5
  7778. sed 's/^/| /' conftest.$ac_ext >&5
  7779. ac_header_preproc=no
  7780. fi
  7781. rm -f conftest.err conftest.$ac_ext
  7782. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7783. echo "${ECHO_T}$ac_header_preproc" >&6
  7784. # So? What about this header?
  7785. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7786. yes:no: )
  7787. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7788. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7789. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7790. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7791. ac_header_preproc=yes
  7792. ;;
  7793. no:yes:* )
  7794. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7795. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7796. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7797. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7798. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7799. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7800. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7801. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7802. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7803. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7804. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7805. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7806. (
  7807. cat <<\_ASBOX
  7808. ## ----------------------------------- ##
  7809. ## Report this to tujikawa@rednoah.com ##
  7810. ## ----------------------------------- ##
  7811. _ASBOX
  7812. ) |
  7813. sed "s/^/$as_me: WARNING: /" >&2
  7814. ;;
  7815. esac
  7816. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7818. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7819. echo $ECHO_N "(cached) $ECHO_C" >&6
  7820. else
  7821. eval "$as_ac_Header=\$ac_header_preproc"
  7822. fi
  7823. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7824. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7825. fi
  7826. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7827. cat >>confdefs.h <<_ACEOF
  7828. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7829. _ACEOF
  7830. fi
  7831. done
  7832. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7833. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7834. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7835. __fsetlocking
  7836. do
  7837. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7838. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7839. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7840. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7841. echo $ECHO_N "(cached) $ECHO_C" >&6
  7842. else
  7843. cat >conftest.$ac_ext <<_ACEOF
  7844. /* confdefs.h. */
  7845. _ACEOF
  7846. cat confdefs.h >>conftest.$ac_ext
  7847. cat >>conftest.$ac_ext <<_ACEOF
  7848. /* end confdefs.h. */
  7849. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7850. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7851. #define $ac_func innocuous_$ac_func
  7852. /* System header to define __stub macros and hopefully few prototypes,
  7853. which can conflict with char $ac_func (); below.
  7854. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7855. <limits.h> exists even on freestanding compilers. */
  7856. #ifdef __STDC__
  7857. # include <limits.h>
  7858. #else
  7859. # include <assert.h>
  7860. #endif
  7861. #undef $ac_func
  7862. /* Override any gcc2 internal prototype to avoid an error. */
  7863. #ifdef __cplusplus
  7864. extern "C"
  7865. {
  7866. #endif
  7867. /* We use char because int might match the return type of a gcc2
  7868. builtin and then its argument prototype would still apply. */
  7869. char $ac_func ();
  7870. /* The GNU C library defines this for functions which it implements
  7871. to always fail with ENOSYS. Some functions are actually named
  7872. something starting with __ and the normal name is an alias. */
  7873. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7874. choke me
  7875. #else
  7876. char (*f) () = $ac_func;
  7877. #endif
  7878. #ifdef __cplusplus
  7879. }
  7880. #endif
  7881. int
  7882. main ()
  7883. {
  7884. return f != $ac_func;
  7885. ;
  7886. return 0;
  7887. }
  7888. _ACEOF
  7889. rm -f conftest.$ac_objext conftest$ac_exeext
  7890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7891. (eval $ac_link) 2>conftest.er1
  7892. ac_status=$?
  7893. grep -v '^ *+' conftest.er1 >conftest.err
  7894. rm -f conftest.er1
  7895. cat conftest.err >&5
  7896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7897. (exit $ac_status); } &&
  7898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7900. (eval $ac_try) 2>&5
  7901. ac_status=$?
  7902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); }; } &&
  7904. { ac_try='test -s conftest$ac_exeext'
  7905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7906. (eval $ac_try) 2>&5
  7907. ac_status=$?
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); }; }; then
  7910. eval "$as_ac_var=yes"
  7911. else
  7912. echo "$as_me: failed program was:" >&5
  7913. sed 's/^/| /' conftest.$ac_ext >&5
  7914. eval "$as_ac_var=no"
  7915. fi
  7916. rm -f conftest.err conftest.$ac_objext \
  7917. conftest$ac_exeext conftest.$ac_ext
  7918. fi
  7919. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7920. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7921. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7922. cat >>confdefs.h <<_ACEOF
  7923. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7924. _ACEOF
  7925. fi
  7926. done
  7927. am_save_CPPFLAGS="$CPPFLAGS"
  7928. for element in $INCICONV; do
  7929. haveit=
  7930. for x in $CPPFLAGS; do
  7931. acl_save_prefix="$prefix"
  7932. prefix="$acl_final_prefix"
  7933. acl_save_exec_prefix="$exec_prefix"
  7934. exec_prefix="$acl_final_exec_prefix"
  7935. eval x=\"$x\"
  7936. exec_prefix="$acl_save_exec_prefix"
  7937. prefix="$acl_save_prefix"
  7938. if test "X$x" = "X$element"; then
  7939. haveit=yes
  7940. break
  7941. fi
  7942. done
  7943. if test -z "$haveit"; then
  7944. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7945. fi
  7946. done
  7947. echo "$as_me:$LINENO: checking for iconv" >&5
  7948. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7949. if test "${am_cv_func_iconv+set}" = set; then
  7950. echo $ECHO_N "(cached) $ECHO_C" >&6
  7951. else
  7952. am_cv_func_iconv="no, consider installing GNU libiconv"
  7953. am_cv_lib_iconv=no
  7954. cat >conftest.$ac_ext <<_ACEOF
  7955. /* confdefs.h. */
  7956. _ACEOF
  7957. cat confdefs.h >>conftest.$ac_ext
  7958. cat >>conftest.$ac_ext <<_ACEOF
  7959. /* end confdefs.h. */
  7960. #include <stdlib.h>
  7961. #include <iconv.h>
  7962. int
  7963. main ()
  7964. {
  7965. iconv_t cd = iconv_open("","");
  7966. iconv(cd,NULL,NULL,NULL,NULL);
  7967. iconv_close(cd);
  7968. ;
  7969. return 0;
  7970. }
  7971. _ACEOF
  7972. rm -f conftest.$ac_objext conftest$ac_exeext
  7973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7974. (eval $ac_link) 2>conftest.er1
  7975. ac_status=$?
  7976. grep -v '^ *+' conftest.er1 >conftest.err
  7977. rm -f conftest.er1
  7978. cat conftest.err >&5
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); } &&
  7981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7983. (eval $ac_try) 2>&5
  7984. ac_status=$?
  7985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7986. (exit $ac_status); }; } &&
  7987. { ac_try='test -s conftest$ac_exeext'
  7988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7989. (eval $ac_try) 2>&5
  7990. ac_status=$?
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); }; }; then
  7993. am_cv_func_iconv=yes
  7994. else
  7995. echo "$as_me: failed program was:" >&5
  7996. sed 's/^/| /' conftest.$ac_ext >&5
  7997. fi
  7998. rm -f conftest.err conftest.$ac_objext \
  7999. conftest$ac_exeext conftest.$ac_ext
  8000. if test "$am_cv_func_iconv" != yes; then
  8001. am_save_LIBS="$LIBS"
  8002. LIBS="$LIBS $LIBICONV"
  8003. cat >conftest.$ac_ext <<_ACEOF
  8004. /* confdefs.h. */
  8005. _ACEOF
  8006. cat confdefs.h >>conftest.$ac_ext
  8007. cat >>conftest.$ac_ext <<_ACEOF
  8008. /* end confdefs.h. */
  8009. #include <stdlib.h>
  8010. #include <iconv.h>
  8011. int
  8012. main ()
  8013. {
  8014. iconv_t cd = iconv_open("","");
  8015. iconv(cd,NULL,NULL,NULL,NULL);
  8016. iconv_close(cd);
  8017. ;
  8018. return 0;
  8019. }
  8020. _ACEOF
  8021. rm -f conftest.$ac_objext conftest$ac_exeext
  8022. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8023. (eval $ac_link) 2>conftest.er1
  8024. ac_status=$?
  8025. grep -v '^ *+' conftest.er1 >conftest.err
  8026. rm -f conftest.er1
  8027. cat conftest.err >&5
  8028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); } &&
  8030. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8032. (eval $ac_try) 2>&5
  8033. ac_status=$?
  8034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8035. (exit $ac_status); }; } &&
  8036. { ac_try='test -s conftest$ac_exeext'
  8037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8038. (eval $ac_try) 2>&5
  8039. ac_status=$?
  8040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. (exit $ac_status); }; }; then
  8042. am_cv_lib_iconv=yes
  8043. am_cv_func_iconv=yes
  8044. else
  8045. echo "$as_me: failed program was:" >&5
  8046. sed 's/^/| /' conftest.$ac_ext >&5
  8047. fi
  8048. rm -f conftest.err conftest.$ac_objext \
  8049. conftest$ac_exeext conftest.$ac_ext
  8050. LIBS="$am_save_LIBS"
  8051. fi
  8052. fi
  8053. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8054. echo "${ECHO_T}$am_cv_func_iconv" >&6
  8055. if test "$am_cv_func_iconv" = yes; then
  8056. cat >>confdefs.h <<\_ACEOF
  8057. #define HAVE_ICONV 1
  8058. _ACEOF
  8059. fi
  8060. if test "$am_cv_lib_iconv" = yes; then
  8061. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8062. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  8063. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8064. echo "${ECHO_T}$LIBICONV" >&6
  8065. else
  8066. CPPFLAGS="$am_save_CPPFLAGS"
  8067. LIBICONV=
  8068. LTLIBICONV=
  8069. fi
  8070. if test "$am_cv_func_iconv" = yes; then
  8071. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8072. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  8073. if test "${am_cv_proto_iconv+set}" = set; then
  8074. echo $ECHO_N "(cached) $ECHO_C" >&6
  8075. else
  8076. cat >conftest.$ac_ext <<_ACEOF
  8077. /* confdefs.h. */
  8078. _ACEOF
  8079. cat confdefs.h >>conftest.$ac_ext
  8080. cat >>conftest.$ac_ext <<_ACEOF
  8081. /* end confdefs.h. */
  8082. #include <stdlib.h>
  8083. #include <iconv.h>
  8084. extern
  8085. #ifdef __cplusplus
  8086. "C"
  8087. #endif
  8088. #if defined(__STDC__) || defined(__cplusplus)
  8089. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8090. #else
  8091. size_t iconv();
  8092. #endif
  8093. int
  8094. main ()
  8095. {
  8096. ;
  8097. return 0;
  8098. }
  8099. _ACEOF
  8100. rm -f conftest.$ac_objext
  8101. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8102. (eval $ac_compile) 2>conftest.er1
  8103. ac_status=$?
  8104. grep -v '^ *+' conftest.er1 >conftest.err
  8105. rm -f conftest.er1
  8106. cat conftest.err >&5
  8107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108. (exit $ac_status); } &&
  8109. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8111. (eval $ac_try) 2>&5
  8112. ac_status=$?
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); }; } &&
  8115. { ac_try='test -s conftest.$ac_objext'
  8116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8117. (eval $ac_try) 2>&5
  8118. ac_status=$?
  8119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8120. (exit $ac_status); }; }; then
  8121. am_cv_proto_iconv_arg1=""
  8122. else
  8123. echo "$as_me: failed program was:" >&5
  8124. sed 's/^/| /' conftest.$ac_ext >&5
  8125. am_cv_proto_iconv_arg1="const"
  8126. fi
  8127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8128. 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);"
  8129. fi
  8130. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8131. echo "$as_me:$LINENO: result: ${ac_t:-
  8132. }$am_cv_proto_iconv" >&5
  8133. echo "${ECHO_T}${ac_t:-
  8134. }$am_cv_proto_iconv" >&6
  8135. cat >>confdefs.h <<_ACEOF
  8136. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8137. _ACEOF
  8138. fi
  8139. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8140. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  8141. if test "${am_cv_langinfo_codeset+set}" = set; then
  8142. echo $ECHO_N "(cached) $ECHO_C" >&6
  8143. else
  8144. cat >conftest.$ac_ext <<_ACEOF
  8145. /* confdefs.h. */
  8146. _ACEOF
  8147. cat confdefs.h >>conftest.$ac_ext
  8148. cat >>conftest.$ac_ext <<_ACEOF
  8149. /* end confdefs.h. */
  8150. #include <langinfo.h>
  8151. int
  8152. main ()
  8153. {
  8154. char* cs = nl_langinfo(CODESET);
  8155. ;
  8156. return 0;
  8157. }
  8158. _ACEOF
  8159. rm -f conftest.$ac_objext conftest$ac_exeext
  8160. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8161. (eval $ac_link) 2>conftest.er1
  8162. ac_status=$?
  8163. grep -v '^ *+' conftest.er1 >conftest.err
  8164. rm -f conftest.er1
  8165. cat conftest.err >&5
  8166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8167. (exit $ac_status); } &&
  8168. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8170. (eval $ac_try) 2>&5
  8171. ac_status=$?
  8172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8173. (exit $ac_status); }; } &&
  8174. { ac_try='test -s conftest$ac_exeext'
  8175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8176. (eval $ac_try) 2>&5
  8177. ac_status=$?
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. (exit $ac_status); }; }; then
  8180. am_cv_langinfo_codeset=yes
  8181. else
  8182. echo "$as_me: failed program was:" >&5
  8183. sed 's/^/| /' conftest.$ac_ext >&5
  8184. am_cv_langinfo_codeset=no
  8185. fi
  8186. rm -f conftest.err conftest.$ac_objext \
  8187. conftest$ac_exeext conftest.$ac_ext
  8188. fi
  8189. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8190. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  8191. if test $am_cv_langinfo_codeset = yes; then
  8192. cat >>confdefs.h <<\_ACEOF
  8193. #define HAVE_LANGINFO_CODESET 1
  8194. _ACEOF
  8195. fi
  8196. if test $ac_cv_header_locale_h = yes; then
  8197. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8198. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  8199. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8200. echo $ECHO_N "(cached) $ECHO_C" >&6
  8201. else
  8202. cat >conftest.$ac_ext <<_ACEOF
  8203. /* confdefs.h. */
  8204. _ACEOF
  8205. cat confdefs.h >>conftest.$ac_ext
  8206. cat >>conftest.$ac_ext <<_ACEOF
  8207. /* end confdefs.h. */
  8208. #include <locale.h>
  8209. int
  8210. main ()
  8211. {
  8212. return LC_MESSAGES
  8213. ;
  8214. return 0;
  8215. }
  8216. _ACEOF
  8217. rm -f conftest.$ac_objext conftest$ac_exeext
  8218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8219. (eval $ac_link) 2>conftest.er1
  8220. ac_status=$?
  8221. grep -v '^ *+' conftest.er1 >conftest.err
  8222. rm -f conftest.er1
  8223. cat conftest.err >&5
  8224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8225. (exit $ac_status); } &&
  8226. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8228. (eval $ac_try) 2>&5
  8229. ac_status=$?
  8230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8231. (exit $ac_status); }; } &&
  8232. { ac_try='test -s conftest$ac_exeext'
  8233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8234. (eval $ac_try) 2>&5
  8235. ac_status=$?
  8236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8237. (exit $ac_status); }; }; then
  8238. am_cv_val_LC_MESSAGES=yes
  8239. else
  8240. echo "$as_me: failed program was:" >&5
  8241. sed 's/^/| /' conftest.$ac_ext >&5
  8242. am_cv_val_LC_MESSAGES=no
  8243. fi
  8244. rm -f conftest.err conftest.$ac_objext \
  8245. conftest$ac_exeext conftest.$ac_ext
  8246. fi
  8247. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8248. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8249. if test $am_cv_val_LC_MESSAGES = yes; then
  8250. cat >>confdefs.h <<\_ACEOF
  8251. #define HAVE_LC_MESSAGES 1
  8252. _ACEOF
  8253. fi
  8254. fi
  8255. for ac_prog in bison
  8256. do
  8257. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8258. set dummy $ac_prog; ac_word=$2
  8259. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8260. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8261. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8262. echo $ECHO_N "(cached) $ECHO_C" >&6
  8263. else
  8264. if test -n "$INTLBISON"; then
  8265. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8266. else
  8267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8268. for as_dir in $PATH
  8269. do
  8270. IFS=$as_save_IFS
  8271. test -z "$as_dir" && as_dir=.
  8272. for ac_exec_ext in '' $ac_executable_extensions; do
  8273. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8274. ac_cv_prog_INTLBISON="$ac_prog"
  8275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8276. break 2
  8277. fi
  8278. done
  8279. done
  8280. fi
  8281. fi
  8282. INTLBISON=$ac_cv_prog_INTLBISON
  8283. if test -n "$INTLBISON"; then
  8284. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8285. echo "${ECHO_T}$INTLBISON" >&6
  8286. else
  8287. echo "$as_me:$LINENO: result: no" >&5
  8288. echo "${ECHO_T}no" >&6
  8289. fi
  8290. test -n "$INTLBISON" && break
  8291. done
  8292. if test -z "$INTLBISON"; then
  8293. ac_verc_fail=yes
  8294. else
  8295. echo "$as_me:$LINENO: checking version of bison" >&5
  8296. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8297. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8298. case $ac_prog_version in
  8299. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8300. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8301. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8302. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8303. esac
  8304. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8305. echo "${ECHO_T}$ac_prog_version" >&6
  8306. fi
  8307. if test $ac_verc_fail = yes; then
  8308. INTLBISON=:
  8309. fi
  8310. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8311. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8312. # Check whether --enable-nls or --disable-nls was given.
  8313. if test "${enable_nls+set}" = set; then
  8314. enableval="$enable_nls"
  8315. USE_NLS=$enableval
  8316. else
  8317. USE_NLS=yes
  8318. fi;
  8319. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8320. echo "${ECHO_T}$USE_NLS" >&6
  8321. BUILD_INCLUDED_LIBINTL=no
  8322. USE_INCLUDED_LIBINTL=no
  8323. LIBINTL=
  8324. LTLIBINTL=
  8325. POSUB=
  8326. if test "$USE_NLS" = "yes"; then
  8327. gt_use_preinstalled_gnugettext=no
  8328. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8329. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8330. # Check whether --with-included-gettext or --without-included-gettext was given.
  8331. if test "${with_included_gettext+set}" = set; then
  8332. withval="$with_included_gettext"
  8333. nls_cv_force_use_gnu_gettext=$withval
  8334. else
  8335. nls_cv_force_use_gnu_gettext=no
  8336. fi;
  8337. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8338. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8339. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8340. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8341. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8342. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8343. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8344. echo $ECHO_N "(cached) $ECHO_C" >&6
  8345. else
  8346. cat >conftest.$ac_ext <<_ACEOF
  8347. /* confdefs.h. */
  8348. _ACEOF
  8349. cat confdefs.h >>conftest.$ac_ext
  8350. cat >>conftest.$ac_ext <<_ACEOF
  8351. /* end confdefs.h. */
  8352. #include <libintl.h>
  8353. extern int _nl_msg_cat_cntr;
  8354. extern int *_nl_domain_bindings;
  8355. int
  8356. main ()
  8357. {
  8358. bindtextdomain ("", "");
  8359. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8360. ;
  8361. return 0;
  8362. }
  8363. _ACEOF
  8364. rm -f conftest.$ac_objext conftest$ac_exeext
  8365. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8366. (eval $ac_link) 2>conftest.er1
  8367. ac_status=$?
  8368. grep -v '^ *+' conftest.er1 >conftest.err
  8369. rm -f conftest.er1
  8370. cat conftest.err >&5
  8371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372. (exit $ac_status); } &&
  8373. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8375. (eval $ac_try) 2>&5
  8376. ac_status=$?
  8377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); }; } &&
  8379. { ac_try='test -s conftest$ac_exeext'
  8380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8381. (eval $ac_try) 2>&5
  8382. ac_status=$?
  8383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8384. (exit $ac_status); }; }; then
  8385. gt_cv_func_gnugettext1_libc=yes
  8386. else
  8387. echo "$as_me: failed program was:" >&5
  8388. sed 's/^/| /' conftest.$ac_ext >&5
  8389. gt_cv_func_gnugettext1_libc=no
  8390. fi
  8391. rm -f conftest.err conftest.$ac_objext \
  8392. conftest$ac_exeext conftest.$ac_ext
  8393. fi
  8394. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8395. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8396. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8397. use_additional=yes
  8398. acl_save_prefix="$prefix"
  8399. prefix="$acl_final_prefix"
  8400. acl_save_exec_prefix="$exec_prefix"
  8401. exec_prefix="$acl_final_exec_prefix"
  8402. eval additional_includedir=\"$includedir\"
  8403. eval additional_libdir=\"$libdir\"
  8404. exec_prefix="$acl_save_exec_prefix"
  8405. prefix="$acl_save_prefix"
  8406. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8407. if test "${with_libintl_prefix+set}" = set; then
  8408. withval="$with_libintl_prefix"
  8409. if test "X$withval" = "Xno"; then
  8410. use_additional=no
  8411. else
  8412. if test "X$withval" = "X"; then
  8413. acl_save_prefix="$prefix"
  8414. prefix="$acl_final_prefix"
  8415. acl_save_exec_prefix="$exec_prefix"
  8416. exec_prefix="$acl_final_exec_prefix"
  8417. eval additional_includedir=\"$includedir\"
  8418. eval additional_libdir=\"$libdir\"
  8419. exec_prefix="$acl_save_exec_prefix"
  8420. prefix="$acl_save_prefix"
  8421. else
  8422. additional_includedir="$withval/include"
  8423. additional_libdir="$withval/lib"
  8424. fi
  8425. fi
  8426. fi;
  8427. LIBINTL=
  8428. LTLIBINTL=
  8429. INCINTL=
  8430. rpathdirs=
  8431. ltrpathdirs=
  8432. names_already_handled=
  8433. names_next_round='intl '
  8434. while test -n "$names_next_round"; do
  8435. names_this_round="$names_next_round"
  8436. names_next_round=
  8437. for name in $names_this_round; do
  8438. already_handled=
  8439. for n in $names_already_handled; do
  8440. if test "$n" = "$name"; then
  8441. already_handled=yes
  8442. break
  8443. fi
  8444. done
  8445. if test -z "$already_handled"; then
  8446. names_already_handled="$names_already_handled $name"
  8447. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8448. eval value=\"\$HAVE_LIB$uppername\"
  8449. if test -n "$value"; then
  8450. if test "$value" = yes; then
  8451. eval value=\"\$LIB$uppername\"
  8452. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8453. eval value=\"\$LTLIB$uppername\"
  8454. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8455. else
  8456. :
  8457. fi
  8458. else
  8459. found_dir=
  8460. found_la=
  8461. found_so=
  8462. found_a=
  8463. if test $use_additional = yes; then
  8464. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8465. found_dir="$additional_libdir"
  8466. found_so="$additional_libdir/lib$name.$shlibext"
  8467. if test -f "$additional_libdir/lib$name.la"; then
  8468. found_la="$additional_libdir/lib$name.la"
  8469. fi
  8470. else
  8471. if test -f "$additional_libdir/lib$name.$libext"; then
  8472. found_dir="$additional_libdir"
  8473. found_a="$additional_libdir/lib$name.$libext"
  8474. if test -f "$additional_libdir/lib$name.la"; then
  8475. found_la="$additional_libdir/lib$name.la"
  8476. fi
  8477. fi
  8478. fi
  8479. fi
  8480. if test "X$found_dir" = "X"; then
  8481. for x in $LDFLAGS $LTLIBINTL; do
  8482. acl_save_prefix="$prefix"
  8483. prefix="$acl_final_prefix"
  8484. acl_save_exec_prefix="$exec_prefix"
  8485. exec_prefix="$acl_final_exec_prefix"
  8486. eval x=\"$x\"
  8487. exec_prefix="$acl_save_exec_prefix"
  8488. prefix="$acl_save_prefix"
  8489. case "$x" in
  8490. -L*)
  8491. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8492. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8493. found_dir="$dir"
  8494. found_so="$dir/lib$name.$shlibext"
  8495. if test -f "$dir/lib$name.la"; then
  8496. found_la="$dir/lib$name.la"
  8497. fi
  8498. else
  8499. if test -f "$dir/lib$name.$libext"; then
  8500. found_dir="$dir"
  8501. found_a="$dir/lib$name.$libext"
  8502. if test -f "$dir/lib$name.la"; then
  8503. found_la="$dir/lib$name.la"
  8504. fi
  8505. fi
  8506. fi
  8507. ;;
  8508. esac
  8509. if test "X$found_dir" != "X"; then
  8510. break
  8511. fi
  8512. done
  8513. fi
  8514. if test "X$found_dir" != "X"; then
  8515. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8516. if test "X$found_so" != "X"; then
  8517. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8518. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8519. else
  8520. haveit=
  8521. for x in $ltrpathdirs; do
  8522. if test "X$x" = "X$found_dir"; then
  8523. haveit=yes
  8524. break
  8525. fi
  8526. done
  8527. if test -z "$haveit"; then
  8528. ltrpathdirs="$ltrpathdirs $found_dir"
  8529. fi
  8530. if test "$hardcode_direct" = yes; then
  8531. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8532. else
  8533. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8534. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8535. haveit=
  8536. for x in $rpathdirs; do
  8537. if test "X$x" = "X$found_dir"; then
  8538. haveit=yes
  8539. break
  8540. fi
  8541. done
  8542. if test -z "$haveit"; then
  8543. rpathdirs="$rpathdirs $found_dir"
  8544. fi
  8545. else
  8546. haveit=
  8547. for x in $LDFLAGS $LIBINTL; do
  8548. acl_save_prefix="$prefix"
  8549. prefix="$acl_final_prefix"
  8550. acl_save_exec_prefix="$exec_prefix"
  8551. exec_prefix="$acl_final_exec_prefix"
  8552. eval x=\"$x\"
  8553. exec_prefix="$acl_save_exec_prefix"
  8554. prefix="$acl_save_prefix"
  8555. if test "X$x" = "X-L$found_dir"; then
  8556. haveit=yes
  8557. break
  8558. fi
  8559. done
  8560. if test -z "$haveit"; then
  8561. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8562. fi
  8563. if test "$hardcode_minus_L" != no; then
  8564. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8565. else
  8566. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8567. fi
  8568. fi
  8569. fi
  8570. fi
  8571. else
  8572. if test "X$found_a" != "X"; then
  8573. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8574. else
  8575. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8576. fi
  8577. fi
  8578. additional_includedir=
  8579. case "$found_dir" in
  8580. */lib | */lib/)
  8581. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8582. additional_includedir="$basedir/include"
  8583. ;;
  8584. esac
  8585. if test "X$additional_includedir" != "X"; then
  8586. if test "X$additional_includedir" != "X/usr/include"; then
  8587. haveit=
  8588. if test "X$additional_includedir" = "X/usr/local/include"; then
  8589. if test -n "$GCC"; then
  8590. case $host_os in
  8591. linux*) haveit=yes;;
  8592. esac
  8593. fi
  8594. fi
  8595. if test -z "$haveit"; then
  8596. for x in $CPPFLAGS $INCINTL; do
  8597. acl_save_prefix="$prefix"
  8598. prefix="$acl_final_prefix"
  8599. acl_save_exec_prefix="$exec_prefix"
  8600. exec_prefix="$acl_final_exec_prefix"
  8601. eval x=\"$x\"
  8602. exec_prefix="$acl_save_exec_prefix"
  8603. prefix="$acl_save_prefix"
  8604. if test "X$x" = "X-I$additional_includedir"; then
  8605. haveit=yes
  8606. break
  8607. fi
  8608. done
  8609. if test -z "$haveit"; then
  8610. if test -d "$additional_includedir"; then
  8611. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8612. fi
  8613. fi
  8614. fi
  8615. fi
  8616. fi
  8617. if test -n "$found_la"; then
  8618. save_libdir="$libdir"
  8619. case "$found_la" in
  8620. */* | *\\*) . "$found_la" ;;
  8621. *) . "./$found_la" ;;
  8622. esac
  8623. libdir="$save_libdir"
  8624. for dep in $dependency_libs; do
  8625. case "$dep" in
  8626. -L*)
  8627. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8628. if test "X$additional_libdir" != "X/usr/lib"; then
  8629. haveit=
  8630. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8631. if test -n "$GCC"; then
  8632. case $host_os in
  8633. linux*) haveit=yes;;
  8634. esac
  8635. fi
  8636. fi
  8637. if test -z "$haveit"; then
  8638. haveit=
  8639. for x in $LDFLAGS $LIBINTL; do
  8640. acl_save_prefix="$prefix"
  8641. prefix="$acl_final_prefix"
  8642. acl_save_exec_prefix="$exec_prefix"
  8643. exec_prefix="$acl_final_exec_prefix"
  8644. eval x=\"$x\"
  8645. exec_prefix="$acl_save_exec_prefix"
  8646. prefix="$acl_save_prefix"
  8647. if test "X$x" = "X-L$additional_libdir"; then
  8648. haveit=yes
  8649. break
  8650. fi
  8651. done
  8652. if test -z "$haveit"; then
  8653. if test -d "$additional_libdir"; then
  8654. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8655. fi
  8656. fi
  8657. haveit=
  8658. for x in $LDFLAGS $LTLIBINTL; do
  8659. acl_save_prefix="$prefix"
  8660. prefix="$acl_final_prefix"
  8661. acl_save_exec_prefix="$exec_prefix"
  8662. exec_prefix="$acl_final_exec_prefix"
  8663. eval x=\"$x\"
  8664. exec_prefix="$acl_save_exec_prefix"
  8665. prefix="$acl_save_prefix"
  8666. if test "X$x" = "X-L$additional_libdir"; then
  8667. haveit=yes
  8668. break
  8669. fi
  8670. done
  8671. if test -z "$haveit"; then
  8672. if test -d "$additional_libdir"; then
  8673. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8674. fi
  8675. fi
  8676. fi
  8677. fi
  8678. ;;
  8679. -R*)
  8680. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8681. if test "$enable_rpath" != no; then
  8682. haveit=
  8683. for x in $rpathdirs; do
  8684. if test "X$x" = "X$dir"; then
  8685. haveit=yes
  8686. break
  8687. fi
  8688. done
  8689. if test -z "$haveit"; then
  8690. rpathdirs="$rpathdirs $dir"
  8691. fi
  8692. haveit=
  8693. for x in $ltrpathdirs; do
  8694. if test "X$x" = "X$dir"; then
  8695. haveit=yes
  8696. break
  8697. fi
  8698. done
  8699. if test -z "$haveit"; then
  8700. ltrpathdirs="$ltrpathdirs $dir"
  8701. fi
  8702. fi
  8703. ;;
  8704. -l*)
  8705. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8706. ;;
  8707. *.la)
  8708. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8709. ;;
  8710. *)
  8711. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8712. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8713. ;;
  8714. esac
  8715. done
  8716. fi
  8717. else
  8718. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8719. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8720. fi
  8721. fi
  8722. fi
  8723. done
  8724. done
  8725. if test "X$rpathdirs" != "X"; then
  8726. if test -n "$hardcode_libdir_separator"; then
  8727. alldirs=
  8728. for found_dir in $rpathdirs; do
  8729. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8730. done
  8731. acl_save_libdir="$libdir"
  8732. libdir="$alldirs"
  8733. eval flag=\"$hardcode_libdir_flag_spec\"
  8734. libdir="$acl_save_libdir"
  8735. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8736. else
  8737. for found_dir in $rpathdirs; do
  8738. acl_save_libdir="$libdir"
  8739. libdir="$found_dir"
  8740. eval flag=\"$hardcode_libdir_flag_spec\"
  8741. libdir="$acl_save_libdir"
  8742. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8743. done
  8744. fi
  8745. fi
  8746. if test "X$ltrpathdirs" != "X"; then
  8747. for found_dir in $ltrpathdirs; do
  8748. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8749. done
  8750. fi
  8751. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8752. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8753. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8754. echo $ECHO_N "(cached) $ECHO_C" >&6
  8755. else
  8756. gt_save_CPPFLAGS="$CPPFLAGS"
  8757. CPPFLAGS="$CPPFLAGS $INCINTL"
  8758. gt_save_LIBS="$LIBS"
  8759. LIBS="$LIBS $LIBINTL"
  8760. cat >conftest.$ac_ext <<_ACEOF
  8761. /* confdefs.h. */
  8762. _ACEOF
  8763. cat confdefs.h >>conftest.$ac_ext
  8764. cat >>conftest.$ac_ext <<_ACEOF
  8765. /* end confdefs.h. */
  8766. #include <libintl.h>
  8767. extern int _nl_msg_cat_cntr;
  8768. extern
  8769. #ifdef __cplusplus
  8770. "C"
  8771. #endif
  8772. const char *_nl_expand_alias ();
  8773. int
  8774. main ()
  8775. {
  8776. bindtextdomain ("", "");
  8777. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8778. ;
  8779. return 0;
  8780. }
  8781. _ACEOF
  8782. rm -f conftest.$ac_objext conftest$ac_exeext
  8783. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8784. (eval $ac_link) 2>conftest.er1
  8785. ac_status=$?
  8786. grep -v '^ *+' conftest.er1 >conftest.err
  8787. rm -f conftest.er1
  8788. cat conftest.err >&5
  8789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8790. (exit $ac_status); } &&
  8791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8793. (eval $ac_try) 2>&5
  8794. ac_status=$?
  8795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8796. (exit $ac_status); }; } &&
  8797. { ac_try='test -s conftest$ac_exeext'
  8798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8799. (eval $ac_try) 2>&5
  8800. ac_status=$?
  8801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); }; }; then
  8803. gt_cv_func_gnugettext1_libintl=yes
  8804. else
  8805. echo "$as_me: failed program was:" >&5
  8806. sed 's/^/| /' conftest.$ac_ext >&5
  8807. gt_cv_func_gnugettext1_libintl=no
  8808. fi
  8809. rm -f conftest.err conftest.$ac_objext \
  8810. conftest$ac_exeext conftest.$ac_ext
  8811. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8812. LIBS="$LIBS $LIBICONV"
  8813. cat >conftest.$ac_ext <<_ACEOF
  8814. /* confdefs.h. */
  8815. _ACEOF
  8816. cat confdefs.h >>conftest.$ac_ext
  8817. cat >>conftest.$ac_ext <<_ACEOF
  8818. /* end confdefs.h. */
  8819. #include <libintl.h>
  8820. extern int _nl_msg_cat_cntr;
  8821. extern
  8822. #ifdef __cplusplus
  8823. "C"
  8824. #endif
  8825. const char *_nl_expand_alias ();
  8826. int
  8827. main ()
  8828. {
  8829. bindtextdomain ("", "");
  8830. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8831. ;
  8832. return 0;
  8833. }
  8834. _ACEOF
  8835. rm -f conftest.$ac_objext conftest$ac_exeext
  8836. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8837. (eval $ac_link) 2>conftest.er1
  8838. ac_status=$?
  8839. grep -v '^ *+' conftest.er1 >conftest.err
  8840. rm -f conftest.er1
  8841. cat conftest.err >&5
  8842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8843. (exit $ac_status); } &&
  8844. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8846. (eval $ac_try) 2>&5
  8847. ac_status=$?
  8848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8849. (exit $ac_status); }; } &&
  8850. { ac_try='test -s conftest$ac_exeext'
  8851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8852. (eval $ac_try) 2>&5
  8853. ac_status=$?
  8854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8855. (exit $ac_status); }; }; then
  8856. LIBINTL="$LIBINTL $LIBICONV"
  8857. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8858. gt_cv_func_gnugettext1_libintl=yes
  8859. else
  8860. echo "$as_me: failed program was:" >&5
  8861. sed 's/^/| /' conftest.$ac_ext >&5
  8862. fi
  8863. rm -f conftest.err conftest.$ac_objext \
  8864. conftest$ac_exeext conftest.$ac_ext
  8865. fi
  8866. CPPFLAGS="$gt_save_CPPFLAGS"
  8867. LIBS="$gt_save_LIBS"
  8868. fi
  8869. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8870. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8871. fi
  8872. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8873. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8874. && test "$PACKAGE" != gettext-runtime \
  8875. && test "$PACKAGE" != gettext-tools; }; then
  8876. gt_use_preinstalled_gnugettext=yes
  8877. else
  8878. LIBINTL=
  8879. LTLIBINTL=
  8880. INCINTL=
  8881. fi
  8882. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8883. nls_cv_use_gnu_gettext=yes
  8884. fi
  8885. fi
  8886. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8887. BUILD_INCLUDED_LIBINTL=yes
  8888. USE_INCLUDED_LIBINTL=yes
  8889. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8890. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8891. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8892. fi
  8893. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8894. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8895. CATOBJEXT=.gmo
  8896. fi
  8897. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8898. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8899. cat >>confdefs.h <<\_ACEOF
  8900. #define ENABLE_NLS 1
  8901. _ACEOF
  8902. else
  8903. USE_NLS=no
  8904. fi
  8905. fi
  8906. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8907. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8908. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8909. echo "${ECHO_T}$USE_NLS" >&6
  8910. if test "$USE_NLS" = "yes"; then
  8911. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8912. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8913. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8914. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8915. gt_source="external libintl"
  8916. else
  8917. gt_source="libc"
  8918. fi
  8919. else
  8920. gt_source="included intl directory"
  8921. fi
  8922. echo "$as_me:$LINENO: result: $gt_source" >&5
  8923. echo "${ECHO_T}$gt_source" >&6
  8924. fi
  8925. if test "$USE_NLS" = "yes"; then
  8926. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8927. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8928. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8929. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8930. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8931. echo "${ECHO_T}$LIBINTL" >&6
  8932. for element in $INCINTL; do
  8933. haveit=
  8934. for x in $CPPFLAGS; do
  8935. acl_save_prefix="$prefix"
  8936. prefix="$acl_final_prefix"
  8937. acl_save_exec_prefix="$exec_prefix"
  8938. exec_prefix="$acl_final_exec_prefix"
  8939. eval x=\"$x\"
  8940. exec_prefix="$acl_save_exec_prefix"
  8941. prefix="$acl_save_prefix"
  8942. if test "X$x" = "X$element"; then
  8943. haveit=yes
  8944. break
  8945. fi
  8946. done
  8947. if test -z "$haveit"; then
  8948. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8949. fi
  8950. done
  8951. fi
  8952. cat >>confdefs.h <<\_ACEOF
  8953. #define HAVE_GETTEXT 1
  8954. _ACEOF
  8955. cat >>confdefs.h <<\_ACEOF
  8956. #define HAVE_DCGETTEXT 1
  8957. _ACEOF
  8958. fi
  8959. POSUB=po
  8960. fi
  8961. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8962. BUILD_INCLUDED_LIBINTL=yes
  8963. fi
  8964. nls_cv_header_intl=
  8965. nls_cv_header_libgt=
  8966. DATADIRNAME=share
  8967. INSTOBJEXT=.mo
  8968. GENCAT=gencat
  8969. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8970. INTLOBJS="\$(GETTOBJS)"
  8971. fi
  8972. INTL_LIBTOOL_SUFFIX_PREFIX=
  8973. INTLLIBS="$LIBINTL"
  8974. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8975. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8976. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8977. echo $ECHO_N "(cached) $ECHO_C" >&6
  8978. else
  8979. cat >conftest.$ac_ext <<_ACEOF
  8980. /* confdefs.h. */
  8981. _ACEOF
  8982. cat confdefs.h >>conftest.$ac_ext
  8983. cat >>conftest.$ac_ext <<_ACEOF
  8984. /* end confdefs.h. */
  8985. $ac_includes_default
  8986. int
  8987. main ()
  8988. {
  8989. error_at_line (0, 0, "", 0, "");
  8990. ;
  8991. return 0;
  8992. }
  8993. _ACEOF
  8994. rm -f conftest.$ac_objext conftest$ac_exeext
  8995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8996. (eval $ac_link) 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); } &&
  9003. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9005. (eval $ac_try) 2>&5
  9006. ac_status=$?
  9007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9008. (exit $ac_status); }; } &&
  9009. { ac_try='test -s conftest$ac_exeext'
  9010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9011. (eval $ac_try) 2>&5
  9012. ac_status=$?
  9013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9014. (exit $ac_status); }; }; then
  9015. ac_cv_lib_error_at_line=yes
  9016. else
  9017. echo "$as_me: failed program was:" >&5
  9018. sed 's/^/| /' conftest.$ac_ext >&5
  9019. ac_cv_lib_error_at_line=no
  9020. fi
  9021. rm -f conftest.err conftest.$ac_objext \
  9022. conftest$ac_exeext conftest.$ac_ext
  9023. fi
  9024. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9025. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  9026. if test $ac_cv_lib_error_at_line = no; then
  9027. case $LIBOBJS in
  9028. "error.$ac_objext" | \
  9029. *" error.$ac_objext" | \
  9030. "error.$ac_objext "* | \
  9031. *" error.$ac_objext "* ) ;;
  9032. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  9033. esac
  9034. fi
  9035. for ac_header in stdlib.h
  9036. do
  9037. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9038. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9039. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9040. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9041. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9042. echo $ECHO_N "(cached) $ECHO_C" >&6
  9043. fi
  9044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9045. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9046. else
  9047. # Is the header compilable?
  9048. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9049. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9050. cat >conftest.$ac_ext <<_ACEOF
  9051. /* confdefs.h. */
  9052. _ACEOF
  9053. cat confdefs.h >>conftest.$ac_ext
  9054. cat >>conftest.$ac_ext <<_ACEOF
  9055. /* end confdefs.h. */
  9056. $ac_includes_default
  9057. #include <$ac_header>
  9058. _ACEOF
  9059. rm -f conftest.$ac_objext
  9060. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9061. (eval $ac_compile) 2>conftest.er1
  9062. ac_status=$?
  9063. grep -v '^ *+' conftest.er1 >conftest.err
  9064. rm -f conftest.er1
  9065. cat conftest.err >&5
  9066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9067. (exit $ac_status); } &&
  9068. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9070. (eval $ac_try) 2>&5
  9071. ac_status=$?
  9072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9073. (exit $ac_status); }; } &&
  9074. { ac_try='test -s conftest.$ac_objext'
  9075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9076. (eval $ac_try) 2>&5
  9077. ac_status=$?
  9078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9079. (exit $ac_status); }; }; then
  9080. ac_header_compiler=yes
  9081. else
  9082. echo "$as_me: failed program was:" >&5
  9083. sed 's/^/| /' conftest.$ac_ext >&5
  9084. ac_header_compiler=no
  9085. fi
  9086. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9087. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9088. echo "${ECHO_T}$ac_header_compiler" >&6
  9089. # Is the header present?
  9090. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9091. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9092. cat >conftest.$ac_ext <<_ACEOF
  9093. /* confdefs.h. */
  9094. _ACEOF
  9095. cat confdefs.h >>conftest.$ac_ext
  9096. cat >>conftest.$ac_ext <<_ACEOF
  9097. /* end confdefs.h. */
  9098. #include <$ac_header>
  9099. _ACEOF
  9100. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9101. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9102. ac_status=$?
  9103. grep -v '^ *+' conftest.er1 >conftest.err
  9104. rm -f conftest.er1
  9105. cat conftest.err >&5
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); } >/dev/null; then
  9108. if test -s conftest.err; then
  9109. ac_cpp_err=$ac_c_preproc_warn_flag
  9110. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9111. else
  9112. ac_cpp_err=
  9113. fi
  9114. else
  9115. ac_cpp_err=yes
  9116. fi
  9117. if test -z "$ac_cpp_err"; then
  9118. ac_header_preproc=yes
  9119. else
  9120. echo "$as_me: failed program was:" >&5
  9121. sed 's/^/| /' conftest.$ac_ext >&5
  9122. ac_header_preproc=no
  9123. fi
  9124. rm -f conftest.err conftest.$ac_ext
  9125. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9126. echo "${ECHO_T}$ac_header_preproc" >&6
  9127. # So? What about this header?
  9128. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9129. yes:no: )
  9130. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9131. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9132. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9133. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9134. ac_header_preproc=yes
  9135. ;;
  9136. no:yes:* )
  9137. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9138. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9139. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9140. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9141. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9142. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9143. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9144. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9145. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9146. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9147. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9148. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9149. (
  9150. cat <<\_ASBOX
  9151. ## ----------------------------------- ##
  9152. ## Report this to tujikawa@rednoah.com ##
  9153. ## ----------------------------------- ##
  9154. _ASBOX
  9155. ) |
  9156. sed "s/^/$as_me: WARNING: /" >&2
  9157. ;;
  9158. esac
  9159. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9160. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9161. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9162. echo $ECHO_N "(cached) $ECHO_C" >&6
  9163. else
  9164. eval "$as_ac_Header=\$ac_header_preproc"
  9165. fi
  9166. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9167. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9168. fi
  9169. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9170. cat >>confdefs.h <<_ACEOF
  9171. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9172. _ACEOF
  9173. fi
  9174. done
  9175. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9176. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9177. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9178. echo $ECHO_N "(cached) $ECHO_C" >&6
  9179. else
  9180. if test "$cross_compiling" = yes; then
  9181. ac_cv_func_malloc_0_nonnull=no
  9182. else
  9183. cat >conftest.$ac_ext <<_ACEOF
  9184. /* confdefs.h. */
  9185. _ACEOF
  9186. cat confdefs.h >>conftest.$ac_ext
  9187. cat >>conftest.$ac_ext <<_ACEOF
  9188. /* end confdefs.h. */
  9189. #if STDC_HEADERS || HAVE_STDLIB_H
  9190. # include <stdlib.h>
  9191. #else
  9192. char *malloc ();
  9193. #endif
  9194. int
  9195. main ()
  9196. {
  9197. exit (malloc (0) ? 0 : 1);
  9198. ;
  9199. return 0;
  9200. }
  9201. _ACEOF
  9202. rm -f conftest$ac_exeext
  9203. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9204. (eval $ac_link) 2>&5
  9205. ac_status=$?
  9206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9207. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9209. (eval $ac_try) 2>&5
  9210. ac_status=$?
  9211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212. (exit $ac_status); }; }; then
  9213. ac_cv_func_malloc_0_nonnull=yes
  9214. else
  9215. echo "$as_me: program exited with status $ac_status" >&5
  9216. echo "$as_me: failed program was:" >&5
  9217. sed 's/^/| /' conftest.$ac_ext >&5
  9218. ( exit $ac_status )
  9219. ac_cv_func_malloc_0_nonnull=no
  9220. fi
  9221. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9222. fi
  9223. fi
  9224. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9225. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9226. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9227. cat >>confdefs.h <<\_ACEOF
  9228. #define HAVE_MALLOC 1
  9229. _ACEOF
  9230. else
  9231. cat >>confdefs.h <<\_ACEOF
  9232. #define HAVE_MALLOC 0
  9233. _ACEOF
  9234. case $LIBOBJS in
  9235. "malloc.$ac_objext" | \
  9236. *" malloc.$ac_objext" | \
  9237. "malloc.$ac_objext "* | \
  9238. *" malloc.$ac_objext "* ) ;;
  9239. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9240. esac
  9241. cat >>confdefs.h <<\_ACEOF
  9242. #define malloc rpl_malloc
  9243. _ACEOF
  9244. fi
  9245. echo "$as_me:$LINENO: checking for working memcmp" >&5
  9246. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  9247. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9248. echo $ECHO_N "(cached) $ECHO_C" >&6
  9249. else
  9250. if test "$cross_compiling" = yes; then
  9251. ac_cv_func_memcmp_working=no
  9252. else
  9253. cat >conftest.$ac_ext <<_ACEOF
  9254. /* confdefs.h. */
  9255. _ACEOF
  9256. cat confdefs.h >>conftest.$ac_ext
  9257. cat >>conftest.$ac_ext <<_ACEOF
  9258. /* end confdefs.h. */
  9259. $ac_includes_default
  9260. int
  9261. main ()
  9262. {
  9263. /* Some versions of memcmp are not 8-bit clean. */
  9264. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9265. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9266. exit (1);
  9267. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9268. or more and with at least one buffer not starting on a 4-byte boundary.
  9269. William Lewis provided this test program. */
  9270. {
  9271. char foo[21];
  9272. char bar[21];
  9273. int i;
  9274. for (i = 0; i < 4; i++)
  9275. {
  9276. char *a = foo + i;
  9277. char *b = bar + i;
  9278. strcpy (a, "--------01111111");
  9279. strcpy (b, "--------10000000");
  9280. if (memcmp (a, b, 16) >= 0)
  9281. exit (1);
  9282. }
  9283. exit (0);
  9284. }
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. rm -f conftest$ac_exeext
  9290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9291. (eval $ac_link) 2>&5
  9292. ac_status=$?
  9293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9296. (eval $ac_try) 2>&5
  9297. ac_status=$?
  9298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9299. (exit $ac_status); }; }; then
  9300. ac_cv_func_memcmp_working=yes
  9301. else
  9302. echo "$as_me: program exited with status $ac_status" >&5
  9303. echo "$as_me: failed program was:" >&5
  9304. sed 's/^/| /' conftest.$ac_ext >&5
  9305. ( exit $ac_status )
  9306. ac_cv_func_memcmp_working=no
  9307. fi
  9308. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9309. fi
  9310. fi
  9311. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9312. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9313. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9314. "memcmp.$ac_objext" | \
  9315. *" memcmp.$ac_objext" | \
  9316. "memcmp.$ac_objext "* | \
  9317. *" memcmp.$ac_objext "* ) ;;
  9318. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9319. esac
  9320. for ac_header in stdlib.h unistd.h
  9321. do
  9322. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9323. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9324. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9325. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9326. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9327. echo $ECHO_N "(cached) $ECHO_C" >&6
  9328. fi
  9329. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9330. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9331. else
  9332. # Is the header compilable?
  9333. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9334. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9335. cat >conftest.$ac_ext <<_ACEOF
  9336. /* confdefs.h. */
  9337. _ACEOF
  9338. cat confdefs.h >>conftest.$ac_ext
  9339. cat >>conftest.$ac_ext <<_ACEOF
  9340. /* end confdefs.h. */
  9341. $ac_includes_default
  9342. #include <$ac_header>
  9343. _ACEOF
  9344. rm -f conftest.$ac_objext
  9345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9346. (eval $ac_compile) 2>conftest.er1
  9347. ac_status=$?
  9348. grep -v '^ *+' conftest.er1 >conftest.err
  9349. rm -f conftest.er1
  9350. cat conftest.err >&5
  9351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9352. (exit $ac_status); } &&
  9353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9355. (eval $ac_try) 2>&5
  9356. ac_status=$?
  9357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9358. (exit $ac_status); }; } &&
  9359. { ac_try='test -s conftest.$ac_objext'
  9360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9361. (eval $ac_try) 2>&5
  9362. ac_status=$?
  9363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9364. (exit $ac_status); }; }; then
  9365. ac_header_compiler=yes
  9366. else
  9367. echo "$as_me: failed program was:" >&5
  9368. sed 's/^/| /' conftest.$ac_ext >&5
  9369. ac_header_compiler=no
  9370. fi
  9371. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9372. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9373. echo "${ECHO_T}$ac_header_compiler" >&6
  9374. # Is the header present?
  9375. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9376. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9377. cat >conftest.$ac_ext <<_ACEOF
  9378. /* confdefs.h. */
  9379. _ACEOF
  9380. cat confdefs.h >>conftest.$ac_ext
  9381. cat >>conftest.$ac_ext <<_ACEOF
  9382. /* end confdefs.h. */
  9383. #include <$ac_header>
  9384. _ACEOF
  9385. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9386. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9387. ac_status=$?
  9388. grep -v '^ *+' conftest.er1 >conftest.err
  9389. rm -f conftest.er1
  9390. cat conftest.err >&5
  9391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); } >/dev/null; then
  9393. if test -s conftest.err; then
  9394. ac_cpp_err=$ac_c_preproc_warn_flag
  9395. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9396. else
  9397. ac_cpp_err=
  9398. fi
  9399. else
  9400. ac_cpp_err=yes
  9401. fi
  9402. if test -z "$ac_cpp_err"; then
  9403. ac_header_preproc=yes
  9404. else
  9405. echo "$as_me: failed program was:" >&5
  9406. sed 's/^/| /' conftest.$ac_ext >&5
  9407. ac_header_preproc=no
  9408. fi
  9409. rm -f conftest.err conftest.$ac_ext
  9410. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9411. echo "${ECHO_T}$ac_header_preproc" >&6
  9412. # So? What about this header?
  9413. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9414. yes:no: )
  9415. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9416. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9417. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9418. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9419. ac_header_preproc=yes
  9420. ;;
  9421. no:yes:* )
  9422. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9423. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9424. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9425. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9426. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9427. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9428. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9429. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9430. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9431. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9432. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9433. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9434. (
  9435. cat <<\_ASBOX
  9436. ## ----------------------------------- ##
  9437. ## Report this to tujikawa@rednoah.com ##
  9438. ## ----------------------------------- ##
  9439. _ASBOX
  9440. ) |
  9441. sed "s/^/$as_me: WARNING: /" >&2
  9442. ;;
  9443. esac
  9444. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9445. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9447. echo $ECHO_N "(cached) $ECHO_C" >&6
  9448. else
  9449. eval "$as_ac_Header=\$ac_header_preproc"
  9450. fi
  9451. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9452. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9453. fi
  9454. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9455. cat >>confdefs.h <<_ACEOF
  9456. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9457. _ACEOF
  9458. fi
  9459. done
  9460. for ac_func in getpagesize
  9461. do
  9462. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9463. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9464. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9465. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9466. echo $ECHO_N "(cached) $ECHO_C" >&6
  9467. else
  9468. cat >conftest.$ac_ext <<_ACEOF
  9469. /* confdefs.h. */
  9470. _ACEOF
  9471. cat confdefs.h >>conftest.$ac_ext
  9472. cat >>conftest.$ac_ext <<_ACEOF
  9473. /* end confdefs.h. */
  9474. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9475. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9476. #define $ac_func innocuous_$ac_func
  9477. /* System header to define __stub macros and hopefully few prototypes,
  9478. which can conflict with char $ac_func (); below.
  9479. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9480. <limits.h> exists even on freestanding compilers. */
  9481. #ifdef __STDC__
  9482. # include <limits.h>
  9483. #else
  9484. # include <assert.h>
  9485. #endif
  9486. #undef $ac_func
  9487. /* Override any gcc2 internal prototype to avoid an error. */
  9488. #ifdef __cplusplus
  9489. extern "C"
  9490. {
  9491. #endif
  9492. /* We use char because int might match the return type of a gcc2
  9493. builtin and then its argument prototype would still apply. */
  9494. char $ac_func ();
  9495. /* The GNU C library defines this for functions which it implements
  9496. to always fail with ENOSYS. Some functions are actually named
  9497. something starting with __ and the normal name is an alias. */
  9498. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9499. choke me
  9500. #else
  9501. char (*f) () = $ac_func;
  9502. #endif
  9503. #ifdef __cplusplus
  9504. }
  9505. #endif
  9506. int
  9507. main ()
  9508. {
  9509. return f != $ac_func;
  9510. ;
  9511. return 0;
  9512. }
  9513. _ACEOF
  9514. rm -f conftest.$ac_objext conftest$ac_exeext
  9515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9516. (eval $ac_link) 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } &&
  9523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9525. (eval $ac_try) 2>&5
  9526. ac_status=$?
  9527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9528. (exit $ac_status); }; } &&
  9529. { ac_try='test -s conftest$ac_exeext'
  9530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9531. (eval $ac_try) 2>&5
  9532. ac_status=$?
  9533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9534. (exit $ac_status); }; }; then
  9535. eval "$as_ac_var=yes"
  9536. else
  9537. echo "$as_me: failed program was:" >&5
  9538. sed 's/^/| /' conftest.$ac_ext >&5
  9539. eval "$as_ac_var=no"
  9540. fi
  9541. rm -f conftest.err conftest.$ac_objext \
  9542. conftest$ac_exeext conftest.$ac_ext
  9543. fi
  9544. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9545. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9546. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9547. cat >>confdefs.h <<_ACEOF
  9548. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9549. _ACEOF
  9550. fi
  9551. done
  9552. echo "$as_me:$LINENO: checking for working mmap" >&5
  9553. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9554. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9555. echo $ECHO_N "(cached) $ECHO_C" >&6
  9556. else
  9557. if test "$cross_compiling" = yes; then
  9558. ac_cv_func_mmap_fixed_mapped=no
  9559. else
  9560. cat >conftest.$ac_ext <<_ACEOF
  9561. /* confdefs.h. */
  9562. _ACEOF
  9563. cat confdefs.h >>conftest.$ac_ext
  9564. cat >>conftest.$ac_ext <<_ACEOF
  9565. /* end confdefs.h. */
  9566. $ac_includes_default
  9567. /* malloc might have been renamed as rpl_malloc. */
  9568. #undef malloc
  9569. /* Thanks to Mike Haertel and Jim Avera for this test.
  9570. Here is a matrix of mmap possibilities:
  9571. mmap private not fixed
  9572. mmap private fixed at somewhere currently unmapped
  9573. mmap private fixed at somewhere already mapped
  9574. mmap shared not fixed
  9575. mmap shared fixed at somewhere currently unmapped
  9576. mmap shared fixed at somewhere already mapped
  9577. For private mappings, we should verify that changes cannot be read()
  9578. back from the file, nor mmap's back from the file at a different
  9579. address. (There have been systems where private was not correctly
  9580. implemented like the infamous i386 svr4.0, and systems where the
  9581. VM page cache was not coherent with the file system buffer cache
  9582. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9583. For shared mappings, we should conversely verify that changes get
  9584. propagated back to all the places they're supposed to be.
  9585. Grep wants private fixed already mapped.
  9586. The main things grep needs to know about mmap are:
  9587. * does it exist and is it safe to write into the mmap'd area
  9588. * how to use it (BSD variants) */
  9589. #include <fcntl.h>
  9590. #include <sys/mman.h>
  9591. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9592. char *malloc ();
  9593. #endif
  9594. /* This mess was copied from the GNU getpagesize.h. */
  9595. #if !HAVE_GETPAGESIZE
  9596. /* Assume that all systems that can run configure have sys/param.h. */
  9597. # if !HAVE_SYS_PARAM_H
  9598. # define HAVE_SYS_PARAM_H 1
  9599. # endif
  9600. # ifdef _SC_PAGESIZE
  9601. # define getpagesize() sysconf(_SC_PAGESIZE)
  9602. # else /* no _SC_PAGESIZE */
  9603. # if HAVE_SYS_PARAM_H
  9604. # include <sys/param.h>
  9605. # ifdef EXEC_PAGESIZE
  9606. # define getpagesize() EXEC_PAGESIZE
  9607. # else /* no EXEC_PAGESIZE */
  9608. # ifdef NBPG
  9609. # define getpagesize() NBPG * CLSIZE
  9610. # ifndef CLSIZE
  9611. # define CLSIZE 1
  9612. # endif /* no CLSIZE */
  9613. # else /* no NBPG */
  9614. # ifdef NBPC
  9615. # define getpagesize() NBPC
  9616. # else /* no NBPC */
  9617. # ifdef PAGESIZE
  9618. # define getpagesize() PAGESIZE
  9619. # endif /* PAGESIZE */
  9620. # endif /* no NBPC */
  9621. # endif /* no NBPG */
  9622. # endif /* no EXEC_PAGESIZE */
  9623. # else /* no HAVE_SYS_PARAM_H */
  9624. # define getpagesize() 8192 /* punt totally */
  9625. # endif /* no HAVE_SYS_PARAM_H */
  9626. # endif /* no _SC_PAGESIZE */
  9627. #endif /* no HAVE_GETPAGESIZE */
  9628. int
  9629. main ()
  9630. {
  9631. char *data, *data2, *data3;
  9632. int i, pagesize;
  9633. int fd;
  9634. pagesize = getpagesize ();
  9635. /* First, make a file with some known garbage in it. */
  9636. data = (char *) malloc (pagesize);
  9637. if (!data)
  9638. exit (1);
  9639. for (i = 0; i < pagesize; ++i)
  9640. *(data + i) = rand ();
  9641. umask (0);
  9642. fd = creat ("conftest.mmap", 0600);
  9643. if (fd < 0)
  9644. exit (1);
  9645. if (write (fd, data, pagesize) != pagesize)
  9646. exit (1);
  9647. close (fd);
  9648. /* Next, try to mmap the file at a fixed address which already has
  9649. something else allocated at it. If we can, also make sure that
  9650. we see the same garbage. */
  9651. fd = open ("conftest.mmap", O_RDWR);
  9652. if (fd < 0)
  9653. exit (1);
  9654. data2 = (char *) malloc (2 * pagesize);
  9655. if (!data2)
  9656. exit (1);
  9657. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9658. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9659. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9660. exit (1);
  9661. for (i = 0; i < pagesize; ++i)
  9662. if (*(data + i) != *(data2 + i))
  9663. exit (1);
  9664. /* Finally, make sure that changes to the mapped area do not
  9665. percolate back to the file as seen by read(). (This is a bug on
  9666. some variants of i386 svr4.0.) */
  9667. for (i = 0; i < pagesize; ++i)
  9668. *(data2 + i) = *(data2 + i) + 1;
  9669. data3 = (char *) malloc (pagesize);
  9670. if (!data3)
  9671. exit (1);
  9672. if (read (fd, data3, pagesize) != pagesize)
  9673. exit (1);
  9674. for (i = 0; i < pagesize; ++i)
  9675. if (*(data + i) != *(data3 + i))
  9676. exit (1);
  9677. close (fd);
  9678. exit (0);
  9679. }
  9680. _ACEOF
  9681. rm -f conftest$ac_exeext
  9682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9683. (eval $ac_link) 2>&5
  9684. ac_status=$?
  9685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9688. (eval $ac_try) 2>&5
  9689. ac_status=$?
  9690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691. (exit $ac_status); }; }; then
  9692. ac_cv_func_mmap_fixed_mapped=yes
  9693. else
  9694. echo "$as_me: program exited with status $ac_status" >&5
  9695. echo "$as_me: failed program was:" >&5
  9696. sed 's/^/| /' conftest.$ac_ext >&5
  9697. ( exit $ac_status )
  9698. ac_cv_func_mmap_fixed_mapped=no
  9699. fi
  9700. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9701. fi
  9702. fi
  9703. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9704. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9705. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9706. cat >>confdefs.h <<\_ACEOF
  9707. #define HAVE_MMAP 1
  9708. _ACEOF
  9709. fi
  9710. rm -f conftest.mmap
  9711. for ac_header in stdlib.h
  9712. do
  9713. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9714. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9715. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9716. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9717. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9718. echo $ECHO_N "(cached) $ECHO_C" >&6
  9719. fi
  9720. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9721. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9722. else
  9723. # Is the header compilable?
  9724. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9725. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9726. cat >conftest.$ac_ext <<_ACEOF
  9727. /* confdefs.h. */
  9728. _ACEOF
  9729. cat confdefs.h >>conftest.$ac_ext
  9730. cat >>conftest.$ac_ext <<_ACEOF
  9731. /* end confdefs.h. */
  9732. $ac_includes_default
  9733. #include <$ac_header>
  9734. _ACEOF
  9735. rm -f conftest.$ac_objext
  9736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9737. (eval $ac_compile) 2>conftest.er1
  9738. ac_status=$?
  9739. grep -v '^ *+' conftest.er1 >conftest.err
  9740. rm -f conftest.er1
  9741. cat conftest.err >&5
  9742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9743. (exit $ac_status); } &&
  9744. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9746. (eval $ac_try) 2>&5
  9747. ac_status=$?
  9748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); }; } &&
  9750. { ac_try='test -s conftest.$ac_objext'
  9751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9752. (eval $ac_try) 2>&5
  9753. ac_status=$?
  9754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9755. (exit $ac_status); }; }; then
  9756. ac_header_compiler=yes
  9757. else
  9758. echo "$as_me: failed program was:" >&5
  9759. sed 's/^/| /' conftest.$ac_ext >&5
  9760. ac_header_compiler=no
  9761. fi
  9762. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9763. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9764. echo "${ECHO_T}$ac_header_compiler" >&6
  9765. # Is the header present?
  9766. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9767. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9768. cat >conftest.$ac_ext <<_ACEOF
  9769. /* confdefs.h. */
  9770. _ACEOF
  9771. cat confdefs.h >>conftest.$ac_ext
  9772. cat >>conftest.$ac_ext <<_ACEOF
  9773. /* end confdefs.h. */
  9774. #include <$ac_header>
  9775. _ACEOF
  9776. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9777. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9778. ac_status=$?
  9779. grep -v '^ *+' conftest.er1 >conftest.err
  9780. rm -f conftest.er1
  9781. cat conftest.err >&5
  9782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9783. (exit $ac_status); } >/dev/null; then
  9784. if test -s conftest.err; then
  9785. ac_cpp_err=$ac_c_preproc_warn_flag
  9786. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9787. else
  9788. ac_cpp_err=
  9789. fi
  9790. else
  9791. ac_cpp_err=yes
  9792. fi
  9793. if test -z "$ac_cpp_err"; then
  9794. ac_header_preproc=yes
  9795. else
  9796. echo "$as_me: failed program was:" >&5
  9797. sed 's/^/| /' conftest.$ac_ext >&5
  9798. ac_header_preproc=no
  9799. fi
  9800. rm -f conftest.err conftest.$ac_ext
  9801. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9802. echo "${ECHO_T}$ac_header_preproc" >&6
  9803. # So? What about this header?
  9804. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9805. yes:no: )
  9806. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9807. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9809. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9810. ac_header_preproc=yes
  9811. ;;
  9812. no:yes:* )
  9813. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9814. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9815. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9816. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9817. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9818. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9819. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9820. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9821. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9822. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9823. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9824. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9825. (
  9826. cat <<\_ASBOX
  9827. ## ----------------------------------- ##
  9828. ## Report this to tujikawa@rednoah.com ##
  9829. ## ----------------------------------- ##
  9830. _ASBOX
  9831. ) |
  9832. sed "s/^/$as_me: WARNING: /" >&2
  9833. ;;
  9834. esac
  9835. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9836. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9837. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9838. echo $ECHO_N "(cached) $ECHO_C" >&6
  9839. else
  9840. eval "$as_ac_Header=\$ac_header_preproc"
  9841. fi
  9842. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9843. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9844. fi
  9845. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9846. cat >>confdefs.h <<_ACEOF
  9847. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9848. _ACEOF
  9849. fi
  9850. done
  9851. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9852. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9853. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9854. echo $ECHO_N "(cached) $ECHO_C" >&6
  9855. else
  9856. if test "$cross_compiling" = yes; then
  9857. ac_cv_func_realloc_0_nonnull=no
  9858. else
  9859. cat >conftest.$ac_ext <<_ACEOF
  9860. /* confdefs.h. */
  9861. _ACEOF
  9862. cat confdefs.h >>conftest.$ac_ext
  9863. cat >>conftest.$ac_ext <<_ACEOF
  9864. /* end confdefs.h. */
  9865. #if STDC_HEADERS || HAVE_STDLIB_H
  9866. # include <stdlib.h>
  9867. #else
  9868. char *realloc ();
  9869. #endif
  9870. int
  9871. main ()
  9872. {
  9873. exit (realloc (0, 0) ? 0 : 1);
  9874. ;
  9875. return 0;
  9876. }
  9877. _ACEOF
  9878. rm -f conftest$ac_exeext
  9879. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9880. (eval $ac_link) 2>&5
  9881. ac_status=$?
  9882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9883. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9885. (eval $ac_try) 2>&5
  9886. ac_status=$?
  9887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9888. (exit $ac_status); }; }; then
  9889. ac_cv_func_realloc_0_nonnull=yes
  9890. else
  9891. echo "$as_me: program exited with status $ac_status" >&5
  9892. echo "$as_me: failed program was:" >&5
  9893. sed 's/^/| /' conftest.$ac_ext >&5
  9894. ( exit $ac_status )
  9895. ac_cv_func_realloc_0_nonnull=no
  9896. fi
  9897. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9898. fi
  9899. fi
  9900. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9901. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9902. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9903. cat >>confdefs.h <<\_ACEOF
  9904. #define HAVE_REALLOC 1
  9905. _ACEOF
  9906. else
  9907. cat >>confdefs.h <<\_ACEOF
  9908. #define HAVE_REALLOC 0
  9909. _ACEOF
  9910. case $LIBOBJS in
  9911. "realloc.$ac_objext" | \
  9912. *" realloc.$ac_objext" | \
  9913. "realloc.$ac_objext "* | \
  9914. *" realloc.$ac_objext "* ) ;;
  9915. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9916. esac
  9917. cat >>confdefs.h <<\_ACEOF
  9918. #define realloc rpl_realloc
  9919. _ACEOF
  9920. fi
  9921. for ac_header in sys/select.h sys/socket.h
  9922. do
  9923. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9924. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9925. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9926. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9927. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9928. echo $ECHO_N "(cached) $ECHO_C" >&6
  9929. fi
  9930. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9931. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9932. else
  9933. # Is the header compilable?
  9934. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9935. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9936. cat >conftest.$ac_ext <<_ACEOF
  9937. /* confdefs.h. */
  9938. _ACEOF
  9939. cat confdefs.h >>conftest.$ac_ext
  9940. cat >>conftest.$ac_ext <<_ACEOF
  9941. /* end confdefs.h. */
  9942. $ac_includes_default
  9943. #include <$ac_header>
  9944. _ACEOF
  9945. rm -f conftest.$ac_objext
  9946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9947. (eval $ac_compile) 2>conftest.er1
  9948. ac_status=$?
  9949. grep -v '^ *+' conftest.er1 >conftest.err
  9950. rm -f conftest.er1
  9951. cat conftest.err >&5
  9952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); } &&
  9954. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9956. (eval $ac_try) 2>&5
  9957. ac_status=$?
  9958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9959. (exit $ac_status); }; } &&
  9960. { ac_try='test -s conftest.$ac_objext'
  9961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9962. (eval $ac_try) 2>&5
  9963. ac_status=$?
  9964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9965. (exit $ac_status); }; }; then
  9966. ac_header_compiler=yes
  9967. else
  9968. echo "$as_me: failed program was:" >&5
  9969. sed 's/^/| /' conftest.$ac_ext >&5
  9970. ac_header_compiler=no
  9971. fi
  9972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9973. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9974. echo "${ECHO_T}$ac_header_compiler" >&6
  9975. # Is the header present?
  9976. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9977. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9978. cat >conftest.$ac_ext <<_ACEOF
  9979. /* confdefs.h. */
  9980. _ACEOF
  9981. cat confdefs.h >>conftest.$ac_ext
  9982. cat >>conftest.$ac_ext <<_ACEOF
  9983. /* end confdefs.h. */
  9984. #include <$ac_header>
  9985. _ACEOF
  9986. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9987. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9988. ac_status=$?
  9989. grep -v '^ *+' conftest.er1 >conftest.err
  9990. rm -f conftest.er1
  9991. cat conftest.err >&5
  9992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9993. (exit $ac_status); } >/dev/null; then
  9994. if test -s conftest.err; then
  9995. ac_cpp_err=$ac_c_preproc_warn_flag
  9996. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9997. else
  9998. ac_cpp_err=
  9999. fi
  10000. else
  10001. ac_cpp_err=yes
  10002. fi
  10003. if test -z "$ac_cpp_err"; then
  10004. ac_header_preproc=yes
  10005. else
  10006. echo "$as_me: failed program was:" >&5
  10007. sed 's/^/| /' conftest.$ac_ext >&5
  10008. ac_header_preproc=no
  10009. fi
  10010. rm -f conftest.err conftest.$ac_ext
  10011. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10012. echo "${ECHO_T}$ac_header_preproc" >&6
  10013. # So? What about this header?
  10014. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10015. yes:no: )
  10016. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10017. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10018. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10019. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10020. ac_header_preproc=yes
  10021. ;;
  10022. no:yes:* )
  10023. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10024. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10025. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10026. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10027. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10028. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10029. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10030. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10031. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10032. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10033. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10034. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10035. (
  10036. cat <<\_ASBOX
  10037. ## ----------------------------------- ##
  10038. ## Report this to tujikawa@rednoah.com ##
  10039. ## ----------------------------------- ##
  10040. _ASBOX
  10041. ) |
  10042. sed "s/^/$as_me: WARNING: /" >&2
  10043. ;;
  10044. esac
  10045. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10046. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10047. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10048. echo $ECHO_N "(cached) $ECHO_C" >&6
  10049. else
  10050. eval "$as_ac_Header=\$ac_header_preproc"
  10051. fi
  10052. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10053. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10054. fi
  10055. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10056. cat >>confdefs.h <<_ACEOF
  10057. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10058. _ACEOF
  10059. fi
  10060. done
  10061. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10062. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10063. if test "${ac_cv_func_select_args+set}" = set; then
  10064. echo $ECHO_N "(cached) $ECHO_C" >&6
  10065. else
  10066. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10067. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10068. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10069. cat >conftest.$ac_ext <<_ACEOF
  10070. /* confdefs.h. */
  10071. _ACEOF
  10072. cat confdefs.h >>conftest.$ac_ext
  10073. cat >>conftest.$ac_ext <<_ACEOF
  10074. /* end confdefs.h. */
  10075. $ac_includes_default
  10076. #if HAVE_SYS_SELECT_H
  10077. # include <sys/select.h>
  10078. #endif
  10079. #if HAVE_SYS_SOCKET_H
  10080. # include <sys/socket.h>
  10081. #endif
  10082. int
  10083. main ()
  10084. {
  10085. extern int select ($ac_arg1,
  10086. $ac_arg234, $ac_arg234, $ac_arg234,
  10087. $ac_arg5);
  10088. ;
  10089. return 0;
  10090. }
  10091. _ACEOF
  10092. rm -f conftest.$ac_objext
  10093. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10094. (eval $ac_compile) 2>conftest.er1
  10095. ac_status=$?
  10096. grep -v '^ *+' conftest.er1 >conftest.err
  10097. rm -f conftest.er1
  10098. cat conftest.err >&5
  10099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10100. (exit $ac_status); } &&
  10101. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10103. (eval $ac_try) 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }; } &&
  10107. { ac_try='test -s conftest.$ac_objext'
  10108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10109. (eval $ac_try) 2>&5
  10110. ac_status=$?
  10111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10112. (exit $ac_status); }; }; then
  10113. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10114. else
  10115. echo "$as_me: failed program was:" >&5
  10116. sed 's/^/| /' conftest.$ac_ext >&5
  10117. fi
  10118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10119. done
  10120. done
  10121. done
  10122. # Provide a safe default value.
  10123. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10124. fi
  10125. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10126. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10127. ac_save_IFS=$IFS; IFS=','
  10128. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10129. IFS=$ac_save_IFS
  10130. shift
  10131. cat >>confdefs.h <<_ACEOF
  10132. #define SELECT_TYPE_ARG1 $1
  10133. _ACEOF
  10134. cat >>confdefs.h <<_ACEOF
  10135. #define SELECT_TYPE_ARG234 ($2)
  10136. _ACEOF
  10137. cat >>confdefs.h <<_ACEOF
  10138. #define SELECT_TYPE_ARG5 ($3)
  10139. _ACEOF
  10140. rm -f conftest*
  10141. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10142. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  10143. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10144. echo $ECHO_N "(cached) $ECHO_C" >&6
  10145. else
  10146. rm -f conftest.sym conftest.file
  10147. echo >conftest.file
  10148. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10149. if test "$cross_compiling" = yes; then
  10150. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10151. else
  10152. cat >conftest.$ac_ext <<_ACEOF
  10153. /* confdefs.h. */
  10154. _ACEOF
  10155. cat confdefs.h >>conftest.$ac_ext
  10156. cat >>conftest.$ac_ext <<_ACEOF
  10157. /* end confdefs.h. */
  10158. $ac_includes_default
  10159. int
  10160. main ()
  10161. {
  10162. struct stat sbuf;
  10163. /* Linux will dereference the symlink and fail.
  10164. That is better in the sense that it means we will not
  10165. have to compile and use the lstat wrapper. */
  10166. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  10167. ;
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. rm -f conftest$ac_exeext
  10172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10173. (eval $ac_link) 2>&5
  10174. ac_status=$?
  10175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10178. (eval $ac_try) 2>&5
  10179. ac_status=$?
  10180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10181. (exit $ac_status); }; }; then
  10182. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10183. else
  10184. echo "$as_me: program exited with status $ac_status" >&5
  10185. echo "$as_me: failed program was:" >&5
  10186. sed 's/^/| /' conftest.$ac_ext >&5
  10187. ( exit $ac_status )
  10188. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10189. fi
  10190. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10191. fi
  10192. else
  10193. # If the `ln -s' command failed, then we probably don't even
  10194. # have an lstat function.
  10195. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10196. fi
  10197. rm -f conftest.sym conftest.file
  10198. fi
  10199. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10200. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  10201. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10202. cat >>confdefs.h <<_ACEOF
  10203. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10204. _ACEOF
  10205. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10206. case $LIBOBJS in
  10207. "lstat.$ac_objext" | \
  10208. *" lstat.$ac_objext" | \
  10209. "lstat.$ac_objext "* | \
  10210. *" lstat.$ac_objext "* ) ;;
  10211. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  10212. esac
  10213. fi
  10214. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10215. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10216. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10217. echo $ECHO_N "(cached) $ECHO_C" >&6
  10218. else
  10219. if test "$cross_compiling" = yes; then
  10220. ac_cv_func_stat_empty_string_bug=yes
  10221. else
  10222. cat >conftest.$ac_ext <<_ACEOF
  10223. /* confdefs.h. */
  10224. _ACEOF
  10225. cat confdefs.h >>conftest.$ac_ext
  10226. cat >>conftest.$ac_ext <<_ACEOF
  10227. /* end confdefs.h. */
  10228. $ac_includes_default
  10229. int
  10230. main ()
  10231. {
  10232. struct stat sbuf;
  10233. exit (stat ("", &sbuf) ? 1 : 0);
  10234. ;
  10235. return 0;
  10236. }
  10237. _ACEOF
  10238. rm -f conftest$ac_exeext
  10239. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10240. (eval $ac_link) 2>&5
  10241. ac_status=$?
  10242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10243. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10245. (eval $ac_try) 2>&5
  10246. ac_status=$?
  10247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10248. (exit $ac_status); }; }; then
  10249. ac_cv_func_stat_empty_string_bug=yes
  10250. else
  10251. echo "$as_me: program exited with status $ac_status" >&5
  10252. echo "$as_me: failed program was:" >&5
  10253. sed 's/^/| /' conftest.$ac_ext >&5
  10254. ( exit $ac_status )
  10255. ac_cv_func_stat_empty_string_bug=no
  10256. fi
  10257. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10258. fi
  10259. fi
  10260. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10261. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10262. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10263. case $LIBOBJS in
  10264. "stat.$ac_objext" | \
  10265. *" stat.$ac_objext" | \
  10266. "stat.$ac_objext "* | \
  10267. *" stat.$ac_objext "* ) ;;
  10268. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10269. esac
  10270. cat >>confdefs.h <<_ACEOF
  10271. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10272. _ACEOF
  10273. fi
  10274. for ac_func in vprintf
  10275. do
  10276. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10277. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10278. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10279. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10280. echo $ECHO_N "(cached) $ECHO_C" >&6
  10281. else
  10282. cat >conftest.$ac_ext <<_ACEOF
  10283. /* confdefs.h. */
  10284. _ACEOF
  10285. cat confdefs.h >>conftest.$ac_ext
  10286. cat >>conftest.$ac_ext <<_ACEOF
  10287. /* end confdefs.h. */
  10288. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10289. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10290. #define $ac_func innocuous_$ac_func
  10291. /* System header to define __stub macros and hopefully few prototypes,
  10292. which can conflict with char $ac_func (); below.
  10293. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10294. <limits.h> exists even on freestanding compilers. */
  10295. #ifdef __STDC__
  10296. # include <limits.h>
  10297. #else
  10298. # include <assert.h>
  10299. #endif
  10300. #undef $ac_func
  10301. /* Override any gcc2 internal prototype to avoid an error. */
  10302. #ifdef __cplusplus
  10303. extern "C"
  10304. {
  10305. #endif
  10306. /* We use char because int might match the return type of a gcc2
  10307. builtin and then its argument prototype would still apply. */
  10308. char $ac_func ();
  10309. /* The GNU C library defines this for functions which it implements
  10310. to always fail with ENOSYS. Some functions are actually named
  10311. something starting with __ and the normal name is an alias. */
  10312. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10313. choke me
  10314. #else
  10315. char (*f) () = $ac_func;
  10316. #endif
  10317. #ifdef __cplusplus
  10318. }
  10319. #endif
  10320. int
  10321. main ()
  10322. {
  10323. return f != $ac_func;
  10324. ;
  10325. return 0;
  10326. }
  10327. _ACEOF
  10328. rm -f conftest.$ac_objext conftest$ac_exeext
  10329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10330. (eval $ac_link) 2>conftest.er1
  10331. ac_status=$?
  10332. grep -v '^ *+' conftest.er1 >conftest.err
  10333. rm -f conftest.er1
  10334. cat conftest.err >&5
  10335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10336. (exit $ac_status); } &&
  10337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10339. (eval $ac_try) 2>&5
  10340. ac_status=$?
  10341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10342. (exit $ac_status); }; } &&
  10343. { ac_try='test -s conftest$ac_exeext'
  10344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10345. (eval $ac_try) 2>&5
  10346. ac_status=$?
  10347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10348. (exit $ac_status); }; }; then
  10349. eval "$as_ac_var=yes"
  10350. else
  10351. echo "$as_me: failed program was:" >&5
  10352. sed 's/^/| /' conftest.$ac_ext >&5
  10353. eval "$as_ac_var=no"
  10354. fi
  10355. rm -f conftest.err conftest.$ac_objext \
  10356. conftest$ac_exeext conftest.$ac_ext
  10357. fi
  10358. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10359. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10360. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10361. cat >>confdefs.h <<_ACEOF
  10362. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10363. _ACEOF
  10364. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10365. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10366. if test "${ac_cv_func__doprnt+set}" = set; then
  10367. echo $ECHO_N "(cached) $ECHO_C" >&6
  10368. else
  10369. cat >conftest.$ac_ext <<_ACEOF
  10370. /* confdefs.h. */
  10371. _ACEOF
  10372. cat confdefs.h >>conftest.$ac_ext
  10373. cat >>conftest.$ac_ext <<_ACEOF
  10374. /* end confdefs.h. */
  10375. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10376. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10377. #define _doprnt innocuous__doprnt
  10378. /* System header to define __stub macros and hopefully few prototypes,
  10379. which can conflict with char _doprnt (); below.
  10380. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10381. <limits.h> exists even on freestanding compilers. */
  10382. #ifdef __STDC__
  10383. # include <limits.h>
  10384. #else
  10385. # include <assert.h>
  10386. #endif
  10387. #undef _doprnt
  10388. /* Override any gcc2 internal prototype to avoid an error. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. {
  10392. #endif
  10393. /* We use char because int might match the return type of a gcc2
  10394. builtin and then its argument prototype would still apply. */
  10395. char _doprnt ();
  10396. /* The GNU C library defines this for functions which it implements
  10397. to always fail with ENOSYS. Some functions are actually named
  10398. something starting with __ and the normal name is an alias. */
  10399. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10400. choke me
  10401. #else
  10402. char (*f) () = _doprnt;
  10403. #endif
  10404. #ifdef __cplusplus
  10405. }
  10406. #endif
  10407. int
  10408. main ()
  10409. {
  10410. return f != _doprnt;
  10411. ;
  10412. return 0;
  10413. }
  10414. _ACEOF
  10415. rm -f conftest.$ac_objext conftest$ac_exeext
  10416. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10417. (eval $ac_link) 2>conftest.er1
  10418. ac_status=$?
  10419. grep -v '^ *+' conftest.er1 >conftest.err
  10420. rm -f conftest.er1
  10421. cat conftest.err >&5
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); } &&
  10424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10426. (eval $ac_try) 2>&5
  10427. ac_status=$?
  10428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10429. (exit $ac_status); }; } &&
  10430. { ac_try='test -s conftest$ac_exeext'
  10431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10432. (eval $ac_try) 2>&5
  10433. ac_status=$?
  10434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10435. (exit $ac_status); }; }; then
  10436. ac_cv_func__doprnt=yes
  10437. else
  10438. echo "$as_me: failed program was:" >&5
  10439. sed 's/^/| /' conftest.$ac_ext >&5
  10440. ac_cv_func__doprnt=no
  10441. fi
  10442. rm -f conftest.err conftest.$ac_objext \
  10443. conftest$ac_exeext conftest.$ac_ext
  10444. fi
  10445. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10446. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10447. if test $ac_cv_func__doprnt = yes; then
  10448. cat >>confdefs.h <<\_ACEOF
  10449. #define HAVE_DOPRNT 1
  10450. _ACEOF
  10451. fi
  10452. fi
  10453. done
  10454. 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
  10455. do
  10456. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10457. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10458. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10459. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10460. echo $ECHO_N "(cached) $ECHO_C" >&6
  10461. else
  10462. cat >conftest.$ac_ext <<_ACEOF
  10463. /* confdefs.h. */
  10464. _ACEOF
  10465. cat confdefs.h >>conftest.$ac_ext
  10466. cat >>conftest.$ac_ext <<_ACEOF
  10467. /* end confdefs.h. */
  10468. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10469. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10470. #define $ac_func innocuous_$ac_func
  10471. /* System header to define __stub macros and hopefully few prototypes,
  10472. which can conflict with char $ac_func (); below.
  10473. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10474. <limits.h> exists even on freestanding compilers. */
  10475. #ifdef __STDC__
  10476. # include <limits.h>
  10477. #else
  10478. # include <assert.h>
  10479. #endif
  10480. #undef $ac_func
  10481. /* Override any gcc2 internal prototype to avoid an error. */
  10482. #ifdef __cplusplus
  10483. extern "C"
  10484. {
  10485. #endif
  10486. /* We use char because int might match the return type of a gcc2
  10487. builtin and then its argument prototype would still apply. */
  10488. char $ac_func ();
  10489. /* The GNU C library defines this for functions which it implements
  10490. to always fail with ENOSYS. Some functions are actually named
  10491. something starting with __ and the normal name is an alias. */
  10492. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10493. choke me
  10494. #else
  10495. char (*f) () = $ac_func;
  10496. #endif
  10497. #ifdef __cplusplus
  10498. }
  10499. #endif
  10500. int
  10501. main ()
  10502. {
  10503. return f != $ac_func;
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. rm -f conftest.$ac_objext conftest$ac_exeext
  10509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10510. (eval $ac_link) 2>conftest.er1
  10511. ac_status=$?
  10512. grep -v '^ *+' conftest.er1 >conftest.err
  10513. rm -f conftest.er1
  10514. cat conftest.err >&5
  10515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10516. (exit $ac_status); } &&
  10517. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10519. (eval $ac_try) 2>&5
  10520. ac_status=$?
  10521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10522. (exit $ac_status); }; } &&
  10523. { ac_try='test -s conftest$ac_exeext'
  10524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10525. (eval $ac_try) 2>&5
  10526. ac_status=$?
  10527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10528. (exit $ac_status); }; }; then
  10529. eval "$as_ac_var=yes"
  10530. else
  10531. echo "$as_me: failed program was:" >&5
  10532. sed 's/^/| /' conftest.$ac_ext >&5
  10533. eval "$as_ac_var=no"
  10534. fi
  10535. rm -f conftest.err conftest.$ac_objext \
  10536. conftest$ac_exeext conftest.$ac_ext
  10537. fi
  10538. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10539. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10540. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10541. cat >>confdefs.h <<_ACEOF
  10542. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10543. _ACEOF
  10544. fi
  10545. done
  10546. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  10547. cat >confcache <<\_ACEOF
  10548. # This file is a shell script that caches the results of configure
  10549. # tests run on this system so they can be shared between configure
  10550. # scripts and configure runs, see configure's option --config-cache.
  10551. # It is not useful on other systems. If it contains results you don't
  10552. # want to keep, you may remove or edit it.
  10553. #
  10554. # config.status only pays attention to the cache file if you give it
  10555. # the --recheck option to rerun configure.
  10556. #
  10557. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10558. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10559. # following values.
  10560. _ACEOF
  10561. # The following way of writing the cache mishandles newlines in values,
  10562. # but we know of no workaround that is simple, portable, and efficient.
  10563. # So, don't put newlines in cache variables' values.
  10564. # Ultrix sh set writes to stderr and can't be redirected directly,
  10565. # and sets the high bit in the cache file unless we assign to the vars.
  10566. {
  10567. (set) 2>&1 |
  10568. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10569. *ac_space=\ *)
  10570. # `set' does not quote correctly, so add quotes (double-quote
  10571. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10572. sed -n \
  10573. "s/'/'\\\\''/g;
  10574. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10575. ;;
  10576. *)
  10577. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10578. sed -n \
  10579. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10580. ;;
  10581. esac;
  10582. } |
  10583. sed '
  10584. t clear
  10585. : clear
  10586. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10587. t end
  10588. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10589. : end' >>confcache
  10590. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10591. if test -w $cache_file; then
  10592. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10593. cat confcache >$cache_file
  10594. else
  10595. echo "not updating unwritable cache $cache_file"
  10596. fi
  10597. fi
  10598. rm -f confcache
  10599. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10600. # Let make expand exec_prefix.
  10601. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10602. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10603. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10604. # trailing colons and then remove the whole line if VPATH becomes empty
  10605. # (actually we leave an empty line to preserve line numbers).
  10606. if test "x$srcdir" = x.; then
  10607. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10608. s/:*\$(srcdir):*/:/;
  10609. s/:*\${srcdir}:*/:/;
  10610. s/:*@srcdir@:*/:/;
  10611. s/^\([^=]*=[ ]*\):*/\1/;
  10612. s/:*$//;
  10613. s/^[^=]*=[ ]*$//;
  10614. }'
  10615. fi
  10616. DEFS=-DHAVE_CONFIG_H
  10617. ac_libobjs=
  10618. ac_ltlibobjs=
  10619. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10620. # 1. Remove the extension, and $U if already installed.
  10621. ac_i=`echo "$ac_i" |
  10622. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10623. # 2. Add them.
  10624. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10625. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10626. done
  10627. LIBOBJS=$ac_libobjs
  10628. LTLIBOBJS=$ac_ltlibobjs
  10629. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10630. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10631. Usually this means the macro was only invoked conditionally." >&5
  10632. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10633. Usually this means the macro was only invoked conditionally." >&2;}
  10634. { (exit 1); exit 1; }; }
  10635. fi
  10636. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10637. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10638. Usually this means the macro was only invoked conditionally." >&5
  10639. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10640. Usually this means the macro was only invoked conditionally." >&2;}
  10641. { (exit 1); exit 1; }; }
  10642. fi
  10643. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10644. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10645. Usually this means the macro was only invoked conditionally." >&5
  10646. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10647. Usually this means the macro was only invoked conditionally." >&2;}
  10648. { (exit 1); exit 1; }; }
  10649. fi
  10650. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10651. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10652. Usually this means the macro was only invoked conditionally." >&5
  10653. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10654. Usually this means the macro was only invoked conditionally." >&2;}
  10655. { (exit 1); exit 1; }; }
  10656. fi
  10657. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10658. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10659. Usually this means the macro was only invoked conditionally." >&5
  10660. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10661. Usually this means the macro was only invoked conditionally." >&2;}
  10662. { (exit 1); exit 1; }; }
  10663. fi
  10664. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10665. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10666. Usually this means the macro was only invoked conditionally." >&5
  10667. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10668. Usually this means the macro was only invoked conditionally." >&2;}
  10669. { (exit 1); exit 1; }; }
  10670. fi
  10671. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10672. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10673. Usually this means the macro was only invoked conditionally." >&5
  10674. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10675. Usually this means the macro was only invoked conditionally." >&2;}
  10676. { (exit 1); exit 1; }; }
  10677. fi
  10678. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  10679. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10680. Usually this means the macro was only invoked conditionally." >&5
  10681. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10682. Usually this means the macro was only invoked conditionally." >&2;}
  10683. { (exit 1); exit 1; }; }
  10684. fi
  10685. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  10686. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10687. Usually this means the macro was only invoked conditionally." >&5
  10688. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10689. Usually this means the macro was only invoked conditionally." >&2;}
  10690. { (exit 1); exit 1; }; }
  10691. fi
  10692. : ${CONFIG_STATUS=./config.status}
  10693. ac_clean_files_save=$ac_clean_files
  10694. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10695. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10696. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10697. cat >$CONFIG_STATUS <<_ACEOF
  10698. #! $SHELL
  10699. # Generated by $as_me.
  10700. # Run this file to recreate the current configuration.
  10701. # Compiler output produced by configure, useful for debugging
  10702. # configure, is in config.log if it exists.
  10703. debug=false
  10704. ac_cs_recheck=false
  10705. ac_cs_silent=false
  10706. SHELL=\${CONFIG_SHELL-$SHELL}
  10707. _ACEOF
  10708. cat >>$CONFIG_STATUS <<\_ACEOF
  10709. ## --------------------- ##
  10710. ## M4sh Initialization. ##
  10711. ## --------------------- ##
  10712. # Be Bourne compatible
  10713. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10714. emulate sh
  10715. NULLCMD=:
  10716. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10717. # is contrary to our usage. Disable this feature.
  10718. alias -g '${1+"$@"}'='"$@"'
  10719. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10720. set -o posix
  10721. fi
  10722. DUALCASE=1; export DUALCASE # for MKS sh
  10723. # Support unset when possible.
  10724. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10725. as_unset=unset
  10726. else
  10727. as_unset=false
  10728. fi
  10729. # Work around bugs in pre-3.0 UWIN ksh.
  10730. $as_unset ENV MAIL MAILPATH
  10731. PS1='$ '
  10732. PS2='> '
  10733. PS4='+ '
  10734. # NLS nuisances.
  10735. for as_var in \
  10736. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10737. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10738. LC_TELEPHONE LC_TIME
  10739. do
  10740. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10741. eval $as_var=C; export $as_var
  10742. else
  10743. $as_unset $as_var
  10744. fi
  10745. done
  10746. # Required to use basename.
  10747. if expr a : '\(a\)' >/dev/null 2>&1; then
  10748. as_expr=expr
  10749. else
  10750. as_expr=false
  10751. fi
  10752. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10753. as_basename=basename
  10754. else
  10755. as_basename=false
  10756. fi
  10757. # Name of the executable.
  10758. as_me=`$as_basename "$0" ||
  10759. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10760. X"$0" : 'X\(//\)$' \| \
  10761. X"$0" : 'X\(/\)$' \| \
  10762. . : '\(.\)' 2>/dev/null ||
  10763. echo X/"$0" |
  10764. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10765. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10766. /^X\/\(\/\).*/{ s//\1/; q; }
  10767. s/.*/./; q'`
  10768. # PATH needs CR, and LINENO needs CR and PATH.
  10769. # Avoid depending upon Character Ranges.
  10770. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10771. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10772. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10773. as_cr_digits='0123456789'
  10774. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10775. # The user is always right.
  10776. if test "${PATH_SEPARATOR+set}" != set; then
  10777. echo "#! /bin/sh" >conf$$.sh
  10778. echo "exit 0" >>conf$$.sh
  10779. chmod +x conf$$.sh
  10780. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10781. PATH_SEPARATOR=';'
  10782. else
  10783. PATH_SEPARATOR=:
  10784. fi
  10785. rm -f conf$$.sh
  10786. fi
  10787. as_lineno_1=$LINENO
  10788. as_lineno_2=$LINENO
  10789. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10790. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10791. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10792. # Find who we are. Look in the path if we contain no path at all
  10793. # relative or not.
  10794. case $0 in
  10795. *[\\/]* ) as_myself=$0 ;;
  10796. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10797. for as_dir in $PATH
  10798. do
  10799. IFS=$as_save_IFS
  10800. test -z "$as_dir" && as_dir=.
  10801. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10802. done
  10803. ;;
  10804. esac
  10805. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10806. # in which case we are not to be found in the path.
  10807. if test "x$as_myself" = x; then
  10808. as_myself=$0
  10809. fi
  10810. if test ! -f "$as_myself"; then
  10811. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10812. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10813. { (exit 1); exit 1; }; }
  10814. fi
  10815. case $CONFIG_SHELL in
  10816. '')
  10817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10818. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10819. do
  10820. IFS=$as_save_IFS
  10821. test -z "$as_dir" && as_dir=.
  10822. for as_base in sh bash ksh sh5; do
  10823. case $as_dir in
  10824. /*)
  10825. if ("$as_dir/$as_base" -c '
  10826. as_lineno_1=$LINENO
  10827. as_lineno_2=$LINENO
  10828. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10829. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10830. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10831. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10832. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10833. CONFIG_SHELL=$as_dir/$as_base
  10834. export CONFIG_SHELL
  10835. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10836. fi;;
  10837. esac
  10838. done
  10839. done
  10840. ;;
  10841. esac
  10842. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10843. # uniformly replaced by the line number. The first 'sed' inserts a
  10844. # line-number line before each line; the second 'sed' does the real
  10845. # work. The second script uses 'N' to pair each line-number line
  10846. # with the numbered line, and appends trailing '-' during
  10847. # substitution so that $LINENO is not a special case at line end.
  10848. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10849. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10850. sed '=' <$as_myself |
  10851. sed '
  10852. N
  10853. s,$,-,
  10854. : loop
  10855. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10856. t loop
  10857. s,-$,,
  10858. s,^['$as_cr_digits']*\n,,
  10859. ' >$as_me.lineno &&
  10860. chmod +x $as_me.lineno ||
  10861. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10862. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10863. { (exit 1); exit 1; }; }
  10864. # Don't try to exec as it changes $[0], causing all sort of problems
  10865. # (the dirname of $[0] is not the place where we might find the
  10866. # original and so on. Autoconf is especially sensible to this).
  10867. . ./$as_me.lineno
  10868. # Exit status is that of the last command.
  10869. exit
  10870. }
  10871. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10872. *c*,-n*) ECHO_N= ECHO_C='
  10873. ' ECHO_T=' ' ;;
  10874. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10875. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10876. esac
  10877. if expr a : '\(a\)' >/dev/null 2>&1; then
  10878. as_expr=expr
  10879. else
  10880. as_expr=false
  10881. fi
  10882. rm -f conf$$ conf$$.exe conf$$.file
  10883. echo >conf$$.file
  10884. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10885. # We could just check for DJGPP; but this test a) works b) is more generic
  10886. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10887. if test -f conf$$.exe; then
  10888. # Don't use ln at all; we don't have any links
  10889. as_ln_s='cp -p'
  10890. else
  10891. as_ln_s='ln -s'
  10892. fi
  10893. elif ln conf$$.file conf$$ 2>/dev/null; then
  10894. as_ln_s=ln
  10895. else
  10896. as_ln_s='cp -p'
  10897. fi
  10898. rm -f conf$$ conf$$.exe conf$$.file
  10899. if mkdir -p . 2>/dev/null; then
  10900. as_mkdir_p=:
  10901. else
  10902. test -d ./-p && rmdir ./-p
  10903. as_mkdir_p=false
  10904. fi
  10905. as_executable_p="test -f"
  10906. # Sed expression to map a string onto a valid CPP name.
  10907. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10908. # Sed expression to map a string onto a valid variable name.
  10909. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10910. # IFS
  10911. # We need space, tab and new line, in precisely that order.
  10912. as_nl='
  10913. '
  10914. IFS=" $as_nl"
  10915. # CDPATH.
  10916. $as_unset CDPATH
  10917. exec 6>&1
  10918. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10919. # report actual input values of CONFIG_FILES etc. instead of their
  10920. # values after options handling. Logging --version etc. is OK.
  10921. exec 5>>config.log
  10922. {
  10923. echo
  10924. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10925. ## Running $as_me. ##
  10926. _ASBOX
  10927. } >&5
  10928. cat >&5 <<_CSEOF
  10929. This file was extended by aria2c $as_me 0.8.1, which was
  10930. generated by GNU Autoconf 2.59. Invocation command line was
  10931. CONFIG_FILES = $CONFIG_FILES
  10932. CONFIG_HEADERS = $CONFIG_HEADERS
  10933. CONFIG_LINKS = $CONFIG_LINKS
  10934. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10935. $ $0 $@
  10936. _CSEOF
  10937. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10938. echo >&5
  10939. _ACEOF
  10940. # Files that config.status was made for.
  10941. if test -n "$ac_config_files"; then
  10942. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10943. fi
  10944. if test -n "$ac_config_headers"; then
  10945. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10946. fi
  10947. if test -n "$ac_config_links"; then
  10948. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10949. fi
  10950. if test -n "$ac_config_commands"; then
  10951. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10952. fi
  10953. cat >>$CONFIG_STATUS <<\_ACEOF
  10954. ac_cs_usage="\
  10955. \`$as_me' instantiates files from templates according to the
  10956. current configuration.
  10957. Usage: $0 [OPTIONS] [FILE]...
  10958. -h, --help print this help, then exit
  10959. -V, --version print version number, then exit
  10960. -q, --quiet do not print progress messages
  10961. -d, --debug don't remove temporary files
  10962. --recheck update $as_me by reconfiguring in the same conditions
  10963. --file=FILE[:TEMPLATE]
  10964. instantiate the configuration file FILE
  10965. --header=FILE[:TEMPLATE]
  10966. instantiate the configuration header FILE
  10967. Configuration files:
  10968. $config_files
  10969. Configuration headers:
  10970. $config_headers
  10971. Configuration commands:
  10972. $config_commands
  10973. Report bugs to <bug-autoconf@gnu.org>."
  10974. _ACEOF
  10975. cat >>$CONFIG_STATUS <<_ACEOF
  10976. ac_cs_version="\\
  10977. aria2c config.status 0.8.1
  10978. configured by $0, generated by GNU Autoconf 2.59,
  10979. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10980. Copyright (C) 2003 Free Software Foundation, Inc.
  10981. This config.status script is free software; the Free Software Foundation
  10982. gives unlimited permission to copy, distribute and modify it."
  10983. srcdir=$srcdir
  10984. INSTALL="$INSTALL"
  10985. _ACEOF
  10986. cat >>$CONFIG_STATUS <<\_ACEOF
  10987. # If no file are specified by the user, then we need to provide default
  10988. # value. By we need to know if files were specified by the user.
  10989. ac_need_defaults=:
  10990. while test $# != 0
  10991. do
  10992. case $1 in
  10993. --*=*)
  10994. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10995. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10996. ac_shift=:
  10997. ;;
  10998. -*)
  10999. ac_option=$1
  11000. ac_optarg=$2
  11001. ac_shift=shift
  11002. ;;
  11003. *) # This is not an option, so the user has probably given explicit
  11004. # arguments.
  11005. ac_option=$1
  11006. ac_need_defaults=false;;
  11007. esac
  11008. case $ac_option in
  11009. # Handling of the options.
  11010. _ACEOF
  11011. cat >>$CONFIG_STATUS <<\_ACEOF
  11012. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11013. ac_cs_recheck=: ;;
  11014. --version | --vers* | -V )
  11015. echo "$ac_cs_version"; exit 0 ;;
  11016. --he | --h)
  11017. # Conflict between --help and --header
  11018. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11019. Try \`$0 --help' for more information." >&5
  11020. echo "$as_me: error: ambiguous option: $1
  11021. Try \`$0 --help' for more information." >&2;}
  11022. { (exit 1); exit 1; }; };;
  11023. --help | --hel | -h )
  11024. echo "$ac_cs_usage"; exit 0 ;;
  11025. --debug | --d* | -d )
  11026. debug=: ;;
  11027. --file | --fil | --fi | --f )
  11028. $ac_shift
  11029. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11030. ac_need_defaults=false;;
  11031. --header | --heade | --head | --hea )
  11032. $ac_shift
  11033. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11034. ac_need_defaults=false;;
  11035. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11036. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11037. ac_cs_silent=: ;;
  11038. # This is an error.
  11039. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11040. Try \`$0 --help' for more information." >&5
  11041. echo "$as_me: error: unrecognized option: $1
  11042. Try \`$0 --help' for more information." >&2;}
  11043. { (exit 1); exit 1; }; } ;;
  11044. *) ac_config_targets="$ac_config_targets $1" ;;
  11045. esac
  11046. shift
  11047. done
  11048. ac_configure_extra_args=
  11049. if $ac_cs_silent; then
  11050. exec 6>/dev/null
  11051. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11052. fi
  11053. _ACEOF
  11054. cat >>$CONFIG_STATUS <<_ACEOF
  11055. if \$ac_cs_recheck; then
  11056. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11057. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11058. fi
  11059. _ACEOF
  11060. cat >>$CONFIG_STATUS <<_ACEOF
  11061. #
  11062. # INIT-COMMANDS section.
  11063. #
  11064. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11065. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11066. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11067. # from automake.
  11068. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11069. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11070. LINGUAS="${LINGUAS-%UNSET%}"
  11071. _ACEOF
  11072. cat >>$CONFIG_STATUS <<\_ACEOF
  11073. for ac_config_target in $ac_config_targets
  11074. do
  11075. case "$ac_config_target" in
  11076. # Handling of arguments.
  11077. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11078. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11079. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  11080. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11081. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11082. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  11083. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11084. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11085. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11086. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11087. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11088. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11089. { (exit 1); exit 1; }; };;
  11090. esac
  11091. done
  11092. # If the user did not use the arguments to specify the items to instantiate,
  11093. # then the envvar interface is used. Set only those that are not.
  11094. # We use the long form for the default assignment because of an extremely
  11095. # bizarre bug on SunOS 4.1.3.
  11096. if $ac_need_defaults; then
  11097. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11098. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11099. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11100. fi
  11101. # Have a temporary directory for convenience. Make it in the build tree
  11102. # simply because there is no reason to put it here, and in addition,
  11103. # creating and moving files from /tmp can sometimes cause problems.
  11104. # Create a temporary directory, and hook for its removal unless debugging.
  11105. $debug ||
  11106. {
  11107. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11108. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11109. }
  11110. # Create a (secure) tmp directory for tmp files.
  11111. {
  11112. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11113. test -n "$tmp" && test -d "$tmp"
  11114. } ||
  11115. {
  11116. tmp=./confstat$$-$RANDOM
  11117. (umask 077 && mkdir $tmp)
  11118. } ||
  11119. {
  11120. echo "$me: cannot create a temporary directory in ." >&2
  11121. { (exit 1); exit 1; }
  11122. }
  11123. _ACEOF
  11124. cat >>$CONFIG_STATUS <<_ACEOF
  11125. #
  11126. # CONFIG_FILES section.
  11127. #
  11128. # No need to generate the scripts if there are no CONFIG_FILES.
  11129. # This happens for instance when ./config.status config.h
  11130. if test -n "\$CONFIG_FILES"; then
  11131. # Protect against being on the right side of a sed subst in config.status.
  11132. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11133. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11134. s,@SHELL@,$SHELL,;t t
  11135. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11136. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11137. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11138. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11139. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11140. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11141. s,@exec_prefix@,$exec_prefix,;t t
  11142. s,@prefix@,$prefix,;t t
  11143. s,@program_transform_name@,$program_transform_name,;t t
  11144. s,@bindir@,$bindir,;t t
  11145. s,@sbindir@,$sbindir,;t t
  11146. s,@libexecdir@,$libexecdir,;t t
  11147. s,@datadir@,$datadir,;t t
  11148. s,@sysconfdir@,$sysconfdir,;t t
  11149. s,@sharedstatedir@,$sharedstatedir,;t t
  11150. s,@localstatedir@,$localstatedir,;t t
  11151. s,@libdir@,$libdir,;t t
  11152. s,@includedir@,$includedir,;t t
  11153. s,@oldincludedir@,$oldincludedir,;t t
  11154. s,@infodir@,$infodir,;t t
  11155. s,@mandir@,$mandir,;t t
  11156. s,@build_alias@,$build_alias,;t t
  11157. s,@host_alias@,$host_alias,;t t
  11158. s,@target_alias@,$target_alias,;t t
  11159. s,@DEFS@,$DEFS,;t t
  11160. s,@ECHO_C@,$ECHO_C,;t t
  11161. s,@ECHO_N@,$ECHO_N,;t t
  11162. s,@ECHO_T@,$ECHO_T,;t t
  11163. s,@LIBS@,$LIBS,;t t
  11164. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11165. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11166. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11167. s,@CYGPATH_W@,$CYGPATH_W,;t t
  11168. s,@PACKAGE@,$PACKAGE,;t t
  11169. s,@VERSION@,$VERSION,;t t
  11170. s,@ACLOCAL@,$ACLOCAL,;t t
  11171. s,@AUTOCONF@,$AUTOCONF,;t t
  11172. s,@AUTOMAKE@,$AUTOMAKE,;t t
  11173. s,@AUTOHEADER@,$AUTOHEADER,;t t
  11174. s,@MAKEINFO@,$MAKEINFO,;t t
  11175. s,@install_sh@,$install_sh,;t t
  11176. s,@STRIP@,$STRIP,;t t
  11177. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11178. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  11179. s,@mkdir_p@,$mkdir_p,;t t
  11180. s,@AWK@,$AWK,;t t
  11181. s,@SET_MAKE@,$SET_MAKE,;t t
  11182. s,@am__leading_dot@,$am__leading_dot,;t t
  11183. s,@AMTAR@,$AMTAR,;t t
  11184. s,@am__tar@,$am__tar,;t t
  11185. s,@am__untar@,$am__untar,;t t
  11186. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  11187. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  11188. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  11189. s,@localedir@,$localedir,;t t
  11190. s,@CXX@,$CXX,;t t
  11191. s,@CXXFLAGS@,$CXXFLAGS,;t t
  11192. s,@LDFLAGS@,$LDFLAGS,;t t
  11193. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11194. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  11195. s,@EXEEXT@,$EXEEXT,;t t
  11196. s,@OBJEXT@,$OBJEXT,;t t
  11197. s,@DEPDIR@,$DEPDIR,;t t
  11198. s,@am__include@,$am__include,;t t
  11199. s,@am__quote@,$am__quote,;t t
  11200. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  11201. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  11202. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  11203. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  11204. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  11205. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  11206. s,@CC@,$CC,;t t
  11207. s,@CFLAGS@,$CFLAGS,;t t
  11208. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11209. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11210. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  11211. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  11212. s,@RANLIB@,$RANLIB,;t t
  11213. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11214. s,@YACC@,$YACC,;t t
  11215. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  11216. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  11217. s,@XML_LIBS@,$XML_LIBS,;t t
  11218. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  11219. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  11220. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  11221. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  11222. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  11223. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  11224. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  11225. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  11226. s,@LIBCARES_LIBS@,$LIBCARES_LIBS,;t t
  11227. s,@LIBCARES_CPPFLAGS@,$LIBCARES_CPPFLAGS,;t t
  11228. s,@LIBARES_LIBS@,$LIBARES_LIBS,;t t
  11229. s,@LIBARES_CPPFLAGS@,$LIBARES_CPPFLAGS,;t t
  11230. s,@ENABLE_BITTORRENT_TRUE@,$ENABLE_BITTORRENT_TRUE,;t t
  11231. s,@ENABLE_BITTORRENT_FALSE@,$ENABLE_BITTORRENT_FALSE,;t t
  11232. s,@ENABLE_METALINK_TRUE@,$ENABLE_METALINK_TRUE,;t t
  11233. s,@ENABLE_METALINK_FALSE@,$ENABLE_METALINK_FALSE,;t t
  11234. s,@ENABLE_ASYNC_DNS_TRUE@,$ENABLE_ASYNC_DNS_TRUE,;t t
  11235. s,@ENABLE_ASYNC_DNS_FALSE@,$ENABLE_ASYNC_DNS_FALSE,;t t
  11236. s,@ALLOCA@,$ALLOCA,;t t
  11237. s,@CPP@,$CPP,;t t
  11238. s,@EGREP@,$EGREP,;t t
  11239. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  11240. s,@USE_NLS@,$USE_NLS,;t t
  11241. s,@MSGFMT@,$MSGFMT,;t t
  11242. s,@GMSGFMT@,$GMSGFMT,;t t
  11243. s,@XGETTEXT@,$XGETTEXT,;t t
  11244. s,@MSGMERGE@,$MSGMERGE,;t t
  11245. s,@build@,$build,;t t
  11246. s,@build_cpu@,$build_cpu,;t t
  11247. s,@build_vendor@,$build_vendor,;t t
  11248. s,@build_os@,$build_os,;t t
  11249. s,@host@,$host,;t t
  11250. s,@host_cpu@,$host_cpu,;t t
  11251. s,@host_vendor@,$host_vendor,;t t
  11252. s,@host_os@,$host_os,;t t
  11253. s,@GLIBC21@,$GLIBC21,;t t
  11254. s,@LIBICONV@,$LIBICONV,;t t
  11255. s,@LTLIBICONV@,$LTLIBICONV,;t t
  11256. s,@INTLBISON@,$INTLBISON,;t t
  11257. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  11258. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  11259. s,@CATOBJEXT@,$CATOBJEXT,;t t
  11260. s,@DATADIRNAME@,$DATADIRNAME,;t t
  11261. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  11262. s,@GENCAT@,$GENCAT,;t t
  11263. s,@INTLOBJS@,$INTLOBJS,;t t
  11264. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  11265. s,@INTLLIBS@,$INTLLIBS,;t t
  11266. s,@LIBINTL@,$LIBINTL,;t t
  11267. s,@LTLIBINTL@,$LTLIBINTL,;t t
  11268. s,@POSUB@,$POSUB,;t t
  11269. s,@LIBOBJS@,$LIBOBJS,;t t
  11270. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11271. CEOF
  11272. _ACEOF
  11273. cat >>$CONFIG_STATUS <<\_ACEOF
  11274. # Split the substitutions into bite-sized pieces for seds with
  11275. # small command number limits, like on Digital OSF/1 and HP-UX.
  11276. ac_max_sed_lines=48
  11277. ac_sed_frag=1 # Number of current file.
  11278. ac_beg=1 # First line for current file.
  11279. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11280. ac_more_lines=:
  11281. ac_sed_cmds=
  11282. while $ac_more_lines; do
  11283. if test $ac_beg -gt 1; then
  11284. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11285. else
  11286. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11287. fi
  11288. if test ! -s $tmp/subs.frag; then
  11289. ac_more_lines=false
  11290. else
  11291. # The purpose of the label and of the branching condition is to
  11292. # speed up the sed processing (if there are no `@' at all, there
  11293. # is no need to browse any of the substitutions).
  11294. # These are the two extra sed commands mentioned above.
  11295. (echo ':t
  11296. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11297. if test -z "$ac_sed_cmds"; then
  11298. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11299. else
  11300. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11301. fi
  11302. ac_sed_frag=`expr $ac_sed_frag + 1`
  11303. ac_beg=$ac_end
  11304. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11305. fi
  11306. done
  11307. if test -z "$ac_sed_cmds"; then
  11308. ac_sed_cmds=cat
  11309. fi
  11310. fi # test -n "$CONFIG_FILES"
  11311. _ACEOF
  11312. cat >>$CONFIG_STATUS <<\_ACEOF
  11313. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11314. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11315. case $ac_file in
  11316. - | *:- | *:-:* ) # input from stdin
  11317. cat >$tmp/stdin
  11318. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11319. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11320. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11321. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11322. * ) ac_file_in=$ac_file.in ;;
  11323. esac
  11324. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11325. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11326. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11327. X"$ac_file" : 'X\(//\)[^/]' \| \
  11328. X"$ac_file" : 'X\(//\)$' \| \
  11329. X"$ac_file" : 'X\(/\)' \| \
  11330. . : '\(.\)' 2>/dev/null ||
  11331. echo X"$ac_file" |
  11332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11333. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11334. /^X\(\/\/\)$/{ s//\1/; q; }
  11335. /^X\(\/\).*/{ s//\1/; q; }
  11336. s/.*/./; q'`
  11337. { if $as_mkdir_p; then
  11338. mkdir -p "$ac_dir"
  11339. else
  11340. as_dir="$ac_dir"
  11341. as_dirs=
  11342. while test ! -d "$as_dir"; do
  11343. as_dirs="$as_dir $as_dirs"
  11344. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11345. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11346. X"$as_dir" : 'X\(//\)[^/]' \| \
  11347. X"$as_dir" : 'X\(//\)$' \| \
  11348. X"$as_dir" : 'X\(/\)' \| \
  11349. . : '\(.\)' 2>/dev/null ||
  11350. echo X"$as_dir" |
  11351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11352. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11353. /^X\(\/\/\)$/{ s//\1/; q; }
  11354. /^X\(\/\).*/{ s//\1/; q; }
  11355. s/.*/./; q'`
  11356. done
  11357. test ! -n "$as_dirs" || mkdir $as_dirs
  11358. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11359. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11360. { (exit 1); exit 1; }; }; }
  11361. ac_builddir=.
  11362. if test "$ac_dir" != .; then
  11363. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11364. # A "../" for each directory in $ac_dir_suffix.
  11365. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11366. else
  11367. ac_dir_suffix= ac_top_builddir=
  11368. fi
  11369. case $srcdir in
  11370. .) # No --srcdir option. We are building in place.
  11371. ac_srcdir=.
  11372. if test -z "$ac_top_builddir"; then
  11373. ac_top_srcdir=.
  11374. else
  11375. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11376. fi ;;
  11377. [\\/]* | ?:[\\/]* ) # Absolute path.
  11378. ac_srcdir=$srcdir$ac_dir_suffix;
  11379. ac_top_srcdir=$srcdir ;;
  11380. *) # Relative path.
  11381. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11382. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11383. esac
  11384. # Do not use `cd foo && pwd` to compute absolute paths, because
  11385. # the directories may not exist.
  11386. case `pwd` in
  11387. .) ac_abs_builddir="$ac_dir";;
  11388. *)
  11389. case "$ac_dir" in
  11390. .) ac_abs_builddir=`pwd`;;
  11391. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11392. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11393. esac;;
  11394. esac
  11395. case $ac_abs_builddir in
  11396. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11397. *)
  11398. case ${ac_top_builddir}. in
  11399. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11400. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11401. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11402. esac;;
  11403. esac
  11404. case $ac_abs_builddir in
  11405. .) ac_abs_srcdir=$ac_srcdir;;
  11406. *)
  11407. case $ac_srcdir in
  11408. .) ac_abs_srcdir=$ac_abs_builddir;;
  11409. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11410. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11411. esac;;
  11412. esac
  11413. case $ac_abs_builddir in
  11414. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11415. *)
  11416. case $ac_top_srcdir in
  11417. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11418. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11419. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11420. esac;;
  11421. esac
  11422. case $INSTALL in
  11423. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11424. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11425. esac
  11426. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11427. # use $as_me), people would be surprised to read:
  11428. # /* config.h. Generated by config.status. */
  11429. if test x"$ac_file" = x-; then
  11430. configure_input=
  11431. else
  11432. configure_input="$ac_file. "
  11433. fi
  11434. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11435. sed 's,.*/,,'` by configure."
  11436. # First look for the input files in the build tree, otherwise in the
  11437. # src tree.
  11438. ac_file_inputs=`IFS=:
  11439. for f in $ac_file_in; do
  11440. case $f in
  11441. -) echo $tmp/stdin ;;
  11442. [\\/$]*)
  11443. # Absolute (can't be DOS-style, as IFS=:)
  11444. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11445. echo "$as_me: error: cannot find input file: $f" >&2;}
  11446. { (exit 1); exit 1; }; }
  11447. echo "$f";;
  11448. *) # Relative
  11449. if test -f "$f"; then
  11450. # Build tree
  11451. echo "$f"
  11452. elif test -f "$srcdir/$f"; then
  11453. # Source tree
  11454. echo "$srcdir/$f"
  11455. else
  11456. # /dev/null tree
  11457. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11458. echo "$as_me: error: cannot find input file: $f" >&2;}
  11459. { (exit 1); exit 1; }; }
  11460. fi;;
  11461. esac
  11462. done` || { (exit 1); exit 1; }
  11463. if test x"$ac_file" != x-; then
  11464. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11465. echo "$as_me: creating $ac_file" >&6;}
  11466. rm -f "$ac_file"
  11467. fi
  11468. _ACEOF
  11469. cat >>$CONFIG_STATUS <<_ACEOF
  11470. sed "$ac_vpsub
  11471. $extrasub
  11472. _ACEOF
  11473. cat >>$CONFIG_STATUS <<\_ACEOF
  11474. :t
  11475. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11476. s,@configure_input@,$configure_input,;t t
  11477. s,@srcdir@,$ac_srcdir,;t t
  11478. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11479. s,@top_srcdir@,$ac_top_srcdir,;t t
  11480. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11481. s,@builddir@,$ac_builddir,;t t
  11482. s,@abs_builddir@,$ac_abs_builddir,;t t
  11483. s,@top_builddir@,$ac_top_builddir,;t t
  11484. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11485. s,@INSTALL@,$ac_INSTALL,;t t
  11486. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11487. rm -f $tmp/stdin
  11488. if test x"$ac_file" != x-; then
  11489. mv $tmp/out $ac_file
  11490. else
  11491. cat $tmp/out
  11492. rm -f $tmp/out
  11493. fi
  11494. done
  11495. _ACEOF
  11496. cat >>$CONFIG_STATUS <<\_ACEOF
  11497. #
  11498. # CONFIG_HEADER section.
  11499. #
  11500. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11501. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11502. #
  11503. # ac_d sets the value in "#define NAME VALUE" lines.
  11504. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11505. ac_dB='[ ].*$,\1#\2'
  11506. ac_dC=' '
  11507. ac_dD=',;t'
  11508. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11509. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11510. ac_uB='$,\1#\2define\3'
  11511. ac_uC=' '
  11512. ac_uD=',;t'
  11513. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11514. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11515. case $ac_file in
  11516. - | *:- | *:-:* ) # input from stdin
  11517. cat >$tmp/stdin
  11518. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11519. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11520. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11521. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11522. * ) ac_file_in=$ac_file.in ;;
  11523. esac
  11524. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11525. echo "$as_me: creating $ac_file" >&6;}
  11526. # First look for the input files in the build tree, otherwise in the
  11527. # src tree.
  11528. ac_file_inputs=`IFS=:
  11529. for f in $ac_file_in; do
  11530. case $f in
  11531. -) echo $tmp/stdin ;;
  11532. [\\/$]*)
  11533. # Absolute (can't be DOS-style, as IFS=:)
  11534. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11535. echo "$as_me: error: cannot find input file: $f" >&2;}
  11536. { (exit 1); exit 1; }; }
  11537. # Do quote $f, to prevent DOS paths from being IFS'd.
  11538. echo "$f";;
  11539. *) # Relative
  11540. if test -f "$f"; then
  11541. # Build tree
  11542. echo "$f"
  11543. elif test -f "$srcdir/$f"; then
  11544. # Source tree
  11545. echo "$srcdir/$f"
  11546. else
  11547. # /dev/null tree
  11548. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11549. echo "$as_me: error: cannot find input file: $f" >&2;}
  11550. { (exit 1); exit 1; }; }
  11551. fi;;
  11552. esac
  11553. done` || { (exit 1); exit 1; }
  11554. # Remove the trailing spaces.
  11555. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11556. _ACEOF
  11557. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11558. # `conftest.undefs', that substitutes the proper values into
  11559. # config.h.in to produce config.h. The first handles `#define'
  11560. # templates, and the second `#undef' templates.
  11561. # And first: Protect against being on the right side of a sed subst in
  11562. # config.status. Protect against being in an unquoted here document
  11563. # in config.status.
  11564. rm -f conftest.defines conftest.undefs
  11565. # Using a here document instead of a string reduces the quoting nightmare.
  11566. # Putting comments in sed scripts is not portable.
  11567. #
  11568. # `end' is used to avoid that the second main sed command (meant for
  11569. # 0-ary CPP macros) applies to n-ary macro definitions.
  11570. # See the Autoconf documentation for `clear'.
  11571. cat >confdef2sed.sed <<\_ACEOF
  11572. s/[\\&,]/\\&/g
  11573. s,[\\$`],\\&,g
  11574. t clear
  11575. : clear
  11576. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11577. t end
  11578. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11579. : end
  11580. _ACEOF
  11581. # If some macros were called several times there might be several times
  11582. # the same #defines, which is useless. Nevertheless, we may not want to
  11583. # sort them, since we want the *last* AC-DEFINE to be honored.
  11584. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11585. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11586. rm -f confdef2sed.sed
  11587. # This sed command replaces #undef with comments. This is necessary, for
  11588. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11589. # on some systems where configure will not decide to define it.
  11590. cat >>conftest.undefs <<\_ACEOF
  11591. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11592. _ACEOF
  11593. # Break up conftest.defines because some shells have a limit on the size
  11594. # of here documents, and old seds have small limits too (100 cmds).
  11595. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11596. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11597. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11598. echo ' :' >>$CONFIG_STATUS
  11599. rm -f conftest.tail
  11600. while grep . conftest.defines >/dev/null
  11601. do
  11602. # Write a limited-size here document to $tmp/defines.sed.
  11603. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11604. # Speed up: don't consider the non `#define' lines.
  11605. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11606. # Work around the forget-to-reset-the-flag bug.
  11607. echo 't clr' >>$CONFIG_STATUS
  11608. echo ': clr' >>$CONFIG_STATUS
  11609. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11610. echo 'CEOF
  11611. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11612. rm -f $tmp/in
  11613. mv $tmp/out $tmp/in
  11614. ' >>$CONFIG_STATUS
  11615. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11616. rm -f conftest.defines
  11617. mv conftest.tail conftest.defines
  11618. done
  11619. rm -f conftest.defines
  11620. echo ' fi # grep' >>$CONFIG_STATUS
  11621. echo >>$CONFIG_STATUS
  11622. # Break up conftest.undefs because some shells have a limit on the size
  11623. # of here documents, and old seds have small limits too (100 cmds).
  11624. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11625. rm -f conftest.tail
  11626. while grep . conftest.undefs >/dev/null
  11627. do
  11628. # Write a limited-size here document to $tmp/undefs.sed.
  11629. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11630. # Speed up: don't consider the non `#undef'
  11631. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11632. # Work around the forget-to-reset-the-flag bug.
  11633. echo 't clr' >>$CONFIG_STATUS
  11634. echo ': clr' >>$CONFIG_STATUS
  11635. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11636. echo 'CEOF
  11637. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11638. rm -f $tmp/in
  11639. mv $tmp/out $tmp/in
  11640. ' >>$CONFIG_STATUS
  11641. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11642. rm -f conftest.undefs
  11643. mv conftest.tail conftest.undefs
  11644. done
  11645. rm -f conftest.undefs
  11646. cat >>$CONFIG_STATUS <<\_ACEOF
  11647. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11648. # use $as_me), people would be surprised to read:
  11649. # /* config.h. Generated by config.status. */
  11650. if test x"$ac_file" = x-; then
  11651. echo "/* Generated by configure. */" >$tmp/config.h
  11652. else
  11653. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11654. fi
  11655. cat $tmp/in >>$tmp/config.h
  11656. rm -f $tmp/in
  11657. if test x"$ac_file" != x-; then
  11658. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11659. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11660. echo "$as_me: $ac_file is unchanged" >&6;}
  11661. else
  11662. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11663. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11664. X"$ac_file" : 'X\(//\)[^/]' \| \
  11665. X"$ac_file" : 'X\(//\)$' \| \
  11666. X"$ac_file" : 'X\(/\)' \| \
  11667. . : '\(.\)' 2>/dev/null ||
  11668. echo X"$ac_file" |
  11669. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11670. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11671. /^X\(\/\/\)$/{ s//\1/; q; }
  11672. /^X\(\/\).*/{ s//\1/; q; }
  11673. s/.*/./; q'`
  11674. { if $as_mkdir_p; then
  11675. mkdir -p "$ac_dir"
  11676. else
  11677. as_dir="$ac_dir"
  11678. as_dirs=
  11679. while test ! -d "$as_dir"; do
  11680. as_dirs="$as_dir $as_dirs"
  11681. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11682. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11683. X"$as_dir" : 'X\(//\)[^/]' \| \
  11684. X"$as_dir" : 'X\(//\)$' \| \
  11685. X"$as_dir" : 'X\(/\)' \| \
  11686. . : '\(.\)' 2>/dev/null ||
  11687. echo X"$as_dir" |
  11688. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11689. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11690. /^X\(\/\/\)$/{ s//\1/; q; }
  11691. /^X\(\/\).*/{ s//\1/; q; }
  11692. s/.*/./; q'`
  11693. done
  11694. test ! -n "$as_dirs" || mkdir $as_dirs
  11695. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11696. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11697. { (exit 1); exit 1; }; }; }
  11698. rm -f $ac_file
  11699. mv $tmp/config.h $ac_file
  11700. fi
  11701. else
  11702. cat $tmp/config.h
  11703. rm -f $tmp/config.h
  11704. fi
  11705. # Compute $ac_file's index in $config_headers.
  11706. _am_stamp_count=1
  11707. for _am_header in $config_headers :; do
  11708. case $_am_header in
  11709. $ac_file | $ac_file:* )
  11710. break ;;
  11711. * )
  11712. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11713. esac
  11714. done
  11715. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11716. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11717. X$ac_file : 'X\(//\)[^/]' \| \
  11718. X$ac_file : 'X\(//\)$' \| \
  11719. X$ac_file : 'X\(/\)' \| \
  11720. . : '\(.\)' 2>/dev/null ||
  11721. echo X$ac_file |
  11722. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11723. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11724. /^X\(\/\/\)$/{ s//\1/; q; }
  11725. /^X\(\/\).*/{ s//\1/; q; }
  11726. s/.*/./; q'`/stamp-h$_am_stamp_count
  11727. done
  11728. _ACEOF
  11729. cat >>$CONFIG_STATUS <<\_ACEOF
  11730. #
  11731. # CONFIG_COMMANDS section.
  11732. #
  11733. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11734. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11735. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11736. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11737. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11738. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11739. X"$ac_dest" : 'X\(//\)$' \| \
  11740. X"$ac_dest" : 'X\(/\)' \| \
  11741. . : '\(.\)' 2>/dev/null ||
  11742. echo X"$ac_dest" |
  11743. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11744. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11745. /^X\(\/\/\)$/{ s//\1/; q; }
  11746. /^X\(\/\).*/{ s//\1/; q; }
  11747. s/.*/./; q'`
  11748. { if $as_mkdir_p; then
  11749. mkdir -p "$ac_dir"
  11750. else
  11751. as_dir="$ac_dir"
  11752. as_dirs=
  11753. while test ! -d "$as_dir"; do
  11754. as_dirs="$as_dir $as_dirs"
  11755. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11756. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11757. X"$as_dir" : 'X\(//\)[^/]' \| \
  11758. X"$as_dir" : 'X\(//\)$' \| \
  11759. X"$as_dir" : 'X\(/\)' \| \
  11760. . : '\(.\)' 2>/dev/null ||
  11761. echo X"$as_dir" |
  11762. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11763. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11764. /^X\(\/\/\)$/{ s//\1/; q; }
  11765. /^X\(\/\).*/{ s//\1/; q; }
  11766. s/.*/./; q'`
  11767. done
  11768. test ! -n "$as_dirs" || mkdir $as_dirs
  11769. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11770. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11771. { (exit 1); exit 1; }; }; }
  11772. ac_builddir=.
  11773. if test "$ac_dir" != .; then
  11774. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11775. # A "../" for each directory in $ac_dir_suffix.
  11776. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11777. else
  11778. ac_dir_suffix= ac_top_builddir=
  11779. fi
  11780. case $srcdir in
  11781. .) # No --srcdir option. We are building in place.
  11782. ac_srcdir=.
  11783. if test -z "$ac_top_builddir"; then
  11784. ac_top_srcdir=.
  11785. else
  11786. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11787. fi ;;
  11788. [\\/]* | ?:[\\/]* ) # Absolute path.
  11789. ac_srcdir=$srcdir$ac_dir_suffix;
  11790. ac_top_srcdir=$srcdir ;;
  11791. *) # Relative path.
  11792. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11793. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11794. esac
  11795. # Do not use `cd foo && pwd` to compute absolute paths, because
  11796. # the directories may not exist.
  11797. case `pwd` in
  11798. .) ac_abs_builddir="$ac_dir";;
  11799. *)
  11800. case "$ac_dir" in
  11801. .) ac_abs_builddir=`pwd`;;
  11802. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11803. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11804. esac;;
  11805. esac
  11806. case $ac_abs_builddir in
  11807. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11808. *)
  11809. case ${ac_top_builddir}. in
  11810. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11811. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11812. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11813. esac;;
  11814. esac
  11815. case $ac_abs_builddir in
  11816. .) ac_abs_srcdir=$ac_srcdir;;
  11817. *)
  11818. case $ac_srcdir in
  11819. .) ac_abs_srcdir=$ac_abs_builddir;;
  11820. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11821. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11822. esac;;
  11823. esac
  11824. case $ac_abs_builddir in
  11825. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11826. *)
  11827. case $ac_top_srcdir in
  11828. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11829. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11830. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11831. esac;;
  11832. esac
  11833. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11834. echo "$as_me: executing $ac_dest commands" >&6;}
  11835. case $ac_dest in
  11836. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11837. # Strip MF so we end up with the name of the file.
  11838. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11839. # Check whether this is an Automake generated Makefile or not.
  11840. # We used to match only the files named `Makefile.in', but
  11841. # some people rename them; so instead we look at the file content.
  11842. # Grep'ing the first line is not enough: some people post-process
  11843. # each Makefile.in and add a new line on top of each file to say so.
  11844. # So let's grep whole file.
  11845. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11846. dirpart=`(dirname "$mf") 2>/dev/null ||
  11847. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11848. X"$mf" : 'X\(//\)[^/]' \| \
  11849. X"$mf" : 'X\(//\)$' \| \
  11850. X"$mf" : 'X\(/\)' \| \
  11851. . : '\(.\)' 2>/dev/null ||
  11852. echo X"$mf" |
  11853. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11854. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11855. /^X\(\/\/\)$/{ s//\1/; q; }
  11856. /^X\(\/\).*/{ s//\1/; q; }
  11857. s/.*/./; q'`
  11858. else
  11859. continue
  11860. fi
  11861. # Extract the definition of DEPDIR, am__include, and am__quote
  11862. # from the Makefile without running `make'.
  11863. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11864. test -z "$DEPDIR" && continue
  11865. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11866. test -z "am__include" && continue
  11867. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11868. # When using ansi2knr, U may be empty or an underscore; expand it
  11869. U=`sed -n 's/^U = //p' < "$mf"`
  11870. # Find all dependency output files, they are included files with
  11871. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11872. # simplest approach to changing $(DEPDIR) to its actual value in the
  11873. # expansion.
  11874. for file in `sed -n "
  11875. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11876. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11877. # Make sure the directory exists.
  11878. test -f "$dirpart/$file" && continue
  11879. fdir=`(dirname "$file") 2>/dev/null ||
  11880. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11881. X"$file" : 'X\(//\)[^/]' \| \
  11882. X"$file" : 'X\(//\)$' \| \
  11883. X"$file" : 'X\(/\)' \| \
  11884. . : '\(.\)' 2>/dev/null ||
  11885. echo X"$file" |
  11886. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11887. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11888. /^X\(\/\/\)$/{ s//\1/; q; }
  11889. /^X\(\/\).*/{ s//\1/; q; }
  11890. s/.*/./; q'`
  11891. { if $as_mkdir_p; then
  11892. mkdir -p $dirpart/$fdir
  11893. else
  11894. as_dir=$dirpart/$fdir
  11895. as_dirs=
  11896. while test ! -d "$as_dir"; do
  11897. as_dirs="$as_dir $as_dirs"
  11898. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11899. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11900. X"$as_dir" : 'X\(//\)[^/]' \| \
  11901. X"$as_dir" : 'X\(//\)$' \| \
  11902. X"$as_dir" : 'X\(/\)' \| \
  11903. . : '\(.\)' 2>/dev/null ||
  11904. echo X"$as_dir" |
  11905. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11906. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11907. /^X\(\/\/\)$/{ s//\1/; q; }
  11908. /^X\(\/\).*/{ s//\1/; q; }
  11909. s/.*/./; q'`
  11910. done
  11911. test ! -n "$as_dirs" || mkdir $as_dirs
  11912. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11913. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11914. { (exit 1); exit 1; }; }; }
  11915. # echo "creating $dirpart/$file"
  11916. echo '# dummy' > "$dirpart/$file"
  11917. done
  11918. done
  11919. ;;
  11920. default-1 )
  11921. for ac_file in $CONFIG_FILES; do
  11922. # Support "outfile[:infile[:infile...]]"
  11923. case "$ac_file" in
  11924. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11925. esac
  11926. # PO directories have a Makefile.in generated from Makefile.in.in.
  11927. case "$ac_file" in */Makefile.in)
  11928. # Adjust a relative srcdir.
  11929. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11930. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11931. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11932. # In autoconf-2.13 it is called $ac_given_srcdir.
  11933. # In autoconf-2.50 it is called $srcdir.
  11934. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11935. case "$ac_given_srcdir" in
  11936. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11937. /*) top_srcdir="$ac_given_srcdir" ;;
  11938. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11939. esac
  11940. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11941. rm -f "$ac_dir/POTFILES"
  11942. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11943. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11944. POMAKEFILEDEPS="POTFILES.in"
  11945. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11946. # on $ac_dir but don't depend on user-specified configuration
  11947. # parameters.
  11948. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11949. # The LINGUAS file contains the set of available languages.
  11950. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11951. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11952. fi
  11953. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11954. # Hide the ALL_LINGUAS assigment from automake.
  11955. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11956. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11957. else
  11958. # The set of available languages was given in configure.in.
  11959. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11960. fi
  11961. case "$ac_given_srcdir" in
  11962. .) srcdirpre= ;;
  11963. *) srcdirpre='$(srcdir)/' ;;
  11964. esac
  11965. POFILES=
  11966. GMOFILES=
  11967. UPDATEPOFILES=
  11968. DUMMYPOFILES=
  11969. for lang in $ALL_LINGUAS; do
  11970. POFILES="$POFILES $srcdirpre$lang.po"
  11971. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11972. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11973. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11974. done
  11975. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11976. # environment variable.
  11977. INST_LINGUAS=
  11978. if test -n "$ALL_LINGUAS"; then
  11979. for presentlang in $ALL_LINGUAS; do
  11980. useit=no
  11981. if test "%UNSET%" != "$LINGUAS"; then
  11982. desiredlanguages="$LINGUAS"
  11983. else
  11984. desiredlanguages="$ALL_LINGUAS"
  11985. fi
  11986. for desiredlang in $desiredlanguages; do
  11987. # Use the presentlang catalog if desiredlang is
  11988. # a. equal to presentlang, or
  11989. # b. a variant of presentlang (because in this case,
  11990. # presentlang can be used as a fallback for messages
  11991. # which are not translated in the desiredlang catalog).
  11992. case "$desiredlang" in
  11993. "$presentlang"*) useit=yes;;
  11994. esac
  11995. done
  11996. if test $useit = yes; then
  11997. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11998. fi
  11999. done
  12000. fi
  12001. CATALOGS=
  12002. if test -n "$INST_LINGUAS"; then
  12003. for lang in $INST_LINGUAS; do
  12004. CATALOGS="$CATALOGS $lang.gmo"
  12005. done
  12006. fi
  12007. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12008. 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"
  12009. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12010. if test -f "$f"; then
  12011. case "$f" in
  12012. *.orig | *.bak | *~) ;;
  12013. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12014. esac
  12015. fi
  12016. done
  12017. fi
  12018. ;;
  12019. esac
  12020. done ;;
  12021. esac
  12022. done
  12023. _ACEOF
  12024. cat >>$CONFIG_STATUS <<\_ACEOF
  12025. { (exit 0); exit 0; }
  12026. _ACEOF
  12027. chmod +x $CONFIG_STATUS
  12028. ac_clean_files=$ac_clean_files_save
  12029. # configure is writing to config.log, and then calls config.status.
  12030. # config.status does its own redirection, appending to config.log.
  12031. # Unfortunately, on DOS this fails, as config.log is still kept open
  12032. # by configure, so config.status won't be able to write to it; its
  12033. # output is simply discarded. So we exec the FD to /dev/null,
  12034. # effectively closing config.log, so it can be properly (re)opened and
  12035. # appended to by config.status. When coming back to configure, we
  12036. # need to make the FD available again.
  12037. if test "$no_create" != yes; then
  12038. ac_cs_success=:
  12039. ac_config_status_args=
  12040. test "$silent" = yes &&
  12041. ac_config_status_args="$ac_config_status_args --quiet"
  12042. exec 5>/dev/null
  12043. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12044. exec 5>>config.log
  12045. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12046. # would make configure fail if this is the last instruction.
  12047. $ac_cs_success || { (exit 1); exit 1; }
  12048. fi