configure 357 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.3.0.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.3.0'
  239. PACKAGE_STRING='aria2c 0.3.0'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC ALLOCA CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.3.0 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.3.0:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --enable-ssl enalbe SSL support if libssl is installed. Default: yes
  756. --disable-dependency-tracking speeds up one-time build
  757. --enable-dependency-tracking do not reject slow dependency extractors
  758. --disable-nls do not use Native Language Support
  759. --disable-rpath do not hardcode runtime library paths
  760. Optional Packages:
  761. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  762. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  763. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  764. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  765. --with-gnu-ld assume the C compiler uses GNU ld default=no
  766. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  767. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  768. --with-included-gettext use the GNU gettext library included here
  769. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  770. --without-libintl-prefix don't search for libintl in includedir and libdir
  771. Some influential environment variables:
  772. CXX C++ compiler command
  773. CXXFLAGS C++ compiler flags
  774. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  775. nonstandard directory <lib dir>
  776. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  777. headers in a nonstandard directory <include dir>
  778. CC C compiler command
  779. CFLAGS C compiler flags
  780. CPP C preprocessor
  781. Use these variables to override the choices made by `configure' or to help
  782. it to find libraries and programs with nonstandard names/locations.
  783. Report bugs to <tujikawa@rednoah.com>.
  784. _ACEOF
  785. fi
  786. if test "$ac_init_help" = "recursive"; then
  787. # If there are subdirs, report their specific --help.
  788. ac_popdir=`pwd`
  789. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  790. test -d $ac_dir || continue
  791. ac_builddir=.
  792. if test "$ac_dir" != .; then
  793. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  794. # A "../" for each directory in $ac_dir_suffix.
  795. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  796. else
  797. ac_dir_suffix= ac_top_builddir=
  798. fi
  799. case $srcdir in
  800. .) # No --srcdir option. We are building in place.
  801. ac_srcdir=.
  802. if test -z "$ac_top_builddir"; then
  803. ac_top_srcdir=.
  804. else
  805. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  806. fi ;;
  807. [\\/]* | ?:[\\/]* ) # Absolute path.
  808. ac_srcdir=$srcdir$ac_dir_suffix;
  809. ac_top_srcdir=$srcdir ;;
  810. *) # Relative path.
  811. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  812. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  813. esac
  814. # Do not use `cd foo && pwd` to compute absolute paths, because
  815. # the directories may not exist.
  816. case `pwd` in
  817. .) ac_abs_builddir="$ac_dir";;
  818. *)
  819. case "$ac_dir" in
  820. .) ac_abs_builddir=`pwd`;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  822. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  827. *)
  828. case ${ac_top_builddir}. in
  829. .) ac_abs_top_builddir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  831. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_srcdir=$ac_srcdir;;
  836. *)
  837. case $ac_srcdir in
  838. .) ac_abs_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  840. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  841. esac;;
  842. esac
  843. case $ac_abs_builddir in
  844. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  845. *)
  846. case $ac_top_srcdir in
  847. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  848. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  849. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  850. esac;;
  851. esac
  852. cd $ac_dir
  853. # Check for guested configure; otherwise get Cygnus style configure.
  854. if test -f $ac_srcdir/configure.gnu; then
  855. echo
  856. $SHELL $ac_srcdir/configure.gnu --help=recursive
  857. elif test -f $ac_srcdir/configure; then
  858. echo
  859. $SHELL $ac_srcdir/configure --help=recursive
  860. elif test -f $ac_srcdir/configure.ac ||
  861. test -f $ac_srcdir/configure.in; then
  862. echo
  863. $ac_configure --help
  864. else
  865. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  866. fi
  867. cd "$ac_popdir"
  868. done
  869. fi
  870. test -n "$ac_init_help" && exit 0
  871. if $ac_init_version; then
  872. cat <<\_ACEOF
  873. aria2c configure 0.3.0
  874. generated by GNU Autoconf 2.59
  875. Copyright (C) 2003 Free Software Foundation, Inc.
  876. This configure script is free software; the Free Software Foundation
  877. gives unlimited permission to copy, distribute and modify it.
  878. _ACEOF
  879. exit 0
  880. fi
  881. exec 5>config.log
  882. cat >&5 <<_ACEOF
  883. This file contains any messages produced by compilers while
  884. running configure, to aid debugging if configure makes a mistake.
  885. It was created by aria2c $as_me 0.3.0, which was
  886. generated by GNU Autoconf 2.59. Invocation command line was
  887. $ $0 $@
  888. _ACEOF
  889. {
  890. cat <<_ASUNAME
  891. ## --------- ##
  892. ## Platform. ##
  893. ## --------- ##
  894. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  895. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  896. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  897. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  898. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  899. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  900. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  901. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  902. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  903. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  904. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  905. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  906. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  907. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  908. _ASUNAME
  909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  910. for as_dir in $PATH
  911. do
  912. IFS=$as_save_IFS
  913. test -z "$as_dir" && as_dir=.
  914. echo "PATH: $as_dir"
  915. done
  916. } >&5
  917. cat >&5 <<_ACEOF
  918. ## ----------- ##
  919. ## Core tests. ##
  920. ## ----------- ##
  921. _ACEOF
  922. # Keep a trace of the command line.
  923. # Strip out --no-create and --no-recursion so they do not pile up.
  924. # Strip out --silent because we don't want to record it for future runs.
  925. # Also quote any args containing shell meta-characters.
  926. # Make two passes to allow for proper duplicate-argument suppression.
  927. ac_configure_args=
  928. ac_configure_args0=
  929. ac_configure_args1=
  930. ac_sep=
  931. ac_must_keep_next=false
  932. for ac_pass in 1 2
  933. do
  934. for ac_arg
  935. do
  936. case $ac_arg in
  937. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  939. | -silent | --silent | --silen | --sile | --sil)
  940. continue ;;
  941. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  942. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  943. esac
  944. case $ac_pass in
  945. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  946. 2)
  947. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  948. if test $ac_must_keep_next = true; then
  949. ac_must_keep_next=false # Got value, back to normal.
  950. else
  951. case $ac_arg in
  952. *=* | --config-cache | -C | -disable-* | --disable-* \
  953. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  954. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  955. | -with-* | --with-* | -without-* | --without-* | --x)
  956. case "$ac_configure_args0 " in
  957. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  958. esac
  959. ;;
  960. -* ) ac_must_keep_next=true ;;
  961. esac
  962. fi
  963. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  964. # Get rid of the leading space.
  965. ac_sep=" "
  966. ;;
  967. esac
  968. done
  969. done
  970. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  971. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  972. # When interrupted or exit'd, cleanup temporary files, and complete
  973. # config.log. We remove comments because anyway the quotes in there
  974. # would cause problems or look ugly.
  975. # WARNING: Be sure not to use single quotes in there, as some shells,
  976. # such as our DU 5.0 friend, will then `close' the trap.
  977. trap 'exit_status=$?
  978. # Save into config.log some information that might help in debugging.
  979. {
  980. echo
  981. cat <<\_ASBOX
  982. ## ---------------- ##
  983. ## Cache variables. ##
  984. ## ---------------- ##
  985. _ASBOX
  986. echo
  987. # The following way of writing the cache mishandles newlines in values,
  988. {
  989. (set) 2>&1 |
  990. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  991. *ac_space=\ *)
  992. sed -n \
  993. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  994. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  995. ;;
  996. *)
  997. sed -n \
  998. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  999. ;;
  1000. esac;
  1001. }
  1002. echo
  1003. cat <<\_ASBOX
  1004. ## ----------------- ##
  1005. ## Output variables. ##
  1006. ## ----------------- ##
  1007. _ASBOX
  1008. echo
  1009. for ac_var in $ac_subst_vars
  1010. do
  1011. eval ac_val=$`echo $ac_var`
  1012. echo "$ac_var='"'"'$ac_val'"'"'"
  1013. done | sort
  1014. echo
  1015. if test -n "$ac_subst_files"; then
  1016. cat <<\_ASBOX
  1017. ## ------------- ##
  1018. ## Output files. ##
  1019. ## ------------- ##
  1020. _ASBOX
  1021. echo
  1022. for ac_var in $ac_subst_files
  1023. do
  1024. eval ac_val=$`echo $ac_var`
  1025. echo "$ac_var='"'"'$ac_val'"'"'"
  1026. done | sort
  1027. echo
  1028. fi
  1029. if test -s confdefs.h; then
  1030. cat <<\_ASBOX
  1031. ## ----------- ##
  1032. ## confdefs.h. ##
  1033. ## ----------- ##
  1034. _ASBOX
  1035. echo
  1036. sed "/^$/d" confdefs.h | sort
  1037. echo
  1038. fi
  1039. test "$ac_signal" != 0 &&
  1040. echo "$as_me: caught signal $ac_signal"
  1041. echo "$as_me: exit $exit_status"
  1042. } >&5
  1043. rm -f core *.core &&
  1044. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1045. exit $exit_status
  1046. ' 0
  1047. for ac_signal in 1 2 13 15; do
  1048. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1049. done
  1050. ac_signal=0
  1051. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1052. rm -rf conftest* confdefs.h
  1053. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1054. echo >confdefs.h
  1055. # Predefined preprocessor variables.
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_NAME "$PACKAGE_NAME"
  1058. _ACEOF
  1059. cat >>confdefs.h <<_ACEOF
  1060. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1061. _ACEOF
  1062. cat >>confdefs.h <<_ACEOF
  1063. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1064. _ACEOF
  1065. cat >>confdefs.h <<_ACEOF
  1066. #define PACKAGE_STRING "$PACKAGE_STRING"
  1067. _ACEOF
  1068. cat >>confdefs.h <<_ACEOF
  1069. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1070. _ACEOF
  1071. # Let the site file select an alternate cache file if it wants to.
  1072. # Prefer explicitly selected file to automatically selected ones.
  1073. if test -z "$CONFIG_SITE"; then
  1074. if test "x$prefix" != xNONE; then
  1075. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1076. else
  1077. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1078. fi
  1079. fi
  1080. for ac_site_file in $CONFIG_SITE; do
  1081. if test -r "$ac_site_file"; then
  1082. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1083. echo "$as_me: loading site script $ac_site_file" >&6;}
  1084. sed 's/^/| /' "$ac_site_file" >&5
  1085. . "$ac_site_file"
  1086. fi
  1087. done
  1088. if test -r "$cache_file"; then
  1089. # Some versions of bash will fail to source /dev/null (special
  1090. # files actually), so we avoid doing that.
  1091. if test -f "$cache_file"; then
  1092. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1093. echo "$as_me: loading cache $cache_file" >&6;}
  1094. case $cache_file in
  1095. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1096. *) . ./$cache_file;;
  1097. esac
  1098. fi
  1099. else
  1100. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1101. echo "$as_me: creating cache $cache_file" >&6;}
  1102. >$cache_file
  1103. fi
  1104. # Check that the precious variables saved in the cache have kept the same
  1105. # value.
  1106. ac_cache_corrupted=false
  1107. for ac_var in `(set) 2>&1 |
  1108. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1109. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1110. eval ac_new_set=\$ac_env_${ac_var}_set
  1111. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1112. eval ac_new_val="\$ac_env_${ac_var}_value"
  1113. case $ac_old_set,$ac_new_set in
  1114. set,)
  1115. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1116. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1117. ac_cache_corrupted=: ;;
  1118. ,set)
  1119. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1120. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1121. ac_cache_corrupted=: ;;
  1122. ,);;
  1123. *)
  1124. if test "x$ac_old_val" != "x$ac_new_val"; then
  1125. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1126. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1127. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1128. echo "$as_me: former value: $ac_old_val" >&2;}
  1129. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1130. echo "$as_me: current value: $ac_new_val" >&2;}
  1131. ac_cache_corrupted=:
  1132. fi;;
  1133. esac
  1134. # Pass precious variables to config.status.
  1135. if test "$ac_new_set" = set; then
  1136. case $ac_new_val in
  1137. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1138. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1139. *) ac_arg=$ac_var=$ac_new_val ;;
  1140. esac
  1141. case " $ac_configure_args " in
  1142. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1143. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1144. esac
  1145. fi
  1146. done
  1147. if $ac_cache_corrupted; then
  1148. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1149. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1150. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1151. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. ac_ext=c
  1155. ac_cpp='$CPP $CPPFLAGS'
  1156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1159. am__api_version="1.9"
  1160. ac_aux_dir=
  1161. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1162. if test -f $ac_dir/install-sh; then
  1163. ac_aux_dir=$ac_dir
  1164. ac_install_sh="$ac_aux_dir/install-sh -c"
  1165. break
  1166. elif test -f $ac_dir/install.sh; then
  1167. ac_aux_dir=$ac_dir
  1168. ac_install_sh="$ac_aux_dir/install.sh -c"
  1169. break
  1170. elif test -f $ac_dir/shtool; then
  1171. ac_aux_dir=$ac_dir
  1172. ac_install_sh="$ac_aux_dir/shtool install -c"
  1173. break
  1174. fi
  1175. done
  1176. if test -z "$ac_aux_dir"; then
  1177. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1178. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1179. { (exit 1); exit 1; }; }
  1180. fi
  1181. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1182. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1183. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1184. # Find a good install program. We prefer a C program (faster),
  1185. # so one script is as good as another. But avoid the broken or
  1186. # incompatible versions:
  1187. # SysV /etc/install, /usr/sbin/install
  1188. # SunOS /usr/etc/install
  1189. # IRIX /sbin/install
  1190. # AIX /bin/install
  1191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1195. # OS/2's system install, which has a completely different semantic
  1196. # ./install, which can be erroneously created by make from ./install.sh.
  1197. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1198. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1199. if test -z "$INSTALL"; then
  1200. if test "${ac_cv_path_install+set}" = set; then
  1201. echo $ECHO_N "(cached) $ECHO_C" >&6
  1202. else
  1203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1204. for as_dir in $PATH
  1205. do
  1206. IFS=$as_save_IFS
  1207. test -z "$as_dir" && as_dir=.
  1208. # Account for people who put trailing slashes in PATH elements.
  1209. case $as_dir/ in
  1210. ./ | .// | /cC/* | \
  1211. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1212. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1213. /usr/ucb/* ) ;;
  1214. *)
  1215. # OSF1 and SCO ODT 3.0 have their own names for install.
  1216. # Don't use installbsd from OSF since it installs stuff as root
  1217. # by default.
  1218. for ac_prog in ginstall scoinst install; do
  1219. for ac_exec_ext in '' $ac_executable_extensions; do
  1220. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1221. if test $ac_prog = install &&
  1222. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1223. # AIX install. It has an incompatible calling convention.
  1224. :
  1225. elif test $ac_prog = install &&
  1226. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1227. # program-specific install script used by HP pwplus--don't use.
  1228. :
  1229. else
  1230. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1231. break 3
  1232. fi
  1233. fi
  1234. done
  1235. done
  1236. ;;
  1237. esac
  1238. done
  1239. fi
  1240. if test "${ac_cv_path_install+set}" = set; then
  1241. INSTALL=$ac_cv_path_install
  1242. else
  1243. # As a last resort, use the slow shell script. We don't cache a
  1244. # path for INSTALL within a source directory, because that will
  1245. # break other packages using the cache if that directory is
  1246. # removed, or if the path is relative.
  1247. INSTALL=$ac_install_sh
  1248. fi
  1249. fi
  1250. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1251. echo "${ECHO_T}$INSTALL" >&6
  1252. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1253. # It thinks the first close brace ends the variable substitution.
  1254. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1255. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1256. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1257. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1258. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1259. # Just in case
  1260. sleep 1
  1261. echo timestamp > conftest.file
  1262. # Do `set' in a subshell so we don't clobber the current shell's
  1263. # arguments. Must try -L first in case configure is actually a
  1264. # symlink; some systems play weird games with the mod time of symlinks
  1265. # (eg FreeBSD returns the mod time of the symlink's containing
  1266. # directory).
  1267. if (
  1268. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1269. if test "$*" = "X"; then
  1270. # -L didn't work.
  1271. set X `ls -t $srcdir/configure conftest.file`
  1272. fi
  1273. rm -f conftest.file
  1274. if test "$*" != "X $srcdir/configure conftest.file" \
  1275. && test "$*" != "X conftest.file $srcdir/configure"; then
  1276. # If neither matched, then we have a broken ls. This can happen
  1277. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1278. # broken ls alias from the environment. This has actually
  1279. # happened. Such a system could not be considered "sane".
  1280. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1281. alias in your environment" >&5
  1282. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1283. alias in your environment" >&2;}
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. test "$2" = conftest.file
  1287. )
  1288. then
  1289. # Ok.
  1290. :
  1291. else
  1292. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1293. Check your system clock" >&5
  1294. echo "$as_me: error: newly created file is older than distributed files!
  1295. Check your system clock" >&2;}
  1296. { (exit 1); exit 1; }; }
  1297. fi
  1298. echo "$as_me:$LINENO: result: yes" >&5
  1299. echo "${ECHO_T}yes" >&6
  1300. test "$program_prefix" != NONE &&
  1301. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1302. # Use a double $ so make ignores it.
  1303. test "$program_suffix" != NONE &&
  1304. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1305. # Double any \ or $. echo might interpret backslashes.
  1306. # By default was `s,x,x', remove it if useless.
  1307. cat <<\_ACEOF >conftest.sed
  1308. s/[\\$]/&&/g;s/;s,x,x,$//
  1309. _ACEOF
  1310. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1311. rm conftest.sed
  1312. # expand $ac_aux_dir to an absolute path
  1313. am_aux_dir=`cd $ac_aux_dir && pwd`
  1314. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1315. # Use eval to expand $SHELL
  1316. if eval "$MISSING --run true"; then
  1317. am_missing_run="$MISSING --run "
  1318. else
  1319. am_missing_run=
  1320. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1321. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1322. fi
  1323. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1324. # We used to keeping the `.' as first argument, in order to
  1325. # allow $(mkdir_p) to be used without argument. As in
  1326. # $(mkdir_p) $(somedir)
  1327. # where $(somedir) is conditionally defined. However this is wrong
  1328. # for two reasons:
  1329. # 1. if the package is installed by a user who cannot write `.'
  1330. # make install will fail,
  1331. # 2. the above comment should most certainly read
  1332. # $(mkdir_p) $(DESTDIR)$(somedir)
  1333. # so it does not work when $(somedir) is undefined and
  1334. # $(DESTDIR) is not.
  1335. # To support the latter case, we have to write
  1336. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1337. # so the `.' trick is pointless.
  1338. mkdir_p='mkdir -p --'
  1339. else
  1340. # On NextStep and OpenStep, the `mkdir' command does not
  1341. # recognize any option. It will interpret all options as
  1342. # directories to create, and then abort because `.' already
  1343. # exists.
  1344. for d in ./-p ./--version;
  1345. do
  1346. test -d $d && rmdir $d
  1347. done
  1348. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1349. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1350. mkdir_p='$(mkinstalldirs)'
  1351. else
  1352. mkdir_p='$(install_sh) -d'
  1353. fi
  1354. fi
  1355. for ac_prog in gawk mawk nawk awk
  1356. do
  1357. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1358. set dummy $ac_prog; ac_word=$2
  1359. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1361. if test "${ac_cv_prog_AWK+set}" = set; then
  1362. echo $ECHO_N "(cached) $ECHO_C" >&6
  1363. else
  1364. if test -n "$AWK"; then
  1365. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1366. else
  1367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1368. for as_dir in $PATH
  1369. do
  1370. IFS=$as_save_IFS
  1371. test -z "$as_dir" && as_dir=.
  1372. for ac_exec_ext in '' $ac_executable_extensions; do
  1373. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1374. ac_cv_prog_AWK="$ac_prog"
  1375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1376. break 2
  1377. fi
  1378. done
  1379. done
  1380. fi
  1381. fi
  1382. AWK=$ac_cv_prog_AWK
  1383. if test -n "$AWK"; then
  1384. echo "$as_me:$LINENO: result: $AWK" >&5
  1385. echo "${ECHO_T}$AWK" >&6
  1386. else
  1387. echo "$as_me:$LINENO: result: no" >&5
  1388. echo "${ECHO_T}no" >&6
  1389. fi
  1390. test -n "$AWK" && break
  1391. done
  1392. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1393. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1394. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1395. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1396. echo $ECHO_N "(cached) $ECHO_C" >&6
  1397. else
  1398. cat >conftest.make <<\_ACEOF
  1399. all:
  1400. @echo 'ac_maketemp="$(MAKE)"'
  1401. _ACEOF
  1402. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1403. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1404. if test -n "$ac_maketemp"; then
  1405. eval ac_cv_prog_make_${ac_make}_set=yes
  1406. else
  1407. eval ac_cv_prog_make_${ac_make}_set=no
  1408. fi
  1409. rm -f conftest.make
  1410. fi
  1411. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1412. echo "$as_me:$LINENO: result: yes" >&5
  1413. echo "${ECHO_T}yes" >&6
  1414. SET_MAKE=
  1415. else
  1416. echo "$as_me:$LINENO: result: no" >&5
  1417. echo "${ECHO_T}no" >&6
  1418. SET_MAKE="MAKE=${MAKE-make}"
  1419. fi
  1420. rm -rf .tst 2>/dev/null
  1421. mkdir .tst 2>/dev/null
  1422. if test -d .tst; then
  1423. am__leading_dot=.
  1424. else
  1425. am__leading_dot=_
  1426. fi
  1427. rmdir .tst 2>/dev/null
  1428. # test to see if srcdir already configured
  1429. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1430. test -f $srcdir/config.status; then
  1431. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1432. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1433. { (exit 1); exit 1; }; }
  1434. fi
  1435. # test whether we have cygpath
  1436. if test -z "$CYGPATH_W"; then
  1437. if (cygpath --version) >/dev/null 2>/dev/null; then
  1438. CYGPATH_W='cygpath -w'
  1439. else
  1440. CYGPATH_W=echo
  1441. fi
  1442. fi
  1443. # Define the identity of the package.
  1444. PACKAGE='aria2c'
  1445. VERSION='0.3.0'
  1446. cat >>confdefs.h <<_ACEOF
  1447. #define PACKAGE "$PACKAGE"
  1448. _ACEOF
  1449. cat >>confdefs.h <<_ACEOF
  1450. #define VERSION "$VERSION"
  1451. _ACEOF
  1452. # Some tools Automake needs.
  1453. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1454. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1455. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1456. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1457. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1458. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1459. # Installed binaries are usually stripped using `strip' when the user
  1460. # run `make install-strip'. However `strip' might not be the right
  1461. # tool to use in cross-compilation environments, therefore Automake
  1462. # will honor the `STRIP' environment variable to overrule this program.
  1463. if test "$cross_compiling" != no; then
  1464. if test -n "$ac_tool_prefix"; then
  1465. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1466. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1467. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1468. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1469. if test "${ac_cv_prog_STRIP+set}" = set; then
  1470. echo $ECHO_N "(cached) $ECHO_C" >&6
  1471. else
  1472. if test -n "$STRIP"; then
  1473. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1474. else
  1475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1476. for as_dir in $PATH
  1477. do
  1478. IFS=$as_save_IFS
  1479. test -z "$as_dir" && as_dir=.
  1480. for ac_exec_ext in '' $ac_executable_extensions; do
  1481. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1482. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1483. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1484. break 2
  1485. fi
  1486. done
  1487. done
  1488. fi
  1489. fi
  1490. STRIP=$ac_cv_prog_STRIP
  1491. if test -n "$STRIP"; then
  1492. echo "$as_me:$LINENO: result: $STRIP" >&5
  1493. echo "${ECHO_T}$STRIP" >&6
  1494. else
  1495. echo "$as_me:$LINENO: result: no" >&5
  1496. echo "${ECHO_T}no" >&6
  1497. fi
  1498. fi
  1499. if test -z "$ac_cv_prog_STRIP"; then
  1500. ac_ct_STRIP=$STRIP
  1501. # Extract the first word of "strip", so it can be a program name with args.
  1502. set dummy strip; ac_word=$2
  1503. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1505. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1506. echo $ECHO_N "(cached) $ECHO_C" >&6
  1507. else
  1508. if test -n "$ac_ct_STRIP"; then
  1509. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1510. else
  1511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1512. for as_dir in $PATH
  1513. do
  1514. IFS=$as_save_IFS
  1515. test -z "$as_dir" && as_dir=.
  1516. for ac_exec_ext in '' $ac_executable_extensions; do
  1517. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1518. ac_cv_prog_ac_ct_STRIP="strip"
  1519. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1520. break 2
  1521. fi
  1522. done
  1523. done
  1524. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1525. fi
  1526. fi
  1527. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1528. if test -n "$ac_ct_STRIP"; then
  1529. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1530. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1531. else
  1532. echo "$as_me:$LINENO: result: no" >&5
  1533. echo "${ECHO_T}no" >&6
  1534. fi
  1535. STRIP=$ac_ct_STRIP
  1536. else
  1537. STRIP="$ac_cv_prog_STRIP"
  1538. fi
  1539. fi
  1540. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1541. # We need awk for the "check" target. The system "awk" is bad on
  1542. # some platforms.
  1543. # Always define AMTAR for backward compatibility.
  1544. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1545. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1546. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1547. if test "${with_cppunit_prefix+set}" = set; then
  1548. withval="$with_cppunit_prefix"
  1549. cppunit_config_prefix="$withval"
  1550. else
  1551. cppunit_config_prefix=""
  1552. fi;
  1553. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1554. if test "${with_cppunit_exec_prefix+set}" = set; then
  1555. withval="$with_cppunit_exec_prefix"
  1556. cppunit_config_exec_prefix="$withval"
  1557. else
  1558. cppunit_config_exec_prefix=""
  1559. fi;
  1560. if test x$cppunit_config_exec_prefix != x ; then
  1561. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1562. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1563. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1564. fi
  1565. fi
  1566. if test x$cppunit_config_prefix != x ; then
  1567. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1568. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1569. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1570. fi
  1571. fi
  1572. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1573. set dummy cppunit-config; ac_word=$2
  1574. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1576. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. case $CPPUNIT_CONFIG in
  1580. [\\/]* | ?:[\\/]*)
  1581. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1582. ;;
  1583. *)
  1584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1585. for as_dir in $PATH
  1586. do
  1587. IFS=$as_save_IFS
  1588. test -z "$as_dir" && as_dir=.
  1589. for ac_exec_ext in '' $ac_executable_extensions; do
  1590. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1591. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1592. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1593. break 2
  1594. fi
  1595. done
  1596. done
  1597. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1598. ;;
  1599. esac
  1600. fi
  1601. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1602. if test -n "$CPPUNIT_CONFIG"; then
  1603. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1604. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1605. else
  1606. echo "$as_me:$LINENO: result: no" >&5
  1607. echo "${ECHO_T}no" >&6
  1608. fi
  1609. cppunit_version_min=1.10.2
  1610. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1611. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1612. no_cppunit=""
  1613. if test "$CPPUNIT_CONFIG" = "no" ; then
  1614. no_cppunit=yes
  1615. else
  1616. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1617. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1618. cppunit_version=`$CPPUNIT_CONFIG --version`
  1619. cppunit_major_version=`echo $cppunit_version | \
  1620. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1621. cppunit_minor_version=`echo $cppunit_version | \
  1622. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1623. cppunit_micro_version=`echo $cppunit_version | \
  1624. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1625. cppunit_major_min=`echo $cppunit_version_min | \
  1626. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1627. cppunit_minor_min=`echo $cppunit_version_min | \
  1628. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1629. cppunit_micro_min=`echo $cppunit_version_min | \
  1630. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1631. cppunit_version_proper=`expr \
  1632. $cppunit_major_version \> $cppunit_major_min \| \
  1633. $cppunit_major_version \= $cppunit_major_min \& \
  1634. $cppunit_minor_version \> $cppunit_minor_min \| \
  1635. $cppunit_major_version \= $cppunit_major_min \& \
  1636. $cppunit_minor_version \= $cppunit_minor_min \& \
  1637. $cppunit_micro_version \>= $cppunit_micro_min `
  1638. if test "$cppunit_version_proper" = "1" ; then
  1639. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1640. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1641. else
  1642. echo "$as_me:$LINENO: result: no" >&5
  1643. echo "${ECHO_T}no" >&6
  1644. no_cppunit=yes
  1645. fi
  1646. fi
  1647. if test "x$no_cppunit" = x ; then
  1648. :
  1649. else
  1650. CPPUNIT_CFLAGS=""
  1651. CPPUNIT_LIBS=""
  1652. :
  1653. fi
  1654. ac_config_headers="$ac_config_headers config.h"
  1655. # Set localedir
  1656. localedir=${datadir}/locale
  1657. # Checks for arguments.
  1658. # Check whether --enable-ssl or --disable-ssl was given.
  1659. if test "${enable_ssl+set}" = set; then
  1660. enableval="$enable_ssl"
  1661. enable_ssl=$enableval
  1662. else
  1663. enable_ssl=yes
  1664. fi;
  1665. # Checks for programs.
  1666. ac_ext=cc
  1667. ac_cpp='$CXXCPP $CPPFLAGS'
  1668. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1669. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1670. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1671. if test -n "$ac_tool_prefix"; then
  1672. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1673. do
  1674. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1675. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1676. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1677. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1678. if test "${ac_cv_prog_CXX+set}" = set; then
  1679. echo $ECHO_N "(cached) $ECHO_C" >&6
  1680. else
  1681. if test -n "$CXX"; then
  1682. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1683. else
  1684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1685. for as_dir in $PATH
  1686. do
  1687. IFS=$as_save_IFS
  1688. test -z "$as_dir" && as_dir=.
  1689. for ac_exec_ext in '' $ac_executable_extensions; do
  1690. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1691. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1692. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1693. break 2
  1694. fi
  1695. done
  1696. done
  1697. fi
  1698. fi
  1699. CXX=$ac_cv_prog_CXX
  1700. if test -n "$CXX"; then
  1701. echo "$as_me:$LINENO: result: $CXX" >&5
  1702. echo "${ECHO_T}$CXX" >&6
  1703. else
  1704. echo "$as_me:$LINENO: result: no" >&5
  1705. echo "${ECHO_T}no" >&6
  1706. fi
  1707. test -n "$CXX" && break
  1708. done
  1709. fi
  1710. if test -z "$CXX"; then
  1711. ac_ct_CXX=$CXX
  1712. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1713. do
  1714. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1715. set dummy $ac_prog; ac_word=$2
  1716. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1717. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1718. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1719. echo $ECHO_N "(cached) $ECHO_C" >&6
  1720. else
  1721. if test -n "$ac_ct_CXX"; then
  1722. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1723. else
  1724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1725. for as_dir in $PATH
  1726. do
  1727. IFS=$as_save_IFS
  1728. test -z "$as_dir" && as_dir=.
  1729. for ac_exec_ext in '' $ac_executable_extensions; do
  1730. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1731. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1732. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1733. break 2
  1734. fi
  1735. done
  1736. done
  1737. fi
  1738. fi
  1739. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1740. if test -n "$ac_ct_CXX"; then
  1741. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1742. echo "${ECHO_T}$ac_ct_CXX" >&6
  1743. else
  1744. echo "$as_me:$LINENO: result: no" >&5
  1745. echo "${ECHO_T}no" >&6
  1746. fi
  1747. test -n "$ac_ct_CXX" && break
  1748. done
  1749. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1750. CXX=$ac_ct_CXX
  1751. fi
  1752. # Provide some information about the compiler.
  1753. echo "$as_me:$LINENO:" \
  1754. "checking for C++ compiler version" >&5
  1755. ac_compiler=`set X $ac_compile; echo $2`
  1756. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1757. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1758. ac_status=$?
  1759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1760. (exit $ac_status); }
  1761. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1762. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1763. ac_status=$?
  1764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1765. (exit $ac_status); }
  1766. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1767. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1768. ac_status=$?
  1769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1770. (exit $ac_status); }
  1771. cat >conftest.$ac_ext <<_ACEOF
  1772. /* confdefs.h. */
  1773. _ACEOF
  1774. cat confdefs.h >>conftest.$ac_ext
  1775. cat >>conftest.$ac_ext <<_ACEOF
  1776. /* end confdefs.h. */
  1777. int
  1778. main ()
  1779. {
  1780. ;
  1781. return 0;
  1782. }
  1783. _ACEOF
  1784. ac_clean_files_save=$ac_clean_files
  1785. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1786. # Try to create an executable without -o first, disregard a.out.
  1787. # It will help us diagnose broken compilers, and finding out an intuition
  1788. # of exeext.
  1789. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1790. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1791. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1792. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1793. (eval $ac_link_default) 2>&5
  1794. ac_status=$?
  1795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1796. (exit $ac_status); }; then
  1797. # Find the output, starting from the most likely. This scheme is
  1798. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1799. # resort.
  1800. # Be careful to initialize this variable, since it used to be cached.
  1801. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1802. ac_cv_exeext=
  1803. # b.out is created by i960 compilers.
  1804. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1805. do
  1806. test -f "$ac_file" || continue
  1807. case $ac_file in
  1808. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1809. ;;
  1810. conftest.$ac_ext )
  1811. # This is the source file.
  1812. ;;
  1813. [ab].out )
  1814. # We found the default executable, but exeext='' is most
  1815. # certainly right.
  1816. break;;
  1817. *.* )
  1818. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1819. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1820. # but it would be cool to find out if it's true. Does anybody
  1821. # maintain Libtool? --akim.
  1822. export ac_cv_exeext
  1823. break;;
  1824. * )
  1825. break;;
  1826. esac
  1827. done
  1828. else
  1829. echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1832. See \`config.log' for more details." >&5
  1833. echo "$as_me: error: C++ compiler cannot create executables
  1834. See \`config.log' for more details." >&2;}
  1835. { (exit 77); exit 77; }; }
  1836. fi
  1837. ac_exeext=$ac_cv_exeext
  1838. echo "$as_me:$LINENO: result: $ac_file" >&5
  1839. echo "${ECHO_T}$ac_file" >&6
  1840. # Check the compiler produces executables we can run. If not, either
  1841. # the compiler is broken, or we cross compile.
  1842. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1843. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1844. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1845. # If not cross compiling, check that we can run a simple program.
  1846. if test "$cross_compiling" != yes; then
  1847. if { ac_try='./$ac_file'
  1848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1849. (eval $ac_try) 2>&5
  1850. ac_status=$?
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); }; }; then
  1853. cross_compiling=no
  1854. else
  1855. if test "$cross_compiling" = maybe; then
  1856. cross_compiling=yes
  1857. else
  1858. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1859. If you meant to cross compile, use \`--host'.
  1860. See \`config.log' for more details." >&5
  1861. echo "$as_me: error: cannot run C++ compiled programs.
  1862. If you meant to cross compile, use \`--host'.
  1863. See \`config.log' for more details." >&2;}
  1864. { (exit 1); exit 1; }; }
  1865. fi
  1866. fi
  1867. fi
  1868. echo "$as_me:$LINENO: result: yes" >&5
  1869. echo "${ECHO_T}yes" >&6
  1870. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1871. ac_clean_files=$ac_clean_files_save
  1872. # Check the compiler produces executables we can run. If not, either
  1873. # the compiler is broken, or we cross compile.
  1874. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1875. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1876. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1877. echo "${ECHO_T}$cross_compiling" >&6
  1878. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1879. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1880. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1881. (eval $ac_link) 2>&5
  1882. ac_status=$?
  1883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1884. (exit $ac_status); }; then
  1885. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1886. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1887. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1888. # `rm'.
  1889. for ac_file in conftest.exe conftest conftest.*; do
  1890. test -f "$ac_file" || continue
  1891. case $ac_file in
  1892. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1893. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1894. export ac_cv_exeext
  1895. break;;
  1896. * ) break;;
  1897. esac
  1898. done
  1899. else
  1900. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1901. See \`config.log' for more details." >&5
  1902. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1903. See \`config.log' for more details." >&2;}
  1904. { (exit 1); exit 1; }; }
  1905. fi
  1906. rm -f conftest$ac_cv_exeext
  1907. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1908. echo "${ECHO_T}$ac_cv_exeext" >&6
  1909. rm -f conftest.$ac_ext
  1910. EXEEXT=$ac_cv_exeext
  1911. ac_exeext=$EXEEXT
  1912. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1913. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1914. if test "${ac_cv_objext+set}" = set; then
  1915. echo $ECHO_N "(cached) $ECHO_C" >&6
  1916. else
  1917. cat >conftest.$ac_ext <<_ACEOF
  1918. /* confdefs.h. */
  1919. _ACEOF
  1920. cat confdefs.h >>conftest.$ac_ext
  1921. cat >>conftest.$ac_ext <<_ACEOF
  1922. /* end confdefs.h. */
  1923. int
  1924. main ()
  1925. {
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. rm -f conftest.o conftest.obj
  1931. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1932. (eval $ac_compile) 2>&5
  1933. ac_status=$?
  1934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1935. (exit $ac_status); }; then
  1936. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1937. case $ac_file in
  1938. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1939. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1940. break;;
  1941. esac
  1942. done
  1943. else
  1944. echo "$as_me: failed program was:" >&5
  1945. sed 's/^/| /' conftest.$ac_ext >&5
  1946. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1947. See \`config.log' for more details." >&5
  1948. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1949. See \`config.log' for more details." >&2;}
  1950. { (exit 1); exit 1; }; }
  1951. fi
  1952. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1953. fi
  1954. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1955. echo "${ECHO_T}$ac_cv_objext" >&6
  1956. OBJEXT=$ac_cv_objext
  1957. ac_objext=$OBJEXT
  1958. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1959. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1960. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1961. echo $ECHO_N "(cached) $ECHO_C" >&6
  1962. else
  1963. cat >conftest.$ac_ext <<_ACEOF
  1964. /* confdefs.h. */
  1965. _ACEOF
  1966. cat confdefs.h >>conftest.$ac_ext
  1967. cat >>conftest.$ac_ext <<_ACEOF
  1968. /* end confdefs.h. */
  1969. int
  1970. main ()
  1971. {
  1972. #ifndef __GNUC__
  1973. choke me
  1974. #endif
  1975. ;
  1976. return 0;
  1977. }
  1978. _ACEOF
  1979. rm -f conftest.$ac_objext
  1980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1981. (eval $ac_compile) 2>conftest.er1
  1982. ac_status=$?
  1983. grep -v '^ *+' conftest.er1 >conftest.err
  1984. rm -f conftest.er1
  1985. cat conftest.err >&5
  1986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1987. (exit $ac_status); } &&
  1988. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1990. (eval $ac_try) 2>&5
  1991. ac_status=$?
  1992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1993. (exit $ac_status); }; } &&
  1994. { ac_try='test -s conftest.$ac_objext'
  1995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1996. (eval $ac_try) 2>&5
  1997. ac_status=$?
  1998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1999. (exit $ac_status); }; }; then
  2000. ac_compiler_gnu=yes
  2001. else
  2002. echo "$as_me: failed program was:" >&5
  2003. sed 's/^/| /' conftest.$ac_ext >&5
  2004. ac_compiler_gnu=no
  2005. fi
  2006. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2007. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2008. fi
  2009. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2010. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2011. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2012. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2013. ac_save_CXXFLAGS=$CXXFLAGS
  2014. CXXFLAGS="-g"
  2015. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2016. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2017. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2018. echo $ECHO_N "(cached) $ECHO_C" >&6
  2019. else
  2020. cat >conftest.$ac_ext <<_ACEOF
  2021. /* confdefs.h. */
  2022. _ACEOF
  2023. cat confdefs.h >>conftest.$ac_ext
  2024. cat >>conftest.$ac_ext <<_ACEOF
  2025. /* end confdefs.h. */
  2026. int
  2027. main ()
  2028. {
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. rm -f conftest.$ac_objext
  2034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2035. (eval $ac_compile) 2>conftest.er1
  2036. ac_status=$?
  2037. grep -v '^ *+' conftest.er1 >conftest.err
  2038. rm -f conftest.er1
  2039. cat conftest.err >&5
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); } &&
  2042. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2044. (eval $ac_try) 2>&5
  2045. ac_status=$?
  2046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2047. (exit $ac_status); }; } &&
  2048. { ac_try='test -s conftest.$ac_objext'
  2049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2050. (eval $ac_try) 2>&5
  2051. ac_status=$?
  2052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2053. (exit $ac_status); }; }; then
  2054. ac_cv_prog_cxx_g=yes
  2055. else
  2056. echo "$as_me: failed program was:" >&5
  2057. sed 's/^/| /' conftest.$ac_ext >&5
  2058. ac_cv_prog_cxx_g=no
  2059. fi
  2060. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2061. fi
  2062. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2063. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2064. if test "$ac_test_CXXFLAGS" = set; then
  2065. CXXFLAGS=$ac_save_CXXFLAGS
  2066. elif test $ac_cv_prog_cxx_g = yes; then
  2067. if test "$GXX" = yes; then
  2068. CXXFLAGS="-g -O2"
  2069. else
  2070. CXXFLAGS="-g"
  2071. fi
  2072. else
  2073. if test "$GXX" = yes; then
  2074. CXXFLAGS="-O2"
  2075. else
  2076. CXXFLAGS=
  2077. fi
  2078. fi
  2079. for ac_declaration in \
  2080. '' \
  2081. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2082. 'extern "C" void std::exit (int); using std::exit;' \
  2083. 'extern "C" void exit (int) throw ();' \
  2084. 'extern "C" void exit (int);' \
  2085. 'void exit (int);'
  2086. do
  2087. cat >conftest.$ac_ext <<_ACEOF
  2088. /* confdefs.h. */
  2089. _ACEOF
  2090. cat confdefs.h >>conftest.$ac_ext
  2091. cat >>conftest.$ac_ext <<_ACEOF
  2092. /* end confdefs.h. */
  2093. $ac_declaration
  2094. #include <stdlib.h>
  2095. int
  2096. main ()
  2097. {
  2098. exit (42);
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. rm -f conftest.$ac_objext
  2104. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2105. (eval $ac_compile) 2>conftest.er1
  2106. ac_status=$?
  2107. grep -v '^ *+' conftest.er1 >conftest.err
  2108. rm -f conftest.er1
  2109. cat conftest.err >&5
  2110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2111. (exit $ac_status); } &&
  2112. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2114. (eval $ac_try) 2>&5
  2115. ac_status=$?
  2116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2117. (exit $ac_status); }; } &&
  2118. { ac_try='test -s conftest.$ac_objext'
  2119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2120. (eval $ac_try) 2>&5
  2121. ac_status=$?
  2122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2123. (exit $ac_status); }; }; then
  2124. :
  2125. else
  2126. echo "$as_me: failed program was:" >&5
  2127. sed 's/^/| /' conftest.$ac_ext >&5
  2128. continue
  2129. fi
  2130. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2131. cat >conftest.$ac_ext <<_ACEOF
  2132. /* confdefs.h. */
  2133. _ACEOF
  2134. cat confdefs.h >>conftest.$ac_ext
  2135. cat >>conftest.$ac_ext <<_ACEOF
  2136. /* end confdefs.h. */
  2137. $ac_declaration
  2138. int
  2139. main ()
  2140. {
  2141. exit (42);
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. rm -f conftest.$ac_objext
  2147. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2148. (eval $ac_compile) 2>conftest.er1
  2149. ac_status=$?
  2150. grep -v '^ *+' conftest.er1 >conftest.err
  2151. rm -f conftest.er1
  2152. cat conftest.err >&5
  2153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); } &&
  2155. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2157. (eval $ac_try) 2>&5
  2158. ac_status=$?
  2159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2160. (exit $ac_status); }; } &&
  2161. { ac_try='test -s conftest.$ac_objext'
  2162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2163. (eval $ac_try) 2>&5
  2164. ac_status=$?
  2165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2166. (exit $ac_status); }; }; then
  2167. break
  2168. else
  2169. echo "$as_me: failed program was:" >&5
  2170. sed 's/^/| /' conftest.$ac_ext >&5
  2171. fi
  2172. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2173. done
  2174. rm -f conftest*
  2175. if test -n "$ac_declaration"; then
  2176. echo '#ifdef __cplusplus' >>confdefs.h
  2177. echo $ac_declaration >>confdefs.h
  2178. echo '#endif' >>confdefs.h
  2179. fi
  2180. ac_ext=c
  2181. ac_cpp='$CPP $CPPFLAGS'
  2182. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2183. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2184. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2185. DEPDIR="${am__leading_dot}deps"
  2186. ac_config_commands="$ac_config_commands depfiles"
  2187. am_make=${MAKE-make}
  2188. cat > confinc << 'END'
  2189. am__doit:
  2190. @echo done
  2191. .PHONY: am__doit
  2192. END
  2193. # If we don't find an include directive, just comment out the code.
  2194. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2195. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2196. am__include="#"
  2197. am__quote=
  2198. _am_result=none
  2199. # First try GNU make style include.
  2200. echo "include confinc" > confmf
  2201. # We grep out `Entering directory' and `Leaving directory'
  2202. # messages which can occur if `w' ends up in MAKEFLAGS.
  2203. # In particular we don't look at `^make:' because GNU make might
  2204. # be invoked under some other name (usually "gmake"), in which
  2205. # case it prints its new name instead of `make'.
  2206. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2207. am__include=include
  2208. am__quote=
  2209. _am_result=GNU
  2210. fi
  2211. # Now try BSD make style include.
  2212. if test "$am__include" = "#"; then
  2213. echo '.include "confinc"' > confmf
  2214. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2215. am__include=.include
  2216. am__quote="\""
  2217. _am_result=BSD
  2218. fi
  2219. fi
  2220. echo "$as_me:$LINENO: result: $_am_result" >&5
  2221. echo "${ECHO_T}$_am_result" >&6
  2222. rm -f confinc confmf
  2223. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2224. if test "${enable_dependency_tracking+set}" = set; then
  2225. enableval="$enable_dependency_tracking"
  2226. fi;
  2227. if test "x$enable_dependency_tracking" != xno; then
  2228. am_depcomp="$ac_aux_dir/depcomp"
  2229. AMDEPBACKSLASH='\'
  2230. fi
  2231. if test "x$enable_dependency_tracking" != xno; then
  2232. AMDEP_TRUE=
  2233. AMDEP_FALSE='#'
  2234. else
  2235. AMDEP_TRUE='#'
  2236. AMDEP_FALSE=
  2237. fi
  2238. depcc="$CXX" am_compiler_list=
  2239. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2240. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2241. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2242. echo $ECHO_N "(cached) $ECHO_C" >&6
  2243. else
  2244. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2245. # We make a subdir and do the tests there. Otherwise we can end up
  2246. # making bogus files that we don't know about and never remove. For
  2247. # instance it was reported that on HP-UX the gcc test will end up
  2248. # making a dummy file named `D' -- because `-MD' means `put the output
  2249. # in D'.
  2250. mkdir conftest.dir
  2251. # Copy depcomp to subdir because otherwise we won't find it if we're
  2252. # using a relative directory.
  2253. cp "$am_depcomp" conftest.dir
  2254. cd conftest.dir
  2255. # We will build objects and dependencies in a subdirectory because
  2256. # it helps to detect inapplicable dependency modes. For instance
  2257. # both Tru64's cc and ICC support -MD to output dependencies as a
  2258. # side effect of compilation, but ICC will put the dependencies in
  2259. # the current directory while Tru64 will put them in the object
  2260. # directory.
  2261. mkdir sub
  2262. am_cv_CXX_dependencies_compiler_type=none
  2263. if test "$am_compiler_list" = ""; then
  2264. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2265. fi
  2266. for depmode in $am_compiler_list; do
  2267. # Setup a source with many dependencies, because some compilers
  2268. # like to wrap large dependency lists on column 80 (with \), and
  2269. # we should not choose a depcomp mode which is confused by this.
  2270. #
  2271. # We need to recreate these files for each test, as the compiler may
  2272. # overwrite some of them when testing with obscure command lines.
  2273. # This happens at least with the AIX C compiler.
  2274. : > sub/conftest.c
  2275. for i in 1 2 3 4 5 6; do
  2276. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2277. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2278. # Solaris 8's {/usr,}/bin/sh.
  2279. touch sub/conftst$i.h
  2280. done
  2281. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2282. case $depmode in
  2283. nosideeffect)
  2284. # after this tag, mechanisms are not by side-effect, so they'll
  2285. # only be used when explicitly requested
  2286. if test "x$enable_dependency_tracking" = xyes; then
  2287. continue
  2288. else
  2289. break
  2290. fi
  2291. ;;
  2292. none) break ;;
  2293. esac
  2294. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2295. # mode. It turns out that the SunPro C++ compiler does not properly
  2296. # handle `-M -o', and we need to detect this.
  2297. if depmode=$depmode \
  2298. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2299. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2300. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2301. >/dev/null 2>conftest.err &&
  2302. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2303. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2304. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2305. # icc doesn't choke on unknown options, it will just issue warnings
  2306. # or remarks (even with -Werror). So we grep stderr for any message
  2307. # that says an option was ignored or not supported.
  2308. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2309. # icc: Command line warning: ignoring option '-M'; no argument required
  2310. # The diagnosis changed in icc 8.0:
  2311. # icc: Command line remark: option '-MP' not supported
  2312. if (grep 'ignoring option' conftest.err ||
  2313. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2314. am_cv_CXX_dependencies_compiler_type=$depmode
  2315. break
  2316. fi
  2317. fi
  2318. done
  2319. cd ..
  2320. rm -rf conftest.dir
  2321. else
  2322. am_cv_CXX_dependencies_compiler_type=none
  2323. fi
  2324. fi
  2325. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2326. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2327. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2328. if
  2329. test "x$enable_dependency_tracking" != xno \
  2330. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2331. am__fastdepCXX_TRUE=
  2332. am__fastdepCXX_FALSE='#'
  2333. else
  2334. am__fastdepCXX_TRUE='#'
  2335. am__fastdepCXX_FALSE=
  2336. fi
  2337. ac_ext=c
  2338. ac_cpp='$CPP $CPPFLAGS'
  2339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2342. if test -n "$ac_tool_prefix"; then
  2343. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2344. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2345. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2346. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2347. if test "${ac_cv_prog_CC+set}" = set; then
  2348. echo $ECHO_N "(cached) $ECHO_C" >&6
  2349. else
  2350. if test -n "$CC"; then
  2351. ac_cv_prog_CC="$CC" # Let the user override the test.
  2352. else
  2353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2354. for as_dir in $PATH
  2355. do
  2356. IFS=$as_save_IFS
  2357. test -z "$as_dir" && as_dir=.
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2360. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2361. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. fi
  2367. fi
  2368. CC=$ac_cv_prog_CC
  2369. if test -n "$CC"; then
  2370. echo "$as_me:$LINENO: result: $CC" >&5
  2371. echo "${ECHO_T}$CC" >&6
  2372. else
  2373. echo "$as_me:$LINENO: result: no" >&5
  2374. echo "${ECHO_T}no" >&6
  2375. fi
  2376. fi
  2377. if test -z "$ac_cv_prog_CC"; then
  2378. ac_ct_CC=$CC
  2379. # Extract the first word of "gcc", so it can be a program name with args.
  2380. set dummy gcc; ac_word=$2
  2381. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2382. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2383. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2384. echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386. if test -n "$ac_ct_CC"; then
  2387. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2396. ac_cv_prog_ac_ct_CC="gcc"
  2397. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2398. break 2
  2399. fi
  2400. done
  2401. done
  2402. fi
  2403. fi
  2404. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2405. if test -n "$ac_ct_CC"; then
  2406. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2407. echo "${ECHO_T}$ac_ct_CC" >&6
  2408. else
  2409. echo "$as_me:$LINENO: result: no" >&5
  2410. echo "${ECHO_T}no" >&6
  2411. fi
  2412. CC=$ac_ct_CC
  2413. else
  2414. CC="$ac_cv_prog_CC"
  2415. fi
  2416. if test -z "$CC"; then
  2417. if test -n "$ac_tool_prefix"; then
  2418. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2419. set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
  2423. echo $ECHO_N "(cached) $ECHO_C" >&6
  2424. else
  2425. if test -n "$CC"; then
  2426. ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
  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. CC=$ac_cv_prog_CC
  2444. if test -n "$CC"; then
  2445. echo "$as_me:$LINENO: result: $CC" >&5
  2446. echo "${ECHO_T}$CC" >&6
  2447. else
  2448. echo "$as_me:$LINENO: result: no" >&5
  2449. echo "${ECHO_T}no" >&6
  2450. fi
  2451. fi
  2452. if test -z "$ac_cv_prog_CC"; then
  2453. ac_ct_CC=$CC
  2454. # Extract the first word of "cc", so it can be a program name with args.
  2455. set dummy cc; ac_word=$2
  2456. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2458. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2459. echo $ECHO_N "(cached) $ECHO_C" >&6
  2460. else
  2461. if test -n "$ac_ct_CC"; then
  2462. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2463. else
  2464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2465. for as_dir in $PATH
  2466. do
  2467. IFS=$as_save_IFS
  2468. test -z "$as_dir" && as_dir=.
  2469. for ac_exec_ext in '' $ac_executable_extensions; do
  2470. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2471. ac_cv_prog_ac_ct_CC="cc"
  2472. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2473. break 2
  2474. fi
  2475. done
  2476. done
  2477. fi
  2478. fi
  2479. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2480. if test -n "$ac_ct_CC"; then
  2481. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2482. echo "${ECHO_T}$ac_ct_CC" >&6
  2483. else
  2484. echo "$as_me:$LINENO: result: no" >&5
  2485. echo "${ECHO_T}no" >&6
  2486. fi
  2487. CC=$ac_ct_CC
  2488. else
  2489. CC="$ac_cv_prog_CC"
  2490. fi
  2491. fi
  2492. if test -z "$CC"; then
  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_CC+set}" = set; then
  2498. echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500. if test -n "$CC"; then
  2501. ac_cv_prog_CC="$CC" # Let the user override the test.
  2502. else
  2503. ac_prog_rejected=no
  2504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2505. for as_dir in $PATH
  2506. do
  2507. IFS=$as_save_IFS
  2508. test -z "$as_dir" && as_dir=.
  2509. for ac_exec_ext in '' $ac_executable_extensions; do
  2510. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2511. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2512. ac_prog_rejected=yes
  2513. continue
  2514. fi
  2515. ac_cv_prog_CC="cc"
  2516. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2517. break 2
  2518. fi
  2519. done
  2520. done
  2521. if test $ac_prog_rejected = yes; then
  2522. # We found a bogon in the path, so make sure we never use it.
  2523. set dummy $ac_cv_prog_CC
  2524. shift
  2525. if test $# != 0; then
  2526. # We chose a different compiler from the bogus one.
  2527. # However, it has the same basename, so the bogon will be chosen
  2528. # first if we set CC to just the basename; use the full file name.
  2529. shift
  2530. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2531. fi
  2532. fi
  2533. fi
  2534. fi
  2535. CC=$ac_cv_prog_CC
  2536. if test -n "$CC"; then
  2537. echo "$as_me:$LINENO: result: $CC" >&5
  2538. echo "${ECHO_T}$CC" >&6
  2539. else
  2540. echo "$as_me:$LINENO: result: no" >&5
  2541. echo "${ECHO_T}no" >&6
  2542. fi
  2543. fi
  2544. if test -z "$CC"; then
  2545. if test -n "$ac_tool_prefix"; then
  2546. for ac_prog in cl
  2547. do
  2548. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2549. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2550. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2551. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2552. if test "${ac_cv_prog_CC+set}" = set; then
  2553. echo $ECHO_N "(cached) $ECHO_C" >&6
  2554. else
  2555. if test -n "$CC"; then
  2556. ac_cv_prog_CC="$CC" # Let the user override the test.
  2557. else
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2565. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2566. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2567. break 2
  2568. fi
  2569. done
  2570. done
  2571. fi
  2572. fi
  2573. CC=$ac_cv_prog_CC
  2574. if test -n "$CC"; then
  2575. echo "$as_me:$LINENO: result: $CC" >&5
  2576. echo "${ECHO_T}$CC" >&6
  2577. else
  2578. echo "$as_me:$LINENO: result: no" >&5
  2579. echo "${ECHO_T}no" >&6
  2580. fi
  2581. test -n "$CC" && break
  2582. done
  2583. fi
  2584. if test -z "$CC"; then
  2585. ac_ct_CC=$CC
  2586. for ac_prog in cl
  2587. do
  2588. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2589. set dummy $ac_prog; ac_word=$2
  2590. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2591. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2592. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2593. echo $ECHO_N "(cached) $ECHO_C" >&6
  2594. else
  2595. if test -n "$ac_ct_CC"; then
  2596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2605. ac_cv_prog_ac_ct_CC="$ac_prog"
  2606. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. fi
  2612. fi
  2613. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2614. if test -n "$ac_ct_CC"; then
  2615. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2616. echo "${ECHO_T}$ac_ct_CC" >&6
  2617. else
  2618. echo "$as_me:$LINENO: result: no" >&5
  2619. echo "${ECHO_T}no" >&6
  2620. fi
  2621. test -n "$ac_ct_CC" && break
  2622. done
  2623. CC=$ac_ct_CC
  2624. fi
  2625. fi
  2626. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2627. See \`config.log' for more details." >&5
  2628. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2629. See \`config.log' for more details." >&2;}
  2630. { (exit 1); exit 1; }; }
  2631. # Provide some information about the compiler.
  2632. echo "$as_me:$LINENO:" \
  2633. "checking for C compiler version" >&5
  2634. ac_compiler=`set X $ac_compile; echo $2`
  2635. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2636. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2637. ac_status=$?
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); }
  2640. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2641. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); }
  2645. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2646. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2647. ac_status=$?
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); }
  2650. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2651. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2652. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2653. echo $ECHO_N "(cached) $ECHO_C" >&6
  2654. else
  2655. cat >conftest.$ac_ext <<_ACEOF
  2656. /* confdefs.h. */
  2657. _ACEOF
  2658. cat confdefs.h >>conftest.$ac_ext
  2659. cat >>conftest.$ac_ext <<_ACEOF
  2660. /* end confdefs.h. */
  2661. int
  2662. main ()
  2663. {
  2664. #ifndef __GNUC__
  2665. choke me
  2666. #endif
  2667. ;
  2668. return 0;
  2669. }
  2670. _ACEOF
  2671. rm -f conftest.$ac_objext
  2672. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2673. (eval $ac_compile) 2>conftest.er1
  2674. ac_status=$?
  2675. grep -v '^ *+' conftest.er1 >conftest.err
  2676. rm -f conftest.er1
  2677. cat conftest.err >&5
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); } &&
  2680. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2682. (eval $ac_try) 2>&5
  2683. ac_status=$?
  2684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685. (exit $ac_status); }; } &&
  2686. { ac_try='test -s conftest.$ac_objext'
  2687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2688. (eval $ac_try) 2>&5
  2689. ac_status=$?
  2690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2691. (exit $ac_status); }; }; then
  2692. ac_compiler_gnu=yes
  2693. else
  2694. echo "$as_me: failed program was:" >&5
  2695. sed 's/^/| /' conftest.$ac_ext >&5
  2696. ac_compiler_gnu=no
  2697. fi
  2698. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2699. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2700. fi
  2701. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2702. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2703. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2704. ac_test_CFLAGS=${CFLAGS+set}
  2705. ac_save_CFLAGS=$CFLAGS
  2706. CFLAGS="-g"
  2707. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2708. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2709. if test "${ac_cv_prog_cc_g+set}" = set; then
  2710. echo $ECHO_N "(cached) $ECHO_C" >&6
  2711. else
  2712. cat >conftest.$ac_ext <<_ACEOF
  2713. /* confdefs.h. */
  2714. _ACEOF
  2715. cat confdefs.h >>conftest.$ac_ext
  2716. cat >>conftest.$ac_ext <<_ACEOF
  2717. /* end confdefs.h. */
  2718. int
  2719. main ()
  2720. {
  2721. ;
  2722. return 0;
  2723. }
  2724. _ACEOF
  2725. rm -f conftest.$ac_objext
  2726. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2727. (eval $ac_compile) 2>conftest.er1
  2728. ac_status=$?
  2729. grep -v '^ *+' conftest.er1 >conftest.err
  2730. rm -f conftest.er1
  2731. cat conftest.err >&5
  2732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2733. (exit $ac_status); } &&
  2734. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2736. (eval $ac_try) 2>&5
  2737. ac_status=$?
  2738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); }; } &&
  2740. { ac_try='test -s conftest.$ac_objext'
  2741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2742. (eval $ac_try) 2>&5
  2743. ac_status=$?
  2744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2745. (exit $ac_status); }; }; then
  2746. ac_cv_prog_cc_g=yes
  2747. else
  2748. echo "$as_me: failed program was:" >&5
  2749. sed 's/^/| /' conftest.$ac_ext >&5
  2750. ac_cv_prog_cc_g=no
  2751. fi
  2752. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2753. fi
  2754. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2755. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2756. if test "$ac_test_CFLAGS" = set; then
  2757. CFLAGS=$ac_save_CFLAGS
  2758. elif test $ac_cv_prog_cc_g = yes; then
  2759. if test "$GCC" = yes; then
  2760. CFLAGS="-g -O2"
  2761. else
  2762. CFLAGS="-g"
  2763. fi
  2764. else
  2765. if test "$GCC" = yes; then
  2766. CFLAGS="-O2"
  2767. else
  2768. CFLAGS=
  2769. fi
  2770. fi
  2771. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2772. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2773. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2774. echo $ECHO_N "(cached) $ECHO_C" >&6
  2775. else
  2776. ac_cv_prog_cc_stdc=no
  2777. ac_save_CC=$CC
  2778. cat >conftest.$ac_ext <<_ACEOF
  2779. /* confdefs.h. */
  2780. _ACEOF
  2781. cat confdefs.h >>conftest.$ac_ext
  2782. cat >>conftest.$ac_ext <<_ACEOF
  2783. /* end confdefs.h. */
  2784. #include <stdarg.h>
  2785. #include <stdio.h>
  2786. #include <sys/types.h>
  2787. #include <sys/stat.h>
  2788. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2789. struct buf { int x; };
  2790. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2791. static char *e (p, i)
  2792. char **p;
  2793. int i;
  2794. {
  2795. return p[i];
  2796. }
  2797. static char *f (char * (*g) (char **, int), char **p, ...)
  2798. {
  2799. char *s;
  2800. va_list v;
  2801. va_start (v,p);
  2802. s = g (p, va_arg (v,int));
  2803. va_end (v);
  2804. return s;
  2805. }
  2806. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2807. function prototypes and stuff, but not '\xHH' hex character constants.
  2808. These don't provoke an error unfortunately, instead are silently treated
  2809. as 'x'. The following induces an error, until -std1 is added to get
  2810. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2811. array size at least. It's necessary to write '\x00'==0 to get something
  2812. that's true only with -std1. */
  2813. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2814. int test (int i, double x);
  2815. struct s1 {int (*f) (int a);};
  2816. struct s2 {int (*f) (double a);};
  2817. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2818. int argc;
  2819. char **argv;
  2820. int
  2821. main ()
  2822. {
  2823. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2824. ;
  2825. return 0;
  2826. }
  2827. _ACEOF
  2828. # Don't try gcc -ansi; that turns off useful extensions and
  2829. # breaks some systems' header files.
  2830. # AIX -qlanglvl=ansi
  2831. # Ultrix and OSF/1 -std1
  2832. # HP-UX 10.20 and later -Ae
  2833. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2834. # SVR4 -Xc -D__EXTENSIONS__
  2835. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2836. do
  2837. CC="$ac_save_CC $ac_arg"
  2838. rm -f conftest.$ac_objext
  2839. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2840. (eval $ac_compile) 2>conftest.er1
  2841. ac_status=$?
  2842. grep -v '^ *+' conftest.er1 >conftest.err
  2843. rm -f conftest.er1
  2844. cat conftest.err >&5
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); } &&
  2847. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2849. (eval $ac_try) 2>&5
  2850. ac_status=$?
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); }; } &&
  2853. { ac_try='test -s conftest.$ac_objext'
  2854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855. (eval $ac_try) 2>&5
  2856. ac_status=$?
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); }; }; then
  2859. ac_cv_prog_cc_stdc=$ac_arg
  2860. break
  2861. else
  2862. echo "$as_me: failed program was:" >&5
  2863. sed 's/^/| /' conftest.$ac_ext >&5
  2864. fi
  2865. rm -f conftest.err conftest.$ac_objext
  2866. done
  2867. rm -f conftest.$ac_ext conftest.$ac_objext
  2868. CC=$ac_save_CC
  2869. fi
  2870. case "x$ac_cv_prog_cc_stdc" in
  2871. x|xno)
  2872. echo "$as_me:$LINENO: result: none needed" >&5
  2873. echo "${ECHO_T}none needed" >&6 ;;
  2874. *)
  2875. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2876. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2877. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2878. esac
  2879. # Some people use a C++ compiler to compile C. Since we use `exit',
  2880. # in C++ we need to declare it. In case someone uses the same compiler
  2881. # for both compiling C and C++ we need to have the C++ compiler decide
  2882. # the declaration of exit, since it's the most demanding environment.
  2883. cat >conftest.$ac_ext <<_ACEOF
  2884. #ifndef __cplusplus
  2885. choke me
  2886. #endif
  2887. _ACEOF
  2888. rm -f conftest.$ac_objext
  2889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2890. (eval $ac_compile) 2>conftest.er1
  2891. ac_status=$?
  2892. grep -v '^ *+' conftest.er1 >conftest.err
  2893. rm -f conftest.er1
  2894. cat conftest.err >&5
  2895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. (exit $ac_status); } &&
  2897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2899. (eval $ac_try) 2>&5
  2900. ac_status=$?
  2901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2902. (exit $ac_status); }; } &&
  2903. { ac_try='test -s conftest.$ac_objext'
  2904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2905. (eval $ac_try) 2>&5
  2906. ac_status=$?
  2907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2908. (exit $ac_status); }; }; then
  2909. for ac_declaration in \
  2910. '' \
  2911. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2912. 'extern "C" void std::exit (int); using std::exit;' \
  2913. 'extern "C" void exit (int) throw ();' \
  2914. 'extern "C" void exit (int);' \
  2915. 'void exit (int);'
  2916. do
  2917. cat >conftest.$ac_ext <<_ACEOF
  2918. /* confdefs.h. */
  2919. _ACEOF
  2920. cat confdefs.h >>conftest.$ac_ext
  2921. cat >>conftest.$ac_ext <<_ACEOF
  2922. /* end confdefs.h. */
  2923. $ac_declaration
  2924. #include <stdlib.h>
  2925. int
  2926. main ()
  2927. {
  2928. exit (42);
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. rm -f conftest.$ac_objext
  2934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2935. (eval $ac_compile) 2>conftest.er1
  2936. ac_status=$?
  2937. grep -v '^ *+' conftest.er1 >conftest.err
  2938. rm -f conftest.er1
  2939. cat conftest.err >&5
  2940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2941. (exit $ac_status); } &&
  2942. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  2948. { ac_try='test -s conftest.$ac_objext'
  2949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2950. (eval $ac_try) 2>&5
  2951. ac_status=$?
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); }; }; then
  2954. :
  2955. else
  2956. echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. continue
  2959. fi
  2960. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2961. cat >conftest.$ac_ext <<_ACEOF
  2962. /* confdefs.h. */
  2963. _ACEOF
  2964. cat confdefs.h >>conftest.$ac_ext
  2965. cat >>conftest.$ac_ext <<_ACEOF
  2966. /* end confdefs.h. */
  2967. $ac_declaration
  2968. int
  2969. main ()
  2970. {
  2971. exit (42);
  2972. ;
  2973. return 0;
  2974. }
  2975. _ACEOF
  2976. rm -f conftest.$ac_objext
  2977. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2978. (eval $ac_compile) 2>conftest.er1
  2979. ac_status=$?
  2980. grep -v '^ *+' conftest.er1 >conftest.err
  2981. rm -f conftest.er1
  2982. cat conftest.err >&5
  2983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2984. (exit $ac_status); } &&
  2985. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2987. (eval $ac_try) 2>&5
  2988. ac_status=$?
  2989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2990. (exit $ac_status); }; } &&
  2991. { ac_try='test -s conftest.$ac_objext'
  2992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2993. (eval $ac_try) 2>&5
  2994. ac_status=$?
  2995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); }; }; then
  2997. break
  2998. else
  2999. echo "$as_me: failed program was:" >&5
  3000. sed 's/^/| /' conftest.$ac_ext >&5
  3001. fi
  3002. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3003. done
  3004. rm -f conftest*
  3005. if test -n "$ac_declaration"; then
  3006. echo '#ifdef __cplusplus' >>confdefs.h
  3007. echo $ac_declaration >>confdefs.h
  3008. echo '#endif' >>confdefs.h
  3009. fi
  3010. else
  3011. echo "$as_me: failed program was:" >&5
  3012. sed 's/^/| /' conftest.$ac_ext >&5
  3013. fi
  3014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3015. ac_ext=c
  3016. ac_cpp='$CPP $CPPFLAGS'
  3017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3020. depcc="$CC" am_compiler_list=
  3021. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3022. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3023. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3024. echo $ECHO_N "(cached) $ECHO_C" >&6
  3025. else
  3026. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3027. # We make a subdir and do the tests there. Otherwise we can end up
  3028. # making bogus files that we don't know about and never remove. For
  3029. # instance it was reported that on HP-UX the gcc test will end up
  3030. # making a dummy file named `D' -- because `-MD' means `put the output
  3031. # in D'.
  3032. mkdir conftest.dir
  3033. # Copy depcomp to subdir because otherwise we won't find it if we're
  3034. # using a relative directory.
  3035. cp "$am_depcomp" conftest.dir
  3036. cd conftest.dir
  3037. # We will build objects and dependencies in a subdirectory because
  3038. # it helps to detect inapplicable dependency modes. For instance
  3039. # both Tru64's cc and ICC support -MD to output dependencies as a
  3040. # side effect of compilation, but ICC will put the dependencies in
  3041. # the current directory while Tru64 will put them in the object
  3042. # directory.
  3043. mkdir sub
  3044. am_cv_CC_dependencies_compiler_type=none
  3045. if test "$am_compiler_list" = ""; then
  3046. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3047. fi
  3048. for depmode in $am_compiler_list; do
  3049. # Setup a source with many dependencies, because some compilers
  3050. # like to wrap large dependency lists on column 80 (with \), and
  3051. # we should not choose a depcomp mode which is confused by this.
  3052. #
  3053. # We need to recreate these files for each test, as the compiler may
  3054. # overwrite some of them when testing with obscure command lines.
  3055. # This happens at least with the AIX C compiler.
  3056. : > sub/conftest.c
  3057. for i in 1 2 3 4 5 6; do
  3058. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3059. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3060. # Solaris 8's {/usr,}/bin/sh.
  3061. touch sub/conftst$i.h
  3062. done
  3063. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3064. case $depmode in
  3065. nosideeffect)
  3066. # after this tag, mechanisms are not by side-effect, so they'll
  3067. # only be used when explicitly requested
  3068. if test "x$enable_dependency_tracking" = xyes; then
  3069. continue
  3070. else
  3071. break
  3072. fi
  3073. ;;
  3074. none) break ;;
  3075. esac
  3076. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3077. # mode. It turns out that the SunPro C++ compiler does not properly
  3078. # handle `-M -o', and we need to detect this.
  3079. if depmode=$depmode \
  3080. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3081. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3082. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3083. >/dev/null 2>conftest.err &&
  3084. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3085. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3086. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3087. # icc doesn't choke on unknown options, it will just issue warnings
  3088. # or remarks (even with -Werror). So we grep stderr for any message
  3089. # that says an option was ignored or not supported.
  3090. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3091. # icc: Command line warning: ignoring option '-M'; no argument required
  3092. # The diagnosis changed in icc 8.0:
  3093. # icc: Command line remark: option '-MP' not supported
  3094. if (grep 'ignoring option' conftest.err ||
  3095. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3096. am_cv_CC_dependencies_compiler_type=$depmode
  3097. break
  3098. fi
  3099. fi
  3100. done
  3101. cd ..
  3102. rm -rf conftest.dir
  3103. else
  3104. am_cv_CC_dependencies_compiler_type=none
  3105. fi
  3106. fi
  3107. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3108. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3109. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3110. if
  3111. test "x$enable_dependency_tracking" != xno \
  3112. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3113. am__fastdepCC_TRUE=
  3114. am__fastdepCC_FALSE='#'
  3115. else
  3116. am__fastdepCC_TRUE='#'
  3117. am__fastdepCC_FALSE=
  3118. fi
  3119. # Find a good install program. We prefer a C program (faster),
  3120. # so one script is as good as another. But avoid the broken or
  3121. # incompatible versions:
  3122. # SysV /etc/install, /usr/sbin/install
  3123. # SunOS /usr/etc/install
  3124. # IRIX /sbin/install
  3125. # AIX /bin/install
  3126. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3127. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3128. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3129. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3130. # OS/2's system install, which has a completely different semantic
  3131. # ./install, which can be erroneously created by make from ./install.sh.
  3132. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3133. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3134. if test -z "$INSTALL"; then
  3135. if test "${ac_cv_path_install+set}" = set; then
  3136. echo $ECHO_N "(cached) $ECHO_C" >&6
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. # Account for people who put trailing slashes in PATH elements.
  3144. case $as_dir/ in
  3145. ./ | .// | /cC/* | \
  3146. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3147. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3148. /usr/ucb/* ) ;;
  3149. *)
  3150. # OSF1 and SCO ODT 3.0 have their own names for install.
  3151. # Don't use installbsd from OSF since it installs stuff as root
  3152. # by default.
  3153. for ac_prog in ginstall scoinst install; do
  3154. for ac_exec_ext in '' $ac_executable_extensions; do
  3155. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3156. if test $ac_prog = install &&
  3157. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3158. # AIX install. It has an incompatible calling convention.
  3159. :
  3160. elif test $ac_prog = install &&
  3161. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3162. # program-specific install script used by HP pwplus--don't use.
  3163. :
  3164. else
  3165. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3166. break 3
  3167. fi
  3168. fi
  3169. done
  3170. done
  3171. ;;
  3172. esac
  3173. done
  3174. fi
  3175. if test "${ac_cv_path_install+set}" = set; then
  3176. INSTALL=$ac_cv_path_install
  3177. else
  3178. # As a last resort, use the slow shell script. We don't cache a
  3179. # path for INSTALL within a source directory, because that will
  3180. # break other packages using the cache if that directory is
  3181. # removed, or if the path is relative.
  3182. INSTALL=$ac_install_sh
  3183. fi
  3184. fi
  3185. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3186. echo "${ECHO_T}$INSTALL" >&6
  3187. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3188. # It thinks the first close brace ends the variable substitution.
  3189. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3190. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3191. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3192. if test -n "$ac_tool_prefix"; then
  3193. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3194. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3195. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3196. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3197. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3198. echo $ECHO_N "(cached) $ECHO_C" >&6
  3199. else
  3200. if test -n "$RANLIB"; then
  3201. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3202. else
  3203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3204. for as_dir in $PATH
  3205. do
  3206. IFS=$as_save_IFS
  3207. test -z "$as_dir" && as_dir=.
  3208. for ac_exec_ext in '' $ac_executable_extensions; do
  3209. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3210. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3211. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3212. break 2
  3213. fi
  3214. done
  3215. done
  3216. fi
  3217. fi
  3218. RANLIB=$ac_cv_prog_RANLIB
  3219. if test -n "$RANLIB"; then
  3220. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3221. echo "${ECHO_T}$RANLIB" >&6
  3222. else
  3223. echo "$as_me:$LINENO: result: no" >&5
  3224. echo "${ECHO_T}no" >&6
  3225. fi
  3226. fi
  3227. if test -z "$ac_cv_prog_RANLIB"; then
  3228. ac_ct_RANLIB=$RANLIB
  3229. # Extract the first word of "ranlib", so it can be a program name with args.
  3230. set dummy ranlib; ac_word=$2
  3231. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3232. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3233. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3234. echo $ECHO_N "(cached) $ECHO_C" >&6
  3235. else
  3236. if test -n "$ac_ct_RANLIB"; then
  3237. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. test -z "$as_dir" && as_dir=.
  3244. for ac_exec_ext in '' $ac_executable_extensions; do
  3245. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3246. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3247. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3248. break 2
  3249. fi
  3250. done
  3251. done
  3252. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3253. fi
  3254. fi
  3255. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3256. if test -n "$ac_ct_RANLIB"; then
  3257. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3258. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3259. else
  3260. echo "$as_me:$LINENO: result: no" >&5
  3261. echo "${ECHO_T}no" >&6
  3262. fi
  3263. RANLIB=$ac_ct_RANLIB
  3264. else
  3265. RANLIB="$ac_cv_prog_RANLIB"
  3266. fi
  3267. for ac_prog in 'bison -y' byacc
  3268. do
  3269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3270. set dummy $ac_prog; ac_word=$2
  3271. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3273. if test "${ac_cv_prog_YACC+set}" = set; then
  3274. echo $ECHO_N "(cached) $ECHO_C" >&6
  3275. else
  3276. if test -n "$YACC"; then
  3277. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3286. ac_cv_prog_YACC="$ac_prog"
  3287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3288. break 2
  3289. fi
  3290. done
  3291. done
  3292. fi
  3293. fi
  3294. YACC=$ac_cv_prog_YACC
  3295. if test -n "$YACC"; then
  3296. echo "$as_me:$LINENO: result: $YACC" >&5
  3297. echo "${ECHO_T}$YACC" >&6
  3298. else
  3299. echo "$as_me:$LINENO: result: no" >&5
  3300. echo "${ECHO_T}no" >&6
  3301. fi
  3302. test -n "$YACC" && break
  3303. done
  3304. test -n "$YACC" || YACC="yacc"
  3305. # Checks for libraries.
  3306. if test "x$enable_ssl" = "xyes"; then
  3307. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  3308. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  3309. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  3310. echo $ECHO_N "(cached) $ECHO_C" >&6
  3311. else
  3312. ac_check_lib_save_LIBS=$LIBS
  3313. LIBS="-lssl $LIBS"
  3314. cat >conftest.$ac_ext <<_ACEOF
  3315. /* confdefs.h. */
  3316. _ACEOF
  3317. cat confdefs.h >>conftest.$ac_ext
  3318. cat >>conftest.$ac_ext <<_ACEOF
  3319. /* end confdefs.h. */
  3320. /* Override any gcc2 internal prototype to avoid an error. */
  3321. #ifdef __cplusplus
  3322. extern "C"
  3323. #endif
  3324. /* We use char because int might match the return type of a gcc2
  3325. builtin and then its argument prototype would still apply. */
  3326. char SSL_library_init ();
  3327. int
  3328. main ()
  3329. {
  3330. SSL_library_init ();
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. rm -f conftest.$ac_objext conftest$ac_exeext
  3336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3337. (eval $ac_link) 2>conftest.er1
  3338. ac_status=$?
  3339. grep -v '^ *+' conftest.er1 >conftest.err
  3340. rm -f conftest.er1
  3341. cat conftest.err >&5
  3342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3343. (exit $ac_status); } &&
  3344. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3346. (eval $ac_try) 2>&5
  3347. ac_status=$?
  3348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3349. (exit $ac_status); }; } &&
  3350. { ac_try='test -s conftest$ac_exeext'
  3351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3352. (eval $ac_try) 2>&5
  3353. ac_status=$?
  3354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3355. (exit $ac_status); }; }; then
  3356. ac_cv_lib_ssl_SSL_library_init=yes
  3357. else
  3358. echo "$as_me: failed program was:" >&5
  3359. sed 's/^/| /' conftest.$ac_ext >&5
  3360. ac_cv_lib_ssl_SSL_library_init=no
  3361. fi
  3362. rm -f conftest.err conftest.$ac_objext \
  3363. conftest$ac_exeext conftest.$ac_ext
  3364. LIBS=$ac_check_lib_save_LIBS
  3365. fi
  3366. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  3367. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  3368. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  3369. cat >>confdefs.h <<_ACEOF
  3370. #define HAVE_LIBSSL 1
  3371. _ACEOF
  3372. LIBS="-lssl $LIBS"
  3373. fi
  3374. fi
  3375. # Checks for header files.
  3376. ac_ext=c
  3377. ac_cpp='$CPP $CPPFLAGS'
  3378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3381. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3382. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3383. # On Suns, sometimes $CPP names a directory.
  3384. if test -n "$CPP" && test -d "$CPP"; then
  3385. CPP=
  3386. fi
  3387. if test -z "$CPP"; then
  3388. if test "${ac_cv_prog_CPP+set}" = set; then
  3389. echo $ECHO_N "(cached) $ECHO_C" >&6
  3390. else
  3391. # Double quotes because CPP needs to be expanded
  3392. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3393. do
  3394. ac_preproc_ok=false
  3395. for ac_c_preproc_warn_flag in '' yes
  3396. do
  3397. # Use a header file that comes with gcc, so configuring glibc
  3398. # with a fresh cross-compiler works.
  3399. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3400. # <limits.h> exists even on freestanding compilers.
  3401. # On the NeXT, cc -E runs the code through the compiler's parser,
  3402. # not just through cpp. "Syntax error" is here to catch this case.
  3403. cat >conftest.$ac_ext <<_ACEOF
  3404. /* confdefs.h. */
  3405. _ACEOF
  3406. cat confdefs.h >>conftest.$ac_ext
  3407. cat >>conftest.$ac_ext <<_ACEOF
  3408. /* end confdefs.h. */
  3409. #ifdef __STDC__
  3410. # include <limits.h>
  3411. #else
  3412. # include <assert.h>
  3413. #endif
  3414. Syntax error
  3415. _ACEOF
  3416. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3417. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3418. ac_status=$?
  3419. grep -v '^ *+' conftest.er1 >conftest.err
  3420. rm -f conftest.er1
  3421. cat conftest.err >&5
  3422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3423. (exit $ac_status); } >/dev/null; then
  3424. if test -s conftest.err; then
  3425. ac_cpp_err=$ac_c_preproc_warn_flag
  3426. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3427. else
  3428. ac_cpp_err=
  3429. fi
  3430. else
  3431. ac_cpp_err=yes
  3432. fi
  3433. if test -z "$ac_cpp_err"; then
  3434. :
  3435. else
  3436. echo "$as_me: failed program was:" >&5
  3437. sed 's/^/| /' conftest.$ac_ext >&5
  3438. # Broken: fails on valid input.
  3439. continue
  3440. fi
  3441. rm -f conftest.err conftest.$ac_ext
  3442. # OK, works on sane cases. Now check whether non-existent headers
  3443. # can be detected and how.
  3444. cat >conftest.$ac_ext <<_ACEOF
  3445. /* confdefs.h. */
  3446. _ACEOF
  3447. cat confdefs.h >>conftest.$ac_ext
  3448. cat >>conftest.$ac_ext <<_ACEOF
  3449. /* end confdefs.h. */
  3450. #include <ac_nonexistent.h>
  3451. _ACEOF
  3452. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3453. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3454. ac_status=$?
  3455. grep -v '^ *+' conftest.er1 >conftest.err
  3456. rm -f conftest.er1
  3457. cat conftest.err >&5
  3458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); } >/dev/null; then
  3460. if test -s conftest.err; then
  3461. ac_cpp_err=$ac_c_preproc_warn_flag
  3462. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3463. else
  3464. ac_cpp_err=
  3465. fi
  3466. else
  3467. ac_cpp_err=yes
  3468. fi
  3469. if test -z "$ac_cpp_err"; then
  3470. # Broken: success on invalid input.
  3471. continue
  3472. else
  3473. echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. # Passes both tests.
  3476. ac_preproc_ok=:
  3477. break
  3478. fi
  3479. rm -f conftest.err conftest.$ac_ext
  3480. done
  3481. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3482. rm -f conftest.err conftest.$ac_ext
  3483. if $ac_preproc_ok; then
  3484. break
  3485. fi
  3486. done
  3487. ac_cv_prog_CPP=$CPP
  3488. fi
  3489. CPP=$ac_cv_prog_CPP
  3490. else
  3491. ac_cv_prog_CPP=$CPP
  3492. fi
  3493. echo "$as_me:$LINENO: result: $CPP" >&5
  3494. echo "${ECHO_T}$CPP" >&6
  3495. ac_preproc_ok=false
  3496. for ac_c_preproc_warn_flag in '' yes
  3497. do
  3498. # Use a header file that comes with gcc, so configuring glibc
  3499. # with a fresh cross-compiler works.
  3500. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3501. # <limits.h> exists even on freestanding compilers.
  3502. # On the NeXT, cc -E runs the code through the compiler's parser,
  3503. # not just through cpp. "Syntax error" is here to catch this case.
  3504. cat >conftest.$ac_ext <<_ACEOF
  3505. /* confdefs.h. */
  3506. _ACEOF
  3507. cat confdefs.h >>conftest.$ac_ext
  3508. cat >>conftest.$ac_ext <<_ACEOF
  3509. /* end confdefs.h. */
  3510. #ifdef __STDC__
  3511. # include <limits.h>
  3512. #else
  3513. # include <assert.h>
  3514. #endif
  3515. Syntax error
  3516. _ACEOF
  3517. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3518. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3519. ac_status=$?
  3520. grep -v '^ *+' conftest.er1 >conftest.err
  3521. rm -f conftest.er1
  3522. cat conftest.err >&5
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); } >/dev/null; then
  3525. if test -s conftest.err; then
  3526. ac_cpp_err=$ac_c_preproc_warn_flag
  3527. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3528. else
  3529. ac_cpp_err=
  3530. fi
  3531. else
  3532. ac_cpp_err=yes
  3533. fi
  3534. if test -z "$ac_cpp_err"; then
  3535. :
  3536. else
  3537. echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. # Broken: fails on valid input.
  3540. continue
  3541. fi
  3542. rm -f conftest.err conftest.$ac_ext
  3543. # OK, works on sane cases. Now check whether non-existent headers
  3544. # can be detected and how.
  3545. cat >conftest.$ac_ext <<_ACEOF
  3546. /* confdefs.h. */
  3547. _ACEOF
  3548. cat confdefs.h >>conftest.$ac_ext
  3549. cat >>conftest.$ac_ext <<_ACEOF
  3550. /* end confdefs.h. */
  3551. #include <ac_nonexistent.h>
  3552. _ACEOF
  3553. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3554. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3555. ac_status=$?
  3556. grep -v '^ *+' conftest.er1 >conftest.err
  3557. rm -f conftest.er1
  3558. cat conftest.err >&5
  3559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); } >/dev/null; then
  3561. if test -s conftest.err; then
  3562. ac_cpp_err=$ac_c_preproc_warn_flag
  3563. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3564. else
  3565. ac_cpp_err=
  3566. fi
  3567. else
  3568. ac_cpp_err=yes
  3569. fi
  3570. if test -z "$ac_cpp_err"; then
  3571. # Broken: success on invalid input.
  3572. continue
  3573. else
  3574. echo "$as_me: failed program was:" >&5
  3575. sed 's/^/| /' conftest.$ac_ext >&5
  3576. # Passes both tests.
  3577. ac_preproc_ok=:
  3578. break
  3579. fi
  3580. rm -f conftest.err conftest.$ac_ext
  3581. done
  3582. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3583. rm -f conftest.err conftest.$ac_ext
  3584. if $ac_preproc_ok; then
  3585. :
  3586. else
  3587. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3588. See \`config.log' for more details." >&5
  3589. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3590. See \`config.log' for more details." >&2;}
  3591. { (exit 1); exit 1; }; }
  3592. fi
  3593. ac_ext=c
  3594. ac_cpp='$CPP $CPPFLAGS'
  3595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3598. echo "$as_me:$LINENO: checking for egrep" >&5
  3599. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3600. if test "${ac_cv_prog_egrep+set}" = set; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3604. then ac_cv_prog_egrep='grep -E'
  3605. else ac_cv_prog_egrep='egrep'
  3606. fi
  3607. fi
  3608. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3609. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3610. EGREP=$ac_cv_prog_egrep
  3611. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3612. # for constant arguments. Useless!
  3613. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  3614. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  3615. if test "${ac_cv_working_alloca_h+set}" = set; then
  3616. echo $ECHO_N "(cached) $ECHO_C" >&6
  3617. else
  3618. cat >conftest.$ac_ext <<_ACEOF
  3619. /* confdefs.h. */
  3620. _ACEOF
  3621. cat confdefs.h >>conftest.$ac_ext
  3622. cat >>conftest.$ac_ext <<_ACEOF
  3623. /* end confdefs.h. */
  3624. #include <alloca.h>
  3625. int
  3626. main ()
  3627. {
  3628. char *p = (char *) alloca (2 * sizeof (int));
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. rm -f conftest.$ac_objext conftest$ac_exeext
  3634. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3635. (eval $ac_link) 2>conftest.er1
  3636. ac_status=$?
  3637. grep -v '^ *+' conftest.er1 >conftest.err
  3638. rm -f conftest.er1
  3639. cat conftest.err >&5
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); } &&
  3642. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3644. (eval $ac_try) 2>&5
  3645. ac_status=$?
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); }; } &&
  3648. { ac_try='test -s conftest$ac_exeext'
  3649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3650. (eval $ac_try) 2>&5
  3651. ac_status=$?
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); }; }; then
  3654. ac_cv_working_alloca_h=yes
  3655. else
  3656. echo "$as_me: failed program was:" >&5
  3657. sed 's/^/| /' conftest.$ac_ext >&5
  3658. ac_cv_working_alloca_h=no
  3659. fi
  3660. rm -f conftest.err conftest.$ac_objext \
  3661. conftest$ac_exeext conftest.$ac_ext
  3662. fi
  3663. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  3664. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  3665. if test $ac_cv_working_alloca_h = yes; then
  3666. cat >>confdefs.h <<\_ACEOF
  3667. #define HAVE_ALLOCA_H 1
  3668. _ACEOF
  3669. fi
  3670. echo "$as_me:$LINENO: checking for alloca" >&5
  3671. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  3672. if test "${ac_cv_func_alloca_works+set}" = set; then
  3673. echo $ECHO_N "(cached) $ECHO_C" >&6
  3674. else
  3675. cat >conftest.$ac_ext <<_ACEOF
  3676. /* confdefs.h. */
  3677. _ACEOF
  3678. cat confdefs.h >>conftest.$ac_ext
  3679. cat >>conftest.$ac_ext <<_ACEOF
  3680. /* end confdefs.h. */
  3681. #ifdef __GNUC__
  3682. # define alloca __builtin_alloca
  3683. #else
  3684. # ifdef _MSC_VER
  3685. # include <malloc.h>
  3686. # define alloca _alloca
  3687. # else
  3688. # if HAVE_ALLOCA_H
  3689. # include <alloca.h>
  3690. # else
  3691. # ifdef _AIX
  3692. #pragma alloca
  3693. # else
  3694. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3695. char *alloca ();
  3696. # endif
  3697. # endif
  3698. # endif
  3699. # endif
  3700. #endif
  3701. int
  3702. main ()
  3703. {
  3704. char *p = (char *) alloca (1);
  3705. ;
  3706. return 0;
  3707. }
  3708. _ACEOF
  3709. rm -f conftest.$ac_objext conftest$ac_exeext
  3710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3711. (eval $ac_link) 2>conftest.er1
  3712. ac_status=$?
  3713. grep -v '^ *+' conftest.er1 >conftest.err
  3714. rm -f conftest.er1
  3715. cat conftest.err >&5
  3716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3717. (exit $ac_status); } &&
  3718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3720. (eval $ac_try) 2>&5
  3721. ac_status=$?
  3722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3723. (exit $ac_status); }; } &&
  3724. { ac_try='test -s conftest$ac_exeext'
  3725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3726. (eval $ac_try) 2>&5
  3727. ac_status=$?
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); }; }; then
  3730. ac_cv_func_alloca_works=yes
  3731. else
  3732. echo "$as_me: failed program was:" >&5
  3733. sed 's/^/| /' conftest.$ac_ext >&5
  3734. ac_cv_func_alloca_works=no
  3735. fi
  3736. rm -f conftest.err conftest.$ac_objext \
  3737. conftest$ac_exeext conftest.$ac_ext
  3738. fi
  3739. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  3740. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  3741. if test $ac_cv_func_alloca_works = yes; then
  3742. cat >>confdefs.h <<\_ACEOF
  3743. #define HAVE_ALLOCA 1
  3744. _ACEOF
  3745. else
  3746. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3747. # that cause trouble. Some versions do not even contain alloca or
  3748. # contain a buggy version. If you still want to use their alloca,
  3749. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3750. ALLOCA=alloca.$ac_objext
  3751. cat >>confdefs.h <<\_ACEOF
  3752. #define C_ALLOCA 1
  3753. _ACEOF
  3754. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  3755. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  3756. if test "${ac_cv_os_cray+set}" = set; then
  3757. echo $ECHO_N "(cached) $ECHO_C" >&6
  3758. else
  3759. cat >conftest.$ac_ext <<_ACEOF
  3760. /* confdefs.h. */
  3761. _ACEOF
  3762. cat confdefs.h >>conftest.$ac_ext
  3763. cat >>conftest.$ac_ext <<_ACEOF
  3764. /* end confdefs.h. */
  3765. #if defined(CRAY) && ! defined(CRAY2)
  3766. webecray
  3767. #else
  3768. wenotbecray
  3769. #endif
  3770. _ACEOF
  3771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3772. $EGREP "webecray" >/dev/null 2>&1; then
  3773. ac_cv_os_cray=yes
  3774. else
  3775. ac_cv_os_cray=no
  3776. fi
  3777. rm -f conftest*
  3778. fi
  3779. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  3780. echo "${ECHO_T}$ac_cv_os_cray" >&6
  3781. if test $ac_cv_os_cray = yes; then
  3782. for ac_func in _getb67 GETB67 getb67; do
  3783. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3784. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3785. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3786. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3787. echo $ECHO_N "(cached) $ECHO_C" >&6
  3788. else
  3789. cat >conftest.$ac_ext <<_ACEOF
  3790. /* confdefs.h. */
  3791. _ACEOF
  3792. cat confdefs.h >>conftest.$ac_ext
  3793. cat >>conftest.$ac_ext <<_ACEOF
  3794. /* end confdefs.h. */
  3795. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  3796. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3797. #define $ac_func innocuous_$ac_func
  3798. /* System header to define __stub macros and hopefully few prototypes,
  3799. which can conflict with char $ac_func (); below.
  3800. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3801. <limits.h> exists even on freestanding compilers. */
  3802. #ifdef __STDC__
  3803. # include <limits.h>
  3804. #else
  3805. # include <assert.h>
  3806. #endif
  3807. #undef $ac_func
  3808. /* Override any gcc2 internal prototype to avoid an error. */
  3809. #ifdef __cplusplus
  3810. extern "C"
  3811. {
  3812. #endif
  3813. /* We use char because int might match the return type of a gcc2
  3814. builtin and then its argument prototype would still apply. */
  3815. char $ac_func ();
  3816. /* The GNU C library defines this for functions which it implements
  3817. to always fail with ENOSYS. Some functions are actually named
  3818. something starting with __ and the normal name is an alias. */
  3819. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3820. choke me
  3821. #else
  3822. char (*f) () = $ac_func;
  3823. #endif
  3824. #ifdef __cplusplus
  3825. }
  3826. #endif
  3827. int
  3828. main ()
  3829. {
  3830. return f != $ac_func;
  3831. ;
  3832. return 0;
  3833. }
  3834. _ACEOF
  3835. rm -f conftest.$ac_objext conftest$ac_exeext
  3836. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3837. (eval $ac_link) 2>conftest.er1
  3838. ac_status=$?
  3839. grep -v '^ *+' conftest.er1 >conftest.err
  3840. rm -f conftest.er1
  3841. cat conftest.err >&5
  3842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3843. (exit $ac_status); } &&
  3844. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3846. (eval $ac_try) 2>&5
  3847. ac_status=$?
  3848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3849. (exit $ac_status); }; } &&
  3850. { ac_try='test -s conftest$ac_exeext'
  3851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3852. (eval $ac_try) 2>&5
  3853. ac_status=$?
  3854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3855. (exit $ac_status); }; }; then
  3856. eval "$as_ac_var=yes"
  3857. else
  3858. echo "$as_me: failed program was:" >&5
  3859. sed 's/^/| /' conftest.$ac_ext >&5
  3860. eval "$as_ac_var=no"
  3861. fi
  3862. rm -f conftest.err conftest.$ac_objext \
  3863. conftest$ac_exeext conftest.$ac_ext
  3864. fi
  3865. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3866. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3867. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3868. cat >>confdefs.h <<_ACEOF
  3869. #define CRAY_STACKSEG_END $ac_func
  3870. _ACEOF
  3871. break
  3872. fi
  3873. done
  3874. fi
  3875. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  3876. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  3877. if test "${ac_cv_c_stack_direction+set}" = set; then
  3878. echo $ECHO_N "(cached) $ECHO_C" >&6
  3879. else
  3880. if test "$cross_compiling" = yes; then
  3881. ac_cv_c_stack_direction=0
  3882. else
  3883. cat >conftest.$ac_ext <<_ACEOF
  3884. /* confdefs.h. */
  3885. _ACEOF
  3886. cat confdefs.h >>conftest.$ac_ext
  3887. cat >>conftest.$ac_ext <<_ACEOF
  3888. /* end confdefs.h. */
  3889. int
  3890. find_stack_direction ()
  3891. {
  3892. static char *addr = 0;
  3893. auto char dummy;
  3894. if (addr == 0)
  3895. {
  3896. addr = &dummy;
  3897. return find_stack_direction ();
  3898. }
  3899. else
  3900. return (&dummy > addr) ? 1 : -1;
  3901. }
  3902. int
  3903. main ()
  3904. {
  3905. exit (find_stack_direction () < 0);
  3906. }
  3907. _ACEOF
  3908. rm -f conftest$ac_exeext
  3909. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3910. (eval $ac_link) 2>&5
  3911. ac_status=$?
  3912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3913. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3915. (eval $ac_try) 2>&5
  3916. ac_status=$?
  3917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3918. (exit $ac_status); }; }; then
  3919. ac_cv_c_stack_direction=1
  3920. else
  3921. echo "$as_me: program exited with status $ac_status" >&5
  3922. echo "$as_me: failed program was:" >&5
  3923. sed 's/^/| /' conftest.$ac_ext >&5
  3924. ( exit $ac_status )
  3925. ac_cv_c_stack_direction=-1
  3926. fi
  3927. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3928. fi
  3929. fi
  3930. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  3931. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  3932. cat >>confdefs.h <<_ACEOF
  3933. #define STACK_DIRECTION $ac_cv_c_stack_direction
  3934. _ACEOF
  3935. fi
  3936. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3937. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3938. if test "${ac_cv_header_stdc+set}" = set; then
  3939. echo $ECHO_N "(cached) $ECHO_C" >&6
  3940. else
  3941. cat >conftest.$ac_ext <<_ACEOF
  3942. /* confdefs.h. */
  3943. _ACEOF
  3944. cat confdefs.h >>conftest.$ac_ext
  3945. cat >>conftest.$ac_ext <<_ACEOF
  3946. /* end confdefs.h. */
  3947. #include <stdlib.h>
  3948. #include <stdarg.h>
  3949. #include <string.h>
  3950. #include <float.h>
  3951. int
  3952. main ()
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. rm -f conftest.$ac_objext
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3960. (eval $ac_compile) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } &&
  3967. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; } &&
  3973. { ac_try='test -s conftest.$ac_objext'
  3974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975. (eval $ac_try) 2>&5
  3976. ac_status=$?
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); }; }; then
  3979. ac_cv_header_stdc=yes
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. ac_cv_header_stdc=no
  3984. fi
  3985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3986. if test $ac_cv_header_stdc = yes; then
  3987. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. #include <string.h>
  3995. _ACEOF
  3996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3997. $EGREP "memchr" >/dev/null 2>&1; then
  3998. :
  3999. else
  4000. ac_cv_header_stdc=no
  4001. fi
  4002. rm -f conftest*
  4003. fi
  4004. if test $ac_cv_header_stdc = yes; then
  4005. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4006. cat >conftest.$ac_ext <<_ACEOF
  4007. /* confdefs.h. */
  4008. _ACEOF
  4009. cat confdefs.h >>conftest.$ac_ext
  4010. cat >>conftest.$ac_ext <<_ACEOF
  4011. /* end confdefs.h. */
  4012. #include <stdlib.h>
  4013. _ACEOF
  4014. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4015. $EGREP "free" >/dev/null 2>&1; then
  4016. :
  4017. else
  4018. ac_cv_header_stdc=no
  4019. fi
  4020. rm -f conftest*
  4021. fi
  4022. if test $ac_cv_header_stdc = yes; then
  4023. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4024. if test "$cross_compiling" = yes; then
  4025. :
  4026. else
  4027. cat >conftest.$ac_ext <<_ACEOF
  4028. /* confdefs.h. */
  4029. _ACEOF
  4030. cat confdefs.h >>conftest.$ac_ext
  4031. cat >>conftest.$ac_ext <<_ACEOF
  4032. /* end confdefs.h. */
  4033. #include <ctype.h>
  4034. #if ((' ' & 0x0FF) == 0x020)
  4035. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4036. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4037. #else
  4038. # define ISLOWER(c) \
  4039. (('a' <= (c) && (c) <= 'i') \
  4040. || ('j' <= (c) && (c) <= 'r') \
  4041. || ('s' <= (c) && (c) <= 'z'))
  4042. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4043. #endif
  4044. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4045. int
  4046. main ()
  4047. {
  4048. int i;
  4049. for (i = 0; i < 256; i++)
  4050. if (XOR (islower (i), ISLOWER (i))
  4051. || toupper (i) != TOUPPER (i))
  4052. exit(2);
  4053. exit (0);
  4054. }
  4055. _ACEOF
  4056. rm -f conftest$ac_exeext
  4057. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4058. (eval $ac_link) 2>&5
  4059. ac_status=$?
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4063. (eval $ac_try) 2>&5
  4064. ac_status=$?
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); }; }; then
  4067. :
  4068. else
  4069. echo "$as_me: program exited with status $ac_status" >&5
  4070. echo "$as_me: failed program was:" >&5
  4071. sed 's/^/| /' conftest.$ac_ext >&5
  4072. ( exit $ac_status )
  4073. ac_cv_header_stdc=no
  4074. fi
  4075. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4076. fi
  4077. fi
  4078. fi
  4079. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4080. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4081. if test $ac_cv_header_stdc = yes; then
  4082. cat >>confdefs.h <<\_ACEOF
  4083. #define STDC_HEADERS 1
  4084. _ACEOF
  4085. fi
  4086. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4087. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4088. inttypes.h stdint.h unistd.h
  4089. do
  4090. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4091. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4092. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4093. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4094. echo $ECHO_N "(cached) $ECHO_C" >&6
  4095. else
  4096. cat >conftest.$ac_ext <<_ACEOF
  4097. /* confdefs.h. */
  4098. _ACEOF
  4099. cat confdefs.h >>conftest.$ac_ext
  4100. cat >>conftest.$ac_ext <<_ACEOF
  4101. /* end confdefs.h. */
  4102. $ac_includes_default
  4103. #include <$ac_header>
  4104. _ACEOF
  4105. rm -f conftest.$ac_objext
  4106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4107. (eval $ac_compile) 2>conftest.er1
  4108. ac_status=$?
  4109. grep -v '^ *+' conftest.er1 >conftest.err
  4110. rm -f conftest.er1
  4111. cat conftest.err >&5
  4112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. (exit $ac_status); } &&
  4114. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4116. (eval $ac_try) 2>&5
  4117. ac_status=$?
  4118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4119. (exit $ac_status); }; } &&
  4120. { ac_try='test -s conftest.$ac_objext'
  4121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4122. (eval $ac_try) 2>&5
  4123. ac_status=$?
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); }; }; then
  4126. eval "$as_ac_Header=yes"
  4127. else
  4128. echo "$as_me: failed program was:" >&5
  4129. sed 's/^/| /' conftest.$ac_ext >&5
  4130. eval "$as_ac_Header=no"
  4131. fi
  4132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4133. fi
  4134. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4135. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4136. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4137. cat >>confdefs.h <<_ACEOF
  4138. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4139. _ACEOF
  4140. fi
  4141. done
  4142. 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
  4143. do
  4144. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4145. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4146. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4147. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4148. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4149. echo $ECHO_N "(cached) $ECHO_C" >&6
  4150. fi
  4151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4152. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4153. else
  4154. # Is the header compilable?
  4155. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4156. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4157. cat >conftest.$ac_ext <<_ACEOF
  4158. /* confdefs.h. */
  4159. _ACEOF
  4160. cat confdefs.h >>conftest.$ac_ext
  4161. cat >>conftest.$ac_ext <<_ACEOF
  4162. /* end confdefs.h. */
  4163. $ac_includes_default
  4164. #include <$ac_header>
  4165. _ACEOF
  4166. rm -f conftest.$ac_objext
  4167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4168. (eval $ac_compile) 2>conftest.er1
  4169. ac_status=$?
  4170. grep -v '^ *+' conftest.er1 >conftest.err
  4171. rm -f conftest.er1
  4172. cat conftest.err >&5
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); } &&
  4175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4177. (eval $ac_try) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; } &&
  4181. { ac_try='test -s conftest.$ac_objext'
  4182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4183. (eval $ac_try) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; }; then
  4187. ac_header_compiler=yes
  4188. else
  4189. echo "$as_me: failed program was:" >&5
  4190. sed 's/^/| /' conftest.$ac_ext >&5
  4191. ac_header_compiler=no
  4192. fi
  4193. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4194. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4195. echo "${ECHO_T}$ac_header_compiler" >&6
  4196. # Is the header present?
  4197. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4198. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4199. cat >conftest.$ac_ext <<_ACEOF
  4200. /* confdefs.h. */
  4201. _ACEOF
  4202. cat confdefs.h >>conftest.$ac_ext
  4203. cat >>conftest.$ac_ext <<_ACEOF
  4204. /* end confdefs.h. */
  4205. #include <$ac_header>
  4206. _ACEOF
  4207. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4208. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4209. ac_status=$?
  4210. grep -v '^ *+' conftest.er1 >conftest.err
  4211. rm -f conftest.er1
  4212. cat conftest.err >&5
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); } >/dev/null; then
  4215. if test -s conftest.err; then
  4216. ac_cpp_err=$ac_c_preproc_warn_flag
  4217. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4218. else
  4219. ac_cpp_err=
  4220. fi
  4221. else
  4222. ac_cpp_err=yes
  4223. fi
  4224. if test -z "$ac_cpp_err"; then
  4225. ac_header_preproc=yes
  4226. else
  4227. echo "$as_me: failed program was:" >&5
  4228. sed 's/^/| /' conftest.$ac_ext >&5
  4229. ac_header_preproc=no
  4230. fi
  4231. rm -f conftest.err conftest.$ac_ext
  4232. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4233. echo "${ECHO_T}$ac_header_preproc" >&6
  4234. # So? What about this header?
  4235. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4236. yes:no: )
  4237. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4238. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4239. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4240. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4241. ac_header_preproc=yes
  4242. ;;
  4243. no:yes:* )
  4244. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4245. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4246. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4247. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4248. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4249. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4250. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4251. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4252. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4253. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4254. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4255. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4256. (
  4257. cat <<\_ASBOX
  4258. ## ----------------------------------- ##
  4259. ## Report this to tujikawa@rednoah.com ##
  4260. ## ----------------------------------- ##
  4261. _ASBOX
  4262. ) |
  4263. sed "s/^/$as_me: WARNING: /" >&2
  4264. ;;
  4265. esac
  4266. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4267. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4268. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. eval "$as_ac_Header=\$ac_header_preproc"
  4272. fi
  4273. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4274. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4275. fi
  4276. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4277. cat >>confdefs.h <<_ACEOF
  4278. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4279. _ACEOF
  4280. fi
  4281. done
  4282. # Checks for typedefs, structures, and compiler characteristics.
  4283. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  4284. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  4285. if test "${ac_cv_header_stdbool_h+set}" = set; then
  4286. echo $ECHO_N "(cached) $ECHO_C" >&6
  4287. else
  4288. cat >conftest.$ac_ext <<_ACEOF
  4289. /* confdefs.h. */
  4290. _ACEOF
  4291. cat confdefs.h >>conftest.$ac_ext
  4292. cat >>conftest.$ac_ext <<_ACEOF
  4293. /* end confdefs.h. */
  4294. #include <stdbool.h>
  4295. #ifndef bool
  4296. # error bool is not defined
  4297. #endif
  4298. #ifndef false
  4299. # error false is not defined
  4300. #endif
  4301. #if false
  4302. # error false is not 0
  4303. #endif
  4304. #ifndef true
  4305. # error true is not defined
  4306. #endif
  4307. #if true != 1
  4308. # error true is not 1
  4309. #endif
  4310. #ifndef __bool_true_false_are_defined
  4311. # error __bool_true_false_are_defined is not defined
  4312. #endif
  4313. struct s { _Bool s: 1; _Bool t; } s;
  4314. char a[true == 1 ? 1 : -1];
  4315. char b[false == 0 ? 1 : -1];
  4316. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4317. char d[(bool) -0.5 == true ? 1 : -1];
  4318. bool e = &s;
  4319. char f[(_Bool) -0.0 == false ? 1 : -1];
  4320. char g[true];
  4321. char h[sizeof (_Bool)];
  4322. char i[sizeof s.t];
  4323. int
  4324. main ()
  4325. {
  4326. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. rm -f conftest.$ac_objext
  4332. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4333. (eval $ac_compile) 2>conftest.er1
  4334. ac_status=$?
  4335. grep -v '^ *+' conftest.er1 >conftest.err
  4336. rm -f conftest.er1
  4337. cat conftest.err >&5
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); } &&
  4340. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4342. (eval $ac_try) 2>&5
  4343. ac_status=$?
  4344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4345. (exit $ac_status); }; } &&
  4346. { ac_try='test -s conftest.$ac_objext'
  4347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4348. (eval $ac_try) 2>&5
  4349. ac_status=$?
  4350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4351. (exit $ac_status); }; }; then
  4352. ac_cv_header_stdbool_h=yes
  4353. else
  4354. echo "$as_me: failed program was:" >&5
  4355. sed 's/^/| /' conftest.$ac_ext >&5
  4356. ac_cv_header_stdbool_h=no
  4357. fi
  4358. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4359. fi
  4360. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  4361. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  4362. echo "$as_me:$LINENO: checking for _Bool" >&5
  4363. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  4364. if test "${ac_cv_type__Bool+set}" = set; then
  4365. echo $ECHO_N "(cached) $ECHO_C" >&6
  4366. else
  4367. cat >conftest.$ac_ext <<_ACEOF
  4368. /* confdefs.h. */
  4369. _ACEOF
  4370. cat confdefs.h >>conftest.$ac_ext
  4371. cat >>conftest.$ac_ext <<_ACEOF
  4372. /* end confdefs.h. */
  4373. $ac_includes_default
  4374. int
  4375. main ()
  4376. {
  4377. if ((_Bool *) 0)
  4378. return 0;
  4379. if (sizeof (_Bool))
  4380. return 0;
  4381. ;
  4382. return 0;
  4383. }
  4384. _ACEOF
  4385. rm -f conftest.$ac_objext
  4386. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4387. (eval $ac_compile) 2>conftest.er1
  4388. ac_status=$?
  4389. grep -v '^ *+' conftest.er1 >conftest.err
  4390. rm -f conftest.er1
  4391. cat conftest.err >&5
  4392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4393. (exit $ac_status); } &&
  4394. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4396. (eval $ac_try) 2>&5
  4397. ac_status=$?
  4398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4399. (exit $ac_status); }; } &&
  4400. { ac_try='test -s conftest.$ac_objext'
  4401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4402. (eval $ac_try) 2>&5
  4403. ac_status=$?
  4404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. (exit $ac_status); }; }; then
  4406. ac_cv_type__Bool=yes
  4407. else
  4408. echo "$as_me: failed program was:" >&5
  4409. sed 's/^/| /' conftest.$ac_ext >&5
  4410. ac_cv_type__Bool=no
  4411. fi
  4412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4413. fi
  4414. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  4415. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  4416. if test $ac_cv_type__Bool = yes; then
  4417. cat >>confdefs.h <<_ACEOF
  4418. #define HAVE__BOOL 1
  4419. _ACEOF
  4420. fi
  4421. if test $ac_cv_header_stdbool_h = yes; then
  4422. cat >>confdefs.h <<\_ACEOF
  4423. #define HAVE_STDBOOL_H 1
  4424. _ACEOF
  4425. fi
  4426. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4427. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4428. if test "${ac_cv_c_const+set}" = set; then
  4429. echo $ECHO_N "(cached) $ECHO_C" >&6
  4430. else
  4431. cat >conftest.$ac_ext <<_ACEOF
  4432. /* confdefs.h. */
  4433. _ACEOF
  4434. cat confdefs.h >>conftest.$ac_ext
  4435. cat >>conftest.$ac_ext <<_ACEOF
  4436. /* end confdefs.h. */
  4437. int
  4438. main ()
  4439. {
  4440. /* FIXME: Include the comments suggested by Paul. */
  4441. #ifndef __cplusplus
  4442. /* Ultrix mips cc rejects this. */
  4443. typedef int charset[2];
  4444. const charset x;
  4445. /* SunOS 4.1.1 cc rejects this. */
  4446. char const *const *ccp;
  4447. char **p;
  4448. /* NEC SVR4.0.2 mips cc rejects this. */
  4449. struct point {int x, y;};
  4450. static struct point const zero = {0,0};
  4451. /* AIX XL C 1.02.0.0 rejects this.
  4452. It does not let you subtract one const X* pointer from another in
  4453. an arm of an if-expression whose if-part is not a constant
  4454. expression */
  4455. const char *g = "string";
  4456. ccp = &g + (g ? g-g : 0);
  4457. /* HPUX 7.0 cc rejects these. */
  4458. ++ccp;
  4459. p = (char**) ccp;
  4460. ccp = (char const *const *) p;
  4461. { /* SCO 3.2v4 cc rejects this. */
  4462. char *t;
  4463. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4464. *t++ = 0;
  4465. }
  4466. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4467. int x[] = {25, 17};
  4468. const int *foo = &x[0];
  4469. ++foo;
  4470. }
  4471. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4472. typedef const int *iptr;
  4473. iptr p = 0;
  4474. ++p;
  4475. }
  4476. { /* AIX XL C 1.02.0.0 rejects this saying
  4477. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4478. struct s { int j; const int *ap[3]; };
  4479. struct s *b; b->j = 5;
  4480. }
  4481. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4482. const int foo = 10;
  4483. }
  4484. #endif
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. rm -f conftest.$ac_objext
  4490. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4491. (eval $ac_compile) 2>conftest.er1
  4492. ac_status=$?
  4493. grep -v '^ *+' conftest.er1 >conftest.err
  4494. rm -f conftest.er1
  4495. cat conftest.err >&5
  4496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4497. (exit $ac_status); } &&
  4498. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4500. (eval $ac_try) 2>&5
  4501. ac_status=$?
  4502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4503. (exit $ac_status); }; } &&
  4504. { ac_try='test -s conftest.$ac_objext'
  4505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4506. (eval $ac_try) 2>&5
  4507. ac_status=$?
  4508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4509. (exit $ac_status); }; }; then
  4510. ac_cv_c_const=yes
  4511. else
  4512. echo "$as_me: failed program was:" >&5
  4513. sed 's/^/| /' conftest.$ac_ext >&5
  4514. ac_cv_c_const=no
  4515. fi
  4516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. fi
  4518. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4519. echo "${ECHO_T}$ac_cv_c_const" >&6
  4520. if test $ac_cv_c_const = no; then
  4521. cat >>confdefs.h <<\_ACEOF
  4522. #define const
  4523. _ACEOF
  4524. fi
  4525. echo "$as_me:$LINENO: checking for inline" >&5
  4526. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  4527. if test "${ac_cv_c_inline+set}" = set; then
  4528. echo $ECHO_N "(cached) $ECHO_C" >&6
  4529. else
  4530. ac_cv_c_inline=no
  4531. for ac_kw in inline __inline__ __inline; do
  4532. cat >conftest.$ac_ext <<_ACEOF
  4533. /* confdefs.h. */
  4534. _ACEOF
  4535. cat confdefs.h >>conftest.$ac_ext
  4536. cat >>conftest.$ac_ext <<_ACEOF
  4537. /* end confdefs.h. */
  4538. #ifndef __cplusplus
  4539. typedef int foo_t;
  4540. static $ac_kw foo_t static_foo () {return 0; }
  4541. $ac_kw foo_t foo () {return 0; }
  4542. #endif
  4543. _ACEOF
  4544. rm -f conftest.$ac_objext
  4545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4546. (eval $ac_compile) 2>conftest.er1
  4547. ac_status=$?
  4548. grep -v '^ *+' conftest.er1 >conftest.err
  4549. rm -f conftest.er1
  4550. cat conftest.err >&5
  4551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4552. (exit $ac_status); } &&
  4553. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4555. (eval $ac_try) 2>&5
  4556. ac_status=$?
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); }; } &&
  4559. { ac_try='test -s conftest.$ac_objext'
  4560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4561. (eval $ac_try) 2>&5
  4562. ac_status=$?
  4563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564. (exit $ac_status); }; }; then
  4565. ac_cv_c_inline=$ac_kw; break
  4566. else
  4567. echo "$as_me: failed program was:" >&5
  4568. sed 's/^/| /' conftest.$ac_ext >&5
  4569. fi
  4570. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4571. done
  4572. fi
  4573. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  4574. echo "${ECHO_T}$ac_cv_c_inline" >&6
  4575. case $ac_cv_c_inline in
  4576. inline | yes) ;;
  4577. *)
  4578. case $ac_cv_c_inline in
  4579. no) ac_val=;;
  4580. *) ac_val=$ac_cv_c_inline;;
  4581. esac
  4582. cat >>confdefs.h <<_ACEOF
  4583. #ifndef __cplusplus
  4584. #define inline $ac_val
  4585. #endif
  4586. _ACEOF
  4587. ;;
  4588. esac
  4589. echo "$as_me:$LINENO: checking for size_t" >&5
  4590. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4591. if test "${ac_cv_type_size_t+set}" = set; then
  4592. echo $ECHO_N "(cached) $ECHO_C" >&6
  4593. else
  4594. cat >conftest.$ac_ext <<_ACEOF
  4595. /* confdefs.h. */
  4596. _ACEOF
  4597. cat confdefs.h >>conftest.$ac_ext
  4598. cat >>conftest.$ac_ext <<_ACEOF
  4599. /* end confdefs.h. */
  4600. $ac_includes_default
  4601. int
  4602. main ()
  4603. {
  4604. if ((size_t *) 0)
  4605. return 0;
  4606. if (sizeof (size_t))
  4607. return 0;
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest.$ac_objext
  4613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4614. (eval $ac_compile) 2>conftest.er1
  4615. ac_status=$?
  4616. grep -v '^ *+' conftest.er1 >conftest.err
  4617. rm -f conftest.er1
  4618. cat conftest.err >&5
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } &&
  4621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4623. (eval $ac_try) 2>&5
  4624. ac_status=$?
  4625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4626. (exit $ac_status); }; } &&
  4627. { ac_try='test -s conftest.$ac_objext'
  4628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4629. (eval $ac_try) 2>&5
  4630. ac_status=$?
  4631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4632. (exit $ac_status); }; }; then
  4633. ac_cv_type_size_t=yes
  4634. else
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. ac_cv_type_size_t=no
  4638. fi
  4639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4640. fi
  4641. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4642. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4643. if test $ac_cv_type_size_t = yes; then
  4644. :
  4645. else
  4646. cat >>confdefs.h <<_ACEOF
  4647. #define size_t unsigned
  4648. _ACEOF
  4649. fi
  4650. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4651. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4652. if test "${ac_cv_header_time+set}" = set; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. #include <sys/types.h>
  4662. #include <sys/time.h>
  4663. #include <time.h>
  4664. int
  4665. main ()
  4666. {
  4667. if ((struct tm *) 0)
  4668. return 0;
  4669. ;
  4670. return 0;
  4671. }
  4672. _ACEOF
  4673. rm -f conftest.$ac_objext
  4674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4675. (eval $ac_compile) 2>conftest.er1
  4676. ac_status=$?
  4677. grep -v '^ *+' conftest.er1 >conftest.err
  4678. rm -f conftest.er1
  4679. cat conftest.err >&5
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); } &&
  4682. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4684. (eval $ac_try) 2>&5
  4685. ac_status=$?
  4686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4687. (exit $ac_status); }; } &&
  4688. { ac_try='test -s conftest.$ac_objext'
  4689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4690. (eval $ac_try) 2>&5
  4691. ac_status=$?
  4692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4693. (exit $ac_status); }; }; then
  4694. ac_cv_header_time=yes
  4695. else
  4696. echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698. ac_cv_header_time=no
  4699. fi
  4700. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4701. fi
  4702. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4703. echo "${ECHO_T}$ac_cv_header_time" >&6
  4704. if test $ac_cv_header_time = yes; then
  4705. cat >>confdefs.h <<\_ACEOF
  4706. #define TIME_WITH_SYS_TIME 1
  4707. _ACEOF
  4708. fi
  4709. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  4710. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  4711. if test "${ac_cv_struct_tm+set}" = set; then
  4712. echo $ECHO_N "(cached) $ECHO_C" >&6
  4713. else
  4714. cat >conftest.$ac_ext <<_ACEOF
  4715. /* confdefs.h. */
  4716. _ACEOF
  4717. cat confdefs.h >>conftest.$ac_ext
  4718. cat >>conftest.$ac_ext <<_ACEOF
  4719. /* end confdefs.h. */
  4720. #include <sys/types.h>
  4721. #include <time.h>
  4722. int
  4723. main ()
  4724. {
  4725. struct tm *tp; tp->tm_sec;
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. rm -f conftest.$ac_objext
  4731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4732. (eval $ac_compile) 2>conftest.er1
  4733. ac_status=$?
  4734. grep -v '^ *+' conftest.er1 >conftest.err
  4735. rm -f conftest.er1
  4736. cat conftest.err >&5
  4737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); } &&
  4739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4741. (eval $ac_try) 2>&5
  4742. ac_status=$?
  4743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4744. (exit $ac_status); }; } &&
  4745. { ac_try='test -s conftest.$ac_objext'
  4746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4747. (eval $ac_try) 2>&5
  4748. ac_status=$?
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); }; }; then
  4751. ac_cv_struct_tm=time.h
  4752. else
  4753. echo "$as_me: failed program was:" >&5
  4754. sed 's/^/| /' conftest.$ac_ext >&5
  4755. ac_cv_struct_tm=sys/time.h
  4756. fi
  4757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4758. fi
  4759. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  4760. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  4761. if test $ac_cv_struct_tm = sys/time.h; then
  4762. cat >>confdefs.h <<\_ACEOF
  4763. #define TM_IN_SYS_TIME 1
  4764. _ACEOF
  4765. fi
  4766. echo "$as_me:$LINENO: checking for working volatile" >&5
  4767. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4768. if test "${ac_cv_c_volatile+set}" = set; then
  4769. echo $ECHO_N "(cached) $ECHO_C" >&6
  4770. else
  4771. cat >conftest.$ac_ext <<_ACEOF
  4772. /* confdefs.h. */
  4773. _ACEOF
  4774. cat confdefs.h >>conftest.$ac_ext
  4775. cat >>conftest.$ac_ext <<_ACEOF
  4776. /* end confdefs.h. */
  4777. int
  4778. main ()
  4779. {
  4780. volatile int x;
  4781. int * volatile y;
  4782. ;
  4783. return 0;
  4784. }
  4785. _ACEOF
  4786. rm -f conftest.$ac_objext
  4787. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4788. (eval $ac_compile) 2>conftest.er1
  4789. ac_status=$?
  4790. grep -v '^ *+' conftest.er1 >conftest.err
  4791. rm -f conftest.er1
  4792. cat conftest.err >&5
  4793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794. (exit $ac_status); } &&
  4795. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4797. (eval $ac_try) 2>&5
  4798. ac_status=$?
  4799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4800. (exit $ac_status); }; } &&
  4801. { ac_try='test -s conftest.$ac_objext'
  4802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4803. (eval $ac_try) 2>&5
  4804. ac_status=$?
  4805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806. (exit $ac_status); }; }; then
  4807. ac_cv_c_volatile=yes
  4808. else
  4809. echo "$as_me: failed program was:" >&5
  4810. sed 's/^/| /' conftest.$ac_ext >&5
  4811. ac_cv_c_volatile=no
  4812. fi
  4813. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  4816. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4817. if test $ac_cv_c_volatile = no; then
  4818. cat >>confdefs.h <<\_ACEOF
  4819. #define volatile
  4820. _ACEOF
  4821. fi
  4822. # Checks for library functions.
  4823. MKINSTALLDIRS=
  4824. if test -n "$ac_aux_dir"; then
  4825. case "$ac_aux_dir" in
  4826. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  4827. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  4828. esac
  4829. fi
  4830. if test -z "$MKINSTALLDIRS"; then
  4831. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  4832. fi
  4833. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  4834. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  4835. # Check whether --enable-nls or --disable-nls was given.
  4836. if test "${enable_nls+set}" = set; then
  4837. enableval="$enable_nls"
  4838. USE_NLS=$enableval
  4839. else
  4840. USE_NLS=yes
  4841. fi;
  4842. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  4843. echo "${ECHO_T}$USE_NLS" >&6
  4844. # Prepare PATH_SEPARATOR.
  4845. # The user is always right.
  4846. if test "${PATH_SEPARATOR+set}" != set; then
  4847. echo "#! /bin/sh" >conf$$.sh
  4848. echo "exit 0" >>conf$$.sh
  4849. chmod +x conf$$.sh
  4850. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4851. PATH_SEPARATOR=';'
  4852. else
  4853. PATH_SEPARATOR=:
  4854. fi
  4855. rm -f conf$$.sh
  4856. fi
  4857. # Find out how to test for executable files. Don't use a zero-byte file,
  4858. # as systems may use methods other than mode bits to determine executability.
  4859. cat >conf$$.file <<_ASEOF
  4860. #! /bin/sh
  4861. exit 0
  4862. _ASEOF
  4863. chmod +x conf$$.file
  4864. if test -x conf$$.file >/dev/null 2>&1; then
  4865. ac_executable_p="test -x"
  4866. else
  4867. ac_executable_p="test -f"
  4868. fi
  4869. rm -f conf$$.file
  4870. # Extract the first word of "msgfmt", so it can be a program name with args.
  4871. set dummy msgfmt; ac_word=$2
  4872. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4873. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4874. if test "${ac_cv_path_MSGFMT+set}" = set; then
  4875. echo $ECHO_N "(cached) $ECHO_C" >&6
  4876. else
  4877. case "$MSGFMT" in
  4878. [\\/]* | ?:[\\/]*)
  4879. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4880. ;;
  4881. *)
  4882. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4883. for ac_dir in $PATH; do
  4884. IFS="$ac_save_IFS"
  4885. test -z "$ac_dir" && ac_dir=.
  4886. for ac_exec_ext in '' $ac_executable_extensions; do
  4887. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4888. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  4889. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4890. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  4891. break 2
  4892. fi
  4893. fi
  4894. done
  4895. done
  4896. IFS="$ac_save_IFS"
  4897. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  4898. ;;
  4899. esac
  4900. fi
  4901. MSGFMT="$ac_cv_path_MSGFMT"
  4902. if test "$MSGFMT" != ":"; then
  4903. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  4904. echo "${ECHO_T}$MSGFMT" >&6
  4905. else
  4906. echo "$as_me:$LINENO: result: no" >&5
  4907. echo "${ECHO_T}no" >&6
  4908. fi
  4909. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4910. set dummy gmsgfmt; ac_word=$2
  4911. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4912. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4913. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  4914. echo $ECHO_N "(cached) $ECHO_C" >&6
  4915. else
  4916. case $GMSGFMT in
  4917. [\\/]* | ?:[\\/]*)
  4918. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4919. ;;
  4920. *)
  4921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4922. for as_dir in $PATH
  4923. do
  4924. IFS=$as_save_IFS
  4925. test -z "$as_dir" && as_dir=.
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4928. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4929. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4930. break 2
  4931. fi
  4932. done
  4933. done
  4934. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4935. ;;
  4936. esac
  4937. fi
  4938. GMSGFMT=$ac_cv_path_GMSGFMT
  4939. if test -n "$GMSGFMT"; then
  4940. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  4941. echo "${ECHO_T}$GMSGFMT" >&6
  4942. else
  4943. echo "$as_me:$LINENO: result: no" >&5
  4944. echo "${ECHO_T}no" >&6
  4945. fi
  4946. # Prepare PATH_SEPARATOR.
  4947. # The user is always right.
  4948. if test "${PATH_SEPARATOR+set}" != set; then
  4949. echo "#! /bin/sh" >conf$$.sh
  4950. echo "exit 0" >>conf$$.sh
  4951. chmod +x conf$$.sh
  4952. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4953. PATH_SEPARATOR=';'
  4954. else
  4955. PATH_SEPARATOR=:
  4956. fi
  4957. rm -f conf$$.sh
  4958. fi
  4959. # Find out how to test for executable files. Don't use a zero-byte file,
  4960. # as systems may use methods other than mode bits to determine executability.
  4961. cat >conf$$.file <<_ASEOF
  4962. #! /bin/sh
  4963. exit 0
  4964. _ASEOF
  4965. chmod +x conf$$.file
  4966. if test -x conf$$.file >/dev/null 2>&1; then
  4967. ac_executable_p="test -x"
  4968. else
  4969. ac_executable_p="test -f"
  4970. fi
  4971. rm -f conf$$.file
  4972. # Extract the first word of "xgettext", so it can be a program name with args.
  4973. set dummy xgettext; ac_word=$2
  4974. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4975. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4976. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  4977. echo $ECHO_N "(cached) $ECHO_C" >&6
  4978. else
  4979. case "$XGETTEXT" in
  4980. [\\/]* | ?:[\\/]*)
  4981. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4982. ;;
  4983. *)
  4984. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4985. for ac_dir in $PATH; do
  4986. IFS="$ac_save_IFS"
  4987. test -z "$ac_dir" && ac_dir=.
  4988. for ac_exec_ext in '' $ac_executable_extensions; do
  4989. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4990. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4991. (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
  4992. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  4993. break 2
  4994. fi
  4995. fi
  4996. done
  4997. done
  4998. IFS="$ac_save_IFS"
  4999. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5000. ;;
  5001. esac
  5002. fi
  5003. XGETTEXT="$ac_cv_path_XGETTEXT"
  5004. if test "$XGETTEXT" != ":"; then
  5005. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5006. echo "${ECHO_T}$XGETTEXT" >&6
  5007. else
  5008. echo "$as_me:$LINENO: result: no" >&5
  5009. echo "${ECHO_T}no" >&6
  5010. fi
  5011. rm -f messages.po
  5012. # Prepare PATH_SEPARATOR.
  5013. # The user is always right.
  5014. if test "${PATH_SEPARATOR+set}" != set; then
  5015. echo "#! /bin/sh" >conf$$.sh
  5016. echo "exit 0" >>conf$$.sh
  5017. chmod +x conf$$.sh
  5018. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5019. PATH_SEPARATOR=';'
  5020. else
  5021. PATH_SEPARATOR=:
  5022. fi
  5023. rm -f conf$$.sh
  5024. fi
  5025. # Find out how to test for executable files. Don't use a zero-byte file,
  5026. # as systems may use methods other than mode bits to determine executability.
  5027. cat >conf$$.file <<_ASEOF
  5028. #! /bin/sh
  5029. exit 0
  5030. _ASEOF
  5031. chmod +x conf$$.file
  5032. if test -x conf$$.file >/dev/null 2>&1; then
  5033. ac_executable_p="test -x"
  5034. else
  5035. ac_executable_p="test -f"
  5036. fi
  5037. rm -f conf$$.file
  5038. # Extract the first word of "msgmerge", so it can be a program name with args.
  5039. set dummy msgmerge; ac_word=$2
  5040. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5041. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5042. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. case "$MSGMERGE" in
  5046. [\\/]* | ?:[\\/]*)
  5047. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5048. ;;
  5049. *)
  5050. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5051. for ac_dir in $PATH; do
  5052. IFS="$ac_save_IFS"
  5053. test -z "$ac_dir" && ac_dir=.
  5054. for ac_exec_ext in '' $ac_executable_extensions; do
  5055. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5056. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5057. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5058. break 2
  5059. fi
  5060. fi
  5061. done
  5062. done
  5063. IFS="$ac_save_IFS"
  5064. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5065. ;;
  5066. esac
  5067. fi
  5068. MSGMERGE="$ac_cv_path_MSGMERGE"
  5069. if test "$MSGMERGE" != ":"; then
  5070. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5071. echo "${ECHO_T}$MSGMERGE" >&6
  5072. else
  5073. echo "$as_me:$LINENO: result: no" >&5
  5074. echo "${ECHO_T}no" >&6
  5075. fi
  5076. if test "$GMSGFMT" != ":"; then
  5077. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5078. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5079. : ;
  5080. else
  5081. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5082. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5083. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  5084. GMSGFMT=":"
  5085. fi
  5086. fi
  5087. if test "$XGETTEXT" != ":"; then
  5088. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5089. (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
  5090. : ;
  5091. else
  5092. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5093. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  5094. XGETTEXT=":"
  5095. fi
  5096. rm -f messages.po
  5097. fi
  5098. ac_config_commands="$ac_config_commands default-1"
  5099. # Make sure we can run config.sub.
  5100. $ac_config_sub sun4 >/dev/null 2>&1 ||
  5101. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  5102. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  5103. { (exit 1); exit 1; }; }
  5104. echo "$as_me:$LINENO: checking build system type" >&5
  5105. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  5106. if test "${ac_cv_build+set}" = set; then
  5107. echo $ECHO_N "(cached) $ECHO_C" >&6
  5108. else
  5109. ac_cv_build_alias=$build_alias
  5110. test -z "$ac_cv_build_alias" &&
  5111. ac_cv_build_alias=`$ac_config_guess`
  5112. test -z "$ac_cv_build_alias" &&
  5113. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5114. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5115. { (exit 1); exit 1; }; }
  5116. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  5117. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  5118. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  5119. { (exit 1); exit 1; }; }
  5120. fi
  5121. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5122. echo "${ECHO_T}$ac_cv_build" >&6
  5123. build=$ac_cv_build
  5124. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5125. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5126. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5127. echo "$as_me:$LINENO: checking host system type" >&5
  5128. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  5129. if test "${ac_cv_host+set}" = set; then
  5130. echo $ECHO_N "(cached) $ECHO_C" >&6
  5131. else
  5132. ac_cv_host_alias=$host_alias
  5133. test -z "$ac_cv_host_alias" &&
  5134. ac_cv_host_alias=$ac_cv_build_alias
  5135. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  5136. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  5137. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  5138. { (exit 1); exit 1; }; }
  5139. fi
  5140. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5141. echo "${ECHO_T}$ac_cv_host" >&6
  5142. host=$ac_cv_host
  5143. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5144. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5145. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5146. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  5147. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  5148. if test "${ac_cv_search_strerror+set}" = set; then
  5149. echo $ECHO_N "(cached) $ECHO_C" >&6
  5150. else
  5151. ac_func_search_save_LIBS=$LIBS
  5152. ac_cv_search_strerror=no
  5153. cat >conftest.$ac_ext <<_ACEOF
  5154. /* confdefs.h. */
  5155. _ACEOF
  5156. cat confdefs.h >>conftest.$ac_ext
  5157. cat >>conftest.$ac_ext <<_ACEOF
  5158. /* end confdefs.h. */
  5159. /* Override any gcc2 internal prototype to avoid an error. */
  5160. #ifdef __cplusplus
  5161. extern "C"
  5162. #endif
  5163. /* We use char because int might match the return type of a gcc2
  5164. builtin and then its argument prototype would still apply. */
  5165. char strerror ();
  5166. int
  5167. main ()
  5168. {
  5169. strerror ();
  5170. ;
  5171. return 0;
  5172. }
  5173. _ACEOF
  5174. rm -f conftest.$ac_objext conftest$ac_exeext
  5175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5176. (eval $ac_link) 2>conftest.er1
  5177. ac_status=$?
  5178. grep -v '^ *+' conftest.er1 >conftest.err
  5179. rm -f conftest.er1
  5180. cat conftest.err >&5
  5181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182. (exit $ac_status); } &&
  5183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5185. (eval $ac_try) 2>&5
  5186. ac_status=$?
  5187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5188. (exit $ac_status); }; } &&
  5189. { ac_try='test -s conftest$ac_exeext'
  5190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5191. (eval $ac_try) 2>&5
  5192. ac_status=$?
  5193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5194. (exit $ac_status); }; }; then
  5195. ac_cv_search_strerror="none required"
  5196. else
  5197. echo "$as_me: failed program was:" >&5
  5198. sed 's/^/| /' conftest.$ac_ext >&5
  5199. fi
  5200. rm -f conftest.err conftest.$ac_objext \
  5201. conftest$ac_exeext conftest.$ac_ext
  5202. if test "$ac_cv_search_strerror" = no; then
  5203. for ac_lib in cposix; do
  5204. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5205. cat >conftest.$ac_ext <<_ACEOF
  5206. /* confdefs.h. */
  5207. _ACEOF
  5208. cat confdefs.h >>conftest.$ac_ext
  5209. cat >>conftest.$ac_ext <<_ACEOF
  5210. /* end confdefs.h. */
  5211. /* Override any gcc2 internal prototype to avoid an error. */
  5212. #ifdef __cplusplus
  5213. extern "C"
  5214. #endif
  5215. /* We use char because int might match the return type of a gcc2
  5216. builtin and then its argument prototype would still apply. */
  5217. char strerror ();
  5218. int
  5219. main ()
  5220. {
  5221. strerror ();
  5222. ;
  5223. return 0;
  5224. }
  5225. _ACEOF
  5226. rm -f conftest.$ac_objext conftest$ac_exeext
  5227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5228. (eval $ac_link) 2>conftest.er1
  5229. ac_status=$?
  5230. grep -v '^ *+' conftest.er1 >conftest.err
  5231. rm -f conftest.er1
  5232. cat conftest.err >&5
  5233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5234. (exit $ac_status); } &&
  5235. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5237. (eval $ac_try) 2>&5
  5238. ac_status=$?
  5239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5240. (exit $ac_status); }; } &&
  5241. { ac_try='test -s conftest$ac_exeext'
  5242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5243. (eval $ac_try) 2>&5
  5244. ac_status=$?
  5245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246. (exit $ac_status); }; }; then
  5247. ac_cv_search_strerror="-l$ac_lib"
  5248. break
  5249. else
  5250. echo "$as_me: failed program was:" >&5
  5251. sed 's/^/| /' conftest.$ac_ext >&5
  5252. fi
  5253. rm -f conftest.err conftest.$ac_objext \
  5254. conftest$ac_exeext conftest.$ac_ext
  5255. done
  5256. fi
  5257. LIBS=$ac_func_search_save_LIBS
  5258. fi
  5259. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  5260. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  5261. if test "$ac_cv_search_strerror" != no; then
  5262. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  5263. fi
  5264. echo "$as_me:$LINENO: checking for off_t" >&5
  5265. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  5266. if test "${ac_cv_type_off_t+set}" = set; then
  5267. echo $ECHO_N "(cached) $ECHO_C" >&6
  5268. else
  5269. cat >conftest.$ac_ext <<_ACEOF
  5270. /* confdefs.h. */
  5271. _ACEOF
  5272. cat confdefs.h >>conftest.$ac_ext
  5273. cat >>conftest.$ac_ext <<_ACEOF
  5274. /* end confdefs.h. */
  5275. $ac_includes_default
  5276. int
  5277. main ()
  5278. {
  5279. if ((off_t *) 0)
  5280. return 0;
  5281. if (sizeof (off_t))
  5282. return 0;
  5283. ;
  5284. return 0;
  5285. }
  5286. _ACEOF
  5287. rm -f conftest.$ac_objext
  5288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5289. (eval $ac_compile) 2>conftest.er1
  5290. ac_status=$?
  5291. grep -v '^ *+' conftest.er1 >conftest.err
  5292. rm -f conftest.er1
  5293. cat conftest.err >&5
  5294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5295. (exit $ac_status); } &&
  5296. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5298. (eval $ac_try) 2>&5
  5299. ac_status=$?
  5300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5301. (exit $ac_status); }; } &&
  5302. { ac_try='test -s conftest.$ac_objext'
  5303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5304. (eval $ac_try) 2>&5
  5305. ac_status=$?
  5306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307. (exit $ac_status); }; }; then
  5308. ac_cv_type_off_t=yes
  5309. else
  5310. echo "$as_me: failed program was:" >&5
  5311. sed 's/^/| /' conftest.$ac_ext >&5
  5312. ac_cv_type_off_t=no
  5313. fi
  5314. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5315. fi
  5316. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  5317. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  5318. if test $ac_cv_type_off_t = yes; then
  5319. :
  5320. else
  5321. cat >>confdefs.h <<_ACEOF
  5322. #define off_t long
  5323. _ACEOF
  5324. fi
  5325. for ac_header in stdlib.h unistd.h
  5326. do
  5327. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5329. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5330. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5332. echo $ECHO_N "(cached) $ECHO_C" >&6
  5333. fi
  5334. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5335. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5336. else
  5337. # Is the header compilable?
  5338. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5339. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5340. cat >conftest.$ac_ext <<_ACEOF
  5341. /* confdefs.h. */
  5342. _ACEOF
  5343. cat confdefs.h >>conftest.$ac_ext
  5344. cat >>conftest.$ac_ext <<_ACEOF
  5345. /* end confdefs.h. */
  5346. $ac_includes_default
  5347. #include <$ac_header>
  5348. _ACEOF
  5349. rm -f conftest.$ac_objext
  5350. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5351. (eval $ac_compile) 2>conftest.er1
  5352. ac_status=$?
  5353. grep -v '^ *+' conftest.er1 >conftest.err
  5354. rm -f conftest.er1
  5355. cat conftest.err >&5
  5356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5357. (exit $ac_status); } &&
  5358. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5360. (eval $ac_try) 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); }; } &&
  5364. { ac_try='test -s conftest.$ac_objext'
  5365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5366. (eval $ac_try) 2>&5
  5367. ac_status=$?
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); }; }; then
  5370. ac_header_compiler=yes
  5371. else
  5372. echo "$as_me: failed program was:" >&5
  5373. sed 's/^/| /' conftest.$ac_ext >&5
  5374. ac_header_compiler=no
  5375. fi
  5376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5377. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5378. echo "${ECHO_T}$ac_header_compiler" >&6
  5379. # Is the header present?
  5380. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5381. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5382. cat >conftest.$ac_ext <<_ACEOF
  5383. /* confdefs.h. */
  5384. _ACEOF
  5385. cat confdefs.h >>conftest.$ac_ext
  5386. cat >>conftest.$ac_ext <<_ACEOF
  5387. /* end confdefs.h. */
  5388. #include <$ac_header>
  5389. _ACEOF
  5390. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5391. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5392. ac_status=$?
  5393. grep -v '^ *+' conftest.er1 >conftest.err
  5394. rm -f conftest.er1
  5395. cat conftest.err >&5
  5396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. (exit $ac_status); } >/dev/null; then
  5398. if test -s conftest.err; then
  5399. ac_cpp_err=$ac_c_preproc_warn_flag
  5400. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5401. else
  5402. ac_cpp_err=
  5403. fi
  5404. else
  5405. ac_cpp_err=yes
  5406. fi
  5407. if test -z "$ac_cpp_err"; then
  5408. ac_header_preproc=yes
  5409. else
  5410. echo "$as_me: failed program was:" >&5
  5411. sed 's/^/| /' conftest.$ac_ext >&5
  5412. ac_header_preproc=no
  5413. fi
  5414. rm -f conftest.err conftest.$ac_ext
  5415. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5416. echo "${ECHO_T}$ac_header_preproc" >&6
  5417. # So? What about this header?
  5418. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5419. yes:no: )
  5420. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5421. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5423. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5424. ac_header_preproc=yes
  5425. ;;
  5426. no:yes:* )
  5427. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5428. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5429. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5430. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5431. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5432. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5433. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5434. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5436. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5437. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5438. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5439. (
  5440. cat <<\_ASBOX
  5441. ## ----------------------------------- ##
  5442. ## Report this to tujikawa@rednoah.com ##
  5443. ## ----------------------------------- ##
  5444. _ASBOX
  5445. ) |
  5446. sed "s/^/$as_me: WARNING: /" >&2
  5447. ;;
  5448. esac
  5449. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5450. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5451. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5452. echo $ECHO_N "(cached) $ECHO_C" >&6
  5453. else
  5454. eval "$as_ac_Header=\$ac_header_preproc"
  5455. fi
  5456. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5457. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5458. fi
  5459. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5460. cat >>confdefs.h <<_ACEOF
  5461. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5462. _ACEOF
  5463. fi
  5464. done
  5465. for ac_func in getpagesize
  5466. do
  5467. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5468. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5469. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5470. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5471. echo $ECHO_N "(cached) $ECHO_C" >&6
  5472. else
  5473. cat >conftest.$ac_ext <<_ACEOF
  5474. /* confdefs.h. */
  5475. _ACEOF
  5476. cat confdefs.h >>conftest.$ac_ext
  5477. cat >>conftest.$ac_ext <<_ACEOF
  5478. /* end confdefs.h. */
  5479. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5480. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5481. #define $ac_func innocuous_$ac_func
  5482. /* System header to define __stub macros and hopefully few prototypes,
  5483. which can conflict with char $ac_func (); below.
  5484. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5485. <limits.h> exists even on freestanding compilers. */
  5486. #ifdef __STDC__
  5487. # include <limits.h>
  5488. #else
  5489. # include <assert.h>
  5490. #endif
  5491. #undef $ac_func
  5492. /* Override any gcc2 internal prototype to avoid an error. */
  5493. #ifdef __cplusplus
  5494. extern "C"
  5495. {
  5496. #endif
  5497. /* We use char because int might match the return type of a gcc2
  5498. builtin and then its argument prototype would still apply. */
  5499. char $ac_func ();
  5500. /* The GNU C library defines this for functions which it implements
  5501. to always fail with ENOSYS. Some functions are actually named
  5502. something starting with __ and the normal name is an alias. */
  5503. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5504. choke me
  5505. #else
  5506. char (*f) () = $ac_func;
  5507. #endif
  5508. #ifdef __cplusplus
  5509. }
  5510. #endif
  5511. int
  5512. main ()
  5513. {
  5514. return f != $ac_func;
  5515. ;
  5516. return 0;
  5517. }
  5518. _ACEOF
  5519. rm -f conftest.$ac_objext conftest$ac_exeext
  5520. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5521. (eval $ac_link) 2>conftest.er1
  5522. ac_status=$?
  5523. grep -v '^ *+' conftest.er1 >conftest.err
  5524. rm -f conftest.er1
  5525. cat conftest.err >&5
  5526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5527. (exit $ac_status); } &&
  5528. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5530. (eval $ac_try) 2>&5
  5531. ac_status=$?
  5532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. (exit $ac_status); }; } &&
  5534. { ac_try='test -s conftest$ac_exeext'
  5535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5536. (eval $ac_try) 2>&5
  5537. ac_status=$?
  5538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539. (exit $ac_status); }; }; then
  5540. eval "$as_ac_var=yes"
  5541. else
  5542. echo "$as_me: failed program was:" >&5
  5543. sed 's/^/| /' conftest.$ac_ext >&5
  5544. eval "$as_ac_var=no"
  5545. fi
  5546. rm -f conftest.err conftest.$ac_objext \
  5547. conftest$ac_exeext conftest.$ac_ext
  5548. fi
  5549. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5550. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5551. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5552. cat >>confdefs.h <<_ACEOF
  5553. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5554. _ACEOF
  5555. fi
  5556. done
  5557. echo "$as_me:$LINENO: checking for working mmap" >&5
  5558. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  5559. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  5560. echo $ECHO_N "(cached) $ECHO_C" >&6
  5561. else
  5562. if test "$cross_compiling" = yes; then
  5563. ac_cv_func_mmap_fixed_mapped=no
  5564. else
  5565. cat >conftest.$ac_ext <<_ACEOF
  5566. /* confdefs.h. */
  5567. _ACEOF
  5568. cat confdefs.h >>conftest.$ac_ext
  5569. cat >>conftest.$ac_ext <<_ACEOF
  5570. /* end confdefs.h. */
  5571. $ac_includes_default
  5572. /* malloc might have been renamed as rpl_malloc. */
  5573. #undef malloc
  5574. /* Thanks to Mike Haertel and Jim Avera for this test.
  5575. Here is a matrix of mmap possibilities:
  5576. mmap private not fixed
  5577. mmap private fixed at somewhere currently unmapped
  5578. mmap private fixed at somewhere already mapped
  5579. mmap shared not fixed
  5580. mmap shared fixed at somewhere currently unmapped
  5581. mmap shared fixed at somewhere already mapped
  5582. For private mappings, we should verify that changes cannot be read()
  5583. back from the file, nor mmap's back from the file at a different
  5584. address. (There have been systems where private was not correctly
  5585. implemented like the infamous i386 svr4.0, and systems where the
  5586. VM page cache was not coherent with the file system buffer cache
  5587. like early versions of FreeBSD and possibly contemporary NetBSD.)
  5588. For shared mappings, we should conversely verify that changes get
  5589. propagated back to all the places they're supposed to be.
  5590. Grep wants private fixed already mapped.
  5591. The main things grep needs to know about mmap are:
  5592. * does it exist and is it safe to write into the mmap'd area
  5593. * how to use it (BSD variants) */
  5594. #include <fcntl.h>
  5595. #include <sys/mman.h>
  5596. #if !STDC_HEADERS && !HAVE_STDLIB_H
  5597. char *malloc ();
  5598. #endif
  5599. /* This mess was copied from the GNU getpagesize.h. */
  5600. #if !HAVE_GETPAGESIZE
  5601. /* Assume that all systems that can run configure have sys/param.h. */
  5602. # if !HAVE_SYS_PARAM_H
  5603. # define HAVE_SYS_PARAM_H 1
  5604. # endif
  5605. # ifdef _SC_PAGESIZE
  5606. # define getpagesize() sysconf(_SC_PAGESIZE)
  5607. # else /* no _SC_PAGESIZE */
  5608. # if HAVE_SYS_PARAM_H
  5609. # include <sys/param.h>
  5610. # ifdef EXEC_PAGESIZE
  5611. # define getpagesize() EXEC_PAGESIZE
  5612. # else /* no EXEC_PAGESIZE */
  5613. # ifdef NBPG
  5614. # define getpagesize() NBPG * CLSIZE
  5615. # ifndef CLSIZE
  5616. # define CLSIZE 1
  5617. # endif /* no CLSIZE */
  5618. # else /* no NBPG */
  5619. # ifdef NBPC
  5620. # define getpagesize() NBPC
  5621. # else /* no NBPC */
  5622. # ifdef PAGESIZE
  5623. # define getpagesize() PAGESIZE
  5624. # endif /* PAGESIZE */
  5625. # endif /* no NBPC */
  5626. # endif /* no NBPG */
  5627. # endif /* no EXEC_PAGESIZE */
  5628. # else /* no HAVE_SYS_PARAM_H */
  5629. # define getpagesize() 8192 /* punt totally */
  5630. # endif /* no HAVE_SYS_PARAM_H */
  5631. # endif /* no _SC_PAGESIZE */
  5632. #endif /* no HAVE_GETPAGESIZE */
  5633. int
  5634. main ()
  5635. {
  5636. char *data, *data2, *data3;
  5637. int i, pagesize;
  5638. int fd;
  5639. pagesize = getpagesize ();
  5640. /* First, make a file with some known garbage in it. */
  5641. data = (char *) malloc (pagesize);
  5642. if (!data)
  5643. exit (1);
  5644. for (i = 0; i < pagesize; ++i)
  5645. *(data + i) = rand ();
  5646. umask (0);
  5647. fd = creat ("conftest.mmap", 0600);
  5648. if (fd < 0)
  5649. exit (1);
  5650. if (write (fd, data, pagesize) != pagesize)
  5651. exit (1);
  5652. close (fd);
  5653. /* Next, try to mmap the file at a fixed address which already has
  5654. something else allocated at it. If we can, also make sure that
  5655. we see the same garbage. */
  5656. fd = open ("conftest.mmap", O_RDWR);
  5657. if (fd < 0)
  5658. exit (1);
  5659. data2 = (char *) malloc (2 * pagesize);
  5660. if (!data2)
  5661. exit (1);
  5662. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  5663. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  5664. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5665. exit (1);
  5666. for (i = 0; i < pagesize; ++i)
  5667. if (*(data + i) != *(data2 + i))
  5668. exit (1);
  5669. /* Finally, make sure that changes to the mapped area do not
  5670. percolate back to the file as seen by read(). (This is a bug on
  5671. some variants of i386 svr4.0.) */
  5672. for (i = 0; i < pagesize; ++i)
  5673. *(data2 + i) = *(data2 + i) + 1;
  5674. data3 = (char *) malloc (pagesize);
  5675. if (!data3)
  5676. exit (1);
  5677. if (read (fd, data3, pagesize) != pagesize)
  5678. exit (1);
  5679. for (i = 0; i < pagesize; ++i)
  5680. if (*(data + i) != *(data3 + i))
  5681. exit (1);
  5682. close (fd);
  5683. exit (0);
  5684. }
  5685. _ACEOF
  5686. rm -f conftest$ac_exeext
  5687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5688. (eval $ac_link) 2>&5
  5689. ac_status=$?
  5690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5691. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5693. (eval $ac_try) 2>&5
  5694. ac_status=$?
  5695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5696. (exit $ac_status); }; }; then
  5697. ac_cv_func_mmap_fixed_mapped=yes
  5698. else
  5699. echo "$as_me: program exited with status $ac_status" >&5
  5700. echo "$as_me: failed program was:" >&5
  5701. sed 's/^/| /' conftest.$ac_ext >&5
  5702. ( exit $ac_status )
  5703. ac_cv_func_mmap_fixed_mapped=no
  5704. fi
  5705. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5706. fi
  5707. fi
  5708. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  5709. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  5710. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5711. cat >>confdefs.h <<\_ACEOF
  5712. #define HAVE_MMAP 1
  5713. _ACEOF
  5714. fi
  5715. rm -f conftest.mmap
  5716. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  5717. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  5718. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  5719. echo $ECHO_N "(cached) $ECHO_C" >&6
  5720. else
  5721. cat >conftest.$ac_ext <<_ACEOF
  5722. /* confdefs.h. */
  5723. _ACEOF
  5724. cat confdefs.h >>conftest.$ac_ext
  5725. cat >>conftest.$ac_ext <<_ACEOF
  5726. /* end confdefs.h. */
  5727. #include <features.h>
  5728. #ifdef __GNU_LIBRARY__
  5729. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  5730. Lucky GNU user
  5731. #endif
  5732. #endif
  5733. _ACEOF
  5734. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5735. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  5736. ac_cv_gnu_library_2_1=yes
  5737. else
  5738. ac_cv_gnu_library_2_1=no
  5739. fi
  5740. rm -f conftest*
  5741. fi
  5742. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  5743. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  5744. GLIBC21="$ac_cv_gnu_library_2_1"
  5745. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  5746. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  5747. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  5748. echo $ECHO_N "(cached) $ECHO_C" >&6
  5749. else
  5750. if test "$cross_compiling" = yes; then
  5751. # Guess based on the CPU.
  5752. case "$host_cpu" in
  5753. alpha* | i3456786 | m68k | s390*)
  5754. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  5755. *)
  5756. gt_cv_int_divbyzero_sigfpe="guessing no";;
  5757. esac
  5758. else
  5759. cat >conftest.$ac_ext <<_ACEOF
  5760. /* confdefs.h. */
  5761. _ACEOF
  5762. cat confdefs.h >>conftest.$ac_ext
  5763. cat >>conftest.$ac_ext <<_ACEOF
  5764. /* end confdefs.h. */
  5765. #include <stdlib.h>
  5766. #include <signal.h>
  5767. static void
  5768. #ifdef __cplusplus
  5769. sigfpe_handler (int sig)
  5770. #else
  5771. sigfpe_handler (sig) int sig;
  5772. #endif
  5773. {
  5774. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  5775. exit (sig != SIGFPE);
  5776. }
  5777. int x = 1;
  5778. int y = 0;
  5779. int z;
  5780. int nan;
  5781. int main ()
  5782. {
  5783. signal (SIGFPE, sigfpe_handler);
  5784. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  5785. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  5786. signal (SIGTRAP, sigfpe_handler);
  5787. #endif
  5788. /* Linux/SPARC yields signal SIGILL. */
  5789. #if defined (__sparc__) && defined (__linux__)
  5790. signal (SIGILL, sigfpe_handler);
  5791. #endif
  5792. z = x / y;
  5793. nan = y / y;
  5794. exit (1);
  5795. }
  5796. _ACEOF
  5797. rm -f conftest$ac_exeext
  5798. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5799. (eval $ac_link) 2>&5
  5800. ac_status=$?
  5801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5804. (eval $ac_try) 2>&5
  5805. ac_status=$?
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); }; }; then
  5808. gt_cv_int_divbyzero_sigfpe=yes
  5809. else
  5810. echo "$as_me: program exited with status $ac_status" >&5
  5811. echo "$as_me: failed program was:" >&5
  5812. sed 's/^/| /' conftest.$ac_ext >&5
  5813. ( exit $ac_status )
  5814. gt_cv_int_divbyzero_sigfpe=no
  5815. fi
  5816. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5817. fi
  5818. fi
  5819. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  5820. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  5821. case "$gt_cv_int_divbyzero_sigfpe" in
  5822. *yes) value=1;;
  5823. *) value=0;;
  5824. esac
  5825. cat >>confdefs.h <<_ACEOF
  5826. #define INTDIV0_RAISES_SIGFPE $value
  5827. _ACEOF
  5828. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  5829. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  5830. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  5831. echo $ECHO_N "(cached) $ECHO_C" >&6
  5832. else
  5833. cat >conftest.$ac_ext <<_ACEOF
  5834. /* confdefs.h. */
  5835. _ACEOF
  5836. cat confdefs.h >>conftest.$ac_ext
  5837. cat >>conftest.$ac_ext <<_ACEOF
  5838. /* end confdefs.h. */
  5839. #include <sys/types.h>
  5840. #include <inttypes.h>
  5841. int
  5842. main ()
  5843. {
  5844. uintmax_t i = (uintmax_t) -1;
  5845. ;
  5846. return 0;
  5847. }
  5848. _ACEOF
  5849. rm -f conftest.$ac_objext
  5850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5851. (eval $ac_compile) 2>conftest.er1
  5852. ac_status=$?
  5853. grep -v '^ *+' conftest.er1 >conftest.err
  5854. rm -f conftest.er1
  5855. cat conftest.err >&5
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); } &&
  5858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5860. (eval $ac_try) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; } &&
  5864. { ac_try='test -s conftest.$ac_objext'
  5865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5866. (eval $ac_try) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5869. (exit $ac_status); }; }; then
  5870. jm_ac_cv_header_inttypes_h=yes
  5871. else
  5872. echo "$as_me: failed program was:" >&5
  5873. sed 's/^/| /' conftest.$ac_ext >&5
  5874. jm_ac_cv_header_inttypes_h=no
  5875. fi
  5876. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5877. fi
  5878. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  5879. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  5880. if test $jm_ac_cv_header_inttypes_h = yes; then
  5881. cat >>confdefs.h <<_ACEOF
  5882. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  5883. _ACEOF
  5884. fi
  5885. echo "$as_me:$LINENO: checking for stdint.h" >&5
  5886. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  5887. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  5888. echo $ECHO_N "(cached) $ECHO_C" >&6
  5889. else
  5890. cat >conftest.$ac_ext <<_ACEOF
  5891. /* confdefs.h. */
  5892. _ACEOF
  5893. cat confdefs.h >>conftest.$ac_ext
  5894. cat >>conftest.$ac_ext <<_ACEOF
  5895. /* end confdefs.h. */
  5896. #include <sys/types.h>
  5897. #include <stdint.h>
  5898. int
  5899. main ()
  5900. {
  5901. uintmax_t i = (uintmax_t) -1;
  5902. ;
  5903. return 0;
  5904. }
  5905. _ACEOF
  5906. rm -f conftest.$ac_objext
  5907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5908. (eval $ac_compile) 2>conftest.er1
  5909. ac_status=$?
  5910. grep -v '^ *+' conftest.er1 >conftest.err
  5911. rm -f conftest.er1
  5912. cat conftest.err >&5
  5913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914. (exit $ac_status); } &&
  5915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5917. (eval $ac_try) 2>&5
  5918. ac_status=$?
  5919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920. (exit $ac_status); }; } &&
  5921. { ac_try='test -s conftest.$ac_objext'
  5922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5923. (eval $ac_try) 2>&5
  5924. ac_status=$?
  5925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5926. (exit $ac_status); }; }; then
  5927. jm_ac_cv_header_stdint_h=yes
  5928. else
  5929. echo "$as_me: failed program was:" >&5
  5930. sed 's/^/| /' conftest.$ac_ext >&5
  5931. jm_ac_cv_header_stdint_h=no
  5932. fi
  5933. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5934. fi
  5935. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  5936. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  5937. if test $jm_ac_cv_header_stdint_h = yes; then
  5938. cat >>confdefs.h <<_ACEOF
  5939. #define HAVE_STDINT_H_WITH_UINTMAX 1
  5940. _ACEOF
  5941. fi
  5942. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  5943. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  5944. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  5945. echo $ECHO_N "(cached) $ECHO_C" >&6
  5946. else
  5947. cat >conftest.$ac_ext <<_ACEOF
  5948. /* confdefs.h. */
  5949. _ACEOF
  5950. cat confdefs.h >>conftest.$ac_ext
  5951. cat >>conftest.$ac_ext <<_ACEOF
  5952. /* end confdefs.h. */
  5953. unsigned long long ull = 1; int i = 63;
  5954. int
  5955. main ()
  5956. {
  5957. unsigned long long ullmax = (unsigned long long) -1;
  5958. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  5959. ;
  5960. return 0;
  5961. }
  5962. _ACEOF
  5963. rm -f conftest.$ac_objext conftest$ac_exeext
  5964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5965. (eval $ac_link) 2>conftest.er1
  5966. ac_status=$?
  5967. grep -v '^ *+' conftest.er1 >conftest.err
  5968. rm -f conftest.er1
  5969. cat conftest.err >&5
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); } &&
  5972. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5974. (eval $ac_try) 2>&5
  5975. ac_status=$?
  5976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5977. (exit $ac_status); }; } &&
  5978. { ac_try='test -s conftest$ac_exeext'
  5979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5980. (eval $ac_try) 2>&5
  5981. ac_status=$?
  5982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. (exit $ac_status); }; }; then
  5984. ac_cv_type_unsigned_long_long=yes
  5985. else
  5986. echo "$as_me: failed program was:" >&5
  5987. sed 's/^/| /' conftest.$ac_ext >&5
  5988. ac_cv_type_unsigned_long_long=no
  5989. fi
  5990. rm -f conftest.err conftest.$ac_objext \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. fi
  5993. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  5994. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  5995. if test $ac_cv_type_unsigned_long_long = yes; then
  5996. cat >>confdefs.h <<\_ACEOF
  5997. #define HAVE_UNSIGNED_LONG_LONG 1
  5998. _ACEOF
  5999. fi
  6000. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  6001. test $ac_cv_type_unsigned_long_long = yes \
  6002. && ac_type='unsigned long long' \
  6003. || ac_type='unsigned long'
  6004. cat >>confdefs.h <<_ACEOF
  6005. #define uintmax_t $ac_type
  6006. _ACEOF
  6007. else
  6008. cat >>confdefs.h <<\_ACEOF
  6009. #define HAVE_UINTMAX_T 1
  6010. _ACEOF
  6011. fi
  6012. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6013. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6014. if test "${gt_cv_header_inttypes_h+set}" = set; then
  6015. echo $ECHO_N "(cached) $ECHO_C" >&6
  6016. else
  6017. cat >conftest.$ac_ext <<_ACEOF
  6018. /* confdefs.h. */
  6019. _ACEOF
  6020. cat confdefs.h >>conftest.$ac_ext
  6021. cat >>conftest.$ac_ext <<_ACEOF
  6022. /* end confdefs.h. */
  6023. #include <sys/types.h>
  6024. #include <inttypes.h>
  6025. int
  6026. main ()
  6027. {
  6028. ;
  6029. return 0;
  6030. }
  6031. _ACEOF
  6032. rm -f conftest.$ac_objext
  6033. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6034. (eval $ac_compile) 2>conftest.er1
  6035. ac_status=$?
  6036. grep -v '^ *+' conftest.er1 >conftest.err
  6037. rm -f conftest.er1
  6038. cat conftest.err >&5
  6039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6040. (exit $ac_status); } &&
  6041. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6043. (eval $ac_try) 2>&5
  6044. ac_status=$?
  6045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6046. (exit $ac_status); }; } &&
  6047. { ac_try='test -s conftest.$ac_objext'
  6048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6049. (eval $ac_try) 2>&5
  6050. ac_status=$?
  6051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); }; }; then
  6053. gt_cv_header_inttypes_h=yes
  6054. else
  6055. echo "$as_me: failed program was:" >&5
  6056. sed 's/^/| /' conftest.$ac_ext >&5
  6057. gt_cv_header_inttypes_h=no
  6058. fi
  6059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6060. fi
  6061. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  6062. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  6063. if test $gt_cv_header_inttypes_h = yes; then
  6064. cat >>confdefs.h <<_ACEOF
  6065. #define HAVE_INTTYPES_H 1
  6066. _ACEOF
  6067. fi
  6068. if test $gt_cv_header_inttypes_h = yes; then
  6069. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  6070. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  6071. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  6072. echo $ECHO_N "(cached) $ECHO_C" >&6
  6073. else
  6074. cat >conftest.$ac_ext <<_ACEOF
  6075. /* confdefs.h. */
  6076. _ACEOF
  6077. cat confdefs.h >>conftest.$ac_ext
  6078. cat >>conftest.$ac_ext <<_ACEOF
  6079. /* end confdefs.h. */
  6080. #include <inttypes.h>
  6081. #ifdef PRId32
  6082. char *p = PRId32;
  6083. #endif
  6084. int
  6085. main ()
  6086. {
  6087. ;
  6088. return 0;
  6089. }
  6090. _ACEOF
  6091. rm -f conftest.$ac_objext
  6092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6093. (eval $ac_compile) 2>conftest.er1
  6094. ac_status=$?
  6095. grep -v '^ *+' conftest.er1 >conftest.err
  6096. rm -f conftest.er1
  6097. cat conftest.err >&5
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); } &&
  6100. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6102. (eval $ac_try) 2>&5
  6103. ac_status=$?
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); }; } &&
  6106. { ac_try='test -s conftest.$ac_objext'
  6107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6108. (eval $ac_try) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); }; }; then
  6112. gt_cv_inttypes_pri_broken=no
  6113. else
  6114. echo "$as_me: failed program was:" >&5
  6115. sed 's/^/| /' conftest.$ac_ext >&5
  6116. gt_cv_inttypes_pri_broken=yes
  6117. fi
  6118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. fi
  6120. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  6121. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  6122. fi
  6123. if test "$gt_cv_inttypes_pri_broken" = yes; then
  6124. cat >>confdefs.h <<_ACEOF
  6125. #define PRI_MACROS_BROKEN 1
  6126. _ACEOF
  6127. fi
  6128. if test "X$prefix" = "XNONE"; then
  6129. acl_final_prefix="$ac_default_prefix"
  6130. else
  6131. acl_final_prefix="$prefix"
  6132. fi
  6133. if test "X$exec_prefix" = "XNONE"; then
  6134. acl_final_exec_prefix='${prefix}'
  6135. else
  6136. acl_final_exec_prefix="$exec_prefix"
  6137. fi
  6138. acl_save_prefix="$prefix"
  6139. prefix="$acl_final_prefix"
  6140. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6141. prefix="$acl_save_prefix"
  6142. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6143. if test "${with_gnu_ld+set}" = set; then
  6144. withval="$with_gnu_ld"
  6145. test "$withval" = no || with_gnu_ld=yes
  6146. else
  6147. with_gnu_ld=no
  6148. fi;
  6149. # Prepare PATH_SEPARATOR.
  6150. # The user is always right.
  6151. if test "${PATH_SEPARATOR+set}" != set; then
  6152. echo "#! /bin/sh" >conf$$.sh
  6153. echo "exit 0" >>conf$$.sh
  6154. chmod +x conf$$.sh
  6155. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6156. PATH_SEPARATOR=';'
  6157. else
  6158. PATH_SEPARATOR=:
  6159. fi
  6160. rm -f conf$$.sh
  6161. fi
  6162. ac_prog=ld
  6163. if test "$GCC" = yes; then
  6164. # Check if gcc -print-prog-name=ld gives a path.
  6165. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6166. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6167. case $host in
  6168. *-*-mingw*)
  6169. # gcc leaves a trailing carriage return which upsets mingw
  6170. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6171. *)
  6172. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6173. esac
  6174. case $ac_prog in
  6175. # Accept absolute paths.
  6176. [\\/]* | [A-Za-z]:[\\/]*)
  6177. re_direlt='/[^/][^/]*/\.\./'
  6178. # Canonicalize the path of ld
  6179. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6180. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6181. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6182. done
  6183. test -z "$LD" && LD="$ac_prog"
  6184. ;;
  6185. "")
  6186. # If it fails, then pretend we aren't using GCC.
  6187. ac_prog=ld
  6188. ;;
  6189. *)
  6190. # If it is relative, then search for the first ld in PATH.
  6191. with_gnu_ld=unknown
  6192. ;;
  6193. esac
  6194. elif test "$with_gnu_ld" = yes; then
  6195. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6196. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6197. else
  6198. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6199. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6200. fi
  6201. if test "${acl_cv_path_LD+set}" = set; then
  6202. echo $ECHO_N "(cached) $ECHO_C" >&6
  6203. else
  6204. if test -z "$LD"; then
  6205. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6206. for ac_dir in $PATH; do
  6207. test -z "$ac_dir" && ac_dir=.
  6208. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6209. acl_cv_path_LD="$ac_dir/$ac_prog"
  6210. # Check to see if the program is GNU ld. I'd rather use --version,
  6211. # but apparently some GNU ld's only accept -v.
  6212. # Break only if it was the GNU/non-GNU ld that we prefer.
  6213. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  6214. test "$with_gnu_ld" != no && break
  6215. else
  6216. test "$with_gnu_ld" != yes && break
  6217. fi
  6218. fi
  6219. done
  6220. IFS="$ac_save_ifs"
  6221. else
  6222. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6223. fi
  6224. fi
  6225. LD="$acl_cv_path_LD"
  6226. if test -n "$LD"; then
  6227. echo "$as_me:$LINENO: result: $LD" >&5
  6228. echo "${ECHO_T}$LD" >&6
  6229. else
  6230. echo "$as_me:$LINENO: result: no" >&5
  6231. echo "${ECHO_T}no" >&6
  6232. fi
  6233. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6234. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6235. { (exit 1); exit 1; }; }
  6236. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6237. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6238. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6239. echo $ECHO_N "(cached) $ECHO_C" >&6
  6240. else
  6241. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6242. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6243. acl_cv_prog_gnu_ld=yes
  6244. else
  6245. acl_cv_prog_gnu_ld=no
  6246. fi
  6247. fi
  6248. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6249. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6250. with_gnu_ld=$acl_cv_prog_gnu_ld
  6251. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6252. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6253. if test "${acl_cv_rpath+set}" = set; then
  6254. echo $ECHO_N "(cached) $ECHO_C" >&6
  6255. else
  6256. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6257. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6258. . ./conftest.sh
  6259. rm -f ./conftest.sh
  6260. acl_cv_rpath=done
  6261. fi
  6262. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6263. echo "${ECHO_T}$acl_cv_rpath" >&6
  6264. wl="$acl_cv_wl"
  6265. libext="$acl_cv_libext"
  6266. shlibext="$acl_cv_shlibext"
  6267. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6268. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6269. hardcode_direct="$acl_cv_hardcode_direct"
  6270. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6271. # Check whether --enable-rpath or --disable-rpath was given.
  6272. if test "${enable_rpath+set}" = set; then
  6273. enableval="$enable_rpath"
  6274. :
  6275. else
  6276. enable_rpath=yes
  6277. fi;
  6278. use_additional=yes
  6279. acl_save_prefix="$prefix"
  6280. prefix="$acl_final_prefix"
  6281. acl_save_exec_prefix="$exec_prefix"
  6282. exec_prefix="$acl_final_exec_prefix"
  6283. eval additional_includedir=\"$includedir\"
  6284. eval additional_libdir=\"$libdir\"
  6285. exec_prefix="$acl_save_exec_prefix"
  6286. prefix="$acl_save_prefix"
  6287. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6288. if test "${with_libiconv_prefix+set}" = set; then
  6289. withval="$with_libiconv_prefix"
  6290. if test "X$withval" = "Xno"; then
  6291. use_additional=no
  6292. else
  6293. if test "X$withval" = "X"; then
  6294. acl_save_prefix="$prefix"
  6295. prefix="$acl_final_prefix"
  6296. acl_save_exec_prefix="$exec_prefix"
  6297. exec_prefix="$acl_final_exec_prefix"
  6298. eval additional_includedir=\"$includedir\"
  6299. eval additional_libdir=\"$libdir\"
  6300. exec_prefix="$acl_save_exec_prefix"
  6301. prefix="$acl_save_prefix"
  6302. else
  6303. additional_includedir="$withval/include"
  6304. additional_libdir="$withval/lib"
  6305. fi
  6306. fi
  6307. fi;
  6308. LIBICONV=
  6309. LTLIBICONV=
  6310. INCICONV=
  6311. rpathdirs=
  6312. ltrpathdirs=
  6313. names_already_handled=
  6314. names_next_round='iconv '
  6315. while test -n "$names_next_round"; do
  6316. names_this_round="$names_next_round"
  6317. names_next_round=
  6318. for name in $names_this_round; do
  6319. already_handled=
  6320. for n in $names_already_handled; do
  6321. if test "$n" = "$name"; then
  6322. already_handled=yes
  6323. break
  6324. fi
  6325. done
  6326. if test -z "$already_handled"; then
  6327. names_already_handled="$names_already_handled $name"
  6328. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6329. eval value=\"\$HAVE_LIB$uppername\"
  6330. if test -n "$value"; then
  6331. if test "$value" = yes; then
  6332. eval value=\"\$LIB$uppername\"
  6333. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6334. eval value=\"\$LTLIB$uppername\"
  6335. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6336. else
  6337. :
  6338. fi
  6339. else
  6340. found_dir=
  6341. found_la=
  6342. found_so=
  6343. found_a=
  6344. if test $use_additional = yes; then
  6345. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6346. found_dir="$additional_libdir"
  6347. found_so="$additional_libdir/lib$name.$shlibext"
  6348. if test -f "$additional_libdir/lib$name.la"; then
  6349. found_la="$additional_libdir/lib$name.la"
  6350. fi
  6351. else
  6352. if test -f "$additional_libdir/lib$name.$libext"; then
  6353. found_dir="$additional_libdir"
  6354. found_a="$additional_libdir/lib$name.$libext"
  6355. if test -f "$additional_libdir/lib$name.la"; then
  6356. found_la="$additional_libdir/lib$name.la"
  6357. fi
  6358. fi
  6359. fi
  6360. fi
  6361. if test "X$found_dir" = "X"; then
  6362. for x in $LDFLAGS $LTLIBICONV; do
  6363. acl_save_prefix="$prefix"
  6364. prefix="$acl_final_prefix"
  6365. acl_save_exec_prefix="$exec_prefix"
  6366. exec_prefix="$acl_final_exec_prefix"
  6367. eval x=\"$x\"
  6368. exec_prefix="$acl_save_exec_prefix"
  6369. prefix="$acl_save_prefix"
  6370. case "$x" in
  6371. -L*)
  6372. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6373. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6374. found_dir="$dir"
  6375. found_so="$dir/lib$name.$shlibext"
  6376. if test -f "$dir/lib$name.la"; then
  6377. found_la="$dir/lib$name.la"
  6378. fi
  6379. else
  6380. if test -f "$dir/lib$name.$libext"; then
  6381. found_dir="$dir"
  6382. found_a="$dir/lib$name.$libext"
  6383. if test -f "$dir/lib$name.la"; then
  6384. found_la="$dir/lib$name.la"
  6385. fi
  6386. fi
  6387. fi
  6388. ;;
  6389. esac
  6390. if test "X$found_dir" != "X"; then
  6391. break
  6392. fi
  6393. done
  6394. fi
  6395. if test "X$found_dir" != "X"; then
  6396. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6397. if test "X$found_so" != "X"; then
  6398. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6399. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6400. else
  6401. haveit=
  6402. for x in $ltrpathdirs; do
  6403. if test "X$x" = "X$found_dir"; then
  6404. haveit=yes
  6405. break
  6406. fi
  6407. done
  6408. if test -z "$haveit"; then
  6409. ltrpathdirs="$ltrpathdirs $found_dir"
  6410. fi
  6411. if test "$hardcode_direct" = yes; then
  6412. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6413. else
  6414. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6415. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6416. haveit=
  6417. for x in $rpathdirs; do
  6418. if test "X$x" = "X$found_dir"; then
  6419. haveit=yes
  6420. break
  6421. fi
  6422. done
  6423. if test -z "$haveit"; then
  6424. rpathdirs="$rpathdirs $found_dir"
  6425. fi
  6426. else
  6427. haveit=
  6428. for x in $LDFLAGS $LIBICONV; do
  6429. acl_save_prefix="$prefix"
  6430. prefix="$acl_final_prefix"
  6431. acl_save_exec_prefix="$exec_prefix"
  6432. exec_prefix="$acl_final_exec_prefix"
  6433. eval x=\"$x\"
  6434. exec_prefix="$acl_save_exec_prefix"
  6435. prefix="$acl_save_prefix"
  6436. if test "X$x" = "X-L$found_dir"; then
  6437. haveit=yes
  6438. break
  6439. fi
  6440. done
  6441. if test -z "$haveit"; then
  6442. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  6443. fi
  6444. if test "$hardcode_minus_L" != no; then
  6445. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6446. else
  6447. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6448. fi
  6449. fi
  6450. fi
  6451. fi
  6452. else
  6453. if test "X$found_a" != "X"; then
  6454. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  6455. else
  6456. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  6457. fi
  6458. fi
  6459. additional_includedir=
  6460. case "$found_dir" in
  6461. */lib | */lib/)
  6462. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6463. additional_includedir="$basedir/include"
  6464. ;;
  6465. esac
  6466. if test "X$additional_includedir" != "X"; then
  6467. if test "X$additional_includedir" != "X/usr/include"; then
  6468. haveit=
  6469. if test "X$additional_includedir" = "X/usr/local/include"; then
  6470. if test -n "$GCC"; then
  6471. case $host_os in
  6472. linux*) haveit=yes;;
  6473. esac
  6474. fi
  6475. fi
  6476. if test -z "$haveit"; then
  6477. for x in $CPPFLAGS $INCICONV; do
  6478. acl_save_prefix="$prefix"
  6479. prefix="$acl_final_prefix"
  6480. acl_save_exec_prefix="$exec_prefix"
  6481. exec_prefix="$acl_final_exec_prefix"
  6482. eval x=\"$x\"
  6483. exec_prefix="$acl_save_exec_prefix"
  6484. prefix="$acl_save_prefix"
  6485. if test "X$x" = "X-I$additional_includedir"; then
  6486. haveit=yes
  6487. break
  6488. fi
  6489. done
  6490. if test -z "$haveit"; then
  6491. if test -d "$additional_includedir"; then
  6492. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  6493. fi
  6494. fi
  6495. fi
  6496. fi
  6497. fi
  6498. if test -n "$found_la"; then
  6499. save_libdir="$libdir"
  6500. case "$found_la" in
  6501. */* | *\\*) . "$found_la" ;;
  6502. *) . "./$found_la" ;;
  6503. esac
  6504. libdir="$save_libdir"
  6505. for dep in $dependency_libs; do
  6506. case "$dep" in
  6507. -L*)
  6508. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6509. if test "X$additional_libdir" != "X/usr/lib"; then
  6510. haveit=
  6511. if test "X$additional_libdir" = "X/usr/local/lib"; then
  6512. if test -n "$GCC"; then
  6513. case $host_os in
  6514. linux*) haveit=yes;;
  6515. esac
  6516. fi
  6517. fi
  6518. if test -z "$haveit"; then
  6519. haveit=
  6520. for x in $LDFLAGS $LIBICONV; do
  6521. acl_save_prefix="$prefix"
  6522. prefix="$acl_final_prefix"
  6523. acl_save_exec_prefix="$exec_prefix"
  6524. exec_prefix="$acl_final_exec_prefix"
  6525. eval x=\"$x\"
  6526. exec_prefix="$acl_save_exec_prefix"
  6527. prefix="$acl_save_prefix"
  6528. if test "X$x" = "X-L$additional_libdir"; then
  6529. haveit=yes
  6530. break
  6531. fi
  6532. done
  6533. if test -z "$haveit"; then
  6534. if test -d "$additional_libdir"; then
  6535. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  6536. fi
  6537. fi
  6538. haveit=
  6539. for x in $LDFLAGS $LTLIBICONV; do
  6540. acl_save_prefix="$prefix"
  6541. prefix="$acl_final_prefix"
  6542. acl_save_exec_prefix="$exec_prefix"
  6543. exec_prefix="$acl_final_exec_prefix"
  6544. eval x=\"$x\"
  6545. exec_prefix="$acl_save_exec_prefix"
  6546. prefix="$acl_save_prefix"
  6547. if test "X$x" = "X-L$additional_libdir"; then
  6548. haveit=yes
  6549. break
  6550. fi
  6551. done
  6552. if test -z "$haveit"; then
  6553. if test -d "$additional_libdir"; then
  6554. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  6555. fi
  6556. fi
  6557. fi
  6558. fi
  6559. ;;
  6560. -R*)
  6561. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6562. if test "$enable_rpath" != no; then
  6563. haveit=
  6564. for x in $rpathdirs; do
  6565. if test "X$x" = "X$dir"; then
  6566. haveit=yes
  6567. break
  6568. fi
  6569. done
  6570. if test -z "$haveit"; then
  6571. rpathdirs="$rpathdirs $dir"
  6572. fi
  6573. haveit=
  6574. for x in $ltrpathdirs; do
  6575. if test "X$x" = "X$dir"; then
  6576. haveit=yes
  6577. break
  6578. fi
  6579. done
  6580. if test -z "$haveit"; then
  6581. ltrpathdirs="$ltrpathdirs $dir"
  6582. fi
  6583. fi
  6584. ;;
  6585. -l*)
  6586. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6587. ;;
  6588. *.la)
  6589. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6590. ;;
  6591. *)
  6592. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  6593. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  6594. ;;
  6595. esac
  6596. done
  6597. fi
  6598. else
  6599. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6600. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  6601. fi
  6602. fi
  6603. fi
  6604. done
  6605. done
  6606. if test "X$rpathdirs" != "X"; then
  6607. if test -n "$hardcode_libdir_separator"; then
  6608. alldirs=
  6609. for found_dir in $rpathdirs; do
  6610. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  6611. done
  6612. acl_save_libdir="$libdir"
  6613. libdir="$alldirs"
  6614. eval flag=\"$hardcode_libdir_flag_spec\"
  6615. libdir="$acl_save_libdir"
  6616. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6617. else
  6618. for found_dir in $rpathdirs; do
  6619. acl_save_libdir="$libdir"
  6620. libdir="$found_dir"
  6621. eval flag=\"$hardcode_libdir_flag_spec\"
  6622. libdir="$acl_save_libdir"
  6623. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6624. done
  6625. fi
  6626. fi
  6627. if test "X$ltrpathdirs" != "X"; then
  6628. for found_dir in $ltrpathdirs; do
  6629. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  6630. done
  6631. fi
  6632. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  6633. stdlib.h string.h unistd.h sys/param.h
  6634. do
  6635. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6636. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6637. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6638. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6639. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6640. echo $ECHO_N "(cached) $ECHO_C" >&6
  6641. fi
  6642. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6643. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6644. else
  6645. # Is the header compilable?
  6646. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6647. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6648. cat >conftest.$ac_ext <<_ACEOF
  6649. /* confdefs.h. */
  6650. _ACEOF
  6651. cat confdefs.h >>conftest.$ac_ext
  6652. cat >>conftest.$ac_ext <<_ACEOF
  6653. /* end confdefs.h. */
  6654. $ac_includes_default
  6655. #include <$ac_header>
  6656. _ACEOF
  6657. rm -f conftest.$ac_objext
  6658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6659. (eval $ac_compile) 2>conftest.er1
  6660. ac_status=$?
  6661. grep -v '^ *+' conftest.er1 >conftest.err
  6662. rm -f conftest.er1
  6663. cat conftest.err >&5
  6664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6665. (exit $ac_status); } &&
  6666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6668. (eval $ac_try) 2>&5
  6669. ac_status=$?
  6670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6671. (exit $ac_status); }; } &&
  6672. { ac_try='test -s conftest.$ac_objext'
  6673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6674. (eval $ac_try) 2>&5
  6675. ac_status=$?
  6676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6677. (exit $ac_status); }; }; then
  6678. ac_header_compiler=yes
  6679. else
  6680. echo "$as_me: failed program was:" >&5
  6681. sed 's/^/| /' conftest.$ac_ext >&5
  6682. ac_header_compiler=no
  6683. fi
  6684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6685. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6686. echo "${ECHO_T}$ac_header_compiler" >&6
  6687. # Is the header present?
  6688. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6689. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6690. cat >conftest.$ac_ext <<_ACEOF
  6691. /* confdefs.h. */
  6692. _ACEOF
  6693. cat confdefs.h >>conftest.$ac_ext
  6694. cat >>conftest.$ac_ext <<_ACEOF
  6695. /* end confdefs.h. */
  6696. #include <$ac_header>
  6697. _ACEOF
  6698. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6699. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6700. ac_status=$?
  6701. grep -v '^ *+' conftest.er1 >conftest.err
  6702. rm -f conftest.er1
  6703. cat conftest.err >&5
  6704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); } >/dev/null; then
  6706. if test -s conftest.err; then
  6707. ac_cpp_err=$ac_c_preproc_warn_flag
  6708. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6709. else
  6710. ac_cpp_err=
  6711. fi
  6712. else
  6713. ac_cpp_err=yes
  6714. fi
  6715. if test -z "$ac_cpp_err"; then
  6716. ac_header_preproc=yes
  6717. else
  6718. echo "$as_me: failed program was:" >&5
  6719. sed 's/^/| /' conftest.$ac_ext >&5
  6720. ac_header_preproc=no
  6721. fi
  6722. rm -f conftest.err conftest.$ac_ext
  6723. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6724. echo "${ECHO_T}$ac_header_preproc" >&6
  6725. # So? What about this header?
  6726. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6727. yes:no: )
  6728. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6729. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6730. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6731. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6732. ac_header_preproc=yes
  6733. ;;
  6734. no:yes:* )
  6735. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6736. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6737. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6738. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6739. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6740. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6741. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6742. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6743. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6744. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6745. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6746. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6747. (
  6748. cat <<\_ASBOX
  6749. ## ----------------------------------- ##
  6750. ## Report this to tujikawa@rednoah.com ##
  6751. ## ----------------------------------- ##
  6752. _ASBOX
  6753. ) |
  6754. sed "s/^/$as_me: WARNING: /" >&2
  6755. ;;
  6756. esac
  6757. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6758. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6759. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6760. echo $ECHO_N "(cached) $ECHO_C" >&6
  6761. else
  6762. eval "$as_ac_Header=\$ac_header_preproc"
  6763. fi
  6764. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6765. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6766. fi
  6767. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6768. cat >>confdefs.h <<_ACEOF
  6769. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6770. _ACEOF
  6771. fi
  6772. done
  6773. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  6774. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  6775. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  6776. __fsetlocking
  6777. do
  6778. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6779. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6780. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6781. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6782. echo $ECHO_N "(cached) $ECHO_C" >&6
  6783. else
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6792. #define $ac_func innocuous_$ac_func
  6793. /* System header to define __stub macros and hopefully few prototypes,
  6794. which can conflict with char $ac_func (); below.
  6795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6796. <limits.h> exists even on freestanding compilers. */
  6797. #ifdef __STDC__
  6798. # include <limits.h>
  6799. #else
  6800. # include <assert.h>
  6801. #endif
  6802. #undef $ac_func
  6803. /* Override any gcc2 internal prototype to avoid an error. */
  6804. #ifdef __cplusplus
  6805. extern "C"
  6806. {
  6807. #endif
  6808. /* We use char because int might match the return type of a gcc2
  6809. builtin and then its argument prototype would still apply. */
  6810. char $ac_func ();
  6811. /* The GNU C library defines this for functions which it implements
  6812. to always fail with ENOSYS. Some functions are actually named
  6813. something starting with __ and the normal name is an alias. */
  6814. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6815. choke me
  6816. #else
  6817. char (*f) () = $ac_func;
  6818. #endif
  6819. #ifdef __cplusplus
  6820. }
  6821. #endif
  6822. int
  6823. main ()
  6824. {
  6825. return f != $ac_func;
  6826. ;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. rm -f conftest.$ac_objext conftest$ac_exeext
  6831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6832. (eval $ac_link) 2>conftest.er1
  6833. ac_status=$?
  6834. grep -v '^ *+' conftest.er1 >conftest.err
  6835. rm -f conftest.er1
  6836. cat conftest.err >&5
  6837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6838. (exit $ac_status); } &&
  6839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6841. (eval $ac_try) 2>&5
  6842. ac_status=$?
  6843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6844. (exit $ac_status); }; } &&
  6845. { ac_try='test -s conftest$ac_exeext'
  6846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6847. (eval $ac_try) 2>&5
  6848. ac_status=$?
  6849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6850. (exit $ac_status); }; }; then
  6851. eval "$as_ac_var=yes"
  6852. else
  6853. echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. eval "$as_ac_var=no"
  6856. fi
  6857. rm -f conftest.err conftest.$ac_objext \
  6858. conftest$ac_exeext conftest.$ac_ext
  6859. fi
  6860. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6861. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6862. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6863. cat >>confdefs.h <<_ACEOF
  6864. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6865. _ACEOF
  6866. fi
  6867. done
  6868. am_save_CPPFLAGS="$CPPFLAGS"
  6869. for element in $INCICONV; do
  6870. haveit=
  6871. for x in $CPPFLAGS; do
  6872. acl_save_prefix="$prefix"
  6873. prefix="$acl_final_prefix"
  6874. acl_save_exec_prefix="$exec_prefix"
  6875. exec_prefix="$acl_final_exec_prefix"
  6876. eval x=\"$x\"
  6877. exec_prefix="$acl_save_exec_prefix"
  6878. prefix="$acl_save_prefix"
  6879. if test "X$x" = "X$element"; then
  6880. haveit=yes
  6881. break
  6882. fi
  6883. done
  6884. if test -z "$haveit"; then
  6885. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6886. fi
  6887. done
  6888. echo "$as_me:$LINENO: checking for iconv" >&5
  6889. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  6890. if test "${am_cv_func_iconv+set}" = set; then
  6891. echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893. am_cv_func_iconv="no, consider installing GNU libiconv"
  6894. am_cv_lib_iconv=no
  6895. cat >conftest.$ac_ext <<_ACEOF
  6896. /* confdefs.h. */
  6897. _ACEOF
  6898. cat confdefs.h >>conftest.$ac_ext
  6899. cat >>conftest.$ac_ext <<_ACEOF
  6900. /* end confdefs.h. */
  6901. #include <stdlib.h>
  6902. #include <iconv.h>
  6903. int
  6904. main ()
  6905. {
  6906. iconv_t cd = iconv_open("","");
  6907. iconv(cd,NULL,NULL,NULL,NULL);
  6908. iconv_close(cd);
  6909. ;
  6910. return 0;
  6911. }
  6912. _ACEOF
  6913. rm -f conftest.$ac_objext conftest$ac_exeext
  6914. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6915. (eval $ac_link) 2>conftest.er1
  6916. ac_status=$?
  6917. grep -v '^ *+' conftest.er1 >conftest.err
  6918. rm -f conftest.er1
  6919. cat conftest.err >&5
  6920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6921. (exit $ac_status); } &&
  6922. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6924. (eval $ac_try) 2>&5
  6925. ac_status=$?
  6926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6927. (exit $ac_status); }; } &&
  6928. { ac_try='test -s conftest$ac_exeext'
  6929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6930. (eval $ac_try) 2>&5
  6931. ac_status=$?
  6932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6933. (exit $ac_status); }; }; then
  6934. am_cv_func_iconv=yes
  6935. else
  6936. echo "$as_me: failed program was:" >&5
  6937. sed 's/^/| /' conftest.$ac_ext >&5
  6938. fi
  6939. rm -f conftest.err conftest.$ac_objext \
  6940. conftest$ac_exeext conftest.$ac_ext
  6941. if test "$am_cv_func_iconv" != yes; then
  6942. am_save_LIBS="$LIBS"
  6943. LIBS="$LIBS $LIBICONV"
  6944. cat >conftest.$ac_ext <<_ACEOF
  6945. /* confdefs.h. */
  6946. _ACEOF
  6947. cat confdefs.h >>conftest.$ac_ext
  6948. cat >>conftest.$ac_ext <<_ACEOF
  6949. /* end confdefs.h. */
  6950. #include <stdlib.h>
  6951. #include <iconv.h>
  6952. int
  6953. main ()
  6954. {
  6955. iconv_t cd = iconv_open("","");
  6956. iconv(cd,NULL,NULL,NULL,NULL);
  6957. iconv_close(cd);
  6958. ;
  6959. return 0;
  6960. }
  6961. _ACEOF
  6962. rm -f conftest.$ac_objext conftest$ac_exeext
  6963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6964. (eval $ac_link) 2>conftest.er1
  6965. ac_status=$?
  6966. grep -v '^ *+' conftest.er1 >conftest.err
  6967. rm -f conftest.er1
  6968. cat conftest.err >&5
  6969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6970. (exit $ac_status); } &&
  6971. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6973. (eval $ac_try) 2>&5
  6974. ac_status=$?
  6975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6976. (exit $ac_status); }; } &&
  6977. { ac_try='test -s conftest$ac_exeext'
  6978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6979. (eval $ac_try) 2>&5
  6980. ac_status=$?
  6981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6982. (exit $ac_status); }; }; then
  6983. am_cv_lib_iconv=yes
  6984. am_cv_func_iconv=yes
  6985. else
  6986. echo "$as_me: failed program was:" >&5
  6987. sed 's/^/| /' conftest.$ac_ext >&5
  6988. fi
  6989. rm -f conftest.err conftest.$ac_objext \
  6990. conftest$ac_exeext conftest.$ac_ext
  6991. LIBS="$am_save_LIBS"
  6992. fi
  6993. fi
  6994. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  6995. echo "${ECHO_T}$am_cv_func_iconv" >&6
  6996. if test "$am_cv_func_iconv" = yes; then
  6997. cat >>confdefs.h <<\_ACEOF
  6998. #define HAVE_ICONV 1
  6999. _ACEOF
  7000. fi
  7001. if test "$am_cv_lib_iconv" = yes; then
  7002. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7003. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7004. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7005. echo "${ECHO_T}$LIBICONV" >&6
  7006. else
  7007. CPPFLAGS="$am_save_CPPFLAGS"
  7008. LIBICONV=
  7009. LTLIBICONV=
  7010. fi
  7011. if test "$am_cv_func_iconv" = yes; then
  7012. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  7013. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  7014. if test "${am_cv_proto_iconv+set}" = set; then
  7015. echo $ECHO_N "(cached) $ECHO_C" >&6
  7016. else
  7017. cat >conftest.$ac_ext <<_ACEOF
  7018. /* confdefs.h. */
  7019. _ACEOF
  7020. cat confdefs.h >>conftest.$ac_ext
  7021. cat >>conftest.$ac_ext <<_ACEOF
  7022. /* end confdefs.h. */
  7023. #include <stdlib.h>
  7024. #include <iconv.h>
  7025. extern
  7026. #ifdef __cplusplus
  7027. "C"
  7028. #endif
  7029. #if defined(__STDC__) || defined(__cplusplus)
  7030. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  7031. #else
  7032. size_t iconv();
  7033. #endif
  7034. int
  7035. main ()
  7036. {
  7037. ;
  7038. return 0;
  7039. }
  7040. _ACEOF
  7041. rm -f conftest.$ac_objext
  7042. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7043. (eval $ac_compile) 2>conftest.er1
  7044. ac_status=$?
  7045. grep -v '^ *+' conftest.er1 >conftest.err
  7046. rm -f conftest.er1
  7047. cat conftest.err >&5
  7048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7049. (exit $ac_status); } &&
  7050. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7052. (eval $ac_try) 2>&5
  7053. ac_status=$?
  7054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7055. (exit $ac_status); }; } &&
  7056. { ac_try='test -s conftest.$ac_objext'
  7057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7058. (eval $ac_try) 2>&5
  7059. ac_status=$?
  7060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7061. (exit $ac_status); }; }; then
  7062. am_cv_proto_iconv_arg1=""
  7063. else
  7064. echo "$as_me: failed program was:" >&5
  7065. sed 's/^/| /' conftest.$ac_ext >&5
  7066. am_cv_proto_iconv_arg1="const"
  7067. fi
  7068. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7069. 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);"
  7070. fi
  7071. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  7072. echo "$as_me:$LINENO: result: ${ac_t:-
  7073. }$am_cv_proto_iconv" >&5
  7074. echo "${ECHO_T}${ac_t:-
  7075. }$am_cv_proto_iconv" >&6
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define ICONV_CONST $am_cv_proto_iconv_arg1
  7078. _ACEOF
  7079. fi
  7080. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  7081. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  7082. if test "${am_cv_langinfo_codeset+set}" = set; then
  7083. echo $ECHO_N "(cached) $ECHO_C" >&6
  7084. else
  7085. cat >conftest.$ac_ext <<_ACEOF
  7086. /* confdefs.h. */
  7087. _ACEOF
  7088. cat confdefs.h >>conftest.$ac_ext
  7089. cat >>conftest.$ac_ext <<_ACEOF
  7090. /* end confdefs.h. */
  7091. #include <langinfo.h>
  7092. int
  7093. main ()
  7094. {
  7095. char* cs = nl_langinfo(CODESET);
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. rm -f conftest.$ac_objext conftest$ac_exeext
  7101. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7102. (eval $ac_link) 2>conftest.er1
  7103. ac_status=$?
  7104. grep -v '^ *+' conftest.er1 >conftest.err
  7105. rm -f conftest.er1
  7106. cat conftest.err >&5
  7107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } &&
  7109. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7111. (eval $ac_try) 2>&5
  7112. ac_status=$?
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); }; } &&
  7115. { ac_try='test -s conftest$ac_exeext'
  7116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7117. (eval $ac_try) 2>&5
  7118. ac_status=$?
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); }; }; then
  7121. am_cv_langinfo_codeset=yes
  7122. else
  7123. echo "$as_me: failed program was:" >&5
  7124. sed 's/^/| /' conftest.$ac_ext >&5
  7125. am_cv_langinfo_codeset=no
  7126. fi
  7127. rm -f conftest.err conftest.$ac_objext \
  7128. conftest$ac_exeext conftest.$ac_ext
  7129. fi
  7130. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  7131. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  7132. if test $am_cv_langinfo_codeset = yes; then
  7133. cat >>confdefs.h <<\_ACEOF
  7134. #define HAVE_LANGINFO_CODESET 1
  7135. _ACEOF
  7136. fi
  7137. if test $ac_cv_header_locale_h = yes; then
  7138. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  7139. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  7140. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  7141. echo $ECHO_N "(cached) $ECHO_C" >&6
  7142. else
  7143. cat >conftest.$ac_ext <<_ACEOF
  7144. /* confdefs.h. */
  7145. _ACEOF
  7146. cat confdefs.h >>conftest.$ac_ext
  7147. cat >>conftest.$ac_ext <<_ACEOF
  7148. /* end confdefs.h. */
  7149. #include <locale.h>
  7150. int
  7151. main ()
  7152. {
  7153. return LC_MESSAGES
  7154. ;
  7155. return 0;
  7156. }
  7157. _ACEOF
  7158. rm -f conftest.$ac_objext conftest$ac_exeext
  7159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7160. (eval $ac_link) 2>conftest.er1
  7161. ac_status=$?
  7162. grep -v '^ *+' conftest.er1 >conftest.err
  7163. rm -f conftest.er1
  7164. cat conftest.err >&5
  7165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7166. (exit $ac_status); } &&
  7167. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7169. (eval $ac_try) 2>&5
  7170. ac_status=$?
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); }; } &&
  7173. { ac_try='test -s conftest$ac_exeext'
  7174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7175. (eval $ac_try) 2>&5
  7176. ac_status=$?
  7177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7178. (exit $ac_status); }; }; then
  7179. am_cv_val_LC_MESSAGES=yes
  7180. else
  7181. echo "$as_me: failed program was:" >&5
  7182. sed 's/^/| /' conftest.$ac_ext >&5
  7183. am_cv_val_LC_MESSAGES=no
  7184. fi
  7185. rm -f conftest.err conftest.$ac_objext \
  7186. conftest$ac_exeext conftest.$ac_ext
  7187. fi
  7188. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  7189. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  7190. if test $am_cv_val_LC_MESSAGES = yes; then
  7191. cat >>confdefs.h <<\_ACEOF
  7192. #define HAVE_LC_MESSAGES 1
  7193. _ACEOF
  7194. fi
  7195. fi
  7196. for ac_prog in bison
  7197. do
  7198. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7199. set dummy $ac_prog; ac_word=$2
  7200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7202. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  7203. echo $ECHO_N "(cached) $ECHO_C" >&6
  7204. else
  7205. if test -n "$INTLBISON"; then
  7206. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  7207. else
  7208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7209. for as_dir in $PATH
  7210. do
  7211. IFS=$as_save_IFS
  7212. test -z "$as_dir" && as_dir=.
  7213. for ac_exec_ext in '' $ac_executable_extensions; do
  7214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7215. ac_cv_prog_INTLBISON="$ac_prog"
  7216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7217. break 2
  7218. fi
  7219. done
  7220. done
  7221. fi
  7222. fi
  7223. INTLBISON=$ac_cv_prog_INTLBISON
  7224. if test -n "$INTLBISON"; then
  7225. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  7226. echo "${ECHO_T}$INTLBISON" >&6
  7227. else
  7228. echo "$as_me:$LINENO: result: no" >&5
  7229. echo "${ECHO_T}no" >&6
  7230. fi
  7231. test -n "$INTLBISON" && break
  7232. done
  7233. if test -z "$INTLBISON"; then
  7234. ac_verc_fail=yes
  7235. else
  7236. echo "$as_me:$LINENO: checking version of bison" >&5
  7237. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  7238. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  7239. case $ac_prog_version in
  7240. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  7241. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  7242. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  7243. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  7244. esac
  7245. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  7246. echo "${ECHO_T}$ac_prog_version" >&6
  7247. fi
  7248. if test $ac_verc_fail = yes; then
  7249. INTLBISON=:
  7250. fi
  7251. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7252. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  7253. # Check whether --enable-nls or --disable-nls was given.
  7254. if test "${enable_nls+set}" = set; then
  7255. enableval="$enable_nls"
  7256. USE_NLS=$enableval
  7257. else
  7258. USE_NLS=yes
  7259. fi;
  7260. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7261. echo "${ECHO_T}$USE_NLS" >&6
  7262. BUILD_INCLUDED_LIBINTL=no
  7263. USE_INCLUDED_LIBINTL=no
  7264. LIBINTL=
  7265. LTLIBINTL=
  7266. POSUB=
  7267. if test "$USE_NLS" = "yes"; then
  7268. gt_use_preinstalled_gnugettext=no
  7269. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  7270. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  7271. # Check whether --with-included-gettext or --without-included-gettext was given.
  7272. if test "${with_included_gettext+set}" = set; then
  7273. withval="$with_included_gettext"
  7274. nls_cv_force_use_gnu_gettext=$withval
  7275. else
  7276. nls_cv_force_use_gnu_gettext=no
  7277. fi;
  7278. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  7279. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  7280. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  7281. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  7282. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  7283. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  7284. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  7285. echo $ECHO_N "(cached) $ECHO_C" >&6
  7286. else
  7287. cat >conftest.$ac_ext <<_ACEOF
  7288. /* confdefs.h. */
  7289. _ACEOF
  7290. cat confdefs.h >>conftest.$ac_ext
  7291. cat >>conftest.$ac_ext <<_ACEOF
  7292. /* end confdefs.h. */
  7293. #include <libintl.h>
  7294. extern int _nl_msg_cat_cntr;
  7295. extern int *_nl_domain_bindings;
  7296. int
  7297. main ()
  7298. {
  7299. bindtextdomain ("", "");
  7300. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. rm -f conftest.$ac_objext conftest$ac_exeext
  7306. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7307. (eval $ac_link) 2>conftest.er1
  7308. ac_status=$?
  7309. grep -v '^ *+' conftest.er1 >conftest.err
  7310. rm -f conftest.er1
  7311. cat conftest.err >&5
  7312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7313. (exit $ac_status); } &&
  7314. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7316. (eval $ac_try) 2>&5
  7317. ac_status=$?
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); }; } &&
  7320. { ac_try='test -s conftest$ac_exeext'
  7321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7322. (eval $ac_try) 2>&5
  7323. ac_status=$?
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); }; }; then
  7326. gt_cv_func_gnugettext1_libc=yes
  7327. else
  7328. echo "$as_me: failed program was:" >&5
  7329. sed 's/^/| /' conftest.$ac_ext >&5
  7330. gt_cv_func_gnugettext1_libc=no
  7331. fi
  7332. rm -f conftest.err conftest.$ac_objext \
  7333. conftest$ac_exeext conftest.$ac_ext
  7334. fi
  7335. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  7336. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  7337. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  7338. use_additional=yes
  7339. acl_save_prefix="$prefix"
  7340. prefix="$acl_final_prefix"
  7341. acl_save_exec_prefix="$exec_prefix"
  7342. exec_prefix="$acl_final_exec_prefix"
  7343. eval additional_includedir=\"$includedir\"
  7344. eval additional_libdir=\"$libdir\"
  7345. exec_prefix="$acl_save_exec_prefix"
  7346. prefix="$acl_save_prefix"
  7347. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  7348. if test "${with_libintl_prefix+set}" = set; then
  7349. withval="$with_libintl_prefix"
  7350. if test "X$withval" = "Xno"; then
  7351. use_additional=no
  7352. else
  7353. if test "X$withval" = "X"; then
  7354. acl_save_prefix="$prefix"
  7355. prefix="$acl_final_prefix"
  7356. acl_save_exec_prefix="$exec_prefix"
  7357. exec_prefix="$acl_final_exec_prefix"
  7358. eval additional_includedir=\"$includedir\"
  7359. eval additional_libdir=\"$libdir\"
  7360. exec_prefix="$acl_save_exec_prefix"
  7361. prefix="$acl_save_prefix"
  7362. else
  7363. additional_includedir="$withval/include"
  7364. additional_libdir="$withval/lib"
  7365. fi
  7366. fi
  7367. fi;
  7368. LIBINTL=
  7369. LTLIBINTL=
  7370. INCINTL=
  7371. rpathdirs=
  7372. ltrpathdirs=
  7373. names_already_handled=
  7374. names_next_round='intl '
  7375. while test -n "$names_next_round"; do
  7376. names_this_round="$names_next_round"
  7377. names_next_round=
  7378. for name in $names_this_round; do
  7379. already_handled=
  7380. for n in $names_already_handled; do
  7381. if test "$n" = "$name"; then
  7382. already_handled=yes
  7383. break
  7384. fi
  7385. done
  7386. if test -z "$already_handled"; then
  7387. names_already_handled="$names_already_handled $name"
  7388. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7389. eval value=\"\$HAVE_LIB$uppername\"
  7390. if test -n "$value"; then
  7391. if test "$value" = yes; then
  7392. eval value=\"\$LIB$uppername\"
  7393. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  7394. eval value=\"\$LTLIB$uppername\"
  7395. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  7396. else
  7397. :
  7398. fi
  7399. else
  7400. found_dir=
  7401. found_la=
  7402. found_so=
  7403. found_a=
  7404. if test $use_additional = yes; then
  7405. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7406. found_dir="$additional_libdir"
  7407. found_so="$additional_libdir/lib$name.$shlibext"
  7408. if test -f "$additional_libdir/lib$name.la"; then
  7409. found_la="$additional_libdir/lib$name.la"
  7410. fi
  7411. else
  7412. if test -f "$additional_libdir/lib$name.$libext"; then
  7413. found_dir="$additional_libdir"
  7414. found_a="$additional_libdir/lib$name.$libext"
  7415. if test -f "$additional_libdir/lib$name.la"; then
  7416. found_la="$additional_libdir/lib$name.la"
  7417. fi
  7418. fi
  7419. fi
  7420. fi
  7421. if test "X$found_dir" = "X"; then
  7422. for x in $LDFLAGS $LTLIBINTL; do
  7423. acl_save_prefix="$prefix"
  7424. prefix="$acl_final_prefix"
  7425. acl_save_exec_prefix="$exec_prefix"
  7426. exec_prefix="$acl_final_exec_prefix"
  7427. eval x=\"$x\"
  7428. exec_prefix="$acl_save_exec_prefix"
  7429. prefix="$acl_save_prefix"
  7430. case "$x" in
  7431. -L*)
  7432. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7433. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7434. found_dir="$dir"
  7435. found_so="$dir/lib$name.$shlibext"
  7436. if test -f "$dir/lib$name.la"; then
  7437. found_la="$dir/lib$name.la"
  7438. fi
  7439. else
  7440. if test -f "$dir/lib$name.$libext"; then
  7441. found_dir="$dir"
  7442. found_a="$dir/lib$name.$libext"
  7443. if test -f "$dir/lib$name.la"; then
  7444. found_la="$dir/lib$name.la"
  7445. fi
  7446. fi
  7447. fi
  7448. ;;
  7449. esac
  7450. if test "X$found_dir" != "X"; then
  7451. break
  7452. fi
  7453. done
  7454. fi
  7455. if test "X$found_dir" != "X"; then
  7456. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  7457. if test "X$found_so" != "X"; then
  7458. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7459. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7460. else
  7461. haveit=
  7462. for x in $ltrpathdirs; do
  7463. if test "X$x" = "X$found_dir"; then
  7464. haveit=yes
  7465. break
  7466. fi
  7467. done
  7468. if test -z "$haveit"; then
  7469. ltrpathdirs="$ltrpathdirs $found_dir"
  7470. fi
  7471. if test "$hardcode_direct" = yes; then
  7472. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7473. else
  7474. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7475. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7476. haveit=
  7477. for x in $rpathdirs; do
  7478. if test "X$x" = "X$found_dir"; then
  7479. haveit=yes
  7480. break
  7481. fi
  7482. done
  7483. if test -z "$haveit"; then
  7484. rpathdirs="$rpathdirs $found_dir"
  7485. fi
  7486. else
  7487. haveit=
  7488. for x in $LDFLAGS $LIBINTL; do
  7489. acl_save_prefix="$prefix"
  7490. prefix="$acl_final_prefix"
  7491. acl_save_exec_prefix="$exec_prefix"
  7492. exec_prefix="$acl_final_exec_prefix"
  7493. eval x=\"$x\"
  7494. exec_prefix="$acl_save_exec_prefix"
  7495. prefix="$acl_save_prefix"
  7496. if test "X$x" = "X-L$found_dir"; then
  7497. haveit=yes
  7498. break
  7499. fi
  7500. done
  7501. if test -z "$haveit"; then
  7502. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  7503. fi
  7504. if test "$hardcode_minus_L" != no; then
  7505. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7506. else
  7507. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  7508. fi
  7509. fi
  7510. fi
  7511. fi
  7512. else
  7513. if test "X$found_a" != "X"; then
  7514. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  7515. else
  7516. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  7517. fi
  7518. fi
  7519. additional_includedir=
  7520. case "$found_dir" in
  7521. */lib | */lib/)
  7522. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7523. additional_includedir="$basedir/include"
  7524. ;;
  7525. esac
  7526. if test "X$additional_includedir" != "X"; then
  7527. if test "X$additional_includedir" != "X/usr/include"; then
  7528. haveit=
  7529. if test "X$additional_includedir" = "X/usr/local/include"; then
  7530. if test -n "$GCC"; then
  7531. case $host_os in
  7532. linux*) haveit=yes;;
  7533. esac
  7534. fi
  7535. fi
  7536. if test -z "$haveit"; then
  7537. for x in $CPPFLAGS $INCINTL; do
  7538. acl_save_prefix="$prefix"
  7539. prefix="$acl_final_prefix"
  7540. acl_save_exec_prefix="$exec_prefix"
  7541. exec_prefix="$acl_final_exec_prefix"
  7542. eval x=\"$x\"
  7543. exec_prefix="$acl_save_exec_prefix"
  7544. prefix="$acl_save_prefix"
  7545. if test "X$x" = "X-I$additional_includedir"; then
  7546. haveit=yes
  7547. break
  7548. fi
  7549. done
  7550. if test -z "$haveit"; then
  7551. if test -d "$additional_includedir"; then
  7552. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  7553. fi
  7554. fi
  7555. fi
  7556. fi
  7557. fi
  7558. if test -n "$found_la"; then
  7559. save_libdir="$libdir"
  7560. case "$found_la" in
  7561. */* | *\\*) . "$found_la" ;;
  7562. *) . "./$found_la" ;;
  7563. esac
  7564. libdir="$save_libdir"
  7565. for dep in $dependency_libs; do
  7566. case "$dep" in
  7567. -L*)
  7568. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7569. if test "X$additional_libdir" != "X/usr/lib"; then
  7570. haveit=
  7571. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7572. if test -n "$GCC"; then
  7573. case $host_os in
  7574. linux*) haveit=yes;;
  7575. esac
  7576. fi
  7577. fi
  7578. if test -z "$haveit"; then
  7579. haveit=
  7580. for x in $LDFLAGS $LIBINTL; do
  7581. acl_save_prefix="$prefix"
  7582. prefix="$acl_final_prefix"
  7583. acl_save_exec_prefix="$exec_prefix"
  7584. exec_prefix="$acl_final_exec_prefix"
  7585. eval x=\"$x\"
  7586. exec_prefix="$acl_save_exec_prefix"
  7587. prefix="$acl_save_prefix"
  7588. if test "X$x" = "X-L$additional_libdir"; then
  7589. haveit=yes
  7590. break
  7591. fi
  7592. done
  7593. if test -z "$haveit"; then
  7594. if test -d "$additional_libdir"; then
  7595. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  7596. fi
  7597. fi
  7598. haveit=
  7599. for x in $LDFLAGS $LTLIBINTL; do
  7600. acl_save_prefix="$prefix"
  7601. prefix="$acl_final_prefix"
  7602. acl_save_exec_prefix="$exec_prefix"
  7603. exec_prefix="$acl_final_exec_prefix"
  7604. eval x=\"$x\"
  7605. exec_prefix="$acl_save_exec_prefix"
  7606. prefix="$acl_save_prefix"
  7607. if test "X$x" = "X-L$additional_libdir"; then
  7608. haveit=yes
  7609. break
  7610. fi
  7611. done
  7612. if test -z "$haveit"; then
  7613. if test -d "$additional_libdir"; then
  7614. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  7615. fi
  7616. fi
  7617. fi
  7618. fi
  7619. ;;
  7620. -R*)
  7621. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7622. if test "$enable_rpath" != no; then
  7623. haveit=
  7624. for x in $rpathdirs; do
  7625. if test "X$x" = "X$dir"; then
  7626. haveit=yes
  7627. break
  7628. fi
  7629. done
  7630. if test -z "$haveit"; then
  7631. rpathdirs="$rpathdirs $dir"
  7632. fi
  7633. haveit=
  7634. for x in $ltrpathdirs; do
  7635. if test "X$x" = "X$dir"; then
  7636. haveit=yes
  7637. break
  7638. fi
  7639. done
  7640. if test -z "$haveit"; then
  7641. ltrpathdirs="$ltrpathdirs $dir"
  7642. fi
  7643. fi
  7644. ;;
  7645. -l*)
  7646. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7647. ;;
  7648. *.la)
  7649. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7650. ;;
  7651. *)
  7652. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  7653. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  7654. ;;
  7655. esac
  7656. done
  7657. fi
  7658. else
  7659. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  7660. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  7661. fi
  7662. fi
  7663. fi
  7664. done
  7665. done
  7666. if test "X$rpathdirs" != "X"; then
  7667. if test -n "$hardcode_libdir_separator"; then
  7668. alldirs=
  7669. for found_dir in $rpathdirs; do
  7670. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7671. done
  7672. acl_save_libdir="$libdir"
  7673. libdir="$alldirs"
  7674. eval flag=\"$hardcode_libdir_flag_spec\"
  7675. libdir="$acl_save_libdir"
  7676. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  7677. else
  7678. for found_dir in $rpathdirs; do
  7679. acl_save_libdir="$libdir"
  7680. libdir="$found_dir"
  7681. eval flag=\"$hardcode_libdir_flag_spec\"
  7682. libdir="$acl_save_libdir"
  7683. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  7684. done
  7685. fi
  7686. fi
  7687. if test "X$ltrpathdirs" != "X"; then
  7688. for found_dir in $ltrpathdirs; do
  7689. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  7690. done
  7691. fi
  7692. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  7693. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  7694. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  7695. echo $ECHO_N "(cached) $ECHO_C" >&6
  7696. else
  7697. gt_save_CPPFLAGS="$CPPFLAGS"
  7698. CPPFLAGS="$CPPFLAGS $INCINTL"
  7699. gt_save_LIBS="$LIBS"
  7700. LIBS="$LIBS $LIBINTL"
  7701. cat >conftest.$ac_ext <<_ACEOF
  7702. /* confdefs.h. */
  7703. _ACEOF
  7704. cat confdefs.h >>conftest.$ac_ext
  7705. cat >>conftest.$ac_ext <<_ACEOF
  7706. /* end confdefs.h. */
  7707. #include <libintl.h>
  7708. extern int _nl_msg_cat_cntr;
  7709. extern
  7710. #ifdef __cplusplus
  7711. "C"
  7712. #endif
  7713. const char *_nl_expand_alias ();
  7714. int
  7715. main ()
  7716. {
  7717. bindtextdomain ("", "");
  7718. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  7719. ;
  7720. return 0;
  7721. }
  7722. _ACEOF
  7723. rm -f conftest.$ac_objext conftest$ac_exeext
  7724. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7725. (eval $ac_link) 2>conftest.er1
  7726. ac_status=$?
  7727. grep -v '^ *+' conftest.er1 >conftest.err
  7728. rm -f conftest.er1
  7729. cat conftest.err >&5
  7730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7731. (exit $ac_status); } &&
  7732. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7734. (eval $ac_try) 2>&5
  7735. ac_status=$?
  7736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7737. (exit $ac_status); }; } &&
  7738. { ac_try='test -s conftest$ac_exeext'
  7739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7740. (eval $ac_try) 2>&5
  7741. ac_status=$?
  7742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7743. (exit $ac_status); }; }; then
  7744. gt_cv_func_gnugettext1_libintl=yes
  7745. else
  7746. echo "$as_me: failed program was:" >&5
  7747. sed 's/^/| /' conftest.$ac_ext >&5
  7748. gt_cv_func_gnugettext1_libintl=no
  7749. fi
  7750. rm -f conftest.err conftest.$ac_objext \
  7751. conftest$ac_exeext conftest.$ac_ext
  7752. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  7753. LIBS="$LIBS $LIBICONV"
  7754. cat >conftest.$ac_ext <<_ACEOF
  7755. /* confdefs.h. */
  7756. _ACEOF
  7757. cat confdefs.h >>conftest.$ac_ext
  7758. cat >>conftest.$ac_ext <<_ACEOF
  7759. /* end confdefs.h. */
  7760. #include <libintl.h>
  7761. extern int _nl_msg_cat_cntr;
  7762. extern
  7763. #ifdef __cplusplus
  7764. "C"
  7765. #endif
  7766. const char *_nl_expand_alias ();
  7767. int
  7768. main ()
  7769. {
  7770. bindtextdomain ("", "");
  7771. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  7772. ;
  7773. return 0;
  7774. }
  7775. _ACEOF
  7776. rm -f conftest.$ac_objext conftest$ac_exeext
  7777. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7778. (eval $ac_link) 2>conftest.er1
  7779. ac_status=$?
  7780. grep -v '^ *+' conftest.er1 >conftest.err
  7781. rm -f conftest.er1
  7782. cat conftest.err >&5
  7783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. (exit $ac_status); } &&
  7785. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7787. (eval $ac_try) 2>&5
  7788. ac_status=$?
  7789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7790. (exit $ac_status); }; } &&
  7791. { ac_try='test -s conftest$ac_exeext'
  7792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7793. (eval $ac_try) 2>&5
  7794. ac_status=$?
  7795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7796. (exit $ac_status); }; }; then
  7797. LIBINTL="$LIBINTL $LIBICONV"
  7798. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  7799. gt_cv_func_gnugettext1_libintl=yes
  7800. else
  7801. echo "$as_me: failed program was:" >&5
  7802. sed 's/^/| /' conftest.$ac_ext >&5
  7803. fi
  7804. rm -f conftest.err conftest.$ac_objext \
  7805. conftest$ac_exeext conftest.$ac_ext
  7806. fi
  7807. CPPFLAGS="$gt_save_CPPFLAGS"
  7808. LIBS="$gt_save_LIBS"
  7809. fi
  7810. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  7811. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  7812. fi
  7813. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  7814. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  7815. && test "$PACKAGE" != gettext-runtime \
  7816. && test "$PACKAGE" != gettext-tools; }; then
  7817. gt_use_preinstalled_gnugettext=yes
  7818. else
  7819. LIBINTL=
  7820. LTLIBINTL=
  7821. INCINTL=
  7822. fi
  7823. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  7824. nls_cv_use_gnu_gettext=yes
  7825. fi
  7826. fi
  7827. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  7828. BUILD_INCLUDED_LIBINTL=yes
  7829. USE_INCLUDED_LIBINTL=yes
  7830. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  7831. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  7832. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  7833. fi
  7834. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  7835. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  7836. CATOBJEXT=.gmo
  7837. fi
  7838. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  7839. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  7840. cat >>confdefs.h <<\_ACEOF
  7841. #define ENABLE_NLS 1
  7842. _ACEOF
  7843. else
  7844. USE_NLS=no
  7845. fi
  7846. fi
  7847. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  7848. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  7849. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7850. echo "${ECHO_T}$USE_NLS" >&6
  7851. if test "$USE_NLS" = "yes"; then
  7852. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  7853. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  7854. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  7855. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  7856. gt_source="external libintl"
  7857. else
  7858. gt_source="libc"
  7859. fi
  7860. else
  7861. gt_source="included intl directory"
  7862. fi
  7863. echo "$as_me:$LINENO: result: $gt_source" >&5
  7864. echo "${ECHO_T}$gt_source" >&6
  7865. fi
  7866. if test "$USE_NLS" = "yes"; then
  7867. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  7868. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  7869. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  7870. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  7871. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  7872. echo "${ECHO_T}$LIBINTL" >&6
  7873. for element in $INCINTL; do
  7874. haveit=
  7875. for x in $CPPFLAGS; do
  7876. acl_save_prefix="$prefix"
  7877. prefix="$acl_final_prefix"
  7878. acl_save_exec_prefix="$exec_prefix"
  7879. exec_prefix="$acl_final_exec_prefix"
  7880. eval x=\"$x\"
  7881. exec_prefix="$acl_save_exec_prefix"
  7882. prefix="$acl_save_prefix"
  7883. if test "X$x" = "X$element"; then
  7884. haveit=yes
  7885. break
  7886. fi
  7887. done
  7888. if test -z "$haveit"; then
  7889. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7890. fi
  7891. done
  7892. fi
  7893. cat >>confdefs.h <<\_ACEOF
  7894. #define HAVE_GETTEXT 1
  7895. _ACEOF
  7896. cat >>confdefs.h <<\_ACEOF
  7897. #define HAVE_DCGETTEXT 1
  7898. _ACEOF
  7899. fi
  7900. POSUB=po
  7901. fi
  7902. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  7903. BUILD_INCLUDED_LIBINTL=yes
  7904. fi
  7905. nls_cv_header_intl=
  7906. nls_cv_header_libgt=
  7907. DATADIRNAME=share
  7908. INSTOBJEXT=.mo
  7909. GENCAT=gencat
  7910. if test "$USE_INCLUDED_LIBINTL" = yes; then
  7911. INTLOBJS="\$(GETTOBJS)"
  7912. fi
  7913. INTL_LIBTOOL_SUFFIX_PREFIX=
  7914. INTLLIBS="$LIBINTL"
  7915. echo "$as_me:$LINENO: checking for error_at_line" >&5
  7916. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  7917. if test "${ac_cv_lib_error_at_line+set}" = set; then
  7918. echo $ECHO_N "(cached) $ECHO_C" >&6
  7919. else
  7920. cat >conftest.$ac_ext <<_ACEOF
  7921. /* confdefs.h. */
  7922. _ACEOF
  7923. cat confdefs.h >>conftest.$ac_ext
  7924. cat >>conftest.$ac_ext <<_ACEOF
  7925. /* end confdefs.h. */
  7926. $ac_includes_default
  7927. int
  7928. main ()
  7929. {
  7930. error_at_line (0, 0, "", 0, "");
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. rm -f conftest.$ac_objext conftest$ac_exeext
  7936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7937. (eval $ac_link) 2>conftest.er1
  7938. ac_status=$?
  7939. grep -v '^ *+' conftest.er1 >conftest.err
  7940. rm -f conftest.er1
  7941. cat conftest.err >&5
  7942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7943. (exit $ac_status); } &&
  7944. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7946. (eval $ac_try) 2>&5
  7947. ac_status=$?
  7948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7949. (exit $ac_status); }; } &&
  7950. { ac_try='test -s conftest$ac_exeext'
  7951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7952. (eval $ac_try) 2>&5
  7953. ac_status=$?
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); }; }; then
  7956. ac_cv_lib_error_at_line=yes
  7957. else
  7958. echo "$as_me: failed program was:" >&5
  7959. sed 's/^/| /' conftest.$ac_ext >&5
  7960. ac_cv_lib_error_at_line=no
  7961. fi
  7962. rm -f conftest.err conftest.$ac_objext \
  7963. conftest$ac_exeext conftest.$ac_ext
  7964. fi
  7965. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  7966. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  7967. if test $ac_cv_lib_error_at_line = no; then
  7968. case $LIBOBJS in
  7969. "error.$ac_objext" | \
  7970. *" error.$ac_objext" | \
  7971. "error.$ac_objext "* | \
  7972. *" error.$ac_objext "* ) ;;
  7973. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  7974. esac
  7975. fi
  7976. for ac_header in stdlib.h
  7977. do
  7978. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7980. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7981. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7982. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7983. echo $ECHO_N "(cached) $ECHO_C" >&6
  7984. fi
  7985. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7986. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7987. else
  7988. # Is the header compilable?
  7989. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7990. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7991. cat >conftest.$ac_ext <<_ACEOF
  7992. /* confdefs.h. */
  7993. _ACEOF
  7994. cat confdefs.h >>conftest.$ac_ext
  7995. cat >>conftest.$ac_ext <<_ACEOF
  7996. /* end confdefs.h. */
  7997. $ac_includes_default
  7998. #include <$ac_header>
  7999. _ACEOF
  8000. rm -f conftest.$ac_objext
  8001. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8002. (eval $ac_compile) 2>conftest.er1
  8003. ac_status=$?
  8004. grep -v '^ *+' conftest.er1 >conftest.err
  8005. rm -f conftest.er1
  8006. cat conftest.err >&5
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. (exit $ac_status); } &&
  8009. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  8015. { ac_try='test -s conftest.$ac_objext'
  8016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8017. (eval $ac_try) 2>&5
  8018. ac_status=$?
  8019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8020. (exit $ac_status); }; }; then
  8021. ac_header_compiler=yes
  8022. else
  8023. echo "$as_me: failed program was:" >&5
  8024. sed 's/^/| /' conftest.$ac_ext >&5
  8025. ac_header_compiler=no
  8026. fi
  8027. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8028. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8029. echo "${ECHO_T}$ac_header_compiler" >&6
  8030. # Is the header present?
  8031. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8032. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8033. cat >conftest.$ac_ext <<_ACEOF
  8034. /* confdefs.h. */
  8035. _ACEOF
  8036. cat confdefs.h >>conftest.$ac_ext
  8037. cat >>conftest.$ac_ext <<_ACEOF
  8038. /* end confdefs.h. */
  8039. #include <$ac_header>
  8040. _ACEOF
  8041. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8042. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8043. ac_status=$?
  8044. grep -v '^ *+' conftest.er1 >conftest.err
  8045. rm -f conftest.er1
  8046. cat conftest.err >&5
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); } >/dev/null; then
  8049. if test -s conftest.err; then
  8050. ac_cpp_err=$ac_c_preproc_warn_flag
  8051. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8052. else
  8053. ac_cpp_err=
  8054. fi
  8055. else
  8056. ac_cpp_err=yes
  8057. fi
  8058. if test -z "$ac_cpp_err"; then
  8059. ac_header_preproc=yes
  8060. else
  8061. echo "$as_me: failed program was:" >&5
  8062. sed 's/^/| /' conftest.$ac_ext >&5
  8063. ac_header_preproc=no
  8064. fi
  8065. rm -f conftest.err conftest.$ac_ext
  8066. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8067. echo "${ECHO_T}$ac_header_preproc" >&6
  8068. # So? What about this header?
  8069. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8070. yes:no: )
  8071. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8072. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8073. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8074. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8075. ac_header_preproc=yes
  8076. ;;
  8077. no:yes:* )
  8078. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8079. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8080. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8081. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8082. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8083. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8084. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8085. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8086. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8087. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8088. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8089. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8090. (
  8091. cat <<\_ASBOX
  8092. ## ----------------------------------- ##
  8093. ## Report this to tujikawa@rednoah.com ##
  8094. ## ----------------------------------- ##
  8095. _ASBOX
  8096. ) |
  8097. sed "s/^/$as_me: WARNING: /" >&2
  8098. ;;
  8099. esac
  8100. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8101. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8102. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8103. echo $ECHO_N "(cached) $ECHO_C" >&6
  8104. else
  8105. eval "$as_ac_Header=\$ac_header_preproc"
  8106. fi
  8107. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8108. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8109. fi
  8110. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8111. cat >>confdefs.h <<_ACEOF
  8112. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8113. _ACEOF
  8114. fi
  8115. done
  8116. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8117. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8118. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8119. echo $ECHO_N "(cached) $ECHO_C" >&6
  8120. else
  8121. if test "$cross_compiling" = yes; then
  8122. ac_cv_func_malloc_0_nonnull=no
  8123. else
  8124. cat >conftest.$ac_ext <<_ACEOF
  8125. /* confdefs.h. */
  8126. _ACEOF
  8127. cat confdefs.h >>conftest.$ac_ext
  8128. cat >>conftest.$ac_ext <<_ACEOF
  8129. /* end confdefs.h. */
  8130. #if STDC_HEADERS || HAVE_STDLIB_H
  8131. # include <stdlib.h>
  8132. #else
  8133. char *malloc ();
  8134. #endif
  8135. int
  8136. main ()
  8137. {
  8138. exit (malloc (0) ? 0 : 1);
  8139. ;
  8140. return 0;
  8141. }
  8142. _ACEOF
  8143. rm -f conftest$ac_exeext
  8144. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8145. (eval $ac_link) 2>&5
  8146. ac_status=$?
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8150. (eval $ac_try) 2>&5
  8151. ac_status=$?
  8152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153. (exit $ac_status); }; }; then
  8154. ac_cv_func_malloc_0_nonnull=yes
  8155. else
  8156. echo "$as_me: program exited with status $ac_status" >&5
  8157. echo "$as_me: failed program was:" >&5
  8158. sed 's/^/| /' conftest.$ac_ext >&5
  8159. ( exit $ac_status )
  8160. ac_cv_func_malloc_0_nonnull=no
  8161. fi
  8162. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8163. fi
  8164. fi
  8165. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8166. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8167. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8168. cat >>confdefs.h <<\_ACEOF
  8169. #define HAVE_MALLOC 1
  8170. _ACEOF
  8171. else
  8172. cat >>confdefs.h <<\_ACEOF
  8173. #define HAVE_MALLOC 0
  8174. _ACEOF
  8175. case $LIBOBJS in
  8176. "malloc.$ac_objext" | \
  8177. *" malloc.$ac_objext" | \
  8178. "malloc.$ac_objext "* | \
  8179. *" malloc.$ac_objext "* ) ;;
  8180. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8181. esac
  8182. cat >>confdefs.h <<\_ACEOF
  8183. #define malloc rpl_malloc
  8184. _ACEOF
  8185. fi
  8186. echo "$as_me:$LINENO: checking for working memcmp" >&5
  8187. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  8188. if test "${ac_cv_func_memcmp_working+set}" = set; then
  8189. echo $ECHO_N "(cached) $ECHO_C" >&6
  8190. else
  8191. if test "$cross_compiling" = yes; then
  8192. ac_cv_func_memcmp_working=no
  8193. else
  8194. cat >conftest.$ac_ext <<_ACEOF
  8195. /* confdefs.h. */
  8196. _ACEOF
  8197. cat confdefs.h >>conftest.$ac_ext
  8198. cat >>conftest.$ac_ext <<_ACEOF
  8199. /* end confdefs.h. */
  8200. $ac_includes_default
  8201. int
  8202. main ()
  8203. {
  8204. /* Some versions of memcmp are not 8-bit clean. */
  8205. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  8206. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  8207. exit (1);
  8208. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  8209. or more and with at least one buffer not starting on a 4-byte boundary.
  8210. William Lewis provided this test program. */
  8211. {
  8212. char foo[21];
  8213. char bar[21];
  8214. int i;
  8215. for (i = 0; i < 4; i++)
  8216. {
  8217. char *a = foo + i;
  8218. char *b = bar + i;
  8219. strcpy (a, "--------01111111");
  8220. strcpy (b, "--------10000000");
  8221. if (memcmp (a, b, 16) >= 0)
  8222. exit (1);
  8223. }
  8224. exit (0);
  8225. }
  8226. ;
  8227. return 0;
  8228. }
  8229. _ACEOF
  8230. rm -f conftest$ac_exeext
  8231. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8232. (eval $ac_link) 2>&5
  8233. ac_status=$?
  8234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8235. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8237. (eval $ac_try) 2>&5
  8238. ac_status=$?
  8239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8240. (exit $ac_status); }; }; then
  8241. ac_cv_func_memcmp_working=yes
  8242. else
  8243. echo "$as_me: program exited with status $ac_status" >&5
  8244. echo "$as_me: failed program was:" >&5
  8245. sed 's/^/| /' conftest.$ac_ext >&5
  8246. ( exit $ac_status )
  8247. ac_cv_func_memcmp_working=no
  8248. fi
  8249. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8250. fi
  8251. fi
  8252. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  8253. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  8254. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  8255. "memcmp.$ac_objext" | \
  8256. *" memcmp.$ac_objext" | \
  8257. "memcmp.$ac_objext "* | \
  8258. *" memcmp.$ac_objext "* ) ;;
  8259. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  8260. esac
  8261. for ac_header in stdlib.h unistd.h
  8262. do
  8263. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8264. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8265. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8266. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8267. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8268. echo $ECHO_N "(cached) $ECHO_C" >&6
  8269. fi
  8270. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8271. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8272. else
  8273. # Is the header compilable?
  8274. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8275. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8276. cat >conftest.$ac_ext <<_ACEOF
  8277. /* confdefs.h. */
  8278. _ACEOF
  8279. cat confdefs.h >>conftest.$ac_ext
  8280. cat >>conftest.$ac_ext <<_ACEOF
  8281. /* end confdefs.h. */
  8282. $ac_includes_default
  8283. #include <$ac_header>
  8284. _ACEOF
  8285. rm -f conftest.$ac_objext
  8286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8287. (eval $ac_compile) 2>conftest.er1
  8288. ac_status=$?
  8289. grep -v '^ *+' conftest.er1 >conftest.err
  8290. rm -f conftest.er1
  8291. cat conftest.err >&5
  8292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8293. (exit $ac_status); } &&
  8294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8296. (eval $ac_try) 2>&5
  8297. ac_status=$?
  8298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299. (exit $ac_status); }; } &&
  8300. { ac_try='test -s conftest.$ac_objext'
  8301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8302. (eval $ac_try) 2>&5
  8303. ac_status=$?
  8304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8305. (exit $ac_status); }; }; then
  8306. ac_header_compiler=yes
  8307. else
  8308. echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_header_compiler=no
  8311. fi
  8312. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8314. echo "${ECHO_T}$ac_header_compiler" >&6
  8315. # Is the header present?
  8316. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8317. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8318. cat >conftest.$ac_ext <<_ACEOF
  8319. /* confdefs.h. */
  8320. _ACEOF
  8321. cat confdefs.h >>conftest.$ac_ext
  8322. cat >>conftest.$ac_ext <<_ACEOF
  8323. /* end confdefs.h. */
  8324. #include <$ac_header>
  8325. _ACEOF
  8326. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8327. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8328. ac_status=$?
  8329. grep -v '^ *+' conftest.er1 >conftest.err
  8330. rm -f conftest.er1
  8331. cat conftest.err >&5
  8332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8333. (exit $ac_status); } >/dev/null; then
  8334. if test -s conftest.err; then
  8335. ac_cpp_err=$ac_c_preproc_warn_flag
  8336. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8337. else
  8338. ac_cpp_err=
  8339. fi
  8340. else
  8341. ac_cpp_err=yes
  8342. fi
  8343. if test -z "$ac_cpp_err"; then
  8344. ac_header_preproc=yes
  8345. else
  8346. echo "$as_me: failed program was:" >&5
  8347. sed 's/^/| /' conftest.$ac_ext >&5
  8348. ac_header_preproc=no
  8349. fi
  8350. rm -f conftest.err conftest.$ac_ext
  8351. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8352. echo "${ECHO_T}$ac_header_preproc" >&6
  8353. # So? What about this header?
  8354. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8355. yes:no: )
  8356. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8357. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8358. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8359. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8360. ac_header_preproc=yes
  8361. ;;
  8362. no:yes:* )
  8363. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8364. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8365. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8366. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8367. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8368. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8369. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8370. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8371. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8372. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8373. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8374. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8375. (
  8376. cat <<\_ASBOX
  8377. ## ----------------------------------- ##
  8378. ## Report this to tujikawa@rednoah.com ##
  8379. ## ----------------------------------- ##
  8380. _ASBOX
  8381. ) |
  8382. sed "s/^/$as_me: WARNING: /" >&2
  8383. ;;
  8384. esac
  8385. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8386. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8387. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8388. echo $ECHO_N "(cached) $ECHO_C" >&6
  8389. else
  8390. eval "$as_ac_Header=\$ac_header_preproc"
  8391. fi
  8392. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8393. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8394. fi
  8395. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8396. cat >>confdefs.h <<_ACEOF
  8397. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8398. _ACEOF
  8399. fi
  8400. done
  8401. for ac_func in getpagesize
  8402. do
  8403. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8404. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8405. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8406. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8407. echo $ECHO_N "(cached) $ECHO_C" >&6
  8408. else
  8409. cat >conftest.$ac_ext <<_ACEOF
  8410. /* confdefs.h. */
  8411. _ACEOF
  8412. cat confdefs.h >>conftest.$ac_ext
  8413. cat >>conftest.$ac_ext <<_ACEOF
  8414. /* end confdefs.h. */
  8415. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8416. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8417. #define $ac_func innocuous_$ac_func
  8418. /* System header to define __stub macros and hopefully few prototypes,
  8419. which can conflict with char $ac_func (); below.
  8420. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8421. <limits.h> exists even on freestanding compilers. */
  8422. #ifdef __STDC__
  8423. # include <limits.h>
  8424. #else
  8425. # include <assert.h>
  8426. #endif
  8427. #undef $ac_func
  8428. /* Override any gcc2 internal prototype to avoid an error. */
  8429. #ifdef __cplusplus
  8430. extern "C"
  8431. {
  8432. #endif
  8433. /* We use char because int might match the return type of a gcc2
  8434. builtin and then its argument prototype would still apply. */
  8435. char $ac_func ();
  8436. /* The GNU C library defines this for functions which it implements
  8437. to always fail with ENOSYS. Some functions are actually named
  8438. something starting with __ and the normal name is an alias. */
  8439. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8440. choke me
  8441. #else
  8442. char (*f) () = $ac_func;
  8443. #endif
  8444. #ifdef __cplusplus
  8445. }
  8446. #endif
  8447. int
  8448. main ()
  8449. {
  8450. return f != $ac_func;
  8451. ;
  8452. return 0;
  8453. }
  8454. _ACEOF
  8455. rm -f conftest.$ac_objext conftest$ac_exeext
  8456. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8457. (eval $ac_link) 2>conftest.er1
  8458. ac_status=$?
  8459. grep -v '^ *+' conftest.er1 >conftest.err
  8460. rm -f conftest.er1
  8461. cat conftest.err >&5
  8462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8463. (exit $ac_status); } &&
  8464. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8466. (eval $ac_try) 2>&5
  8467. ac_status=$?
  8468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8469. (exit $ac_status); }; } &&
  8470. { ac_try='test -s conftest$ac_exeext'
  8471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8472. (eval $ac_try) 2>&5
  8473. ac_status=$?
  8474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8475. (exit $ac_status); }; }; then
  8476. eval "$as_ac_var=yes"
  8477. else
  8478. echo "$as_me: failed program was:" >&5
  8479. sed 's/^/| /' conftest.$ac_ext >&5
  8480. eval "$as_ac_var=no"
  8481. fi
  8482. rm -f conftest.err conftest.$ac_objext \
  8483. conftest$ac_exeext conftest.$ac_ext
  8484. fi
  8485. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8486. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8487. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8488. cat >>confdefs.h <<_ACEOF
  8489. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8490. _ACEOF
  8491. fi
  8492. done
  8493. echo "$as_me:$LINENO: checking for working mmap" >&5
  8494. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8495. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8496. echo $ECHO_N "(cached) $ECHO_C" >&6
  8497. else
  8498. if test "$cross_compiling" = yes; then
  8499. ac_cv_func_mmap_fixed_mapped=no
  8500. else
  8501. cat >conftest.$ac_ext <<_ACEOF
  8502. /* confdefs.h. */
  8503. _ACEOF
  8504. cat confdefs.h >>conftest.$ac_ext
  8505. cat >>conftest.$ac_ext <<_ACEOF
  8506. /* end confdefs.h. */
  8507. $ac_includes_default
  8508. /* malloc might have been renamed as rpl_malloc. */
  8509. #undef malloc
  8510. /* Thanks to Mike Haertel and Jim Avera for this test.
  8511. Here is a matrix of mmap possibilities:
  8512. mmap private not fixed
  8513. mmap private fixed at somewhere currently unmapped
  8514. mmap private fixed at somewhere already mapped
  8515. mmap shared not fixed
  8516. mmap shared fixed at somewhere currently unmapped
  8517. mmap shared fixed at somewhere already mapped
  8518. For private mappings, we should verify that changes cannot be read()
  8519. back from the file, nor mmap's back from the file at a different
  8520. address. (There have been systems where private was not correctly
  8521. implemented like the infamous i386 svr4.0, and systems where the
  8522. VM page cache was not coherent with the file system buffer cache
  8523. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8524. For shared mappings, we should conversely verify that changes get
  8525. propagated back to all the places they're supposed to be.
  8526. Grep wants private fixed already mapped.
  8527. The main things grep needs to know about mmap are:
  8528. * does it exist and is it safe to write into the mmap'd area
  8529. * how to use it (BSD variants) */
  8530. #include <fcntl.h>
  8531. #include <sys/mman.h>
  8532. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8533. char *malloc ();
  8534. #endif
  8535. /* This mess was copied from the GNU getpagesize.h. */
  8536. #if !HAVE_GETPAGESIZE
  8537. /* Assume that all systems that can run configure have sys/param.h. */
  8538. # if !HAVE_SYS_PARAM_H
  8539. # define HAVE_SYS_PARAM_H 1
  8540. # endif
  8541. # ifdef _SC_PAGESIZE
  8542. # define getpagesize() sysconf(_SC_PAGESIZE)
  8543. # else /* no _SC_PAGESIZE */
  8544. # if HAVE_SYS_PARAM_H
  8545. # include <sys/param.h>
  8546. # ifdef EXEC_PAGESIZE
  8547. # define getpagesize() EXEC_PAGESIZE
  8548. # else /* no EXEC_PAGESIZE */
  8549. # ifdef NBPG
  8550. # define getpagesize() NBPG * CLSIZE
  8551. # ifndef CLSIZE
  8552. # define CLSIZE 1
  8553. # endif /* no CLSIZE */
  8554. # else /* no NBPG */
  8555. # ifdef NBPC
  8556. # define getpagesize() NBPC
  8557. # else /* no NBPC */
  8558. # ifdef PAGESIZE
  8559. # define getpagesize() PAGESIZE
  8560. # endif /* PAGESIZE */
  8561. # endif /* no NBPC */
  8562. # endif /* no NBPG */
  8563. # endif /* no EXEC_PAGESIZE */
  8564. # else /* no HAVE_SYS_PARAM_H */
  8565. # define getpagesize() 8192 /* punt totally */
  8566. # endif /* no HAVE_SYS_PARAM_H */
  8567. # endif /* no _SC_PAGESIZE */
  8568. #endif /* no HAVE_GETPAGESIZE */
  8569. int
  8570. main ()
  8571. {
  8572. char *data, *data2, *data3;
  8573. int i, pagesize;
  8574. int fd;
  8575. pagesize = getpagesize ();
  8576. /* First, make a file with some known garbage in it. */
  8577. data = (char *) malloc (pagesize);
  8578. if (!data)
  8579. exit (1);
  8580. for (i = 0; i < pagesize; ++i)
  8581. *(data + i) = rand ();
  8582. umask (0);
  8583. fd = creat ("conftest.mmap", 0600);
  8584. if (fd < 0)
  8585. exit (1);
  8586. if (write (fd, data, pagesize) != pagesize)
  8587. exit (1);
  8588. close (fd);
  8589. /* Next, try to mmap the file at a fixed address which already has
  8590. something else allocated at it. If we can, also make sure that
  8591. we see the same garbage. */
  8592. fd = open ("conftest.mmap", O_RDWR);
  8593. if (fd < 0)
  8594. exit (1);
  8595. data2 = (char *) malloc (2 * pagesize);
  8596. if (!data2)
  8597. exit (1);
  8598. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8599. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8600. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8601. exit (1);
  8602. for (i = 0; i < pagesize; ++i)
  8603. if (*(data + i) != *(data2 + i))
  8604. exit (1);
  8605. /* Finally, make sure that changes to the mapped area do not
  8606. percolate back to the file as seen by read(). (This is a bug on
  8607. some variants of i386 svr4.0.) */
  8608. for (i = 0; i < pagesize; ++i)
  8609. *(data2 + i) = *(data2 + i) + 1;
  8610. data3 = (char *) malloc (pagesize);
  8611. if (!data3)
  8612. exit (1);
  8613. if (read (fd, data3, pagesize) != pagesize)
  8614. exit (1);
  8615. for (i = 0; i < pagesize; ++i)
  8616. if (*(data + i) != *(data3 + i))
  8617. exit (1);
  8618. close (fd);
  8619. exit (0);
  8620. }
  8621. _ACEOF
  8622. rm -f conftest$ac_exeext
  8623. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8624. (eval $ac_link) 2>&5
  8625. ac_status=$?
  8626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8627. (exit $ac_status); } && { ac_try='./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. ac_cv_func_mmap_fixed_mapped=yes
  8634. else
  8635. echo "$as_me: program exited with status $ac_status" >&5
  8636. echo "$as_me: failed program was:" >&5
  8637. sed 's/^/| /' conftest.$ac_ext >&5
  8638. ( exit $ac_status )
  8639. ac_cv_func_mmap_fixed_mapped=no
  8640. fi
  8641. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8642. fi
  8643. fi
  8644. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8645. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8646. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8647. cat >>confdefs.h <<\_ACEOF
  8648. #define HAVE_MMAP 1
  8649. _ACEOF
  8650. fi
  8651. rm -f conftest.mmap
  8652. for ac_header in stdlib.h
  8653. do
  8654. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8655. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8656. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8658. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8659. echo $ECHO_N "(cached) $ECHO_C" >&6
  8660. fi
  8661. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8662. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8663. else
  8664. # Is the header compilable?
  8665. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8666. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8667. cat >conftest.$ac_ext <<_ACEOF
  8668. /* confdefs.h. */
  8669. _ACEOF
  8670. cat confdefs.h >>conftest.$ac_ext
  8671. cat >>conftest.$ac_ext <<_ACEOF
  8672. /* end confdefs.h. */
  8673. $ac_includes_default
  8674. #include <$ac_header>
  8675. _ACEOF
  8676. rm -f conftest.$ac_objext
  8677. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8678. (eval $ac_compile) 2>conftest.er1
  8679. ac_status=$?
  8680. grep -v '^ *+' conftest.er1 >conftest.err
  8681. rm -f conftest.er1
  8682. cat conftest.err >&5
  8683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8684. (exit $ac_status); } &&
  8685. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8687. (eval $ac_try) 2>&5
  8688. ac_status=$?
  8689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8690. (exit $ac_status); }; } &&
  8691. { ac_try='test -s conftest.$ac_objext'
  8692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8693. (eval $ac_try) 2>&5
  8694. ac_status=$?
  8695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); }; }; then
  8697. ac_header_compiler=yes
  8698. else
  8699. echo "$as_me: failed program was:" >&5
  8700. sed 's/^/| /' conftest.$ac_ext >&5
  8701. ac_header_compiler=no
  8702. fi
  8703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8704. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8705. echo "${ECHO_T}$ac_header_compiler" >&6
  8706. # Is the header present?
  8707. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8708. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8709. cat >conftest.$ac_ext <<_ACEOF
  8710. /* confdefs.h. */
  8711. _ACEOF
  8712. cat confdefs.h >>conftest.$ac_ext
  8713. cat >>conftest.$ac_ext <<_ACEOF
  8714. /* end confdefs.h. */
  8715. #include <$ac_header>
  8716. _ACEOF
  8717. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8718. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8719. ac_status=$?
  8720. grep -v '^ *+' conftest.er1 >conftest.err
  8721. rm -f conftest.er1
  8722. cat conftest.err >&5
  8723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); } >/dev/null; then
  8725. if test -s conftest.err; then
  8726. ac_cpp_err=$ac_c_preproc_warn_flag
  8727. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8728. else
  8729. ac_cpp_err=
  8730. fi
  8731. else
  8732. ac_cpp_err=yes
  8733. fi
  8734. if test -z "$ac_cpp_err"; then
  8735. ac_header_preproc=yes
  8736. else
  8737. echo "$as_me: failed program was:" >&5
  8738. sed 's/^/| /' conftest.$ac_ext >&5
  8739. ac_header_preproc=no
  8740. fi
  8741. rm -f conftest.err conftest.$ac_ext
  8742. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8743. echo "${ECHO_T}$ac_header_preproc" >&6
  8744. # So? What about this header?
  8745. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8746. yes:no: )
  8747. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8748. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8749. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8750. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8751. ac_header_preproc=yes
  8752. ;;
  8753. no:yes:* )
  8754. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8755. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8756. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8757. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8758. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8759. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8760. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8761. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8762. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8763. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8764. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8765. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8766. (
  8767. cat <<\_ASBOX
  8768. ## ----------------------------------- ##
  8769. ## Report this to tujikawa@rednoah.com ##
  8770. ## ----------------------------------- ##
  8771. _ASBOX
  8772. ) |
  8773. sed "s/^/$as_me: WARNING: /" >&2
  8774. ;;
  8775. esac
  8776. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8777. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8778. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8779. echo $ECHO_N "(cached) $ECHO_C" >&6
  8780. else
  8781. eval "$as_ac_Header=\$ac_header_preproc"
  8782. fi
  8783. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8784. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8785. fi
  8786. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8787. cat >>confdefs.h <<_ACEOF
  8788. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8789. _ACEOF
  8790. fi
  8791. done
  8792. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  8793. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  8794. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  8795. echo $ECHO_N "(cached) $ECHO_C" >&6
  8796. else
  8797. if test "$cross_compiling" = yes; then
  8798. ac_cv_func_realloc_0_nonnull=no
  8799. else
  8800. cat >conftest.$ac_ext <<_ACEOF
  8801. /* confdefs.h. */
  8802. _ACEOF
  8803. cat confdefs.h >>conftest.$ac_ext
  8804. cat >>conftest.$ac_ext <<_ACEOF
  8805. /* end confdefs.h. */
  8806. #if STDC_HEADERS || HAVE_STDLIB_H
  8807. # include <stdlib.h>
  8808. #else
  8809. char *realloc ();
  8810. #endif
  8811. int
  8812. main ()
  8813. {
  8814. exit (realloc (0, 0) ? 0 : 1);
  8815. ;
  8816. return 0;
  8817. }
  8818. _ACEOF
  8819. rm -f conftest$ac_exeext
  8820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8821. (eval $ac_link) 2>&5
  8822. ac_status=$?
  8823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8824. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8826. (eval $ac_try) 2>&5
  8827. ac_status=$?
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. (exit $ac_status); }; }; then
  8830. ac_cv_func_realloc_0_nonnull=yes
  8831. else
  8832. echo "$as_me: program exited with status $ac_status" >&5
  8833. echo "$as_me: failed program was:" >&5
  8834. sed 's/^/| /' conftest.$ac_ext >&5
  8835. ( exit $ac_status )
  8836. ac_cv_func_realloc_0_nonnull=no
  8837. fi
  8838. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8839. fi
  8840. fi
  8841. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  8842. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  8843. if test $ac_cv_func_realloc_0_nonnull = yes; then
  8844. cat >>confdefs.h <<\_ACEOF
  8845. #define HAVE_REALLOC 1
  8846. _ACEOF
  8847. else
  8848. cat >>confdefs.h <<\_ACEOF
  8849. #define HAVE_REALLOC 0
  8850. _ACEOF
  8851. case $LIBOBJS in
  8852. "realloc.$ac_objext" | \
  8853. *" realloc.$ac_objext" | \
  8854. "realloc.$ac_objext "* | \
  8855. *" realloc.$ac_objext "* ) ;;
  8856. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  8857. esac
  8858. cat >>confdefs.h <<\_ACEOF
  8859. #define realloc rpl_realloc
  8860. _ACEOF
  8861. fi
  8862. for ac_header in sys/select.h sys/socket.h
  8863. do
  8864. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8865. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8866. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8867. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8868. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8869. echo $ECHO_N "(cached) $ECHO_C" >&6
  8870. fi
  8871. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8872. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8873. else
  8874. # Is the header compilable?
  8875. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8876. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8877. cat >conftest.$ac_ext <<_ACEOF
  8878. /* confdefs.h. */
  8879. _ACEOF
  8880. cat confdefs.h >>conftest.$ac_ext
  8881. cat >>conftest.$ac_ext <<_ACEOF
  8882. /* end confdefs.h. */
  8883. $ac_includes_default
  8884. #include <$ac_header>
  8885. _ACEOF
  8886. rm -f conftest.$ac_objext
  8887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8888. (eval $ac_compile) 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } &&
  8895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8897. (eval $ac_try) 2>&5
  8898. ac_status=$?
  8899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8900. (exit $ac_status); }; } &&
  8901. { ac_try='test -s conftest.$ac_objext'
  8902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8903. (eval $ac_try) 2>&5
  8904. ac_status=$?
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); }; }; then
  8907. ac_header_compiler=yes
  8908. else
  8909. echo "$as_me: failed program was:" >&5
  8910. sed 's/^/| /' conftest.$ac_ext >&5
  8911. ac_header_compiler=no
  8912. fi
  8913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8914. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8915. echo "${ECHO_T}$ac_header_compiler" >&6
  8916. # Is the header present?
  8917. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8918. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8919. cat >conftest.$ac_ext <<_ACEOF
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. #include <$ac_header>
  8926. _ACEOF
  8927. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8928. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8929. ac_status=$?
  8930. grep -v '^ *+' conftest.er1 >conftest.err
  8931. rm -f conftest.er1
  8932. cat conftest.err >&5
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. (exit $ac_status); } >/dev/null; then
  8935. if test -s conftest.err; then
  8936. ac_cpp_err=$ac_c_preproc_warn_flag
  8937. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8938. else
  8939. ac_cpp_err=
  8940. fi
  8941. else
  8942. ac_cpp_err=yes
  8943. fi
  8944. if test -z "$ac_cpp_err"; then
  8945. ac_header_preproc=yes
  8946. else
  8947. echo "$as_me: failed program was:" >&5
  8948. sed 's/^/| /' conftest.$ac_ext >&5
  8949. ac_header_preproc=no
  8950. fi
  8951. rm -f conftest.err conftest.$ac_ext
  8952. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8953. echo "${ECHO_T}$ac_header_preproc" >&6
  8954. # So? What about this header?
  8955. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8956. yes:no: )
  8957. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8958. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8959. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8960. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8961. ac_header_preproc=yes
  8962. ;;
  8963. no:yes:* )
  8964. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8965. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8966. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8967. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8968. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8969. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8970. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8971. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8972. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8973. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8974. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8975. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8976. (
  8977. cat <<\_ASBOX
  8978. ## ----------------------------------- ##
  8979. ## Report this to tujikawa@rednoah.com ##
  8980. ## ----------------------------------- ##
  8981. _ASBOX
  8982. ) |
  8983. sed "s/^/$as_me: WARNING: /" >&2
  8984. ;;
  8985. esac
  8986. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8987. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8988. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8989. echo $ECHO_N "(cached) $ECHO_C" >&6
  8990. else
  8991. eval "$as_ac_Header=\$ac_header_preproc"
  8992. fi
  8993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8994. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8995. fi
  8996. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8997. cat >>confdefs.h <<_ACEOF
  8998. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8999. _ACEOF
  9000. fi
  9001. done
  9002. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9003. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9004. if test "${ac_cv_func_select_args+set}" = set; then
  9005. echo $ECHO_N "(cached) $ECHO_C" >&6
  9006. else
  9007. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9008. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9009. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9010. cat >conftest.$ac_ext <<_ACEOF
  9011. /* confdefs.h. */
  9012. _ACEOF
  9013. cat confdefs.h >>conftest.$ac_ext
  9014. cat >>conftest.$ac_ext <<_ACEOF
  9015. /* end confdefs.h. */
  9016. $ac_includes_default
  9017. #if HAVE_SYS_SELECT_H
  9018. # include <sys/select.h>
  9019. #endif
  9020. #if HAVE_SYS_SOCKET_H
  9021. # include <sys/socket.h>
  9022. #endif
  9023. int
  9024. main ()
  9025. {
  9026. extern int select ($ac_arg1,
  9027. $ac_arg234, $ac_arg234, $ac_arg234,
  9028. $ac_arg5);
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. rm -f conftest.$ac_objext
  9034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9035. (eval $ac_compile) 2>conftest.er1
  9036. ac_status=$?
  9037. grep -v '^ *+' conftest.er1 >conftest.err
  9038. rm -f conftest.er1
  9039. cat conftest.err >&5
  9040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9041. (exit $ac_status); } &&
  9042. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9044. (eval $ac_try) 2>&5
  9045. ac_status=$?
  9046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047. (exit $ac_status); }; } &&
  9048. { ac_try='test -s conftest.$ac_objext'
  9049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9050. (eval $ac_try) 2>&5
  9051. ac_status=$?
  9052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9053. (exit $ac_status); }; }; then
  9054. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9055. else
  9056. echo "$as_me: failed program was:" >&5
  9057. sed 's/^/| /' conftest.$ac_ext >&5
  9058. fi
  9059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9060. done
  9061. done
  9062. done
  9063. # Provide a safe default value.
  9064. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9065. fi
  9066. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9067. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9068. ac_save_IFS=$IFS; IFS=','
  9069. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9070. IFS=$ac_save_IFS
  9071. shift
  9072. cat >>confdefs.h <<_ACEOF
  9073. #define SELECT_TYPE_ARG1 $1
  9074. _ACEOF
  9075. cat >>confdefs.h <<_ACEOF
  9076. #define SELECT_TYPE_ARG234 ($2)
  9077. _ACEOF
  9078. cat >>confdefs.h <<_ACEOF
  9079. #define SELECT_TYPE_ARG5 ($3)
  9080. _ACEOF
  9081. rm -f conftest*
  9082. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9083. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9084. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9085. echo $ECHO_N "(cached) $ECHO_C" >&6
  9086. else
  9087. rm -f conftest.sym conftest.file
  9088. echo >conftest.file
  9089. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9090. if test "$cross_compiling" = yes; then
  9091. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9092. else
  9093. cat >conftest.$ac_ext <<_ACEOF
  9094. /* confdefs.h. */
  9095. _ACEOF
  9096. cat confdefs.h >>conftest.$ac_ext
  9097. cat >>conftest.$ac_ext <<_ACEOF
  9098. /* end confdefs.h. */
  9099. $ac_includes_default
  9100. int
  9101. main ()
  9102. {
  9103. struct stat sbuf;
  9104. /* Linux will dereference the symlink and fail.
  9105. That is better in the sense that it means we will not
  9106. have to compile and use the lstat wrapper. */
  9107. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9108. ;
  9109. return 0;
  9110. }
  9111. _ACEOF
  9112. rm -f conftest$ac_exeext
  9113. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9114. (eval $ac_link) 2>&5
  9115. ac_status=$?
  9116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9117. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9119. (eval $ac_try) 2>&5
  9120. ac_status=$?
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); }; }; then
  9123. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9124. else
  9125. echo "$as_me: program exited with status $ac_status" >&5
  9126. echo "$as_me: failed program was:" >&5
  9127. sed 's/^/| /' conftest.$ac_ext >&5
  9128. ( exit $ac_status )
  9129. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9130. fi
  9131. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9132. fi
  9133. else
  9134. # If the `ln -s' command failed, then we probably don't even
  9135. # have an lstat function.
  9136. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9137. fi
  9138. rm -f conftest.sym conftest.file
  9139. fi
  9140. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9141. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9142. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9143. cat >>confdefs.h <<_ACEOF
  9144. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9145. _ACEOF
  9146. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9147. case $LIBOBJS in
  9148. "lstat.$ac_objext" | \
  9149. *" lstat.$ac_objext" | \
  9150. "lstat.$ac_objext "* | \
  9151. *" lstat.$ac_objext "* ) ;;
  9152. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9153. esac
  9154. fi
  9155. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9156. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9157. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9158. echo $ECHO_N "(cached) $ECHO_C" >&6
  9159. else
  9160. if test "$cross_compiling" = yes; then
  9161. ac_cv_func_stat_empty_string_bug=yes
  9162. else
  9163. cat >conftest.$ac_ext <<_ACEOF
  9164. /* confdefs.h. */
  9165. _ACEOF
  9166. cat confdefs.h >>conftest.$ac_ext
  9167. cat >>conftest.$ac_ext <<_ACEOF
  9168. /* end confdefs.h. */
  9169. $ac_includes_default
  9170. int
  9171. main ()
  9172. {
  9173. struct stat sbuf;
  9174. exit (stat ("", &sbuf) ? 1 : 0);
  9175. ;
  9176. return 0;
  9177. }
  9178. _ACEOF
  9179. rm -f conftest$ac_exeext
  9180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9181. (eval $ac_link) 2>&5
  9182. ac_status=$?
  9183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9184. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9186. (eval $ac_try) 2>&5
  9187. ac_status=$?
  9188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9189. (exit $ac_status); }; }; then
  9190. ac_cv_func_stat_empty_string_bug=yes
  9191. else
  9192. echo "$as_me: program exited with status $ac_status" >&5
  9193. echo "$as_me: failed program was:" >&5
  9194. sed 's/^/| /' conftest.$ac_ext >&5
  9195. ( exit $ac_status )
  9196. ac_cv_func_stat_empty_string_bug=no
  9197. fi
  9198. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9199. fi
  9200. fi
  9201. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9202. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9203. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9204. case $LIBOBJS in
  9205. "stat.$ac_objext" | \
  9206. *" stat.$ac_objext" | \
  9207. "stat.$ac_objext "* | \
  9208. *" stat.$ac_objext "* ) ;;
  9209. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9210. esac
  9211. cat >>confdefs.h <<_ACEOF
  9212. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9213. _ACEOF
  9214. fi
  9215. for ac_func in vprintf
  9216. do
  9217. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9218. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9219. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9220. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9221. echo $ECHO_N "(cached) $ECHO_C" >&6
  9222. else
  9223. cat >conftest.$ac_ext <<_ACEOF
  9224. /* confdefs.h. */
  9225. _ACEOF
  9226. cat confdefs.h >>conftest.$ac_ext
  9227. cat >>conftest.$ac_ext <<_ACEOF
  9228. /* end confdefs.h. */
  9229. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9230. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9231. #define $ac_func innocuous_$ac_func
  9232. /* System header to define __stub macros and hopefully few prototypes,
  9233. which can conflict with char $ac_func (); below.
  9234. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9235. <limits.h> exists even on freestanding compilers. */
  9236. #ifdef __STDC__
  9237. # include <limits.h>
  9238. #else
  9239. # include <assert.h>
  9240. #endif
  9241. #undef $ac_func
  9242. /* Override any gcc2 internal prototype to avoid an error. */
  9243. #ifdef __cplusplus
  9244. extern "C"
  9245. {
  9246. #endif
  9247. /* We use char because int might match the return type of a gcc2
  9248. builtin and then its argument prototype would still apply. */
  9249. char $ac_func ();
  9250. /* The GNU C library defines this for functions which it implements
  9251. to always fail with ENOSYS. Some functions are actually named
  9252. something starting with __ and the normal name is an alias. */
  9253. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9254. choke me
  9255. #else
  9256. char (*f) () = $ac_func;
  9257. #endif
  9258. #ifdef __cplusplus
  9259. }
  9260. #endif
  9261. int
  9262. main ()
  9263. {
  9264. return f != $ac_func;
  9265. ;
  9266. return 0;
  9267. }
  9268. _ACEOF
  9269. rm -f conftest.$ac_objext conftest$ac_exeext
  9270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9271. (eval $ac_link) 2>conftest.er1
  9272. ac_status=$?
  9273. grep -v '^ *+' conftest.er1 >conftest.err
  9274. rm -f conftest.er1
  9275. cat conftest.err >&5
  9276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); } &&
  9278. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9280. (eval $ac_try) 2>&5
  9281. ac_status=$?
  9282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9283. (exit $ac_status); }; } &&
  9284. { ac_try='test -s conftest$ac_exeext'
  9285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9286. (eval $ac_try) 2>&5
  9287. ac_status=$?
  9288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9289. (exit $ac_status); }; }; then
  9290. eval "$as_ac_var=yes"
  9291. else
  9292. echo "$as_me: failed program was:" >&5
  9293. sed 's/^/| /' conftest.$ac_ext >&5
  9294. eval "$as_ac_var=no"
  9295. fi
  9296. rm -f conftest.err conftest.$ac_objext \
  9297. conftest$ac_exeext conftest.$ac_ext
  9298. fi
  9299. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9300. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9301. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9302. cat >>confdefs.h <<_ACEOF
  9303. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9304. _ACEOF
  9305. echo "$as_me:$LINENO: checking for _doprnt" >&5
  9306. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  9307. if test "${ac_cv_func__doprnt+set}" = set; then
  9308. echo $ECHO_N "(cached) $ECHO_C" >&6
  9309. else
  9310. cat >conftest.$ac_ext <<_ACEOF
  9311. /* confdefs.h. */
  9312. _ACEOF
  9313. cat confdefs.h >>conftest.$ac_ext
  9314. cat >>conftest.$ac_ext <<_ACEOF
  9315. /* end confdefs.h. */
  9316. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  9317. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9318. #define _doprnt innocuous__doprnt
  9319. /* System header to define __stub macros and hopefully few prototypes,
  9320. which can conflict with char _doprnt (); below.
  9321. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9322. <limits.h> exists even on freestanding compilers. */
  9323. #ifdef __STDC__
  9324. # include <limits.h>
  9325. #else
  9326. # include <assert.h>
  9327. #endif
  9328. #undef _doprnt
  9329. /* Override any gcc2 internal prototype to avoid an error. */
  9330. #ifdef __cplusplus
  9331. extern "C"
  9332. {
  9333. #endif
  9334. /* We use char because int might match the return type of a gcc2
  9335. builtin and then its argument prototype would still apply. */
  9336. char _doprnt ();
  9337. /* The GNU C library defines this for functions which it implements
  9338. to always fail with ENOSYS. Some functions are actually named
  9339. something starting with __ and the normal name is an alias. */
  9340. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  9341. choke me
  9342. #else
  9343. char (*f) () = _doprnt;
  9344. #endif
  9345. #ifdef __cplusplus
  9346. }
  9347. #endif
  9348. int
  9349. main ()
  9350. {
  9351. return f != _doprnt;
  9352. ;
  9353. return 0;
  9354. }
  9355. _ACEOF
  9356. rm -f conftest.$ac_objext conftest$ac_exeext
  9357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9358. (eval $ac_link) 2>conftest.er1
  9359. ac_status=$?
  9360. grep -v '^ *+' conftest.er1 >conftest.err
  9361. rm -f conftest.er1
  9362. cat conftest.err >&5
  9363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9364. (exit $ac_status); } &&
  9365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9367. (eval $ac_try) 2>&5
  9368. ac_status=$?
  9369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9370. (exit $ac_status); }; } &&
  9371. { ac_try='test -s conftest$ac_exeext'
  9372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9373. (eval $ac_try) 2>&5
  9374. ac_status=$?
  9375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9376. (exit $ac_status); }; }; then
  9377. ac_cv_func__doprnt=yes
  9378. else
  9379. echo "$as_me: failed program was:" >&5
  9380. sed 's/^/| /' conftest.$ac_ext >&5
  9381. ac_cv_func__doprnt=no
  9382. fi
  9383. rm -f conftest.err conftest.$ac_objext \
  9384. conftest$ac_exeext conftest.$ac_ext
  9385. fi
  9386. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  9387. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  9388. if test $ac_cv_func__doprnt = yes; then
  9389. cat >>confdefs.h <<\_ACEOF
  9390. #define HAVE_DOPRNT 1
  9391. _ACEOF
  9392. fi
  9393. fi
  9394. done
  9395. for ac_func in __argz_count __argz_next __argz_stringify getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul
  9396. do
  9397. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9398. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9399. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9400. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9401. echo $ECHO_N "(cached) $ECHO_C" >&6
  9402. else
  9403. cat >conftest.$ac_ext <<_ACEOF
  9404. /* confdefs.h. */
  9405. _ACEOF
  9406. cat confdefs.h >>conftest.$ac_ext
  9407. cat >>conftest.$ac_ext <<_ACEOF
  9408. /* end confdefs.h. */
  9409. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9410. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9411. #define $ac_func innocuous_$ac_func
  9412. /* System header to define __stub macros and hopefully few prototypes,
  9413. which can conflict with char $ac_func (); below.
  9414. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9415. <limits.h> exists even on freestanding compilers. */
  9416. #ifdef __STDC__
  9417. # include <limits.h>
  9418. #else
  9419. # include <assert.h>
  9420. #endif
  9421. #undef $ac_func
  9422. /* Override any gcc2 internal prototype to avoid an error. */
  9423. #ifdef __cplusplus
  9424. extern "C"
  9425. {
  9426. #endif
  9427. /* We use char because int might match the return type of a gcc2
  9428. builtin and then its argument prototype would still apply. */
  9429. char $ac_func ();
  9430. /* The GNU C library defines this for functions which it implements
  9431. to always fail with ENOSYS. Some functions are actually named
  9432. something starting with __ and the normal name is an alias. */
  9433. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9434. choke me
  9435. #else
  9436. char (*f) () = $ac_func;
  9437. #endif
  9438. #ifdef __cplusplus
  9439. }
  9440. #endif
  9441. int
  9442. main ()
  9443. {
  9444. return f != $ac_func;
  9445. ;
  9446. return 0;
  9447. }
  9448. _ACEOF
  9449. rm -f conftest.$ac_objext conftest$ac_exeext
  9450. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9451. (eval $ac_link) 2>conftest.er1
  9452. ac_status=$?
  9453. grep -v '^ *+' conftest.er1 >conftest.err
  9454. rm -f conftest.er1
  9455. cat conftest.err >&5
  9456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9457. (exit $ac_status); } &&
  9458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9460. (eval $ac_try) 2>&5
  9461. ac_status=$?
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); }; } &&
  9464. { ac_try='test -s conftest$ac_exeext'
  9465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9466. (eval $ac_try) 2>&5
  9467. ac_status=$?
  9468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9469. (exit $ac_status); }; }; then
  9470. eval "$as_ac_var=yes"
  9471. else
  9472. echo "$as_me: failed program was:" >&5
  9473. sed 's/^/| /' conftest.$ac_ext >&5
  9474. eval "$as_ac_var=no"
  9475. fi
  9476. rm -f conftest.err conftest.$ac_objext \
  9477. conftest$ac_exeext conftest.$ac_ext
  9478. fi
  9479. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9480. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9481. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9482. cat >>confdefs.h <<_ACEOF
  9483. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9484. _ACEOF
  9485. fi
  9486. done
  9487. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  9488. cat >confcache <<\_ACEOF
  9489. # This file is a shell script that caches the results of configure
  9490. # tests run on this system so they can be shared between configure
  9491. # scripts and configure runs, see configure's option --config-cache.
  9492. # It is not useful on other systems. If it contains results you don't
  9493. # want to keep, you may remove or edit it.
  9494. #
  9495. # config.status only pays attention to the cache file if you give it
  9496. # the --recheck option to rerun configure.
  9497. #
  9498. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9499. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9500. # following values.
  9501. _ACEOF
  9502. # The following way of writing the cache mishandles newlines in values,
  9503. # but we know of no workaround that is simple, portable, and efficient.
  9504. # So, don't put newlines in cache variables' values.
  9505. # Ultrix sh set writes to stderr and can't be redirected directly,
  9506. # and sets the high bit in the cache file unless we assign to the vars.
  9507. {
  9508. (set) 2>&1 |
  9509. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9510. *ac_space=\ *)
  9511. # `set' does not quote correctly, so add quotes (double-quote
  9512. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9513. sed -n \
  9514. "s/'/'\\\\''/g;
  9515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9516. ;;
  9517. *)
  9518. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9519. sed -n \
  9520. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9521. ;;
  9522. esac;
  9523. } |
  9524. sed '
  9525. t clear
  9526. : clear
  9527. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9528. t end
  9529. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9530. : end' >>confcache
  9531. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9532. if test -w $cache_file; then
  9533. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9534. cat confcache >$cache_file
  9535. else
  9536. echo "not updating unwritable cache $cache_file"
  9537. fi
  9538. fi
  9539. rm -f confcache
  9540. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9541. # Let make expand exec_prefix.
  9542. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9543. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9544. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9545. # trailing colons and then remove the whole line if VPATH becomes empty
  9546. # (actually we leave an empty line to preserve line numbers).
  9547. if test "x$srcdir" = x.; then
  9548. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9549. s/:*\$(srcdir):*/:/;
  9550. s/:*\${srcdir}:*/:/;
  9551. s/:*@srcdir@:*/:/;
  9552. s/^\([^=]*=[ ]*\):*/\1/;
  9553. s/:*$//;
  9554. s/^[^=]*=[ ]*$//;
  9555. }'
  9556. fi
  9557. DEFS=-DHAVE_CONFIG_H
  9558. ac_libobjs=
  9559. ac_ltlibobjs=
  9560. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9561. # 1. Remove the extension, and $U if already installed.
  9562. ac_i=`echo "$ac_i" |
  9563. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9564. # 2. Add them.
  9565. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9566. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9567. done
  9568. LIBOBJS=$ac_libobjs
  9569. LTLIBOBJS=$ac_ltlibobjs
  9570. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9571. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  9572. Usually this means the macro was only invoked conditionally." >&5
  9573. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  9574. Usually this means the macro was only invoked conditionally." >&2;}
  9575. { (exit 1); exit 1; }; }
  9576. fi
  9577. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  9578. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  9579. Usually this means the macro was only invoked conditionally." >&5
  9580. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  9581. Usually this means the macro was only invoked conditionally." >&2;}
  9582. { (exit 1); exit 1; }; }
  9583. fi
  9584. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9585. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9586. Usually this means the macro was only invoked conditionally." >&5
  9587. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9588. Usually this means the macro was only invoked conditionally." >&2;}
  9589. { (exit 1); exit 1; }; }
  9590. fi
  9591. : ${CONFIG_STATUS=./config.status}
  9592. ac_clean_files_save=$ac_clean_files
  9593. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9594. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9595. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9596. cat >$CONFIG_STATUS <<_ACEOF
  9597. #! $SHELL
  9598. # Generated by $as_me.
  9599. # Run this file to recreate the current configuration.
  9600. # Compiler output produced by configure, useful for debugging
  9601. # configure, is in config.log if it exists.
  9602. debug=false
  9603. ac_cs_recheck=false
  9604. ac_cs_silent=false
  9605. SHELL=\${CONFIG_SHELL-$SHELL}
  9606. _ACEOF
  9607. cat >>$CONFIG_STATUS <<\_ACEOF
  9608. ## --------------------- ##
  9609. ## M4sh Initialization. ##
  9610. ## --------------------- ##
  9611. # Be Bourne compatible
  9612. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9613. emulate sh
  9614. NULLCMD=:
  9615. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9616. # is contrary to our usage. Disable this feature.
  9617. alias -g '${1+"$@"}'='"$@"'
  9618. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9619. set -o posix
  9620. fi
  9621. DUALCASE=1; export DUALCASE # for MKS sh
  9622. # Support unset when possible.
  9623. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9624. as_unset=unset
  9625. else
  9626. as_unset=false
  9627. fi
  9628. # Work around bugs in pre-3.0 UWIN ksh.
  9629. $as_unset ENV MAIL MAILPATH
  9630. PS1='$ '
  9631. PS2='> '
  9632. PS4='+ '
  9633. # NLS nuisances.
  9634. for as_var in \
  9635. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9636. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9637. LC_TELEPHONE LC_TIME
  9638. do
  9639. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9640. eval $as_var=C; export $as_var
  9641. else
  9642. $as_unset $as_var
  9643. fi
  9644. done
  9645. # Required to use basename.
  9646. if expr a : '\(a\)' >/dev/null 2>&1; then
  9647. as_expr=expr
  9648. else
  9649. as_expr=false
  9650. fi
  9651. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9652. as_basename=basename
  9653. else
  9654. as_basename=false
  9655. fi
  9656. # Name of the executable.
  9657. as_me=`$as_basename "$0" ||
  9658. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9659. X"$0" : 'X\(//\)$' \| \
  9660. X"$0" : 'X\(/\)$' \| \
  9661. . : '\(.\)' 2>/dev/null ||
  9662. echo X/"$0" |
  9663. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9664. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9665. /^X\/\(\/\).*/{ s//\1/; q; }
  9666. s/.*/./; q'`
  9667. # PATH needs CR, and LINENO needs CR and PATH.
  9668. # Avoid depending upon Character Ranges.
  9669. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9670. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9671. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9672. as_cr_digits='0123456789'
  9673. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9674. # The user is always right.
  9675. if test "${PATH_SEPARATOR+set}" != set; then
  9676. echo "#! /bin/sh" >conf$$.sh
  9677. echo "exit 0" >>conf$$.sh
  9678. chmod +x conf$$.sh
  9679. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9680. PATH_SEPARATOR=';'
  9681. else
  9682. PATH_SEPARATOR=:
  9683. fi
  9684. rm -f conf$$.sh
  9685. fi
  9686. as_lineno_1=$LINENO
  9687. as_lineno_2=$LINENO
  9688. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9689. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9690. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9691. # Find who we are. Look in the path if we contain no path at all
  9692. # relative or not.
  9693. case $0 in
  9694. *[\\/]* ) as_myself=$0 ;;
  9695. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9696. for as_dir in $PATH
  9697. do
  9698. IFS=$as_save_IFS
  9699. test -z "$as_dir" && as_dir=.
  9700. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9701. done
  9702. ;;
  9703. esac
  9704. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9705. # in which case we are not to be found in the path.
  9706. if test "x$as_myself" = x; then
  9707. as_myself=$0
  9708. fi
  9709. if test ! -f "$as_myself"; then
  9710. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9711. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9712. { (exit 1); exit 1; }; }
  9713. fi
  9714. case $CONFIG_SHELL in
  9715. '')
  9716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9717. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9718. do
  9719. IFS=$as_save_IFS
  9720. test -z "$as_dir" && as_dir=.
  9721. for as_base in sh bash ksh sh5; do
  9722. case $as_dir in
  9723. /*)
  9724. if ("$as_dir/$as_base" -c '
  9725. as_lineno_1=$LINENO
  9726. as_lineno_2=$LINENO
  9727. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9728. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9729. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9730. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9731. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9732. CONFIG_SHELL=$as_dir/$as_base
  9733. export CONFIG_SHELL
  9734. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9735. fi;;
  9736. esac
  9737. done
  9738. done
  9739. ;;
  9740. esac
  9741. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9742. # uniformly replaced by the line number. The first 'sed' inserts a
  9743. # line-number line before each line; the second 'sed' does the real
  9744. # work. The second script uses 'N' to pair each line-number line
  9745. # with the numbered line, and appends trailing '-' during
  9746. # substitution so that $LINENO is not a special case at line end.
  9747. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9748. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9749. sed '=' <$as_myself |
  9750. sed '
  9751. N
  9752. s,$,-,
  9753. : loop
  9754. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9755. t loop
  9756. s,-$,,
  9757. s,^['$as_cr_digits']*\n,,
  9758. ' >$as_me.lineno &&
  9759. chmod +x $as_me.lineno ||
  9760. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9761. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9762. { (exit 1); exit 1; }; }
  9763. # Don't try to exec as it changes $[0], causing all sort of problems
  9764. # (the dirname of $[0] is not the place where we might find the
  9765. # original and so on. Autoconf is especially sensible to this).
  9766. . ./$as_me.lineno
  9767. # Exit status is that of the last command.
  9768. exit
  9769. }
  9770. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9771. *c*,-n*) ECHO_N= ECHO_C='
  9772. ' ECHO_T=' ' ;;
  9773. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9774. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9775. esac
  9776. if expr a : '\(a\)' >/dev/null 2>&1; then
  9777. as_expr=expr
  9778. else
  9779. as_expr=false
  9780. fi
  9781. rm -f conf$$ conf$$.exe conf$$.file
  9782. echo >conf$$.file
  9783. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9784. # We could just check for DJGPP; but this test a) works b) is more generic
  9785. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9786. if test -f conf$$.exe; then
  9787. # Don't use ln at all; we don't have any links
  9788. as_ln_s='cp -p'
  9789. else
  9790. as_ln_s='ln -s'
  9791. fi
  9792. elif ln conf$$.file conf$$ 2>/dev/null; then
  9793. as_ln_s=ln
  9794. else
  9795. as_ln_s='cp -p'
  9796. fi
  9797. rm -f conf$$ conf$$.exe conf$$.file
  9798. if mkdir -p . 2>/dev/null; then
  9799. as_mkdir_p=:
  9800. else
  9801. test -d ./-p && rmdir ./-p
  9802. as_mkdir_p=false
  9803. fi
  9804. as_executable_p="test -f"
  9805. # Sed expression to map a string onto a valid CPP name.
  9806. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9807. # Sed expression to map a string onto a valid variable name.
  9808. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9809. # IFS
  9810. # We need space, tab and new line, in precisely that order.
  9811. as_nl='
  9812. '
  9813. IFS=" $as_nl"
  9814. # CDPATH.
  9815. $as_unset CDPATH
  9816. exec 6>&1
  9817. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9818. # report actual input values of CONFIG_FILES etc. instead of their
  9819. # values after options handling. Logging --version etc. is OK.
  9820. exec 5>>config.log
  9821. {
  9822. echo
  9823. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9824. ## Running $as_me. ##
  9825. _ASBOX
  9826. } >&5
  9827. cat >&5 <<_CSEOF
  9828. This file was extended by aria2c $as_me 0.3.0, which was
  9829. generated by GNU Autoconf 2.59. Invocation command line was
  9830. CONFIG_FILES = $CONFIG_FILES
  9831. CONFIG_HEADERS = $CONFIG_HEADERS
  9832. CONFIG_LINKS = $CONFIG_LINKS
  9833. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9834. $ $0 $@
  9835. _CSEOF
  9836. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9837. echo >&5
  9838. _ACEOF
  9839. # Files that config.status was made for.
  9840. if test -n "$ac_config_files"; then
  9841. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9842. fi
  9843. if test -n "$ac_config_headers"; then
  9844. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9845. fi
  9846. if test -n "$ac_config_links"; then
  9847. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9848. fi
  9849. if test -n "$ac_config_commands"; then
  9850. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9851. fi
  9852. cat >>$CONFIG_STATUS <<\_ACEOF
  9853. ac_cs_usage="\
  9854. \`$as_me' instantiates files from templates according to the
  9855. current configuration.
  9856. Usage: $0 [OPTIONS] [FILE]...
  9857. -h, --help print this help, then exit
  9858. -V, --version print version number, then exit
  9859. -q, --quiet do not print progress messages
  9860. -d, --debug don't remove temporary files
  9861. --recheck update $as_me by reconfiguring in the same conditions
  9862. --file=FILE[:TEMPLATE]
  9863. instantiate the configuration file FILE
  9864. --header=FILE[:TEMPLATE]
  9865. instantiate the configuration header FILE
  9866. Configuration files:
  9867. $config_files
  9868. Configuration headers:
  9869. $config_headers
  9870. Configuration commands:
  9871. $config_commands
  9872. Report bugs to <bug-autoconf@gnu.org>."
  9873. _ACEOF
  9874. cat >>$CONFIG_STATUS <<_ACEOF
  9875. ac_cs_version="\\
  9876. aria2c config.status 0.3.0
  9877. configured by $0, generated by GNU Autoconf 2.59,
  9878. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9879. Copyright (C) 2003 Free Software Foundation, Inc.
  9880. This config.status script is free software; the Free Software Foundation
  9881. gives unlimited permission to copy, distribute and modify it."
  9882. srcdir=$srcdir
  9883. INSTALL="$INSTALL"
  9884. _ACEOF
  9885. cat >>$CONFIG_STATUS <<\_ACEOF
  9886. # If no file are specified by the user, then we need to provide default
  9887. # value. By we need to know if files were specified by the user.
  9888. ac_need_defaults=:
  9889. while test $# != 0
  9890. do
  9891. case $1 in
  9892. --*=*)
  9893. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9894. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9895. ac_shift=:
  9896. ;;
  9897. -*)
  9898. ac_option=$1
  9899. ac_optarg=$2
  9900. ac_shift=shift
  9901. ;;
  9902. *) # This is not an option, so the user has probably given explicit
  9903. # arguments.
  9904. ac_option=$1
  9905. ac_need_defaults=false;;
  9906. esac
  9907. case $ac_option in
  9908. # Handling of the options.
  9909. _ACEOF
  9910. cat >>$CONFIG_STATUS <<\_ACEOF
  9911. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9912. ac_cs_recheck=: ;;
  9913. --version | --vers* | -V )
  9914. echo "$ac_cs_version"; exit 0 ;;
  9915. --he | --h)
  9916. # Conflict between --help and --header
  9917. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9918. Try \`$0 --help' for more information." >&5
  9919. echo "$as_me: error: ambiguous option: $1
  9920. Try \`$0 --help' for more information." >&2;}
  9921. { (exit 1); exit 1; }; };;
  9922. --help | --hel | -h )
  9923. echo "$ac_cs_usage"; exit 0 ;;
  9924. --debug | --d* | -d )
  9925. debug=: ;;
  9926. --file | --fil | --fi | --f )
  9927. $ac_shift
  9928. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9929. ac_need_defaults=false;;
  9930. --header | --heade | --head | --hea )
  9931. $ac_shift
  9932. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9933. ac_need_defaults=false;;
  9934. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9935. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9936. ac_cs_silent=: ;;
  9937. # This is an error.
  9938. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9939. Try \`$0 --help' for more information." >&5
  9940. echo "$as_me: error: unrecognized option: $1
  9941. Try \`$0 --help' for more information." >&2;}
  9942. { (exit 1); exit 1; }; } ;;
  9943. *) ac_config_targets="$ac_config_targets $1" ;;
  9944. esac
  9945. shift
  9946. done
  9947. ac_configure_extra_args=
  9948. if $ac_cs_silent; then
  9949. exec 6>/dev/null
  9950. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9951. fi
  9952. _ACEOF
  9953. cat >>$CONFIG_STATUS <<_ACEOF
  9954. if \$ac_cs_recheck; then
  9955. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9956. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9957. fi
  9958. _ACEOF
  9959. cat >>$CONFIG_STATUS <<_ACEOF
  9960. #
  9961. # INIT-COMMANDS section.
  9962. #
  9963. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9964. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9965. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  9966. # from automake.
  9967. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9968. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9969. LINGUAS="${LINGUAS-%UNSET%}"
  9970. _ACEOF
  9971. cat >>$CONFIG_STATUS <<\_ACEOF
  9972. for ac_config_target in $ac_config_targets
  9973. do
  9974. case "$ac_config_target" in
  9975. # Handling of arguments.
  9976. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9977. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9978. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  9979. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  9980. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  9981. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  9982. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9983. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9984. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9985. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9986. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9987. { (exit 1); exit 1; }; };;
  9988. esac
  9989. done
  9990. # If the user did not use the arguments to specify the items to instantiate,
  9991. # then the envvar interface is used. Set only those that are not.
  9992. # We use the long form for the default assignment because of an extremely
  9993. # bizarre bug on SunOS 4.1.3.
  9994. if $ac_need_defaults; then
  9995. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9996. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9997. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9998. fi
  9999. # Have a temporary directory for convenience. Make it in the build tree
  10000. # simply because there is no reason to put it here, and in addition,
  10001. # creating and moving files from /tmp can sometimes cause problems.
  10002. # Create a temporary directory, and hook for its removal unless debugging.
  10003. $debug ||
  10004. {
  10005. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10006. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10007. }
  10008. # Create a (secure) tmp directory for tmp files.
  10009. {
  10010. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10011. test -n "$tmp" && test -d "$tmp"
  10012. } ||
  10013. {
  10014. tmp=./confstat$$-$RANDOM
  10015. (umask 077 && mkdir $tmp)
  10016. } ||
  10017. {
  10018. echo "$me: cannot create a temporary directory in ." >&2
  10019. { (exit 1); exit 1; }
  10020. }
  10021. _ACEOF
  10022. cat >>$CONFIG_STATUS <<_ACEOF
  10023. #
  10024. # CONFIG_FILES section.
  10025. #
  10026. # No need to generate the scripts if there are no CONFIG_FILES.
  10027. # This happens for instance when ./config.status config.h
  10028. if test -n "\$CONFIG_FILES"; then
  10029. # Protect against being on the right side of a sed subst in config.status.
  10030. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10031. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10032. s,@SHELL@,$SHELL,;t t
  10033. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10034. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10035. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10036. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10037. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10038. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10039. s,@exec_prefix@,$exec_prefix,;t t
  10040. s,@prefix@,$prefix,;t t
  10041. s,@program_transform_name@,$program_transform_name,;t t
  10042. s,@bindir@,$bindir,;t t
  10043. s,@sbindir@,$sbindir,;t t
  10044. s,@libexecdir@,$libexecdir,;t t
  10045. s,@datadir@,$datadir,;t t
  10046. s,@sysconfdir@,$sysconfdir,;t t
  10047. s,@sharedstatedir@,$sharedstatedir,;t t
  10048. s,@localstatedir@,$localstatedir,;t t
  10049. s,@libdir@,$libdir,;t t
  10050. s,@includedir@,$includedir,;t t
  10051. s,@oldincludedir@,$oldincludedir,;t t
  10052. s,@infodir@,$infodir,;t t
  10053. s,@mandir@,$mandir,;t t
  10054. s,@build_alias@,$build_alias,;t t
  10055. s,@host_alias@,$host_alias,;t t
  10056. s,@target_alias@,$target_alias,;t t
  10057. s,@DEFS@,$DEFS,;t t
  10058. s,@ECHO_C@,$ECHO_C,;t t
  10059. s,@ECHO_N@,$ECHO_N,;t t
  10060. s,@ECHO_T@,$ECHO_T,;t t
  10061. s,@LIBS@,$LIBS,;t t
  10062. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10063. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10064. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10065. s,@CYGPATH_W@,$CYGPATH_W,;t t
  10066. s,@PACKAGE@,$PACKAGE,;t t
  10067. s,@VERSION@,$VERSION,;t t
  10068. s,@ACLOCAL@,$ACLOCAL,;t t
  10069. s,@AUTOCONF@,$AUTOCONF,;t t
  10070. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10071. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10072. s,@MAKEINFO@,$MAKEINFO,;t t
  10073. s,@install_sh@,$install_sh,;t t
  10074. s,@STRIP@,$STRIP,;t t
  10075. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10076. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  10077. s,@mkdir_p@,$mkdir_p,;t t
  10078. s,@AWK@,$AWK,;t t
  10079. s,@SET_MAKE@,$SET_MAKE,;t t
  10080. s,@am__leading_dot@,$am__leading_dot,;t t
  10081. s,@AMTAR@,$AMTAR,;t t
  10082. s,@am__tar@,$am__tar,;t t
  10083. s,@am__untar@,$am__untar,;t t
  10084. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  10085. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  10086. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  10087. s,@localedir@,$localedir,;t t
  10088. s,@CXX@,$CXX,;t t
  10089. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10090. s,@LDFLAGS@,$LDFLAGS,;t t
  10091. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10092. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10093. s,@EXEEXT@,$EXEEXT,;t t
  10094. s,@OBJEXT@,$OBJEXT,;t t
  10095. s,@DEPDIR@,$DEPDIR,;t t
  10096. s,@am__include@,$am__include,;t t
  10097. s,@am__quote@,$am__quote,;t t
  10098. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  10099. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  10100. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  10101. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  10102. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  10103. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  10104. s,@CC@,$CC,;t t
  10105. s,@CFLAGS@,$CFLAGS,;t t
  10106. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10107. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10108. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  10109. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  10110. s,@RANLIB@,$RANLIB,;t t
  10111. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10112. s,@YACC@,$YACC,;t t
  10113. s,@ALLOCA@,$ALLOCA,;t t
  10114. s,@CPP@,$CPP,;t t
  10115. s,@EGREP@,$EGREP,;t t
  10116. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  10117. s,@USE_NLS@,$USE_NLS,;t t
  10118. s,@MSGFMT@,$MSGFMT,;t t
  10119. s,@GMSGFMT@,$GMSGFMT,;t t
  10120. s,@XGETTEXT@,$XGETTEXT,;t t
  10121. s,@MSGMERGE@,$MSGMERGE,;t t
  10122. s,@build@,$build,;t t
  10123. s,@build_cpu@,$build_cpu,;t t
  10124. s,@build_vendor@,$build_vendor,;t t
  10125. s,@build_os@,$build_os,;t t
  10126. s,@host@,$host,;t t
  10127. s,@host_cpu@,$host_cpu,;t t
  10128. s,@host_vendor@,$host_vendor,;t t
  10129. s,@host_os@,$host_os,;t t
  10130. s,@GLIBC21@,$GLIBC21,;t t
  10131. s,@LIBICONV@,$LIBICONV,;t t
  10132. s,@LTLIBICONV@,$LTLIBICONV,;t t
  10133. s,@INTLBISON@,$INTLBISON,;t t
  10134. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  10135. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  10136. s,@CATOBJEXT@,$CATOBJEXT,;t t
  10137. s,@DATADIRNAME@,$DATADIRNAME,;t t
  10138. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  10139. s,@GENCAT@,$GENCAT,;t t
  10140. s,@INTLOBJS@,$INTLOBJS,;t t
  10141. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  10142. s,@INTLLIBS@,$INTLLIBS,;t t
  10143. s,@LIBINTL@,$LIBINTL,;t t
  10144. s,@LTLIBINTL@,$LTLIBINTL,;t t
  10145. s,@POSUB@,$POSUB,;t t
  10146. s,@LIBOBJS@,$LIBOBJS,;t t
  10147. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10148. CEOF
  10149. _ACEOF
  10150. cat >>$CONFIG_STATUS <<\_ACEOF
  10151. # Split the substitutions into bite-sized pieces for seds with
  10152. # small command number limits, like on Digital OSF/1 and HP-UX.
  10153. ac_max_sed_lines=48
  10154. ac_sed_frag=1 # Number of current file.
  10155. ac_beg=1 # First line for current file.
  10156. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10157. ac_more_lines=:
  10158. ac_sed_cmds=
  10159. while $ac_more_lines; do
  10160. if test $ac_beg -gt 1; then
  10161. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10162. else
  10163. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10164. fi
  10165. if test ! -s $tmp/subs.frag; then
  10166. ac_more_lines=false
  10167. else
  10168. # The purpose of the label and of the branching condition is to
  10169. # speed up the sed processing (if there are no `@' at all, there
  10170. # is no need to browse any of the substitutions).
  10171. # These are the two extra sed commands mentioned above.
  10172. (echo ':t
  10173. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10174. if test -z "$ac_sed_cmds"; then
  10175. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10176. else
  10177. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10178. fi
  10179. ac_sed_frag=`expr $ac_sed_frag + 1`
  10180. ac_beg=$ac_end
  10181. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10182. fi
  10183. done
  10184. if test -z "$ac_sed_cmds"; then
  10185. ac_sed_cmds=cat
  10186. fi
  10187. fi # test -n "$CONFIG_FILES"
  10188. _ACEOF
  10189. cat >>$CONFIG_STATUS <<\_ACEOF
  10190. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10191. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10192. case $ac_file in
  10193. - | *:- | *:-:* ) # input from stdin
  10194. cat >$tmp/stdin
  10195. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10196. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10197. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10198. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10199. * ) ac_file_in=$ac_file.in ;;
  10200. esac
  10201. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10202. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10203. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10204. X"$ac_file" : 'X\(//\)[^/]' \| \
  10205. X"$ac_file" : 'X\(//\)$' \| \
  10206. X"$ac_file" : 'X\(/\)' \| \
  10207. . : '\(.\)' 2>/dev/null ||
  10208. echo X"$ac_file" |
  10209. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10210. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10211. /^X\(\/\/\)$/{ s//\1/; q; }
  10212. /^X\(\/\).*/{ s//\1/; q; }
  10213. s/.*/./; q'`
  10214. { if $as_mkdir_p; then
  10215. mkdir -p "$ac_dir"
  10216. else
  10217. as_dir="$ac_dir"
  10218. as_dirs=
  10219. while test ! -d "$as_dir"; do
  10220. as_dirs="$as_dir $as_dirs"
  10221. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10222. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10223. X"$as_dir" : 'X\(//\)[^/]' \| \
  10224. X"$as_dir" : 'X\(//\)$' \| \
  10225. X"$as_dir" : 'X\(/\)' \| \
  10226. . : '\(.\)' 2>/dev/null ||
  10227. echo X"$as_dir" |
  10228. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10229. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10230. /^X\(\/\/\)$/{ s//\1/; q; }
  10231. /^X\(\/\).*/{ s//\1/; q; }
  10232. s/.*/./; q'`
  10233. done
  10234. test ! -n "$as_dirs" || mkdir $as_dirs
  10235. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10236. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10237. { (exit 1); exit 1; }; }; }
  10238. ac_builddir=.
  10239. if test "$ac_dir" != .; then
  10240. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10241. # A "../" for each directory in $ac_dir_suffix.
  10242. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10243. else
  10244. ac_dir_suffix= ac_top_builddir=
  10245. fi
  10246. case $srcdir in
  10247. .) # No --srcdir option. We are building in place.
  10248. ac_srcdir=.
  10249. if test -z "$ac_top_builddir"; then
  10250. ac_top_srcdir=.
  10251. else
  10252. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10253. fi ;;
  10254. [\\/]* | ?:[\\/]* ) # Absolute path.
  10255. ac_srcdir=$srcdir$ac_dir_suffix;
  10256. ac_top_srcdir=$srcdir ;;
  10257. *) # Relative path.
  10258. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10259. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10260. esac
  10261. # Do not use `cd foo && pwd` to compute absolute paths, because
  10262. # the directories may not exist.
  10263. case `pwd` in
  10264. .) ac_abs_builddir="$ac_dir";;
  10265. *)
  10266. case "$ac_dir" in
  10267. .) ac_abs_builddir=`pwd`;;
  10268. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10269. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10270. esac;;
  10271. esac
  10272. case $ac_abs_builddir in
  10273. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10274. *)
  10275. case ${ac_top_builddir}. in
  10276. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10277. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10278. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10279. esac;;
  10280. esac
  10281. case $ac_abs_builddir in
  10282. .) ac_abs_srcdir=$ac_srcdir;;
  10283. *)
  10284. case $ac_srcdir in
  10285. .) ac_abs_srcdir=$ac_abs_builddir;;
  10286. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10287. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10288. esac;;
  10289. esac
  10290. case $ac_abs_builddir in
  10291. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10292. *)
  10293. case $ac_top_srcdir in
  10294. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10295. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10296. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10297. esac;;
  10298. esac
  10299. case $INSTALL in
  10300. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10301. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10302. esac
  10303. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10304. # use $as_me), people would be surprised to read:
  10305. # /* config.h. Generated by config.status. */
  10306. if test x"$ac_file" = x-; then
  10307. configure_input=
  10308. else
  10309. configure_input="$ac_file. "
  10310. fi
  10311. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10312. sed 's,.*/,,'` by configure."
  10313. # First look for the input files in the build tree, otherwise in the
  10314. # src tree.
  10315. ac_file_inputs=`IFS=:
  10316. for f in $ac_file_in; do
  10317. case $f in
  10318. -) echo $tmp/stdin ;;
  10319. [\\/$]*)
  10320. # Absolute (can't be DOS-style, as IFS=:)
  10321. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10322. echo "$as_me: error: cannot find input file: $f" >&2;}
  10323. { (exit 1); exit 1; }; }
  10324. echo "$f";;
  10325. *) # Relative
  10326. if test -f "$f"; then
  10327. # Build tree
  10328. echo "$f"
  10329. elif test -f "$srcdir/$f"; then
  10330. # Source tree
  10331. echo "$srcdir/$f"
  10332. else
  10333. # /dev/null tree
  10334. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10335. echo "$as_me: error: cannot find input file: $f" >&2;}
  10336. { (exit 1); exit 1; }; }
  10337. fi;;
  10338. esac
  10339. done` || { (exit 1); exit 1; }
  10340. if test x"$ac_file" != x-; then
  10341. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10342. echo "$as_me: creating $ac_file" >&6;}
  10343. rm -f "$ac_file"
  10344. fi
  10345. _ACEOF
  10346. cat >>$CONFIG_STATUS <<_ACEOF
  10347. sed "$ac_vpsub
  10348. $extrasub
  10349. _ACEOF
  10350. cat >>$CONFIG_STATUS <<\_ACEOF
  10351. :t
  10352. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10353. s,@configure_input@,$configure_input,;t t
  10354. s,@srcdir@,$ac_srcdir,;t t
  10355. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10356. s,@top_srcdir@,$ac_top_srcdir,;t t
  10357. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10358. s,@builddir@,$ac_builddir,;t t
  10359. s,@abs_builddir@,$ac_abs_builddir,;t t
  10360. s,@top_builddir@,$ac_top_builddir,;t t
  10361. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10362. s,@INSTALL@,$ac_INSTALL,;t t
  10363. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10364. rm -f $tmp/stdin
  10365. if test x"$ac_file" != x-; then
  10366. mv $tmp/out $ac_file
  10367. else
  10368. cat $tmp/out
  10369. rm -f $tmp/out
  10370. fi
  10371. done
  10372. _ACEOF
  10373. cat >>$CONFIG_STATUS <<\_ACEOF
  10374. #
  10375. # CONFIG_HEADER section.
  10376. #
  10377. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10378. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10379. #
  10380. # ac_d sets the value in "#define NAME VALUE" lines.
  10381. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10382. ac_dB='[ ].*$,\1#\2'
  10383. ac_dC=' '
  10384. ac_dD=',;t'
  10385. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10386. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10387. ac_uB='$,\1#\2define\3'
  10388. ac_uC=' '
  10389. ac_uD=',;t'
  10390. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10391. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10392. case $ac_file in
  10393. - | *:- | *:-:* ) # input from stdin
  10394. cat >$tmp/stdin
  10395. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10396. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10397. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10398. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10399. * ) ac_file_in=$ac_file.in ;;
  10400. esac
  10401. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10402. echo "$as_me: creating $ac_file" >&6;}
  10403. # First look for the input files in the build tree, otherwise in the
  10404. # src tree.
  10405. ac_file_inputs=`IFS=:
  10406. for f in $ac_file_in; do
  10407. case $f in
  10408. -) echo $tmp/stdin ;;
  10409. [\\/$]*)
  10410. # Absolute (can't be DOS-style, as IFS=:)
  10411. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10412. echo "$as_me: error: cannot find input file: $f" >&2;}
  10413. { (exit 1); exit 1; }; }
  10414. # Do quote $f, to prevent DOS paths from being IFS'd.
  10415. echo "$f";;
  10416. *) # Relative
  10417. if test -f "$f"; then
  10418. # Build tree
  10419. echo "$f"
  10420. elif test -f "$srcdir/$f"; then
  10421. # Source tree
  10422. echo "$srcdir/$f"
  10423. else
  10424. # /dev/null tree
  10425. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10426. echo "$as_me: error: cannot find input file: $f" >&2;}
  10427. { (exit 1); exit 1; }; }
  10428. fi;;
  10429. esac
  10430. done` || { (exit 1); exit 1; }
  10431. # Remove the trailing spaces.
  10432. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10433. _ACEOF
  10434. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10435. # `conftest.undefs', that substitutes the proper values into
  10436. # config.h.in to produce config.h. The first handles `#define'
  10437. # templates, and the second `#undef' templates.
  10438. # And first: Protect against being on the right side of a sed subst in
  10439. # config.status. Protect against being in an unquoted here document
  10440. # in config.status.
  10441. rm -f conftest.defines conftest.undefs
  10442. # Using a here document instead of a string reduces the quoting nightmare.
  10443. # Putting comments in sed scripts is not portable.
  10444. #
  10445. # `end' is used to avoid that the second main sed command (meant for
  10446. # 0-ary CPP macros) applies to n-ary macro definitions.
  10447. # See the Autoconf documentation for `clear'.
  10448. cat >confdef2sed.sed <<\_ACEOF
  10449. s/[\\&,]/\\&/g
  10450. s,[\\$`],\\&,g
  10451. t clear
  10452. : clear
  10453. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10454. t end
  10455. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10456. : end
  10457. _ACEOF
  10458. # If some macros were called several times there might be several times
  10459. # the same #defines, which is useless. Nevertheless, we may not want to
  10460. # sort them, since we want the *last* AC-DEFINE to be honored.
  10461. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10462. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10463. rm -f confdef2sed.sed
  10464. # This sed command replaces #undef with comments. This is necessary, for
  10465. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10466. # on some systems where configure will not decide to define it.
  10467. cat >>conftest.undefs <<\_ACEOF
  10468. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10469. _ACEOF
  10470. # Break up conftest.defines because some shells have a limit on the size
  10471. # of here documents, and old seds have small limits too (100 cmds).
  10472. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10473. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10474. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10475. echo ' :' >>$CONFIG_STATUS
  10476. rm -f conftest.tail
  10477. while grep . conftest.defines >/dev/null
  10478. do
  10479. # Write a limited-size here document to $tmp/defines.sed.
  10480. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10481. # Speed up: don't consider the non `#define' lines.
  10482. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10483. # Work around the forget-to-reset-the-flag bug.
  10484. echo 't clr' >>$CONFIG_STATUS
  10485. echo ': clr' >>$CONFIG_STATUS
  10486. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10487. echo 'CEOF
  10488. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10489. rm -f $tmp/in
  10490. mv $tmp/out $tmp/in
  10491. ' >>$CONFIG_STATUS
  10492. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10493. rm -f conftest.defines
  10494. mv conftest.tail conftest.defines
  10495. done
  10496. rm -f conftest.defines
  10497. echo ' fi # grep' >>$CONFIG_STATUS
  10498. echo >>$CONFIG_STATUS
  10499. # Break up conftest.undefs because some shells have a limit on the size
  10500. # of here documents, and old seds have small limits too (100 cmds).
  10501. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10502. rm -f conftest.tail
  10503. while grep . conftest.undefs >/dev/null
  10504. do
  10505. # Write a limited-size here document to $tmp/undefs.sed.
  10506. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10507. # Speed up: don't consider the non `#undef'
  10508. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10509. # Work around the forget-to-reset-the-flag bug.
  10510. echo 't clr' >>$CONFIG_STATUS
  10511. echo ': clr' >>$CONFIG_STATUS
  10512. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10513. echo 'CEOF
  10514. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10515. rm -f $tmp/in
  10516. mv $tmp/out $tmp/in
  10517. ' >>$CONFIG_STATUS
  10518. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10519. rm -f conftest.undefs
  10520. mv conftest.tail conftest.undefs
  10521. done
  10522. rm -f conftest.undefs
  10523. cat >>$CONFIG_STATUS <<\_ACEOF
  10524. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10525. # use $as_me), people would be surprised to read:
  10526. # /* config.h. Generated by config.status. */
  10527. if test x"$ac_file" = x-; then
  10528. echo "/* Generated by configure. */" >$tmp/config.h
  10529. else
  10530. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10531. fi
  10532. cat $tmp/in >>$tmp/config.h
  10533. rm -f $tmp/in
  10534. if test x"$ac_file" != x-; then
  10535. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10536. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10537. echo "$as_me: $ac_file is unchanged" >&6;}
  10538. else
  10539. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10540. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10541. X"$ac_file" : 'X\(//\)[^/]' \| \
  10542. X"$ac_file" : 'X\(//\)$' \| \
  10543. X"$ac_file" : 'X\(/\)' \| \
  10544. . : '\(.\)' 2>/dev/null ||
  10545. echo X"$ac_file" |
  10546. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10547. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10548. /^X\(\/\/\)$/{ s//\1/; q; }
  10549. /^X\(\/\).*/{ s//\1/; q; }
  10550. s/.*/./; q'`
  10551. { if $as_mkdir_p; then
  10552. mkdir -p "$ac_dir"
  10553. else
  10554. as_dir="$ac_dir"
  10555. as_dirs=
  10556. while test ! -d "$as_dir"; do
  10557. as_dirs="$as_dir $as_dirs"
  10558. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10559. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10560. X"$as_dir" : 'X\(//\)[^/]' \| \
  10561. X"$as_dir" : 'X\(//\)$' \| \
  10562. X"$as_dir" : 'X\(/\)' \| \
  10563. . : '\(.\)' 2>/dev/null ||
  10564. echo X"$as_dir" |
  10565. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10566. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10567. /^X\(\/\/\)$/{ s//\1/; q; }
  10568. /^X\(\/\).*/{ s//\1/; q; }
  10569. s/.*/./; q'`
  10570. done
  10571. test ! -n "$as_dirs" || mkdir $as_dirs
  10572. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10573. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10574. { (exit 1); exit 1; }; }; }
  10575. rm -f $ac_file
  10576. mv $tmp/config.h $ac_file
  10577. fi
  10578. else
  10579. cat $tmp/config.h
  10580. rm -f $tmp/config.h
  10581. fi
  10582. # Compute $ac_file's index in $config_headers.
  10583. _am_stamp_count=1
  10584. for _am_header in $config_headers :; do
  10585. case $_am_header in
  10586. $ac_file | $ac_file:* )
  10587. break ;;
  10588. * )
  10589. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10590. esac
  10591. done
  10592. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  10593. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10594. X$ac_file : 'X\(//\)[^/]' \| \
  10595. X$ac_file : 'X\(//\)$' \| \
  10596. X$ac_file : 'X\(/\)' \| \
  10597. . : '\(.\)' 2>/dev/null ||
  10598. echo X$ac_file |
  10599. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10600. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10601. /^X\(\/\/\)$/{ s//\1/; q; }
  10602. /^X\(\/\).*/{ s//\1/; q; }
  10603. s/.*/./; q'`/stamp-h$_am_stamp_count
  10604. done
  10605. _ACEOF
  10606. cat >>$CONFIG_STATUS <<\_ACEOF
  10607. #
  10608. # CONFIG_COMMANDS section.
  10609. #
  10610. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  10611. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  10612. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10613. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  10614. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10615. X"$ac_dest" : 'X\(//\)[^/]' \| \
  10616. X"$ac_dest" : 'X\(//\)$' \| \
  10617. X"$ac_dest" : 'X\(/\)' \| \
  10618. . : '\(.\)' 2>/dev/null ||
  10619. echo X"$ac_dest" |
  10620. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10621. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10622. /^X\(\/\/\)$/{ s//\1/; q; }
  10623. /^X\(\/\).*/{ s//\1/; q; }
  10624. s/.*/./; q'`
  10625. { if $as_mkdir_p; then
  10626. mkdir -p "$ac_dir"
  10627. else
  10628. as_dir="$ac_dir"
  10629. as_dirs=
  10630. while test ! -d "$as_dir"; do
  10631. as_dirs="$as_dir $as_dirs"
  10632. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10633. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10634. X"$as_dir" : 'X\(//\)[^/]' \| \
  10635. X"$as_dir" : 'X\(//\)$' \| \
  10636. X"$as_dir" : 'X\(/\)' \| \
  10637. . : '\(.\)' 2>/dev/null ||
  10638. echo X"$as_dir" |
  10639. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10640. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10641. /^X\(\/\/\)$/{ s//\1/; q; }
  10642. /^X\(\/\).*/{ s//\1/; q; }
  10643. s/.*/./; q'`
  10644. done
  10645. test ! -n "$as_dirs" || mkdir $as_dirs
  10646. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10647. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10648. { (exit 1); exit 1; }; }; }
  10649. ac_builddir=.
  10650. if test "$ac_dir" != .; then
  10651. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10652. # A "../" for each directory in $ac_dir_suffix.
  10653. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10654. else
  10655. ac_dir_suffix= ac_top_builddir=
  10656. fi
  10657. case $srcdir in
  10658. .) # No --srcdir option. We are building in place.
  10659. ac_srcdir=.
  10660. if test -z "$ac_top_builddir"; then
  10661. ac_top_srcdir=.
  10662. else
  10663. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10664. fi ;;
  10665. [\\/]* | ?:[\\/]* ) # Absolute path.
  10666. ac_srcdir=$srcdir$ac_dir_suffix;
  10667. ac_top_srcdir=$srcdir ;;
  10668. *) # Relative path.
  10669. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10670. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10671. esac
  10672. # Do not use `cd foo && pwd` to compute absolute paths, because
  10673. # the directories may not exist.
  10674. case `pwd` in
  10675. .) ac_abs_builddir="$ac_dir";;
  10676. *)
  10677. case "$ac_dir" in
  10678. .) ac_abs_builddir=`pwd`;;
  10679. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10680. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10681. esac;;
  10682. esac
  10683. case $ac_abs_builddir in
  10684. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10685. *)
  10686. case ${ac_top_builddir}. in
  10687. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10688. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10689. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10690. esac;;
  10691. esac
  10692. case $ac_abs_builddir in
  10693. .) ac_abs_srcdir=$ac_srcdir;;
  10694. *)
  10695. case $ac_srcdir in
  10696. .) ac_abs_srcdir=$ac_abs_builddir;;
  10697. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10698. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10699. esac;;
  10700. esac
  10701. case $ac_abs_builddir in
  10702. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10703. *)
  10704. case $ac_top_srcdir in
  10705. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10706. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10707. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10708. esac;;
  10709. esac
  10710. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  10711. echo "$as_me: executing $ac_dest commands" >&6;}
  10712. case $ac_dest in
  10713. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  10714. # Strip MF so we end up with the name of the file.
  10715. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10716. # Check whether this is an Automake generated Makefile or not.
  10717. # We used to match only the files named `Makefile.in', but
  10718. # some people rename them; so instead we look at the file content.
  10719. # Grep'ing the first line is not enough: some people post-process
  10720. # each Makefile.in and add a new line on top of each file to say so.
  10721. # So let's grep whole file.
  10722. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  10723. dirpart=`(dirname "$mf") 2>/dev/null ||
  10724. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10725. X"$mf" : 'X\(//\)[^/]' \| \
  10726. X"$mf" : 'X\(//\)$' \| \
  10727. X"$mf" : 'X\(/\)' \| \
  10728. . : '\(.\)' 2>/dev/null ||
  10729. echo X"$mf" |
  10730. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10731. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10732. /^X\(\/\/\)$/{ s//\1/; q; }
  10733. /^X\(\/\).*/{ s//\1/; q; }
  10734. s/.*/./; q'`
  10735. else
  10736. continue
  10737. fi
  10738. # Extract the definition of DEPDIR, am__include, and am__quote
  10739. # from the Makefile without running `make'.
  10740. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10741. test -z "$DEPDIR" && continue
  10742. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10743. test -z "am__include" && continue
  10744. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10745. # When using ansi2knr, U may be empty or an underscore; expand it
  10746. U=`sed -n 's/^U = //p' < "$mf"`
  10747. # Find all dependency output files, they are included files with
  10748. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10749. # simplest approach to changing $(DEPDIR) to its actual value in the
  10750. # expansion.
  10751. for file in `sed -n "
  10752. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10753. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10754. # Make sure the directory exists.
  10755. test -f "$dirpart/$file" && continue
  10756. fdir=`(dirname "$file") 2>/dev/null ||
  10757. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10758. X"$file" : 'X\(//\)[^/]' \| \
  10759. X"$file" : 'X\(//\)$' \| \
  10760. X"$file" : 'X\(/\)' \| \
  10761. . : '\(.\)' 2>/dev/null ||
  10762. echo X"$file" |
  10763. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10764. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10765. /^X\(\/\/\)$/{ s//\1/; q; }
  10766. /^X\(\/\).*/{ s//\1/; q; }
  10767. s/.*/./; q'`
  10768. { if $as_mkdir_p; then
  10769. mkdir -p $dirpart/$fdir
  10770. else
  10771. as_dir=$dirpart/$fdir
  10772. as_dirs=
  10773. while test ! -d "$as_dir"; do
  10774. as_dirs="$as_dir $as_dirs"
  10775. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10776. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10777. X"$as_dir" : 'X\(//\)[^/]' \| \
  10778. X"$as_dir" : 'X\(//\)$' \| \
  10779. X"$as_dir" : 'X\(/\)' \| \
  10780. . : '\(.\)' 2>/dev/null ||
  10781. echo X"$as_dir" |
  10782. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10783. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10784. /^X\(\/\/\)$/{ s//\1/; q; }
  10785. /^X\(\/\).*/{ s//\1/; q; }
  10786. s/.*/./; q'`
  10787. done
  10788. test ! -n "$as_dirs" || mkdir $as_dirs
  10789. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  10790. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  10791. { (exit 1); exit 1; }; }; }
  10792. # echo "creating $dirpart/$file"
  10793. echo '# dummy' > "$dirpart/$file"
  10794. done
  10795. done
  10796. ;;
  10797. default-1 )
  10798. for ac_file in $CONFIG_FILES; do
  10799. # Support "outfile[:infile[:infile...]]"
  10800. case "$ac_file" in
  10801. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10802. esac
  10803. # PO directories have a Makefile.in generated from Makefile.in.in.
  10804. case "$ac_file" in */Makefile.in)
  10805. # Adjust a relative srcdir.
  10806. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10807. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  10808. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10809. # In autoconf-2.13 it is called $ac_given_srcdir.
  10810. # In autoconf-2.50 it is called $srcdir.
  10811. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10812. case "$ac_given_srcdir" in
  10813. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10814. /*) top_srcdir="$ac_given_srcdir" ;;
  10815. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10816. esac
  10817. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  10818. rm -f "$ac_dir/POTFILES"
  10819. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  10820. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  10821. POMAKEFILEDEPS="POTFILES.in"
  10822. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  10823. # on $ac_dir but don't depend on user-specified configuration
  10824. # parameters.
  10825. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10826. # The LINGUAS file contains the set of available languages.
  10827. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10828. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  10829. fi
  10830. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10831. # Hide the ALL_LINGUAS assigment from automake.
  10832. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10833. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10834. else
  10835. # The set of available languages was given in configure.in.
  10836. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  10837. fi
  10838. case "$ac_given_srcdir" in
  10839. .) srcdirpre= ;;
  10840. *) srcdirpre='$(srcdir)/' ;;
  10841. esac
  10842. POFILES=
  10843. GMOFILES=
  10844. UPDATEPOFILES=
  10845. DUMMYPOFILES=
  10846. for lang in $ALL_LINGUAS; do
  10847. POFILES="$POFILES $srcdirpre$lang.po"
  10848. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10849. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10850. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10851. done
  10852. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10853. # environment variable.
  10854. INST_LINGUAS=
  10855. if test -n "$ALL_LINGUAS"; then
  10856. for presentlang in $ALL_LINGUAS; do
  10857. useit=no
  10858. if test "%UNSET%" != "$LINGUAS"; then
  10859. desiredlanguages="$LINGUAS"
  10860. else
  10861. desiredlanguages="$ALL_LINGUAS"
  10862. fi
  10863. for desiredlang in $desiredlanguages; do
  10864. # Use the presentlang catalog if desiredlang is
  10865. # a. equal to presentlang, or
  10866. # b. a variant of presentlang (because in this case,
  10867. # presentlang can be used as a fallback for messages
  10868. # which are not translated in the desiredlang catalog).
  10869. case "$desiredlang" in
  10870. "$presentlang"*) useit=yes;;
  10871. esac
  10872. done
  10873. if test $useit = yes; then
  10874. INST_LINGUAS="$INST_LINGUAS $presentlang"
  10875. fi
  10876. done
  10877. fi
  10878. CATALOGS=
  10879. if test -n "$INST_LINGUAS"; then
  10880. for lang in $INST_LINGUAS; do
  10881. CATALOGS="$CATALOGS $lang.gmo"
  10882. done
  10883. fi
  10884. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10885. 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"
  10886. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10887. if test -f "$f"; then
  10888. case "$f" in
  10889. *.orig | *.bak | *~) ;;
  10890. *) cat "$f" >> "$ac_dir/Makefile" ;;
  10891. esac
  10892. fi
  10893. done
  10894. fi
  10895. ;;
  10896. esac
  10897. done ;;
  10898. esac
  10899. done
  10900. _ACEOF
  10901. cat >>$CONFIG_STATUS <<\_ACEOF
  10902. { (exit 0); exit 0; }
  10903. _ACEOF
  10904. chmod +x $CONFIG_STATUS
  10905. ac_clean_files=$ac_clean_files_save
  10906. # configure is writing to config.log, and then calls config.status.
  10907. # config.status does its own redirection, appending to config.log.
  10908. # Unfortunately, on DOS this fails, as config.log is still kept open
  10909. # by configure, so config.status won't be able to write to it; its
  10910. # output is simply discarded. So we exec the FD to /dev/null,
  10911. # effectively closing config.log, so it can be properly (re)opened and
  10912. # appended to by config.status. When coming back to configure, we
  10913. # need to make the FD available again.
  10914. if test "$no_create" != yes; then
  10915. ac_cs_success=:
  10916. ac_config_status_args=
  10917. test "$silent" = yes &&
  10918. ac_config_status_args="$ac_config_status_args --quiet"
  10919. exec 5>/dev/null
  10920. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10921. exec 5>>config.log
  10922. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10923. # would make configure fail if this is the last instruction.
  10924. $ac_cs_success || { (exit 1); exit 1; }
  10925. fi