configure 388 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.6.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.6.1'
  239. PACKAGE_STRING='aria2c 0.6.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 ENABLE_BITTORRENT_TRUE ENABLE_BITTORRENT_FALSE ENABLE_METALINK_TRUE ENABLE_METALINK_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.6.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.6.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-xml-prefix=PFX Prefix where libxml is installed (optional)
  771. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  772. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  773. --with-libgcrypt-prefix=PFX
  774. prefix where LIBGCRYPT is installed (optional)
  775. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  776. --with-gnu-ld assume the C compiler uses GNU ld default=no
  777. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  778. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  779. --with-included-gettext use the GNU gettext library included here
  780. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  781. --without-libintl-prefix don't search for libintl in includedir and libdir
  782. Some influential environment variables:
  783. CXX C++ compiler command
  784. CXXFLAGS C++ compiler flags
  785. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  786. nonstandard directory <lib dir>
  787. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  788. headers in a nonstandard directory <include dir>
  789. CC C compiler command
  790. CFLAGS C compiler flags
  791. CPP C preprocessor
  792. Use these variables to override the choices made by `configure' or to help
  793. it to find libraries and programs with nonstandard names/locations.
  794. Report bugs to <tujikawa@rednoah.com>.
  795. _ACEOF
  796. fi
  797. if test "$ac_init_help" = "recursive"; then
  798. # If there are subdirs, report their specific --help.
  799. ac_popdir=`pwd`
  800. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  801. test -d $ac_dir || continue
  802. ac_builddir=.
  803. if test "$ac_dir" != .; then
  804. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  805. # A "../" for each directory in $ac_dir_suffix.
  806. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  807. else
  808. ac_dir_suffix= ac_top_builddir=
  809. fi
  810. case $srcdir in
  811. .) # No --srcdir option. We are building in place.
  812. ac_srcdir=.
  813. if test -z "$ac_top_builddir"; then
  814. ac_top_srcdir=.
  815. else
  816. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  817. fi ;;
  818. [\\/]* | ?:[\\/]* ) # Absolute path.
  819. ac_srcdir=$srcdir$ac_dir_suffix;
  820. ac_top_srcdir=$srcdir ;;
  821. *) # Relative path.
  822. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  823. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  824. esac
  825. # Do not use `cd foo && pwd` to compute absolute paths, because
  826. # the directories may not exist.
  827. case `pwd` in
  828. .) ac_abs_builddir="$ac_dir";;
  829. *)
  830. case "$ac_dir" in
  831. .) ac_abs_builddir=`pwd`;;
  832. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  833. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  834. esac;;
  835. esac
  836. case $ac_abs_builddir in
  837. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  838. *)
  839. case ${ac_top_builddir}. in
  840. .) ac_abs_top_builddir=$ac_abs_builddir;;
  841. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  842. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  843. esac;;
  844. esac
  845. case $ac_abs_builddir in
  846. .) ac_abs_srcdir=$ac_srcdir;;
  847. *)
  848. case $ac_srcdir in
  849. .) ac_abs_srcdir=$ac_abs_builddir;;
  850. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  851. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  852. esac;;
  853. esac
  854. case $ac_abs_builddir in
  855. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  856. *)
  857. case $ac_top_srcdir in
  858. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  859. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  860. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  861. esac;;
  862. esac
  863. cd $ac_dir
  864. # Check for guested configure; otherwise get Cygnus style configure.
  865. if test -f $ac_srcdir/configure.gnu; then
  866. echo
  867. $SHELL $ac_srcdir/configure.gnu --help=recursive
  868. elif test -f $ac_srcdir/configure; then
  869. echo
  870. $SHELL $ac_srcdir/configure --help=recursive
  871. elif test -f $ac_srcdir/configure.ac ||
  872. test -f $ac_srcdir/configure.in; then
  873. echo
  874. $ac_configure --help
  875. else
  876. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  877. fi
  878. cd "$ac_popdir"
  879. done
  880. fi
  881. test -n "$ac_init_help" && exit 0
  882. if $ac_init_version; then
  883. cat <<\_ACEOF
  884. aria2c configure 0.6.1
  885. generated by GNU Autoconf 2.59
  886. Copyright (C) 2003 Free Software Foundation, Inc.
  887. This configure script is free software; the Free Software Foundation
  888. gives unlimited permission to copy, distribute and modify it.
  889. _ACEOF
  890. exit 0
  891. fi
  892. exec 5>config.log
  893. cat >&5 <<_ACEOF
  894. This file contains any messages produced by compilers while
  895. running configure, to aid debugging if configure makes a mistake.
  896. It was created by aria2c $as_me 0.6.1, which was
  897. generated by GNU Autoconf 2.59. Invocation command line was
  898. $ $0 $@
  899. _ACEOF
  900. {
  901. cat <<_ASUNAME
  902. ## --------- ##
  903. ## Platform. ##
  904. ## --------- ##
  905. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  906. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  907. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  908. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  909. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  910. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  911. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  912. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  913. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  914. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  915. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  916. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  917. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  918. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  919. _ASUNAME
  920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  921. for as_dir in $PATH
  922. do
  923. IFS=$as_save_IFS
  924. test -z "$as_dir" && as_dir=.
  925. echo "PATH: $as_dir"
  926. done
  927. } >&5
  928. cat >&5 <<_ACEOF
  929. ## ----------- ##
  930. ## Core tests. ##
  931. ## ----------- ##
  932. _ACEOF
  933. # Keep a trace of the command line.
  934. # Strip out --no-create and --no-recursion so they do not pile up.
  935. # Strip out --silent because we don't want to record it for future runs.
  936. # Also quote any args containing shell meta-characters.
  937. # Make two passes to allow for proper duplicate-argument suppression.
  938. ac_configure_args=
  939. ac_configure_args0=
  940. ac_configure_args1=
  941. ac_sep=
  942. ac_must_keep_next=false
  943. for ac_pass in 1 2
  944. do
  945. for ac_arg
  946. do
  947. case $ac_arg in
  948. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  950. | -silent | --silent | --silen | --sile | --sil)
  951. continue ;;
  952. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  953. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  954. esac
  955. case $ac_pass in
  956. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  957. 2)
  958. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  959. if test $ac_must_keep_next = true; then
  960. ac_must_keep_next=false # Got value, back to normal.
  961. else
  962. case $ac_arg in
  963. *=* | --config-cache | -C | -disable-* | --disable-* \
  964. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  965. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  966. | -with-* | --with-* | -without-* | --without-* | --x)
  967. case "$ac_configure_args0 " in
  968. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  969. esac
  970. ;;
  971. -* ) ac_must_keep_next=true ;;
  972. esac
  973. fi
  974. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  975. # Get rid of the leading space.
  976. ac_sep=" "
  977. ;;
  978. esac
  979. done
  980. done
  981. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  982. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  983. # When interrupted or exit'd, cleanup temporary files, and complete
  984. # config.log. We remove comments because anyway the quotes in there
  985. # would cause problems or look ugly.
  986. # WARNING: Be sure not to use single quotes in there, as some shells,
  987. # such as our DU 5.0 friend, will then `close' the trap.
  988. trap 'exit_status=$?
  989. # Save into config.log some information that might help in debugging.
  990. {
  991. echo
  992. cat <<\_ASBOX
  993. ## ---------------- ##
  994. ## Cache variables. ##
  995. ## ---------------- ##
  996. _ASBOX
  997. echo
  998. # The following way of writing the cache mishandles newlines in values,
  999. {
  1000. (set) 2>&1 |
  1001. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1002. *ac_space=\ *)
  1003. sed -n \
  1004. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1005. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1006. ;;
  1007. *)
  1008. sed -n \
  1009. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1010. ;;
  1011. esac;
  1012. }
  1013. echo
  1014. cat <<\_ASBOX
  1015. ## ----------------- ##
  1016. ## Output variables. ##
  1017. ## ----------------- ##
  1018. _ASBOX
  1019. echo
  1020. for ac_var in $ac_subst_vars
  1021. do
  1022. eval ac_val=$`echo $ac_var`
  1023. echo "$ac_var='"'"'$ac_val'"'"'"
  1024. done | sort
  1025. echo
  1026. if test -n "$ac_subst_files"; then
  1027. cat <<\_ASBOX
  1028. ## ------------- ##
  1029. ## Output files. ##
  1030. ## ------------- ##
  1031. _ASBOX
  1032. echo
  1033. for ac_var in $ac_subst_files
  1034. do
  1035. eval ac_val=$`echo $ac_var`
  1036. echo "$ac_var='"'"'$ac_val'"'"'"
  1037. done | sort
  1038. echo
  1039. fi
  1040. if test -s confdefs.h; then
  1041. cat <<\_ASBOX
  1042. ## ----------- ##
  1043. ## confdefs.h. ##
  1044. ## ----------- ##
  1045. _ASBOX
  1046. echo
  1047. sed "/^$/d" confdefs.h | sort
  1048. echo
  1049. fi
  1050. test "$ac_signal" != 0 &&
  1051. echo "$as_me: caught signal $ac_signal"
  1052. echo "$as_me: exit $exit_status"
  1053. } >&5
  1054. rm -f core *.core &&
  1055. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1056. exit $exit_status
  1057. ' 0
  1058. for ac_signal in 1 2 13 15; do
  1059. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1060. done
  1061. ac_signal=0
  1062. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1063. rm -rf conftest* confdefs.h
  1064. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1065. echo >confdefs.h
  1066. # Predefined preprocessor variables.
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_NAME "$PACKAGE_NAME"
  1069. _ACEOF
  1070. cat >>confdefs.h <<_ACEOF
  1071. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1072. _ACEOF
  1073. cat >>confdefs.h <<_ACEOF
  1074. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1075. _ACEOF
  1076. cat >>confdefs.h <<_ACEOF
  1077. #define PACKAGE_STRING "$PACKAGE_STRING"
  1078. _ACEOF
  1079. cat >>confdefs.h <<_ACEOF
  1080. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1081. _ACEOF
  1082. # Let the site file select an alternate cache file if it wants to.
  1083. # Prefer explicitly selected file to automatically selected ones.
  1084. if test -z "$CONFIG_SITE"; then
  1085. if test "x$prefix" != xNONE; then
  1086. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1087. else
  1088. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1089. fi
  1090. fi
  1091. for ac_site_file in $CONFIG_SITE; do
  1092. if test -r "$ac_site_file"; then
  1093. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1094. echo "$as_me: loading site script $ac_site_file" >&6;}
  1095. sed 's/^/| /' "$ac_site_file" >&5
  1096. . "$ac_site_file"
  1097. fi
  1098. done
  1099. if test -r "$cache_file"; then
  1100. # Some versions of bash will fail to source /dev/null (special
  1101. # files actually), so we avoid doing that.
  1102. if test -f "$cache_file"; then
  1103. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1104. echo "$as_me: loading cache $cache_file" >&6;}
  1105. case $cache_file in
  1106. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1107. *) . ./$cache_file;;
  1108. esac
  1109. fi
  1110. else
  1111. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1112. echo "$as_me: creating cache $cache_file" >&6;}
  1113. >$cache_file
  1114. fi
  1115. # Check that the precious variables saved in the cache have kept the same
  1116. # value.
  1117. ac_cache_corrupted=false
  1118. for ac_var in `(set) 2>&1 |
  1119. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1120. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1121. eval ac_new_set=\$ac_env_${ac_var}_set
  1122. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1123. eval ac_new_val="\$ac_env_${ac_var}_value"
  1124. case $ac_old_set,$ac_new_set in
  1125. set,)
  1126. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1127. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1128. ac_cache_corrupted=: ;;
  1129. ,set)
  1130. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1131. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1132. ac_cache_corrupted=: ;;
  1133. ,);;
  1134. *)
  1135. if test "x$ac_old_val" != "x$ac_new_val"; then
  1136. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1137. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1138. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1139. echo "$as_me: former value: $ac_old_val" >&2;}
  1140. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1141. echo "$as_me: current value: $ac_new_val" >&2;}
  1142. ac_cache_corrupted=:
  1143. fi;;
  1144. esac
  1145. # Pass precious variables to config.status.
  1146. if test "$ac_new_set" = set; then
  1147. case $ac_new_val in
  1148. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1149. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1150. *) ac_arg=$ac_var=$ac_new_val ;;
  1151. esac
  1152. case " $ac_configure_args " in
  1153. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1154. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1155. esac
  1156. fi
  1157. done
  1158. if $ac_cache_corrupted; then
  1159. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1160. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1161. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1162. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1163. { (exit 1); exit 1; }; }
  1164. fi
  1165. ac_ext=c
  1166. ac_cpp='$CPP $CPPFLAGS'
  1167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1170. am__api_version="1.9"
  1171. ac_aux_dir=
  1172. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1173. if test -f $ac_dir/install-sh; then
  1174. ac_aux_dir=$ac_dir
  1175. ac_install_sh="$ac_aux_dir/install-sh -c"
  1176. break
  1177. elif 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/shtool; then
  1182. ac_aux_dir=$ac_dir
  1183. ac_install_sh="$ac_aux_dir/shtool install -c"
  1184. break
  1185. fi
  1186. done
  1187. if test -z "$ac_aux_dir"; then
  1188. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1189. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1190. { (exit 1); exit 1; }; }
  1191. fi
  1192. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1193. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1194. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1195. # Find a good install program. We prefer a C program (faster),
  1196. # so one script is as good as another. But avoid the broken or
  1197. # incompatible versions:
  1198. # SysV /etc/install, /usr/sbin/install
  1199. # SunOS /usr/etc/install
  1200. # IRIX /sbin/install
  1201. # AIX /bin/install
  1202. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1203. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1204. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1205. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1206. # OS/2's system install, which has a completely different semantic
  1207. # ./install, which can be erroneously created by make from ./install.sh.
  1208. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1209. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1210. if test -z "$INSTALL"; then
  1211. if test "${ac_cv_path_install+set}" = set; then
  1212. echo $ECHO_N "(cached) $ECHO_C" >&6
  1213. else
  1214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1215. for as_dir in $PATH
  1216. do
  1217. IFS=$as_save_IFS
  1218. test -z "$as_dir" && as_dir=.
  1219. # Account for people who put trailing slashes in PATH elements.
  1220. case $as_dir/ in
  1221. ./ | .// | /cC/* | \
  1222. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1223. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1224. /usr/ucb/* ) ;;
  1225. *)
  1226. # OSF1 and SCO ODT 3.0 have their own names for install.
  1227. # Don't use installbsd from OSF since it installs stuff as root
  1228. # by default.
  1229. for ac_prog in ginstall scoinst install; do
  1230. for ac_exec_ext in '' $ac_executable_extensions; do
  1231. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1232. if test $ac_prog = install &&
  1233. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1234. # AIX install. It has an incompatible calling convention.
  1235. :
  1236. elif test $ac_prog = install &&
  1237. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1238. # program-specific install script used by HP pwplus--don't use.
  1239. :
  1240. else
  1241. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1242. break 3
  1243. fi
  1244. fi
  1245. done
  1246. done
  1247. ;;
  1248. esac
  1249. done
  1250. fi
  1251. if test "${ac_cv_path_install+set}" = set; then
  1252. INSTALL=$ac_cv_path_install
  1253. else
  1254. # As a last resort, use the slow shell script. We don't cache a
  1255. # path for INSTALL within a source directory, because that will
  1256. # break other packages using the cache if that directory is
  1257. # removed, or if the path is relative.
  1258. INSTALL=$ac_install_sh
  1259. fi
  1260. fi
  1261. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1262. echo "${ECHO_T}$INSTALL" >&6
  1263. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1264. # It thinks the first close brace ends the variable substitution.
  1265. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1266. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1267. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1268. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1269. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1270. # Just in case
  1271. sleep 1
  1272. echo timestamp > conftest.file
  1273. # Do `set' in a subshell so we don't clobber the current shell's
  1274. # arguments. Must try -L first in case configure is actually a
  1275. # symlink; some systems play weird games with the mod time of symlinks
  1276. # (eg FreeBSD returns the mod time of the symlink's containing
  1277. # directory).
  1278. if (
  1279. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1280. if test "$*" = "X"; then
  1281. # -L didn't work.
  1282. set X `ls -t $srcdir/configure conftest.file`
  1283. fi
  1284. rm -f conftest.file
  1285. if test "$*" != "X $srcdir/configure conftest.file" \
  1286. && test "$*" != "X conftest.file $srcdir/configure"; then
  1287. # If neither matched, then we have a broken ls. This can happen
  1288. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1289. # broken ls alias from the environment. This has actually
  1290. # happened. Such a system could not be considered "sane".
  1291. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1292. alias in your environment" >&5
  1293. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1294. alias in your environment" >&2;}
  1295. { (exit 1); exit 1; }; }
  1296. fi
  1297. test "$2" = conftest.file
  1298. )
  1299. then
  1300. # Ok.
  1301. :
  1302. else
  1303. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1304. Check your system clock" >&5
  1305. echo "$as_me: error: newly created file is older than distributed files!
  1306. Check your system clock" >&2;}
  1307. { (exit 1); exit 1; }; }
  1308. fi
  1309. echo "$as_me:$LINENO: result: yes" >&5
  1310. echo "${ECHO_T}yes" >&6
  1311. test "$program_prefix" != NONE &&
  1312. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1313. # Use a double $ so make ignores it.
  1314. test "$program_suffix" != NONE &&
  1315. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1316. # Double any \ or $. echo might interpret backslashes.
  1317. # By default was `s,x,x', remove it if useless.
  1318. cat <<\_ACEOF >conftest.sed
  1319. s/[\\$]/&&/g;s/;s,x,x,$//
  1320. _ACEOF
  1321. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1322. rm conftest.sed
  1323. # expand $ac_aux_dir to an absolute path
  1324. am_aux_dir=`cd $ac_aux_dir && pwd`
  1325. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1326. # Use eval to expand $SHELL
  1327. if eval "$MISSING --run true"; then
  1328. am_missing_run="$MISSING --run "
  1329. else
  1330. am_missing_run=
  1331. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1332. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1333. fi
  1334. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1335. # We used to keeping the `.' as first argument, in order to
  1336. # allow $(mkdir_p) to be used without argument. As in
  1337. # $(mkdir_p) $(somedir)
  1338. # where $(somedir) is conditionally defined. However this is wrong
  1339. # for two reasons:
  1340. # 1. if the package is installed by a user who cannot write `.'
  1341. # make install will fail,
  1342. # 2. the above comment should most certainly read
  1343. # $(mkdir_p) $(DESTDIR)$(somedir)
  1344. # so it does not work when $(somedir) is undefined and
  1345. # $(DESTDIR) is not.
  1346. # To support the latter case, we have to write
  1347. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1348. # so the `.' trick is pointless.
  1349. mkdir_p='mkdir -p --'
  1350. else
  1351. # On NextStep and OpenStep, the `mkdir' command does not
  1352. # recognize any option. It will interpret all options as
  1353. # directories to create, and then abort because `.' already
  1354. # exists.
  1355. for d in ./-p ./--version;
  1356. do
  1357. test -d $d && rmdir $d
  1358. done
  1359. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1360. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1361. mkdir_p='$(mkinstalldirs)'
  1362. else
  1363. mkdir_p='$(install_sh) -d'
  1364. fi
  1365. fi
  1366. for ac_prog in gawk mawk nawk awk
  1367. do
  1368. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1369. set dummy $ac_prog; ac_word=$2
  1370. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1372. if test "${ac_cv_prog_AWK+set}" = set; then
  1373. echo $ECHO_N "(cached) $ECHO_C" >&6
  1374. else
  1375. if test -n "$AWK"; then
  1376. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1377. else
  1378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1379. for as_dir in $PATH
  1380. do
  1381. IFS=$as_save_IFS
  1382. test -z "$as_dir" && as_dir=.
  1383. for ac_exec_ext in '' $ac_executable_extensions; do
  1384. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1385. ac_cv_prog_AWK="$ac_prog"
  1386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1387. break 2
  1388. fi
  1389. done
  1390. done
  1391. fi
  1392. fi
  1393. AWK=$ac_cv_prog_AWK
  1394. if test -n "$AWK"; then
  1395. echo "$as_me:$LINENO: result: $AWK" >&5
  1396. echo "${ECHO_T}$AWK" >&6
  1397. else
  1398. echo "$as_me:$LINENO: result: no" >&5
  1399. echo "${ECHO_T}no" >&6
  1400. fi
  1401. test -n "$AWK" && break
  1402. done
  1403. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1404. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1405. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1406. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. cat >conftest.make <<\_ACEOF
  1410. all:
  1411. @echo 'ac_maketemp="$(MAKE)"'
  1412. _ACEOF
  1413. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1414. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1415. if test -n "$ac_maketemp"; then
  1416. eval ac_cv_prog_make_${ac_make}_set=yes
  1417. else
  1418. eval ac_cv_prog_make_${ac_make}_set=no
  1419. fi
  1420. rm -f conftest.make
  1421. fi
  1422. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1423. echo "$as_me:$LINENO: result: yes" >&5
  1424. echo "${ECHO_T}yes" >&6
  1425. SET_MAKE=
  1426. else
  1427. echo "$as_me:$LINENO: result: no" >&5
  1428. echo "${ECHO_T}no" >&6
  1429. SET_MAKE="MAKE=${MAKE-make}"
  1430. fi
  1431. rm -rf .tst 2>/dev/null
  1432. mkdir .tst 2>/dev/null
  1433. if test -d .tst; then
  1434. am__leading_dot=.
  1435. else
  1436. am__leading_dot=_
  1437. fi
  1438. rmdir .tst 2>/dev/null
  1439. # test to see if srcdir already configured
  1440. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1441. test -f $srcdir/config.status; then
  1442. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1443. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1444. { (exit 1); exit 1; }; }
  1445. fi
  1446. # test whether we have cygpath
  1447. if test -z "$CYGPATH_W"; then
  1448. if (cygpath --version) >/dev/null 2>/dev/null; then
  1449. CYGPATH_W='cygpath -w'
  1450. else
  1451. CYGPATH_W=echo
  1452. fi
  1453. fi
  1454. # Define the identity of the package.
  1455. PACKAGE='aria2c'
  1456. VERSION='0.6.1'
  1457. cat >>confdefs.h <<_ACEOF
  1458. #define PACKAGE "$PACKAGE"
  1459. _ACEOF
  1460. cat >>confdefs.h <<_ACEOF
  1461. #define VERSION "$VERSION"
  1462. _ACEOF
  1463. # Some tools Automake needs.
  1464. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1465. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1466. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1467. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1468. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1469. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1470. # Installed binaries are usually stripped using `strip' when the user
  1471. # run `make install-strip'. However `strip' might not be the right
  1472. # tool to use in cross-compilation environments, therefore Automake
  1473. # will honor the `STRIP' environment variable to overrule this program.
  1474. if test "$cross_compiling" != no; then
  1475. if test -n "$ac_tool_prefix"; then
  1476. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1477. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1478. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1480. if test "${ac_cv_prog_STRIP+set}" = set; then
  1481. echo $ECHO_N "(cached) $ECHO_C" >&6
  1482. else
  1483. if test -n "$STRIP"; then
  1484. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1485. else
  1486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1487. for as_dir in $PATH
  1488. do
  1489. IFS=$as_save_IFS
  1490. test -z "$as_dir" && as_dir=.
  1491. for ac_exec_ext in '' $ac_executable_extensions; do
  1492. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1493. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1495. break 2
  1496. fi
  1497. done
  1498. done
  1499. fi
  1500. fi
  1501. STRIP=$ac_cv_prog_STRIP
  1502. if test -n "$STRIP"; then
  1503. echo "$as_me:$LINENO: result: $STRIP" >&5
  1504. echo "${ECHO_T}$STRIP" >&6
  1505. else
  1506. echo "$as_me:$LINENO: result: no" >&5
  1507. echo "${ECHO_T}no" >&6
  1508. fi
  1509. fi
  1510. if test -z "$ac_cv_prog_STRIP"; then
  1511. ac_ct_STRIP=$STRIP
  1512. # Extract the first word of "strip", so it can be a program name with args.
  1513. set dummy strip; ac_word=$2
  1514. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1516. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1517. echo $ECHO_N "(cached) $ECHO_C" >&6
  1518. else
  1519. if test -n "$ac_ct_STRIP"; then
  1520. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1521. else
  1522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1523. for as_dir in $PATH
  1524. do
  1525. IFS=$as_save_IFS
  1526. test -z "$as_dir" && as_dir=.
  1527. for ac_exec_ext in '' $ac_executable_extensions; do
  1528. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1529. ac_cv_prog_ac_ct_STRIP="strip"
  1530. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1531. break 2
  1532. fi
  1533. done
  1534. done
  1535. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1536. fi
  1537. fi
  1538. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1539. if test -n "$ac_ct_STRIP"; then
  1540. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1541. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1542. else
  1543. echo "$as_me:$LINENO: result: no" >&5
  1544. echo "${ECHO_T}no" >&6
  1545. fi
  1546. STRIP=$ac_ct_STRIP
  1547. else
  1548. STRIP="$ac_cv_prog_STRIP"
  1549. fi
  1550. fi
  1551. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1552. # We need awk for the "check" target. The system "awk" is bad on
  1553. # some platforms.
  1554. # Always define AMTAR for backward compatibility.
  1555. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1556. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1557. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1558. if test "${with_cppunit_prefix+set}" = set; then
  1559. withval="$with_cppunit_prefix"
  1560. cppunit_config_prefix="$withval"
  1561. else
  1562. cppunit_config_prefix=""
  1563. fi;
  1564. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1565. if test "${with_cppunit_exec_prefix+set}" = set; then
  1566. withval="$with_cppunit_exec_prefix"
  1567. cppunit_config_exec_prefix="$withval"
  1568. else
  1569. cppunit_config_exec_prefix=""
  1570. fi;
  1571. if test x$cppunit_config_exec_prefix != x ; then
  1572. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1573. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1574. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1575. fi
  1576. fi
  1577. if test x$cppunit_config_prefix != x ; then
  1578. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1579. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1580. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1581. fi
  1582. fi
  1583. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1584. set dummy cppunit-config; ac_word=$2
  1585. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1586. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1587. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1588. echo $ECHO_N "(cached) $ECHO_C" >&6
  1589. else
  1590. case $CPPUNIT_CONFIG in
  1591. [\\/]* | ?:[\\/]*)
  1592. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1593. ;;
  1594. *)
  1595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1596. for as_dir in $PATH
  1597. do
  1598. IFS=$as_save_IFS
  1599. test -z "$as_dir" && as_dir=.
  1600. for ac_exec_ext in '' $ac_executable_extensions; do
  1601. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1602. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1604. break 2
  1605. fi
  1606. done
  1607. done
  1608. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1609. ;;
  1610. esac
  1611. fi
  1612. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1613. if test -n "$CPPUNIT_CONFIG"; then
  1614. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1615. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1616. else
  1617. echo "$as_me:$LINENO: result: no" >&5
  1618. echo "${ECHO_T}no" >&6
  1619. fi
  1620. cppunit_version_min=1.10.2
  1621. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1622. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1623. no_cppunit=""
  1624. if test "$CPPUNIT_CONFIG" = "no" ; then
  1625. no_cppunit=yes
  1626. else
  1627. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1628. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1629. cppunit_version=`$CPPUNIT_CONFIG --version`
  1630. cppunit_major_version=`echo $cppunit_version | \
  1631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1632. cppunit_minor_version=`echo $cppunit_version | \
  1633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1634. cppunit_micro_version=`echo $cppunit_version | \
  1635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1636. cppunit_major_min=`echo $cppunit_version_min | \
  1637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1638. cppunit_minor_min=`echo $cppunit_version_min | \
  1639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1640. cppunit_micro_min=`echo $cppunit_version_min | \
  1641. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1642. cppunit_version_proper=`expr \
  1643. $cppunit_major_version \> $cppunit_major_min \| \
  1644. $cppunit_major_version \= $cppunit_major_min \& \
  1645. $cppunit_minor_version \> $cppunit_minor_min \| \
  1646. $cppunit_major_version \= $cppunit_major_min \& \
  1647. $cppunit_minor_version \= $cppunit_minor_min \& \
  1648. $cppunit_micro_version \>= $cppunit_micro_min `
  1649. if test "$cppunit_version_proper" = "1" ; then
  1650. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1651. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1652. else
  1653. echo "$as_me:$LINENO: result: no" >&5
  1654. echo "${ECHO_T}no" >&6
  1655. no_cppunit=yes
  1656. fi
  1657. fi
  1658. if test "x$no_cppunit" = x ; then
  1659. :
  1660. else
  1661. CPPUNIT_CFLAGS=""
  1662. CPPUNIT_LIBS=""
  1663. :
  1664. fi
  1665. ac_config_headers="$ac_config_headers config.h"
  1666. # Set localedir
  1667. localedir=${datadir}/locale
  1668. # Checks for arguments.
  1669. # Check whether --with-gnutls or --without-gnutls was given.
  1670. if test "${with_gnutls+set}" = set; then
  1671. withval="$with_gnutls"
  1672. with_gnutls=$enableval
  1673. else
  1674. with_gnutls=yes
  1675. fi;
  1676. # Check whether --with-openssl or --without-openssl was given.
  1677. if test "${with_openssl+set}" = set; then
  1678. withval="$with_openssl"
  1679. with_openssl=$enableval
  1680. else
  1681. with_openssl=yes
  1682. fi;
  1683. # Check whether --with-libxml2 or --without-libxml2 was given.
  1684. if test "${with_libxml2+set}" = set; then
  1685. withval="$with_libxml2"
  1686. with_libxml2=$enableval
  1687. else
  1688. with_libxml2=yes
  1689. fi;
  1690. # Check whether --enable-bittorrent or --disable-bittorrent was given.
  1691. if test "${enable_bittorrent+set}" = set; then
  1692. enableval="$enable_bittorrent"
  1693. enable_bittorrent=$enableval
  1694. else
  1695. enable_bittorrent=yes
  1696. fi;
  1697. # Check whether --enable-metalink or --disable-metalink was given.
  1698. if test "${enable_metalink+set}" = set; then
  1699. enableval="$enable_metalink"
  1700. enable_metalink=$enableval
  1701. else
  1702. enable_metalink=yes
  1703. fi;
  1704. # Checks for programs.
  1705. ac_ext=cc
  1706. ac_cpp='$CXXCPP $CPPFLAGS'
  1707. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1708. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1709. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1710. if test -n "$ac_tool_prefix"; then
  1711. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1712. do
  1713. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1714. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1715. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1716. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1717. if test "${ac_cv_prog_CXX+set}" = set; then
  1718. echo $ECHO_N "(cached) $ECHO_C" >&6
  1719. else
  1720. if test -n "$CXX"; then
  1721. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1722. else
  1723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1724. for as_dir in $PATH
  1725. do
  1726. IFS=$as_save_IFS
  1727. test -z "$as_dir" && as_dir=.
  1728. for ac_exec_ext in '' $ac_executable_extensions; do
  1729. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1730. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1731. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1732. break 2
  1733. fi
  1734. done
  1735. done
  1736. fi
  1737. fi
  1738. CXX=$ac_cv_prog_CXX
  1739. if test -n "$CXX"; then
  1740. echo "$as_me:$LINENO: result: $CXX" >&5
  1741. echo "${ECHO_T}$CXX" >&6
  1742. else
  1743. echo "$as_me:$LINENO: result: no" >&5
  1744. echo "${ECHO_T}no" >&6
  1745. fi
  1746. test -n "$CXX" && break
  1747. done
  1748. fi
  1749. if test -z "$CXX"; then
  1750. ac_ct_CXX=$CXX
  1751. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1752. do
  1753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1754. set dummy $ac_prog; ac_word=$2
  1755. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1756. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1757. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1758. echo $ECHO_N "(cached) $ECHO_C" >&6
  1759. else
  1760. if test -n "$ac_ct_CXX"; then
  1761. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1762. else
  1763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1764. for as_dir in $PATH
  1765. do
  1766. IFS=$as_save_IFS
  1767. test -z "$as_dir" && as_dir=.
  1768. for ac_exec_ext in '' $ac_executable_extensions; do
  1769. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1770. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1771. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1772. break 2
  1773. fi
  1774. done
  1775. done
  1776. fi
  1777. fi
  1778. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1779. if test -n "$ac_ct_CXX"; then
  1780. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1781. echo "${ECHO_T}$ac_ct_CXX" >&6
  1782. else
  1783. echo "$as_me:$LINENO: result: no" >&5
  1784. echo "${ECHO_T}no" >&6
  1785. fi
  1786. test -n "$ac_ct_CXX" && break
  1787. done
  1788. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1789. CXX=$ac_ct_CXX
  1790. fi
  1791. # Provide some information about the compiler.
  1792. echo "$as_me:$LINENO:" \
  1793. "checking for C++ compiler version" >&5
  1794. ac_compiler=`set X $ac_compile; echo $2`
  1795. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1796. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1797. ac_status=$?
  1798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1799. (exit $ac_status); }
  1800. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1801. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1802. ac_status=$?
  1803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1804. (exit $ac_status); }
  1805. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1806. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1807. ac_status=$?
  1808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1809. (exit $ac_status); }
  1810. cat >conftest.$ac_ext <<_ACEOF
  1811. /* confdefs.h. */
  1812. _ACEOF
  1813. cat confdefs.h >>conftest.$ac_ext
  1814. cat >>conftest.$ac_ext <<_ACEOF
  1815. /* end confdefs.h. */
  1816. int
  1817. main ()
  1818. {
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. ac_clean_files_save=$ac_clean_files
  1824. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1825. # Try to create an executable without -o first, disregard a.out.
  1826. # It will help us diagnose broken compilers, and finding out an intuition
  1827. # of exeext.
  1828. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1829. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1830. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1831. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1832. (eval $ac_link_default) 2>&5
  1833. ac_status=$?
  1834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1835. (exit $ac_status); }; then
  1836. # Find the output, starting from the most likely. This scheme is
  1837. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1838. # resort.
  1839. # Be careful to initialize this variable, since it used to be cached.
  1840. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1841. ac_cv_exeext=
  1842. # b.out is created by i960 compilers.
  1843. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1844. do
  1845. test -f "$ac_file" || continue
  1846. case $ac_file in
  1847. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1848. ;;
  1849. conftest.$ac_ext )
  1850. # This is the source file.
  1851. ;;
  1852. [ab].out )
  1853. # We found the default executable, but exeext='' is most
  1854. # certainly right.
  1855. break;;
  1856. *.* )
  1857. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1858. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1859. # but it would be cool to find out if it's true. Does anybody
  1860. # maintain Libtool? --akim.
  1861. export ac_cv_exeext
  1862. break;;
  1863. * )
  1864. break;;
  1865. esac
  1866. done
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1871. See \`config.log' for more details." >&5
  1872. echo "$as_me: error: C++ compiler cannot create executables
  1873. See \`config.log' for more details." >&2;}
  1874. { (exit 77); exit 77; }; }
  1875. fi
  1876. ac_exeext=$ac_cv_exeext
  1877. echo "$as_me:$LINENO: result: $ac_file" >&5
  1878. echo "${ECHO_T}$ac_file" >&6
  1879. # Check the compiler produces executables we can run. If not, either
  1880. # the compiler is broken, or we cross compile.
  1881. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1882. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1883. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1884. # If not cross compiling, check that we can run a simple program.
  1885. if test "$cross_compiling" != yes; then
  1886. if { ac_try='./$ac_file'
  1887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1888. (eval $ac_try) 2>&5
  1889. ac_status=$?
  1890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1891. (exit $ac_status); }; }; then
  1892. cross_compiling=no
  1893. else
  1894. if test "$cross_compiling" = maybe; then
  1895. cross_compiling=yes
  1896. else
  1897. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1898. If you meant to cross compile, use \`--host'.
  1899. See \`config.log' for more details." >&5
  1900. echo "$as_me: error: cannot run C++ compiled programs.
  1901. If you meant to cross compile, use \`--host'.
  1902. See \`config.log' for more details." >&2;}
  1903. { (exit 1); exit 1; }; }
  1904. fi
  1905. fi
  1906. fi
  1907. echo "$as_me:$LINENO: result: yes" >&5
  1908. echo "${ECHO_T}yes" >&6
  1909. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1910. ac_clean_files=$ac_clean_files_save
  1911. # Check the compiler produces executables we can run. If not, either
  1912. # the compiler is broken, or we cross compile.
  1913. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1914. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1915. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1916. echo "${ECHO_T}$cross_compiling" >&6
  1917. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1918. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1919. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1920. (eval $ac_link) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; then
  1924. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1925. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1926. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1927. # `rm'.
  1928. for ac_file in conftest.exe conftest conftest.*; do
  1929. test -f "$ac_file" || continue
  1930. case $ac_file in
  1931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1932. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1933. export ac_cv_exeext
  1934. break;;
  1935. * ) break;;
  1936. esac
  1937. done
  1938. else
  1939. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1940. See \`config.log' for more details." >&5
  1941. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1942. See \`config.log' for more details." >&2;}
  1943. { (exit 1); exit 1; }; }
  1944. fi
  1945. rm -f conftest$ac_cv_exeext
  1946. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1947. echo "${ECHO_T}$ac_cv_exeext" >&6
  1948. rm -f conftest.$ac_ext
  1949. EXEEXT=$ac_cv_exeext
  1950. ac_exeext=$EXEEXT
  1951. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1952. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1953. if test "${ac_cv_objext+set}" = set; then
  1954. echo $ECHO_N "(cached) $ECHO_C" >&6
  1955. else
  1956. cat >conftest.$ac_ext <<_ACEOF
  1957. /* confdefs.h. */
  1958. _ACEOF
  1959. cat confdefs.h >>conftest.$ac_ext
  1960. cat >>conftest.$ac_ext <<_ACEOF
  1961. /* end confdefs.h. */
  1962. int
  1963. main ()
  1964. {
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. rm -f conftest.o conftest.obj
  1970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1971. (eval $ac_compile) 2>&5
  1972. ac_status=$?
  1973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1974. (exit $ac_status); }; then
  1975. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1976. case $ac_file in
  1977. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1978. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1979. break;;
  1980. esac
  1981. done
  1982. else
  1983. echo "$as_me: failed program was:" >&5
  1984. sed 's/^/| /' conftest.$ac_ext >&5
  1985. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1986. See \`config.log' for more details." >&5
  1987. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1988. See \`config.log' for more details." >&2;}
  1989. { (exit 1); exit 1; }; }
  1990. fi
  1991. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1992. fi
  1993. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1994. echo "${ECHO_T}$ac_cv_objext" >&6
  1995. OBJEXT=$ac_cv_objext
  1996. ac_objext=$OBJEXT
  1997. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1998. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1999. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2000. echo $ECHO_N "(cached) $ECHO_C" >&6
  2001. else
  2002. cat >conftest.$ac_ext <<_ACEOF
  2003. /* confdefs.h. */
  2004. _ACEOF
  2005. cat confdefs.h >>conftest.$ac_ext
  2006. cat >>conftest.$ac_ext <<_ACEOF
  2007. /* end confdefs.h. */
  2008. int
  2009. main ()
  2010. {
  2011. #ifndef __GNUC__
  2012. choke me
  2013. #endif
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. rm -f conftest.$ac_objext
  2019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2020. (eval $ac_compile) 2>conftest.er1
  2021. ac_status=$?
  2022. grep -v '^ *+' conftest.er1 >conftest.err
  2023. rm -f conftest.er1
  2024. cat conftest.err >&5
  2025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2026. (exit $ac_status); } &&
  2027. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2029. (eval $ac_try) 2>&5
  2030. ac_status=$?
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); }; } &&
  2033. { ac_try='test -s conftest.$ac_objext'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; }; then
  2039. ac_compiler_gnu=yes
  2040. else
  2041. echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_compiler_gnu=no
  2044. fi
  2045. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2046. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2047. fi
  2048. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2049. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2050. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2051. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2052. ac_save_CXXFLAGS=$CXXFLAGS
  2053. CXXFLAGS="-g"
  2054. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2055. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2056. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. cat >conftest.$ac_ext <<_ACEOF
  2060. /* confdefs.h. */
  2061. _ACEOF
  2062. cat confdefs.h >>conftest.$ac_ext
  2063. cat >>conftest.$ac_ext <<_ACEOF
  2064. /* end confdefs.h. */
  2065. int
  2066. main ()
  2067. {
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. rm -f conftest.$ac_objext
  2073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2074. (eval $ac_compile) 2>conftest.er1
  2075. ac_status=$?
  2076. grep -v '^ *+' conftest.er1 >conftest.err
  2077. rm -f conftest.er1
  2078. cat conftest.err >&5
  2079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); } &&
  2081. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2083. (eval $ac_try) 2>&5
  2084. ac_status=$?
  2085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2086. (exit $ac_status); }; } &&
  2087. { ac_try='test -s conftest.$ac_objext'
  2088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2089. (eval $ac_try) 2>&5
  2090. ac_status=$?
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); }; }; then
  2093. ac_cv_prog_cxx_g=yes
  2094. else
  2095. echo "$as_me: failed program was:" >&5
  2096. sed 's/^/| /' conftest.$ac_ext >&5
  2097. ac_cv_prog_cxx_g=no
  2098. fi
  2099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2100. fi
  2101. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2102. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2103. if test "$ac_test_CXXFLAGS" = set; then
  2104. CXXFLAGS=$ac_save_CXXFLAGS
  2105. elif test $ac_cv_prog_cxx_g = yes; then
  2106. if test "$GXX" = yes; then
  2107. CXXFLAGS="-g -O2"
  2108. else
  2109. CXXFLAGS="-g"
  2110. fi
  2111. else
  2112. if test "$GXX" = yes; then
  2113. CXXFLAGS="-O2"
  2114. else
  2115. CXXFLAGS=
  2116. fi
  2117. fi
  2118. for ac_declaration in \
  2119. '' \
  2120. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2121. 'extern "C" void std::exit (int); using std::exit;' \
  2122. 'extern "C" void exit (int) throw ();' \
  2123. 'extern "C" void exit (int);' \
  2124. 'void exit (int);'
  2125. do
  2126. cat >conftest.$ac_ext <<_ACEOF
  2127. /* confdefs.h. */
  2128. _ACEOF
  2129. cat confdefs.h >>conftest.$ac_ext
  2130. cat >>conftest.$ac_ext <<_ACEOF
  2131. /* end confdefs.h. */
  2132. $ac_declaration
  2133. #include <stdlib.h>
  2134. int
  2135. main ()
  2136. {
  2137. exit (42);
  2138. ;
  2139. return 0;
  2140. }
  2141. _ACEOF
  2142. rm -f conftest.$ac_objext
  2143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2144. (eval $ac_compile) 2>conftest.er1
  2145. ac_status=$?
  2146. grep -v '^ *+' conftest.er1 >conftest.err
  2147. rm -f conftest.er1
  2148. cat conftest.err >&5
  2149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2150. (exit $ac_status); } &&
  2151. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2153. (eval $ac_try) 2>&5
  2154. ac_status=$?
  2155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2156. (exit $ac_status); }; } &&
  2157. { ac_try='test -s conftest.$ac_objext'
  2158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2159. (eval $ac_try) 2>&5
  2160. ac_status=$?
  2161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2162. (exit $ac_status); }; }; then
  2163. :
  2164. else
  2165. echo "$as_me: failed program was:" >&5
  2166. sed 's/^/| /' conftest.$ac_ext >&5
  2167. continue
  2168. fi
  2169. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. cat >conftest.$ac_ext <<_ACEOF
  2171. /* confdefs.h. */
  2172. _ACEOF
  2173. cat confdefs.h >>conftest.$ac_ext
  2174. cat >>conftest.$ac_ext <<_ACEOF
  2175. /* end confdefs.h. */
  2176. $ac_declaration
  2177. int
  2178. main ()
  2179. {
  2180. exit (42);
  2181. ;
  2182. return 0;
  2183. }
  2184. _ACEOF
  2185. rm -f conftest.$ac_objext
  2186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2187. (eval $ac_compile) 2>conftest.er1
  2188. ac_status=$?
  2189. grep -v '^ *+' conftest.er1 >conftest.err
  2190. rm -f conftest.er1
  2191. cat conftest.err >&5
  2192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2193. (exit $ac_status); } &&
  2194. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2196. (eval $ac_try) 2>&5
  2197. ac_status=$?
  2198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2199. (exit $ac_status); }; } &&
  2200. { ac_try='test -s conftest.$ac_objext'
  2201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2202. (eval $ac_try) 2>&5
  2203. ac_status=$?
  2204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2205. (exit $ac_status); }; }; then
  2206. break
  2207. else
  2208. echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. fi
  2211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. done
  2213. rm -f conftest*
  2214. if test -n "$ac_declaration"; then
  2215. echo '#ifdef __cplusplus' >>confdefs.h
  2216. echo $ac_declaration >>confdefs.h
  2217. echo '#endif' >>confdefs.h
  2218. fi
  2219. ac_ext=c
  2220. ac_cpp='$CPP $CPPFLAGS'
  2221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2224. DEPDIR="${am__leading_dot}deps"
  2225. ac_config_commands="$ac_config_commands depfiles"
  2226. am_make=${MAKE-make}
  2227. cat > confinc << 'END'
  2228. am__doit:
  2229. @echo done
  2230. .PHONY: am__doit
  2231. END
  2232. # If we don't find an include directive, just comment out the code.
  2233. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2234. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2235. am__include="#"
  2236. am__quote=
  2237. _am_result=none
  2238. # First try GNU make style include.
  2239. echo "include confinc" > confmf
  2240. # We grep out `Entering directory' and `Leaving directory'
  2241. # messages which can occur if `w' ends up in MAKEFLAGS.
  2242. # In particular we don't look at `^make:' because GNU make might
  2243. # be invoked under some other name (usually "gmake"), in which
  2244. # case it prints its new name instead of `make'.
  2245. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2246. am__include=include
  2247. am__quote=
  2248. _am_result=GNU
  2249. fi
  2250. # Now try BSD make style include.
  2251. if test "$am__include" = "#"; then
  2252. echo '.include "confinc"' > confmf
  2253. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2254. am__include=.include
  2255. am__quote="\""
  2256. _am_result=BSD
  2257. fi
  2258. fi
  2259. echo "$as_me:$LINENO: result: $_am_result" >&5
  2260. echo "${ECHO_T}$_am_result" >&6
  2261. rm -f confinc confmf
  2262. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2263. if test "${enable_dependency_tracking+set}" = set; then
  2264. enableval="$enable_dependency_tracking"
  2265. fi;
  2266. if test "x$enable_dependency_tracking" != xno; then
  2267. am_depcomp="$ac_aux_dir/depcomp"
  2268. AMDEPBACKSLASH='\'
  2269. fi
  2270. if test "x$enable_dependency_tracking" != xno; then
  2271. AMDEP_TRUE=
  2272. AMDEP_FALSE='#'
  2273. else
  2274. AMDEP_TRUE='#'
  2275. AMDEP_FALSE=
  2276. fi
  2277. depcc="$CXX" am_compiler_list=
  2278. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2279. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2280. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2281. echo $ECHO_N "(cached) $ECHO_C" >&6
  2282. else
  2283. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2284. # We make a subdir and do the tests there. Otherwise we can end up
  2285. # making bogus files that we don't know about and never remove. For
  2286. # instance it was reported that on HP-UX the gcc test will end up
  2287. # making a dummy file named `D' -- because `-MD' means `put the output
  2288. # in D'.
  2289. mkdir conftest.dir
  2290. # Copy depcomp to subdir because otherwise we won't find it if we're
  2291. # using a relative directory.
  2292. cp "$am_depcomp" conftest.dir
  2293. cd conftest.dir
  2294. # We will build objects and dependencies in a subdirectory because
  2295. # it helps to detect inapplicable dependency modes. For instance
  2296. # both Tru64's cc and ICC support -MD to output dependencies as a
  2297. # side effect of compilation, but ICC will put the dependencies in
  2298. # the current directory while Tru64 will put them in the object
  2299. # directory.
  2300. mkdir sub
  2301. am_cv_CXX_dependencies_compiler_type=none
  2302. if test "$am_compiler_list" = ""; then
  2303. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2304. fi
  2305. for depmode in $am_compiler_list; do
  2306. # Setup a source with many dependencies, because some compilers
  2307. # like to wrap large dependency lists on column 80 (with \), and
  2308. # we should not choose a depcomp mode which is confused by this.
  2309. #
  2310. # We need to recreate these files for each test, as the compiler may
  2311. # overwrite some of them when testing with obscure command lines.
  2312. # This happens at least with the AIX C compiler.
  2313. : > sub/conftest.c
  2314. for i in 1 2 3 4 5 6; do
  2315. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2316. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2317. # Solaris 8's {/usr,}/bin/sh.
  2318. touch sub/conftst$i.h
  2319. done
  2320. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2321. case $depmode in
  2322. nosideeffect)
  2323. # after this tag, mechanisms are not by side-effect, so they'll
  2324. # only be used when explicitly requested
  2325. if test "x$enable_dependency_tracking" = xyes; then
  2326. continue
  2327. else
  2328. break
  2329. fi
  2330. ;;
  2331. none) break ;;
  2332. esac
  2333. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2334. # mode. It turns out that the SunPro C++ compiler does not properly
  2335. # handle `-M -o', and we need to detect this.
  2336. if depmode=$depmode \
  2337. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2338. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2339. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2340. >/dev/null 2>conftest.err &&
  2341. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2342. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2343. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2344. # icc doesn't choke on unknown options, it will just issue warnings
  2345. # or remarks (even with -Werror). So we grep stderr for any message
  2346. # that says an option was ignored or not supported.
  2347. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2348. # icc: Command line warning: ignoring option '-M'; no argument required
  2349. # The diagnosis changed in icc 8.0:
  2350. # icc: Command line remark: option '-MP' not supported
  2351. if (grep 'ignoring option' conftest.err ||
  2352. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2353. am_cv_CXX_dependencies_compiler_type=$depmode
  2354. break
  2355. fi
  2356. fi
  2357. done
  2358. cd ..
  2359. rm -rf conftest.dir
  2360. else
  2361. am_cv_CXX_dependencies_compiler_type=none
  2362. fi
  2363. fi
  2364. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2365. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2366. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2367. if
  2368. test "x$enable_dependency_tracking" != xno \
  2369. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2370. am__fastdepCXX_TRUE=
  2371. am__fastdepCXX_FALSE='#'
  2372. else
  2373. am__fastdepCXX_TRUE='#'
  2374. am__fastdepCXX_FALSE=
  2375. fi
  2376. ac_ext=c
  2377. ac_cpp='$CPP $CPPFLAGS'
  2378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2381. if test -n "$ac_tool_prefix"; then
  2382. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2383. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2384. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2386. if test "${ac_cv_prog_CC+set}" = set; then
  2387. echo $ECHO_N "(cached) $ECHO_C" >&6
  2388. else
  2389. if test -n "$CC"; then
  2390. ac_cv_prog_CC="$CC" # Let the user override the test.
  2391. else
  2392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2393. for as_dir in $PATH
  2394. do
  2395. IFS=$as_save_IFS
  2396. test -z "$as_dir" && as_dir=.
  2397. for ac_exec_ext in '' $ac_executable_extensions; do
  2398. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2399. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2401. break 2
  2402. fi
  2403. done
  2404. done
  2405. fi
  2406. fi
  2407. CC=$ac_cv_prog_CC
  2408. if test -n "$CC"; then
  2409. echo "$as_me:$LINENO: result: $CC" >&5
  2410. echo "${ECHO_T}$CC" >&6
  2411. else
  2412. echo "$as_me:$LINENO: result: no" >&5
  2413. echo "${ECHO_T}no" >&6
  2414. fi
  2415. fi
  2416. if test -z "$ac_cv_prog_CC"; then
  2417. ac_ct_CC=$CC
  2418. # Extract the first word of "gcc", so it can be a program name with args.
  2419. set dummy gcc; ac_word=$2
  2420. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2421. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2422. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2423. echo $ECHO_N "(cached) $ECHO_C" >&6
  2424. else
  2425. if test -n "$ac_ct_CC"; then
  2426. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2427. else
  2428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2429. for as_dir in $PATH
  2430. do
  2431. IFS=$as_save_IFS
  2432. test -z "$as_dir" && as_dir=.
  2433. for ac_exec_ext in '' $ac_executable_extensions; do
  2434. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2435. ac_cv_prog_ac_ct_CC="gcc"
  2436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2437. break 2
  2438. fi
  2439. done
  2440. done
  2441. fi
  2442. fi
  2443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2444. if test -n "$ac_ct_CC"; then
  2445. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2446. echo "${ECHO_T}$ac_ct_CC" >&6
  2447. else
  2448. echo "$as_me:$LINENO: result: no" >&5
  2449. echo "${ECHO_T}no" >&6
  2450. fi
  2451. CC=$ac_ct_CC
  2452. else
  2453. CC="$ac_cv_prog_CC"
  2454. fi
  2455. if test -z "$CC"; then
  2456. if test -n "$ac_tool_prefix"; then
  2457. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2458. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2459. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2460. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2461. if test "${ac_cv_prog_CC+set}" = set; then
  2462. echo $ECHO_N "(cached) $ECHO_C" >&6
  2463. else
  2464. if test -n "$CC"; then
  2465. ac_cv_prog_CC="$CC" # Let the user override the test.
  2466. else
  2467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2468. for as_dir in $PATH
  2469. do
  2470. IFS=$as_save_IFS
  2471. test -z "$as_dir" && as_dir=.
  2472. for ac_exec_ext in '' $ac_executable_extensions; do
  2473. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2474. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2475. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2476. break 2
  2477. fi
  2478. done
  2479. done
  2480. fi
  2481. fi
  2482. CC=$ac_cv_prog_CC
  2483. if test -n "$CC"; then
  2484. echo "$as_me:$LINENO: result: $CC" >&5
  2485. echo "${ECHO_T}$CC" >&6
  2486. else
  2487. echo "$as_me:$LINENO: result: no" >&5
  2488. echo "${ECHO_T}no" >&6
  2489. fi
  2490. fi
  2491. if test -z "$ac_cv_prog_CC"; then
  2492. ac_ct_CC=$CC
  2493. # Extract the first word of "cc", so it can be a program name with args.
  2494. set dummy cc; ac_word=$2
  2495. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2497. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2498. echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500. if test -n "$ac_ct_CC"; then
  2501. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2502. else
  2503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2504. for as_dir in $PATH
  2505. do
  2506. IFS=$as_save_IFS
  2507. test -z "$as_dir" && as_dir=.
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2510. ac_cv_prog_ac_ct_CC="cc"
  2511. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2512. break 2
  2513. fi
  2514. done
  2515. done
  2516. fi
  2517. fi
  2518. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2519. if test -n "$ac_ct_CC"; then
  2520. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2521. echo "${ECHO_T}$ac_ct_CC" >&6
  2522. else
  2523. echo "$as_me:$LINENO: result: no" >&5
  2524. echo "${ECHO_T}no" >&6
  2525. fi
  2526. CC=$ac_ct_CC
  2527. else
  2528. CC="$ac_cv_prog_CC"
  2529. fi
  2530. fi
  2531. if test -z "$CC"; then
  2532. # Extract the first word of "cc", so it can be a program name with args.
  2533. set dummy cc; ac_word=$2
  2534. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2535. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2536. if test "${ac_cv_prog_CC+set}" = set; then
  2537. echo $ECHO_N "(cached) $ECHO_C" >&6
  2538. else
  2539. if test -n "$CC"; then
  2540. ac_cv_prog_CC="$CC" # Let the user override the test.
  2541. else
  2542. ac_prog_rejected=no
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_exec_ext in '' $ac_executable_extensions; do
  2549. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2550. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2551. ac_prog_rejected=yes
  2552. continue
  2553. fi
  2554. ac_cv_prog_CC="cc"
  2555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2556. break 2
  2557. fi
  2558. done
  2559. done
  2560. if test $ac_prog_rejected = yes; then
  2561. # We found a bogon in the path, so make sure we never use it.
  2562. set dummy $ac_cv_prog_CC
  2563. shift
  2564. if test $# != 0; then
  2565. # We chose a different compiler from the bogus one.
  2566. # However, it has the same basename, so the bogon will be chosen
  2567. # first if we set CC to just the basename; use the full file name.
  2568. shift
  2569. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2570. fi
  2571. fi
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. echo "$as_me:$LINENO: result: $CC" >&5
  2577. echo "${ECHO_T}$CC" >&6
  2578. else
  2579. echo "$as_me:$LINENO: result: no" >&5
  2580. echo "${ECHO_T}no" >&6
  2581. fi
  2582. fi
  2583. if test -z "$CC"; then
  2584. if test -n "$ac_tool_prefix"; then
  2585. for ac_prog in cl
  2586. do
  2587. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2588. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2589. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2590. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2591. if test "${ac_cv_prog_CC+set}" = set; then
  2592. echo $ECHO_N "(cached) $ECHO_C" >&6
  2593. else
  2594. if test -n "$CC"; then
  2595. ac_cv_prog_CC="$CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. echo "$as_me:$LINENO: result: $CC" >&5
  2615. echo "${ECHO_T}$CC" >&6
  2616. else
  2617. echo "$as_me:$LINENO: result: no" >&5
  2618. echo "${ECHO_T}no" >&6
  2619. fi
  2620. test -n "$CC" && break
  2621. done
  2622. fi
  2623. if test -z "$CC"; then
  2624. ac_ct_CC=$CC
  2625. for ac_prog in cl
  2626. do
  2627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2628. set dummy $ac_prog; ac_word=$2
  2629. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2630. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2631. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2632. echo $ECHO_N "(cached) $ECHO_C" >&6
  2633. else
  2634. if test -n "$ac_ct_CC"; then
  2635. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2644. ac_cv_prog_ac_ct_CC="$ac_prog"
  2645. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646. break 2
  2647. fi
  2648. done
  2649. done
  2650. fi
  2651. fi
  2652. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2653. if test -n "$ac_ct_CC"; then
  2654. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2655. echo "${ECHO_T}$ac_ct_CC" >&6
  2656. else
  2657. echo "$as_me:$LINENO: result: no" >&5
  2658. echo "${ECHO_T}no" >&6
  2659. fi
  2660. test -n "$ac_ct_CC" && break
  2661. done
  2662. CC=$ac_ct_CC
  2663. fi
  2664. fi
  2665. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2666. See \`config.log' for more details." >&5
  2667. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2668. See \`config.log' for more details." >&2;}
  2669. { (exit 1); exit 1; }; }
  2670. # Provide some information about the compiler.
  2671. echo "$as_me:$LINENO:" \
  2672. "checking for C compiler version" >&5
  2673. ac_compiler=`set X $ac_compile; echo $2`
  2674. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2675. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2676. ac_status=$?
  2677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. (exit $ac_status); }
  2679. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2680. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2681. ac_status=$?
  2682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2683. (exit $ac_status); }
  2684. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2685. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2686. ac_status=$?
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); }
  2689. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2690. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2691. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2692. echo $ECHO_N "(cached) $ECHO_C" >&6
  2693. else
  2694. cat >conftest.$ac_ext <<_ACEOF
  2695. /* confdefs.h. */
  2696. _ACEOF
  2697. cat confdefs.h >>conftest.$ac_ext
  2698. cat >>conftest.$ac_ext <<_ACEOF
  2699. /* end confdefs.h. */
  2700. int
  2701. main ()
  2702. {
  2703. #ifndef __GNUC__
  2704. choke me
  2705. #endif
  2706. ;
  2707. return 0;
  2708. }
  2709. _ACEOF
  2710. rm -f conftest.$ac_objext
  2711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2712. (eval $ac_compile) 2>conftest.er1
  2713. ac_status=$?
  2714. grep -v '^ *+' conftest.er1 >conftest.err
  2715. rm -f conftest.er1
  2716. cat conftest.err >&5
  2717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2718. (exit $ac_status); } &&
  2719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2721. (eval $ac_try) 2>&5
  2722. ac_status=$?
  2723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2724. (exit $ac_status); }; } &&
  2725. { ac_try='test -s conftest.$ac_objext'
  2726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2727. (eval $ac_try) 2>&5
  2728. ac_status=$?
  2729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. (exit $ac_status); }; }; then
  2731. ac_compiler_gnu=yes
  2732. else
  2733. echo "$as_me: failed program was:" >&5
  2734. sed 's/^/| /' conftest.$ac_ext >&5
  2735. ac_compiler_gnu=no
  2736. fi
  2737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2738. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2739. fi
  2740. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2741. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2742. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2743. ac_test_CFLAGS=${CFLAGS+set}
  2744. ac_save_CFLAGS=$CFLAGS
  2745. CFLAGS="-g"
  2746. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2747. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2748. if test "${ac_cv_prog_cc_g+set}" = set; then
  2749. echo $ECHO_N "(cached) $ECHO_C" >&6
  2750. else
  2751. cat >conftest.$ac_ext <<_ACEOF
  2752. /* confdefs.h. */
  2753. _ACEOF
  2754. cat confdefs.h >>conftest.$ac_ext
  2755. cat >>conftest.$ac_ext <<_ACEOF
  2756. /* end confdefs.h. */
  2757. int
  2758. main ()
  2759. {
  2760. ;
  2761. return 0;
  2762. }
  2763. _ACEOF
  2764. rm -f conftest.$ac_objext
  2765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2766. (eval $ac_compile) 2>conftest.er1
  2767. ac_status=$?
  2768. grep -v '^ *+' conftest.er1 >conftest.err
  2769. rm -f conftest.er1
  2770. cat conftest.err >&5
  2771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); } &&
  2773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2775. (eval $ac_try) 2>&5
  2776. ac_status=$?
  2777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2778. (exit $ac_status); }; } &&
  2779. { ac_try='test -s conftest.$ac_objext'
  2780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2781. (eval $ac_try) 2>&5
  2782. ac_status=$?
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); }; }; then
  2785. ac_cv_prog_cc_g=yes
  2786. else
  2787. echo "$as_me: failed program was:" >&5
  2788. sed 's/^/| /' conftest.$ac_ext >&5
  2789. ac_cv_prog_cc_g=no
  2790. fi
  2791. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2792. fi
  2793. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2794. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2795. if test "$ac_test_CFLAGS" = set; then
  2796. CFLAGS=$ac_save_CFLAGS
  2797. elif test $ac_cv_prog_cc_g = yes; then
  2798. if test "$GCC" = yes; then
  2799. CFLAGS="-g -O2"
  2800. else
  2801. CFLAGS="-g"
  2802. fi
  2803. else
  2804. if test "$GCC" = yes; then
  2805. CFLAGS="-O2"
  2806. else
  2807. CFLAGS=
  2808. fi
  2809. fi
  2810. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2811. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2812. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2813. echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. ac_cv_prog_cc_stdc=no
  2816. ac_save_CC=$CC
  2817. cat >conftest.$ac_ext <<_ACEOF
  2818. /* confdefs.h. */
  2819. _ACEOF
  2820. cat confdefs.h >>conftest.$ac_ext
  2821. cat >>conftest.$ac_ext <<_ACEOF
  2822. /* end confdefs.h. */
  2823. #include <stdarg.h>
  2824. #include <stdio.h>
  2825. #include <sys/types.h>
  2826. #include <sys/stat.h>
  2827. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2828. struct buf { int x; };
  2829. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2830. static char *e (p, i)
  2831. char **p;
  2832. int i;
  2833. {
  2834. return p[i];
  2835. }
  2836. static char *f (char * (*g) (char **, int), char **p, ...)
  2837. {
  2838. char *s;
  2839. va_list v;
  2840. va_start (v,p);
  2841. s = g (p, va_arg (v,int));
  2842. va_end (v);
  2843. return s;
  2844. }
  2845. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2846. function prototypes and stuff, but not '\xHH' hex character constants.
  2847. These don't provoke an error unfortunately, instead are silently treated
  2848. as 'x'. The following induces an error, until -std1 is added to get
  2849. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2850. array size at least. It's necessary to write '\x00'==0 to get something
  2851. that's true only with -std1. */
  2852. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2853. int test (int i, double x);
  2854. struct s1 {int (*f) (int a);};
  2855. struct s2 {int (*f) (double a);};
  2856. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2857. int argc;
  2858. char **argv;
  2859. int
  2860. main ()
  2861. {
  2862. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. # Don't try gcc -ansi; that turns off useful extensions and
  2868. # breaks some systems' header files.
  2869. # AIX -qlanglvl=ansi
  2870. # Ultrix and OSF/1 -std1
  2871. # HP-UX 10.20 and later -Ae
  2872. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2873. # SVR4 -Xc -D__EXTENSIONS__
  2874. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2875. do
  2876. CC="$ac_save_CC $ac_arg"
  2877. rm -f conftest.$ac_objext
  2878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2879. (eval $ac_compile) 2>conftest.er1
  2880. ac_status=$?
  2881. grep -v '^ *+' conftest.er1 >conftest.err
  2882. rm -f conftest.er1
  2883. cat conftest.err >&5
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); } &&
  2886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2888. (eval $ac_try) 2>&5
  2889. ac_status=$?
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); }; } &&
  2892. { ac_try='test -s conftest.$ac_objext'
  2893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2894. (eval $ac_try) 2>&5
  2895. ac_status=$?
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); }; }; then
  2898. ac_cv_prog_cc_stdc=$ac_arg
  2899. break
  2900. else
  2901. echo "$as_me: failed program was:" >&5
  2902. sed 's/^/| /' conftest.$ac_ext >&5
  2903. fi
  2904. rm -f conftest.err conftest.$ac_objext
  2905. done
  2906. rm -f conftest.$ac_ext conftest.$ac_objext
  2907. CC=$ac_save_CC
  2908. fi
  2909. case "x$ac_cv_prog_cc_stdc" in
  2910. x|xno)
  2911. echo "$as_me:$LINENO: result: none needed" >&5
  2912. echo "${ECHO_T}none needed" >&6 ;;
  2913. *)
  2914. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2915. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2916. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2917. esac
  2918. # Some people use a C++ compiler to compile C. Since we use `exit',
  2919. # in C++ we need to declare it. In case someone uses the same compiler
  2920. # for both compiling C and C++ we need to have the C++ compiler decide
  2921. # the declaration of exit, since it's the most demanding environment.
  2922. cat >conftest.$ac_ext <<_ACEOF
  2923. #ifndef __cplusplus
  2924. choke me
  2925. #endif
  2926. _ACEOF
  2927. rm -f conftest.$ac_objext
  2928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2929. (eval $ac_compile) 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } &&
  2936. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2938. (eval $ac_try) 2>&5
  2939. ac_status=$?
  2940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2941. (exit $ac_status); }; } &&
  2942. { ac_try='test -s conftest.$ac_objext'
  2943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2944. (eval $ac_try) 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; }; then
  2948. for ac_declaration in \
  2949. '' \
  2950. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2951. 'extern "C" void std::exit (int); using std::exit;' \
  2952. 'extern "C" void exit (int) throw ();' \
  2953. 'extern "C" void exit (int);' \
  2954. 'void exit (int);'
  2955. do
  2956. cat >conftest.$ac_ext <<_ACEOF
  2957. /* confdefs.h. */
  2958. _ACEOF
  2959. cat confdefs.h >>conftest.$ac_ext
  2960. cat >>conftest.$ac_ext <<_ACEOF
  2961. /* end confdefs.h. */
  2962. $ac_declaration
  2963. #include <stdlib.h>
  2964. int
  2965. main ()
  2966. {
  2967. exit (42);
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. rm -f conftest.$ac_objext
  2973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2974. (eval $ac_compile) 2>conftest.er1
  2975. ac_status=$?
  2976. grep -v '^ *+' conftest.er1 >conftest.err
  2977. rm -f conftest.er1
  2978. cat conftest.err >&5
  2979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2980. (exit $ac_status); } &&
  2981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2983. (eval $ac_try) 2>&5
  2984. ac_status=$?
  2985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2986. (exit $ac_status); }; } &&
  2987. { ac_try='test -s conftest.$ac_objext'
  2988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2989. (eval $ac_try) 2>&5
  2990. ac_status=$?
  2991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2992. (exit $ac_status); }; }; then
  2993. :
  2994. else
  2995. echo "$as_me: failed program was:" >&5
  2996. sed 's/^/| /' conftest.$ac_ext >&5
  2997. continue
  2998. fi
  2999. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3000. cat >conftest.$ac_ext <<_ACEOF
  3001. /* confdefs.h. */
  3002. _ACEOF
  3003. cat confdefs.h >>conftest.$ac_ext
  3004. cat >>conftest.$ac_ext <<_ACEOF
  3005. /* end confdefs.h. */
  3006. $ac_declaration
  3007. int
  3008. main ()
  3009. {
  3010. exit (42);
  3011. ;
  3012. return 0;
  3013. }
  3014. _ACEOF
  3015. rm -f conftest.$ac_objext
  3016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3017. (eval $ac_compile) 2>conftest.er1
  3018. ac_status=$?
  3019. grep -v '^ *+' conftest.er1 >conftest.err
  3020. rm -f conftest.er1
  3021. cat conftest.err >&5
  3022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3023. (exit $ac_status); } &&
  3024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3026. (eval $ac_try) 2>&5
  3027. ac_status=$?
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); }; } &&
  3030. { ac_try='test -s conftest.$ac_objext'
  3031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3032. (eval $ac_try) 2>&5
  3033. ac_status=$?
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; }; then
  3036. break
  3037. else
  3038. echo "$as_me: failed program was:" >&5
  3039. sed 's/^/| /' conftest.$ac_ext >&5
  3040. fi
  3041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3042. done
  3043. rm -f conftest*
  3044. if test -n "$ac_declaration"; then
  3045. echo '#ifdef __cplusplus' >>confdefs.h
  3046. echo $ac_declaration >>confdefs.h
  3047. echo '#endif' >>confdefs.h
  3048. fi
  3049. else
  3050. echo "$as_me: failed program was:" >&5
  3051. sed 's/^/| /' conftest.$ac_ext >&5
  3052. fi
  3053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3054. ac_ext=c
  3055. ac_cpp='$CPP $CPPFLAGS'
  3056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3059. depcc="$CC" am_compiler_list=
  3060. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3061. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3062. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3066. # We make a subdir and do the tests there. Otherwise we can end up
  3067. # making bogus files that we don't know about and never remove. For
  3068. # instance it was reported that on HP-UX the gcc test will end up
  3069. # making a dummy file named `D' -- because `-MD' means `put the output
  3070. # in D'.
  3071. mkdir conftest.dir
  3072. # Copy depcomp to subdir because otherwise we won't find it if we're
  3073. # using a relative directory.
  3074. cp "$am_depcomp" conftest.dir
  3075. cd conftest.dir
  3076. # We will build objects and dependencies in a subdirectory because
  3077. # it helps to detect inapplicable dependency modes. For instance
  3078. # both Tru64's cc and ICC support -MD to output dependencies as a
  3079. # side effect of compilation, but ICC will put the dependencies in
  3080. # the current directory while Tru64 will put them in the object
  3081. # directory.
  3082. mkdir sub
  3083. am_cv_CC_dependencies_compiler_type=none
  3084. if test "$am_compiler_list" = ""; then
  3085. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3086. fi
  3087. for depmode in $am_compiler_list; do
  3088. # Setup a source with many dependencies, because some compilers
  3089. # like to wrap large dependency lists on column 80 (with \), and
  3090. # we should not choose a depcomp mode which is confused by this.
  3091. #
  3092. # We need to recreate these files for each test, as the compiler may
  3093. # overwrite some of them when testing with obscure command lines.
  3094. # This happens at least with the AIX C compiler.
  3095. : > sub/conftest.c
  3096. for i in 1 2 3 4 5 6; do
  3097. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3098. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3099. # Solaris 8's {/usr,}/bin/sh.
  3100. touch sub/conftst$i.h
  3101. done
  3102. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3103. case $depmode in
  3104. nosideeffect)
  3105. # after this tag, mechanisms are not by side-effect, so they'll
  3106. # only be used when explicitly requested
  3107. if test "x$enable_dependency_tracking" = xyes; then
  3108. continue
  3109. else
  3110. break
  3111. fi
  3112. ;;
  3113. none) break ;;
  3114. esac
  3115. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3116. # mode. It turns out that the SunPro C++ compiler does not properly
  3117. # handle `-M -o', and we need to detect this.
  3118. if depmode=$depmode \
  3119. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3120. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3121. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3122. >/dev/null 2>conftest.err &&
  3123. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3124. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3125. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3126. # icc doesn't choke on unknown options, it will just issue warnings
  3127. # or remarks (even with -Werror). So we grep stderr for any message
  3128. # that says an option was ignored or not supported.
  3129. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3130. # icc: Command line warning: ignoring option '-M'; no argument required
  3131. # The diagnosis changed in icc 8.0:
  3132. # icc: Command line remark: option '-MP' not supported
  3133. if (grep 'ignoring option' conftest.err ||
  3134. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3135. am_cv_CC_dependencies_compiler_type=$depmode
  3136. break
  3137. fi
  3138. fi
  3139. done
  3140. cd ..
  3141. rm -rf conftest.dir
  3142. else
  3143. am_cv_CC_dependencies_compiler_type=none
  3144. fi
  3145. fi
  3146. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3147. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3148. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3149. if
  3150. test "x$enable_dependency_tracking" != xno \
  3151. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3152. am__fastdepCC_TRUE=
  3153. am__fastdepCC_FALSE='#'
  3154. else
  3155. am__fastdepCC_TRUE='#'
  3156. am__fastdepCC_FALSE=
  3157. fi
  3158. # Find a good install program. We prefer a C program (faster),
  3159. # so one script is as good as another. But avoid the broken or
  3160. # incompatible versions:
  3161. # SysV /etc/install, /usr/sbin/install
  3162. # SunOS /usr/etc/install
  3163. # IRIX /sbin/install
  3164. # AIX /bin/install
  3165. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3166. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3167. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3168. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3169. # OS/2's system install, which has a completely different semantic
  3170. # ./install, which can be erroneously created by make from ./install.sh.
  3171. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3172. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3173. if test -z "$INSTALL"; then
  3174. if test "${ac_cv_path_install+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3178. for as_dir in $PATH
  3179. do
  3180. IFS=$as_save_IFS
  3181. test -z "$as_dir" && as_dir=.
  3182. # Account for people who put trailing slashes in PATH elements.
  3183. case $as_dir/ in
  3184. ./ | .// | /cC/* | \
  3185. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3186. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3187. /usr/ucb/* ) ;;
  3188. *)
  3189. # OSF1 and SCO ODT 3.0 have their own names for install.
  3190. # Don't use installbsd from OSF since it installs stuff as root
  3191. # by default.
  3192. for ac_prog in ginstall scoinst install; do
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3195. if test $ac_prog = install &&
  3196. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3197. # AIX install. It has an incompatible calling convention.
  3198. :
  3199. elif test $ac_prog = install &&
  3200. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3201. # program-specific install script used by HP pwplus--don't use.
  3202. :
  3203. else
  3204. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3205. break 3
  3206. fi
  3207. fi
  3208. done
  3209. done
  3210. ;;
  3211. esac
  3212. done
  3213. fi
  3214. if test "${ac_cv_path_install+set}" = set; then
  3215. INSTALL=$ac_cv_path_install
  3216. else
  3217. # As a last resort, use the slow shell script. We don't cache a
  3218. # path for INSTALL within a source directory, because that will
  3219. # break other packages using the cache if that directory is
  3220. # removed, or if the path is relative.
  3221. INSTALL=$ac_install_sh
  3222. fi
  3223. fi
  3224. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3225. echo "${ECHO_T}$INSTALL" >&6
  3226. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3227. # It thinks the first close brace ends the variable substitution.
  3228. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3229. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3230. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3231. if test -n "$ac_tool_prefix"; then
  3232. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3233. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3236. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3237. echo $ECHO_N "(cached) $ECHO_C" >&6
  3238. else
  3239. if test -n "$RANLIB"; then
  3240. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3241. else
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH
  3244. do
  3245. IFS=$as_save_IFS
  3246. test -z "$as_dir" && as_dir=.
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3249. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. fi
  3256. fi
  3257. RANLIB=$ac_cv_prog_RANLIB
  3258. if test -n "$RANLIB"; then
  3259. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3260. echo "${ECHO_T}$RANLIB" >&6
  3261. else
  3262. echo "$as_me:$LINENO: result: no" >&5
  3263. echo "${ECHO_T}no" >&6
  3264. fi
  3265. fi
  3266. if test -z "$ac_cv_prog_RANLIB"; then
  3267. ac_ct_RANLIB=$RANLIB
  3268. # Extract the first word of "ranlib", so it can be a program name with args.
  3269. set dummy ranlib; ac_word=$2
  3270. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3272. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3273. echo $ECHO_N "(cached) $ECHO_C" >&6
  3274. else
  3275. if test -n "$ac_ct_RANLIB"; then
  3276. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3277. else
  3278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3279. for as_dir in $PATH
  3280. do
  3281. IFS=$as_save_IFS
  3282. test -z "$as_dir" && as_dir=.
  3283. for ac_exec_ext in '' $ac_executable_extensions; do
  3284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3285. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3287. break 2
  3288. fi
  3289. done
  3290. done
  3291. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3292. fi
  3293. fi
  3294. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3295. if test -n "$ac_ct_RANLIB"; then
  3296. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3297. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3298. else
  3299. echo "$as_me:$LINENO: result: no" >&5
  3300. echo "${ECHO_T}no" >&6
  3301. fi
  3302. RANLIB=$ac_ct_RANLIB
  3303. else
  3304. RANLIB="$ac_cv_prog_RANLIB"
  3305. fi
  3306. for ac_prog in 'bison -y' byacc
  3307. do
  3308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3309. set dummy $ac_prog; ac_word=$2
  3310. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3311. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3312. if test "${ac_cv_prog_YACC+set}" = set; then
  3313. echo $ECHO_N "(cached) $ECHO_C" >&6
  3314. else
  3315. if test -n "$YACC"; then
  3316. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3317. else
  3318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3319. for as_dir in $PATH
  3320. do
  3321. IFS=$as_save_IFS
  3322. test -z "$as_dir" && as_dir=.
  3323. for ac_exec_ext in '' $ac_executable_extensions; do
  3324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3325. ac_cv_prog_YACC="$ac_prog"
  3326. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3327. break 2
  3328. fi
  3329. done
  3330. done
  3331. fi
  3332. fi
  3333. YACC=$ac_cv_prog_YACC
  3334. if test -n "$YACC"; then
  3335. echo "$as_me:$LINENO: result: $YACC" >&5
  3336. echo "${ECHO_T}$YACC" >&6
  3337. else
  3338. echo "$as_me:$LINENO: result: no" >&5
  3339. echo "${ECHO_T}no" >&6
  3340. fi
  3341. test -n "$YACC" && break
  3342. done
  3343. test -n "$YACC" || YACC="yacc"
  3344. # Checks for libraries.
  3345. if test "x$with_libxml2" = "xyes"; then
  3346. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3347. if test "${with_xml_prefix+set}" = set; then
  3348. withval="$with_xml_prefix"
  3349. xml_config_prefix="$withval"
  3350. else
  3351. xml_config_prefix=""
  3352. fi;
  3353. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3354. if test "${with_xml_exec_prefix+set}" = set; then
  3355. withval="$with_xml_exec_prefix"
  3356. xml_config_exec_prefix="$withval"
  3357. else
  3358. xml_config_exec_prefix=""
  3359. fi;
  3360. # Check whether --enable-xmltest or --disable-xmltest was given.
  3361. if test "${enable_xmltest+set}" = set; then
  3362. enableval="$enable_xmltest"
  3363. else
  3364. enable_xmltest=yes
  3365. fi;
  3366. if test x$xml_config_exec_prefix != x ; then
  3367. xml_config_args="$xml_config_args"
  3368. if test x${XML2_CONFIG+set} != xset ; then
  3369. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3370. fi
  3371. fi
  3372. if test x$xml_config_prefix != x ; then
  3373. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3374. if test x${XML2_CONFIG+set} != xset ; then
  3375. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3376. fi
  3377. fi
  3378. # Extract the first word of "xml2-config", so it can be a program name with args.
  3379. set dummy xml2-config; ac_word=$2
  3380. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3382. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3383. echo $ECHO_N "(cached) $ECHO_C" >&6
  3384. else
  3385. case $XML2_CONFIG in
  3386. [\\/]* | ?:[\\/]*)
  3387. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3388. ;;
  3389. *)
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_exec_ext in '' $ac_executable_extensions; do
  3396. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3397. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3399. break 2
  3400. fi
  3401. done
  3402. done
  3403. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3404. ;;
  3405. esac
  3406. fi
  3407. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3408. if test -n "$XML2_CONFIG"; then
  3409. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3410. echo "${ECHO_T}$XML2_CONFIG" >&6
  3411. else
  3412. echo "$as_me:$LINENO: result: no" >&5
  3413. echo "${ECHO_T}no" >&6
  3414. fi
  3415. min_xml_version=2.6.26
  3416. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3417. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3418. no_xml=""
  3419. if test "$XML2_CONFIG" = "no" ; then
  3420. no_xml=yes
  3421. else
  3422. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3423. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3424. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3425. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3426. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3427. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3428. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3429. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3430. if test "x$enable_xmltest" = "xyes" ; then
  3431. ac_save_CPPFLAGS="$CPPFLAGS"
  3432. ac_save_LIBS="$LIBS"
  3433. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3434. LIBS="$XML_LIBS $LIBS"
  3435. rm -f conf.xmltest
  3436. if test "$cross_compiling" = yes; then
  3437. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3438. else
  3439. cat >conftest.$ac_ext <<_ACEOF
  3440. /* confdefs.h. */
  3441. _ACEOF
  3442. cat confdefs.h >>conftest.$ac_ext
  3443. cat >>conftest.$ac_ext <<_ACEOF
  3444. /* end confdefs.h. */
  3445. #include <stdlib.h>
  3446. #include <stdio.h>
  3447. #include <string.h>
  3448. #include <libxml/xmlversion.h>
  3449. int
  3450. main()
  3451. {
  3452. int xml_major_version, xml_minor_version, xml_micro_version;
  3453. int major, minor, micro;
  3454. char *tmp_version;
  3455. system("touch conf.xmltest");
  3456. /* Capture xml2-config output via autoconf/configure variables */
  3457. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3458. tmp_version = (char *)strdup("$min_xml_version");
  3459. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3460. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3461. exit(1);
  3462. }
  3463. free(tmp_version);
  3464. /* Capture the version information from the header files */
  3465. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3466. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3467. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3468. exit(1);
  3469. }
  3470. free(tmp_version);
  3471. /* Compare xml2-config output to the libxml headers */
  3472. if ((xml_major_version != $xml_config_major_version) ||
  3473. (xml_minor_version != $xml_config_minor_version) ||
  3474. (xml_micro_version != $xml_config_micro_version))
  3475. {
  3476. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3477. xml_major_version, xml_minor_version, xml_micro_version);
  3478. printf("*** xml2-config (version %d.%d.%d)\n",
  3479. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3480. return 1;
  3481. }
  3482. /* Compare the headers to the library to make sure we match */
  3483. /* Less than ideal -- doesn't provide us with return value feedback,
  3484. * only exits if there's a serious mismatch between header and library.
  3485. */
  3486. LIBXML_TEST_VERSION;
  3487. /* Test that the library is greater than our minimum version */
  3488. if ((xml_major_version > major) ||
  3489. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3490. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3491. (xml_micro_version >= micro)))
  3492. {
  3493. return 0;
  3494. }
  3495. else
  3496. {
  3497. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3498. xml_major_version, xml_minor_version, xml_micro_version);
  3499. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3500. major, minor, micro);
  3501. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3502. printf("***\n");
  3503. printf("*** If you have already installed a sufficiently new version, this error\n");
  3504. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3505. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3506. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3507. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3508. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3509. printf("*** so that the correct libraries are found at run-time))\n");
  3510. }
  3511. return 1;
  3512. }
  3513. _ACEOF
  3514. rm -f conftest$ac_exeext
  3515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3516. (eval $ac_link) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3521. (eval $ac_try) 2>&5
  3522. ac_status=$?
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); }; }; then
  3525. :
  3526. else
  3527. echo "$as_me: program exited with status $ac_status" >&5
  3528. echo "$as_me: failed program was:" >&5
  3529. sed 's/^/| /' conftest.$ac_ext >&5
  3530. ( exit $ac_status )
  3531. no_xml=yes
  3532. fi
  3533. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3534. fi
  3535. CPPFLAGS="$ac_save_CPPFLAGS"
  3536. LIBS="$ac_save_LIBS"
  3537. fi
  3538. fi
  3539. if test "x$no_xml" = x ; then
  3540. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3541. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3542. have_libxml2=yes
  3543. else
  3544. echo "$as_me:$LINENO: result: no" >&5
  3545. echo "${ECHO_T}no" >&6
  3546. if test "$XML2_CONFIG" = "no" ; then
  3547. echo "*** The xml2-config script installed by LIBXML could not be found"
  3548. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3549. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3550. echo "*** full path to xml2-config."
  3551. else
  3552. if test -f conf.xmltest ; then
  3553. :
  3554. else
  3555. echo "*** Could not run libxml test program, checking why..."
  3556. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3557. LIBS="$LIBS $XML_LIBS"
  3558. cat >conftest.$ac_ext <<_ACEOF
  3559. /* confdefs.h. */
  3560. _ACEOF
  3561. cat confdefs.h >>conftest.$ac_ext
  3562. cat >>conftest.$ac_ext <<_ACEOF
  3563. /* end confdefs.h. */
  3564. #include <libxml/xmlversion.h>
  3565. #include <stdio.h>
  3566. int
  3567. main ()
  3568. {
  3569. LIBXML_TEST_VERSION; return 0;
  3570. ;
  3571. return 0;
  3572. }
  3573. _ACEOF
  3574. rm -f conftest.$ac_objext conftest$ac_exeext
  3575. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3576. (eval $ac_link) 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } &&
  3583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3585. (eval $ac_try) 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }; } &&
  3589. { ac_try='test -s conftest$ac_exeext'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; }; then
  3595. echo "*** The test program compiled, but did not run. This usually means"
  3596. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3597. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3598. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3599. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3600. echo "*** is required on your system"
  3601. echo "***"
  3602. echo "*** If you have an old version installed, it is best to remove it, although"
  3603. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3604. else
  3605. echo "$as_me: failed program was:" >&5
  3606. sed 's/^/| /' conftest.$ac_ext >&5
  3607. echo "*** The test program failed to compile or link. See the file config.log for the"
  3608. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3609. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3610. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3611. fi
  3612. rm -f conftest.err conftest.$ac_objext \
  3613. conftest$ac_exeext conftest.$ac_ext
  3614. CPPFLAGS="$ac_save_CPPFLAGS"
  3615. LIBS="$ac_save_LIBS"
  3616. fi
  3617. fi
  3618. XML_CPPFLAGS=""
  3619. XML_LIBS=""
  3620. :
  3621. fi
  3622. rm -f conf.xmltest
  3623. if test "x$have_libxml2" = "xyes"; then
  3624. cat >>confdefs.h <<\_ACEOF
  3625. #define HAVE_LIBXML2 1
  3626. _ACEOF
  3627. fi
  3628. fi
  3629. if test "x$with_gnutls" = "xyes"; then
  3630. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3631. if test "${with_libgnutls_prefix+set}" = set; then
  3632. withval="$with_libgnutls_prefix"
  3633. libgnutls_config_prefix="$withval"
  3634. else
  3635. libgnutls_config_prefix=""
  3636. fi;
  3637. if test x$libgnutls_config_prefix != x ; then
  3638. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3639. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3640. fi
  3641. fi
  3642. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3643. set dummy libgnutls-config; ac_word=$2
  3644. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3646. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3647. echo $ECHO_N "(cached) $ECHO_C" >&6
  3648. else
  3649. case $LIBGNUTLS_CONFIG in
  3650. [\\/]* | ?:[\\/]*)
  3651. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3652. ;;
  3653. *)
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3661. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3662. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3663. break 2
  3664. fi
  3665. done
  3666. done
  3667. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3668. ;;
  3669. esac
  3670. fi
  3671. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3672. if test -n "$LIBGNUTLS_CONFIG"; then
  3673. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3674. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3675. else
  3676. echo "$as_me:$LINENO: result: no" >&5
  3677. echo "${ECHO_T}no" >&6
  3678. fi
  3679. min_libgnutls_version=1.2.9
  3680. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3681. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3682. no_libgnutls=""
  3683. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3684. no_libgnutls=yes
  3685. else
  3686. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3687. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3688. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3689. ac_save_CFLAGS="$CFLAGS"
  3690. ac_save_LIBS="$LIBS"
  3691. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3692. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3693. rm -f conf.libgnutlstest
  3694. if test "$cross_compiling" = yes; then
  3695. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3696. else
  3697. cat >conftest.$ac_ext <<_ACEOF
  3698. /* confdefs.h. */
  3699. _ACEOF
  3700. cat confdefs.h >>conftest.$ac_ext
  3701. cat >>conftest.$ac_ext <<_ACEOF
  3702. /* end confdefs.h. */
  3703. #include <stdio.h>
  3704. #include <stdlib.h>
  3705. #include <string.h>
  3706. #include <gnutls/gnutls.h>
  3707. int
  3708. main ()
  3709. {
  3710. system ("touch conf.libgnutlstest");
  3711. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3712. {
  3713. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3714. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3715. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3716. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3717. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3718. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3719. printf("*** required on your system.\n");
  3720. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3721. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3722. printf("*** before re-running configure\n");
  3723. }
  3724. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3725. {
  3726. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3727. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3728. }
  3729. else
  3730. {
  3731. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3732. {
  3733. return 0;
  3734. }
  3735. else
  3736. {
  3737. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3738. gnutls_check_version(NULL) );
  3739. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3740. "$min_libgnutls_version" );
  3741. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3742. printf("*** \n");
  3743. printf("*** If you have already installed a sufficiently new version, this error\n");
  3744. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3745. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3746. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3747. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3748. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3749. printf("*** so that the correct libraries are found at run-time))\n");
  3750. }
  3751. }
  3752. return 1;
  3753. }
  3754. _ACEOF
  3755. rm -f conftest$ac_exeext
  3756. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3757. (eval $ac_link) 2>&5
  3758. ac_status=$?
  3759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3762. (eval $ac_try) 2>&5
  3763. ac_status=$?
  3764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765. (exit $ac_status); }; }; then
  3766. :
  3767. else
  3768. echo "$as_me: program exited with status $ac_status" >&5
  3769. echo "$as_me: failed program was:" >&5
  3770. sed 's/^/| /' conftest.$ac_ext >&5
  3771. ( exit $ac_status )
  3772. no_libgnutls=yes
  3773. fi
  3774. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. CFLAGS="$ac_save_CFLAGS"
  3777. LIBS="$ac_save_LIBS"
  3778. fi
  3779. if test "x$no_libgnutls" = x ; then
  3780. echo "$as_me:$LINENO: result: yes" >&5
  3781. echo "${ECHO_T}yes" >&6
  3782. have_libgnutls=yes
  3783. else
  3784. if test -f conf.libgnutlstest ; then
  3785. :
  3786. else
  3787. echo "$as_me:$LINENO: result: no" >&5
  3788. echo "${ECHO_T}no" >&6
  3789. fi
  3790. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3791. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3792. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3793. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3794. echo "*** full path to libgnutls-config."
  3795. else
  3796. if test -f conf.libgnutlstest ; then
  3797. :
  3798. else
  3799. echo "*** Could not run libgnutls test program, checking why..."
  3800. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3801. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3802. cat >conftest.$ac_ext <<_ACEOF
  3803. /* confdefs.h. */
  3804. _ACEOF
  3805. cat confdefs.h >>conftest.$ac_ext
  3806. cat >>conftest.$ac_ext <<_ACEOF
  3807. /* end confdefs.h. */
  3808. #include <stdio.h>
  3809. #include <stdlib.h>
  3810. #include <string.h>
  3811. #include <gnutls/gnutls.h>
  3812. int
  3813. main ()
  3814. {
  3815. return !!gnutls_check_version(NULL);
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. rm -f conftest.$ac_objext conftest$ac_exeext
  3821. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3822. (eval $ac_link) 2>conftest.er1
  3823. ac_status=$?
  3824. grep -v '^ *+' conftest.er1 >conftest.err
  3825. rm -f conftest.er1
  3826. cat conftest.err >&5
  3827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828. (exit $ac_status); } &&
  3829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3831. (eval $ac_try) 2>&5
  3832. ac_status=$?
  3833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3834. (exit $ac_status); }; } &&
  3835. { ac_try='test -s conftest$ac_exeext'
  3836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3837. (eval $ac_try) 2>&5
  3838. ac_status=$?
  3839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3840. (exit $ac_status); }; }; then
  3841. echo "*** The test program compiled, but did not run. This usually means"
  3842. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3843. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3844. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3845. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3846. echo "*** is required on your system"
  3847. echo "***"
  3848. echo "*** If you have an old version installed, it is best to remove it, although"
  3849. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3850. echo "***"
  3851. else
  3852. echo "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. echo "*** The test program failed to compile or link. See the file config.log for the"
  3855. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3856. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3857. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3858. fi
  3859. rm -f conftest.err conftest.$ac_objext \
  3860. conftest$ac_exeext conftest.$ac_ext
  3861. CFLAGS="$ac_save_CFLAGS"
  3862. LIBS="$ac_save_LIBS"
  3863. fi
  3864. fi
  3865. LIBGNUTLS_CFLAGS=""
  3866. LIBGNUTLS_LIBS=""
  3867. :
  3868. fi
  3869. rm -f conf.libgnutlstest
  3870. if test "x$have_libgnutls" = "xyes"; then
  3871. cat >>confdefs.h <<\_ACEOF
  3872. #define HAVE_LIBGNUTLS 1
  3873. _ACEOF
  3874. fi
  3875. fi
  3876. if test "x$have_libgnutls" = "xyes"; then
  3877. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3878. if test "${with_libgcrypt_prefix+set}" = set; then
  3879. withval="$with_libgcrypt_prefix"
  3880. libgcrypt_config_prefix="$withval"
  3881. else
  3882. libgcrypt_config_prefix=""
  3883. fi;
  3884. if test x$libgcrypt_config_prefix != x ; then
  3885. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3886. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3887. fi
  3888. fi
  3889. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3890. set dummy libgcrypt-config; ac_word=$2
  3891. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3892. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3893. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3894. echo $ECHO_N "(cached) $ECHO_C" >&6
  3895. else
  3896. case $LIBGCRYPT_CONFIG in
  3897. [\\/]* | ?:[\\/]*)
  3898. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3899. ;;
  3900. *)
  3901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3902. for as_dir in $PATH
  3903. do
  3904. IFS=$as_save_IFS
  3905. test -z "$as_dir" && as_dir=.
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3908. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3909. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3910. break 2
  3911. fi
  3912. done
  3913. done
  3914. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3915. ;;
  3916. esac
  3917. fi
  3918. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3919. if test -n "$LIBGCRYPT_CONFIG"; then
  3920. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3921. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3922. else
  3923. echo "$as_me:$LINENO: result: no" >&5
  3924. echo "${ECHO_T}no" >&6
  3925. fi
  3926. tmp=1.2.2
  3927. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3928. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3929. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3930. else
  3931. req_libgcrypt_api=0
  3932. min_libgcrypt_version="$tmp"
  3933. fi
  3934. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3935. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3936. ok=no
  3937. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3938. req_major=`echo $min_libgcrypt_version | \
  3939. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3940. req_minor=`echo $min_libgcrypt_version | \
  3941. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3942. req_micro=`echo $min_libgcrypt_version | \
  3943. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3944. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3945. major=`echo $libgcrypt_config_version | \
  3946. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3947. minor=`echo $libgcrypt_config_version | \
  3948. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3949. micro=`echo $libgcrypt_config_version | \
  3950. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3951. if test "$major" -gt "$req_major"; then
  3952. ok=yes
  3953. else
  3954. if test "$major" -eq "$req_major"; then
  3955. if test "$minor" -gt "$req_minor"; then
  3956. ok=yes
  3957. else
  3958. if test "$minor" -eq "$req_minor"; then
  3959. if test "$micro" -ge "$req_micro"; then
  3960. ok=yes
  3961. fi
  3962. fi
  3963. fi
  3964. fi
  3965. fi
  3966. fi
  3967. if test $ok = yes; then
  3968. echo "$as_me:$LINENO: result: yes" >&5
  3969. echo "${ECHO_T}yes" >&6
  3970. else
  3971. echo "$as_me:$LINENO: result: no" >&5
  3972. echo "${ECHO_T}no" >&6
  3973. fi
  3974. if test $ok = yes; then
  3975. # If we have a recent libgcrypt, we should also check that the
  3976. # API is compatible
  3977. if test "$req_libgcrypt_api" -gt 0 ; then
  3978. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3979. if test "$tmp" -gt 0 ; then
  3980. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3981. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3982. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3983. echo "$as_me:$LINENO: result: okay" >&5
  3984. echo "${ECHO_T}okay" >&6
  3985. else
  3986. ok=no
  3987. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3988. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3989. fi
  3990. fi
  3991. fi
  3992. fi
  3993. if test $ok = yes; then
  3994. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  3995. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  3996. have_libgcrypt=yes
  3997. else
  3998. LIBGCRYPT_CFLAGS=""
  3999. LIBGCRYPT_LIBS=""
  4000. :
  4001. fi
  4002. if test "x$have_libgcrypt" = "xyes"; then
  4003. cat >>confdefs.h <<\_ACEOF
  4004. #define HAVE_LIBGCRYPT 1
  4005. _ACEOF
  4006. fi
  4007. fi
  4008. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4009. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4010. if test "${with_openssl_prefix+set}" = set; then
  4011. withval="$with_openssl_prefix"
  4012. openssl_prefix=$withval
  4013. else
  4014. openssl_prefix=""
  4015. fi;
  4016. if test "x$openssl_prefix" = "x"; then
  4017. openssl_prefix="/usr/local"
  4018. fi
  4019. openssl_prefix_lib=$openssl_prefix/lib
  4020. openssl_prefix_include=$openssl_prefix/include
  4021. LIBS_save=$LIBS
  4022. CPPFLAGS_save=$CPPFLAGS
  4023. LIBS="-L$openssl_prefix_lib $LIBS"
  4024. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4025. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4026. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4027. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4028. echo $ECHO_N "(cached) $ECHO_C" >&6
  4029. else
  4030. ac_check_lib_save_LIBS=$LIBS
  4031. LIBS="-lssl $LIBS"
  4032. cat >conftest.$ac_ext <<_ACEOF
  4033. /* confdefs.h. */
  4034. _ACEOF
  4035. cat confdefs.h >>conftest.$ac_ext
  4036. cat >>conftest.$ac_ext <<_ACEOF
  4037. /* end confdefs.h. */
  4038. /* Override any gcc2 internal prototype to avoid an error. */
  4039. #ifdef __cplusplus
  4040. extern "C"
  4041. #endif
  4042. /* We use char because int might match the return type of a gcc2
  4043. builtin and then its argument prototype would still apply. */
  4044. char SSL_library_init ();
  4045. int
  4046. main ()
  4047. {
  4048. SSL_library_init ();
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. rm -f conftest.$ac_objext conftest$ac_exeext
  4054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4055. (eval $ac_link) 2>conftest.er1
  4056. ac_status=$?
  4057. grep -v '^ *+' conftest.er1 >conftest.err
  4058. rm -f conftest.er1
  4059. cat conftest.err >&5
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); } &&
  4062. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4064. (eval $ac_try) 2>&5
  4065. ac_status=$?
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); }; } &&
  4068. { ac_try='test -s conftest$ac_exeext'
  4069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070. (eval $ac_try) 2>&5
  4071. ac_status=$?
  4072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. (exit $ac_status); }; }; then
  4074. ac_cv_lib_ssl_SSL_library_init=yes
  4075. else
  4076. echo "$as_me: failed program was:" >&5
  4077. sed 's/^/| /' conftest.$ac_ext >&5
  4078. ac_cv_lib_ssl_SSL_library_init=no
  4079. fi
  4080. rm -f conftest.err conftest.$ac_objext \
  4081. conftest$ac_exeext conftest.$ac_ext
  4082. LIBS=$ac_check_lib_save_LIBS
  4083. fi
  4084. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4085. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4086. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4087. have_openssl=yes
  4088. fi
  4089. if test "x$have_openssl" = "xyes"; then
  4090. have_openssl=no
  4091. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4092. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4093. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4094. echo $ECHO_N "(cached) $ECHO_C" >&6
  4095. else
  4096. ac_check_lib_save_LIBS=$LIBS
  4097. LIBS="-lcrypto $LIBS"
  4098. cat >conftest.$ac_ext <<_ACEOF
  4099. /* confdefs.h. */
  4100. _ACEOF
  4101. cat confdefs.h >>conftest.$ac_ext
  4102. cat >>conftest.$ac_ext <<_ACEOF
  4103. /* end confdefs.h. */
  4104. int
  4105. main ()
  4106. {
  4107. main ();
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. rm -f conftest.$ac_objext conftest$ac_exeext
  4113. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4114. (eval $ac_link) 2>conftest.er1
  4115. ac_status=$?
  4116. grep -v '^ *+' conftest.er1 >conftest.err
  4117. rm -f conftest.er1
  4118. cat conftest.err >&5
  4119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4120. (exit $ac_status); } &&
  4121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4123. (eval $ac_try) 2>&5
  4124. ac_status=$?
  4125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126. (exit $ac_status); }; } &&
  4127. { ac_try='test -s conftest$ac_exeext'
  4128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4129. (eval $ac_try) 2>&5
  4130. ac_status=$?
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); }; }; then
  4133. ac_cv_lib_crypto_main=yes
  4134. else
  4135. echo "$as_me: failed program was:" >&5
  4136. sed 's/^/| /' conftest.$ac_ext >&5
  4137. ac_cv_lib_crypto_main=no
  4138. fi
  4139. rm -f conftest.err conftest.$ac_objext \
  4140. conftest$ac_exeext conftest.$ac_ext
  4141. LIBS=$ac_check_lib_save_LIBS
  4142. fi
  4143. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4144. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4145. if test $ac_cv_lib_crypto_main = yes; then
  4146. have_openssl=yes
  4147. fi
  4148. if test "x$have_openssl" = "xyes"; then
  4149. cat >>confdefs.h <<\_ACEOF
  4150. #define HAVE_LIBSSL 1
  4151. _ACEOF
  4152. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4153. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4154. fi
  4155. fi
  4156. LIBS=$LIBS_save
  4157. CPPFLAGS=$CPPFLAGS_save
  4158. fi
  4159. # Define variables based on the result of the checks for libraries.
  4160. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4161. cat >>confdefs.h <<\_ACEOF
  4162. #define ENABLE_SSL 1
  4163. _ACEOF
  4164. fi
  4165. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4166. cat >>confdefs.h <<\_ACEOF
  4167. #define ENABLE_MESSAGE_DIGEST 1
  4168. _ACEOF
  4169. enable_message_digest=yes
  4170. fi
  4171. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4172. cat >>confdefs.h <<\_ACEOF
  4173. #define ENABLE_BITTORRENT 1
  4174. _ACEOF
  4175. if true; then
  4176. ENABLE_BITTORRENT_TRUE=
  4177. ENABLE_BITTORRENT_FALSE='#'
  4178. else
  4179. ENABLE_BITTORRENT_TRUE='#'
  4180. ENABLE_BITTORRENT_FALSE=
  4181. fi
  4182. else
  4183. if false; then
  4184. ENABLE_BITTORRENT_TRUE=
  4185. ENABLE_BITTORRENT_FALSE='#'
  4186. else
  4187. ENABLE_BITTORRENT_TRUE='#'
  4188. ENABLE_BITTORRENT_FALSE=
  4189. fi
  4190. fi
  4191. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4192. cat >>confdefs.h <<\_ACEOF
  4193. #define ENABLE_METALINK 1
  4194. _ACEOF
  4195. if true; then
  4196. ENABLE_METALINK_TRUE=
  4197. ENABLE_METALINK_FALSE='#'
  4198. else
  4199. ENABLE_METALINK_TRUE='#'
  4200. ENABLE_METALINK_FALSE=
  4201. fi
  4202. else
  4203. if false; then
  4204. ENABLE_METALINK_TRUE=
  4205. ENABLE_METALINK_FALSE='#'
  4206. else
  4207. ENABLE_METALINK_TRUE='#'
  4208. ENABLE_METALINK_FALSE=
  4209. fi
  4210. fi
  4211. # Checks for header files.
  4212. ac_ext=c
  4213. ac_cpp='$CPP $CPPFLAGS'
  4214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4217. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4218. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4219. # On Suns, sometimes $CPP names a directory.
  4220. if test -n "$CPP" && test -d "$CPP"; then
  4221. CPP=
  4222. fi
  4223. if test -z "$CPP"; then
  4224. if test "${ac_cv_prog_CPP+set}" = set; then
  4225. echo $ECHO_N "(cached) $ECHO_C" >&6
  4226. else
  4227. # Double quotes because CPP needs to be expanded
  4228. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4229. do
  4230. ac_preproc_ok=false
  4231. for ac_c_preproc_warn_flag in '' yes
  4232. do
  4233. # Use a header file that comes with gcc, so configuring glibc
  4234. # with a fresh cross-compiler works.
  4235. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4236. # <limits.h> exists even on freestanding compilers.
  4237. # On the NeXT, cc -E runs the code through the compiler's parser,
  4238. # not just through cpp. "Syntax error" is here to catch this case.
  4239. cat >conftest.$ac_ext <<_ACEOF
  4240. /* confdefs.h. */
  4241. _ACEOF
  4242. cat confdefs.h >>conftest.$ac_ext
  4243. cat >>conftest.$ac_ext <<_ACEOF
  4244. /* end confdefs.h. */
  4245. #ifdef __STDC__
  4246. # include <limits.h>
  4247. #else
  4248. # include <assert.h>
  4249. #endif
  4250. Syntax error
  4251. _ACEOF
  4252. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4253. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4254. ac_status=$?
  4255. grep -v '^ *+' conftest.er1 >conftest.err
  4256. rm -f conftest.er1
  4257. cat conftest.err >&5
  4258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4259. (exit $ac_status); } >/dev/null; then
  4260. if test -s conftest.err; then
  4261. ac_cpp_err=$ac_c_preproc_warn_flag
  4262. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4263. else
  4264. ac_cpp_err=
  4265. fi
  4266. else
  4267. ac_cpp_err=yes
  4268. fi
  4269. if test -z "$ac_cpp_err"; then
  4270. :
  4271. else
  4272. echo "$as_me: failed program was:" >&5
  4273. sed 's/^/| /' conftest.$ac_ext >&5
  4274. # Broken: fails on valid input.
  4275. continue
  4276. fi
  4277. rm -f conftest.err conftest.$ac_ext
  4278. # OK, works on sane cases. Now check whether non-existent headers
  4279. # can be detected and how.
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. #include <ac_nonexistent.h>
  4287. _ACEOF
  4288. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4289. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4290. ac_status=$?
  4291. grep -v '^ *+' conftest.er1 >conftest.err
  4292. rm -f conftest.er1
  4293. cat conftest.err >&5
  4294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295. (exit $ac_status); } >/dev/null; then
  4296. if test -s conftest.err; then
  4297. ac_cpp_err=$ac_c_preproc_warn_flag
  4298. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4299. else
  4300. ac_cpp_err=
  4301. fi
  4302. else
  4303. ac_cpp_err=yes
  4304. fi
  4305. if test -z "$ac_cpp_err"; then
  4306. # Broken: success on invalid input.
  4307. continue
  4308. else
  4309. echo "$as_me: failed program was:" >&5
  4310. sed 's/^/| /' conftest.$ac_ext >&5
  4311. # Passes both tests.
  4312. ac_preproc_ok=:
  4313. break
  4314. fi
  4315. rm -f conftest.err conftest.$ac_ext
  4316. done
  4317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4318. rm -f conftest.err conftest.$ac_ext
  4319. if $ac_preproc_ok; then
  4320. break
  4321. fi
  4322. done
  4323. ac_cv_prog_CPP=$CPP
  4324. fi
  4325. CPP=$ac_cv_prog_CPP
  4326. else
  4327. ac_cv_prog_CPP=$CPP
  4328. fi
  4329. echo "$as_me:$LINENO: result: $CPP" >&5
  4330. echo "${ECHO_T}$CPP" >&6
  4331. ac_preproc_ok=false
  4332. for ac_c_preproc_warn_flag in '' yes
  4333. do
  4334. # Use a header file that comes with gcc, so configuring glibc
  4335. # with a fresh cross-compiler works.
  4336. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4337. # <limits.h> exists even on freestanding compilers.
  4338. # On the NeXT, cc -E runs the code through the compiler's parser,
  4339. # not just through cpp. "Syntax error" is here to catch this case.
  4340. cat >conftest.$ac_ext <<_ACEOF
  4341. /* confdefs.h. */
  4342. _ACEOF
  4343. cat confdefs.h >>conftest.$ac_ext
  4344. cat >>conftest.$ac_ext <<_ACEOF
  4345. /* end confdefs.h. */
  4346. #ifdef __STDC__
  4347. # include <limits.h>
  4348. #else
  4349. # include <assert.h>
  4350. #endif
  4351. Syntax error
  4352. _ACEOF
  4353. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4354. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4355. ac_status=$?
  4356. grep -v '^ *+' conftest.er1 >conftest.err
  4357. rm -f conftest.er1
  4358. cat conftest.err >&5
  4359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4360. (exit $ac_status); } >/dev/null; then
  4361. if test -s conftest.err; then
  4362. ac_cpp_err=$ac_c_preproc_warn_flag
  4363. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4364. else
  4365. ac_cpp_err=
  4366. fi
  4367. else
  4368. ac_cpp_err=yes
  4369. fi
  4370. if test -z "$ac_cpp_err"; then
  4371. :
  4372. else
  4373. echo "$as_me: failed program was:" >&5
  4374. sed 's/^/| /' conftest.$ac_ext >&5
  4375. # Broken: fails on valid input.
  4376. continue
  4377. fi
  4378. rm -f conftest.err conftest.$ac_ext
  4379. # OK, works on sane cases. Now check whether non-existent headers
  4380. # can be detected and how.
  4381. cat >conftest.$ac_ext <<_ACEOF
  4382. /* confdefs.h. */
  4383. _ACEOF
  4384. cat confdefs.h >>conftest.$ac_ext
  4385. cat >>conftest.$ac_ext <<_ACEOF
  4386. /* end confdefs.h. */
  4387. #include <ac_nonexistent.h>
  4388. _ACEOF
  4389. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4390. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4391. ac_status=$?
  4392. grep -v '^ *+' conftest.er1 >conftest.err
  4393. rm -f conftest.er1
  4394. cat conftest.err >&5
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); } >/dev/null; then
  4397. if test -s conftest.err; then
  4398. ac_cpp_err=$ac_c_preproc_warn_flag
  4399. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4400. else
  4401. ac_cpp_err=
  4402. fi
  4403. else
  4404. ac_cpp_err=yes
  4405. fi
  4406. if test -z "$ac_cpp_err"; then
  4407. # Broken: success on invalid input.
  4408. continue
  4409. else
  4410. echo "$as_me: failed program was:" >&5
  4411. sed 's/^/| /' conftest.$ac_ext >&5
  4412. # Passes both tests.
  4413. ac_preproc_ok=:
  4414. break
  4415. fi
  4416. rm -f conftest.err conftest.$ac_ext
  4417. done
  4418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4419. rm -f conftest.err conftest.$ac_ext
  4420. if $ac_preproc_ok; then
  4421. :
  4422. else
  4423. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4424. See \`config.log' for more details." >&5
  4425. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4426. See \`config.log' for more details." >&2;}
  4427. { (exit 1); exit 1; }; }
  4428. fi
  4429. ac_ext=c
  4430. ac_cpp='$CPP $CPPFLAGS'
  4431. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4432. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4433. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4434. echo "$as_me:$LINENO: checking for egrep" >&5
  4435. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4436. if test "${ac_cv_prog_egrep+set}" = set; then
  4437. echo $ECHO_N "(cached) $ECHO_C" >&6
  4438. else
  4439. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4440. then ac_cv_prog_egrep='grep -E'
  4441. else ac_cv_prog_egrep='egrep'
  4442. fi
  4443. fi
  4444. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4445. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4446. EGREP=$ac_cv_prog_egrep
  4447. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4448. # for constant arguments. Useless!
  4449. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4450. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4451. if test "${ac_cv_working_alloca_h+set}" = set; then
  4452. echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. else
  4454. cat >conftest.$ac_ext <<_ACEOF
  4455. /* confdefs.h. */
  4456. _ACEOF
  4457. cat confdefs.h >>conftest.$ac_ext
  4458. cat >>conftest.$ac_ext <<_ACEOF
  4459. /* end confdefs.h. */
  4460. #include <alloca.h>
  4461. int
  4462. main ()
  4463. {
  4464. char *p = (char *) alloca (2 * sizeof (int));
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. rm -f conftest.$ac_objext conftest$ac_exeext
  4470. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4471. (eval $ac_link) 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } &&
  4478. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; } &&
  4484. { ac_try='test -s conftest$ac_exeext'
  4485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4486. (eval $ac_try) 2>&5
  4487. ac_status=$?
  4488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4489. (exit $ac_status); }; }; then
  4490. ac_cv_working_alloca_h=yes
  4491. else
  4492. echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. ac_cv_working_alloca_h=no
  4495. fi
  4496. rm -f conftest.err conftest.$ac_objext \
  4497. conftest$ac_exeext conftest.$ac_ext
  4498. fi
  4499. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4500. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4501. if test $ac_cv_working_alloca_h = yes; then
  4502. cat >>confdefs.h <<\_ACEOF
  4503. #define HAVE_ALLOCA_H 1
  4504. _ACEOF
  4505. fi
  4506. echo "$as_me:$LINENO: checking for alloca" >&5
  4507. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4508. if test "${ac_cv_func_alloca_works+set}" = set; then
  4509. echo $ECHO_N "(cached) $ECHO_C" >&6
  4510. else
  4511. cat >conftest.$ac_ext <<_ACEOF
  4512. /* confdefs.h. */
  4513. _ACEOF
  4514. cat confdefs.h >>conftest.$ac_ext
  4515. cat >>conftest.$ac_ext <<_ACEOF
  4516. /* end confdefs.h. */
  4517. #ifdef __GNUC__
  4518. # define alloca __builtin_alloca
  4519. #else
  4520. # ifdef _MSC_VER
  4521. # include <malloc.h>
  4522. # define alloca _alloca
  4523. # else
  4524. # if HAVE_ALLOCA_H
  4525. # include <alloca.h>
  4526. # else
  4527. # ifdef _AIX
  4528. #pragma alloca
  4529. # else
  4530. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4531. char *alloca ();
  4532. # endif
  4533. # endif
  4534. # endif
  4535. # endif
  4536. #endif
  4537. int
  4538. main ()
  4539. {
  4540. char *p = (char *) alloca (1);
  4541. ;
  4542. return 0;
  4543. }
  4544. _ACEOF
  4545. rm -f conftest.$ac_objext conftest$ac_exeext
  4546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4547. (eval $ac_link) 2>conftest.er1
  4548. ac_status=$?
  4549. grep -v '^ *+' conftest.er1 >conftest.err
  4550. rm -f conftest.er1
  4551. cat conftest.err >&5
  4552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4553. (exit $ac_status); } &&
  4554. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4556. (eval $ac_try) 2>&5
  4557. ac_status=$?
  4558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4559. (exit $ac_status); }; } &&
  4560. { ac_try='test -s conftest$ac_exeext'
  4561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4562. (eval $ac_try) 2>&5
  4563. ac_status=$?
  4564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4565. (exit $ac_status); }; }; then
  4566. ac_cv_func_alloca_works=yes
  4567. else
  4568. echo "$as_me: failed program was:" >&5
  4569. sed 's/^/| /' conftest.$ac_ext >&5
  4570. ac_cv_func_alloca_works=no
  4571. fi
  4572. rm -f conftest.err conftest.$ac_objext \
  4573. conftest$ac_exeext conftest.$ac_ext
  4574. fi
  4575. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4576. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4577. if test $ac_cv_func_alloca_works = yes; then
  4578. cat >>confdefs.h <<\_ACEOF
  4579. #define HAVE_ALLOCA 1
  4580. _ACEOF
  4581. else
  4582. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4583. # that cause trouble. Some versions do not even contain alloca or
  4584. # contain a buggy version. If you still want to use their alloca,
  4585. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4586. ALLOCA=alloca.$ac_objext
  4587. cat >>confdefs.h <<\_ACEOF
  4588. #define C_ALLOCA 1
  4589. _ACEOF
  4590. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4591. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4592. if test "${ac_cv_os_cray+set}" = set; then
  4593. echo $ECHO_N "(cached) $ECHO_C" >&6
  4594. else
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #if defined(CRAY) && ! defined(CRAY2)
  4602. webecray
  4603. #else
  4604. wenotbecray
  4605. #endif
  4606. _ACEOF
  4607. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4608. $EGREP "webecray" >/dev/null 2>&1; then
  4609. ac_cv_os_cray=yes
  4610. else
  4611. ac_cv_os_cray=no
  4612. fi
  4613. rm -f conftest*
  4614. fi
  4615. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4616. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4617. if test $ac_cv_os_cray = yes; then
  4618. for ac_func in _getb67 GETB67 getb67; do
  4619. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4620. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4621. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4622. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4623. echo $ECHO_N "(cached) $ECHO_C" >&6
  4624. else
  4625. cat >conftest.$ac_ext <<_ACEOF
  4626. /* confdefs.h. */
  4627. _ACEOF
  4628. cat confdefs.h >>conftest.$ac_ext
  4629. cat >>conftest.$ac_ext <<_ACEOF
  4630. /* end confdefs.h. */
  4631. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4632. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4633. #define $ac_func innocuous_$ac_func
  4634. /* System header to define __stub macros and hopefully few prototypes,
  4635. which can conflict with char $ac_func (); below.
  4636. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4637. <limits.h> exists even on freestanding compilers. */
  4638. #ifdef __STDC__
  4639. # include <limits.h>
  4640. #else
  4641. # include <assert.h>
  4642. #endif
  4643. #undef $ac_func
  4644. /* Override any gcc2 internal prototype to avoid an error. */
  4645. #ifdef __cplusplus
  4646. extern "C"
  4647. {
  4648. #endif
  4649. /* We use char because int might match the return type of a gcc2
  4650. builtin and then its argument prototype would still apply. */
  4651. char $ac_func ();
  4652. /* The GNU C library defines this for functions which it implements
  4653. to always fail with ENOSYS. Some functions are actually named
  4654. something starting with __ and the normal name is an alias. */
  4655. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4656. choke me
  4657. #else
  4658. char (*f) () = $ac_func;
  4659. #endif
  4660. #ifdef __cplusplus
  4661. }
  4662. #endif
  4663. int
  4664. main ()
  4665. {
  4666. return f != $ac_func;
  4667. ;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. rm -f conftest.$ac_objext conftest$ac_exeext
  4672. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4673. (eval $ac_link) 2>conftest.er1
  4674. ac_status=$?
  4675. grep -v '^ *+' conftest.er1 >conftest.err
  4676. rm -f conftest.er1
  4677. cat conftest.err >&5
  4678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4679. (exit $ac_status); } &&
  4680. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4682. (eval $ac_try) 2>&5
  4683. ac_status=$?
  4684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4685. (exit $ac_status); }; } &&
  4686. { ac_try='test -s conftest$ac_exeext'
  4687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4688. (eval $ac_try) 2>&5
  4689. ac_status=$?
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); }; }; then
  4692. eval "$as_ac_var=yes"
  4693. else
  4694. echo "$as_me: failed program was:" >&5
  4695. sed 's/^/| /' conftest.$ac_ext >&5
  4696. eval "$as_ac_var=no"
  4697. fi
  4698. rm -f conftest.err conftest.$ac_objext \
  4699. conftest$ac_exeext conftest.$ac_ext
  4700. fi
  4701. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4702. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4703. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4704. cat >>confdefs.h <<_ACEOF
  4705. #define CRAY_STACKSEG_END $ac_func
  4706. _ACEOF
  4707. break
  4708. fi
  4709. done
  4710. fi
  4711. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4712. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4713. if test "${ac_cv_c_stack_direction+set}" = set; then
  4714. echo $ECHO_N "(cached) $ECHO_C" >&6
  4715. else
  4716. if test "$cross_compiling" = yes; then
  4717. ac_cv_c_stack_direction=0
  4718. else
  4719. cat >conftest.$ac_ext <<_ACEOF
  4720. /* confdefs.h. */
  4721. _ACEOF
  4722. cat confdefs.h >>conftest.$ac_ext
  4723. cat >>conftest.$ac_ext <<_ACEOF
  4724. /* end confdefs.h. */
  4725. int
  4726. find_stack_direction ()
  4727. {
  4728. static char *addr = 0;
  4729. auto char dummy;
  4730. if (addr == 0)
  4731. {
  4732. addr = &dummy;
  4733. return find_stack_direction ();
  4734. }
  4735. else
  4736. return (&dummy > addr) ? 1 : -1;
  4737. }
  4738. int
  4739. main ()
  4740. {
  4741. exit (find_stack_direction () < 0);
  4742. }
  4743. _ACEOF
  4744. rm -f conftest$ac_exeext
  4745. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4746. (eval $ac_link) 2>&5
  4747. ac_status=$?
  4748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4749. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4751. (eval $ac_try) 2>&5
  4752. ac_status=$?
  4753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4754. (exit $ac_status); }; }; then
  4755. ac_cv_c_stack_direction=1
  4756. else
  4757. echo "$as_me: program exited with status $ac_status" >&5
  4758. echo "$as_me: failed program was:" >&5
  4759. sed 's/^/| /' conftest.$ac_ext >&5
  4760. ( exit $ac_status )
  4761. ac_cv_c_stack_direction=-1
  4762. fi
  4763. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4764. fi
  4765. fi
  4766. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4767. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4768. cat >>confdefs.h <<_ACEOF
  4769. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4770. _ACEOF
  4771. fi
  4772. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4773. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4774. if test "${ac_cv_header_stdc+set}" = set; then
  4775. echo $ECHO_N "(cached) $ECHO_C" >&6
  4776. else
  4777. cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h. */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h. */
  4783. #include <stdlib.h>
  4784. #include <stdarg.h>
  4785. #include <string.h>
  4786. #include <float.h>
  4787. int
  4788. main ()
  4789. {
  4790. ;
  4791. return 0;
  4792. }
  4793. _ACEOF
  4794. rm -f conftest.$ac_objext
  4795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4796. (eval $ac_compile) 2>conftest.er1
  4797. ac_status=$?
  4798. grep -v '^ *+' conftest.er1 >conftest.err
  4799. rm -f conftest.er1
  4800. cat conftest.err >&5
  4801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4802. (exit $ac_status); } &&
  4803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4805. (eval $ac_try) 2>&5
  4806. ac_status=$?
  4807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808. (exit $ac_status); }; } &&
  4809. { ac_try='test -s conftest.$ac_objext'
  4810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4811. (eval $ac_try) 2>&5
  4812. ac_status=$?
  4813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); }; }; then
  4815. ac_cv_header_stdc=yes
  4816. else
  4817. echo "$as_me: failed program was:" >&5
  4818. sed 's/^/| /' conftest.$ac_ext >&5
  4819. ac_cv_header_stdc=no
  4820. fi
  4821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4822. if test $ac_cv_header_stdc = yes; then
  4823. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4824. cat >conftest.$ac_ext <<_ACEOF
  4825. /* confdefs.h. */
  4826. _ACEOF
  4827. cat confdefs.h >>conftest.$ac_ext
  4828. cat >>conftest.$ac_ext <<_ACEOF
  4829. /* end confdefs.h. */
  4830. #include <string.h>
  4831. _ACEOF
  4832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4833. $EGREP "memchr" >/dev/null 2>&1; then
  4834. :
  4835. else
  4836. ac_cv_header_stdc=no
  4837. fi
  4838. rm -f conftest*
  4839. fi
  4840. if test $ac_cv_header_stdc = yes; then
  4841. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. /* confdefs.h. */
  4844. _ACEOF
  4845. cat confdefs.h >>conftest.$ac_ext
  4846. cat >>conftest.$ac_ext <<_ACEOF
  4847. /* end confdefs.h. */
  4848. #include <stdlib.h>
  4849. _ACEOF
  4850. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4851. $EGREP "free" >/dev/null 2>&1; then
  4852. :
  4853. else
  4854. ac_cv_header_stdc=no
  4855. fi
  4856. rm -f conftest*
  4857. fi
  4858. if test $ac_cv_header_stdc = yes; then
  4859. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4860. if test "$cross_compiling" = yes; then
  4861. :
  4862. else
  4863. cat >conftest.$ac_ext <<_ACEOF
  4864. /* confdefs.h. */
  4865. _ACEOF
  4866. cat confdefs.h >>conftest.$ac_ext
  4867. cat >>conftest.$ac_ext <<_ACEOF
  4868. /* end confdefs.h. */
  4869. #include <ctype.h>
  4870. #if ((' ' & 0x0FF) == 0x020)
  4871. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4872. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4873. #else
  4874. # define ISLOWER(c) \
  4875. (('a' <= (c) && (c) <= 'i') \
  4876. || ('j' <= (c) && (c) <= 'r') \
  4877. || ('s' <= (c) && (c) <= 'z'))
  4878. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4879. #endif
  4880. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4881. int
  4882. main ()
  4883. {
  4884. int i;
  4885. for (i = 0; i < 256; i++)
  4886. if (XOR (islower (i), ISLOWER (i))
  4887. || toupper (i) != TOUPPER (i))
  4888. exit(2);
  4889. exit (0);
  4890. }
  4891. _ACEOF
  4892. rm -f conftest$ac_exeext
  4893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4894. (eval $ac_link) 2>&5
  4895. ac_status=$?
  4896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4897. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4899. (eval $ac_try) 2>&5
  4900. ac_status=$?
  4901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4902. (exit $ac_status); }; }; then
  4903. :
  4904. else
  4905. echo "$as_me: program exited with status $ac_status" >&5
  4906. echo "$as_me: failed program was:" >&5
  4907. sed 's/^/| /' conftest.$ac_ext >&5
  4908. ( exit $ac_status )
  4909. ac_cv_header_stdc=no
  4910. fi
  4911. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4912. fi
  4913. fi
  4914. fi
  4915. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4916. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4917. if test $ac_cv_header_stdc = yes; then
  4918. cat >>confdefs.h <<\_ACEOF
  4919. #define STDC_HEADERS 1
  4920. _ACEOF
  4921. fi
  4922. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4923. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4924. inttypes.h stdint.h unistd.h
  4925. do
  4926. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4927. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4928. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4929. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4930. echo $ECHO_N "(cached) $ECHO_C" >&6
  4931. else
  4932. cat >conftest.$ac_ext <<_ACEOF
  4933. /* confdefs.h. */
  4934. _ACEOF
  4935. cat confdefs.h >>conftest.$ac_ext
  4936. cat >>conftest.$ac_ext <<_ACEOF
  4937. /* end confdefs.h. */
  4938. $ac_includes_default
  4939. #include <$ac_header>
  4940. _ACEOF
  4941. rm -f conftest.$ac_objext
  4942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4943. (eval $ac_compile) 2>conftest.er1
  4944. ac_status=$?
  4945. grep -v '^ *+' conftest.er1 >conftest.err
  4946. rm -f conftest.er1
  4947. cat conftest.err >&5
  4948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4949. (exit $ac_status); } &&
  4950. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4952. (eval $ac_try) 2>&5
  4953. ac_status=$?
  4954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4955. (exit $ac_status); }; } &&
  4956. { ac_try='test -s conftest.$ac_objext'
  4957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4958. (eval $ac_try) 2>&5
  4959. ac_status=$?
  4960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); }; }; then
  4962. eval "$as_ac_Header=yes"
  4963. else
  4964. echo "$as_me: failed program was:" >&5
  4965. sed 's/^/| /' conftest.$ac_ext >&5
  4966. eval "$as_ac_Header=no"
  4967. fi
  4968. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4969. fi
  4970. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4971. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4972. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4973. cat >>confdefs.h <<_ACEOF
  4974. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4975. _ACEOF
  4976. fi
  4977. done
  4978. 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
  4979. do
  4980. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4981. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4982. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4983. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4984. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4985. echo $ECHO_N "(cached) $ECHO_C" >&6
  4986. fi
  4987. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4988. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4989. else
  4990. # Is the header compilable?
  4991. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4992. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4993. cat >conftest.$ac_ext <<_ACEOF
  4994. /* confdefs.h. */
  4995. _ACEOF
  4996. cat confdefs.h >>conftest.$ac_ext
  4997. cat >>conftest.$ac_ext <<_ACEOF
  4998. /* end confdefs.h. */
  4999. $ac_includes_default
  5000. #include <$ac_header>
  5001. _ACEOF
  5002. rm -f conftest.$ac_objext
  5003. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5004. (eval $ac_compile) 2>conftest.er1
  5005. ac_status=$?
  5006. grep -v '^ *+' conftest.er1 >conftest.err
  5007. rm -f conftest.er1
  5008. cat conftest.err >&5
  5009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5010. (exit $ac_status); } &&
  5011. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5013. (eval $ac_try) 2>&5
  5014. ac_status=$?
  5015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016. (exit $ac_status); }; } &&
  5017. { ac_try='test -s conftest.$ac_objext'
  5018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5019. (eval $ac_try) 2>&5
  5020. ac_status=$?
  5021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5022. (exit $ac_status); }; }; then
  5023. ac_header_compiler=yes
  5024. else
  5025. echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. ac_header_compiler=no
  5028. fi
  5029. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5030. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5031. echo "${ECHO_T}$ac_header_compiler" >&6
  5032. # Is the header present?
  5033. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5034. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5035. cat >conftest.$ac_ext <<_ACEOF
  5036. /* confdefs.h. */
  5037. _ACEOF
  5038. cat confdefs.h >>conftest.$ac_ext
  5039. cat >>conftest.$ac_ext <<_ACEOF
  5040. /* end confdefs.h. */
  5041. #include <$ac_header>
  5042. _ACEOF
  5043. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5044. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5045. ac_status=$?
  5046. grep -v '^ *+' conftest.er1 >conftest.err
  5047. rm -f conftest.er1
  5048. cat conftest.err >&5
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); } >/dev/null; then
  5051. if test -s conftest.err; then
  5052. ac_cpp_err=$ac_c_preproc_warn_flag
  5053. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5054. else
  5055. ac_cpp_err=
  5056. fi
  5057. else
  5058. ac_cpp_err=yes
  5059. fi
  5060. if test -z "$ac_cpp_err"; then
  5061. ac_header_preproc=yes
  5062. else
  5063. echo "$as_me: failed program was:" >&5
  5064. sed 's/^/| /' conftest.$ac_ext >&5
  5065. ac_header_preproc=no
  5066. fi
  5067. rm -f conftest.err conftest.$ac_ext
  5068. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5069. echo "${ECHO_T}$ac_header_preproc" >&6
  5070. # So? What about this header?
  5071. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5072. yes:no: )
  5073. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5074. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5075. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5076. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5077. ac_header_preproc=yes
  5078. ;;
  5079. no:yes:* )
  5080. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5081. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5082. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5083. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5084. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5085. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5086. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5087. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5088. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5089. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5090. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5091. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5092. (
  5093. cat <<\_ASBOX
  5094. ## ----------------------------------- ##
  5095. ## Report this to tujikawa@rednoah.com ##
  5096. ## ----------------------------------- ##
  5097. _ASBOX
  5098. ) |
  5099. sed "s/^/$as_me: WARNING: /" >&2
  5100. ;;
  5101. esac
  5102. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5103. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5104. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5105. echo $ECHO_N "(cached) $ECHO_C" >&6
  5106. else
  5107. eval "$as_ac_Header=\$ac_header_preproc"
  5108. fi
  5109. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5110. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5111. fi
  5112. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5113. cat >>confdefs.h <<_ACEOF
  5114. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5115. _ACEOF
  5116. fi
  5117. done
  5118. # Checks for typedefs, structures, and compiler characteristics.
  5119. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5120. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5121. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5122. echo $ECHO_N "(cached) $ECHO_C" >&6
  5123. else
  5124. cat >conftest.$ac_ext <<_ACEOF
  5125. /* confdefs.h. */
  5126. _ACEOF
  5127. cat confdefs.h >>conftest.$ac_ext
  5128. cat >>conftest.$ac_ext <<_ACEOF
  5129. /* end confdefs.h. */
  5130. #include <stdbool.h>
  5131. #ifndef bool
  5132. # error bool is not defined
  5133. #endif
  5134. #ifndef false
  5135. # error false is not defined
  5136. #endif
  5137. #if false
  5138. # error false is not 0
  5139. #endif
  5140. #ifndef true
  5141. # error true is not defined
  5142. #endif
  5143. #if true != 1
  5144. # error true is not 1
  5145. #endif
  5146. #ifndef __bool_true_false_are_defined
  5147. # error __bool_true_false_are_defined is not defined
  5148. #endif
  5149. struct s { _Bool s: 1; _Bool t; } s;
  5150. char a[true == 1 ? 1 : -1];
  5151. char b[false == 0 ? 1 : -1];
  5152. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5153. char d[(bool) -0.5 == true ? 1 : -1];
  5154. bool e = &s;
  5155. char f[(_Bool) -0.0 == false ? 1 : -1];
  5156. char g[true];
  5157. char h[sizeof (_Bool)];
  5158. char i[sizeof s.t];
  5159. int
  5160. main ()
  5161. {
  5162. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5163. ;
  5164. return 0;
  5165. }
  5166. _ACEOF
  5167. rm -f conftest.$ac_objext
  5168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5169. (eval $ac_compile) 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } &&
  5176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5178. (eval $ac_try) 2>&5
  5179. ac_status=$?
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); }; } &&
  5182. { ac_try='test -s conftest.$ac_objext'
  5183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5184. (eval $ac_try) 2>&5
  5185. ac_status=$?
  5186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5187. (exit $ac_status); }; }; then
  5188. ac_cv_header_stdbool_h=yes
  5189. else
  5190. echo "$as_me: failed program was:" >&5
  5191. sed 's/^/| /' conftest.$ac_ext >&5
  5192. ac_cv_header_stdbool_h=no
  5193. fi
  5194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5195. fi
  5196. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5197. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5198. echo "$as_me:$LINENO: checking for _Bool" >&5
  5199. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5200. if test "${ac_cv_type__Bool+set}" = set; then
  5201. echo $ECHO_N "(cached) $ECHO_C" >&6
  5202. else
  5203. cat >conftest.$ac_ext <<_ACEOF
  5204. /* confdefs.h. */
  5205. _ACEOF
  5206. cat confdefs.h >>conftest.$ac_ext
  5207. cat >>conftest.$ac_ext <<_ACEOF
  5208. /* end confdefs.h. */
  5209. $ac_includes_default
  5210. int
  5211. main ()
  5212. {
  5213. if ((_Bool *) 0)
  5214. return 0;
  5215. if (sizeof (_Bool))
  5216. return 0;
  5217. ;
  5218. return 0;
  5219. }
  5220. _ACEOF
  5221. rm -f conftest.$ac_objext
  5222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5223. (eval $ac_compile) 2>conftest.er1
  5224. ac_status=$?
  5225. grep -v '^ *+' conftest.er1 >conftest.err
  5226. rm -f conftest.er1
  5227. cat conftest.err >&5
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); } &&
  5230. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5232. (eval $ac_try) 2>&5
  5233. ac_status=$?
  5234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5235. (exit $ac_status); }; } &&
  5236. { ac_try='test -s conftest.$ac_objext'
  5237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5238. (eval $ac_try) 2>&5
  5239. ac_status=$?
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); }; }; then
  5242. ac_cv_type__Bool=yes
  5243. else
  5244. echo "$as_me: failed program was:" >&5
  5245. sed 's/^/| /' conftest.$ac_ext >&5
  5246. ac_cv_type__Bool=no
  5247. fi
  5248. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5249. fi
  5250. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5251. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5252. if test $ac_cv_type__Bool = yes; then
  5253. cat >>confdefs.h <<_ACEOF
  5254. #define HAVE__BOOL 1
  5255. _ACEOF
  5256. fi
  5257. if test $ac_cv_header_stdbool_h = yes; then
  5258. cat >>confdefs.h <<\_ACEOF
  5259. #define HAVE_STDBOOL_H 1
  5260. _ACEOF
  5261. fi
  5262. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5263. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5264. if test "${ac_cv_c_const+set}" = set; then
  5265. echo $ECHO_N "(cached) $ECHO_C" >&6
  5266. else
  5267. cat >conftest.$ac_ext <<_ACEOF
  5268. /* confdefs.h. */
  5269. _ACEOF
  5270. cat confdefs.h >>conftest.$ac_ext
  5271. cat >>conftest.$ac_ext <<_ACEOF
  5272. /* end confdefs.h. */
  5273. int
  5274. main ()
  5275. {
  5276. /* FIXME: Include the comments suggested by Paul. */
  5277. #ifndef __cplusplus
  5278. /* Ultrix mips cc rejects this. */
  5279. typedef int charset[2];
  5280. const charset x;
  5281. /* SunOS 4.1.1 cc rejects this. */
  5282. char const *const *ccp;
  5283. char **p;
  5284. /* NEC SVR4.0.2 mips cc rejects this. */
  5285. struct point {int x, y;};
  5286. static struct point const zero = {0,0};
  5287. /* AIX XL C 1.02.0.0 rejects this.
  5288. It does not let you subtract one const X* pointer from another in
  5289. an arm of an if-expression whose if-part is not a constant
  5290. expression */
  5291. const char *g = "string";
  5292. ccp = &g + (g ? g-g : 0);
  5293. /* HPUX 7.0 cc rejects these. */
  5294. ++ccp;
  5295. p = (char**) ccp;
  5296. ccp = (char const *const *) p;
  5297. { /* SCO 3.2v4 cc rejects this. */
  5298. char *t;
  5299. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5300. *t++ = 0;
  5301. }
  5302. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5303. int x[] = {25, 17};
  5304. const int *foo = &x[0];
  5305. ++foo;
  5306. }
  5307. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5308. typedef const int *iptr;
  5309. iptr p = 0;
  5310. ++p;
  5311. }
  5312. { /* AIX XL C 1.02.0.0 rejects this saying
  5313. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5314. struct s { int j; const int *ap[3]; };
  5315. struct s *b; b->j = 5;
  5316. }
  5317. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5318. const int foo = 10;
  5319. }
  5320. #endif
  5321. ;
  5322. return 0;
  5323. }
  5324. _ACEOF
  5325. rm -f conftest.$ac_objext
  5326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5327. (eval $ac_compile) 2>conftest.er1
  5328. ac_status=$?
  5329. grep -v '^ *+' conftest.er1 >conftest.err
  5330. rm -f conftest.er1
  5331. cat conftest.err >&5
  5332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5333. (exit $ac_status); } &&
  5334. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5336. (eval $ac_try) 2>&5
  5337. ac_status=$?
  5338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); }; } &&
  5340. { ac_try='test -s conftest.$ac_objext'
  5341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5342. (eval $ac_try) 2>&5
  5343. ac_status=$?
  5344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5345. (exit $ac_status); }; }; then
  5346. ac_cv_c_const=yes
  5347. else
  5348. echo "$as_me: failed program was:" >&5
  5349. sed 's/^/| /' conftest.$ac_ext >&5
  5350. ac_cv_c_const=no
  5351. fi
  5352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5353. fi
  5354. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5355. echo "${ECHO_T}$ac_cv_c_const" >&6
  5356. if test $ac_cv_c_const = no; then
  5357. cat >>confdefs.h <<\_ACEOF
  5358. #define const
  5359. _ACEOF
  5360. fi
  5361. echo "$as_me:$LINENO: checking for inline" >&5
  5362. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5363. if test "${ac_cv_c_inline+set}" = set; then
  5364. echo $ECHO_N "(cached) $ECHO_C" >&6
  5365. else
  5366. ac_cv_c_inline=no
  5367. for ac_kw in inline __inline__ __inline; do
  5368. cat >conftest.$ac_ext <<_ACEOF
  5369. /* confdefs.h. */
  5370. _ACEOF
  5371. cat confdefs.h >>conftest.$ac_ext
  5372. cat >>conftest.$ac_ext <<_ACEOF
  5373. /* end confdefs.h. */
  5374. #ifndef __cplusplus
  5375. typedef int foo_t;
  5376. static $ac_kw foo_t static_foo () {return 0; }
  5377. $ac_kw foo_t foo () {return 0; }
  5378. #endif
  5379. _ACEOF
  5380. rm -f conftest.$ac_objext
  5381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5382. (eval $ac_compile) 2>conftest.er1
  5383. ac_status=$?
  5384. grep -v '^ *+' conftest.er1 >conftest.err
  5385. rm -f conftest.er1
  5386. cat conftest.err >&5
  5387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388. (exit $ac_status); } &&
  5389. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5391. (eval $ac_try) 2>&5
  5392. ac_status=$?
  5393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5394. (exit $ac_status); }; } &&
  5395. { ac_try='test -s conftest.$ac_objext'
  5396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5397. (eval $ac_try) 2>&5
  5398. ac_status=$?
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); }; }; then
  5401. ac_cv_c_inline=$ac_kw; break
  5402. else
  5403. echo "$as_me: failed program was:" >&5
  5404. sed 's/^/| /' conftest.$ac_ext >&5
  5405. fi
  5406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5407. done
  5408. fi
  5409. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5410. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5411. case $ac_cv_c_inline in
  5412. inline | yes) ;;
  5413. *)
  5414. case $ac_cv_c_inline in
  5415. no) ac_val=;;
  5416. *) ac_val=$ac_cv_c_inline;;
  5417. esac
  5418. cat >>confdefs.h <<_ACEOF
  5419. #ifndef __cplusplus
  5420. #define inline $ac_val
  5421. #endif
  5422. _ACEOF
  5423. ;;
  5424. esac
  5425. echo "$as_me:$LINENO: checking for size_t" >&5
  5426. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5427. if test "${ac_cv_type_size_t+set}" = set; then
  5428. echo $ECHO_N "(cached) $ECHO_C" >&6
  5429. else
  5430. cat >conftest.$ac_ext <<_ACEOF
  5431. /* confdefs.h. */
  5432. _ACEOF
  5433. cat confdefs.h >>conftest.$ac_ext
  5434. cat >>conftest.$ac_ext <<_ACEOF
  5435. /* end confdefs.h. */
  5436. $ac_includes_default
  5437. int
  5438. main ()
  5439. {
  5440. if ((size_t *) 0)
  5441. return 0;
  5442. if (sizeof (size_t))
  5443. return 0;
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. rm -f conftest.$ac_objext
  5449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5450. (eval $ac_compile) 2>conftest.er1
  5451. ac_status=$?
  5452. grep -v '^ *+' conftest.er1 >conftest.err
  5453. rm -f conftest.er1
  5454. cat conftest.err >&5
  5455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5456. (exit $ac_status); } &&
  5457. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5459. (eval $ac_try) 2>&5
  5460. ac_status=$?
  5461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5462. (exit $ac_status); }; } &&
  5463. { ac_try='test -s conftest.$ac_objext'
  5464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5465. (eval $ac_try) 2>&5
  5466. ac_status=$?
  5467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5468. (exit $ac_status); }; }; then
  5469. ac_cv_type_size_t=yes
  5470. else
  5471. echo "$as_me: failed program was:" >&5
  5472. sed 's/^/| /' conftest.$ac_ext >&5
  5473. ac_cv_type_size_t=no
  5474. fi
  5475. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5476. fi
  5477. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5478. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5479. if test $ac_cv_type_size_t = yes; then
  5480. :
  5481. else
  5482. cat >>confdefs.h <<_ACEOF
  5483. #define size_t unsigned
  5484. _ACEOF
  5485. fi
  5486. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5487. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5488. if test "${ac_cv_header_time+set}" = set; then
  5489. echo $ECHO_N "(cached) $ECHO_C" >&6
  5490. else
  5491. cat >conftest.$ac_ext <<_ACEOF
  5492. /* confdefs.h. */
  5493. _ACEOF
  5494. cat confdefs.h >>conftest.$ac_ext
  5495. cat >>conftest.$ac_ext <<_ACEOF
  5496. /* end confdefs.h. */
  5497. #include <sys/types.h>
  5498. #include <sys/time.h>
  5499. #include <time.h>
  5500. int
  5501. main ()
  5502. {
  5503. if ((struct tm *) 0)
  5504. return 0;
  5505. ;
  5506. return 0;
  5507. }
  5508. _ACEOF
  5509. rm -f conftest.$ac_objext
  5510. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5511. (eval $ac_compile) 2>conftest.er1
  5512. ac_status=$?
  5513. grep -v '^ *+' conftest.er1 >conftest.err
  5514. rm -f conftest.er1
  5515. cat conftest.err >&5
  5516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5517. (exit $ac_status); } &&
  5518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5520. (eval $ac_try) 2>&5
  5521. ac_status=$?
  5522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5523. (exit $ac_status); }; } &&
  5524. { ac_try='test -s conftest.$ac_objext'
  5525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5526. (eval $ac_try) 2>&5
  5527. ac_status=$?
  5528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5529. (exit $ac_status); }; }; then
  5530. ac_cv_header_time=yes
  5531. else
  5532. echo "$as_me: failed program was:" >&5
  5533. sed 's/^/| /' conftest.$ac_ext >&5
  5534. ac_cv_header_time=no
  5535. fi
  5536. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5537. fi
  5538. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5539. echo "${ECHO_T}$ac_cv_header_time" >&6
  5540. if test $ac_cv_header_time = yes; then
  5541. cat >>confdefs.h <<\_ACEOF
  5542. #define TIME_WITH_SYS_TIME 1
  5543. _ACEOF
  5544. fi
  5545. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5546. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5547. if test "${ac_cv_struct_tm+set}" = set; then
  5548. echo $ECHO_N "(cached) $ECHO_C" >&6
  5549. else
  5550. cat >conftest.$ac_ext <<_ACEOF
  5551. /* confdefs.h. */
  5552. _ACEOF
  5553. cat confdefs.h >>conftest.$ac_ext
  5554. cat >>conftest.$ac_ext <<_ACEOF
  5555. /* end confdefs.h. */
  5556. #include <sys/types.h>
  5557. #include <time.h>
  5558. int
  5559. main ()
  5560. {
  5561. struct tm *tp; tp->tm_sec;
  5562. ;
  5563. return 0;
  5564. }
  5565. _ACEOF
  5566. rm -f conftest.$ac_objext
  5567. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5568. (eval $ac_compile) 2>conftest.er1
  5569. ac_status=$?
  5570. grep -v '^ *+' conftest.er1 >conftest.err
  5571. rm -f conftest.er1
  5572. cat conftest.err >&5
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); } &&
  5575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5577. (eval $ac_try) 2>&5
  5578. ac_status=$?
  5579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580. (exit $ac_status); }; } &&
  5581. { ac_try='test -s conftest.$ac_objext'
  5582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5583. (eval $ac_try) 2>&5
  5584. ac_status=$?
  5585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5586. (exit $ac_status); }; }; then
  5587. ac_cv_struct_tm=time.h
  5588. else
  5589. echo "$as_me: failed program was:" >&5
  5590. sed 's/^/| /' conftest.$ac_ext >&5
  5591. ac_cv_struct_tm=sys/time.h
  5592. fi
  5593. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5594. fi
  5595. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5596. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5597. if test $ac_cv_struct_tm = sys/time.h; then
  5598. cat >>confdefs.h <<\_ACEOF
  5599. #define TM_IN_SYS_TIME 1
  5600. _ACEOF
  5601. fi
  5602. echo "$as_me:$LINENO: checking for working volatile" >&5
  5603. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5604. if test "${ac_cv_c_volatile+set}" = set; then
  5605. echo $ECHO_N "(cached) $ECHO_C" >&6
  5606. else
  5607. cat >conftest.$ac_ext <<_ACEOF
  5608. /* confdefs.h. */
  5609. _ACEOF
  5610. cat confdefs.h >>conftest.$ac_ext
  5611. cat >>conftest.$ac_ext <<_ACEOF
  5612. /* end confdefs.h. */
  5613. int
  5614. main ()
  5615. {
  5616. volatile int x;
  5617. int * volatile y;
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. rm -f conftest.$ac_objext
  5623. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5624. (eval $ac_compile) 2>conftest.er1
  5625. ac_status=$?
  5626. grep -v '^ *+' conftest.er1 >conftest.err
  5627. rm -f conftest.er1
  5628. cat conftest.err >&5
  5629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5630. (exit $ac_status); } &&
  5631. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5633. (eval $ac_try) 2>&5
  5634. ac_status=$?
  5635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5636. (exit $ac_status); }; } &&
  5637. { ac_try='test -s conftest.$ac_objext'
  5638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5639. (eval $ac_try) 2>&5
  5640. ac_status=$?
  5641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5642. (exit $ac_status); }; }; then
  5643. ac_cv_c_volatile=yes
  5644. else
  5645. echo "$as_me: failed program was:" >&5
  5646. sed 's/^/| /' conftest.$ac_ext >&5
  5647. ac_cv_c_volatile=no
  5648. fi
  5649. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5650. fi
  5651. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5652. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5653. if test $ac_cv_c_volatile = no; then
  5654. cat >>confdefs.h <<\_ACEOF
  5655. #define volatile
  5656. _ACEOF
  5657. fi
  5658. # Checks for library functions.
  5659. MKINSTALLDIRS=
  5660. if test -n "$ac_aux_dir"; then
  5661. case "$ac_aux_dir" in
  5662. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5663. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5664. esac
  5665. fi
  5666. if test -z "$MKINSTALLDIRS"; then
  5667. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5668. fi
  5669. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5670. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5671. # Check whether --enable-nls or --disable-nls was given.
  5672. if test "${enable_nls+set}" = set; then
  5673. enableval="$enable_nls"
  5674. USE_NLS=$enableval
  5675. else
  5676. USE_NLS=yes
  5677. fi;
  5678. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5679. echo "${ECHO_T}$USE_NLS" >&6
  5680. # Prepare PATH_SEPARATOR.
  5681. # The user is always right.
  5682. if test "${PATH_SEPARATOR+set}" != set; then
  5683. echo "#! /bin/sh" >conf$$.sh
  5684. echo "exit 0" >>conf$$.sh
  5685. chmod +x conf$$.sh
  5686. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5687. PATH_SEPARATOR=';'
  5688. else
  5689. PATH_SEPARATOR=:
  5690. fi
  5691. rm -f conf$$.sh
  5692. fi
  5693. # Find out how to test for executable files. Don't use a zero-byte file,
  5694. # as systems may use methods other than mode bits to determine executability.
  5695. cat >conf$$.file <<_ASEOF
  5696. #! /bin/sh
  5697. exit 0
  5698. _ASEOF
  5699. chmod +x conf$$.file
  5700. if test -x conf$$.file >/dev/null 2>&1; then
  5701. ac_executable_p="test -x"
  5702. else
  5703. ac_executable_p="test -f"
  5704. fi
  5705. rm -f conf$$.file
  5706. # Extract the first word of "msgfmt", so it can be a program name with args.
  5707. set dummy msgfmt; ac_word=$2
  5708. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5709. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5710. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5711. echo $ECHO_N "(cached) $ECHO_C" >&6
  5712. else
  5713. case "$MSGFMT" in
  5714. [\\/]* | ?:[\\/]*)
  5715. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5716. ;;
  5717. *)
  5718. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5719. for ac_dir in $PATH; do
  5720. IFS="$ac_save_IFS"
  5721. test -z "$ac_dir" && ac_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5724. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5725. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5726. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5727. break 2
  5728. fi
  5729. fi
  5730. done
  5731. done
  5732. IFS="$ac_save_IFS"
  5733. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5734. ;;
  5735. esac
  5736. fi
  5737. MSGFMT="$ac_cv_path_MSGFMT"
  5738. if test "$MSGFMT" != ":"; then
  5739. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5740. echo "${ECHO_T}$MSGFMT" >&6
  5741. else
  5742. echo "$as_me:$LINENO: result: no" >&5
  5743. echo "${ECHO_T}no" >&6
  5744. fi
  5745. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5746. set dummy gmsgfmt; ac_word=$2
  5747. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5748. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5749. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5750. echo $ECHO_N "(cached) $ECHO_C" >&6
  5751. else
  5752. case $GMSGFMT in
  5753. [\\/]* | ?:[\\/]*)
  5754. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5755. ;;
  5756. *)
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5764. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5771. ;;
  5772. esac
  5773. fi
  5774. GMSGFMT=$ac_cv_path_GMSGFMT
  5775. if test -n "$GMSGFMT"; then
  5776. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5777. echo "${ECHO_T}$GMSGFMT" >&6
  5778. else
  5779. echo "$as_me:$LINENO: result: no" >&5
  5780. echo "${ECHO_T}no" >&6
  5781. fi
  5782. # Prepare PATH_SEPARATOR.
  5783. # The user is always right.
  5784. if test "${PATH_SEPARATOR+set}" != set; then
  5785. echo "#! /bin/sh" >conf$$.sh
  5786. echo "exit 0" >>conf$$.sh
  5787. chmod +x conf$$.sh
  5788. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5789. PATH_SEPARATOR=';'
  5790. else
  5791. PATH_SEPARATOR=:
  5792. fi
  5793. rm -f conf$$.sh
  5794. fi
  5795. # Find out how to test for executable files. Don't use a zero-byte file,
  5796. # as systems may use methods other than mode bits to determine executability.
  5797. cat >conf$$.file <<_ASEOF
  5798. #! /bin/sh
  5799. exit 0
  5800. _ASEOF
  5801. chmod +x conf$$.file
  5802. if test -x conf$$.file >/dev/null 2>&1; then
  5803. ac_executable_p="test -x"
  5804. else
  5805. ac_executable_p="test -f"
  5806. fi
  5807. rm -f conf$$.file
  5808. # Extract the first word of "xgettext", so it can be a program name with args.
  5809. set dummy xgettext; ac_word=$2
  5810. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5811. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5812. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  5813. echo $ECHO_N "(cached) $ECHO_C" >&6
  5814. else
  5815. case "$XGETTEXT" in
  5816. [\\/]* | ?:[\\/]*)
  5817. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5818. ;;
  5819. *)
  5820. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5821. for ac_dir in $PATH; do
  5822. IFS="$ac_save_IFS"
  5823. test -z "$ac_dir" && ac_dir=.
  5824. for ac_exec_ext in '' $ac_executable_extensions; do
  5825. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5826. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5827. (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
  5828. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  5829. break 2
  5830. fi
  5831. fi
  5832. done
  5833. done
  5834. IFS="$ac_save_IFS"
  5835. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5836. ;;
  5837. esac
  5838. fi
  5839. XGETTEXT="$ac_cv_path_XGETTEXT"
  5840. if test "$XGETTEXT" != ":"; then
  5841. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5842. echo "${ECHO_T}$XGETTEXT" >&6
  5843. else
  5844. echo "$as_me:$LINENO: result: no" >&5
  5845. echo "${ECHO_T}no" >&6
  5846. fi
  5847. rm -f messages.po
  5848. # Prepare PATH_SEPARATOR.
  5849. # The user is always right.
  5850. if test "${PATH_SEPARATOR+set}" != set; then
  5851. echo "#! /bin/sh" >conf$$.sh
  5852. echo "exit 0" >>conf$$.sh
  5853. chmod +x conf$$.sh
  5854. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5855. PATH_SEPARATOR=';'
  5856. else
  5857. PATH_SEPARATOR=:
  5858. fi
  5859. rm -f conf$$.sh
  5860. fi
  5861. # Find out how to test for executable files. Don't use a zero-byte file,
  5862. # as systems may use methods other than mode bits to determine executability.
  5863. cat >conf$$.file <<_ASEOF
  5864. #! /bin/sh
  5865. exit 0
  5866. _ASEOF
  5867. chmod +x conf$$.file
  5868. if test -x conf$$.file >/dev/null 2>&1; then
  5869. ac_executable_p="test -x"
  5870. else
  5871. ac_executable_p="test -f"
  5872. fi
  5873. rm -f conf$$.file
  5874. # Extract the first word of "msgmerge", so it can be a program name with args.
  5875. set dummy msgmerge; ac_word=$2
  5876. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5877. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5878. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5879. echo $ECHO_N "(cached) $ECHO_C" >&6
  5880. else
  5881. case "$MSGMERGE" in
  5882. [\\/]* | ?:[\\/]*)
  5883. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5884. ;;
  5885. *)
  5886. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5887. for ac_dir in $PATH; do
  5888. IFS="$ac_save_IFS"
  5889. test -z "$ac_dir" && ac_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5892. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5893. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5894. break 2
  5895. fi
  5896. fi
  5897. done
  5898. done
  5899. IFS="$ac_save_IFS"
  5900. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5901. ;;
  5902. esac
  5903. fi
  5904. MSGMERGE="$ac_cv_path_MSGMERGE"
  5905. if test "$MSGMERGE" != ":"; then
  5906. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5907. echo "${ECHO_T}$MSGMERGE" >&6
  5908. else
  5909. echo "$as_me:$LINENO: result: no" >&5
  5910. echo "${ECHO_T}no" >&6
  5911. fi
  5912. if test "$GMSGFMT" != ":"; then
  5913. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5914. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5915. : ;
  5916. else
  5917. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5918. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5919. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5920. GMSGFMT=":"
  5921. fi
  5922. fi
  5923. if test "$XGETTEXT" != ":"; then
  5924. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5925. (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
  5926. : ;
  5927. else
  5928. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5929. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5930. XGETTEXT=":"
  5931. fi
  5932. rm -f messages.po
  5933. fi
  5934. ac_config_commands="$ac_config_commands default-1"
  5935. # Make sure we can run config.sub.
  5936. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5937. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5938. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5939. { (exit 1); exit 1; }; }
  5940. echo "$as_me:$LINENO: checking build system type" >&5
  5941. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5942. if test "${ac_cv_build+set}" = set; then
  5943. echo $ECHO_N "(cached) $ECHO_C" >&6
  5944. else
  5945. ac_cv_build_alias=$build_alias
  5946. test -z "$ac_cv_build_alias" &&
  5947. ac_cv_build_alias=`$ac_config_guess`
  5948. test -z "$ac_cv_build_alias" &&
  5949. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5950. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5951. { (exit 1); exit 1; }; }
  5952. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5953. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5954. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5955. { (exit 1); exit 1; }; }
  5956. fi
  5957. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5958. echo "${ECHO_T}$ac_cv_build" >&6
  5959. build=$ac_cv_build
  5960. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5961. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5962. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5963. echo "$as_me:$LINENO: checking host system type" >&5
  5964. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5965. if test "${ac_cv_host+set}" = set; then
  5966. echo $ECHO_N "(cached) $ECHO_C" >&6
  5967. else
  5968. ac_cv_host_alias=$host_alias
  5969. test -z "$ac_cv_host_alias" &&
  5970. ac_cv_host_alias=$ac_cv_build_alias
  5971. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5972. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5973. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5974. { (exit 1); exit 1; }; }
  5975. fi
  5976. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5977. echo "${ECHO_T}$ac_cv_host" >&6
  5978. host=$ac_cv_host
  5979. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5980. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5981. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5982. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5983. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5984. if test "${ac_cv_search_strerror+set}" = set; then
  5985. echo $ECHO_N "(cached) $ECHO_C" >&6
  5986. else
  5987. ac_func_search_save_LIBS=$LIBS
  5988. ac_cv_search_strerror=no
  5989. cat >conftest.$ac_ext <<_ACEOF
  5990. /* confdefs.h. */
  5991. _ACEOF
  5992. cat confdefs.h >>conftest.$ac_ext
  5993. cat >>conftest.$ac_ext <<_ACEOF
  5994. /* end confdefs.h. */
  5995. /* Override any gcc2 internal prototype to avoid an error. */
  5996. #ifdef __cplusplus
  5997. extern "C"
  5998. #endif
  5999. /* We use char because int might match the return type of a gcc2
  6000. builtin and then its argument prototype would still apply. */
  6001. char strerror ();
  6002. int
  6003. main ()
  6004. {
  6005. strerror ();
  6006. ;
  6007. return 0;
  6008. }
  6009. _ACEOF
  6010. rm -f conftest.$ac_objext conftest$ac_exeext
  6011. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6012. (eval $ac_link) 2>conftest.er1
  6013. ac_status=$?
  6014. grep -v '^ *+' conftest.er1 >conftest.err
  6015. rm -f conftest.er1
  6016. cat conftest.err >&5
  6017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); } &&
  6019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6021. (eval $ac_try) 2>&5
  6022. ac_status=$?
  6023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6024. (exit $ac_status); }; } &&
  6025. { ac_try='test -s conftest$ac_exeext'
  6026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6027. (eval $ac_try) 2>&5
  6028. ac_status=$?
  6029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6030. (exit $ac_status); }; }; then
  6031. ac_cv_search_strerror="none required"
  6032. else
  6033. echo "$as_me: failed program was:" >&5
  6034. sed 's/^/| /' conftest.$ac_ext >&5
  6035. fi
  6036. rm -f conftest.err conftest.$ac_objext \
  6037. conftest$ac_exeext conftest.$ac_ext
  6038. if test "$ac_cv_search_strerror" = no; then
  6039. for ac_lib in cposix; do
  6040. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6041. cat >conftest.$ac_ext <<_ACEOF
  6042. /* confdefs.h. */
  6043. _ACEOF
  6044. cat confdefs.h >>conftest.$ac_ext
  6045. cat >>conftest.$ac_ext <<_ACEOF
  6046. /* end confdefs.h. */
  6047. /* Override any gcc2 internal prototype to avoid an error. */
  6048. #ifdef __cplusplus
  6049. extern "C"
  6050. #endif
  6051. /* We use char because int might match the return type of a gcc2
  6052. builtin and then its argument prototype would still apply. */
  6053. char strerror ();
  6054. int
  6055. main ()
  6056. {
  6057. strerror ();
  6058. ;
  6059. return 0;
  6060. }
  6061. _ACEOF
  6062. rm -f conftest.$ac_objext conftest$ac_exeext
  6063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6064. (eval $ac_link) 2>conftest.er1
  6065. ac_status=$?
  6066. grep -v '^ *+' conftest.er1 >conftest.err
  6067. rm -f conftest.er1
  6068. cat conftest.err >&5
  6069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. (exit $ac_status); } &&
  6071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6073. (eval $ac_try) 2>&5
  6074. ac_status=$?
  6075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. (exit $ac_status); }; } &&
  6077. { ac_try='test -s conftest$ac_exeext'
  6078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6079. (eval $ac_try) 2>&5
  6080. ac_status=$?
  6081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. (exit $ac_status); }; }; then
  6083. ac_cv_search_strerror="-l$ac_lib"
  6084. break
  6085. else
  6086. echo "$as_me: failed program was:" >&5
  6087. sed 's/^/| /' conftest.$ac_ext >&5
  6088. fi
  6089. rm -f conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext conftest.$ac_ext
  6091. done
  6092. fi
  6093. LIBS=$ac_func_search_save_LIBS
  6094. fi
  6095. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6096. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6097. if test "$ac_cv_search_strerror" != no; then
  6098. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6099. fi
  6100. echo "$as_me:$LINENO: checking for off_t" >&5
  6101. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6102. if test "${ac_cv_type_off_t+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. cat >conftest.$ac_ext <<_ACEOF
  6106. /* confdefs.h. */
  6107. _ACEOF
  6108. cat confdefs.h >>conftest.$ac_ext
  6109. cat >>conftest.$ac_ext <<_ACEOF
  6110. /* end confdefs.h. */
  6111. $ac_includes_default
  6112. int
  6113. main ()
  6114. {
  6115. if ((off_t *) 0)
  6116. return 0;
  6117. if (sizeof (off_t))
  6118. return 0;
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. rm -f conftest.$ac_objext
  6124. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6125. (eval $ac_compile) 2>conftest.er1
  6126. ac_status=$?
  6127. grep -v '^ *+' conftest.er1 >conftest.err
  6128. rm -f conftest.er1
  6129. cat conftest.err >&5
  6130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6131. (exit $ac_status); } &&
  6132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6134. (eval $ac_try) 2>&5
  6135. ac_status=$?
  6136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6137. (exit $ac_status); }; } &&
  6138. { ac_try='test -s conftest.$ac_objext'
  6139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6140. (eval $ac_try) 2>&5
  6141. ac_status=$?
  6142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6143. (exit $ac_status); }; }; then
  6144. ac_cv_type_off_t=yes
  6145. else
  6146. echo "$as_me: failed program was:" >&5
  6147. sed 's/^/| /' conftest.$ac_ext >&5
  6148. ac_cv_type_off_t=no
  6149. fi
  6150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6151. fi
  6152. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6153. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6154. if test $ac_cv_type_off_t = yes; then
  6155. :
  6156. else
  6157. cat >>confdefs.h <<_ACEOF
  6158. #define off_t long
  6159. _ACEOF
  6160. fi
  6161. for ac_header in stdlib.h unistd.h
  6162. do
  6163. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6164. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6165. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6166. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6167. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6168. echo $ECHO_N "(cached) $ECHO_C" >&6
  6169. fi
  6170. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6171. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6172. else
  6173. # Is the header compilable?
  6174. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6175. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6176. cat >conftest.$ac_ext <<_ACEOF
  6177. /* confdefs.h. */
  6178. _ACEOF
  6179. cat confdefs.h >>conftest.$ac_ext
  6180. cat >>conftest.$ac_ext <<_ACEOF
  6181. /* end confdefs.h. */
  6182. $ac_includes_default
  6183. #include <$ac_header>
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext
  6186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6187. (eval $ac_compile) 2>conftest.er1
  6188. ac_status=$?
  6189. grep -v '^ *+' conftest.er1 >conftest.err
  6190. rm -f conftest.er1
  6191. cat conftest.err >&5
  6192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6193. (exit $ac_status); } &&
  6194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6196. (eval $ac_try) 2>&5
  6197. ac_status=$?
  6198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6199. (exit $ac_status); }; } &&
  6200. { ac_try='test -s conftest.$ac_objext'
  6201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6202. (eval $ac_try) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); }; }; then
  6206. ac_header_compiler=yes
  6207. else
  6208. echo "$as_me: failed program was:" >&5
  6209. sed 's/^/| /' conftest.$ac_ext >&5
  6210. ac_header_compiler=no
  6211. fi
  6212. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6213. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6214. echo "${ECHO_T}$ac_header_compiler" >&6
  6215. # Is the header present?
  6216. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6217. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6218. cat >conftest.$ac_ext <<_ACEOF
  6219. /* confdefs.h. */
  6220. _ACEOF
  6221. cat confdefs.h >>conftest.$ac_ext
  6222. cat >>conftest.$ac_ext <<_ACEOF
  6223. /* end confdefs.h. */
  6224. #include <$ac_header>
  6225. _ACEOF
  6226. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6227. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6228. ac_status=$?
  6229. grep -v '^ *+' conftest.er1 >conftest.err
  6230. rm -f conftest.er1
  6231. cat conftest.err >&5
  6232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6233. (exit $ac_status); } >/dev/null; then
  6234. if test -s conftest.err; then
  6235. ac_cpp_err=$ac_c_preproc_warn_flag
  6236. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6237. else
  6238. ac_cpp_err=
  6239. fi
  6240. else
  6241. ac_cpp_err=yes
  6242. fi
  6243. if test -z "$ac_cpp_err"; then
  6244. ac_header_preproc=yes
  6245. else
  6246. echo "$as_me: failed program was:" >&5
  6247. sed 's/^/| /' conftest.$ac_ext >&5
  6248. ac_header_preproc=no
  6249. fi
  6250. rm -f conftest.err conftest.$ac_ext
  6251. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6252. echo "${ECHO_T}$ac_header_preproc" >&6
  6253. # So? What about this header?
  6254. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6255. yes:no: )
  6256. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6257. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6258. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6259. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6260. ac_header_preproc=yes
  6261. ;;
  6262. no:yes:* )
  6263. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6264. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6265. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6266. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6267. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6268. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6269. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6270. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6271. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6272. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6273. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6274. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6275. (
  6276. cat <<\_ASBOX
  6277. ## ----------------------------------- ##
  6278. ## Report this to tujikawa@rednoah.com ##
  6279. ## ----------------------------------- ##
  6280. _ASBOX
  6281. ) |
  6282. sed "s/^/$as_me: WARNING: /" >&2
  6283. ;;
  6284. esac
  6285. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6286. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6287. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6288. echo $ECHO_N "(cached) $ECHO_C" >&6
  6289. else
  6290. eval "$as_ac_Header=\$ac_header_preproc"
  6291. fi
  6292. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6293. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6294. fi
  6295. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6296. cat >>confdefs.h <<_ACEOF
  6297. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6298. _ACEOF
  6299. fi
  6300. done
  6301. for ac_func in getpagesize
  6302. do
  6303. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6304. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6305. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6306. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6307. echo $ECHO_N "(cached) $ECHO_C" >&6
  6308. else
  6309. cat >conftest.$ac_ext <<_ACEOF
  6310. /* confdefs.h. */
  6311. _ACEOF
  6312. cat confdefs.h >>conftest.$ac_ext
  6313. cat >>conftest.$ac_ext <<_ACEOF
  6314. /* end confdefs.h. */
  6315. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6316. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6317. #define $ac_func innocuous_$ac_func
  6318. /* System header to define __stub macros and hopefully few prototypes,
  6319. which can conflict with char $ac_func (); below.
  6320. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6321. <limits.h> exists even on freestanding compilers. */
  6322. #ifdef __STDC__
  6323. # include <limits.h>
  6324. #else
  6325. # include <assert.h>
  6326. #endif
  6327. #undef $ac_func
  6328. /* Override any gcc2 internal prototype to avoid an error. */
  6329. #ifdef __cplusplus
  6330. extern "C"
  6331. {
  6332. #endif
  6333. /* We use char because int might match the return type of a gcc2
  6334. builtin and then its argument prototype would still apply. */
  6335. char $ac_func ();
  6336. /* The GNU C library defines this for functions which it implements
  6337. to always fail with ENOSYS. Some functions are actually named
  6338. something starting with __ and the normal name is an alias. */
  6339. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6340. choke me
  6341. #else
  6342. char (*f) () = $ac_func;
  6343. #endif
  6344. #ifdef __cplusplus
  6345. }
  6346. #endif
  6347. int
  6348. main ()
  6349. {
  6350. return f != $ac_func;
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. rm -f conftest.$ac_objext conftest$ac_exeext
  6356. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6357. (eval $ac_link) 2>conftest.er1
  6358. ac_status=$?
  6359. grep -v '^ *+' conftest.er1 >conftest.err
  6360. rm -f conftest.er1
  6361. cat conftest.err >&5
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); } &&
  6364. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6366. (eval $ac_try) 2>&5
  6367. ac_status=$?
  6368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. (exit $ac_status); }; } &&
  6370. { ac_try='test -s conftest$ac_exeext'
  6371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6372. (eval $ac_try) 2>&5
  6373. ac_status=$?
  6374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6375. (exit $ac_status); }; }; then
  6376. eval "$as_ac_var=yes"
  6377. else
  6378. echo "$as_me: failed program was:" >&5
  6379. sed 's/^/| /' conftest.$ac_ext >&5
  6380. eval "$as_ac_var=no"
  6381. fi
  6382. rm -f conftest.err conftest.$ac_objext \
  6383. conftest$ac_exeext conftest.$ac_ext
  6384. fi
  6385. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6386. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6387. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6388. cat >>confdefs.h <<_ACEOF
  6389. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6390. _ACEOF
  6391. fi
  6392. done
  6393. echo "$as_me:$LINENO: checking for working mmap" >&5
  6394. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6395. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6396. echo $ECHO_N "(cached) $ECHO_C" >&6
  6397. else
  6398. if test "$cross_compiling" = yes; then
  6399. ac_cv_func_mmap_fixed_mapped=no
  6400. else
  6401. cat >conftest.$ac_ext <<_ACEOF
  6402. /* confdefs.h. */
  6403. _ACEOF
  6404. cat confdefs.h >>conftest.$ac_ext
  6405. cat >>conftest.$ac_ext <<_ACEOF
  6406. /* end confdefs.h. */
  6407. $ac_includes_default
  6408. /* malloc might have been renamed as rpl_malloc. */
  6409. #undef malloc
  6410. /* Thanks to Mike Haertel and Jim Avera for this test.
  6411. Here is a matrix of mmap possibilities:
  6412. mmap private not fixed
  6413. mmap private fixed at somewhere currently unmapped
  6414. mmap private fixed at somewhere already mapped
  6415. mmap shared not fixed
  6416. mmap shared fixed at somewhere currently unmapped
  6417. mmap shared fixed at somewhere already mapped
  6418. For private mappings, we should verify that changes cannot be read()
  6419. back from the file, nor mmap's back from the file at a different
  6420. address. (There have been systems where private was not correctly
  6421. implemented like the infamous i386 svr4.0, and systems where the
  6422. VM page cache was not coherent with the file system buffer cache
  6423. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6424. For shared mappings, we should conversely verify that changes get
  6425. propagated back to all the places they're supposed to be.
  6426. Grep wants private fixed already mapped.
  6427. The main things grep needs to know about mmap are:
  6428. * does it exist and is it safe to write into the mmap'd area
  6429. * how to use it (BSD variants) */
  6430. #include <fcntl.h>
  6431. #include <sys/mman.h>
  6432. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6433. char *malloc ();
  6434. #endif
  6435. /* This mess was copied from the GNU getpagesize.h. */
  6436. #if !HAVE_GETPAGESIZE
  6437. /* Assume that all systems that can run configure have sys/param.h. */
  6438. # if !HAVE_SYS_PARAM_H
  6439. # define HAVE_SYS_PARAM_H 1
  6440. # endif
  6441. # ifdef _SC_PAGESIZE
  6442. # define getpagesize() sysconf(_SC_PAGESIZE)
  6443. # else /* no _SC_PAGESIZE */
  6444. # if HAVE_SYS_PARAM_H
  6445. # include <sys/param.h>
  6446. # ifdef EXEC_PAGESIZE
  6447. # define getpagesize() EXEC_PAGESIZE
  6448. # else /* no EXEC_PAGESIZE */
  6449. # ifdef NBPG
  6450. # define getpagesize() NBPG * CLSIZE
  6451. # ifndef CLSIZE
  6452. # define CLSIZE 1
  6453. # endif /* no CLSIZE */
  6454. # else /* no NBPG */
  6455. # ifdef NBPC
  6456. # define getpagesize() NBPC
  6457. # else /* no NBPC */
  6458. # ifdef PAGESIZE
  6459. # define getpagesize() PAGESIZE
  6460. # endif /* PAGESIZE */
  6461. # endif /* no NBPC */
  6462. # endif /* no NBPG */
  6463. # endif /* no EXEC_PAGESIZE */
  6464. # else /* no HAVE_SYS_PARAM_H */
  6465. # define getpagesize() 8192 /* punt totally */
  6466. # endif /* no HAVE_SYS_PARAM_H */
  6467. # endif /* no _SC_PAGESIZE */
  6468. #endif /* no HAVE_GETPAGESIZE */
  6469. int
  6470. main ()
  6471. {
  6472. char *data, *data2, *data3;
  6473. int i, pagesize;
  6474. int fd;
  6475. pagesize = getpagesize ();
  6476. /* First, make a file with some known garbage in it. */
  6477. data = (char *) malloc (pagesize);
  6478. if (!data)
  6479. exit (1);
  6480. for (i = 0; i < pagesize; ++i)
  6481. *(data + i) = rand ();
  6482. umask (0);
  6483. fd = creat ("conftest.mmap", 0600);
  6484. if (fd < 0)
  6485. exit (1);
  6486. if (write (fd, data, pagesize) != pagesize)
  6487. exit (1);
  6488. close (fd);
  6489. /* Next, try to mmap the file at a fixed address which already has
  6490. something else allocated at it. If we can, also make sure that
  6491. we see the same garbage. */
  6492. fd = open ("conftest.mmap", O_RDWR);
  6493. if (fd < 0)
  6494. exit (1);
  6495. data2 = (char *) malloc (2 * pagesize);
  6496. if (!data2)
  6497. exit (1);
  6498. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6499. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6500. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6501. exit (1);
  6502. for (i = 0; i < pagesize; ++i)
  6503. if (*(data + i) != *(data2 + i))
  6504. exit (1);
  6505. /* Finally, make sure that changes to the mapped area do not
  6506. percolate back to the file as seen by read(). (This is a bug on
  6507. some variants of i386 svr4.0.) */
  6508. for (i = 0; i < pagesize; ++i)
  6509. *(data2 + i) = *(data2 + i) + 1;
  6510. data3 = (char *) malloc (pagesize);
  6511. if (!data3)
  6512. exit (1);
  6513. if (read (fd, data3, pagesize) != pagesize)
  6514. exit (1);
  6515. for (i = 0; i < pagesize; ++i)
  6516. if (*(data + i) != *(data3 + i))
  6517. exit (1);
  6518. close (fd);
  6519. exit (0);
  6520. }
  6521. _ACEOF
  6522. rm -f conftest$ac_exeext
  6523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6524. (eval $ac_link) 2>&5
  6525. ac_status=$?
  6526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6527. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6529. (eval $ac_try) 2>&5
  6530. ac_status=$?
  6531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6532. (exit $ac_status); }; }; then
  6533. ac_cv_func_mmap_fixed_mapped=yes
  6534. else
  6535. echo "$as_me: program exited with status $ac_status" >&5
  6536. echo "$as_me: failed program was:" >&5
  6537. sed 's/^/| /' conftest.$ac_ext >&5
  6538. ( exit $ac_status )
  6539. ac_cv_func_mmap_fixed_mapped=no
  6540. fi
  6541. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6542. fi
  6543. fi
  6544. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6545. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6546. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6547. cat >>confdefs.h <<\_ACEOF
  6548. #define HAVE_MMAP 1
  6549. _ACEOF
  6550. fi
  6551. rm -f conftest.mmap
  6552. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6553. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6554. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6555. echo $ECHO_N "(cached) $ECHO_C" >&6
  6556. else
  6557. cat >conftest.$ac_ext <<_ACEOF
  6558. /* confdefs.h. */
  6559. _ACEOF
  6560. cat confdefs.h >>conftest.$ac_ext
  6561. cat >>conftest.$ac_ext <<_ACEOF
  6562. /* end confdefs.h. */
  6563. #include <features.h>
  6564. #ifdef __GNU_LIBRARY__
  6565. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6566. Lucky GNU user
  6567. #endif
  6568. #endif
  6569. _ACEOF
  6570. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6571. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6572. ac_cv_gnu_library_2_1=yes
  6573. else
  6574. ac_cv_gnu_library_2_1=no
  6575. fi
  6576. rm -f conftest*
  6577. fi
  6578. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6579. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6580. GLIBC21="$ac_cv_gnu_library_2_1"
  6581. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6582. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6583. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6584. echo $ECHO_N "(cached) $ECHO_C" >&6
  6585. else
  6586. if test "$cross_compiling" = yes; then
  6587. # Guess based on the CPU.
  6588. case "$host_cpu" in
  6589. alpha* | i3456786 | m68k | s390*)
  6590. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6591. *)
  6592. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6593. esac
  6594. else
  6595. cat >conftest.$ac_ext <<_ACEOF
  6596. /* confdefs.h. */
  6597. _ACEOF
  6598. cat confdefs.h >>conftest.$ac_ext
  6599. cat >>conftest.$ac_ext <<_ACEOF
  6600. /* end confdefs.h. */
  6601. #include <stdlib.h>
  6602. #include <signal.h>
  6603. static void
  6604. #ifdef __cplusplus
  6605. sigfpe_handler (int sig)
  6606. #else
  6607. sigfpe_handler (sig) int sig;
  6608. #endif
  6609. {
  6610. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6611. exit (sig != SIGFPE);
  6612. }
  6613. int x = 1;
  6614. int y = 0;
  6615. int z;
  6616. int nan;
  6617. int main ()
  6618. {
  6619. signal (SIGFPE, sigfpe_handler);
  6620. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6621. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6622. signal (SIGTRAP, sigfpe_handler);
  6623. #endif
  6624. /* Linux/SPARC yields signal SIGILL. */
  6625. #if defined (__sparc__) && defined (__linux__)
  6626. signal (SIGILL, sigfpe_handler);
  6627. #endif
  6628. z = x / y;
  6629. nan = y / y;
  6630. exit (1);
  6631. }
  6632. _ACEOF
  6633. rm -f conftest$ac_exeext
  6634. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6635. (eval $ac_link) 2>&5
  6636. ac_status=$?
  6637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6640. (eval $ac_try) 2>&5
  6641. ac_status=$?
  6642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6643. (exit $ac_status); }; }; then
  6644. gt_cv_int_divbyzero_sigfpe=yes
  6645. else
  6646. echo "$as_me: program exited with status $ac_status" >&5
  6647. echo "$as_me: failed program was:" >&5
  6648. sed 's/^/| /' conftest.$ac_ext >&5
  6649. ( exit $ac_status )
  6650. gt_cv_int_divbyzero_sigfpe=no
  6651. fi
  6652. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6653. fi
  6654. fi
  6655. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6656. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6657. case "$gt_cv_int_divbyzero_sigfpe" in
  6658. *yes) value=1;;
  6659. *) value=0;;
  6660. esac
  6661. cat >>confdefs.h <<_ACEOF
  6662. #define INTDIV0_RAISES_SIGFPE $value
  6663. _ACEOF
  6664. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6665. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6666. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6667. echo $ECHO_N "(cached) $ECHO_C" >&6
  6668. else
  6669. cat >conftest.$ac_ext <<_ACEOF
  6670. /* confdefs.h. */
  6671. _ACEOF
  6672. cat confdefs.h >>conftest.$ac_ext
  6673. cat >>conftest.$ac_ext <<_ACEOF
  6674. /* end confdefs.h. */
  6675. #include <sys/types.h>
  6676. #include <inttypes.h>
  6677. int
  6678. main ()
  6679. {
  6680. uintmax_t i = (uintmax_t) -1;
  6681. ;
  6682. return 0;
  6683. }
  6684. _ACEOF
  6685. rm -f conftest.$ac_objext
  6686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6687. (eval $ac_compile) 2>conftest.er1
  6688. ac_status=$?
  6689. grep -v '^ *+' conftest.er1 >conftest.err
  6690. rm -f conftest.er1
  6691. cat conftest.err >&5
  6692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); } &&
  6694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6696. (eval $ac_try) 2>&5
  6697. ac_status=$?
  6698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); }; } &&
  6700. { ac_try='test -s conftest.$ac_objext'
  6701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6702. (eval $ac_try) 2>&5
  6703. ac_status=$?
  6704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); }; }; then
  6706. jm_ac_cv_header_inttypes_h=yes
  6707. else
  6708. echo "$as_me: failed program was:" >&5
  6709. sed 's/^/| /' conftest.$ac_ext >&5
  6710. jm_ac_cv_header_inttypes_h=no
  6711. fi
  6712. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6713. fi
  6714. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6715. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6716. if test $jm_ac_cv_header_inttypes_h = yes; then
  6717. cat >>confdefs.h <<_ACEOF
  6718. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6719. _ACEOF
  6720. fi
  6721. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6722. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6723. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6724. echo $ECHO_N "(cached) $ECHO_C" >&6
  6725. else
  6726. cat >conftest.$ac_ext <<_ACEOF
  6727. /* confdefs.h. */
  6728. _ACEOF
  6729. cat confdefs.h >>conftest.$ac_ext
  6730. cat >>conftest.$ac_ext <<_ACEOF
  6731. /* end confdefs.h. */
  6732. #include <sys/types.h>
  6733. #include <stdint.h>
  6734. int
  6735. main ()
  6736. {
  6737. uintmax_t i = (uintmax_t) -1;
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. rm -f conftest.$ac_objext
  6743. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6744. (eval $ac_compile) 2>conftest.er1
  6745. ac_status=$?
  6746. grep -v '^ *+' conftest.er1 >conftest.err
  6747. rm -f conftest.er1
  6748. cat conftest.err >&5
  6749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6750. (exit $ac_status); } &&
  6751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6753. (eval $ac_try) 2>&5
  6754. ac_status=$?
  6755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6756. (exit $ac_status); }; } &&
  6757. { ac_try='test -s conftest.$ac_objext'
  6758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6759. (eval $ac_try) 2>&5
  6760. ac_status=$?
  6761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762. (exit $ac_status); }; }; then
  6763. jm_ac_cv_header_stdint_h=yes
  6764. else
  6765. echo "$as_me: failed program was:" >&5
  6766. sed 's/^/| /' conftest.$ac_ext >&5
  6767. jm_ac_cv_header_stdint_h=no
  6768. fi
  6769. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6770. fi
  6771. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6772. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6773. if test $jm_ac_cv_header_stdint_h = yes; then
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6776. _ACEOF
  6777. fi
  6778. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6779. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6780. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6781. echo $ECHO_N "(cached) $ECHO_C" >&6
  6782. else
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. unsigned long long ull = 1; int i = 63;
  6790. int
  6791. main ()
  6792. {
  6793. unsigned long long ullmax = (unsigned long long) -1;
  6794. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext conftest$ac_exeext
  6800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6801. (eval $ac_link) 2>conftest.er1
  6802. ac_status=$?
  6803. grep -v '^ *+' conftest.er1 >conftest.err
  6804. rm -f conftest.er1
  6805. cat conftest.err >&5
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); } &&
  6808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6810. (eval $ac_try) 2>&5
  6811. ac_status=$?
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); }; } &&
  6814. { ac_try='test -s conftest$ac_exeext'
  6815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6816. (eval $ac_try) 2>&5
  6817. ac_status=$?
  6818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6819. (exit $ac_status); }; }; then
  6820. ac_cv_type_unsigned_long_long=yes
  6821. else
  6822. echo "$as_me: failed program was:" >&5
  6823. sed 's/^/| /' conftest.$ac_ext >&5
  6824. ac_cv_type_unsigned_long_long=no
  6825. fi
  6826. rm -f conftest.err conftest.$ac_objext \
  6827. conftest$ac_exeext conftest.$ac_ext
  6828. fi
  6829. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  6830. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  6831. if test $ac_cv_type_unsigned_long_long = yes; then
  6832. cat >>confdefs.h <<\_ACEOF
  6833. #define HAVE_UNSIGNED_LONG_LONG 1
  6834. _ACEOF
  6835. fi
  6836. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6837. test $ac_cv_type_unsigned_long_long = yes \
  6838. && ac_type='unsigned long long' \
  6839. || ac_type='unsigned long'
  6840. cat >>confdefs.h <<_ACEOF
  6841. #define uintmax_t $ac_type
  6842. _ACEOF
  6843. else
  6844. cat >>confdefs.h <<\_ACEOF
  6845. #define HAVE_UINTMAX_T 1
  6846. _ACEOF
  6847. fi
  6848. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6849. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6850. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6851. echo $ECHO_N "(cached) $ECHO_C" >&6
  6852. else
  6853. cat >conftest.$ac_ext <<_ACEOF
  6854. /* confdefs.h. */
  6855. _ACEOF
  6856. cat confdefs.h >>conftest.$ac_ext
  6857. cat >>conftest.$ac_ext <<_ACEOF
  6858. /* end confdefs.h. */
  6859. #include <sys/types.h>
  6860. #include <inttypes.h>
  6861. int
  6862. main ()
  6863. {
  6864. ;
  6865. return 0;
  6866. }
  6867. _ACEOF
  6868. rm -f conftest.$ac_objext
  6869. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6870. (eval $ac_compile) 2>conftest.er1
  6871. ac_status=$?
  6872. grep -v '^ *+' conftest.er1 >conftest.err
  6873. rm -f conftest.er1
  6874. cat conftest.err >&5
  6875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6876. (exit $ac_status); } &&
  6877. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6879. (eval $ac_try) 2>&5
  6880. ac_status=$?
  6881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. (exit $ac_status); }; } &&
  6883. { ac_try='test -s conftest.$ac_objext'
  6884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6885. (eval $ac_try) 2>&5
  6886. ac_status=$?
  6887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6888. (exit $ac_status); }; }; then
  6889. gt_cv_header_inttypes_h=yes
  6890. else
  6891. echo "$as_me: failed program was:" >&5
  6892. sed 's/^/| /' conftest.$ac_ext >&5
  6893. gt_cv_header_inttypes_h=no
  6894. fi
  6895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. fi
  6897. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6898. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6899. if test $gt_cv_header_inttypes_h = yes; then
  6900. cat >>confdefs.h <<_ACEOF
  6901. #define HAVE_INTTYPES_H 1
  6902. _ACEOF
  6903. fi
  6904. if test $gt_cv_header_inttypes_h = yes; then
  6905. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6906. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6907. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6908. echo $ECHO_N "(cached) $ECHO_C" >&6
  6909. else
  6910. cat >conftest.$ac_ext <<_ACEOF
  6911. /* confdefs.h. */
  6912. _ACEOF
  6913. cat confdefs.h >>conftest.$ac_ext
  6914. cat >>conftest.$ac_ext <<_ACEOF
  6915. /* end confdefs.h. */
  6916. #include <inttypes.h>
  6917. #ifdef PRId32
  6918. char *p = PRId32;
  6919. #endif
  6920. int
  6921. main ()
  6922. {
  6923. ;
  6924. return 0;
  6925. }
  6926. _ACEOF
  6927. rm -f conftest.$ac_objext
  6928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6929. (eval $ac_compile) 2>conftest.er1
  6930. ac_status=$?
  6931. grep -v '^ *+' conftest.er1 >conftest.err
  6932. rm -f conftest.er1
  6933. cat conftest.err >&5
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. (exit $ac_status); } &&
  6936. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6938. (eval $ac_try) 2>&5
  6939. ac_status=$?
  6940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941. (exit $ac_status); }; } &&
  6942. { ac_try='test -s conftest.$ac_objext'
  6943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6944. (eval $ac_try) 2>&5
  6945. ac_status=$?
  6946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6947. (exit $ac_status); }; }; then
  6948. gt_cv_inttypes_pri_broken=no
  6949. else
  6950. echo "$as_me: failed program was:" >&5
  6951. sed 's/^/| /' conftest.$ac_ext >&5
  6952. gt_cv_inttypes_pri_broken=yes
  6953. fi
  6954. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6955. fi
  6956. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6957. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6958. fi
  6959. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6960. cat >>confdefs.h <<_ACEOF
  6961. #define PRI_MACROS_BROKEN 1
  6962. _ACEOF
  6963. fi
  6964. if test "X$prefix" = "XNONE"; then
  6965. acl_final_prefix="$ac_default_prefix"
  6966. else
  6967. acl_final_prefix="$prefix"
  6968. fi
  6969. if test "X$exec_prefix" = "XNONE"; then
  6970. acl_final_exec_prefix='${prefix}'
  6971. else
  6972. acl_final_exec_prefix="$exec_prefix"
  6973. fi
  6974. acl_save_prefix="$prefix"
  6975. prefix="$acl_final_prefix"
  6976. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6977. prefix="$acl_save_prefix"
  6978. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6979. if test "${with_gnu_ld+set}" = set; then
  6980. withval="$with_gnu_ld"
  6981. test "$withval" = no || with_gnu_ld=yes
  6982. else
  6983. with_gnu_ld=no
  6984. fi;
  6985. # Prepare PATH_SEPARATOR.
  6986. # The user is always right.
  6987. if test "${PATH_SEPARATOR+set}" != set; then
  6988. echo "#! /bin/sh" >conf$$.sh
  6989. echo "exit 0" >>conf$$.sh
  6990. chmod +x conf$$.sh
  6991. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6992. PATH_SEPARATOR=';'
  6993. else
  6994. PATH_SEPARATOR=:
  6995. fi
  6996. rm -f conf$$.sh
  6997. fi
  6998. ac_prog=ld
  6999. if test "$GCC" = yes; then
  7000. # Check if gcc -print-prog-name=ld gives a path.
  7001. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7002. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  7003. case $host in
  7004. *-*-mingw*)
  7005. # gcc leaves a trailing carriage return which upsets mingw
  7006. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7007. *)
  7008. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7009. esac
  7010. case $ac_prog in
  7011. # Accept absolute paths.
  7012. [\\/]* | [A-Za-z]:[\\/]*)
  7013. re_direlt='/[^/][^/]*/\.\./'
  7014. # Canonicalize the path of ld
  7015. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7016. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7017. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7018. done
  7019. test -z "$LD" && LD="$ac_prog"
  7020. ;;
  7021. "")
  7022. # If it fails, then pretend we aren't using GCC.
  7023. ac_prog=ld
  7024. ;;
  7025. *)
  7026. # If it is relative, then search for the first ld in PATH.
  7027. with_gnu_ld=unknown
  7028. ;;
  7029. esac
  7030. elif test "$with_gnu_ld" = yes; then
  7031. echo "$as_me:$LINENO: checking for GNU ld" >&5
  7032. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  7033. else
  7034. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7035. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  7036. fi
  7037. if test "${acl_cv_path_LD+set}" = set; then
  7038. echo $ECHO_N "(cached) $ECHO_C" >&6
  7039. else
  7040. if test -z "$LD"; then
  7041. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7042. for ac_dir in $PATH; do
  7043. test -z "$ac_dir" && ac_dir=.
  7044. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7045. acl_cv_path_LD="$ac_dir/$ac_prog"
  7046. # Check to see if the program is GNU ld. I'd rather use --version,
  7047. # but apparently some GNU ld's only accept -v.
  7048. # Break only if it was the GNU/non-GNU ld that we prefer.
  7049. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7050. test "$with_gnu_ld" != no && break
  7051. else
  7052. test "$with_gnu_ld" != yes && break
  7053. fi
  7054. fi
  7055. done
  7056. IFS="$ac_save_ifs"
  7057. else
  7058. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7059. fi
  7060. fi
  7061. LD="$acl_cv_path_LD"
  7062. if test -n "$LD"; then
  7063. echo "$as_me:$LINENO: result: $LD" >&5
  7064. echo "${ECHO_T}$LD" >&6
  7065. else
  7066. echo "$as_me:$LINENO: result: no" >&5
  7067. echo "${ECHO_T}no" >&6
  7068. fi
  7069. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7070. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7071. { (exit 1); exit 1; }; }
  7072. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7073. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7074. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7075. echo $ECHO_N "(cached) $ECHO_C" >&6
  7076. else
  7077. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7078. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7079. acl_cv_prog_gnu_ld=yes
  7080. else
  7081. acl_cv_prog_gnu_ld=no
  7082. fi
  7083. fi
  7084. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7085. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7086. with_gnu_ld=$acl_cv_prog_gnu_ld
  7087. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7088. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7089. if test "${acl_cv_rpath+set}" = set; then
  7090. echo $ECHO_N "(cached) $ECHO_C" >&6
  7091. else
  7092. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7093. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7094. . ./conftest.sh
  7095. rm -f ./conftest.sh
  7096. acl_cv_rpath=done
  7097. fi
  7098. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7099. echo "${ECHO_T}$acl_cv_rpath" >&6
  7100. wl="$acl_cv_wl"
  7101. libext="$acl_cv_libext"
  7102. shlibext="$acl_cv_shlibext"
  7103. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7104. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7105. hardcode_direct="$acl_cv_hardcode_direct"
  7106. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7107. # Check whether --enable-rpath or --disable-rpath was given.
  7108. if test "${enable_rpath+set}" = set; then
  7109. enableval="$enable_rpath"
  7110. :
  7111. else
  7112. enable_rpath=yes
  7113. fi;
  7114. use_additional=yes
  7115. acl_save_prefix="$prefix"
  7116. prefix="$acl_final_prefix"
  7117. acl_save_exec_prefix="$exec_prefix"
  7118. exec_prefix="$acl_final_exec_prefix"
  7119. eval additional_includedir=\"$includedir\"
  7120. eval additional_libdir=\"$libdir\"
  7121. exec_prefix="$acl_save_exec_prefix"
  7122. prefix="$acl_save_prefix"
  7123. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7124. if test "${with_libiconv_prefix+set}" = set; then
  7125. withval="$with_libiconv_prefix"
  7126. if test "X$withval" = "Xno"; then
  7127. use_additional=no
  7128. else
  7129. if test "X$withval" = "X"; then
  7130. acl_save_prefix="$prefix"
  7131. prefix="$acl_final_prefix"
  7132. acl_save_exec_prefix="$exec_prefix"
  7133. exec_prefix="$acl_final_exec_prefix"
  7134. eval additional_includedir=\"$includedir\"
  7135. eval additional_libdir=\"$libdir\"
  7136. exec_prefix="$acl_save_exec_prefix"
  7137. prefix="$acl_save_prefix"
  7138. else
  7139. additional_includedir="$withval/include"
  7140. additional_libdir="$withval/lib"
  7141. fi
  7142. fi
  7143. fi;
  7144. LIBICONV=
  7145. LTLIBICONV=
  7146. INCICONV=
  7147. rpathdirs=
  7148. ltrpathdirs=
  7149. names_already_handled=
  7150. names_next_round='iconv '
  7151. while test -n "$names_next_round"; do
  7152. names_this_round="$names_next_round"
  7153. names_next_round=
  7154. for name in $names_this_round; do
  7155. already_handled=
  7156. for n in $names_already_handled; do
  7157. if test "$n" = "$name"; then
  7158. already_handled=yes
  7159. break
  7160. fi
  7161. done
  7162. if test -z "$already_handled"; then
  7163. names_already_handled="$names_already_handled $name"
  7164. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7165. eval value=\"\$HAVE_LIB$uppername\"
  7166. if test -n "$value"; then
  7167. if test "$value" = yes; then
  7168. eval value=\"\$LIB$uppername\"
  7169. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7170. eval value=\"\$LTLIB$uppername\"
  7171. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7172. else
  7173. :
  7174. fi
  7175. else
  7176. found_dir=
  7177. found_la=
  7178. found_so=
  7179. found_a=
  7180. if test $use_additional = yes; then
  7181. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7182. found_dir="$additional_libdir"
  7183. found_so="$additional_libdir/lib$name.$shlibext"
  7184. if test -f "$additional_libdir/lib$name.la"; then
  7185. found_la="$additional_libdir/lib$name.la"
  7186. fi
  7187. else
  7188. if test -f "$additional_libdir/lib$name.$libext"; then
  7189. found_dir="$additional_libdir"
  7190. found_a="$additional_libdir/lib$name.$libext"
  7191. if test -f "$additional_libdir/lib$name.la"; then
  7192. found_la="$additional_libdir/lib$name.la"
  7193. fi
  7194. fi
  7195. fi
  7196. fi
  7197. if test "X$found_dir" = "X"; then
  7198. for x in $LDFLAGS $LTLIBICONV; do
  7199. acl_save_prefix="$prefix"
  7200. prefix="$acl_final_prefix"
  7201. acl_save_exec_prefix="$exec_prefix"
  7202. exec_prefix="$acl_final_exec_prefix"
  7203. eval x=\"$x\"
  7204. exec_prefix="$acl_save_exec_prefix"
  7205. prefix="$acl_save_prefix"
  7206. case "$x" in
  7207. -L*)
  7208. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7209. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7210. found_dir="$dir"
  7211. found_so="$dir/lib$name.$shlibext"
  7212. if test -f "$dir/lib$name.la"; then
  7213. found_la="$dir/lib$name.la"
  7214. fi
  7215. else
  7216. if test -f "$dir/lib$name.$libext"; then
  7217. found_dir="$dir"
  7218. found_a="$dir/lib$name.$libext"
  7219. if test -f "$dir/lib$name.la"; then
  7220. found_la="$dir/lib$name.la"
  7221. fi
  7222. fi
  7223. fi
  7224. ;;
  7225. esac
  7226. if test "X$found_dir" != "X"; then
  7227. break
  7228. fi
  7229. done
  7230. fi
  7231. if test "X$found_dir" != "X"; then
  7232. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7233. if test "X$found_so" != "X"; then
  7234. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7235. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7236. else
  7237. haveit=
  7238. for x in $ltrpathdirs; do
  7239. if test "X$x" = "X$found_dir"; then
  7240. haveit=yes
  7241. break
  7242. fi
  7243. done
  7244. if test -z "$haveit"; then
  7245. ltrpathdirs="$ltrpathdirs $found_dir"
  7246. fi
  7247. if test "$hardcode_direct" = yes; then
  7248. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7249. else
  7250. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7251. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7252. haveit=
  7253. for x in $rpathdirs; do
  7254. if test "X$x" = "X$found_dir"; then
  7255. haveit=yes
  7256. break
  7257. fi
  7258. done
  7259. if test -z "$haveit"; then
  7260. rpathdirs="$rpathdirs $found_dir"
  7261. fi
  7262. else
  7263. haveit=
  7264. for x in $LDFLAGS $LIBICONV; do
  7265. acl_save_prefix="$prefix"
  7266. prefix="$acl_final_prefix"
  7267. acl_save_exec_prefix="$exec_prefix"
  7268. exec_prefix="$acl_final_exec_prefix"
  7269. eval x=\"$x\"
  7270. exec_prefix="$acl_save_exec_prefix"
  7271. prefix="$acl_save_prefix"
  7272. if test "X$x" = "X-L$found_dir"; then
  7273. haveit=yes
  7274. break
  7275. fi
  7276. done
  7277. if test -z "$haveit"; then
  7278. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7279. fi
  7280. if test "$hardcode_minus_L" != no; then
  7281. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7282. else
  7283. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7284. fi
  7285. fi
  7286. fi
  7287. fi
  7288. else
  7289. if test "X$found_a" != "X"; then
  7290. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7291. else
  7292. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7293. fi
  7294. fi
  7295. additional_includedir=
  7296. case "$found_dir" in
  7297. */lib | */lib/)
  7298. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7299. additional_includedir="$basedir/include"
  7300. ;;
  7301. esac
  7302. if test "X$additional_includedir" != "X"; then
  7303. if test "X$additional_includedir" != "X/usr/include"; then
  7304. haveit=
  7305. if test "X$additional_includedir" = "X/usr/local/include"; then
  7306. if test -n "$GCC"; then
  7307. case $host_os in
  7308. linux*) haveit=yes;;
  7309. esac
  7310. fi
  7311. fi
  7312. if test -z "$haveit"; then
  7313. for x in $CPPFLAGS $INCICONV; do
  7314. acl_save_prefix="$prefix"
  7315. prefix="$acl_final_prefix"
  7316. acl_save_exec_prefix="$exec_prefix"
  7317. exec_prefix="$acl_final_exec_prefix"
  7318. eval x=\"$x\"
  7319. exec_prefix="$acl_save_exec_prefix"
  7320. prefix="$acl_save_prefix"
  7321. if test "X$x" = "X-I$additional_includedir"; then
  7322. haveit=yes
  7323. break
  7324. fi
  7325. done
  7326. if test -z "$haveit"; then
  7327. if test -d "$additional_includedir"; then
  7328. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7329. fi
  7330. fi
  7331. fi
  7332. fi
  7333. fi
  7334. if test -n "$found_la"; then
  7335. save_libdir="$libdir"
  7336. case "$found_la" in
  7337. */* | *\\*) . "$found_la" ;;
  7338. *) . "./$found_la" ;;
  7339. esac
  7340. libdir="$save_libdir"
  7341. for dep in $dependency_libs; do
  7342. case "$dep" in
  7343. -L*)
  7344. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7345. if test "X$additional_libdir" != "X/usr/lib"; then
  7346. haveit=
  7347. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7348. if test -n "$GCC"; then
  7349. case $host_os in
  7350. linux*) haveit=yes;;
  7351. esac
  7352. fi
  7353. fi
  7354. if test -z "$haveit"; then
  7355. haveit=
  7356. for x in $LDFLAGS $LIBICONV; do
  7357. acl_save_prefix="$prefix"
  7358. prefix="$acl_final_prefix"
  7359. acl_save_exec_prefix="$exec_prefix"
  7360. exec_prefix="$acl_final_exec_prefix"
  7361. eval x=\"$x\"
  7362. exec_prefix="$acl_save_exec_prefix"
  7363. prefix="$acl_save_prefix"
  7364. if test "X$x" = "X-L$additional_libdir"; then
  7365. haveit=yes
  7366. break
  7367. fi
  7368. done
  7369. if test -z "$haveit"; then
  7370. if test -d "$additional_libdir"; then
  7371. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7372. fi
  7373. fi
  7374. haveit=
  7375. for x in $LDFLAGS $LTLIBICONV; do
  7376. acl_save_prefix="$prefix"
  7377. prefix="$acl_final_prefix"
  7378. acl_save_exec_prefix="$exec_prefix"
  7379. exec_prefix="$acl_final_exec_prefix"
  7380. eval x=\"$x\"
  7381. exec_prefix="$acl_save_exec_prefix"
  7382. prefix="$acl_save_prefix"
  7383. if test "X$x" = "X-L$additional_libdir"; then
  7384. haveit=yes
  7385. break
  7386. fi
  7387. done
  7388. if test -z "$haveit"; then
  7389. if test -d "$additional_libdir"; then
  7390. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7391. fi
  7392. fi
  7393. fi
  7394. fi
  7395. ;;
  7396. -R*)
  7397. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7398. if test "$enable_rpath" != no; then
  7399. haveit=
  7400. for x in $rpathdirs; do
  7401. if test "X$x" = "X$dir"; then
  7402. haveit=yes
  7403. break
  7404. fi
  7405. done
  7406. if test -z "$haveit"; then
  7407. rpathdirs="$rpathdirs $dir"
  7408. fi
  7409. haveit=
  7410. for x in $ltrpathdirs; do
  7411. if test "X$x" = "X$dir"; then
  7412. haveit=yes
  7413. break
  7414. fi
  7415. done
  7416. if test -z "$haveit"; then
  7417. ltrpathdirs="$ltrpathdirs $dir"
  7418. fi
  7419. fi
  7420. ;;
  7421. -l*)
  7422. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7423. ;;
  7424. *.la)
  7425. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7426. ;;
  7427. *)
  7428. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7429. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7430. ;;
  7431. esac
  7432. done
  7433. fi
  7434. else
  7435. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7436. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7437. fi
  7438. fi
  7439. fi
  7440. done
  7441. done
  7442. if test "X$rpathdirs" != "X"; then
  7443. if test -n "$hardcode_libdir_separator"; then
  7444. alldirs=
  7445. for found_dir in $rpathdirs; do
  7446. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7447. done
  7448. acl_save_libdir="$libdir"
  7449. libdir="$alldirs"
  7450. eval flag=\"$hardcode_libdir_flag_spec\"
  7451. libdir="$acl_save_libdir"
  7452. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7453. else
  7454. for found_dir in $rpathdirs; do
  7455. acl_save_libdir="$libdir"
  7456. libdir="$found_dir"
  7457. eval flag=\"$hardcode_libdir_flag_spec\"
  7458. libdir="$acl_save_libdir"
  7459. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7460. done
  7461. fi
  7462. fi
  7463. if test "X$ltrpathdirs" != "X"; then
  7464. for found_dir in $ltrpathdirs; do
  7465. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7466. done
  7467. fi
  7468. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7469. stdlib.h string.h unistd.h sys/param.h
  7470. do
  7471. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7472. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7473. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7474. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7475. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7476. echo $ECHO_N "(cached) $ECHO_C" >&6
  7477. fi
  7478. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7479. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7480. else
  7481. # Is the header compilable?
  7482. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7483. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7484. cat >conftest.$ac_ext <<_ACEOF
  7485. /* confdefs.h. */
  7486. _ACEOF
  7487. cat confdefs.h >>conftest.$ac_ext
  7488. cat >>conftest.$ac_ext <<_ACEOF
  7489. /* end confdefs.h. */
  7490. $ac_includes_default
  7491. #include <$ac_header>
  7492. _ACEOF
  7493. rm -f conftest.$ac_objext
  7494. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7495. (eval $ac_compile) 2>conftest.er1
  7496. ac_status=$?
  7497. grep -v '^ *+' conftest.er1 >conftest.err
  7498. rm -f conftest.er1
  7499. cat conftest.err >&5
  7500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7501. (exit $ac_status); } &&
  7502. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7504. (eval $ac_try) 2>&5
  7505. ac_status=$?
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. (exit $ac_status); }; } &&
  7508. { ac_try='test -s conftest.$ac_objext'
  7509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7510. (eval $ac_try) 2>&5
  7511. ac_status=$?
  7512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7513. (exit $ac_status); }; }; then
  7514. ac_header_compiler=yes
  7515. else
  7516. echo "$as_me: failed program was:" >&5
  7517. sed 's/^/| /' conftest.$ac_ext >&5
  7518. ac_header_compiler=no
  7519. fi
  7520. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7521. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7522. echo "${ECHO_T}$ac_header_compiler" >&6
  7523. # Is the header present?
  7524. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7525. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7526. cat >conftest.$ac_ext <<_ACEOF
  7527. /* confdefs.h. */
  7528. _ACEOF
  7529. cat confdefs.h >>conftest.$ac_ext
  7530. cat >>conftest.$ac_ext <<_ACEOF
  7531. /* end confdefs.h. */
  7532. #include <$ac_header>
  7533. _ACEOF
  7534. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7535. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7536. ac_status=$?
  7537. grep -v '^ *+' conftest.er1 >conftest.err
  7538. rm -f conftest.er1
  7539. cat conftest.err >&5
  7540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7541. (exit $ac_status); } >/dev/null; then
  7542. if test -s conftest.err; then
  7543. ac_cpp_err=$ac_c_preproc_warn_flag
  7544. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7545. else
  7546. ac_cpp_err=
  7547. fi
  7548. else
  7549. ac_cpp_err=yes
  7550. fi
  7551. if test -z "$ac_cpp_err"; then
  7552. ac_header_preproc=yes
  7553. else
  7554. echo "$as_me: failed program was:" >&5
  7555. sed 's/^/| /' conftest.$ac_ext >&5
  7556. ac_header_preproc=no
  7557. fi
  7558. rm -f conftest.err conftest.$ac_ext
  7559. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7560. echo "${ECHO_T}$ac_header_preproc" >&6
  7561. # So? What about this header?
  7562. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7563. yes:no: )
  7564. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7565. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7566. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7567. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7568. ac_header_preproc=yes
  7569. ;;
  7570. no:yes:* )
  7571. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7572. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7573. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7574. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7575. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7576. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7577. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7578. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7579. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7580. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7581. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7582. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7583. (
  7584. cat <<\_ASBOX
  7585. ## ----------------------------------- ##
  7586. ## Report this to tujikawa@rednoah.com ##
  7587. ## ----------------------------------- ##
  7588. _ASBOX
  7589. ) |
  7590. sed "s/^/$as_me: WARNING: /" >&2
  7591. ;;
  7592. esac
  7593. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7594. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7595. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7596. echo $ECHO_N "(cached) $ECHO_C" >&6
  7597. else
  7598. eval "$as_ac_Header=\$ac_header_preproc"
  7599. fi
  7600. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7601. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7602. fi
  7603. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7604. cat >>confdefs.h <<_ACEOF
  7605. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7606. _ACEOF
  7607. fi
  7608. done
  7609. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7610. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7611. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7612. __fsetlocking
  7613. do
  7614. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7615. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7616. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7617. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7618. echo $ECHO_N "(cached) $ECHO_C" >&6
  7619. else
  7620. cat >conftest.$ac_ext <<_ACEOF
  7621. /* confdefs.h. */
  7622. _ACEOF
  7623. cat confdefs.h >>conftest.$ac_ext
  7624. cat >>conftest.$ac_ext <<_ACEOF
  7625. /* end confdefs.h. */
  7626. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7628. #define $ac_func innocuous_$ac_func
  7629. /* System header to define __stub macros and hopefully few prototypes,
  7630. which can conflict with char $ac_func (); below.
  7631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7632. <limits.h> exists even on freestanding compilers. */
  7633. #ifdef __STDC__
  7634. # include <limits.h>
  7635. #else
  7636. # include <assert.h>
  7637. #endif
  7638. #undef $ac_func
  7639. /* Override any gcc2 internal prototype to avoid an error. */
  7640. #ifdef __cplusplus
  7641. extern "C"
  7642. {
  7643. #endif
  7644. /* We use char because int might match the return type of a gcc2
  7645. builtin and then its argument prototype would still apply. */
  7646. char $ac_func ();
  7647. /* The GNU C library defines this for functions which it implements
  7648. to always fail with ENOSYS. Some functions are actually named
  7649. something starting with __ and the normal name is an alias. */
  7650. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7651. choke me
  7652. #else
  7653. char (*f) () = $ac_func;
  7654. #endif
  7655. #ifdef __cplusplus
  7656. }
  7657. #endif
  7658. int
  7659. main ()
  7660. {
  7661. return f != $ac_func;
  7662. ;
  7663. return 0;
  7664. }
  7665. _ACEOF
  7666. rm -f conftest.$ac_objext conftest$ac_exeext
  7667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7668. (eval $ac_link) 2>conftest.er1
  7669. ac_status=$?
  7670. grep -v '^ *+' conftest.er1 >conftest.err
  7671. rm -f conftest.er1
  7672. cat conftest.err >&5
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. (exit $ac_status); } &&
  7675. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7677. (eval $ac_try) 2>&5
  7678. ac_status=$?
  7679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7680. (exit $ac_status); }; } &&
  7681. { ac_try='test -s conftest$ac_exeext'
  7682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7683. (eval $ac_try) 2>&5
  7684. ac_status=$?
  7685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7686. (exit $ac_status); }; }; then
  7687. eval "$as_ac_var=yes"
  7688. else
  7689. echo "$as_me: failed program was:" >&5
  7690. sed 's/^/| /' conftest.$ac_ext >&5
  7691. eval "$as_ac_var=no"
  7692. fi
  7693. rm -f conftest.err conftest.$ac_objext \
  7694. conftest$ac_exeext conftest.$ac_ext
  7695. fi
  7696. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7697. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7698. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7699. cat >>confdefs.h <<_ACEOF
  7700. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7701. _ACEOF
  7702. fi
  7703. done
  7704. am_save_CPPFLAGS="$CPPFLAGS"
  7705. for element in $INCICONV; do
  7706. haveit=
  7707. for x in $CPPFLAGS; do
  7708. acl_save_prefix="$prefix"
  7709. prefix="$acl_final_prefix"
  7710. acl_save_exec_prefix="$exec_prefix"
  7711. exec_prefix="$acl_final_exec_prefix"
  7712. eval x=\"$x\"
  7713. exec_prefix="$acl_save_exec_prefix"
  7714. prefix="$acl_save_prefix"
  7715. if test "X$x" = "X$element"; then
  7716. haveit=yes
  7717. break
  7718. fi
  7719. done
  7720. if test -z "$haveit"; then
  7721. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7722. fi
  7723. done
  7724. echo "$as_me:$LINENO: checking for iconv" >&5
  7725. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7726. if test "${am_cv_func_iconv+set}" = set; then
  7727. echo $ECHO_N "(cached) $ECHO_C" >&6
  7728. else
  7729. am_cv_func_iconv="no, consider installing GNU libiconv"
  7730. am_cv_lib_iconv=no
  7731. cat >conftest.$ac_ext <<_ACEOF
  7732. /* confdefs.h. */
  7733. _ACEOF
  7734. cat confdefs.h >>conftest.$ac_ext
  7735. cat >>conftest.$ac_ext <<_ACEOF
  7736. /* end confdefs.h. */
  7737. #include <stdlib.h>
  7738. #include <iconv.h>
  7739. int
  7740. main ()
  7741. {
  7742. iconv_t cd = iconv_open("","");
  7743. iconv(cd,NULL,NULL,NULL,NULL);
  7744. iconv_close(cd);
  7745. ;
  7746. return 0;
  7747. }
  7748. _ACEOF
  7749. rm -f conftest.$ac_objext conftest$ac_exeext
  7750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7751. (eval $ac_link) 2>conftest.er1
  7752. ac_status=$?
  7753. grep -v '^ *+' conftest.er1 >conftest.err
  7754. rm -f conftest.er1
  7755. cat conftest.err >&5
  7756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. (exit $ac_status); } &&
  7758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7760. (eval $ac_try) 2>&5
  7761. ac_status=$?
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. (exit $ac_status); }; } &&
  7764. { ac_try='test -s conftest$ac_exeext'
  7765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7766. (eval $ac_try) 2>&5
  7767. ac_status=$?
  7768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7769. (exit $ac_status); }; }; then
  7770. am_cv_func_iconv=yes
  7771. else
  7772. echo "$as_me: failed program was:" >&5
  7773. sed 's/^/| /' conftest.$ac_ext >&5
  7774. fi
  7775. rm -f conftest.err conftest.$ac_objext \
  7776. conftest$ac_exeext conftest.$ac_ext
  7777. if test "$am_cv_func_iconv" != yes; then
  7778. am_save_LIBS="$LIBS"
  7779. LIBS="$LIBS $LIBICONV"
  7780. cat >conftest.$ac_ext <<_ACEOF
  7781. /* confdefs.h. */
  7782. _ACEOF
  7783. cat confdefs.h >>conftest.$ac_ext
  7784. cat >>conftest.$ac_ext <<_ACEOF
  7785. /* end confdefs.h. */
  7786. #include <stdlib.h>
  7787. #include <iconv.h>
  7788. int
  7789. main ()
  7790. {
  7791. iconv_t cd = iconv_open("","");
  7792. iconv(cd,NULL,NULL,NULL,NULL);
  7793. iconv_close(cd);
  7794. ;
  7795. return 0;
  7796. }
  7797. _ACEOF
  7798. rm -f conftest.$ac_objext conftest$ac_exeext
  7799. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7800. (eval $ac_link) 2>conftest.er1
  7801. ac_status=$?
  7802. grep -v '^ *+' conftest.er1 >conftest.err
  7803. rm -f conftest.er1
  7804. cat conftest.err >&5
  7805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7806. (exit $ac_status); } &&
  7807. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7809. (eval $ac_try) 2>&5
  7810. ac_status=$?
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); }; } &&
  7813. { ac_try='test -s conftest$ac_exeext'
  7814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7815. (eval $ac_try) 2>&5
  7816. ac_status=$?
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); }; }; then
  7819. am_cv_lib_iconv=yes
  7820. am_cv_func_iconv=yes
  7821. else
  7822. echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. fi
  7825. rm -f conftest.err conftest.$ac_objext \
  7826. conftest$ac_exeext conftest.$ac_ext
  7827. LIBS="$am_save_LIBS"
  7828. fi
  7829. fi
  7830. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7831. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7832. if test "$am_cv_func_iconv" = yes; then
  7833. cat >>confdefs.h <<\_ACEOF
  7834. #define HAVE_ICONV 1
  7835. _ACEOF
  7836. fi
  7837. if test "$am_cv_lib_iconv" = yes; then
  7838. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7839. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7840. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7841. echo "${ECHO_T}$LIBICONV" >&6
  7842. else
  7843. CPPFLAGS="$am_save_CPPFLAGS"
  7844. LIBICONV=
  7845. LTLIBICONV=
  7846. fi
  7847. if test "$am_cv_func_iconv" = yes; then
  7848. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7849. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7850. if test "${am_cv_proto_iconv+set}" = set; then
  7851. echo $ECHO_N "(cached) $ECHO_C" >&6
  7852. else
  7853. cat >conftest.$ac_ext <<_ACEOF
  7854. /* confdefs.h. */
  7855. _ACEOF
  7856. cat confdefs.h >>conftest.$ac_ext
  7857. cat >>conftest.$ac_ext <<_ACEOF
  7858. /* end confdefs.h. */
  7859. #include <stdlib.h>
  7860. #include <iconv.h>
  7861. extern
  7862. #ifdef __cplusplus
  7863. "C"
  7864. #endif
  7865. #if defined(__STDC__) || defined(__cplusplus)
  7866. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7867. #else
  7868. size_t iconv();
  7869. #endif
  7870. int
  7871. main ()
  7872. {
  7873. ;
  7874. return 0;
  7875. }
  7876. _ACEOF
  7877. rm -f conftest.$ac_objext
  7878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7879. (eval $ac_compile) 2>conftest.er1
  7880. ac_status=$?
  7881. grep -v '^ *+' conftest.er1 >conftest.err
  7882. rm -f conftest.er1
  7883. cat conftest.err >&5
  7884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); } &&
  7886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7888. (eval $ac_try) 2>&5
  7889. ac_status=$?
  7890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7891. (exit $ac_status); }; } &&
  7892. { ac_try='test -s conftest.$ac_objext'
  7893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7894. (eval $ac_try) 2>&5
  7895. ac_status=$?
  7896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7897. (exit $ac_status); }; }; then
  7898. am_cv_proto_iconv_arg1=""
  7899. else
  7900. echo "$as_me: failed program was:" >&5
  7901. sed 's/^/| /' conftest.$ac_ext >&5
  7902. am_cv_proto_iconv_arg1="const"
  7903. fi
  7904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7905. 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);"
  7906. fi
  7907. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7908. echo "$as_me:$LINENO: result: ${ac_t:-
  7909. }$am_cv_proto_iconv" >&5
  7910. echo "${ECHO_T}${ac_t:-
  7911. }$am_cv_proto_iconv" >&6
  7912. cat >>confdefs.h <<_ACEOF
  7913. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7914. _ACEOF
  7915. fi
  7916. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7917. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7918. if test "${am_cv_langinfo_codeset+set}" = set; then
  7919. echo $ECHO_N "(cached) $ECHO_C" >&6
  7920. else
  7921. cat >conftest.$ac_ext <<_ACEOF
  7922. /* confdefs.h. */
  7923. _ACEOF
  7924. cat confdefs.h >>conftest.$ac_ext
  7925. cat >>conftest.$ac_ext <<_ACEOF
  7926. /* end confdefs.h. */
  7927. #include <langinfo.h>
  7928. int
  7929. main ()
  7930. {
  7931. char* cs = nl_langinfo(CODESET);
  7932. ;
  7933. return 0;
  7934. }
  7935. _ACEOF
  7936. rm -f conftest.$ac_objext conftest$ac_exeext
  7937. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7938. (eval $ac_link) 2>conftest.er1
  7939. ac_status=$?
  7940. grep -v '^ *+' conftest.er1 >conftest.err
  7941. rm -f conftest.er1
  7942. cat conftest.err >&5
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. (exit $ac_status); } &&
  7945. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7947. (eval $ac_try) 2>&5
  7948. ac_status=$?
  7949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950. (exit $ac_status); }; } &&
  7951. { ac_try='test -s conftest$ac_exeext'
  7952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7953. (eval $ac_try) 2>&5
  7954. ac_status=$?
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. (exit $ac_status); }; }; then
  7957. am_cv_langinfo_codeset=yes
  7958. else
  7959. echo "$as_me: failed program was:" >&5
  7960. sed 's/^/| /' conftest.$ac_ext >&5
  7961. am_cv_langinfo_codeset=no
  7962. fi
  7963. rm -f conftest.err conftest.$ac_objext \
  7964. conftest$ac_exeext conftest.$ac_ext
  7965. fi
  7966. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7967. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7968. if test $am_cv_langinfo_codeset = yes; then
  7969. cat >>confdefs.h <<\_ACEOF
  7970. #define HAVE_LANGINFO_CODESET 1
  7971. _ACEOF
  7972. fi
  7973. if test $ac_cv_header_locale_h = yes; then
  7974. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7975. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7976. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7977. echo $ECHO_N "(cached) $ECHO_C" >&6
  7978. else
  7979. cat >conftest.$ac_ext <<_ACEOF
  7980. /* confdefs.h. */
  7981. _ACEOF
  7982. cat confdefs.h >>conftest.$ac_ext
  7983. cat >>conftest.$ac_ext <<_ACEOF
  7984. /* end confdefs.h. */
  7985. #include <locale.h>
  7986. int
  7987. main ()
  7988. {
  7989. return LC_MESSAGES
  7990. ;
  7991. return 0;
  7992. }
  7993. _ACEOF
  7994. rm -f conftest.$ac_objext conftest$ac_exeext
  7995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7996. (eval $ac_link) 2>conftest.er1
  7997. ac_status=$?
  7998. grep -v '^ *+' conftest.er1 >conftest.err
  7999. rm -f conftest.er1
  8000. cat conftest.err >&5
  8001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8002. (exit $ac_status); } &&
  8003. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8005. (eval $ac_try) 2>&5
  8006. ac_status=$?
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. (exit $ac_status); }; } &&
  8009. { ac_try='test -s conftest$ac_exeext'
  8010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8011. (eval $ac_try) 2>&5
  8012. ac_status=$?
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); }; }; then
  8015. am_cv_val_LC_MESSAGES=yes
  8016. else
  8017. echo "$as_me: failed program was:" >&5
  8018. sed 's/^/| /' conftest.$ac_ext >&5
  8019. am_cv_val_LC_MESSAGES=no
  8020. fi
  8021. rm -f conftest.err conftest.$ac_objext \
  8022. conftest$ac_exeext conftest.$ac_ext
  8023. fi
  8024. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8025. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8026. if test $am_cv_val_LC_MESSAGES = yes; then
  8027. cat >>confdefs.h <<\_ACEOF
  8028. #define HAVE_LC_MESSAGES 1
  8029. _ACEOF
  8030. fi
  8031. fi
  8032. for ac_prog in bison
  8033. do
  8034. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8035. set dummy $ac_prog; ac_word=$2
  8036. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8038. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8039. echo $ECHO_N "(cached) $ECHO_C" >&6
  8040. else
  8041. if test -n "$INTLBISON"; then
  8042. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8043. else
  8044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8045. for as_dir in $PATH
  8046. do
  8047. IFS=$as_save_IFS
  8048. test -z "$as_dir" && as_dir=.
  8049. for ac_exec_ext in '' $ac_executable_extensions; do
  8050. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8051. ac_cv_prog_INTLBISON="$ac_prog"
  8052. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8053. break 2
  8054. fi
  8055. done
  8056. done
  8057. fi
  8058. fi
  8059. INTLBISON=$ac_cv_prog_INTLBISON
  8060. if test -n "$INTLBISON"; then
  8061. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8062. echo "${ECHO_T}$INTLBISON" >&6
  8063. else
  8064. echo "$as_me:$LINENO: result: no" >&5
  8065. echo "${ECHO_T}no" >&6
  8066. fi
  8067. test -n "$INTLBISON" && break
  8068. done
  8069. if test -z "$INTLBISON"; then
  8070. ac_verc_fail=yes
  8071. else
  8072. echo "$as_me:$LINENO: checking version of bison" >&5
  8073. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8074. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8075. case $ac_prog_version in
  8076. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8077. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8078. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8079. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8080. esac
  8081. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8082. echo "${ECHO_T}$ac_prog_version" >&6
  8083. fi
  8084. if test $ac_verc_fail = yes; then
  8085. INTLBISON=:
  8086. fi
  8087. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8088. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8089. # Check whether --enable-nls or --disable-nls was given.
  8090. if test "${enable_nls+set}" = set; then
  8091. enableval="$enable_nls"
  8092. USE_NLS=$enableval
  8093. else
  8094. USE_NLS=yes
  8095. fi;
  8096. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8097. echo "${ECHO_T}$USE_NLS" >&6
  8098. BUILD_INCLUDED_LIBINTL=no
  8099. USE_INCLUDED_LIBINTL=no
  8100. LIBINTL=
  8101. LTLIBINTL=
  8102. POSUB=
  8103. if test "$USE_NLS" = "yes"; then
  8104. gt_use_preinstalled_gnugettext=no
  8105. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8106. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8107. # Check whether --with-included-gettext or --without-included-gettext was given.
  8108. if test "${with_included_gettext+set}" = set; then
  8109. withval="$with_included_gettext"
  8110. nls_cv_force_use_gnu_gettext=$withval
  8111. else
  8112. nls_cv_force_use_gnu_gettext=no
  8113. fi;
  8114. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8115. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8116. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8117. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8118. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8119. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8120. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8121. echo $ECHO_N "(cached) $ECHO_C" >&6
  8122. else
  8123. cat >conftest.$ac_ext <<_ACEOF
  8124. /* confdefs.h. */
  8125. _ACEOF
  8126. cat confdefs.h >>conftest.$ac_ext
  8127. cat >>conftest.$ac_ext <<_ACEOF
  8128. /* end confdefs.h. */
  8129. #include <libintl.h>
  8130. extern int _nl_msg_cat_cntr;
  8131. extern int *_nl_domain_bindings;
  8132. int
  8133. main ()
  8134. {
  8135. bindtextdomain ("", "");
  8136. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8137. ;
  8138. return 0;
  8139. }
  8140. _ACEOF
  8141. rm -f conftest.$ac_objext conftest$ac_exeext
  8142. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8143. (eval $ac_link) 2>conftest.er1
  8144. ac_status=$?
  8145. grep -v '^ *+' conftest.er1 >conftest.err
  8146. rm -f conftest.er1
  8147. cat conftest.err >&5
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); } &&
  8150. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8152. (eval $ac_try) 2>&5
  8153. ac_status=$?
  8154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8155. (exit $ac_status); }; } &&
  8156. { ac_try='test -s conftest$ac_exeext'
  8157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8158. (eval $ac_try) 2>&5
  8159. ac_status=$?
  8160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8161. (exit $ac_status); }; }; then
  8162. gt_cv_func_gnugettext1_libc=yes
  8163. else
  8164. echo "$as_me: failed program was:" >&5
  8165. sed 's/^/| /' conftest.$ac_ext >&5
  8166. gt_cv_func_gnugettext1_libc=no
  8167. fi
  8168. rm -f conftest.err conftest.$ac_objext \
  8169. conftest$ac_exeext conftest.$ac_ext
  8170. fi
  8171. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8172. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8173. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8174. use_additional=yes
  8175. acl_save_prefix="$prefix"
  8176. prefix="$acl_final_prefix"
  8177. acl_save_exec_prefix="$exec_prefix"
  8178. exec_prefix="$acl_final_exec_prefix"
  8179. eval additional_includedir=\"$includedir\"
  8180. eval additional_libdir=\"$libdir\"
  8181. exec_prefix="$acl_save_exec_prefix"
  8182. prefix="$acl_save_prefix"
  8183. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8184. if test "${with_libintl_prefix+set}" = set; then
  8185. withval="$with_libintl_prefix"
  8186. if test "X$withval" = "Xno"; then
  8187. use_additional=no
  8188. else
  8189. if test "X$withval" = "X"; then
  8190. acl_save_prefix="$prefix"
  8191. prefix="$acl_final_prefix"
  8192. acl_save_exec_prefix="$exec_prefix"
  8193. exec_prefix="$acl_final_exec_prefix"
  8194. eval additional_includedir=\"$includedir\"
  8195. eval additional_libdir=\"$libdir\"
  8196. exec_prefix="$acl_save_exec_prefix"
  8197. prefix="$acl_save_prefix"
  8198. else
  8199. additional_includedir="$withval/include"
  8200. additional_libdir="$withval/lib"
  8201. fi
  8202. fi
  8203. fi;
  8204. LIBINTL=
  8205. LTLIBINTL=
  8206. INCINTL=
  8207. rpathdirs=
  8208. ltrpathdirs=
  8209. names_already_handled=
  8210. names_next_round='intl '
  8211. while test -n "$names_next_round"; do
  8212. names_this_round="$names_next_round"
  8213. names_next_round=
  8214. for name in $names_this_round; do
  8215. already_handled=
  8216. for n in $names_already_handled; do
  8217. if test "$n" = "$name"; then
  8218. already_handled=yes
  8219. break
  8220. fi
  8221. done
  8222. if test -z "$already_handled"; then
  8223. names_already_handled="$names_already_handled $name"
  8224. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8225. eval value=\"\$HAVE_LIB$uppername\"
  8226. if test -n "$value"; then
  8227. if test "$value" = yes; then
  8228. eval value=\"\$LIB$uppername\"
  8229. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8230. eval value=\"\$LTLIB$uppername\"
  8231. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8232. else
  8233. :
  8234. fi
  8235. else
  8236. found_dir=
  8237. found_la=
  8238. found_so=
  8239. found_a=
  8240. if test $use_additional = yes; then
  8241. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8242. found_dir="$additional_libdir"
  8243. found_so="$additional_libdir/lib$name.$shlibext"
  8244. if test -f "$additional_libdir/lib$name.la"; then
  8245. found_la="$additional_libdir/lib$name.la"
  8246. fi
  8247. else
  8248. if test -f "$additional_libdir/lib$name.$libext"; then
  8249. found_dir="$additional_libdir"
  8250. found_a="$additional_libdir/lib$name.$libext"
  8251. if test -f "$additional_libdir/lib$name.la"; then
  8252. found_la="$additional_libdir/lib$name.la"
  8253. fi
  8254. fi
  8255. fi
  8256. fi
  8257. if test "X$found_dir" = "X"; then
  8258. for x in $LDFLAGS $LTLIBINTL; do
  8259. acl_save_prefix="$prefix"
  8260. prefix="$acl_final_prefix"
  8261. acl_save_exec_prefix="$exec_prefix"
  8262. exec_prefix="$acl_final_exec_prefix"
  8263. eval x=\"$x\"
  8264. exec_prefix="$acl_save_exec_prefix"
  8265. prefix="$acl_save_prefix"
  8266. case "$x" in
  8267. -L*)
  8268. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8269. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8270. found_dir="$dir"
  8271. found_so="$dir/lib$name.$shlibext"
  8272. if test -f "$dir/lib$name.la"; then
  8273. found_la="$dir/lib$name.la"
  8274. fi
  8275. else
  8276. if test -f "$dir/lib$name.$libext"; then
  8277. found_dir="$dir"
  8278. found_a="$dir/lib$name.$libext"
  8279. if test -f "$dir/lib$name.la"; then
  8280. found_la="$dir/lib$name.la"
  8281. fi
  8282. fi
  8283. fi
  8284. ;;
  8285. esac
  8286. if test "X$found_dir" != "X"; then
  8287. break
  8288. fi
  8289. done
  8290. fi
  8291. if test "X$found_dir" != "X"; then
  8292. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8293. if test "X$found_so" != "X"; then
  8294. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8295. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8296. else
  8297. haveit=
  8298. for x in $ltrpathdirs; do
  8299. if test "X$x" = "X$found_dir"; then
  8300. haveit=yes
  8301. break
  8302. fi
  8303. done
  8304. if test -z "$haveit"; then
  8305. ltrpathdirs="$ltrpathdirs $found_dir"
  8306. fi
  8307. if test "$hardcode_direct" = yes; then
  8308. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8309. else
  8310. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8311. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8312. haveit=
  8313. for x in $rpathdirs; do
  8314. if test "X$x" = "X$found_dir"; then
  8315. haveit=yes
  8316. break
  8317. fi
  8318. done
  8319. if test -z "$haveit"; then
  8320. rpathdirs="$rpathdirs $found_dir"
  8321. fi
  8322. else
  8323. haveit=
  8324. for x in $LDFLAGS $LIBINTL; do
  8325. acl_save_prefix="$prefix"
  8326. prefix="$acl_final_prefix"
  8327. acl_save_exec_prefix="$exec_prefix"
  8328. exec_prefix="$acl_final_exec_prefix"
  8329. eval x=\"$x\"
  8330. exec_prefix="$acl_save_exec_prefix"
  8331. prefix="$acl_save_prefix"
  8332. if test "X$x" = "X-L$found_dir"; then
  8333. haveit=yes
  8334. break
  8335. fi
  8336. done
  8337. if test -z "$haveit"; then
  8338. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8339. fi
  8340. if test "$hardcode_minus_L" != no; then
  8341. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8342. else
  8343. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8344. fi
  8345. fi
  8346. fi
  8347. fi
  8348. else
  8349. if test "X$found_a" != "X"; then
  8350. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8351. else
  8352. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8353. fi
  8354. fi
  8355. additional_includedir=
  8356. case "$found_dir" in
  8357. */lib | */lib/)
  8358. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8359. additional_includedir="$basedir/include"
  8360. ;;
  8361. esac
  8362. if test "X$additional_includedir" != "X"; then
  8363. if test "X$additional_includedir" != "X/usr/include"; then
  8364. haveit=
  8365. if test "X$additional_includedir" = "X/usr/local/include"; then
  8366. if test -n "$GCC"; then
  8367. case $host_os in
  8368. linux*) haveit=yes;;
  8369. esac
  8370. fi
  8371. fi
  8372. if test -z "$haveit"; then
  8373. for x in $CPPFLAGS $INCINTL; do
  8374. acl_save_prefix="$prefix"
  8375. prefix="$acl_final_prefix"
  8376. acl_save_exec_prefix="$exec_prefix"
  8377. exec_prefix="$acl_final_exec_prefix"
  8378. eval x=\"$x\"
  8379. exec_prefix="$acl_save_exec_prefix"
  8380. prefix="$acl_save_prefix"
  8381. if test "X$x" = "X-I$additional_includedir"; then
  8382. haveit=yes
  8383. break
  8384. fi
  8385. done
  8386. if test -z "$haveit"; then
  8387. if test -d "$additional_includedir"; then
  8388. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8389. fi
  8390. fi
  8391. fi
  8392. fi
  8393. fi
  8394. if test -n "$found_la"; then
  8395. save_libdir="$libdir"
  8396. case "$found_la" in
  8397. */* | *\\*) . "$found_la" ;;
  8398. *) . "./$found_la" ;;
  8399. esac
  8400. libdir="$save_libdir"
  8401. for dep in $dependency_libs; do
  8402. case "$dep" in
  8403. -L*)
  8404. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8405. if test "X$additional_libdir" != "X/usr/lib"; then
  8406. haveit=
  8407. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8408. if test -n "$GCC"; then
  8409. case $host_os in
  8410. linux*) haveit=yes;;
  8411. esac
  8412. fi
  8413. fi
  8414. if test -z "$haveit"; then
  8415. haveit=
  8416. for x in $LDFLAGS $LIBINTL; do
  8417. acl_save_prefix="$prefix"
  8418. prefix="$acl_final_prefix"
  8419. acl_save_exec_prefix="$exec_prefix"
  8420. exec_prefix="$acl_final_exec_prefix"
  8421. eval x=\"$x\"
  8422. exec_prefix="$acl_save_exec_prefix"
  8423. prefix="$acl_save_prefix"
  8424. if test "X$x" = "X-L$additional_libdir"; then
  8425. haveit=yes
  8426. break
  8427. fi
  8428. done
  8429. if test -z "$haveit"; then
  8430. if test -d "$additional_libdir"; then
  8431. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8432. fi
  8433. fi
  8434. haveit=
  8435. for x in $LDFLAGS $LTLIBINTL; do
  8436. acl_save_prefix="$prefix"
  8437. prefix="$acl_final_prefix"
  8438. acl_save_exec_prefix="$exec_prefix"
  8439. exec_prefix="$acl_final_exec_prefix"
  8440. eval x=\"$x\"
  8441. exec_prefix="$acl_save_exec_prefix"
  8442. prefix="$acl_save_prefix"
  8443. if test "X$x" = "X-L$additional_libdir"; then
  8444. haveit=yes
  8445. break
  8446. fi
  8447. done
  8448. if test -z "$haveit"; then
  8449. if test -d "$additional_libdir"; then
  8450. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8451. fi
  8452. fi
  8453. fi
  8454. fi
  8455. ;;
  8456. -R*)
  8457. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8458. if test "$enable_rpath" != no; then
  8459. haveit=
  8460. for x in $rpathdirs; do
  8461. if test "X$x" = "X$dir"; then
  8462. haveit=yes
  8463. break
  8464. fi
  8465. done
  8466. if test -z "$haveit"; then
  8467. rpathdirs="$rpathdirs $dir"
  8468. fi
  8469. haveit=
  8470. for x in $ltrpathdirs; do
  8471. if test "X$x" = "X$dir"; then
  8472. haveit=yes
  8473. break
  8474. fi
  8475. done
  8476. if test -z "$haveit"; then
  8477. ltrpathdirs="$ltrpathdirs $dir"
  8478. fi
  8479. fi
  8480. ;;
  8481. -l*)
  8482. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8483. ;;
  8484. *.la)
  8485. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8486. ;;
  8487. *)
  8488. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8489. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8490. ;;
  8491. esac
  8492. done
  8493. fi
  8494. else
  8495. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8496. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8497. fi
  8498. fi
  8499. fi
  8500. done
  8501. done
  8502. if test "X$rpathdirs" != "X"; then
  8503. if test -n "$hardcode_libdir_separator"; then
  8504. alldirs=
  8505. for found_dir in $rpathdirs; do
  8506. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8507. done
  8508. acl_save_libdir="$libdir"
  8509. libdir="$alldirs"
  8510. eval flag=\"$hardcode_libdir_flag_spec\"
  8511. libdir="$acl_save_libdir"
  8512. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8513. else
  8514. for found_dir in $rpathdirs; do
  8515. acl_save_libdir="$libdir"
  8516. libdir="$found_dir"
  8517. eval flag=\"$hardcode_libdir_flag_spec\"
  8518. libdir="$acl_save_libdir"
  8519. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8520. done
  8521. fi
  8522. fi
  8523. if test "X$ltrpathdirs" != "X"; then
  8524. for found_dir in $ltrpathdirs; do
  8525. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8526. done
  8527. fi
  8528. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8529. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8530. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8531. echo $ECHO_N "(cached) $ECHO_C" >&6
  8532. else
  8533. gt_save_CPPFLAGS="$CPPFLAGS"
  8534. CPPFLAGS="$CPPFLAGS $INCINTL"
  8535. gt_save_LIBS="$LIBS"
  8536. LIBS="$LIBS $LIBINTL"
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. #include <libintl.h>
  8544. extern int _nl_msg_cat_cntr;
  8545. extern
  8546. #ifdef __cplusplus
  8547. "C"
  8548. #endif
  8549. const char *_nl_expand_alias ();
  8550. int
  8551. main ()
  8552. {
  8553. bindtextdomain ("", "");
  8554. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8555. ;
  8556. return 0;
  8557. }
  8558. _ACEOF
  8559. rm -f conftest.$ac_objext conftest$ac_exeext
  8560. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8561. (eval $ac_link) 2>conftest.er1
  8562. ac_status=$?
  8563. grep -v '^ *+' conftest.er1 >conftest.err
  8564. rm -f conftest.er1
  8565. cat conftest.err >&5
  8566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8567. (exit $ac_status); } &&
  8568. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8570. (eval $ac_try) 2>&5
  8571. ac_status=$?
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); }; } &&
  8574. { ac_try='test -s conftest$ac_exeext'
  8575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8576. (eval $ac_try) 2>&5
  8577. ac_status=$?
  8578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8579. (exit $ac_status); }; }; then
  8580. gt_cv_func_gnugettext1_libintl=yes
  8581. else
  8582. echo "$as_me: failed program was:" >&5
  8583. sed 's/^/| /' conftest.$ac_ext >&5
  8584. gt_cv_func_gnugettext1_libintl=no
  8585. fi
  8586. rm -f conftest.err conftest.$ac_objext \
  8587. conftest$ac_exeext conftest.$ac_ext
  8588. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8589. LIBS="$LIBS $LIBICONV"
  8590. cat >conftest.$ac_ext <<_ACEOF
  8591. /* confdefs.h. */
  8592. _ACEOF
  8593. cat confdefs.h >>conftest.$ac_ext
  8594. cat >>conftest.$ac_ext <<_ACEOF
  8595. /* end confdefs.h. */
  8596. #include <libintl.h>
  8597. extern int _nl_msg_cat_cntr;
  8598. extern
  8599. #ifdef __cplusplus
  8600. "C"
  8601. #endif
  8602. const char *_nl_expand_alias ();
  8603. int
  8604. main ()
  8605. {
  8606. bindtextdomain ("", "");
  8607. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8608. ;
  8609. return 0;
  8610. }
  8611. _ACEOF
  8612. rm -f conftest.$ac_objext conftest$ac_exeext
  8613. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8614. (eval $ac_link) 2>conftest.er1
  8615. ac_status=$?
  8616. grep -v '^ *+' conftest.er1 >conftest.err
  8617. rm -f conftest.er1
  8618. cat conftest.err >&5
  8619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8620. (exit $ac_status); } &&
  8621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8623. (eval $ac_try) 2>&5
  8624. ac_status=$?
  8625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8626. (exit $ac_status); }; } &&
  8627. { ac_try='test -s conftest$ac_exeext'
  8628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8629. (eval $ac_try) 2>&5
  8630. ac_status=$?
  8631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8632. (exit $ac_status); }; }; then
  8633. LIBINTL="$LIBINTL $LIBICONV"
  8634. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8635. gt_cv_func_gnugettext1_libintl=yes
  8636. else
  8637. echo "$as_me: failed program was:" >&5
  8638. sed 's/^/| /' conftest.$ac_ext >&5
  8639. fi
  8640. rm -f conftest.err conftest.$ac_objext \
  8641. conftest$ac_exeext conftest.$ac_ext
  8642. fi
  8643. CPPFLAGS="$gt_save_CPPFLAGS"
  8644. LIBS="$gt_save_LIBS"
  8645. fi
  8646. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8647. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8648. fi
  8649. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8650. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8651. && test "$PACKAGE" != gettext-runtime \
  8652. && test "$PACKAGE" != gettext-tools; }; then
  8653. gt_use_preinstalled_gnugettext=yes
  8654. else
  8655. LIBINTL=
  8656. LTLIBINTL=
  8657. INCINTL=
  8658. fi
  8659. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8660. nls_cv_use_gnu_gettext=yes
  8661. fi
  8662. fi
  8663. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8664. BUILD_INCLUDED_LIBINTL=yes
  8665. USE_INCLUDED_LIBINTL=yes
  8666. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8667. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8668. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8669. fi
  8670. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8671. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8672. CATOBJEXT=.gmo
  8673. fi
  8674. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8675. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8676. cat >>confdefs.h <<\_ACEOF
  8677. #define ENABLE_NLS 1
  8678. _ACEOF
  8679. else
  8680. USE_NLS=no
  8681. fi
  8682. fi
  8683. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8684. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8685. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8686. echo "${ECHO_T}$USE_NLS" >&6
  8687. if test "$USE_NLS" = "yes"; then
  8688. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8689. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8690. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8691. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8692. gt_source="external libintl"
  8693. else
  8694. gt_source="libc"
  8695. fi
  8696. else
  8697. gt_source="included intl directory"
  8698. fi
  8699. echo "$as_me:$LINENO: result: $gt_source" >&5
  8700. echo "${ECHO_T}$gt_source" >&6
  8701. fi
  8702. if test "$USE_NLS" = "yes"; then
  8703. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8704. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8705. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8706. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8707. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8708. echo "${ECHO_T}$LIBINTL" >&6
  8709. for element in $INCINTL; do
  8710. haveit=
  8711. for x in $CPPFLAGS; do
  8712. acl_save_prefix="$prefix"
  8713. prefix="$acl_final_prefix"
  8714. acl_save_exec_prefix="$exec_prefix"
  8715. exec_prefix="$acl_final_exec_prefix"
  8716. eval x=\"$x\"
  8717. exec_prefix="$acl_save_exec_prefix"
  8718. prefix="$acl_save_prefix"
  8719. if test "X$x" = "X$element"; then
  8720. haveit=yes
  8721. break
  8722. fi
  8723. done
  8724. if test -z "$haveit"; then
  8725. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8726. fi
  8727. done
  8728. fi
  8729. cat >>confdefs.h <<\_ACEOF
  8730. #define HAVE_GETTEXT 1
  8731. _ACEOF
  8732. cat >>confdefs.h <<\_ACEOF
  8733. #define HAVE_DCGETTEXT 1
  8734. _ACEOF
  8735. fi
  8736. POSUB=po
  8737. fi
  8738. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8739. BUILD_INCLUDED_LIBINTL=yes
  8740. fi
  8741. nls_cv_header_intl=
  8742. nls_cv_header_libgt=
  8743. DATADIRNAME=share
  8744. INSTOBJEXT=.mo
  8745. GENCAT=gencat
  8746. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8747. INTLOBJS="\$(GETTOBJS)"
  8748. fi
  8749. INTL_LIBTOOL_SUFFIX_PREFIX=
  8750. INTLLIBS="$LIBINTL"
  8751. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8752. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8753. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8754. echo $ECHO_N "(cached) $ECHO_C" >&6
  8755. else
  8756. cat >conftest.$ac_ext <<_ACEOF
  8757. /* confdefs.h. */
  8758. _ACEOF
  8759. cat confdefs.h >>conftest.$ac_ext
  8760. cat >>conftest.$ac_ext <<_ACEOF
  8761. /* end confdefs.h. */
  8762. $ac_includes_default
  8763. int
  8764. main ()
  8765. {
  8766. error_at_line (0, 0, "", 0, "");
  8767. ;
  8768. return 0;
  8769. }
  8770. _ACEOF
  8771. rm -f conftest.$ac_objext conftest$ac_exeext
  8772. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8773. (eval $ac_link) 2>conftest.er1
  8774. ac_status=$?
  8775. grep -v '^ *+' conftest.er1 >conftest.err
  8776. rm -f conftest.er1
  8777. cat conftest.err >&5
  8778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8779. (exit $ac_status); } &&
  8780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8782. (eval $ac_try) 2>&5
  8783. ac_status=$?
  8784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8785. (exit $ac_status); }; } &&
  8786. { ac_try='test -s conftest$ac_exeext'
  8787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8788. (eval $ac_try) 2>&5
  8789. ac_status=$?
  8790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8791. (exit $ac_status); }; }; then
  8792. ac_cv_lib_error_at_line=yes
  8793. else
  8794. echo "$as_me: failed program was:" >&5
  8795. sed 's/^/| /' conftest.$ac_ext >&5
  8796. ac_cv_lib_error_at_line=no
  8797. fi
  8798. rm -f conftest.err conftest.$ac_objext \
  8799. conftest$ac_exeext conftest.$ac_ext
  8800. fi
  8801. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  8802. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  8803. if test $ac_cv_lib_error_at_line = no; then
  8804. case $LIBOBJS in
  8805. "error.$ac_objext" | \
  8806. *" error.$ac_objext" | \
  8807. "error.$ac_objext "* | \
  8808. *" error.$ac_objext "* ) ;;
  8809. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  8810. esac
  8811. fi
  8812. for ac_header in stdlib.h
  8813. do
  8814. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8815. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8816. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8818. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8819. echo $ECHO_N "(cached) $ECHO_C" >&6
  8820. fi
  8821. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8822. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8823. else
  8824. # Is the header compilable?
  8825. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8826. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8827. cat >conftest.$ac_ext <<_ACEOF
  8828. /* confdefs.h. */
  8829. _ACEOF
  8830. cat confdefs.h >>conftest.$ac_ext
  8831. cat >>conftest.$ac_ext <<_ACEOF
  8832. /* end confdefs.h. */
  8833. $ac_includes_default
  8834. #include <$ac_header>
  8835. _ACEOF
  8836. rm -f conftest.$ac_objext
  8837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8838. (eval $ac_compile) 2>conftest.er1
  8839. ac_status=$?
  8840. grep -v '^ *+' conftest.er1 >conftest.err
  8841. rm -f conftest.er1
  8842. cat conftest.err >&5
  8843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8844. (exit $ac_status); } &&
  8845. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8847. (eval $ac_try) 2>&5
  8848. ac_status=$?
  8849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850. (exit $ac_status); }; } &&
  8851. { ac_try='test -s conftest.$ac_objext'
  8852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8853. (eval $ac_try) 2>&5
  8854. ac_status=$?
  8855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8856. (exit $ac_status); }; }; then
  8857. ac_header_compiler=yes
  8858. else
  8859. echo "$as_me: failed program was:" >&5
  8860. sed 's/^/| /' conftest.$ac_ext >&5
  8861. ac_header_compiler=no
  8862. fi
  8863. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8864. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8865. echo "${ECHO_T}$ac_header_compiler" >&6
  8866. # Is the header present?
  8867. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8868. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8869. cat >conftest.$ac_ext <<_ACEOF
  8870. /* confdefs.h. */
  8871. _ACEOF
  8872. cat confdefs.h >>conftest.$ac_ext
  8873. cat >>conftest.$ac_ext <<_ACEOF
  8874. /* end confdefs.h. */
  8875. #include <$ac_header>
  8876. _ACEOF
  8877. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8878. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } >/dev/null; then
  8885. if test -s conftest.err; then
  8886. ac_cpp_err=$ac_c_preproc_warn_flag
  8887. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8888. else
  8889. ac_cpp_err=
  8890. fi
  8891. else
  8892. ac_cpp_err=yes
  8893. fi
  8894. if test -z "$ac_cpp_err"; then
  8895. ac_header_preproc=yes
  8896. else
  8897. echo "$as_me: failed program was:" >&5
  8898. sed 's/^/| /' conftest.$ac_ext >&5
  8899. ac_header_preproc=no
  8900. fi
  8901. rm -f conftest.err conftest.$ac_ext
  8902. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8903. echo "${ECHO_T}$ac_header_preproc" >&6
  8904. # So? What about this header?
  8905. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8906. yes:no: )
  8907. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8908. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8909. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8910. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8911. ac_header_preproc=yes
  8912. ;;
  8913. no:yes:* )
  8914. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8915. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8916. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8917. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8918. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8919. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8920. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8921. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8922. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8923. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8924. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8925. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8926. (
  8927. cat <<\_ASBOX
  8928. ## ----------------------------------- ##
  8929. ## Report this to tujikawa@rednoah.com ##
  8930. ## ----------------------------------- ##
  8931. _ASBOX
  8932. ) |
  8933. sed "s/^/$as_me: WARNING: /" >&2
  8934. ;;
  8935. esac
  8936. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8937. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8938. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8939. echo $ECHO_N "(cached) $ECHO_C" >&6
  8940. else
  8941. eval "$as_ac_Header=\$ac_header_preproc"
  8942. fi
  8943. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8944. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8945. fi
  8946. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8947. cat >>confdefs.h <<_ACEOF
  8948. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8949. _ACEOF
  8950. fi
  8951. done
  8952. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8953. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8954. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8955. echo $ECHO_N "(cached) $ECHO_C" >&6
  8956. else
  8957. if test "$cross_compiling" = yes; then
  8958. ac_cv_func_malloc_0_nonnull=no
  8959. else
  8960. cat >conftest.$ac_ext <<_ACEOF
  8961. /* confdefs.h. */
  8962. _ACEOF
  8963. cat confdefs.h >>conftest.$ac_ext
  8964. cat >>conftest.$ac_ext <<_ACEOF
  8965. /* end confdefs.h. */
  8966. #if STDC_HEADERS || HAVE_STDLIB_H
  8967. # include <stdlib.h>
  8968. #else
  8969. char *malloc ();
  8970. #endif
  8971. int
  8972. main ()
  8973. {
  8974. exit (malloc (0) ? 0 : 1);
  8975. ;
  8976. return 0;
  8977. }
  8978. _ACEOF
  8979. rm -f conftest$ac_exeext
  8980. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8981. (eval $ac_link) 2>&5
  8982. ac_status=$?
  8983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8984. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8986. (eval $ac_try) 2>&5
  8987. ac_status=$?
  8988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8989. (exit $ac_status); }; }; then
  8990. ac_cv_func_malloc_0_nonnull=yes
  8991. else
  8992. echo "$as_me: program exited with status $ac_status" >&5
  8993. echo "$as_me: failed program was:" >&5
  8994. sed 's/^/| /' conftest.$ac_ext >&5
  8995. ( exit $ac_status )
  8996. ac_cv_func_malloc_0_nonnull=no
  8997. fi
  8998. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8999. fi
  9000. fi
  9001. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9002. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9003. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9004. cat >>confdefs.h <<\_ACEOF
  9005. #define HAVE_MALLOC 1
  9006. _ACEOF
  9007. else
  9008. cat >>confdefs.h <<\_ACEOF
  9009. #define HAVE_MALLOC 0
  9010. _ACEOF
  9011. case $LIBOBJS in
  9012. "malloc.$ac_objext" | \
  9013. *" malloc.$ac_objext" | \
  9014. "malloc.$ac_objext "* | \
  9015. *" malloc.$ac_objext "* ) ;;
  9016. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9017. esac
  9018. cat >>confdefs.h <<\_ACEOF
  9019. #define malloc rpl_malloc
  9020. _ACEOF
  9021. fi
  9022. echo "$as_me:$LINENO: checking for working memcmp" >&5
  9023. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  9024. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9025. echo $ECHO_N "(cached) $ECHO_C" >&6
  9026. else
  9027. if test "$cross_compiling" = yes; then
  9028. ac_cv_func_memcmp_working=no
  9029. else
  9030. cat >conftest.$ac_ext <<_ACEOF
  9031. /* confdefs.h. */
  9032. _ACEOF
  9033. cat confdefs.h >>conftest.$ac_ext
  9034. cat >>conftest.$ac_ext <<_ACEOF
  9035. /* end confdefs.h. */
  9036. $ac_includes_default
  9037. int
  9038. main ()
  9039. {
  9040. /* Some versions of memcmp are not 8-bit clean. */
  9041. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9042. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9043. exit (1);
  9044. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9045. or more and with at least one buffer not starting on a 4-byte boundary.
  9046. William Lewis provided this test program. */
  9047. {
  9048. char foo[21];
  9049. char bar[21];
  9050. int i;
  9051. for (i = 0; i < 4; i++)
  9052. {
  9053. char *a = foo + i;
  9054. char *b = bar + i;
  9055. strcpy (a, "--------01111111");
  9056. strcpy (b, "--------10000000");
  9057. if (memcmp (a, b, 16) >= 0)
  9058. exit (1);
  9059. }
  9060. exit (0);
  9061. }
  9062. ;
  9063. return 0;
  9064. }
  9065. _ACEOF
  9066. rm -f conftest$ac_exeext
  9067. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9068. (eval $ac_link) 2>&5
  9069. ac_status=$?
  9070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9071. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9073. (eval $ac_try) 2>&5
  9074. ac_status=$?
  9075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9076. (exit $ac_status); }; }; then
  9077. ac_cv_func_memcmp_working=yes
  9078. else
  9079. echo "$as_me: program exited with status $ac_status" >&5
  9080. echo "$as_me: failed program was:" >&5
  9081. sed 's/^/| /' conftest.$ac_ext >&5
  9082. ( exit $ac_status )
  9083. ac_cv_func_memcmp_working=no
  9084. fi
  9085. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9086. fi
  9087. fi
  9088. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9089. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9090. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9091. "memcmp.$ac_objext" | \
  9092. *" memcmp.$ac_objext" | \
  9093. "memcmp.$ac_objext "* | \
  9094. *" memcmp.$ac_objext "* ) ;;
  9095. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9096. esac
  9097. for ac_header in stdlib.h unistd.h
  9098. do
  9099. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9100. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9101. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9102. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9103. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9104. echo $ECHO_N "(cached) $ECHO_C" >&6
  9105. fi
  9106. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9107. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9108. else
  9109. # Is the header compilable?
  9110. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9111. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9112. cat >conftest.$ac_ext <<_ACEOF
  9113. /* confdefs.h. */
  9114. _ACEOF
  9115. cat confdefs.h >>conftest.$ac_ext
  9116. cat >>conftest.$ac_ext <<_ACEOF
  9117. /* end confdefs.h. */
  9118. $ac_includes_default
  9119. #include <$ac_header>
  9120. _ACEOF
  9121. rm -f conftest.$ac_objext
  9122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9123. (eval $ac_compile) 2>conftest.er1
  9124. ac_status=$?
  9125. grep -v '^ *+' conftest.er1 >conftest.err
  9126. rm -f conftest.er1
  9127. cat conftest.err >&5
  9128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129. (exit $ac_status); } &&
  9130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9132. (eval $ac_try) 2>&5
  9133. ac_status=$?
  9134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9135. (exit $ac_status); }; } &&
  9136. { ac_try='test -s conftest.$ac_objext'
  9137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9138. (eval $ac_try) 2>&5
  9139. ac_status=$?
  9140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9141. (exit $ac_status); }; }; then
  9142. ac_header_compiler=yes
  9143. else
  9144. echo "$as_me: failed program was:" >&5
  9145. sed 's/^/| /' conftest.$ac_ext >&5
  9146. ac_header_compiler=no
  9147. fi
  9148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9149. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9150. echo "${ECHO_T}$ac_header_compiler" >&6
  9151. # Is the header present?
  9152. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9153. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9154. cat >conftest.$ac_ext <<_ACEOF
  9155. /* confdefs.h. */
  9156. _ACEOF
  9157. cat confdefs.h >>conftest.$ac_ext
  9158. cat >>conftest.$ac_ext <<_ACEOF
  9159. /* end confdefs.h. */
  9160. #include <$ac_header>
  9161. _ACEOF
  9162. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9163. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9164. ac_status=$?
  9165. grep -v '^ *+' conftest.er1 >conftest.err
  9166. rm -f conftest.er1
  9167. cat conftest.err >&5
  9168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9169. (exit $ac_status); } >/dev/null; then
  9170. if test -s conftest.err; then
  9171. ac_cpp_err=$ac_c_preproc_warn_flag
  9172. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9173. else
  9174. ac_cpp_err=
  9175. fi
  9176. else
  9177. ac_cpp_err=yes
  9178. fi
  9179. if test -z "$ac_cpp_err"; then
  9180. ac_header_preproc=yes
  9181. else
  9182. echo "$as_me: failed program was:" >&5
  9183. sed 's/^/| /' conftest.$ac_ext >&5
  9184. ac_header_preproc=no
  9185. fi
  9186. rm -f conftest.err conftest.$ac_ext
  9187. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9188. echo "${ECHO_T}$ac_header_preproc" >&6
  9189. # So? What about this header?
  9190. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9191. yes:no: )
  9192. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9193. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9194. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9195. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9196. ac_header_preproc=yes
  9197. ;;
  9198. no:yes:* )
  9199. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9200. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9201. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9202. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9203. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9204. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9205. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9206. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9207. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9208. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9209. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9210. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9211. (
  9212. cat <<\_ASBOX
  9213. ## ----------------------------------- ##
  9214. ## Report this to tujikawa@rednoah.com ##
  9215. ## ----------------------------------- ##
  9216. _ASBOX
  9217. ) |
  9218. sed "s/^/$as_me: WARNING: /" >&2
  9219. ;;
  9220. esac
  9221. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9222. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9223. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9224. echo $ECHO_N "(cached) $ECHO_C" >&6
  9225. else
  9226. eval "$as_ac_Header=\$ac_header_preproc"
  9227. fi
  9228. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9229. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9230. fi
  9231. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9232. cat >>confdefs.h <<_ACEOF
  9233. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9234. _ACEOF
  9235. fi
  9236. done
  9237. for ac_func in getpagesize
  9238. do
  9239. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9240. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9241. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9242. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9243. echo $ECHO_N "(cached) $ECHO_C" >&6
  9244. else
  9245. cat >conftest.$ac_ext <<_ACEOF
  9246. /* confdefs.h. */
  9247. _ACEOF
  9248. cat confdefs.h >>conftest.$ac_ext
  9249. cat >>conftest.$ac_ext <<_ACEOF
  9250. /* end confdefs.h. */
  9251. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9252. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9253. #define $ac_func innocuous_$ac_func
  9254. /* System header to define __stub macros and hopefully few prototypes,
  9255. which can conflict with char $ac_func (); below.
  9256. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9257. <limits.h> exists even on freestanding compilers. */
  9258. #ifdef __STDC__
  9259. # include <limits.h>
  9260. #else
  9261. # include <assert.h>
  9262. #endif
  9263. #undef $ac_func
  9264. /* Override any gcc2 internal prototype to avoid an error. */
  9265. #ifdef __cplusplus
  9266. extern "C"
  9267. {
  9268. #endif
  9269. /* We use char because int might match the return type of a gcc2
  9270. builtin and then its argument prototype would still apply. */
  9271. char $ac_func ();
  9272. /* The GNU C library defines this for functions which it implements
  9273. to always fail with ENOSYS. Some functions are actually named
  9274. something starting with __ and the normal name is an alias. */
  9275. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9276. choke me
  9277. #else
  9278. char (*f) () = $ac_func;
  9279. #endif
  9280. #ifdef __cplusplus
  9281. }
  9282. #endif
  9283. int
  9284. main ()
  9285. {
  9286. return f != $ac_func;
  9287. ;
  9288. return 0;
  9289. }
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext conftest$ac_exeext
  9292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9293. (eval $ac_link) 2>conftest.er1
  9294. ac_status=$?
  9295. grep -v '^ *+' conftest.er1 >conftest.err
  9296. rm -f conftest.er1
  9297. cat conftest.err >&5
  9298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9299. (exit $ac_status); } &&
  9300. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9302. (eval $ac_try) 2>&5
  9303. ac_status=$?
  9304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9305. (exit $ac_status); }; } &&
  9306. { ac_try='test -s conftest$ac_exeext'
  9307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9308. (eval $ac_try) 2>&5
  9309. ac_status=$?
  9310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9311. (exit $ac_status); }; }; then
  9312. eval "$as_ac_var=yes"
  9313. else
  9314. echo "$as_me: failed program was:" >&5
  9315. sed 's/^/| /' conftest.$ac_ext >&5
  9316. eval "$as_ac_var=no"
  9317. fi
  9318. rm -f conftest.err conftest.$ac_objext \
  9319. conftest$ac_exeext conftest.$ac_ext
  9320. fi
  9321. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9322. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9323. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9324. cat >>confdefs.h <<_ACEOF
  9325. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9326. _ACEOF
  9327. fi
  9328. done
  9329. echo "$as_me:$LINENO: checking for working mmap" >&5
  9330. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9331. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9332. echo $ECHO_N "(cached) $ECHO_C" >&6
  9333. else
  9334. if test "$cross_compiling" = yes; then
  9335. ac_cv_func_mmap_fixed_mapped=no
  9336. else
  9337. cat >conftest.$ac_ext <<_ACEOF
  9338. /* confdefs.h. */
  9339. _ACEOF
  9340. cat confdefs.h >>conftest.$ac_ext
  9341. cat >>conftest.$ac_ext <<_ACEOF
  9342. /* end confdefs.h. */
  9343. $ac_includes_default
  9344. /* malloc might have been renamed as rpl_malloc. */
  9345. #undef malloc
  9346. /* Thanks to Mike Haertel and Jim Avera for this test.
  9347. Here is a matrix of mmap possibilities:
  9348. mmap private not fixed
  9349. mmap private fixed at somewhere currently unmapped
  9350. mmap private fixed at somewhere already mapped
  9351. mmap shared not fixed
  9352. mmap shared fixed at somewhere currently unmapped
  9353. mmap shared fixed at somewhere already mapped
  9354. For private mappings, we should verify that changes cannot be read()
  9355. back from the file, nor mmap's back from the file at a different
  9356. address. (There have been systems where private was not correctly
  9357. implemented like the infamous i386 svr4.0, and systems where the
  9358. VM page cache was not coherent with the file system buffer cache
  9359. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9360. For shared mappings, we should conversely verify that changes get
  9361. propagated back to all the places they're supposed to be.
  9362. Grep wants private fixed already mapped.
  9363. The main things grep needs to know about mmap are:
  9364. * does it exist and is it safe to write into the mmap'd area
  9365. * how to use it (BSD variants) */
  9366. #include <fcntl.h>
  9367. #include <sys/mman.h>
  9368. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9369. char *malloc ();
  9370. #endif
  9371. /* This mess was copied from the GNU getpagesize.h. */
  9372. #if !HAVE_GETPAGESIZE
  9373. /* Assume that all systems that can run configure have sys/param.h. */
  9374. # if !HAVE_SYS_PARAM_H
  9375. # define HAVE_SYS_PARAM_H 1
  9376. # endif
  9377. # ifdef _SC_PAGESIZE
  9378. # define getpagesize() sysconf(_SC_PAGESIZE)
  9379. # else /* no _SC_PAGESIZE */
  9380. # if HAVE_SYS_PARAM_H
  9381. # include <sys/param.h>
  9382. # ifdef EXEC_PAGESIZE
  9383. # define getpagesize() EXEC_PAGESIZE
  9384. # else /* no EXEC_PAGESIZE */
  9385. # ifdef NBPG
  9386. # define getpagesize() NBPG * CLSIZE
  9387. # ifndef CLSIZE
  9388. # define CLSIZE 1
  9389. # endif /* no CLSIZE */
  9390. # else /* no NBPG */
  9391. # ifdef NBPC
  9392. # define getpagesize() NBPC
  9393. # else /* no NBPC */
  9394. # ifdef PAGESIZE
  9395. # define getpagesize() PAGESIZE
  9396. # endif /* PAGESIZE */
  9397. # endif /* no NBPC */
  9398. # endif /* no NBPG */
  9399. # endif /* no EXEC_PAGESIZE */
  9400. # else /* no HAVE_SYS_PARAM_H */
  9401. # define getpagesize() 8192 /* punt totally */
  9402. # endif /* no HAVE_SYS_PARAM_H */
  9403. # endif /* no _SC_PAGESIZE */
  9404. #endif /* no HAVE_GETPAGESIZE */
  9405. int
  9406. main ()
  9407. {
  9408. char *data, *data2, *data3;
  9409. int i, pagesize;
  9410. int fd;
  9411. pagesize = getpagesize ();
  9412. /* First, make a file with some known garbage in it. */
  9413. data = (char *) malloc (pagesize);
  9414. if (!data)
  9415. exit (1);
  9416. for (i = 0; i < pagesize; ++i)
  9417. *(data + i) = rand ();
  9418. umask (0);
  9419. fd = creat ("conftest.mmap", 0600);
  9420. if (fd < 0)
  9421. exit (1);
  9422. if (write (fd, data, pagesize) != pagesize)
  9423. exit (1);
  9424. close (fd);
  9425. /* Next, try to mmap the file at a fixed address which already has
  9426. something else allocated at it. If we can, also make sure that
  9427. we see the same garbage. */
  9428. fd = open ("conftest.mmap", O_RDWR);
  9429. if (fd < 0)
  9430. exit (1);
  9431. data2 = (char *) malloc (2 * pagesize);
  9432. if (!data2)
  9433. exit (1);
  9434. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9435. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9436. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9437. exit (1);
  9438. for (i = 0; i < pagesize; ++i)
  9439. if (*(data + i) != *(data2 + i))
  9440. exit (1);
  9441. /* Finally, make sure that changes to the mapped area do not
  9442. percolate back to the file as seen by read(). (This is a bug on
  9443. some variants of i386 svr4.0.) */
  9444. for (i = 0; i < pagesize; ++i)
  9445. *(data2 + i) = *(data2 + i) + 1;
  9446. data3 = (char *) malloc (pagesize);
  9447. if (!data3)
  9448. exit (1);
  9449. if (read (fd, data3, pagesize) != pagesize)
  9450. exit (1);
  9451. for (i = 0; i < pagesize; ++i)
  9452. if (*(data + i) != *(data3 + i))
  9453. exit (1);
  9454. close (fd);
  9455. exit (0);
  9456. }
  9457. _ACEOF
  9458. rm -f conftest$ac_exeext
  9459. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9460. (eval $ac_link) 2>&5
  9461. ac_status=$?
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9465. (eval $ac_try) 2>&5
  9466. ac_status=$?
  9467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. (exit $ac_status); }; }; then
  9469. ac_cv_func_mmap_fixed_mapped=yes
  9470. else
  9471. echo "$as_me: program exited with status $ac_status" >&5
  9472. echo "$as_me: failed program was:" >&5
  9473. sed 's/^/| /' conftest.$ac_ext >&5
  9474. ( exit $ac_status )
  9475. ac_cv_func_mmap_fixed_mapped=no
  9476. fi
  9477. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9478. fi
  9479. fi
  9480. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9481. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9482. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9483. cat >>confdefs.h <<\_ACEOF
  9484. #define HAVE_MMAP 1
  9485. _ACEOF
  9486. fi
  9487. rm -f conftest.mmap
  9488. for ac_header in stdlib.h
  9489. do
  9490. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9491. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9492. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9493. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9494. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9495. echo $ECHO_N "(cached) $ECHO_C" >&6
  9496. fi
  9497. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9498. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9499. else
  9500. # Is the header compilable?
  9501. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9502. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9503. cat >conftest.$ac_ext <<_ACEOF
  9504. /* confdefs.h. */
  9505. _ACEOF
  9506. cat confdefs.h >>conftest.$ac_ext
  9507. cat >>conftest.$ac_ext <<_ACEOF
  9508. /* end confdefs.h. */
  9509. $ac_includes_default
  9510. #include <$ac_header>
  9511. _ACEOF
  9512. rm -f conftest.$ac_objext
  9513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9514. (eval $ac_compile) 2>conftest.er1
  9515. ac_status=$?
  9516. grep -v '^ *+' conftest.er1 >conftest.err
  9517. rm -f conftest.er1
  9518. cat conftest.err >&5
  9519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9520. (exit $ac_status); } &&
  9521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9523. (eval $ac_try) 2>&5
  9524. ac_status=$?
  9525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); }; } &&
  9527. { ac_try='test -s conftest.$ac_objext'
  9528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9529. (eval $ac_try) 2>&5
  9530. ac_status=$?
  9531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9532. (exit $ac_status); }; }; then
  9533. ac_header_compiler=yes
  9534. else
  9535. echo "$as_me: failed program was:" >&5
  9536. sed 's/^/| /' conftest.$ac_ext >&5
  9537. ac_header_compiler=no
  9538. fi
  9539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9540. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9541. echo "${ECHO_T}$ac_header_compiler" >&6
  9542. # Is the header present?
  9543. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9544. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9545. cat >conftest.$ac_ext <<_ACEOF
  9546. /* confdefs.h. */
  9547. _ACEOF
  9548. cat confdefs.h >>conftest.$ac_ext
  9549. cat >>conftest.$ac_ext <<_ACEOF
  9550. /* end confdefs.h. */
  9551. #include <$ac_header>
  9552. _ACEOF
  9553. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9554. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9555. ac_status=$?
  9556. grep -v '^ *+' conftest.er1 >conftest.err
  9557. rm -f conftest.er1
  9558. cat conftest.err >&5
  9559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9560. (exit $ac_status); } >/dev/null; then
  9561. if test -s conftest.err; then
  9562. ac_cpp_err=$ac_c_preproc_warn_flag
  9563. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9564. else
  9565. ac_cpp_err=
  9566. fi
  9567. else
  9568. ac_cpp_err=yes
  9569. fi
  9570. if test -z "$ac_cpp_err"; then
  9571. ac_header_preproc=yes
  9572. else
  9573. echo "$as_me: failed program was:" >&5
  9574. sed 's/^/| /' conftest.$ac_ext >&5
  9575. ac_header_preproc=no
  9576. fi
  9577. rm -f conftest.err conftest.$ac_ext
  9578. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9579. echo "${ECHO_T}$ac_header_preproc" >&6
  9580. # So? What about this header?
  9581. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9582. yes:no: )
  9583. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9584. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9586. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9587. ac_header_preproc=yes
  9588. ;;
  9589. no:yes:* )
  9590. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9591. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9592. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9593. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9594. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9595. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9596. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9597. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9599. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9600. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9601. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9602. (
  9603. cat <<\_ASBOX
  9604. ## ----------------------------------- ##
  9605. ## Report this to tujikawa@rednoah.com ##
  9606. ## ----------------------------------- ##
  9607. _ASBOX
  9608. ) |
  9609. sed "s/^/$as_me: WARNING: /" >&2
  9610. ;;
  9611. esac
  9612. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9613. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9614. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9615. echo $ECHO_N "(cached) $ECHO_C" >&6
  9616. else
  9617. eval "$as_ac_Header=\$ac_header_preproc"
  9618. fi
  9619. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9620. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9621. fi
  9622. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9623. cat >>confdefs.h <<_ACEOF
  9624. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9625. _ACEOF
  9626. fi
  9627. done
  9628. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9629. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9630. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9631. echo $ECHO_N "(cached) $ECHO_C" >&6
  9632. else
  9633. if test "$cross_compiling" = yes; then
  9634. ac_cv_func_realloc_0_nonnull=no
  9635. else
  9636. cat >conftest.$ac_ext <<_ACEOF
  9637. /* confdefs.h. */
  9638. _ACEOF
  9639. cat confdefs.h >>conftest.$ac_ext
  9640. cat >>conftest.$ac_ext <<_ACEOF
  9641. /* end confdefs.h. */
  9642. #if STDC_HEADERS || HAVE_STDLIB_H
  9643. # include <stdlib.h>
  9644. #else
  9645. char *realloc ();
  9646. #endif
  9647. int
  9648. main ()
  9649. {
  9650. exit (realloc (0, 0) ? 0 : 1);
  9651. ;
  9652. return 0;
  9653. }
  9654. _ACEOF
  9655. rm -f conftest$ac_exeext
  9656. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9657. (eval $ac_link) 2>&5
  9658. ac_status=$?
  9659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9662. (eval $ac_try) 2>&5
  9663. ac_status=$?
  9664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); }; }; then
  9666. ac_cv_func_realloc_0_nonnull=yes
  9667. else
  9668. echo "$as_me: program exited with status $ac_status" >&5
  9669. echo "$as_me: failed program was:" >&5
  9670. sed 's/^/| /' conftest.$ac_ext >&5
  9671. ( exit $ac_status )
  9672. ac_cv_func_realloc_0_nonnull=no
  9673. fi
  9674. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9675. fi
  9676. fi
  9677. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9678. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9679. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9680. cat >>confdefs.h <<\_ACEOF
  9681. #define HAVE_REALLOC 1
  9682. _ACEOF
  9683. else
  9684. cat >>confdefs.h <<\_ACEOF
  9685. #define HAVE_REALLOC 0
  9686. _ACEOF
  9687. case $LIBOBJS in
  9688. "realloc.$ac_objext" | \
  9689. *" realloc.$ac_objext" | \
  9690. "realloc.$ac_objext "* | \
  9691. *" realloc.$ac_objext "* ) ;;
  9692. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9693. esac
  9694. cat >>confdefs.h <<\_ACEOF
  9695. #define realloc rpl_realloc
  9696. _ACEOF
  9697. fi
  9698. for ac_header in sys/select.h sys/socket.h
  9699. do
  9700. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9701. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9702. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9704. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9705. echo $ECHO_N "(cached) $ECHO_C" >&6
  9706. fi
  9707. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9708. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9709. else
  9710. # Is the header compilable?
  9711. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9712. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9713. cat >conftest.$ac_ext <<_ACEOF
  9714. /* confdefs.h. */
  9715. _ACEOF
  9716. cat confdefs.h >>conftest.$ac_ext
  9717. cat >>conftest.$ac_ext <<_ACEOF
  9718. /* end confdefs.h. */
  9719. $ac_includes_default
  9720. #include <$ac_header>
  9721. _ACEOF
  9722. rm -f conftest.$ac_objext
  9723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9724. (eval $ac_compile) 2>conftest.er1
  9725. ac_status=$?
  9726. grep -v '^ *+' conftest.er1 >conftest.err
  9727. rm -f conftest.er1
  9728. cat conftest.err >&5
  9729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9730. (exit $ac_status); } &&
  9731. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9733. (eval $ac_try) 2>&5
  9734. ac_status=$?
  9735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9736. (exit $ac_status); }; } &&
  9737. { ac_try='test -s conftest.$ac_objext'
  9738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9739. (eval $ac_try) 2>&5
  9740. ac_status=$?
  9741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9742. (exit $ac_status); }; }; then
  9743. ac_header_compiler=yes
  9744. else
  9745. echo "$as_me: failed program was:" >&5
  9746. sed 's/^/| /' conftest.$ac_ext >&5
  9747. ac_header_compiler=no
  9748. fi
  9749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9750. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9751. echo "${ECHO_T}$ac_header_compiler" >&6
  9752. # Is the header present?
  9753. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9754. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9755. cat >conftest.$ac_ext <<_ACEOF
  9756. /* confdefs.h. */
  9757. _ACEOF
  9758. cat confdefs.h >>conftest.$ac_ext
  9759. cat >>conftest.$ac_ext <<_ACEOF
  9760. /* end confdefs.h. */
  9761. #include <$ac_header>
  9762. _ACEOF
  9763. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9764. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9765. ac_status=$?
  9766. grep -v '^ *+' conftest.er1 >conftest.err
  9767. rm -f conftest.er1
  9768. cat conftest.err >&5
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } >/dev/null; then
  9771. if test -s conftest.err; then
  9772. ac_cpp_err=$ac_c_preproc_warn_flag
  9773. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9774. else
  9775. ac_cpp_err=
  9776. fi
  9777. else
  9778. ac_cpp_err=yes
  9779. fi
  9780. if test -z "$ac_cpp_err"; then
  9781. ac_header_preproc=yes
  9782. else
  9783. echo "$as_me: failed program was:" >&5
  9784. sed 's/^/| /' conftest.$ac_ext >&5
  9785. ac_header_preproc=no
  9786. fi
  9787. rm -f conftest.err conftest.$ac_ext
  9788. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9789. echo "${ECHO_T}$ac_header_preproc" >&6
  9790. # So? What about this header?
  9791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9792. yes:no: )
  9793. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9794. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9796. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9797. ac_header_preproc=yes
  9798. ;;
  9799. no:yes:* )
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9801. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9802. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9803. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9804. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9805. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9806. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9807. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9809. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9810. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9811. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9812. (
  9813. cat <<\_ASBOX
  9814. ## ----------------------------------- ##
  9815. ## Report this to tujikawa@rednoah.com ##
  9816. ## ----------------------------------- ##
  9817. _ASBOX
  9818. ) |
  9819. sed "s/^/$as_me: WARNING: /" >&2
  9820. ;;
  9821. esac
  9822. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9823. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9824. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9825. echo $ECHO_N "(cached) $ECHO_C" >&6
  9826. else
  9827. eval "$as_ac_Header=\$ac_header_preproc"
  9828. fi
  9829. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9830. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9831. fi
  9832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9833. cat >>confdefs.h <<_ACEOF
  9834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9835. _ACEOF
  9836. fi
  9837. done
  9838. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9839. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9840. if test "${ac_cv_func_select_args+set}" = set; then
  9841. echo $ECHO_N "(cached) $ECHO_C" >&6
  9842. else
  9843. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9844. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9845. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9846. cat >conftest.$ac_ext <<_ACEOF
  9847. /* confdefs.h. */
  9848. _ACEOF
  9849. cat confdefs.h >>conftest.$ac_ext
  9850. cat >>conftest.$ac_ext <<_ACEOF
  9851. /* end confdefs.h. */
  9852. $ac_includes_default
  9853. #if HAVE_SYS_SELECT_H
  9854. # include <sys/select.h>
  9855. #endif
  9856. #if HAVE_SYS_SOCKET_H
  9857. # include <sys/socket.h>
  9858. #endif
  9859. int
  9860. main ()
  9861. {
  9862. extern int select ($ac_arg1,
  9863. $ac_arg234, $ac_arg234, $ac_arg234,
  9864. $ac_arg5);
  9865. ;
  9866. return 0;
  9867. }
  9868. _ACEOF
  9869. rm -f conftest.$ac_objext
  9870. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9871. (eval $ac_compile) 2>conftest.er1
  9872. ac_status=$?
  9873. grep -v '^ *+' conftest.er1 >conftest.err
  9874. rm -f conftest.er1
  9875. cat conftest.err >&5
  9876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9877. (exit $ac_status); } &&
  9878. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9880. (eval $ac_try) 2>&5
  9881. ac_status=$?
  9882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9883. (exit $ac_status); }; } &&
  9884. { ac_try='test -s conftest.$ac_objext'
  9885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9886. (eval $ac_try) 2>&5
  9887. ac_status=$?
  9888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9889. (exit $ac_status); }; }; then
  9890. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9891. else
  9892. echo "$as_me: failed program was:" >&5
  9893. sed 's/^/| /' conftest.$ac_ext >&5
  9894. fi
  9895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9896. done
  9897. done
  9898. done
  9899. # Provide a safe default value.
  9900. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9901. fi
  9902. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9903. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9904. ac_save_IFS=$IFS; IFS=','
  9905. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9906. IFS=$ac_save_IFS
  9907. shift
  9908. cat >>confdefs.h <<_ACEOF
  9909. #define SELECT_TYPE_ARG1 $1
  9910. _ACEOF
  9911. cat >>confdefs.h <<_ACEOF
  9912. #define SELECT_TYPE_ARG234 ($2)
  9913. _ACEOF
  9914. cat >>confdefs.h <<_ACEOF
  9915. #define SELECT_TYPE_ARG5 ($3)
  9916. _ACEOF
  9917. rm -f conftest*
  9918. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9919. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9920. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9921. echo $ECHO_N "(cached) $ECHO_C" >&6
  9922. else
  9923. rm -f conftest.sym conftest.file
  9924. echo >conftest.file
  9925. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9926. if test "$cross_compiling" = yes; then
  9927. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9928. else
  9929. cat >conftest.$ac_ext <<_ACEOF
  9930. /* confdefs.h. */
  9931. _ACEOF
  9932. cat confdefs.h >>conftest.$ac_ext
  9933. cat >>conftest.$ac_ext <<_ACEOF
  9934. /* end confdefs.h. */
  9935. $ac_includes_default
  9936. int
  9937. main ()
  9938. {
  9939. struct stat sbuf;
  9940. /* Linux will dereference the symlink and fail.
  9941. That is better in the sense that it means we will not
  9942. have to compile and use the lstat wrapper. */
  9943. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9944. ;
  9945. return 0;
  9946. }
  9947. _ACEOF
  9948. rm -f conftest$ac_exeext
  9949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9950. (eval $ac_link) 2>&5
  9951. ac_status=$?
  9952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9955. (eval $ac_try) 2>&5
  9956. ac_status=$?
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); }; }; then
  9959. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9960. else
  9961. echo "$as_me: program exited with status $ac_status" >&5
  9962. echo "$as_me: failed program was:" >&5
  9963. sed 's/^/| /' conftest.$ac_ext >&5
  9964. ( exit $ac_status )
  9965. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9966. fi
  9967. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9968. fi
  9969. else
  9970. # If the `ln -s' command failed, then we probably don't even
  9971. # have an lstat function.
  9972. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9973. fi
  9974. rm -f conftest.sym conftest.file
  9975. fi
  9976. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9977. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9978. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9979. cat >>confdefs.h <<_ACEOF
  9980. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9981. _ACEOF
  9982. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9983. case $LIBOBJS in
  9984. "lstat.$ac_objext" | \
  9985. *" lstat.$ac_objext" | \
  9986. "lstat.$ac_objext "* | \
  9987. *" lstat.$ac_objext "* ) ;;
  9988. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9989. esac
  9990. fi
  9991. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9992. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9993. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9994. echo $ECHO_N "(cached) $ECHO_C" >&6
  9995. else
  9996. if test "$cross_compiling" = yes; then
  9997. ac_cv_func_stat_empty_string_bug=yes
  9998. else
  9999. cat >conftest.$ac_ext <<_ACEOF
  10000. /* confdefs.h. */
  10001. _ACEOF
  10002. cat confdefs.h >>conftest.$ac_ext
  10003. cat >>conftest.$ac_ext <<_ACEOF
  10004. /* end confdefs.h. */
  10005. $ac_includes_default
  10006. int
  10007. main ()
  10008. {
  10009. struct stat sbuf;
  10010. exit (stat ("", &sbuf) ? 1 : 0);
  10011. ;
  10012. return 0;
  10013. }
  10014. _ACEOF
  10015. rm -f conftest$ac_exeext
  10016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10017. (eval $ac_link) 2>&5
  10018. ac_status=$?
  10019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10020. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10022. (eval $ac_try) 2>&5
  10023. ac_status=$?
  10024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10025. (exit $ac_status); }; }; then
  10026. ac_cv_func_stat_empty_string_bug=yes
  10027. else
  10028. echo "$as_me: program exited with status $ac_status" >&5
  10029. echo "$as_me: failed program was:" >&5
  10030. sed 's/^/| /' conftest.$ac_ext >&5
  10031. ( exit $ac_status )
  10032. ac_cv_func_stat_empty_string_bug=no
  10033. fi
  10034. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10035. fi
  10036. fi
  10037. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10038. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10039. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10040. case $LIBOBJS in
  10041. "stat.$ac_objext" | \
  10042. *" stat.$ac_objext" | \
  10043. "stat.$ac_objext "* | \
  10044. *" stat.$ac_objext "* ) ;;
  10045. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10046. esac
  10047. cat >>confdefs.h <<_ACEOF
  10048. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10049. _ACEOF
  10050. fi
  10051. for ac_func in vprintf
  10052. do
  10053. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10054. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10055. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10056. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10057. echo $ECHO_N "(cached) $ECHO_C" >&6
  10058. else
  10059. cat >conftest.$ac_ext <<_ACEOF
  10060. /* confdefs.h. */
  10061. _ACEOF
  10062. cat confdefs.h >>conftest.$ac_ext
  10063. cat >>conftest.$ac_ext <<_ACEOF
  10064. /* end confdefs.h. */
  10065. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10066. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10067. #define $ac_func innocuous_$ac_func
  10068. /* System header to define __stub macros and hopefully few prototypes,
  10069. which can conflict with char $ac_func (); below.
  10070. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10071. <limits.h> exists even on freestanding compilers. */
  10072. #ifdef __STDC__
  10073. # include <limits.h>
  10074. #else
  10075. # include <assert.h>
  10076. #endif
  10077. #undef $ac_func
  10078. /* Override any gcc2 internal prototype to avoid an error. */
  10079. #ifdef __cplusplus
  10080. extern "C"
  10081. {
  10082. #endif
  10083. /* We use char because int might match the return type of a gcc2
  10084. builtin and then its argument prototype would still apply. */
  10085. char $ac_func ();
  10086. /* The GNU C library defines this for functions which it implements
  10087. to always fail with ENOSYS. Some functions are actually named
  10088. something starting with __ and the normal name is an alias. */
  10089. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10090. choke me
  10091. #else
  10092. char (*f) () = $ac_func;
  10093. #endif
  10094. #ifdef __cplusplus
  10095. }
  10096. #endif
  10097. int
  10098. main ()
  10099. {
  10100. return f != $ac_func;
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. rm -f conftest.$ac_objext conftest$ac_exeext
  10106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10107. (eval $ac_link) 2>conftest.er1
  10108. ac_status=$?
  10109. grep -v '^ *+' conftest.er1 >conftest.err
  10110. rm -f conftest.er1
  10111. cat conftest.err >&5
  10112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10113. (exit $ac_status); } &&
  10114. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10116. (eval $ac_try) 2>&5
  10117. ac_status=$?
  10118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10119. (exit $ac_status); }; } &&
  10120. { ac_try='test -s conftest$ac_exeext'
  10121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10122. (eval $ac_try) 2>&5
  10123. ac_status=$?
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); }; }; then
  10126. eval "$as_ac_var=yes"
  10127. else
  10128. echo "$as_me: failed program was:" >&5
  10129. sed 's/^/| /' conftest.$ac_ext >&5
  10130. eval "$as_ac_var=no"
  10131. fi
  10132. rm -f conftest.err conftest.$ac_objext \
  10133. conftest$ac_exeext conftest.$ac_ext
  10134. fi
  10135. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10136. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10137. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10138. cat >>confdefs.h <<_ACEOF
  10139. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10140. _ACEOF
  10141. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10142. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10143. if test "${ac_cv_func__doprnt+set}" = set; then
  10144. echo $ECHO_N "(cached) $ECHO_C" >&6
  10145. else
  10146. cat >conftest.$ac_ext <<_ACEOF
  10147. /* confdefs.h. */
  10148. _ACEOF
  10149. cat confdefs.h >>conftest.$ac_ext
  10150. cat >>conftest.$ac_ext <<_ACEOF
  10151. /* end confdefs.h. */
  10152. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10153. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10154. #define _doprnt innocuous__doprnt
  10155. /* System header to define __stub macros and hopefully few prototypes,
  10156. which can conflict with char _doprnt (); below.
  10157. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10158. <limits.h> exists even on freestanding compilers. */
  10159. #ifdef __STDC__
  10160. # include <limits.h>
  10161. #else
  10162. # include <assert.h>
  10163. #endif
  10164. #undef _doprnt
  10165. /* Override any gcc2 internal prototype to avoid an error. */
  10166. #ifdef __cplusplus
  10167. extern "C"
  10168. {
  10169. #endif
  10170. /* We use char because int might match the return type of a gcc2
  10171. builtin and then its argument prototype would still apply. */
  10172. char _doprnt ();
  10173. /* The GNU C library defines this for functions which it implements
  10174. to always fail with ENOSYS. Some functions are actually named
  10175. something starting with __ and the normal name is an alias. */
  10176. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10177. choke me
  10178. #else
  10179. char (*f) () = _doprnt;
  10180. #endif
  10181. #ifdef __cplusplus
  10182. }
  10183. #endif
  10184. int
  10185. main ()
  10186. {
  10187. return f != _doprnt;
  10188. ;
  10189. return 0;
  10190. }
  10191. _ACEOF
  10192. rm -f conftest.$ac_objext conftest$ac_exeext
  10193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10194. (eval $ac_link) 2>conftest.er1
  10195. ac_status=$?
  10196. grep -v '^ *+' conftest.er1 >conftest.err
  10197. rm -f conftest.er1
  10198. cat conftest.err >&5
  10199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10200. (exit $ac_status); } &&
  10201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10203. (eval $ac_try) 2>&5
  10204. ac_status=$?
  10205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10206. (exit $ac_status); }; } &&
  10207. { ac_try='test -s conftest$ac_exeext'
  10208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10209. (eval $ac_try) 2>&5
  10210. ac_status=$?
  10211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10212. (exit $ac_status); }; }; then
  10213. ac_cv_func__doprnt=yes
  10214. else
  10215. echo "$as_me: failed program was:" >&5
  10216. sed 's/^/| /' conftest.$ac_ext >&5
  10217. ac_cv_func__doprnt=no
  10218. fi
  10219. rm -f conftest.err conftest.$ac_objext \
  10220. conftest$ac_exeext conftest.$ac_ext
  10221. fi
  10222. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10223. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10224. if test $ac_cv_func__doprnt = yes; then
  10225. cat >>confdefs.h <<\_ACEOF
  10226. #define HAVE_DOPRNT 1
  10227. _ACEOF
  10228. fi
  10229. fi
  10230. done
  10231. 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
  10232. do
  10233. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10234. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10235. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10236. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10237. echo $ECHO_N "(cached) $ECHO_C" >&6
  10238. else
  10239. cat >conftest.$ac_ext <<_ACEOF
  10240. /* confdefs.h. */
  10241. _ACEOF
  10242. cat confdefs.h >>conftest.$ac_ext
  10243. cat >>conftest.$ac_ext <<_ACEOF
  10244. /* end confdefs.h. */
  10245. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10246. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10247. #define $ac_func innocuous_$ac_func
  10248. /* System header to define __stub macros and hopefully few prototypes,
  10249. which can conflict with char $ac_func (); below.
  10250. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10251. <limits.h> exists even on freestanding compilers. */
  10252. #ifdef __STDC__
  10253. # include <limits.h>
  10254. #else
  10255. # include <assert.h>
  10256. #endif
  10257. #undef $ac_func
  10258. /* Override any gcc2 internal prototype to avoid an error. */
  10259. #ifdef __cplusplus
  10260. extern "C"
  10261. {
  10262. #endif
  10263. /* We use char because int might match the return type of a gcc2
  10264. builtin and then its argument prototype would still apply. */
  10265. char $ac_func ();
  10266. /* The GNU C library defines this for functions which it implements
  10267. to always fail with ENOSYS. Some functions are actually named
  10268. something starting with __ and the normal name is an alias. */
  10269. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10270. choke me
  10271. #else
  10272. char (*f) () = $ac_func;
  10273. #endif
  10274. #ifdef __cplusplus
  10275. }
  10276. #endif
  10277. int
  10278. main ()
  10279. {
  10280. return f != $ac_func;
  10281. ;
  10282. return 0;
  10283. }
  10284. _ACEOF
  10285. rm -f conftest.$ac_objext conftest$ac_exeext
  10286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10287. (eval $ac_link) 2>conftest.er1
  10288. ac_status=$?
  10289. grep -v '^ *+' conftest.er1 >conftest.err
  10290. rm -f conftest.er1
  10291. cat conftest.err >&5
  10292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10293. (exit $ac_status); } &&
  10294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10296. (eval $ac_try) 2>&5
  10297. ac_status=$?
  10298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10299. (exit $ac_status); }; } &&
  10300. { ac_try='test -s conftest$ac_exeext'
  10301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10302. (eval $ac_try) 2>&5
  10303. ac_status=$?
  10304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10305. (exit $ac_status); }; }; then
  10306. eval "$as_ac_var=yes"
  10307. else
  10308. echo "$as_me: failed program was:" >&5
  10309. sed 's/^/| /' conftest.$ac_ext >&5
  10310. eval "$as_ac_var=no"
  10311. fi
  10312. rm -f conftest.err conftest.$ac_objext \
  10313. conftest$ac_exeext conftest.$ac_ext
  10314. fi
  10315. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10316. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10317. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10318. cat >>confdefs.h <<_ACEOF
  10319. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10320. _ACEOF
  10321. fi
  10322. done
  10323. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  10324. cat >confcache <<\_ACEOF
  10325. # This file is a shell script that caches the results of configure
  10326. # tests run on this system so they can be shared between configure
  10327. # scripts and configure runs, see configure's option --config-cache.
  10328. # It is not useful on other systems. If it contains results you don't
  10329. # want to keep, you may remove or edit it.
  10330. #
  10331. # config.status only pays attention to the cache file if you give it
  10332. # the --recheck option to rerun configure.
  10333. #
  10334. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10335. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10336. # following values.
  10337. _ACEOF
  10338. # The following way of writing the cache mishandles newlines in values,
  10339. # but we know of no workaround that is simple, portable, and efficient.
  10340. # So, don't put newlines in cache variables' values.
  10341. # Ultrix sh set writes to stderr and can't be redirected directly,
  10342. # and sets the high bit in the cache file unless we assign to the vars.
  10343. {
  10344. (set) 2>&1 |
  10345. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10346. *ac_space=\ *)
  10347. # `set' does not quote correctly, so add quotes (double-quote
  10348. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10349. sed -n \
  10350. "s/'/'\\\\''/g;
  10351. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10352. ;;
  10353. *)
  10354. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10355. sed -n \
  10356. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10357. ;;
  10358. esac;
  10359. } |
  10360. sed '
  10361. t clear
  10362. : clear
  10363. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10364. t end
  10365. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10366. : end' >>confcache
  10367. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10368. if test -w $cache_file; then
  10369. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10370. cat confcache >$cache_file
  10371. else
  10372. echo "not updating unwritable cache $cache_file"
  10373. fi
  10374. fi
  10375. rm -f confcache
  10376. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10377. # Let make expand exec_prefix.
  10378. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10379. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10380. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10381. # trailing colons and then remove the whole line if VPATH becomes empty
  10382. # (actually we leave an empty line to preserve line numbers).
  10383. if test "x$srcdir" = x.; then
  10384. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10385. s/:*\$(srcdir):*/:/;
  10386. s/:*\${srcdir}:*/:/;
  10387. s/:*@srcdir@:*/:/;
  10388. s/^\([^=]*=[ ]*\):*/\1/;
  10389. s/:*$//;
  10390. s/^[^=]*=[ ]*$//;
  10391. }'
  10392. fi
  10393. DEFS=-DHAVE_CONFIG_H
  10394. ac_libobjs=
  10395. ac_ltlibobjs=
  10396. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10397. # 1. Remove the extension, and $U if already installed.
  10398. ac_i=`echo "$ac_i" |
  10399. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10400. # 2. Add them.
  10401. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10402. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10403. done
  10404. LIBOBJS=$ac_libobjs
  10405. LTLIBOBJS=$ac_ltlibobjs
  10406. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10407. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10408. Usually this means the macro was only invoked conditionally." >&5
  10409. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10410. Usually this means the macro was only invoked conditionally." >&2;}
  10411. { (exit 1); exit 1; }; }
  10412. fi
  10413. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10414. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10415. Usually this means the macro was only invoked conditionally." >&5
  10416. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10417. Usually this means the macro was only invoked conditionally." >&2;}
  10418. { (exit 1); exit 1; }; }
  10419. fi
  10420. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10421. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10422. Usually this means the macro was only invoked conditionally." >&5
  10423. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10424. Usually this means the macro was only invoked conditionally." >&2;}
  10425. { (exit 1); exit 1; }; }
  10426. fi
  10427. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10428. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10429. Usually this means the macro was only invoked conditionally." >&5
  10430. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10431. Usually this means the macro was only invoked conditionally." >&2;}
  10432. { (exit 1); exit 1; }; }
  10433. fi
  10434. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10435. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10436. Usually this means the macro was only invoked conditionally." >&5
  10437. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10438. Usually this means the macro was only invoked conditionally." >&2;}
  10439. { (exit 1); exit 1; }; }
  10440. fi
  10441. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10442. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10443. Usually this means the macro was only invoked conditionally." >&5
  10444. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10445. Usually this means the macro was only invoked conditionally." >&2;}
  10446. { (exit 1); exit 1; }; }
  10447. fi
  10448. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10449. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10450. Usually this means the macro was only invoked conditionally." >&5
  10451. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10452. Usually this means the macro was only invoked conditionally." >&2;}
  10453. { (exit 1); exit 1; }; }
  10454. fi
  10455. : ${CONFIG_STATUS=./config.status}
  10456. ac_clean_files_save=$ac_clean_files
  10457. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10458. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10459. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10460. cat >$CONFIG_STATUS <<_ACEOF
  10461. #! $SHELL
  10462. # Generated by $as_me.
  10463. # Run this file to recreate the current configuration.
  10464. # Compiler output produced by configure, useful for debugging
  10465. # configure, is in config.log if it exists.
  10466. debug=false
  10467. ac_cs_recheck=false
  10468. ac_cs_silent=false
  10469. SHELL=\${CONFIG_SHELL-$SHELL}
  10470. _ACEOF
  10471. cat >>$CONFIG_STATUS <<\_ACEOF
  10472. ## --------------------- ##
  10473. ## M4sh Initialization. ##
  10474. ## --------------------- ##
  10475. # Be Bourne compatible
  10476. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10477. emulate sh
  10478. NULLCMD=:
  10479. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10480. # is contrary to our usage. Disable this feature.
  10481. alias -g '${1+"$@"}'='"$@"'
  10482. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10483. set -o posix
  10484. fi
  10485. DUALCASE=1; export DUALCASE # for MKS sh
  10486. # Support unset when possible.
  10487. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10488. as_unset=unset
  10489. else
  10490. as_unset=false
  10491. fi
  10492. # Work around bugs in pre-3.0 UWIN ksh.
  10493. $as_unset ENV MAIL MAILPATH
  10494. PS1='$ '
  10495. PS2='> '
  10496. PS4='+ '
  10497. # NLS nuisances.
  10498. for as_var in \
  10499. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10500. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10501. LC_TELEPHONE LC_TIME
  10502. do
  10503. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10504. eval $as_var=C; export $as_var
  10505. else
  10506. $as_unset $as_var
  10507. fi
  10508. done
  10509. # Required to use basename.
  10510. if expr a : '\(a\)' >/dev/null 2>&1; then
  10511. as_expr=expr
  10512. else
  10513. as_expr=false
  10514. fi
  10515. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10516. as_basename=basename
  10517. else
  10518. as_basename=false
  10519. fi
  10520. # Name of the executable.
  10521. as_me=`$as_basename "$0" ||
  10522. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10523. X"$0" : 'X\(//\)$' \| \
  10524. X"$0" : 'X\(/\)$' \| \
  10525. . : '\(.\)' 2>/dev/null ||
  10526. echo X/"$0" |
  10527. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10528. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10529. /^X\/\(\/\).*/{ s//\1/; q; }
  10530. s/.*/./; q'`
  10531. # PATH needs CR, and LINENO needs CR and PATH.
  10532. # Avoid depending upon Character Ranges.
  10533. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10534. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10535. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10536. as_cr_digits='0123456789'
  10537. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10538. # The user is always right.
  10539. if test "${PATH_SEPARATOR+set}" != set; then
  10540. echo "#! /bin/sh" >conf$$.sh
  10541. echo "exit 0" >>conf$$.sh
  10542. chmod +x conf$$.sh
  10543. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10544. PATH_SEPARATOR=';'
  10545. else
  10546. PATH_SEPARATOR=:
  10547. fi
  10548. rm -f conf$$.sh
  10549. fi
  10550. as_lineno_1=$LINENO
  10551. as_lineno_2=$LINENO
  10552. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10553. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10554. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10555. # Find who we are. Look in the path if we contain no path at all
  10556. # relative or not.
  10557. case $0 in
  10558. *[\\/]* ) as_myself=$0 ;;
  10559. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10560. for as_dir in $PATH
  10561. do
  10562. IFS=$as_save_IFS
  10563. test -z "$as_dir" && as_dir=.
  10564. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10565. done
  10566. ;;
  10567. esac
  10568. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10569. # in which case we are not to be found in the path.
  10570. if test "x$as_myself" = x; then
  10571. as_myself=$0
  10572. fi
  10573. if test ! -f "$as_myself"; then
  10574. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10575. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10576. { (exit 1); exit 1; }; }
  10577. fi
  10578. case $CONFIG_SHELL in
  10579. '')
  10580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10581. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10582. do
  10583. IFS=$as_save_IFS
  10584. test -z "$as_dir" && as_dir=.
  10585. for as_base in sh bash ksh sh5; do
  10586. case $as_dir in
  10587. /*)
  10588. if ("$as_dir/$as_base" -c '
  10589. as_lineno_1=$LINENO
  10590. as_lineno_2=$LINENO
  10591. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10592. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10593. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10594. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10595. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10596. CONFIG_SHELL=$as_dir/$as_base
  10597. export CONFIG_SHELL
  10598. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10599. fi;;
  10600. esac
  10601. done
  10602. done
  10603. ;;
  10604. esac
  10605. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10606. # uniformly replaced by the line number. The first 'sed' inserts a
  10607. # line-number line before each line; the second 'sed' does the real
  10608. # work. The second script uses 'N' to pair each line-number line
  10609. # with the numbered line, and appends trailing '-' during
  10610. # substitution so that $LINENO is not a special case at line end.
  10611. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10612. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10613. sed '=' <$as_myself |
  10614. sed '
  10615. N
  10616. s,$,-,
  10617. : loop
  10618. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10619. t loop
  10620. s,-$,,
  10621. s,^['$as_cr_digits']*\n,,
  10622. ' >$as_me.lineno &&
  10623. chmod +x $as_me.lineno ||
  10624. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10625. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10626. { (exit 1); exit 1; }; }
  10627. # Don't try to exec as it changes $[0], causing all sort of problems
  10628. # (the dirname of $[0] is not the place where we might find the
  10629. # original and so on. Autoconf is especially sensible to this).
  10630. . ./$as_me.lineno
  10631. # Exit status is that of the last command.
  10632. exit
  10633. }
  10634. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10635. *c*,-n*) ECHO_N= ECHO_C='
  10636. ' ECHO_T=' ' ;;
  10637. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10638. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10639. esac
  10640. if expr a : '\(a\)' >/dev/null 2>&1; then
  10641. as_expr=expr
  10642. else
  10643. as_expr=false
  10644. fi
  10645. rm -f conf$$ conf$$.exe conf$$.file
  10646. echo >conf$$.file
  10647. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10648. # We could just check for DJGPP; but this test a) works b) is more generic
  10649. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10650. if test -f conf$$.exe; then
  10651. # Don't use ln at all; we don't have any links
  10652. as_ln_s='cp -p'
  10653. else
  10654. as_ln_s='ln -s'
  10655. fi
  10656. elif ln conf$$.file conf$$ 2>/dev/null; then
  10657. as_ln_s=ln
  10658. else
  10659. as_ln_s='cp -p'
  10660. fi
  10661. rm -f conf$$ conf$$.exe conf$$.file
  10662. if mkdir -p . 2>/dev/null; then
  10663. as_mkdir_p=:
  10664. else
  10665. test -d ./-p && rmdir ./-p
  10666. as_mkdir_p=false
  10667. fi
  10668. as_executable_p="test -f"
  10669. # Sed expression to map a string onto a valid CPP name.
  10670. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10671. # Sed expression to map a string onto a valid variable name.
  10672. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10673. # IFS
  10674. # We need space, tab and new line, in precisely that order.
  10675. as_nl='
  10676. '
  10677. IFS=" $as_nl"
  10678. # CDPATH.
  10679. $as_unset CDPATH
  10680. exec 6>&1
  10681. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10682. # report actual input values of CONFIG_FILES etc. instead of their
  10683. # values after options handling. Logging --version etc. is OK.
  10684. exec 5>>config.log
  10685. {
  10686. echo
  10687. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10688. ## Running $as_me. ##
  10689. _ASBOX
  10690. } >&5
  10691. cat >&5 <<_CSEOF
  10692. This file was extended by aria2c $as_me 0.6.1, which was
  10693. generated by GNU Autoconf 2.59. Invocation command line was
  10694. CONFIG_FILES = $CONFIG_FILES
  10695. CONFIG_HEADERS = $CONFIG_HEADERS
  10696. CONFIG_LINKS = $CONFIG_LINKS
  10697. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10698. $ $0 $@
  10699. _CSEOF
  10700. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10701. echo >&5
  10702. _ACEOF
  10703. # Files that config.status was made for.
  10704. if test -n "$ac_config_files"; then
  10705. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10706. fi
  10707. if test -n "$ac_config_headers"; then
  10708. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10709. fi
  10710. if test -n "$ac_config_links"; then
  10711. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10712. fi
  10713. if test -n "$ac_config_commands"; then
  10714. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10715. fi
  10716. cat >>$CONFIG_STATUS <<\_ACEOF
  10717. ac_cs_usage="\
  10718. \`$as_me' instantiates files from templates according to the
  10719. current configuration.
  10720. Usage: $0 [OPTIONS] [FILE]...
  10721. -h, --help print this help, then exit
  10722. -V, --version print version number, then exit
  10723. -q, --quiet do not print progress messages
  10724. -d, --debug don't remove temporary files
  10725. --recheck update $as_me by reconfiguring in the same conditions
  10726. --file=FILE[:TEMPLATE]
  10727. instantiate the configuration file FILE
  10728. --header=FILE[:TEMPLATE]
  10729. instantiate the configuration header FILE
  10730. Configuration files:
  10731. $config_files
  10732. Configuration headers:
  10733. $config_headers
  10734. Configuration commands:
  10735. $config_commands
  10736. Report bugs to <bug-autoconf@gnu.org>."
  10737. _ACEOF
  10738. cat >>$CONFIG_STATUS <<_ACEOF
  10739. ac_cs_version="\\
  10740. aria2c config.status 0.6.1
  10741. configured by $0, generated by GNU Autoconf 2.59,
  10742. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10743. Copyright (C) 2003 Free Software Foundation, Inc.
  10744. This config.status script is free software; the Free Software Foundation
  10745. gives unlimited permission to copy, distribute and modify it."
  10746. srcdir=$srcdir
  10747. INSTALL="$INSTALL"
  10748. _ACEOF
  10749. cat >>$CONFIG_STATUS <<\_ACEOF
  10750. # If no file are specified by the user, then we need to provide default
  10751. # value. By we need to know if files were specified by the user.
  10752. ac_need_defaults=:
  10753. while test $# != 0
  10754. do
  10755. case $1 in
  10756. --*=*)
  10757. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10758. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10759. ac_shift=:
  10760. ;;
  10761. -*)
  10762. ac_option=$1
  10763. ac_optarg=$2
  10764. ac_shift=shift
  10765. ;;
  10766. *) # This is not an option, so the user has probably given explicit
  10767. # arguments.
  10768. ac_option=$1
  10769. ac_need_defaults=false;;
  10770. esac
  10771. case $ac_option in
  10772. # Handling of the options.
  10773. _ACEOF
  10774. cat >>$CONFIG_STATUS <<\_ACEOF
  10775. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10776. ac_cs_recheck=: ;;
  10777. --version | --vers* | -V )
  10778. echo "$ac_cs_version"; exit 0 ;;
  10779. --he | --h)
  10780. # Conflict between --help and --header
  10781. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10782. Try \`$0 --help' for more information." >&5
  10783. echo "$as_me: error: ambiguous option: $1
  10784. Try \`$0 --help' for more information." >&2;}
  10785. { (exit 1); exit 1; }; };;
  10786. --help | --hel | -h )
  10787. echo "$ac_cs_usage"; exit 0 ;;
  10788. --debug | --d* | -d )
  10789. debug=: ;;
  10790. --file | --fil | --fi | --f )
  10791. $ac_shift
  10792. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10793. ac_need_defaults=false;;
  10794. --header | --heade | --head | --hea )
  10795. $ac_shift
  10796. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10797. ac_need_defaults=false;;
  10798. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10799. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10800. ac_cs_silent=: ;;
  10801. # This is an error.
  10802. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10803. Try \`$0 --help' for more information." >&5
  10804. echo "$as_me: error: unrecognized option: $1
  10805. Try \`$0 --help' for more information." >&2;}
  10806. { (exit 1); exit 1; }; } ;;
  10807. *) ac_config_targets="$ac_config_targets $1" ;;
  10808. esac
  10809. shift
  10810. done
  10811. ac_configure_extra_args=
  10812. if $ac_cs_silent; then
  10813. exec 6>/dev/null
  10814. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10815. fi
  10816. _ACEOF
  10817. cat >>$CONFIG_STATUS <<_ACEOF
  10818. if \$ac_cs_recheck; then
  10819. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10820. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10821. fi
  10822. _ACEOF
  10823. cat >>$CONFIG_STATUS <<_ACEOF
  10824. #
  10825. # INIT-COMMANDS section.
  10826. #
  10827. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10828. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  10829. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  10830. # from automake.
  10831. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  10832. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  10833. LINGUAS="${LINGUAS-%UNSET%}"
  10834. _ACEOF
  10835. cat >>$CONFIG_STATUS <<\_ACEOF
  10836. for ac_config_target in $ac_config_targets
  10837. do
  10838. case "$ac_config_target" in
  10839. # Handling of arguments.
  10840. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10841. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10842. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10843. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  10844. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  10845. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  10846. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10847. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10848. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10849. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10850. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10851. { (exit 1); exit 1; }; };;
  10852. esac
  10853. done
  10854. # If the user did not use the arguments to specify the items to instantiate,
  10855. # then the envvar interface is used. Set only those that are not.
  10856. # We use the long form for the default assignment because of an extremely
  10857. # bizarre bug on SunOS 4.1.3.
  10858. if $ac_need_defaults; then
  10859. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10860. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10861. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10862. fi
  10863. # Have a temporary directory for convenience. Make it in the build tree
  10864. # simply because there is no reason to put it here, and in addition,
  10865. # creating and moving files from /tmp can sometimes cause problems.
  10866. # Create a temporary directory, and hook for its removal unless debugging.
  10867. $debug ||
  10868. {
  10869. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10870. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10871. }
  10872. # Create a (secure) tmp directory for tmp files.
  10873. {
  10874. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10875. test -n "$tmp" && test -d "$tmp"
  10876. } ||
  10877. {
  10878. tmp=./confstat$$-$RANDOM
  10879. (umask 077 && mkdir $tmp)
  10880. } ||
  10881. {
  10882. echo "$me: cannot create a temporary directory in ." >&2
  10883. { (exit 1); exit 1; }
  10884. }
  10885. _ACEOF
  10886. cat >>$CONFIG_STATUS <<_ACEOF
  10887. #
  10888. # CONFIG_FILES section.
  10889. #
  10890. # No need to generate the scripts if there are no CONFIG_FILES.
  10891. # This happens for instance when ./config.status config.h
  10892. if test -n "\$CONFIG_FILES"; then
  10893. # Protect against being on the right side of a sed subst in config.status.
  10894. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10895. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10896. s,@SHELL@,$SHELL,;t t
  10897. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10898. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10899. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10900. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10901. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10902. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10903. s,@exec_prefix@,$exec_prefix,;t t
  10904. s,@prefix@,$prefix,;t t
  10905. s,@program_transform_name@,$program_transform_name,;t t
  10906. s,@bindir@,$bindir,;t t
  10907. s,@sbindir@,$sbindir,;t t
  10908. s,@libexecdir@,$libexecdir,;t t
  10909. s,@datadir@,$datadir,;t t
  10910. s,@sysconfdir@,$sysconfdir,;t t
  10911. s,@sharedstatedir@,$sharedstatedir,;t t
  10912. s,@localstatedir@,$localstatedir,;t t
  10913. s,@libdir@,$libdir,;t t
  10914. s,@includedir@,$includedir,;t t
  10915. s,@oldincludedir@,$oldincludedir,;t t
  10916. s,@infodir@,$infodir,;t t
  10917. s,@mandir@,$mandir,;t t
  10918. s,@build_alias@,$build_alias,;t t
  10919. s,@host_alias@,$host_alias,;t t
  10920. s,@target_alias@,$target_alias,;t t
  10921. s,@DEFS@,$DEFS,;t t
  10922. s,@ECHO_C@,$ECHO_C,;t t
  10923. s,@ECHO_N@,$ECHO_N,;t t
  10924. s,@ECHO_T@,$ECHO_T,;t t
  10925. s,@LIBS@,$LIBS,;t t
  10926. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10927. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10928. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10929. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10930. s,@PACKAGE@,$PACKAGE,;t t
  10931. s,@VERSION@,$VERSION,;t t
  10932. s,@ACLOCAL@,$ACLOCAL,;t t
  10933. s,@AUTOCONF@,$AUTOCONF,;t t
  10934. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10935. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10936. s,@MAKEINFO@,$MAKEINFO,;t t
  10937. s,@install_sh@,$install_sh,;t t
  10938. s,@STRIP@,$STRIP,;t t
  10939. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10940. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10941. s,@mkdir_p@,$mkdir_p,;t t
  10942. s,@AWK@,$AWK,;t t
  10943. s,@SET_MAKE@,$SET_MAKE,;t t
  10944. s,@am__leading_dot@,$am__leading_dot,;t t
  10945. s,@AMTAR@,$AMTAR,;t t
  10946. s,@am__tar@,$am__tar,;t t
  10947. s,@am__untar@,$am__untar,;t t
  10948. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10949. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10950. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10951. s,@localedir@,$localedir,;t t
  10952. s,@CXX@,$CXX,;t t
  10953. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10954. s,@LDFLAGS@,$LDFLAGS,;t t
  10955. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10956. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10957. s,@EXEEXT@,$EXEEXT,;t t
  10958. s,@OBJEXT@,$OBJEXT,;t t
  10959. s,@DEPDIR@,$DEPDIR,;t t
  10960. s,@am__include@,$am__include,;t t
  10961. s,@am__quote@,$am__quote,;t t
  10962. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10963. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10964. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10965. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10966. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10967. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10968. s,@CC@,$CC,;t t
  10969. s,@CFLAGS@,$CFLAGS,;t t
  10970. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10971. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10972. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10973. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10974. s,@RANLIB@,$RANLIB,;t t
  10975. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10976. s,@YACC@,$YACC,;t t
  10977. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  10978. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  10979. s,@XML_LIBS@,$XML_LIBS,;t t
  10980. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  10981. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  10982. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  10983. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  10984. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  10985. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  10986. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  10987. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  10988. s,@ENABLE_BITTORRENT_TRUE@,$ENABLE_BITTORRENT_TRUE,;t t
  10989. s,@ENABLE_BITTORRENT_FALSE@,$ENABLE_BITTORRENT_FALSE,;t t
  10990. s,@ENABLE_METALINK_TRUE@,$ENABLE_METALINK_TRUE,;t t
  10991. s,@ENABLE_METALINK_FALSE@,$ENABLE_METALINK_FALSE,;t t
  10992. s,@ALLOCA@,$ALLOCA,;t t
  10993. s,@CPP@,$CPP,;t t
  10994. s,@EGREP@,$EGREP,;t t
  10995. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10996. s,@USE_NLS@,$USE_NLS,;t t
  10997. s,@MSGFMT@,$MSGFMT,;t t
  10998. s,@GMSGFMT@,$GMSGFMT,;t t
  10999. s,@XGETTEXT@,$XGETTEXT,;t t
  11000. s,@MSGMERGE@,$MSGMERGE,;t t
  11001. s,@build@,$build,;t t
  11002. s,@build_cpu@,$build_cpu,;t t
  11003. s,@build_vendor@,$build_vendor,;t t
  11004. s,@build_os@,$build_os,;t t
  11005. s,@host@,$host,;t t
  11006. s,@host_cpu@,$host_cpu,;t t
  11007. s,@host_vendor@,$host_vendor,;t t
  11008. s,@host_os@,$host_os,;t t
  11009. s,@GLIBC21@,$GLIBC21,;t t
  11010. s,@LIBICONV@,$LIBICONV,;t t
  11011. s,@LTLIBICONV@,$LTLIBICONV,;t t
  11012. s,@INTLBISON@,$INTLBISON,;t t
  11013. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  11014. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  11015. s,@CATOBJEXT@,$CATOBJEXT,;t t
  11016. s,@DATADIRNAME@,$DATADIRNAME,;t t
  11017. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  11018. s,@GENCAT@,$GENCAT,;t t
  11019. s,@INTLOBJS@,$INTLOBJS,;t t
  11020. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  11021. s,@INTLLIBS@,$INTLLIBS,;t t
  11022. s,@LIBINTL@,$LIBINTL,;t t
  11023. s,@LTLIBINTL@,$LTLIBINTL,;t t
  11024. s,@POSUB@,$POSUB,;t t
  11025. s,@LIBOBJS@,$LIBOBJS,;t t
  11026. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11027. CEOF
  11028. _ACEOF
  11029. cat >>$CONFIG_STATUS <<\_ACEOF
  11030. # Split the substitutions into bite-sized pieces for seds with
  11031. # small command number limits, like on Digital OSF/1 and HP-UX.
  11032. ac_max_sed_lines=48
  11033. ac_sed_frag=1 # Number of current file.
  11034. ac_beg=1 # First line for current file.
  11035. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11036. ac_more_lines=:
  11037. ac_sed_cmds=
  11038. while $ac_more_lines; do
  11039. if test $ac_beg -gt 1; then
  11040. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11041. else
  11042. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11043. fi
  11044. if test ! -s $tmp/subs.frag; then
  11045. ac_more_lines=false
  11046. else
  11047. # The purpose of the label and of the branching condition is to
  11048. # speed up the sed processing (if there are no `@' at all, there
  11049. # is no need to browse any of the substitutions).
  11050. # These are the two extra sed commands mentioned above.
  11051. (echo ':t
  11052. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11053. if test -z "$ac_sed_cmds"; then
  11054. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11055. else
  11056. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11057. fi
  11058. ac_sed_frag=`expr $ac_sed_frag + 1`
  11059. ac_beg=$ac_end
  11060. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11061. fi
  11062. done
  11063. if test -z "$ac_sed_cmds"; then
  11064. ac_sed_cmds=cat
  11065. fi
  11066. fi # test -n "$CONFIG_FILES"
  11067. _ACEOF
  11068. cat >>$CONFIG_STATUS <<\_ACEOF
  11069. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11070. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11071. case $ac_file in
  11072. - | *:- | *:-:* ) # input from stdin
  11073. cat >$tmp/stdin
  11074. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11075. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11076. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11077. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11078. * ) ac_file_in=$ac_file.in ;;
  11079. esac
  11080. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11081. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11082. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11083. X"$ac_file" : 'X\(//\)[^/]' \| \
  11084. X"$ac_file" : 'X\(//\)$' \| \
  11085. X"$ac_file" : 'X\(/\)' \| \
  11086. . : '\(.\)' 2>/dev/null ||
  11087. echo X"$ac_file" |
  11088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11089. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11090. /^X\(\/\/\)$/{ s//\1/; q; }
  11091. /^X\(\/\).*/{ s//\1/; q; }
  11092. s/.*/./; q'`
  11093. { if $as_mkdir_p; then
  11094. mkdir -p "$ac_dir"
  11095. else
  11096. as_dir="$ac_dir"
  11097. as_dirs=
  11098. while test ! -d "$as_dir"; do
  11099. as_dirs="$as_dir $as_dirs"
  11100. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11101. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11102. X"$as_dir" : 'X\(//\)[^/]' \| \
  11103. X"$as_dir" : 'X\(//\)$' \| \
  11104. X"$as_dir" : 'X\(/\)' \| \
  11105. . : '\(.\)' 2>/dev/null ||
  11106. echo X"$as_dir" |
  11107. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11108. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11109. /^X\(\/\/\)$/{ s//\1/; q; }
  11110. /^X\(\/\).*/{ s//\1/; q; }
  11111. s/.*/./; q'`
  11112. done
  11113. test ! -n "$as_dirs" || mkdir $as_dirs
  11114. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11115. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11116. { (exit 1); exit 1; }; }; }
  11117. ac_builddir=.
  11118. if test "$ac_dir" != .; then
  11119. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11120. # A "../" for each directory in $ac_dir_suffix.
  11121. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11122. else
  11123. ac_dir_suffix= ac_top_builddir=
  11124. fi
  11125. case $srcdir in
  11126. .) # No --srcdir option. We are building in place.
  11127. ac_srcdir=.
  11128. if test -z "$ac_top_builddir"; then
  11129. ac_top_srcdir=.
  11130. else
  11131. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11132. fi ;;
  11133. [\\/]* | ?:[\\/]* ) # Absolute path.
  11134. ac_srcdir=$srcdir$ac_dir_suffix;
  11135. ac_top_srcdir=$srcdir ;;
  11136. *) # Relative path.
  11137. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11138. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11139. esac
  11140. # Do not use `cd foo && pwd` to compute absolute paths, because
  11141. # the directories may not exist.
  11142. case `pwd` in
  11143. .) ac_abs_builddir="$ac_dir";;
  11144. *)
  11145. case "$ac_dir" in
  11146. .) ac_abs_builddir=`pwd`;;
  11147. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11148. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11149. esac;;
  11150. esac
  11151. case $ac_abs_builddir in
  11152. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11153. *)
  11154. case ${ac_top_builddir}. in
  11155. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11156. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11157. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11158. esac;;
  11159. esac
  11160. case $ac_abs_builddir in
  11161. .) ac_abs_srcdir=$ac_srcdir;;
  11162. *)
  11163. case $ac_srcdir in
  11164. .) ac_abs_srcdir=$ac_abs_builddir;;
  11165. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11166. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11167. esac;;
  11168. esac
  11169. case $ac_abs_builddir in
  11170. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11171. *)
  11172. case $ac_top_srcdir in
  11173. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11174. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11175. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11176. esac;;
  11177. esac
  11178. case $INSTALL in
  11179. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11180. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11181. esac
  11182. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11183. # use $as_me), people would be surprised to read:
  11184. # /* config.h. Generated by config.status. */
  11185. if test x"$ac_file" = x-; then
  11186. configure_input=
  11187. else
  11188. configure_input="$ac_file. "
  11189. fi
  11190. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11191. sed 's,.*/,,'` by configure."
  11192. # First look for the input files in the build tree, otherwise in the
  11193. # src tree.
  11194. ac_file_inputs=`IFS=:
  11195. for f in $ac_file_in; do
  11196. case $f in
  11197. -) echo $tmp/stdin ;;
  11198. [\\/$]*)
  11199. # Absolute (can't be DOS-style, as IFS=:)
  11200. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11201. echo "$as_me: error: cannot find input file: $f" >&2;}
  11202. { (exit 1); exit 1; }; }
  11203. echo "$f";;
  11204. *) # Relative
  11205. if test -f "$f"; then
  11206. # Build tree
  11207. echo "$f"
  11208. elif test -f "$srcdir/$f"; then
  11209. # Source tree
  11210. echo "$srcdir/$f"
  11211. else
  11212. # /dev/null tree
  11213. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11214. echo "$as_me: error: cannot find input file: $f" >&2;}
  11215. { (exit 1); exit 1; }; }
  11216. fi;;
  11217. esac
  11218. done` || { (exit 1); exit 1; }
  11219. if test x"$ac_file" != x-; then
  11220. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11221. echo "$as_me: creating $ac_file" >&6;}
  11222. rm -f "$ac_file"
  11223. fi
  11224. _ACEOF
  11225. cat >>$CONFIG_STATUS <<_ACEOF
  11226. sed "$ac_vpsub
  11227. $extrasub
  11228. _ACEOF
  11229. cat >>$CONFIG_STATUS <<\_ACEOF
  11230. :t
  11231. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11232. s,@configure_input@,$configure_input,;t t
  11233. s,@srcdir@,$ac_srcdir,;t t
  11234. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11235. s,@top_srcdir@,$ac_top_srcdir,;t t
  11236. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11237. s,@builddir@,$ac_builddir,;t t
  11238. s,@abs_builddir@,$ac_abs_builddir,;t t
  11239. s,@top_builddir@,$ac_top_builddir,;t t
  11240. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11241. s,@INSTALL@,$ac_INSTALL,;t t
  11242. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11243. rm -f $tmp/stdin
  11244. if test x"$ac_file" != x-; then
  11245. mv $tmp/out $ac_file
  11246. else
  11247. cat $tmp/out
  11248. rm -f $tmp/out
  11249. fi
  11250. done
  11251. _ACEOF
  11252. cat >>$CONFIG_STATUS <<\_ACEOF
  11253. #
  11254. # CONFIG_HEADER section.
  11255. #
  11256. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11257. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11258. #
  11259. # ac_d sets the value in "#define NAME VALUE" lines.
  11260. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11261. ac_dB='[ ].*$,\1#\2'
  11262. ac_dC=' '
  11263. ac_dD=',;t'
  11264. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11265. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11266. ac_uB='$,\1#\2define\3'
  11267. ac_uC=' '
  11268. ac_uD=',;t'
  11269. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11270. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11271. case $ac_file in
  11272. - | *:- | *:-:* ) # input from stdin
  11273. cat >$tmp/stdin
  11274. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11275. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11276. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11277. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11278. * ) ac_file_in=$ac_file.in ;;
  11279. esac
  11280. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11281. echo "$as_me: creating $ac_file" >&6;}
  11282. # First look for the input files in the build tree, otherwise in the
  11283. # src tree.
  11284. ac_file_inputs=`IFS=:
  11285. for f in $ac_file_in; do
  11286. case $f in
  11287. -) echo $tmp/stdin ;;
  11288. [\\/$]*)
  11289. # Absolute (can't be DOS-style, as IFS=:)
  11290. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11291. echo "$as_me: error: cannot find input file: $f" >&2;}
  11292. { (exit 1); exit 1; }; }
  11293. # Do quote $f, to prevent DOS paths from being IFS'd.
  11294. echo "$f";;
  11295. *) # Relative
  11296. if test -f "$f"; then
  11297. # Build tree
  11298. echo "$f"
  11299. elif test -f "$srcdir/$f"; then
  11300. # Source tree
  11301. echo "$srcdir/$f"
  11302. else
  11303. # /dev/null tree
  11304. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11305. echo "$as_me: error: cannot find input file: $f" >&2;}
  11306. { (exit 1); exit 1; }; }
  11307. fi;;
  11308. esac
  11309. done` || { (exit 1); exit 1; }
  11310. # Remove the trailing spaces.
  11311. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11312. _ACEOF
  11313. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11314. # `conftest.undefs', that substitutes the proper values into
  11315. # config.h.in to produce config.h. The first handles `#define'
  11316. # templates, and the second `#undef' templates.
  11317. # And first: Protect against being on the right side of a sed subst in
  11318. # config.status. Protect against being in an unquoted here document
  11319. # in config.status.
  11320. rm -f conftest.defines conftest.undefs
  11321. # Using a here document instead of a string reduces the quoting nightmare.
  11322. # Putting comments in sed scripts is not portable.
  11323. #
  11324. # `end' is used to avoid that the second main sed command (meant for
  11325. # 0-ary CPP macros) applies to n-ary macro definitions.
  11326. # See the Autoconf documentation for `clear'.
  11327. cat >confdef2sed.sed <<\_ACEOF
  11328. s/[\\&,]/\\&/g
  11329. s,[\\$`],\\&,g
  11330. t clear
  11331. : clear
  11332. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11333. t end
  11334. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11335. : end
  11336. _ACEOF
  11337. # If some macros were called several times there might be several times
  11338. # the same #defines, which is useless. Nevertheless, we may not want to
  11339. # sort them, since we want the *last* AC-DEFINE to be honored.
  11340. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11341. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11342. rm -f confdef2sed.sed
  11343. # This sed command replaces #undef with comments. This is necessary, for
  11344. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11345. # on some systems where configure will not decide to define it.
  11346. cat >>conftest.undefs <<\_ACEOF
  11347. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11348. _ACEOF
  11349. # Break up conftest.defines because some shells have a limit on the size
  11350. # of here documents, and old seds have small limits too (100 cmds).
  11351. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11352. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11353. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11354. echo ' :' >>$CONFIG_STATUS
  11355. rm -f conftest.tail
  11356. while grep . conftest.defines >/dev/null
  11357. do
  11358. # Write a limited-size here document to $tmp/defines.sed.
  11359. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11360. # Speed up: don't consider the non `#define' lines.
  11361. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11362. # Work around the forget-to-reset-the-flag bug.
  11363. echo 't clr' >>$CONFIG_STATUS
  11364. echo ': clr' >>$CONFIG_STATUS
  11365. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11366. echo 'CEOF
  11367. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11368. rm -f $tmp/in
  11369. mv $tmp/out $tmp/in
  11370. ' >>$CONFIG_STATUS
  11371. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11372. rm -f conftest.defines
  11373. mv conftest.tail conftest.defines
  11374. done
  11375. rm -f conftest.defines
  11376. echo ' fi # grep' >>$CONFIG_STATUS
  11377. echo >>$CONFIG_STATUS
  11378. # Break up conftest.undefs because some shells have a limit on the size
  11379. # of here documents, and old seds have small limits too (100 cmds).
  11380. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11381. rm -f conftest.tail
  11382. while grep . conftest.undefs >/dev/null
  11383. do
  11384. # Write a limited-size here document to $tmp/undefs.sed.
  11385. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11386. # Speed up: don't consider the non `#undef'
  11387. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11388. # Work around the forget-to-reset-the-flag bug.
  11389. echo 't clr' >>$CONFIG_STATUS
  11390. echo ': clr' >>$CONFIG_STATUS
  11391. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11392. echo 'CEOF
  11393. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11394. rm -f $tmp/in
  11395. mv $tmp/out $tmp/in
  11396. ' >>$CONFIG_STATUS
  11397. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11398. rm -f conftest.undefs
  11399. mv conftest.tail conftest.undefs
  11400. done
  11401. rm -f conftest.undefs
  11402. cat >>$CONFIG_STATUS <<\_ACEOF
  11403. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11404. # use $as_me), people would be surprised to read:
  11405. # /* config.h. Generated by config.status. */
  11406. if test x"$ac_file" = x-; then
  11407. echo "/* Generated by configure. */" >$tmp/config.h
  11408. else
  11409. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11410. fi
  11411. cat $tmp/in >>$tmp/config.h
  11412. rm -f $tmp/in
  11413. if test x"$ac_file" != x-; then
  11414. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11415. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11416. echo "$as_me: $ac_file is unchanged" >&6;}
  11417. else
  11418. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11419. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11420. X"$ac_file" : 'X\(//\)[^/]' \| \
  11421. X"$ac_file" : 'X\(//\)$' \| \
  11422. X"$ac_file" : 'X\(/\)' \| \
  11423. . : '\(.\)' 2>/dev/null ||
  11424. echo X"$ac_file" |
  11425. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11426. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11427. /^X\(\/\/\)$/{ s//\1/; q; }
  11428. /^X\(\/\).*/{ s//\1/; q; }
  11429. s/.*/./; q'`
  11430. { if $as_mkdir_p; then
  11431. mkdir -p "$ac_dir"
  11432. else
  11433. as_dir="$ac_dir"
  11434. as_dirs=
  11435. while test ! -d "$as_dir"; do
  11436. as_dirs="$as_dir $as_dirs"
  11437. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11438. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11439. X"$as_dir" : 'X\(//\)[^/]' \| \
  11440. X"$as_dir" : 'X\(//\)$' \| \
  11441. X"$as_dir" : 'X\(/\)' \| \
  11442. . : '\(.\)' 2>/dev/null ||
  11443. echo X"$as_dir" |
  11444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11445. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11446. /^X\(\/\/\)$/{ s//\1/; q; }
  11447. /^X\(\/\).*/{ s//\1/; q; }
  11448. s/.*/./; q'`
  11449. done
  11450. test ! -n "$as_dirs" || mkdir $as_dirs
  11451. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11452. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11453. { (exit 1); exit 1; }; }; }
  11454. rm -f $ac_file
  11455. mv $tmp/config.h $ac_file
  11456. fi
  11457. else
  11458. cat $tmp/config.h
  11459. rm -f $tmp/config.h
  11460. fi
  11461. # Compute $ac_file's index in $config_headers.
  11462. _am_stamp_count=1
  11463. for _am_header in $config_headers :; do
  11464. case $_am_header in
  11465. $ac_file | $ac_file:* )
  11466. break ;;
  11467. * )
  11468. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11469. esac
  11470. done
  11471. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11472. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11473. X$ac_file : 'X\(//\)[^/]' \| \
  11474. X$ac_file : 'X\(//\)$' \| \
  11475. X$ac_file : 'X\(/\)' \| \
  11476. . : '\(.\)' 2>/dev/null ||
  11477. echo X$ac_file |
  11478. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11479. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11480. /^X\(\/\/\)$/{ s//\1/; q; }
  11481. /^X\(\/\).*/{ s//\1/; q; }
  11482. s/.*/./; q'`/stamp-h$_am_stamp_count
  11483. done
  11484. _ACEOF
  11485. cat >>$CONFIG_STATUS <<\_ACEOF
  11486. #
  11487. # CONFIG_COMMANDS section.
  11488. #
  11489. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11490. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11491. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11492. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11493. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11494. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11495. X"$ac_dest" : 'X\(//\)$' \| \
  11496. X"$ac_dest" : 'X\(/\)' \| \
  11497. . : '\(.\)' 2>/dev/null ||
  11498. echo X"$ac_dest" |
  11499. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11500. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11501. /^X\(\/\/\)$/{ s//\1/; q; }
  11502. /^X\(\/\).*/{ s//\1/; q; }
  11503. s/.*/./; q'`
  11504. { if $as_mkdir_p; then
  11505. mkdir -p "$ac_dir"
  11506. else
  11507. as_dir="$ac_dir"
  11508. as_dirs=
  11509. while test ! -d "$as_dir"; do
  11510. as_dirs="$as_dir $as_dirs"
  11511. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11512. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11513. X"$as_dir" : 'X\(//\)[^/]' \| \
  11514. X"$as_dir" : 'X\(//\)$' \| \
  11515. X"$as_dir" : 'X\(/\)' \| \
  11516. . : '\(.\)' 2>/dev/null ||
  11517. echo X"$as_dir" |
  11518. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11519. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11520. /^X\(\/\/\)$/{ s//\1/; q; }
  11521. /^X\(\/\).*/{ s//\1/; q; }
  11522. s/.*/./; q'`
  11523. done
  11524. test ! -n "$as_dirs" || mkdir $as_dirs
  11525. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11526. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11527. { (exit 1); exit 1; }; }; }
  11528. ac_builddir=.
  11529. if test "$ac_dir" != .; then
  11530. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11531. # A "../" for each directory in $ac_dir_suffix.
  11532. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11533. else
  11534. ac_dir_suffix= ac_top_builddir=
  11535. fi
  11536. case $srcdir in
  11537. .) # No --srcdir option. We are building in place.
  11538. ac_srcdir=.
  11539. if test -z "$ac_top_builddir"; then
  11540. ac_top_srcdir=.
  11541. else
  11542. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11543. fi ;;
  11544. [\\/]* | ?:[\\/]* ) # Absolute path.
  11545. ac_srcdir=$srcdir$ac_dir_suffix;
  11546. ac_top_srcdir=$srcdir ;;
  11547. *) # Relative path.
  11548. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11549. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11550. esac
  11551. # Do not use `cd foo && pwd` to compute absolute paths, because
  11552. # the directories may not exist.
  11553. case `pwd` in
  11554. .) ac_abs_builddir="$ac_dir";;
  11555. *)
  11556. case "$ac_dir" in
  11557. .) ac_abs_builddir=`pwd`;;
  11558. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11559. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11560. esac;;
  11561. esac
  11562. case $ac_abs_builddir in
  11563. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11564. *)
  11565. case ${ac_top_builddir}. in
  11566. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11567. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11568. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11569. esac;;
  11570. esac
  11571. case $ac_abs_builddir in
  11572. .) ac_abs_srcdir=$ac_srcdir;;
  11573. *)
  11574. case $ac_srcdir in
  11575. .) ac_abs_srcdir=$ac_abs_builddir;;
  11576. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11577. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11578. esac;;
  11579. esac
  11580. case $ac_abs_builddir in
  11581. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11582. *)
  11583. case $ac_top_srcdir in
  11584. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11585. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11586. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11587. esac;;
  11588. esac
  11589. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11590. echo "$as_me: executing $ac_dest commands" >&6;}
  11591. case $ac_dest in
  11592. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11593. # Strip MF so we end up with the name of the file.
  11594. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11595. # Check whether this is an Automake generated Makefile or not.
  11596. # We used to match only the files named `Makefile.in', but
  11597. # some people rename them; so instead we look at the file content.
  11598. # Grep'ing the first line is not enough: some people post-process
  11599. # each Makefile.in and add a new line on top of each file to say so.
  11600. # So let's grep whole file.
  11601. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11602. dirpart=`(dirname "$mf") 2>/dev/null ||
  11603. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11604. X"$mf" : 'X\(//\)[^/]' \| \
  11605. X"$mf" : 'X\(//\)$' \| \
  11606. X"$mf" : 'X\(/\)' \| \
  11607. . : '\(.\)' 2>/dev/null ||
  11608. echo X"$mf" |
  11609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11610. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11611. /^X\(\/\/\)$/{ s//\1/; q; }
  11612. /^X\(\/\).*/{ s//\1/; q; }
  11613. s/.*/./; q'`
  11614. else
  11615. continue
  11616. fi
  11617. # Extract the definition of DEPDIR, am__include, and am__quote
  11618. # from the Makefile without running `make'.
  11619. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11620. test -z "$DEPDIR" && continue
  11621. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11622. test -z "am__include" && continue
  11623. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11624. # When using ansi2knr, U may be empty or an underscore; expand it
  11625. U=`sed -n 's/^U = //p' < "$mf"`
  11626. # Find all dependency output files, they are included files with
  11627. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11628. # simplest approach to changing $(DEPDIR) to its actual value in the
  11629. # expansion.
  11630. for file in `sed -n "
  11631. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11632. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11633. # Make sure the directory exists.
  11634. test -f "$dirpart/$file" && continue
  11635. fdir=`(dirname "$file") 2>/dev/null ||
  11636. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11637. X"$file" : 'X\(//\)[^/]' \| \
  11638. X"$file" : 'X\(//\)$' \| \
  11639. X"$file" : 'X\(/\)' \| \
  11640. . : '\(.\)' 2>/dev/null ||
  11641. echo X"$file" |
  11642. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11643. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11644. /^X\(\/\/\)$/{ s//\1/; q; }
  11645. /^X\(\/\).*/{ s//\1/; q; }
  11646. s/.*/./; q'`
  11647. { if $as_mkdir_p; then
  11648. mkdir -p $dirpart/$fdir
  11649. else
  11650. as_dir=$dirpart/$fdir
  11651. as_dirs=
  11652. while test ! -d "$as_dir"; do
  11653. as_dirs="$as_dir $as_dirs"
  11654. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11655. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11656. X"$as_dir" : 'X\(//\)[^/]' \| \
  11657. X"$as_dir" : 'X\(//\)$' \| \
  11658. X"$as_dir" : 'X\(/\)' \| \
  11659. . : '\(.\)' 2>/dev/null ||
  11660. echo X"$as_dir" |
  11661. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11662. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11663. /^X\(\/\/\)$/{ s//\1/; q; }
  11664. /^X\(\/\).*/{ s//\1/; q; }
  11665. s/.*/./; q'`
  11666. done
  11667. test ! -n "$as_dirs" || mkdir $as_dirs
  11668. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11669. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11670. { (exit 1); exit 1; }; }; }
  11671. # echo "creating $dirpart/$file"
  11672. echo '# dummy' > "$dirpart/$file"
  11673. done
  11674. done
  11675. ;;
  11676. default-1 )
  11677. for ac_file in $CONFIG_FILES; do
  11678. # Support "outfile[:infile[:infile...]]"
  11679. case "$ac_file" in
  11680. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11681. esac
  11682. # PO directories have a Makefile.in generated from Makefile.in.in.
  11683. case "$ac_file" in */Makefile.in)
  11684. # Adjust a relative srcdir.
  11685. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11686. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11687. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11688. # In autoconf-2.13 it is called $ac_given_srcdir.
  11689. # In autoconf-2.50 it is called $srcdir.
  11690. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11691. case "$ac_given_srcdir" in
  11692. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11693. /*) top_srcdir="$ac_given_srcdir" ;;
  11694. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11695. esac
  11696. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11697. rm -f "$ac_dir/POTFILES"
  11698. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11699. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11700. POMAKEFILEDEPS="POTFILES.in"
  11701. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11702. # on $ac_dir but don't depend on user-specified configuration
  11703. # parameters.
  11704. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11705. # The LINGUAS file contains the set of available languages.
  11706. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11707. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11708. fi
  11709. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11710. # Hide the ALL_LINGUAS assigment from automake.
  11711. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11712. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11713. else
  11714. # The set of available languages was given in configure.in.
  11715. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11716. fi
  11717. case "$ac_given_srcdir" in
  11718. .) srcdirpre= ;;
  11719. *) srcdirpre='$(srcdir)/' ;;
  11720. esac
  11721. POFILES=
  11722. GMOFILES=
  11723. UPDATEPOFILES=
  11724. DUMMYPOFILES=
  11725. for lang in $ALL_LINGUAS; do
  11726. POFILES="$POFILES $srcdirpre$lang.po"
  11727. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11728. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11729. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11730. done
  11731. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11732. # environment variable.
  11733. INST_LINGUAS=
  11734. if test -n "$ALL_LINGUAS"; then
  11735. for presentlang in $ALL_LINGUAS; do
  11736. useit=no
  11737. if test "%UNSET%" != "$LINGUAS"; then
  11738. desiredlanguages="$LINGUAS"
  11739. else
  11740. desiredlanguages="$ALL_LINGUAS"
  11741. fi
  11742. for desiredlang in $desiredlanguages; do
  11743. # Use the presentlang catalog if desiredlang is
  11744. # a. equal to presentlang, or
  11745. # b. a variant of presentlang (because in this case,
  11746. # presentlang can be used as a fallback for messages
  11747. # which are not translated in the desiredlang catalog).
  11748. case "$desiredlang" in
  11749. "$presentlang"*) useit=yes;;
  11750. esac
  11751. done
  11752. if test $useit = yes; then
  11753. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11754. fi
  11755. done
  11756. fi
  11757. CATALOGS=
  11758. if test -n "$INST_LINGUAS"; then
  11759. for lang in $INST_LINGUAS; do
  11760. CATALOGS="$CATALOGS $lang.gmo"
  11761. done
  11762. fi
  11763. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11764. 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"
  11765. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11766. if test -f "$f"; then
  11767. case "$f" in
  11768. *.orig | *.bak | *~) ;;
  11769. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11770. esac
  11771. fi
  11772. done
  11773. fi
  11774. ;;
  11775. esac
  11776. done ;;
  11777. esac
  11778. done
  11779. _ACEOF
  11780. cat >>$CONFIG_STATUS <<\_ACEOF
  11781. { (exit 0); exit 0; }
  11782. _ACEOF
  11783. chmod +x $CONFIG_STATUS
  11784. ac_clean_files=$ac_clean_files_save
  11785. # configure is writing to config.log, and then calls config.status.
  11786. # config.status does its own redirection, appending to config.log.
  11787. # Unfortunately, on DOS this fails, as config.log is still kept open
  11788. # by configure, so config.status won't be able to write to it; its
  11789. # output is simply discarded. So we exec the FD to /dev/null,
  11790. # effectively closing config.log, so it can be properly (re)opened and
  11791. # appended to by config.status. When coming back to configure, we
  11792. # need to make the FD available again.
  11793. if test "$no_create" != yes; then
  11794. ac_cs_success=:
  11795. ac_config_status_args=
  11796. test "$silent" = yes &&
  11797. ac_config_status_args="$ac_config_status_args --quiet"
  11798. exec 5>/dev/null
  11799. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11800. exec 5>>config.log
  11801. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11802. # would make configure fail if this is the last instruction.
  11803. $ac_cs_success || { (exit 1); exit 1; }
  11804. fi