configure 286 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.2.1.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.2.1'
  239. PACKAGE_STRING='aria2c 0.2.1'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS RANLIB ac_ct_RANLIB MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP 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_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  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_CXX_set=${CXX+set}
  678. ac_env_CXX_value=$CXX
  679. ac_cv_env_CXX_set=${CXX+set}
  680. ac_cv_env_CXX_value=$CXX
  681. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  682. ac_env_CXXFLAGS_value=$CXXFLAGS
  683. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  684. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  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.2.1 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.2.1:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --disable-nls do not use Native Language Support
  756. --disable-dependency-tracking speeds up one-time build
  757. --enable-dependency-tracking do not reject slow dependency extractors
  758. --disable-rpath do not hardcode runtime library paths
  759. --enable-ssl enalbe SSL support if libssl is installed. Default: yes
  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-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  769. --without-libintl-prefix don't search for libintl in includedir and libdir
  770. Some influential environment variables:
  771. CC C compiler command
  772. CFLAGS C compiler flags
  773. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  774. nonstandard directory <lib dir>
  775. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  776. headers in a nonstandard directory <include dir>
  777. CXX C++ compiler command
  778. CXXFLAGS C++ compiler flags
  779. CPP C preprocessor
  780. Use these variables to override the choices made by `configure' or to help
  781. it to find libraries and programs with nonstandard names/locations.
  782. Report bugs to <tujikawa@rednoah.com>.
  783. _ACEOF
  784. fi
  785. if test "$ac_init_help" = "recursive"; then
  786. # If there are subdirs, report their specific --help.
  787. ac_popdir=`pwd`
  788. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  789. test -d $ac_dir || continue
  790. ac_builddir=.
  791. if test "$ac_dir" != .; then
  792. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  793. # A "../" for each directory in $ac_dir_suffix.
  794. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  795. else
  796. ac_dir_suffix= ac_top_builddir=
  797. fi
  798. case $srcdir in
  799. .) # No --srcdir option. We are building in place.
  800. ac_srcdir=.
  801. if test -z "$ac_top_builddir"; then
  802. ac_top_srcdir=.
  803. else
  804. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  805. fi ;;
  806. [\\/]* | ?:[\\/]* ) # Absolute path.
  807. ac_srcdir=$srcdir$ac_dir_suffix;
  808. ac_top_srcdir=$srcdir ;;
  809. *) # Relative path.
  810. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  811. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  812. esac
  813. # Do not use `cd foo && pwd` to compute absolute paths, because
  814. # the directories may not exist.
  815. case `pwd` in
  816. .) ac_abs_builddir="$ac_dir";;
  817. *)
  818. case "$ac_dir" in
  819. .) ac_abs_builddir=`pwd`;;
  820. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  821. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  822. esac;;
  823. esac
  824. case $ac_abs_builddir in
  825. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  826. *)
  827. case ${ac_top_builddir}. in
  828. .) ac_abs_top_builddir=$ac_abs_builddir;;
  829. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  830. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  831. esac;;
  832. esac
  833. case $ac_abs_builddir in
  834. .) ac_abs_srcdir=$ac_srcdir;;
  835. *)
  836. case $ac_srcdir in
  837. .) ac_abs_srcdir=$ac_abs_builddir;;
  838. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  839. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  840. esac;;
  841. esac
  842. case $ac_abs_builddir in
  843. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  844. *)
  845. case $ac_top_srcdir in
  846. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  847. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  848. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  849. esac;;
  850. esac
  851. cd $ac_dir
  852. # Check for guested configure; otherwise get Cygnus style configure.
  853. if test -f $ac_srcdir/configure.gnu; then
  854. echo
  855. $SHELL $ac_srcdir/configure.gnu --help=recursive
  856. elif test -f $ac_srcdir/configure; then
  857. echo
  858. $SHELL $ac_srcdir/configure --help=recursive
  859. elif test -f $ac_srcdir/configure.ac ||
  860. test -f $ac_srcdir/configure.in; then
  861. echo
  862. $ac_configure --help
  863. else
  864. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  865. fi
  866. cd "$ac_popdir"
  867. done
  868. fi
  869. test -n "$ac_init_help" && exit 0
  870. if $ac_init_version; then
  871. cat <<\_ACEOF
  872. aria2c configure 0.2.1
  873. generated by GNU Autoconf 2.59
  874. Copyright (C) 2003 Free Software Foundation, Inc.
  875. This configure script is free software; the Free Software Foundation
  876. gives unlimited permission to copy, distribute and modify it.
  877. _ACEOF
  878. exit 0
  879. fi
  880. exec 5>config.log
  881. cat >&5 <<_ACEOF
  882. This file contains any messages produced by compilers while
  883. running configure, to aid debugging if configure makes a mistake.
  884. It was created by aria2c $as_me 0.2.1, which was
  885. generated by GNU Autoconf 2.59. Invocation command line was
  886. $ $0 $@
  887. _ACEOF
  888. {
  889. cat <<_ASUNAME
  890. ## --------- ##
  891. ## Platform. ##
  892. ## --------- ##
  893. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  894. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  895. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  896. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  897. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  898. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  899. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  900. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  901. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  902. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  903. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  904. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  905. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  906. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  907. _ASUNAME
  908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  909. for as_dir in $PATH
  910. do
  911. IFS=$as_save_IFS
  912. test -z "$as_dir" && as_dir=.
  913. echo "PATH: $as_dir"
  914. done
  915. } >&5
  916. cat >&5 <<_ACEOF
  917. ## ----------- ##
  918. ## Core tests. ##
  919. ## ----------- ##
  920. _ACEOF
  921. # Keep a trace of the command line.
  922. # Strip out --no-create and --no-recursion so they do not pile up.
  923. # Strip out --silent because we don't want to record it for future runs.
  924. # Also quote any args containing shell meta-characters.
  925. # Make two passes to allow for proper duplicate-argument suppression.
  926. ac_configure_args=
  927. ac_configure_args0=
  928. ac_configure_args1=
  929. ac_sep=
  930. ac_must_keep_next=false
  931. for ac_pass in 1 2
  932. do
  933. for ac_arg
  934. do
  935. case $ac_arg in
  936. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  937. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  938. | -silent | --silent | --silen | --sile | --sil)
  939. continue ;;
  940. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  941. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  942. esac
  943. case $ac_pass in
  944. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  945. 2)
  946. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  947. if test $ac_must_keep_next = true; then
  948. ac_must_keep_next=false # Got value, back to normal.
  949. else
  950. case $ac_arg in
  951. *=* | --config-cache | -C | -disable-* | --disable-* \
  952. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  953. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  954. | -with-* | --with-* | -without-* | --without-* | --x)
  955. case "$ac_configure_args0 " in
  956. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  957. esac
  958. ;;
  959. -* ) ac_must_keep_next=true ;;
  960. esac
  961. fi
  962. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  963. # Get rid of the leading space.
  964. ac_sep=" "
  965. ;;
  966. esac
  967. done
  968. done
  969. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  970. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  971. # When interrupted or exit'd, cleanup temporary files, and complete
  972. # config.log. We remove comments because anyway the quotes in there
  973. # would cause problems or look ugly.
  974. # WARNING: Be sure not to use single quotes in there, as some shells,
  975. # such as our DU 5.0 friend, will then `close' the trap.
  976. trap 'exit_status=$?
  977. # Save into config.log some information that might help in debugging.
  978. {
  979. echo
  980. cat <<\_ASBOX
  981. ## ---------------- ##
  982. ## Cache variables. ##
  983. ## ---------------- ##
  984. _ASBOX
  985. echo
  986. # The following way of writing the cache mishandles newlines in values,
  987. {
  988. (set) 2>&1 |
  989. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  990. *ac_space=\ *)
  991. sed -n \
  992. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  993. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  994. ;;
  995. *)
  996. sed -n \
  997. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  998. ;;
  999. esac;
  1000. }
  1001. echo
  1002. cat <<\_ASBOX
  1003. ## ----------------- ##
  1004. ## Output variables. ##
  1005. ## ----------------- ##
  1006. _ASBOX
  1007. echo
  1008. for ac_var in $ac_subst_vars
  1009. do
  1010. eval ac_val=$`echo $ac_var`
  1011. echo "$ac_var='"'"'$ac_val'"'"'"
  1012. done | sort
  1013. echo
  1014. if test -n "$ac_subst_files"; then
  1015. cat <<\_ASBOX
  1016. ## ------------- ##
  1017. ## Output files. ##
  1018. ## ------------- ##
  1019. _ASBOX
  1020. echo
  1021. for ac_var in $ac_subst_files
  1022. do
  1023. eval ac_val=$`echo $ac_var`
  1024. echo "$ac_var='"'"'$ac_val'"'"'"
  1025. done | sort
  1026. echo
  1027. fi
  1028. if test -s confdefs.h; then
  1029. cat <<\_ASBOX
  1030. ## ----------- ##
  1031. ## confdefs.h. ##
  1032. ## ----------- ##
  1033. _ASBOX
  1034. echo
  1035. sed "/^$/d" confdefs.h | sort
  1036. echo
  1037. fi
  1038. test "$ac_signal" != 0 &&
  1039. echo "$as_me: caught signal $ac_signal"
  1040. echo "$as_me: exit $exit_status"
  1041. } >&5
  1042. rm -f core *.core &&
  1043. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1044. exit $exit_status
  1045. ' 0
  1046. for ac_signal in 1 2 13 15; do
  1047. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1048. done
  1049. ac_signal=0
  1050. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1051. rm -rf conftest* confdefs.h
  1052. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1053. echo >confdefs.h
  1054. # Predefined preprocessor variables.
  1055. cat >>confdefs.h <<_ACEOF
  1056. #define PACKAGE_NAME "$PACKAGE_NAME"
  1057. _ACEOF
  1058. cat >>confdefs.h <<_ACEOF
  1059. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1060. _ACEOF
  1061. cat >>confdefs.h <<_ACEOF
  1062. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1063. _ACEOF
  1064. cat >>confdefs.h <<_ACEOF
  1065. #define PACKAGE_STRING "$PACKAGE_STRING"
  1066. _ACEOF
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1069. _ACEOF
  1070. # Let the site file select an alternate cache file if it wants to.
  1071. # Prefer explicitly selected file to automatically selected ones.
  1072. if test -z "$CONFIG_SITE"; then
  1073. if test "x$prefix" != xNONE; then
  1074. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1075. else
  1076. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1077. fi
  1078. fi
  1079. for ac_site_file in $CONFIG_SITE; do
  1080. if test -r "$ac_site_file"; then
  1081. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1082. echo "$as_me: loading site script $ac_site_file" >&6;}
  1083. sed 's/^/| /' "$ac_site_file" >&5
  1084. . "$ac_site_file"
  1085. fi
  1086. done
  1087. if test -r "$cache_file"; then
  1088. # Some versions of bash will fail to source /dev/null (special
  1089. # files actually), so we avoid doing that.
  1090. if test -f "$cache_file"; then
  1091. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1092. echo "$as_me: loading cache $cache_file" >&6;}
  1093. case $cache_file in
  1094. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1095. *) . ./$cache_file;;
  1096. esac
  1097. fi
  1098. else
  1099. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1100. echo "$as_me: creating cache $cache_file" >&6;}
  1101. >$cache_file
  1102. fi
  1103. # Check that the precious variables saved in the cache have kept the same
  1104. # value.
  1105. ac_cache_corrupted=false
  1106. for ac_var in `(set) 2>&1 |
  1107. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1108. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1109. eval ac_new_set=\$ac_env_${ac_var}_set
  1110. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1111. eval ac_new_val="\$ac_env_${ac_var}_value"
  1112. case $ac_old_set,$ac_new_set in
  1113. set,)
  1114. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1115. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1116. ac_cache_corrupted=: ;;
  1117. ,set)
  1118. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1119. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1120. ac_cache_corrupted=: ;;
  1121. ,);;
  1122. *)
  1123. if test "x$ac_old_val" != "x$ac_new_val"; then
  1124. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1125. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1126. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1127. echo "$as_me: former value: $ac_old_val" >&2;}
  1128. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1129. echo "$as_me: current value: $ac_new_val" >&2;}
  1130. ac_cache_corrupted=:
  1131. fi;;
  1132. esac
  1133. # Pass precious variables to config.status.
  1134. if test "$ac_new_set" = set; then
  1135. case $ac_new_val in
  1136. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1137. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1138. *) ac_arg=$ac_var=$ac_new_val ;;
  1139. esac
  1140. case " $ac_configure_args " in
  1141. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1142. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1143. esac
  1144. fi
  1145. done
  1146. if $ac_cache_corrupted; then
  1147. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1148. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1149. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1150. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1151. { (exit 1); exit 1; }; }
  1152. fi
  1153. ac_ext=c
  1154. ac_cpp='$CPP $CPPFLAGS'
  1155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1158. am__api_version="1.9"
  1159. ac_aux_dir=
  1160. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1161. if test -f $ac_dir/install-sh; then
  1162. ac_aux_dir=$ac_dir
  1163. ac_install_sh="$ac_aux_dir/install-sh -c"
  1164. break
  1165. elif test -f $ac_dir/install.sh; then
  1166. ac_aux_dir=$ac_dir
  1167. ac_install_sh="$ac_aux_dir/install.sh -c"
  1168. break
  1169. elif test -f $ac_dir/shtool; then
  1170. ac_aux_dir=$ac_dir
  1171. ac_install_sh="$ac_aux_dir/shtool install -c"
  1172. break
  1173. fi
  1174. done
  1175. if test -z "$ac_aux_dir"; then
  1176. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1177. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1178. { (exit 1); exit 1; }; }
  1179. fi
  1180. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1181. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1182. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1183. # Find a good install program. We prefer a C program (faster),
  1184. # so one script is as good as another. But avoid the broken or
  1185. # incompatible versions:
  1186. # SysV /etc/install, /usr/sbin/install
  1187. # SunOS /usr/etc/install
  1188. # IRIX /sbin/install
  1189. # AIX /bin/install
  1190. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1191. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1192. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1193. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1194. # OS/2's system install, which has a completely different semantic
  1195. # ./install, which can be erroneously created by make from ./install.sh.
  1196. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1197. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1198. if test -z "$INSTALL"; then
  1199. if test "${ac_cv_path_install+set}" = set; then
  1200. echo $ECHO_N "(cached) $ECHO_C" >&6
  1201. else
  1202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1203. for as_dir in $PATH
  1204. do
  1205. IFS=$as_save_IFS
  1206. test -z "$as_dir" && as_dir=.
  1207. # Account for people who put trailing slashes in PATH elements.
  1208. case $as_dir/ in
  1209. ./ | .// | /cC/* | \
  1210. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1211. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1212. /usr/ucb/* ) ;;
  1213. *)
  1214. # OSF1 and SCO ODT 3.0 have their own names for install.
  1215. # Don't use installbsd from OSF since it installs stuff as root
  1216. # by default.
  1217. for ac_prog in ginstall scoinst install; do
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1220. if test $ac_prog = install &&
  1221. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1222. # AIX install. It has an incompatible calling convention.
  1223. :
  1224. elif test $ac_prog = install &&
  1225. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1226. # program-specific install script used by HP pwplus--don't use.
  1227. :
  1228. else
  1229. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1230. break 3
  1231. fi
  1232. fi
  1233. done
  1234. done
  1235. ;;
  1236. esac
  1237. done
  1238. fi
  1239. if test "${ac_cv_path_install+set}" = set; then
  1240. INSTALL=$ac_cv_path_install
  1241. else
  1242. # As a last resort, use the slow shell script. We don't cache a
  1243. # path for INSTALL within a source directory, because that will
  1244. # break other packages using the cache if that directory is
  1245. # removed, or if the path is relative.
  1246. INSTALL=$ac_install_sh
  1247. fi
  1248. fi
  1249. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1250. echo "${ECHO_T}$INSTALL" >&6
  1251. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1252. # It thinks the first close brace ends the variable substitution.
  1253. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1254. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1255. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1256. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1257. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1258. # Just in case
  1259. sleep 1
  1260. echo timestamp > conftest.file
  1261. # Do `set' in a subshell so we don't clobber the current shell's
  1262. # arguments. Must try -L first in case configure is actually a
  1263. # symlink; some systems play weird games with the mod time of symlinks
  1264. # (eg FreeBSD returns the mod time of the symlink's containing
  1265. # directory).
  1266. if (
  1267. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1268. if test "$*" = "X"; then
  1269. # -L didn't work.
  1270. set X `ls -t $srcdir/configure conftest.file`
  1271. fi
  1272. rm -f conftest.file
  1273. if test "$*" != "X $srcdir/configure conftest.file" \
  1274. && test "$*" != "X conftest.file $srcdir/configure"; then
  1275. # If neither matched, then we have a broken ls. This can happen
  1276. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1277. # broken ls alias from the environment. This has actually
  1278. # happened. Such a system could not be considered "sane".
  1279. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1280. alias in your environment" >&5
  1281. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1282. alias in your environment" >&2;}
  1283. { (exit 1); exit 1; }; }
  1284. fi
  1285. test "$2" = conftest.file
  1286. )
  1287. then
  1288. # Ok.
  1289. :
  1290. else
  1291. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1292. Check your system clock" >&5
  1293. echo "$as_me: error: newly created file is older than distributed files!
  1294. Check your system clock" >&2;}
  1295. { (exit 1); exit 1; }; }
  1296. fi
  1297. echo "$as_me:$LINENO: result: yes" >&5
  1298. echo "${ECHO_T}yes" >&6
  1299. test "$program_prefix" != NONE &&
  1300. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1301. # Use a double $ so make ignores it.
  1302. test "$program_suffix" != NONE &&
  1303. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1304. # Double any \ or $. echo might interpret backslashes.
  1305. # By default was `s,x,x', remove it if useless.
  1306. cat <<\_ACEOF >conftest.sed
  1307. s/[\\$]/&&/g;s/;s,x,x,$//
  1308. _ACEOF
  1309. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1310. rm conftest.sed
  1311. # expand $ac_aux_dir to an absolute path
  1312. am_aux_dir=`cd $ac_aux_dir && pwd`
  1313. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1314. # Use eval to expand $SHELL
  1315. if eval "$MISSING --run true"; then
  1316. am_missing_run="$MISSING --run "
  1317. else
  1318. am_missing_run=
  1319. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1320. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1321. fi
  1322. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1323. # We used to keeping the `.' as first argument, in order to
  1324. # allow $(mkdir_p) to be used without argument. As in
  1325. # $(mkdir_p) $(somedir)
  1326. # where $(somedir) is conditionally defined. However this is wrong
  1327. # for two reasons:
  1328. # 1. if the package is installed by a user who cannot write `.'
  1329. # make install will fail,
  1330. # 2. the above comment should most certainly read
  1331. # $(mkdir_p) $(DESTDIR)$(somedir)
  1332. # so it does not work when $(somedir) is undefined and
  1333. # $(DESTDIR) is not.
  1334. # To support the latter case, we have to write
  1335. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1336. # so the `.' trick is pointless.
  1337. mkdir_p='mkdir -p --'
  1338. else
  1339. # On NextStep and OpenStep, the `mkdir' command does not
  1340. # recognize any option. It will interpret all options as
  1341. # directories to create, and then abort because `.' already
  1342. # exists.
  1343. for d in ./-p ./--version;
  1344. do
  1345. test -d $d && rmdir $d
  1346. done
  1347. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1348. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1349. mkdir_p='$(mkinstalldirs)'
  1350. else
  1351. mkdir_p='$(install_sh) -d'
  1352. fi
  1353. fi
  1354. for ac_prog in gawk mawk nawk awk
  1355. do
  1356. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1357. set dummy $ac_prog; ac_word=$2
  1358. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1359. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1360. if test "${ac_cv_prog_AWK+set}" = set; then
  1361. echo $ECHO_N "(cached) $ECHO_C" >&6
  1362. else
  1363. if test -n "$AWK"; then
  1364. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1365. else
  1366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1367. for as_dir in $PATH
  1368. do
  1369. IFS=$as_save_IFS
  1370. test -z "$as_dir" && as_dir=.
  1371. for ac_exec_ext in '' $ac_executable_extensions; do
  1372. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1373. ac_cv_prog_AWK="$ac_prog"
  1374. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1375. break 2
  1376. fi
  1377. done
  1378. done
  1379. fi
  1380. fi
  1381. AWK=$ac_cv_prog_AWK
  1382. if test -n "$AWK"; then
  1383. echo "$as_me:$LINENO: result: $AWK" >&5
  1384. echo "${ECHO_T}$AWK" >&6
  1385. else
  1386. echo "$as_me:$LINENO: result: no" >&5
  1387. echo "${ECHO_T}no" >&6
  1388. fi
  1389. test -n "$AWK" && break
  1390. done
  1391. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1392. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1393. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1394. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1395. echo $ECHO_N "(cached) $ECHO_C" >&6
  1396. else
  1397. cat >conftest.make <<\_ACEOF
  1398. all:
  1399. @echo 'ac_maketemp="$(MAKE)"'
  1400. _ACEOF
  1401. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1402. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1403. if test -n "$ac_maketemp"; then
  1404. eval ac_cv_prog_make_${ac_make}_set=yes
  1405. else
  1406. eval ac_cv_prog_make_${ac_make}_set=no
  1407. fi
  1408. rm -f conftest.make
  1409. fi
  1410. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1411. echo "$as_me:$LINENO: result: yes" >&5
  1412. echo "${ECHO_T}yes" >&6
  1413. SET_MAKE=
  1414. else
  1415. echo "$as_me:$LINENO: result: no" >&5
  1416. echo "${ECHO_T}no" >&6
  1417. SET_MAKE="MAKE=${MAKE-make}"
  1418. fi
  1419. rm -rf .tst 2>/dev/null
  1420. mkdir .tst 2>/dev/null
  1421. if test -d .tst; then
  1422. am__leading_dot=.
  1423. else
  1424. am__leading_dot=_
  1425. fi
  1426. rmdir .tst 2>/dev/null
  1427. # test to see if srcdir already configured
  1428. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1429. test -f $srcdir/config.status; then
  1430. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1431. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1432. { (exit 1); exit 1; }; }
  1433. fi
  1434. # test whether we have cygpath
  1435. if test -z "$CYGPATH_W"; then
  1436. if (cygpath --version) >/dev/null 2>/dev/null; then
  1437. CYGPATH_W='cygpath -w'
  1438. else
  1439. CYGPATH_W=echo
  1440. fi
  1441. fi
  1442. # Define the identity of the package.
  1443. PACKAGE='aria2c'
  1444. VERSION='0.2.1'
  1445. cat >>confdefs.h <<_ACEOF
  1446. #define PACKAGE "$PACKAGE"
  1447. _ACEOF
  1448. cat >>confdefs.h <<_ACEOF
  1449. #define VERSION "$VERSION"
  1450. _ACEOF
  1451. # Some tools Automake needs.
  1452. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1453. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1454. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1455. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1456. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1457. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1458. # Installed binaries are usually stripped using `strip' when the user
  1459. # run `make install-strip'. However `strip' might not be the right
  1460. # tool to use in cross-compilation environments, therefore Automake
  1461. # will honor the `STRIP' environment variable to overrule this program.
  1462. if test "$cross_compiling" != no; then
  1463. if test -n "$ac_tool_prefix"; then
  1464. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1465. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1466. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1468. if test "${ac_cv_prog_STRIP+set}" = set; then
  1469. echo $ECHO_N "(cached) $ECHO_C" >&6
  1470. else
  1471. if test -n "$STRIP"; then
  1472. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1473. else
  1474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1475. for as_dir in $PATH
  1476. do
  1477. IFS=$as_save_IFS
  1478. test -z "$as_dir" && as_dir=.
  1479. for ac_exec_ext in '' $ac_executable_extensions; do
  1480. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1481. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1483. break 2
  1484. fi
  1485. done
  1486. done
  1487. fi
  1488. fi
  1489. STRIP=$ac_cv_prog_STRIP
  1490. if test -n "$STRIP"; then
  1491. echo "$as_me:$LINENO: result: $STRIP" >&5
  1492. echo "${ECHO_T}$STRIP" >&6
  1493. else
  1494. echo "$as_me:$LINENO: result: no" >&5
  1495. echo "${ECHO_T}no" >&6
  1496. fi
  1497. fi
  1498. if test -z "$ac_cv_prog_STRIP"; then
  1499. ac_ct_STRIP=$STRIP
  1500. # Extract the first word of "strip", so it can be a program name with args.
  1501. set dummy strip; ac_word=$2
  1502. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1504. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1505. echo $ECHO_N "(cached) $ECHO_C" >&6
  1506. else
  1507. if test -n "$ac_ct_STRIP"; then
  1508. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1509. else
  1510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1511. for as_dir in $PATH
  1512. do
  1513. IFS=$as_save_IFS
  1514. test -z "$as_dir" && as_dir=.
  1515. for ac_exec_ext in '' $ac_executable_extensions; do
  1516. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1517. ac_cv_prog_ac_ct_STRIP="strip"
  1518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1519. break 2
  1520. fi
  1521. done
  1522. done
  1523. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1524. fi
  1525. fi
  1526. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1527. if test -n "$ac_ct_STRIP"; then
  1528. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1529. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1530. else
  1531. echo "$as_me:$LINENO: result: no" >&5
  1532. echo "${ECHO_T}no" >&6
  1533. fi
  1534. STRIP=$ac_ct_STRIP
  1535. else
  1536. STRIP="$ac_cv_prog_STRIP"
  1537. fi
  1538. fi
  1539. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1540. # We need awk for the "check" target. The system "awk" is bad on
  1541. # some platforms.
  1542. # Always define AMTAR for backward compatibility.
  1543. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1544. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1545. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1546. if test "${with_cppunit_prefix+set}" = set; then
  1547. withval="$with_cppunit_prefix"
  1548. cppunit_config_prefix="$withval"
  1549. else
  1550. cppunit_config_prefix=""
  1551. fi;
  1552. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1553. if test "${with_cppunit_exec_prefix+set}" = set; then
  1554. withval="$with_cppunit_exec_prefix"
  1555. cppunit_config_exec_prefix="$withval"
  1556. else
  1557. cppunit_config_exec_prefix=""
  1558. fi;
  1559. if test x$cppunit_config_exec_prefix != x ; then
  1560. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1561. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1562. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1563. fi
  1564. fi
  1565. if test x$cppunit_config_prefix != x ; then
  1566. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1567. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1568. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1569. fi
  1570. fi
  1571. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1572. set dummy cppunit-config; ac_word=$2
  1573. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1574. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1575. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1576. echo $ECHO_N "(cached) $ECHO_C" >&6
  1577. else
  1578. case $CPPUNIT_CONFIG in
  1579. [\\/]* | ?:[\\/]*)
  1580. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1581. ;;
  1582. *)
  1583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1584. for as_dir in $PATH
  1585. do
  1586. IFS=$as_save_IFS
  1587. test -z "$as_dir" && as_dir=.
  1588. for ac_exec_ext in '' $ac_executable_extensions; do
  1589. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1590. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1591. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1592. break 2
  1593. fi
  1594. done
  1595. done
  1596. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1597. ;;
  1598. esac
  1599. fi
  1600. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1601. if test -n "$CPPUNIT_CONFIG"; then
  1602. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1603. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1604. else
  1605. echo "$as_me:$LINENO: result: no" >&5
  1606. echo "${ECHO_T}no" >&6
  1607. fi
  1608. cppunit_version_min=1.10.2
  1609. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1610. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1611. no_cppunit=""
  1612. if test "$CPPUNIT_CONFIG" = "no" ; then
  1613. no_cppunit=yes
  1614. else
  1615. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1616. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1617. cppunit_version=`$CPPUNIT_CONFIG --version`
  1618. cppunit_major_version=`echo $cppunit_version | \
  1619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1620. cppunit_minor_version=`echo $cppunit_version | \
  1621. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1622. cppunit_micro_version=`echo $cppunit_version | \
  1623. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1624. cppunit_major_min=`echo $cppunit_version_min | \
  1625. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1626. cppunit_minor_min=`echo $cppunit_version_min | \
  1627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1628. cppunit_micro_min=`echo $cppunit_version_min | \
  1629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1630. cppunit_version_proper=`expr \
  1631. $cppunit_major_version \> $cppunit_major_min \| \
  1632. $cppunit_major_version \= $cppunit_major_min \& \
  1633. $cppunit_minor_version \> $cppunit_minor_min \| \
  1634. $cppunit_major_version \= $cppunit_major_min \& \
  1635. $cppunit_minor_version \= $cppunit_minor_min \& \
  1636. $cppunit_micro_version \>= $cppunit_micro_min `
  1637. if test "$cppunit_version_proper" = "1" ; then
  1638. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1639. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1640. else
  1641. echo "$as_me:$LINENO: result: no" >&5
  1642. echo "${ECHO_T}no" >&6
  1643. no_cppunit=yes
  1644. fi
  1645. fi
  1646. if test "x$no_cppunit" = x ; then
  1647. :
  1648. else
  1649. CPPUNIT_CFLAGS=""
  1650. CPPUNIT_LIBS=""
  1651. :
  1652. fi
  1653. ac_config_headers="$ac_config_headers config.h"
  1654. if test -n "$ac_tool_prefix"; then
  1655. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1656. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1657. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1658. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1659. if test "${ac_cv_prog_RANLIB+set}" = set; then
  1660. echo $ECHO_N "(cached) $ECHO_C" >&6
  1661. else
  1662. if test -n "$RANLIB"; then
  1663. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1664. else
  1665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1666. for as_dir in $PATH
  1667. do
  1668. IFS=$as_save_IFS
  1669. test -z "$as_dir" && as_dir=.
  1670. for ac_exec_ext in '' $ac_executable_extensions; do
  1671. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1672. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1673. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1674. break 2
  1675. fi
  1676. done
  1677. done
  1678. fi
  1679. fi
  1680. RANLIB=$ac_cv_prog_RANLIB
  1681. if test -n "$RANLIB"; then
  1682. echo "$as_me:$LINENO: result: $RANLIB" >&5
  1683. echo "${ECHO_T}$RANLIB" >&6
  1684. else
  1685. echo "$as_me:$LINENO: result: no" >&5
  1686. echo "${ECHO_T}no" >&6
  1687. fi
  1688. fi
  1689. if test -z "$ac_cv_prog_RANLIB"; then
  1690. ac_ct_RANLIB=$RANLIB
  1691. # Extract the first word of "ranlib", so it can be a program name with args.
  1692. set dummy ranlib; ac_word=$2
  1693. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1694. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1695. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1696. echo $ECHO_N "(cached) $ECHO_C" >&6
  1697. else
  1698. if test -n "$ac_ct_RANLIB"; then
  1699. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1700. else
  1701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1702. for as_dir in $PATH
  1703. do
  1704. IFS=$as_save_IFS
  1705. test -z "$as_dir" && as_dir=.
  1706. for ac_exec_ext in '' $ac_executable_extensions; do
  1707. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1708. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1709. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1710. break 2
  1711. fi
  1712. done
  1713. done
  1714. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  1715. fi
  1716. fi
  1717. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  1718. if test -n "$ac_ct_RANLIB"; then
  1719. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  1720. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  1721. else
  1722. echo "$as_me:$LINENO: result: no" >&5
  1723. echo "${ECHO_T}no" >&6
  1724. fi
  1725. RANLIB=$ac_ct_RANLIB
  1726. else
  1727. RANLIB="$ac_cv_prog_RANLIB"
  1728. fi
  1729. MKINSTALLDIRS=
  1730. if test -n "$ac_aux_dir"; then
  1731. case "$ac_aux_dir" in
  1732. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  1733. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  1734. esac
  1735. fi
  1736. if test -z "$MKINSTALLDIRS"; then
  1737. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  1738. fi
  1739. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  1740. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  1741. # Check whether --enable-nls or --disable-nls was given.
  1742. if test "${enable_nls+set}" = set; then
  1743. enableval="$enable_nls"
  1744. USE_NLS=$enableval
  1745. else
  1746. USE_NLS=yes
  1747. fi;
  1748. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  1749. echo "${ECHO_T}$USE_NLS" >&6
  1750. # Prepare PATH_SEPARATOR.
  1751. # The user is always right.
  1752. if test "${PATH_SEPARATOR+set}" != set; then
  1753. echo "#! /bin/sh" >conf$$.sh
  1754. echo "exit 0" >>conf$$.sh
  1755. chmod +x conf$$.sh
  1756. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1757. PATH_SEPARATOR=';'
  1758. else
  1759. PATH_SEPARATOR=:
  1760. fi
  1761. rm -f conf$$.sh
  1762. fi
  1763. # Find out how to test for executable files. Don't use a zero-byte file,
  1764. # as systems may use methods other than mode bits to determine executability.
  1765. cat >conf$$.file <<_ASEOF
  1766. #! /bin/sh
  1767. exit 0
  1768. _ASEOF
  1769. chmod +x conf$$.file
  1770. if test -x conf$$.file >/dev/null 2>&1; then
  1771. ac_executable_p="test -x"
  1772. else
  1773. ac_executable_p="test -f"
  1774. fi
  1775. rm -f conf$$.file
  1776. # Extract the first word of "msgfmt", so it can be a program name with args.
  1777. set dummy msgfmt; ac_word=$2
  1778. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1779. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1780. if test "${ac_cv_path_MSGFMT+set}" = set; then
  1781. echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783. case "$MSGFMT" in
  1784. [\\/]* | ?:[\\/]*)
  1785. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  1786. ;;
  1787. *)
  1788. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1789. for ac_dir in $PATH; do
  1790. IFS="$ac_save_IFS"
  1791. test -z "$ac_dir" && ac_dir=.
  1792. for ac_exec_ext in '' $ac_executable_extensions; do
  1793. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1794. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  1795. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1796. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  1797. break 2
  1798. fi
  1799. fi
  1800. done
  1801. done
  1802. IFS="$ac_save_IFS"
  1803. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  1804. ;;
  1805. esac
  1806. fi
  1807. MSGFMT="$ac_cv_path_MSGFMT"
  1808. if test "$MSGFMT" != ":"; then
  1809. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  1810. echo "${ECHO_T}$MSGFMT" >&6
  1811. else
  1812. echo "$as_me:$LINENO: result: no" >&5
  1813. echo "${ECHO_T}no" >&6
  1814. fi
  1815. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  1816. set dummy gmsgfmt; ac_word=$2
  1817. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1818. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1819. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  1820. echo $ECHO_N "(cached) $ECHO_C" >&6
  1821. else
  1822. case $GMSGFMT in
  1823. [\\/]* | ?:[\\/]*)
  1824. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  1825. ;;
  1826. *)
  1827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1828. for as_dir in $PATH
  1829. do
  1830. IFS=$as_save_IFS
  1831. test -z "$as_dir" && as_dir=.
  1832. for ac_exec_ext in '' $ac_executable_extensions; do
  1833. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1834. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  1835. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1836. break 2
  1837. fi
  1838. done
  1839. done
  1840. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  1841. ;;
  1842. esac
  1843. fi
  1844. GMSGFMT=$ac_cv_path_GMSGFMT
  1845. if test -n "$GMSGFMT"; then
  1846. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  1847. echo "${ECHO_T}$GMSGFMT" >&6
  1848. else
  1849. echo "$as_me:$LINENO: result: no" >&5
  1850. echo "${ECHO_T}no" >&6
  1851. fi
  1852. # Prepare PATH_SEPARATOR.
  1853. # The user is always right.
  1854. if test "${PATH_SEPARATOR+set}" != set; then
  1855. echo "#! /bin/sh" >conf$$.sh
  1856. echo "exit 0" >>conf$$.sh
  1857. chmod +x conf$$.sh
  1858. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1859. PATH_SEPARATOR=';'
  1860. else
  1861. PATH_SEPARATOR=:
  1862. fi
  1863. rm -f conf$$.sh
  1864. fi
  1865. # Find out how to test for executable files. Don't use a zero-byte file,
  1866. # as systems may use methods other than mode bits to determine executability.
  1867. cat >conf$$.file <<_ASEOF
  1868. #! /bin/sh
  1869. exit 0
  1870. _ASEOF
  1871. chmod +x conf$$.file
  1872. if test -x conf$$.file >/dev/null 2>&1; then
  1873. ac_executable_p="test -x"
  1874. else
  1875. ac_executable_p="test -f"
  1876. fi
  1877. rm -f conf$$.file
  1878. # Extract the first word of "xgettext", so it can be a program name with args.
  1879. set dummy xgettext; ac_word=$2
  1880. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1881. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1882. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  1883. echo $ECHO_N "(cached) $ECHO_C" >&6
  1884. else
  1885. case "$XGETTEXT" in
  1886. [\\/]* | ?:[\\/]*)
  1887. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  1888. ;;
  1889. *)
  1890. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1891. for ac_dir in $PATH; do
  1892. IFS="$ac_save_IFS"
  1893. test -z "$ac_dir" && ac_dir=.
  1894. for ac_exec_ext in '' $ac_executable_extensions; do
  1895. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1896. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1897. (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
  1898. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  1899. break 2
  1900. fi
  1901. fi
  1902. done
  1903. done
  1904. IFS="$ac_save_IFS"
  1905. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  1906. ;;
  1907. esac
  1908. fi
  1909. XGETTEXT="$ac_cv_path_XGETTEXT"
  1910. if test "$XGETTEXT" != ":"; then
  1911. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  1912. echo "${ECHO_T}$XGETTEXT" >&6
  1913. else
  1914. echo "$as_me:$LINENO: result: no" >&5
  1915. echo "${ECHO_T}no" >&6
  1916. fi
  1917. rm -f messages.po
  1918. # Prepare PATH_SEPARATOR.
  1919. # The user is always right.
  1920. if test "${PATH_SEPARATOR+set}" != set; then
  1921. echo "#! /bin/sh" >conf$$.sh
  1922. echo "exit 0" >>conf$$.sh
  1923. chmod +x conf$$.sh
  1924. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1925. PATH_SEPARATOR=';'
  1926. else
  1927. PATH_SEPARATOR=:
  1928. fi
  1929. rm -f conf$$.sh
  1930. fi
  1931. # Find out how to test for executable files. Don't use a zero-byte file,
  1932. # as systems may use methods other than mode bits to determine executability.
  1933. cat >conf$$.file <<_ASEOF
  1934. #! /bin/sh
  1935. exit 0
  1936. _ASEOF
  1937. chmod +x conf$$.file
  1938. if test -x conf$$.file >/dev/null 2>&1; then
  1939. ac_executable_p="test -x"
  1940. else
  1941. ac_executable_p="test -f"
  1942. fi
  1943. rm -f conf$$.file
  1944. # Extract the first word of "msgmerge", so it can be a program name with args.
  1945. set dummy msgmerge; ac_word=$2
  1946. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1947. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1948. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  1949. echo $ECHO_N "(cached) $ECHO_C" >&6
  1950. else
  1951. case "$MSGMERGE" in
  1952. [\\/]* | ?:[\\/]*)
  1953. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  1954. ;;
  1955. *)
  1956. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1957. for ac_dir in $PATH; do
  1958. IFS="$ac_save_IFS"
  1959. test -z "$ac_dir" && ac_dir=.
  1960. for ac_exec_ext in '' $ac_executable_extensions; do
  1961. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1962. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  1963. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  1964. break 2
  1965. fi
  1966. fi
  1967. done
  1968. done
  1969. IFS="$ac_save_IFS"
  1970. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  1971. ;;
  1972. esac
  1973. fi
  1974. MSGMERGE="$ac_cv_path_MSGMERGE"
  1975. if test "$MSGMERGE" != ":"; then
  1976. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  1977. echo "${ECHO_T}$MSGMERGE" >&6
  1978. else
  1979. echo "$as_me:$LINENO: result: no" >&5
  1980. echo "${ECHO_T}no" >&6
  1981. fi
  1982. if test "$GMSGFMT" != ":"; then
  1983. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  1984. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1985. : ;
  1986. else
  1987. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  1988. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  1989. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  1990. GMSGFMT=":"
  1991. fi
  1992. fi
  1993. if test "$XGETTEXT" != ":"; then
  1994. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1995. (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
  1996. : ;
  1997. else
  1998. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  1999. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  2000. XGETTEXT=":"
  2001. fi
  2002. rm -f messages.po
  2003. fi
  2004. ac_config_commands="$ac_config_commands default-1"
  2005. if test "X$prefix" = "XNONE"; then
  2006. acl_final_prefix="$ac_default_prefix"
  2007. else
  2008. acl_final_prefix="$prefix"
  2009. fi
  2010. if test "X$exec_prefix" = "XNONE"; then
  2011. acl_final_exec_prefix='${prefix}'
  2012. else
  2013. acl_final_exec_prefix="$exec_prefix"
  2014. fi
  2015. acl_save_prefix="$prefix"
  2016. prefix="$acl_final_prefix"
  2017. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  2018. prefix="$acl_save_prefix"
  2019. DEPDIR="${am__leading_dot}deps"
  2020. ac_config_commands="$ac_config_commands depfiles"
  2021. am_make=${MAKE-make}
  2022. cat > confinc << 'END'
  2023. am__doit:
  2024. @echo done
  2025. .PHONY: am__doit
  2026. END
  2027. # If we don't find an include directive, just comment out the code.
  2028. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2029. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2030. am__include="#"
  2031. am__quote=
  2032. _am_result=none
  2033. # First try GNU make style include.
  2034. echo "include confinc" > confmf
  2035. # We grep out `Entering directory' and `Leaving directory'
  2036. # messages which can occur if `w' ends up in MAKEFLAGS.
  2037. # In particular we don't look at `^make:' because GNU make might
  2038. # be invoked under some other name (usually "gmake"), in which
  2039. # case it prints its new name instead of `make'.
  2040. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2041. am__include=include
  2042. am__quote=
  2043. _am_result=GNU
  2044. fi
  2045. # Now try BSD make style include.
  2046. if test "$am__include" = "#"; then
  2047. echo '.include "confinc"' > confmf
  2048. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2049. am__include=.include
  2050. am__quote="\""
  2051. _am_result=BSD
  2052. fi
  2053. fi
  2054. echo "$as_me:$LINENO: result: $_am_result" >&5
  2055. echo "${ECHO_T}$_am_result" >&6
  2056. rm -f confinc confmf
  2057. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2058. if test "${enable_dependency_tracking+set}" = set; then
  2059. enableval="$enable_dependency_tracking"
  2060. fi;
  2061. if test "x$enable_dependency_tracking" != xno; then
  2062. am_depcomp="$ac_aux_dir/depcomp"
  2063. AMDEPBACKSLASH='\'
  2064. fi
  2065. if test "x$enable_dependency_tracking" != xno; then
  2066. AMDEP_TRUE=
  2067. AMDEP_FALSE='#'
  2068. else
  2069. AMDEP_TRUE='#'
  2070. AMDEP_FALSE=
  2071. fi
  2072. ac_ext=c
  2073. ac_cpp='$CPP $CPPFLAGS'
  2074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2077. if test -n "$ac_tool_prefix"; then
  2078. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2079. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2080. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2082. if test "${ac_cv_prog_CC+set}" = set; then
  2083. echo $ECHO_N "(cached) $ECHO_C" >&6
  2084. else
  2085. if test -n "$CC"; then
  2086. ac_cv_prog_CC="$CC" # Let the user override the test.
  2087. else
  2088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2089. for as_dir in $PATH
  2090. do
  2091. IFS=$as_save_IFS
  2092. test -z "$as_dir" && as_dir=.
  2093. for ac_exec_ext in '' $ac_executable_extensions; do
  2094. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2095. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2096. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2097. break 2
  2098. fi
  2099. done
  2100. done
  2101. fi
  2102. fi
  2103. CC=$ac_cv_prog_CC
  2104. if test -n "$CC"; then
  2105. echo "$as_me:$LINENO: result: $CC" >&5
  2106. echo "${ECHO_T}$CC" >&6
  2107. else
  2108. echo "$as_me:$LINENO: result: no" >&5
  2109. echo "${ECHO_T}no" >&6
  2110. fi
  2111. fi
  2112. if test -z "$ac_cv_prog_CC"; then
  2113. ac_ct_CC=$CC
  2114. # Extract the first word of "gcc", so it can be a program name with args.
  2115. set dummy gcc; ac_word=$2
  2116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2118. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2119. echo $ECHO_N "(cached) $ECHO_C" >&6
  2120. else
  2121. if test -n "$ac_ct_CC"; then
  2122. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. for ac_exec_ext in '' $ac_executable_extensions; do
  2130. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2131. ac_cv_prog_ac_ct_CC="gcc"
  2132. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2133. break 2
  2134. fi
  2135. done
  2136. done
  2137. fi
  2138. fi
  2139. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2140. if test -n "$ac_ct_CC"; then
  2141. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2142. echo "${ECHO_T}$ac_ct_CC" >&6
  2143. else
  2144. echo "$as_me:$LINENO: result: no" >&5
  2145. echo "${ECHO_T}no" >&6
  2146. fi
  2147. CC=$ac_ct_CC
  2148. else
  2149. CC="$ac_cv_prog_CC"
  2150. fi
  2151. if test -z "$CC"; then
  2152. if test -n "$ac_tool_prefix"; then
  2153. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2154. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2155. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2157. if test "${ac_cv_prog_CC+set}" = set; then
  2158. echo $ECHO_N "(cached) $ECHO_C" >&6
  2159. else
  2160. if test -n "$CC"; then
  2161. ac_cv_prog_CC="$CC" # Let the user override the test.
  2162. else
  2163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2164. for as_dir in $PATH
  2165. do
  2166. IFS=$as_save_IFS
  2167. test -z "$as_dir" && as_dir=.
  2168. for ac_exec_ext in '' $ac_executable_extensions; do
  2169. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2170. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2171. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2172. break 2
  2173. fi
  2174. done
  2175. done
  2176. fi
  2177. fi
  2178. CC=$ac_cv_prog_CC
  2179. if test -n "$CC"; then
  2180. echo "$as_me:$LINENO: result: $CC" >&5
  2181. echo "${ECHO_T}$CC" >&6
  2182. else
  2183. echo "$as_me:$LINENO: result: no" >&5
  2184. echo "${ECHO_T}no" >&6
  2185. fi
  2186. fi
  2187. if test -z "$ac_cv_prog_CC"; then
  2188. ac_ct_CC=$CC
  2189. # Extract the first word of "cc", so it can be a program name with args.
  2190. set dummy cc; ac_word=$2
  2191. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2192. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2193. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2194. echo $ECHO_N "(cached) $ECHO_C" >&6
  2195. else
  2196. if test -n "$ac_ct_CC"; then
  2197. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2198. else
  2199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2200. for as_dir in $PATH
  2201. do
  2202. IFS=$as_save_IFS
  2203. test -z "$as_dir" && as_dir=.
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2206. ac_cv_prog_ac_ct_CC="cc"
  2207. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2208. break 2
  2209. fi
  2210. done
  2211. done
  2212. fi
  2213. fi
  2214. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2215. if test -n "$ac_ct_CC"; then
  2216. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2217. echo "${ECHO_T}$ac_ct_CC" >&6
  2218. else
  2219. echo "$as_me:$LINENO: result: no" >&5
  2220. echo "${ECHO_T}no" >&6
  2221. fi
  2222. CC=$ac_ct_CC
  2223. else
  2224. CC="$ac_cv_prog_CC"
  2225. fi
  2226. fi
  2227. if test -z "$CC"; then
  2228. # Extract the first word of "cc", so it can be a program name with args.
  2229. set dummy cc; ac_word=$2
  2230. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2232. if test "${ac_cv_prog_CC+set}" = set; then
  2233. echo $ECHO_N "(cached) $ECHO_C" >&6
  2234. else
  2235. if test -n "$CC"; then
  2236. ac_cv_prog_CC="$CC" # Let the user override the test.
  2237. else
  2238. ac_prog_rejected=no
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242. IFS=$as_save_IFS
  2243. test -z "$as_dir" && as_dir=.
  2244. for ac_exec_ext in '' $ac_executable_extensions; do
  2245. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2246. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2247. ac_prog_rejected=yes
  2248. continue
  2249. fi
  2250. ac_cv_prog_CC="cc"
  2251. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. if test $ac_prog_rejected = yes; then
  2257. # We found a bogon in the path, so make sure we never use it.
  2258. set dummy $ac_cv_prog_CC
  2259. shift
  2260. if test $# != 0; then
  2261. # We chose a different compiler from the bogus one.
  2262. # However, it has the same basename, so the bogon will be chosen
  2263. # first if we set CC to just the basename; use the full file name.
  2264. shift
  2265. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2266. fi
  2267. fi
  2268. fi
  2269. fi
  2270. CC=$ac_cv_prog_CC
  2271. if test -n "$CC"; then
  2272. echo "$as_me:$LINENO: result: $CC" >&5
  2273. echo "${ECHO_T}$CC" >&6
  2274. else
  2275. echo "$as_me:$LINENO: result: no" >&5
  2276. echo "${ECHO_T}no" >&6
  2277. fi
  2278. fi
  2279. if test -z "$CC"; then
  2280. if test -n "$ac_tool_prefix"; then
  2281. for ac_prog in cl
  2282. do
  2283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2285. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2287. if test "${ac_cv_prog_CC+set}" = set; then
  2288. echo $ECHO_N "(cached) $ECHO_C" >&6
  2289. else
  2290. if test -n "$CC"; then
  2291. ac_cv_prog_CC="$CC" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2300. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. fi
  2307. fi
  2308. CC=$ac_cv_prog_CC
  2309. if test -n "$CC"; then
  2310. echo "$as_me:$LINENO: result: $CC" >&5
  2311. echo "${ECHO_T}$CC" >&6
  2312. else
  2313. echo "$as_me:$LINENO: result: no" >&5
  2314. echo "${ECHO_T}no" >&6
  2315. fi
  2316. test -n "$CC" && break
  2317. done
  2318. fi
  2319. if test -z "$CC"; then
  2320. ac_ct_CC=$CC
  2321. for ac_prog in cl
  2322. do
  2323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2324. set dummy $ac_prog; ac_word=$2
  2325. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2327. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2328. echo $ECHO_N "(cached) $ECHO_C" >&6
  2329. else
  2330. if test -n "$ac_ct_CC"; then
  2331. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2340. ac_cv_prog_ac_ct_CC="$ac_prog"
  2341. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. fi
  2347. fi
  2348. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2349. if test -n "$ac_ct_CC"; then
  2350. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2351. echo "${ECHO_T}$ac_ct_CC" >&6
  2352. else
  2353. echo "$as_me:$LINENO: result: no" >&5
  2354. echo "${ECHO_T}no" >&6
  2355. fi
  2356. test -n "$ac_ct_CC" && break
  2357. done
  2358. CC=$ac_ct_CC
  2359. fi
  2360. fi
  2361. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2362. See \`config.log' for more details." >&5
  2363. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2364. See \`config.log' for more details." >&2;}
  2365. { (exit 1); exit 1; }; }
  2366. # Provide some information about the compiler.
  2367. echo "$as_me:$LINENO:" \
  2368. "checking for C compiler version" >&5
  2369. ac_compiler=`set X $ac_compile; echo $2`
  2370. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2371. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2372. ac_status=$?
  2373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2374. (exit $ac_status); }
  2375. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2376. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2377. ac_status=$?
  2378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2379. (exit $ac_status); }
  2380. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2381. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2382. ac_status=$?
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); }
  2385. cat >conftest.$ac_ext <<_ACEOF
  2386. /* confdefs.h. */
  2387. _ACEOF
  2388. cat confdefs.h >>conftest.$ac_ext
  2389. cat >>conftest.$ac_ext <<_ACEOF
  2390. /* end confdefs.h. */
  2391. int
  2392. main ()
  2393. {
  2394. ;
  2395. return 0;
  2396. }
  2397. _ACEOF
  2398. ac_clean_files_save=$ac_clean_files
  2399. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2400. # Try to create an executable without -o first, disregard a.out.
  2401. # It will help us diagnose broken compilers, and finding out an intuition
  2402. # of exeext.
  2403. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2404. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2405. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2406. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2407. (eval $ac_link_default) 2>&5
  2408. ac_status=$?
  2409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2410. (exit $ac_status); }; then
  2411. # Find the output, starting from the most likely. This scheme is
  2412. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2413. # resort.
  2414. # Be careful to initialize this variable, since it used to be cached.
  2415. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2416. ac_cv_exeext=
  2417. # b.out is created by i960 compilers.
  2418. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2419. do
  2420. test -f "$ac_file" || continue
  2421. case $ac_file in
  2422. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2423. ;;
  2424. conftest.$ac_ext )
  2425. # This is the source file.
  2426. ;;
  2427. [ab].out )
  2428. # We found the default executable, but exeext='' is most
  2429. # certainly right.
  2430. break;;
  2431. *.* )
  2432. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2433. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2434. # but it would be cool to find out if it's true. Does anybody
  2435. # maintain Libtool? --akim.
  2436. export ac_cv_exeext
  2437. break;;
  2438. * )
  2439. break;;
  2440. esac
  2441. done
  2442. else
  2443. echo "$as_me: failed program was:" >&5
  2444. sed 's/^/| /' conftest.$ac_ext >&5
  2445. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2446. See \`config.log' for more details." >&5
  2447. echo "$as_me: error: C compiler cannot create executables
  2448. See \`config.log' for more details." >&2;}
  2449. { (exit 77); exit 77; }; }
  2450. fi
  2451. ac_exeext=$ac_cv_exeext
  2452. echo "$as_me:$LINENO: result: $ac_file" >&5
  2453. echo "${ECHO_T}$ac_file" >&6
  2454. # Check the compiler produces executables we can run. If not, either
  2455. # the compiler is broken, or we cross compile.
  2456. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2457. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2458. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2459. # If not cross compiling, check that we can run a simple program.
  2460. if test "$cross_compiling" != yes; then
  2461. if { ac_try='./$ac_file'
  2462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2463. (eval $ac_try) 2>&5
  2464. ac_status=$?
  2465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2466. (exit $ac_status); }; }; then
  2467. cross_compiling=no
  2468. else
  2469. if test "$cross_compiling" = maybe; then
  2470. cross_compiling=yes
  2471. else
  2472. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2473. If you meant to cross compile, use \`--host'.
  2474. See \`config.log' for more details." >&5
  2475. echo "$as_me: error: cannot run C compiled programs.
  2476. If you meant to cross compile, use \`--host'.
  2477. See \`config.log' for more details." >&2;}
  2478. { (exit 1); exit 1; }; }
  2479. fi
  2480. fi
  2481. fi
  2482. echo "$as_me:$LINENO: result: yes" >&5
  2483. echo "${ECHO_T}yes" >&6
  2484. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2485. ac_clean_files=$ac_clean_files_save
  2486. # Check the compiler produces executables we can run. If not, either
  2487. # the compiler is broken, or we cross compile.
  2488. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2489. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2490. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2491. echo "${ECHO_T}$cross_compiling" >&6
  2492. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2493. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2495. (eval $ac_link) 2>&5
  2496. ac_status=$?
  2497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2498. (exit $ac_status); }; then
  2499. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2500. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2501. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2502. # `rm'.
  2503. for ac_file in conftest.exe conftest conftest.*; do
  2504. test -f "$ac_file" || continue
  2505. case $ac_file in
  2506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2507. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2508. export ac_cv_exeext
  2509. break;;
  2510. * ) break;;
  2511. esac
  2512. done
  2513. else
  2514. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2515. See \`config.log' for more details." >&5
  2516. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2517. See \`config.log' for more details." >&2;}
  2518. { (exit 1); exit 1; }; }
  2519. fi
  2520. rm -f conftest$ac_cv_exeext
  2521. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2522. echo "${ECHO_T}$ac_cv_exeext" >&6
  2523. rm -f conftest.$ac_ext
  2524. EXEEXT=$ac_cv_exeext
  2525. ac_exeext=$EXEEXT
  2526. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2527. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2528. if test "${ac_cv_objext+set}" = set; then
  2529. echo $ECHO_N "(cached) $ECHO_C" >&6
  2530. else
  2531. cat >conftest.$ac_ext <<_ACEOF
  2532. /* confdefs.h. */
  2533. _ACEOF
  2534. cat confdefs.h >>conftest.$ac_ext
  2535. cat >>conftest.$ac_ext <<_ACEOF
  2536. /* end confdefs.h. */
  2537. int
  2538. main ()
  2539. {
  2540. ;
  2541. return 0;
  2542. }
  2543. _ACEOF
  2544. rm -f conftest.o conftest.obj
  2545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2546. (eval $ac_compile) 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }; then
  2550. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2551. case $ac_file in
  2552. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2553. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2554. break;;
  2555. esac
  2556. done
  2557. else
  2558. echo "$as_me: failed program was:" >&5
  2559. sed 's/^/| /' conftest.$ac_ext >&5
  2560. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2561. See \`config.log' for more details." >&5
  2562. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2563. See \`config.log' for more details." >&2;}
  2564. { (exit 1); exit 1; }; }
  2565. fi
  2566. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2567. fi
  2568. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2569. echo "${ECHO_T}$ac_cv_objext" >&6
  2570. OBJEXT=$ac_cv_objext
  2571. ac_objext=$OBJEXT
  2572. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2573. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2574. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2575. echo $ECHO_N "(cached) $ECHO_C" >&6
  2576. else
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. int
  2584. main ()
  2585. {
  2586. #ifndef __GNUC__
  2587. choke me
  2588. #endif
  2589. ;
  2590. return 0;
  2591. }
  2592. _ACEOF
  2593. rm -f conftest.$ac_objext
  2594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2595. (eval $ac_compile) 2>conftest.er1
  2596. ac_status=$?
  2597. grep -v '^ *+' conftest.er1 >conftest.err
  2598. rm -f conftest.er1
  2599. cat conftest.err >&5
  2600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); } &&
  2602. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2604. (eval $ac_try) 2>&5
  2605. ac_status=$?
  2606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2607. (exit $ac_status); }; } &&
  2608. { ac_try='test -s conftest.$ac_objext'
  2609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2610. (eval $ac_try) 2>&5
  2611. ac_status=$?
  2612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2613. (exit $ac_status); }; }; then
  2614. ac_compiler_gnu=yes
  2615. else
  2616. echo "$as_me: failed program was:" >&5
  2617. sed 's/^/| /' conftest.$ac_ext >&5
  2618. ac_compiler_gnu=no
  2619. fi
  2620. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2621. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2622. fi
  2623. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2624. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2625. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2626. ac_test_CFLAGS=${CFLAGS+set}
  2627. ac_save_CFLAGS=$CFLAGS
  2628. CFLAGS="-g"
  2629. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2630. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2631. if test "${ac_cv_prog_cc_g+set}" = set; then
  2632. echo $ECHO_N "(cached) $ECHO_C" >&6
  2633. else
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. int
  2641. main ()
  2642. {
  2643. ;
  2644. return 0;
  2645. }
  2646. _ACEOF
  2647. rm -f conftest.$ac_objext
  2648. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2649. (eval $ac_compile) 2>conftest.er1
  2650. ac_status=$?
  2651. grep -v '^ *+' conftest.er1 >conftest.err
  2652. rm -f conftest.er1
  2653. cat conftest.err >&5
  2654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. (exit $ac_status); } &&
  2656. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2658. (eval $ac_try) 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; } &&
  2662. { ac_try='test -s conftest.$ac_objext'
  2663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2664. (eval $ac_try) 2>&5
  2665. ac_status=$?
  2666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2667. (exit $ac_status); }; }; then
  2668. ac_cv_prog_cc_g=yes
  2669. else
  2670. echo "$as_me: failed program was:" >&5
  2671. sed 's/^/| /' conftest.$ac_ext >&5
  2672. ac_cv_prog_cc_g=no
  2673. fi
  2674. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2675. fi
  2676. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2677. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2678. if test "$ac_test_CFLAGS" = set; then
  2679. CFLAGS=$ac_save_CFLAGS
  2680. elif test $ac_cv_prog_cc_g = yes; then
  2681. if test "$GCC" = yes; then
  2682. CFLAGS="-g -O2"
  2683. else
  2684. CFLAGS="-g"
  2685. fi
  2686. else
  2687. if test "$GCC" = yes; then
  2688. CFLAGS="-O2"
  2689. else
  2690. CFLAGS=
  2691. fi
  2692. fi
  2693. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2694. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2695. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2696. echo $ECHO_N "(cached) $ECHO_C" >&6
  2697. else
  2698. ac_cv_prog_cc_stdc=no
  2699. ac_save_CC=$CC
  2700. cat >conftest.$ac_ext <<_ACEOF
  2701. /* confdefs.h. */
  2702. _ACEOF
  2703. cat confdefs.h >>conftest.$ac_ext
  2704. cat >>conftest.$ac_ext <<_ACEOF
  2705. /* end confdefs.h. */
  2706. #include <stdarg.h>
  2707. #include <stdio.h>
  2708. #include <sys/types.h>
  2709. #include <sys/stat.h>
  2710. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2711. struct buf { int x; };
  2712. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2713. static char *e (p, i)
  2714. char **p;
  2715. int i;
  2716. {
  2717. return p[i];
  2718. }
  2719. static char *f (char * (*g) (char **, int), char **p, ...)
  2720. {
  2721. char *s;
  2722. va_list v;
  2723. va_start (v,p);
  2724. s = g (p, va_arg (v,int));
  2725. va_end (v);
  2726. return s;
  2727. }
  2728. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2729. function prototypes and stuff, but not '\xHH' hex character constants.
  2730. These don't provoke an error unfortunately, instead are silently treated
  2731. as 'x'. The following induces an error, until -std1 is added to get
  2732. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2733. array size at least. It's necessary to write '\x00'==0 to get something
  2734. that's true only with -std1. */
  2735. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2736. int test (int i, double x);
  2737. struct s1 {int (*f) (int a);};
  2738. struct s2 {int (*f) (double a);};
  2739. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2740. int argc;
  2741. char **argv;
  2742. int
  2743. main ()
  2744. {
  2745. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2746. ;
  2747. return 0;
  2748. }
  2749. _ACEOF
  2750. # Don't try gcc -ansi; that turns off useful extensions and
  2751. # breaks some systems' header files.
  2752. # AIX -qlanglvl=ansi
  2753. # Ultrix and OSF/1 -std1
  2754. # HP-UX 10.20 and later -Ae
  2755. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2756. # SVR4 -Xc -D__EXTENSIONS__
  2757. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2758. do
  2759. CC="$ac_save_CC $ac_arg"
  2760. rm -f conftest.$ac_objext
  2761. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2762. (eval $ac_compile) 2>conftest.er1
  2763. ac_status=$?
  2764. grep -v '^ *+' conftest.er1 >conftest.err
  2765. rm -f conftest.er1
  2766. cat conftest.err >&5
  2767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768. (exit $ac_status); } &&
  2769. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2771. (eval $ac_try) 2>&5
  2772. ac_status=$?
  2773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2774. (exit $ac_status); }; } &&
  2775. { ac_try='test -s conftest.$ac_objext'
  2776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2777. (eval $ac_try) 2>&5
  2778. ac_status=$?
  2779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780. (exit $ac_status); }; }; then
  2781. ac_cv_prog_cc_stdc=$ac_arg
  2782. break
  2783. else
  2784. echo "$as_me: failed program was:" >&5
  2785. sed 's/^/| /' conftest.$ac_ext >&5
  2786. fi
  2787. rm -f conftest.err conftest.$ac_objext
  2788. done
  2789. rm -f conftest.$ac_ext conftest.$ac_objext
  2790. CC=$ac_save_CC
  2791. fi
  2792. case "x$ac_cv_prog_cc_stdc" in
  2793. x|xno)
  2794. echo "$as_me:$LINENO: result: none needed" >&5
  2795. echo "${ECHO_T}none needed" >&6 ;;
  2796. *)
  2797. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2798. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2799. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2800. esac
  2801. # Some people use a C++ compiler to compile C. Since we use `exit',
  2802. # in C++ we need to declare it. In case someone uses the same compiler
  2803. # for both compiling C and C++ we need to have the C++ compiler decide
  2804. # the declaration of exit, since it's the most demanding environment.
  2805. cat >conftest.$ac_ext <<_ACEOF
  2806. #ifndef __cplusplus
  2807. choke me
  2808. #endif
  2809. _ACEOF
  2810. rm -f conftest.$ac_objext
  2811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2812. (eval $ac_compile) 2>conftest.er1
  2813. ac_status=$?
  2814. grep -v '^ *+' conftest.er1 >conftest.err
  2815. rm -f conftest.er1
  2816. cat conftest.err >&5
  2817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2818. (exit $ac_status); } &&
  2819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2821. (eval $ac_try) 2>&5
  2822. ac_status=$?
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); }; } &&
  2825. { ac_try='test -s conftest.$ac_objext'
  2826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2827. (eval $ac_try) 2>&5
  2828. ac_status=$?
  2829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2830. (exit $ac_status); }; }; then
  2831. for ac_declaration in \
  2832. '' \
  2833. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2834. 'extern "C" void std::exit (int); using std::exit;' \
  2835. 'extern "C" void exit (int) throw ();' \
  2836. 'extern "C" void exit (int);' \
  2837. 'void exit (int);'
  2838. do
  2839. cat >conftest.$ac_ext <<_ACEOF
  2840. /* confdefs.h. */
  2841. _ACEOF
  2842. cat confdefs.h >>conftest.$ac_ext
  2843. cat >>conftest.$ac_ext <<_ACEOF
  2844. /* end confdefs.h. */
  2845. $ac_declaration
  2846. #include <stdlib.h>
  2847. int
  2848. main ()
  2849. {
  2850. exit (42);
  2851. ;
  2852. return 0;
  2853. }
  2854. _ACEOF
  2855. rm -f conftest.$ac_objext
  2856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2857. (eval $ac_compile) 2>conftest.er1
  2858. ac_status=$?
  2859. grep -v '^ *+' conftest.er1 >conftest.err
  2860. rm -f conftest.er1
  2861. cat conftest.err >&5
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); } &&
  2864. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2866. (eval $ac_try) 2>&5
  2867. ac_status=$?
  2868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869. (exit $ac_status); }; } &&
  2870. { ac_try='test -s conftest.$ac_objext'
  2871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2872. (eval $ac_try) 2>&5
  2873. ac_status=$?
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; }; then
  2876. :
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. continue
  2881. fi
  2882. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2883. cat >conftest.$ac_ext <<_ACEOF
  2884. /* confdefs.h. */
  2885. _ACEOF
  2886. cat confdefs.h >>conftest.$ac_ext
  2887. cat >>conftest.$ac_ext <<_ACEOF
  2888. /* end confdefs.h. */
  2889. $ac_declaration
  2890. int
  2891. main ()
  2892. {
  2893. exit (42);
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. rm -f conftest.$ac_objext
  2899. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2900. (eval $ac_compile) 2>conftest.er1
  2901. ac_status=$?
  2902. grep -v '^ *+' conftest.er1 >conftest.err
  2903. rm -f conftest.er1
  2904. cat conftest.err >&5
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); } &&
  2907. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2909. (eval $ac_try) 2>&5
  2910. ac_status=$?
  2911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); }; } &&
  2913. { ac_try='test -s conftest.$ac_objext'
  2914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2915. (eval $ac_try) 2>&5
  2916. ac_status=$?
  2917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918. (exit $ac_status); }; }; then
  2919. break
  2920. else
  2921. echo "$as_me: failed program was:" >&5
  2922. sed 's/^/| /' conftest.$ac_ext >&5
  2923. fi
  2924. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2925. done
  2926. rm -f conftest*
  2927. if test -n "$ac_declaration"; then
  2928. echo '#ifdef __cplusplus' >>confdefs.h
  2929. echo $ac_declaration >>confdefs.h
  2930. echo '#endif' >>confdefs.h
  2931. fi
  2932. else
  2933. echo "$as_me: failed program was:" >&5
  2934. sed 's/^/| /' conftest.$ac_ext >&5
  2935. fi
  2936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2937. ac_ext=c
  2938. ac_cpp='$CPP $CPPFLAGS'
  2939. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2940. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2941. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2942. depcc="$CC" am_compiler_list=
  2943. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2944. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2945. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2946. echo $ECHO_N "(cached) $ECHO_C" >&6
  2947. else
  2948. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2949. # We make a subdir and do the tests there. Otherwise we can end up
  2950. # making bogus files that we don't know about and never remove. For
  2951. # instance it was reported that on HP-UX the gcc test will end up
  2952. # making a dummy file named `D' -- because `-MD' means `put the output
  2953. # in D'.
  2954. mkdir conftest.dir
  2955. # Copy depcomp to subdir because otherwise we won't find it if we're
  2956. # using a relative directory.
  2957. cp "$am_depcomp" conftest.dir
  2958. cd conftest.dir
  2959. # We will build objects and dependencies in a subdirectory because
  2960. # it helps to detect inapplicable dependency modes. For instance
  2961. # both Tru64's cc and ICC support -MD to output dependencies as a
  2962. # side effect of compilation, but ICC will put the dependencies in
  2963. # the current directory while Tru64 will put them in the object
  2964. # directory.
  2965. mkdir sub
  2966. am_cv_CC_dependencies_compiler_type=none
  2967. if test "$am_compiler_list" = ""; then
  2968. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2969. fi
  2970. for depmode in $am_compiler_list; do
  2971. # Setup a source with many dependencies, because some compilers
  2972. # like to wrap large dependency lists on column 80 (with \), and
  2973. # we should not choose a depcomp mode which is confused by this.
  2974. #
  2975. # We need to recreate these files for each test, as the compiler may
  2976. # overwrite some of them when testing with obscure command lines.
  2977. # This happens at least with the AIX C compiler.
  2978. : > sub/conftest.c
  2979. for i in 1 2 3 4 5 6; do
  2980. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2981. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2982. # Solaris 8's {/usr,}/bin/sh.
  2983. touch sub/conftst$i.h
  2984. done
  2985. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2986. case $depmode in
  2987. nosideeffect)
  2988. # after this tag, mechanisms are not by side-effect, so they'll
  2989. # only be used when explicitly requested
  2990. if test "x$enable_dependency_tracking" = xyes; then
  2991. continue
  2992. else
  2993. break
  2994. fi
  2995. ;;
  2996. none) break ;;
  2997. esac
  2998. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2999. # mode. It turns out that the SunPro C++ compiler does not properly
  3000. # handle `-M -o', and we need to detect this.
  3001. if depmode=$depmode \
  3002. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3003. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3004. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3005. >/dev/null 2>conftest.err &&
  3006. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3007. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3008. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3009. # icc doesn't choke on unknown options, it will just issue warnings
  3010. # or remarks (even with -Werror). So we grep stderr for any message
  3011. # that says an option was ignored or not supported.
  3012. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3013. # icc: Command line warning: ignoring option '-M'; no argument required
  3014. # The diagnosis changed in icc 8.0:
  3015. # icc: Command line remark: option '-MP' not supported
  3016. if (grep 'ignoring option' conftest.err ||
  3017. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3018. am_cv_CC_dependencies_compiler_type=$depmode
  3019. break
  3020. fi
  3021. fi
  3022. done
  3023. cd ..
  3024. rm -rf conftest.dir
  3025. else
  3026. am_cv_CC_dependencies_compiler_type=none
  3027. fi
  3028. fi
  3029. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3030. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3031. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3032. if
  3033. test "x$enable_dependency_tracking" != xno \
  3034. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3035. am__fastdepCC_TRUE=
  3036. am__fastdepCC_FALSE='#'
  3037. else
  3038. am__fastdepCC_TRUE='#'
  3039. am__fastdepCC_FALSE=
  3040. fi
  3041. # Make sure we can run config.sub.
  3042. $ac_config_sub sun4 >/dev/null 2>&1 ||
  3043. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3044. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3045. { (exit 1); exit 1; }; }
  3046. echo "$as_me:$LINENO: checking build system type" >&5
  3047. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3048. if test "${ac_cv_build+set}" = set; then
  3049. echo $ECHO_N "(cached) $ECHO_C" >&6
  3050. else
  3051. ac_cv_build_alias=$build_alias
  3052. test -z "$ac_cv_build_alias" &&
  3053. ac_cv_build_alias=`$ac_config_guess`
  3054. test -z "$ac_cv_build_alias" &&
  3055. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3056. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3057. { (exit 1); exit 1; }; }
  3058. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3059. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3060. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3061. { (exit 1); exit 1; }; }
  3062. fi
  3063. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3064. echo "${ECHO_T}$ac_cv_build" >&6
  3065. build=$ac_cv_build
  3066. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3067. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3068. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3069. echo "$as_me:$LINENO: checking host system type" >&5
  3070. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3071. if test "${ac_cv_host+set}" = set; then
  3072. echo $ECHO_N "(cached) $ECHO_C" >&6
  3073. else
  3074. ac_cv_host_alias=$host_alias
  3075. test -z "$ac_cv_host_alias" &&
  3076. ac_cv_host_alias=$ac_cv_build_alias
  3077. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3078. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3079. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3080. { (exit 1); exit 1; }; }
  3081. fi
  3082. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3083. echo "${ECHO_T}$ac_cv_host" >&6
  3084. host=$ac_cv_host
  3085. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3086. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3087. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3088. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3089. if test "${with_gnu_ld+set}" = set; then
  3090. withval="$with_gnu_ld"
  3091. test "$withval" = no || with_gnu_ld=yes
  3092. else
  3093. with_gnu_ld=no
  3094. fi;
  3095. # Prepare PATH_SEPARATOR.
  3096. # The user is always right.
  3097. if test "${PATH_SEPARATOR+set}" != set; then
  3098. echo "#! /bin/sh" >conf$$.sh
  3099. echo "exit 0" >>conf$$.sh
  3100. chmod +x conf$$.sh
  3101. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3102. PATH_SEPARATOR=';'
  3103. else
  3104. PATH_SEPARATOR=:
  3105. fi
  3106. rm -f conf$$.sh
  3107. fi
  3108. ac_prog=ld
  3109. if test "$GCC" = yes; then
  3110. # Check if gcc -print-prog-name=ld gives a path.
  3111. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  3112. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  3113. case $host in
  3114. *-*-mingw*)
  3115. # gcc leaves a trailing carriage return which upsets mingw
  3116. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3117. *)
  3118. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3119. esac
  3120. case $ac_prog in
  3121. # Accept absolute paths.
  3122. [\\/]* | [A-Za-z]:[\\/]*)
  3123. re_direlt='/[^/][^/]*/\.\./'
  3124. # Canonicalize the path of ld
  3125. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3126. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3127. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  3128. done
  3129. test -z "$LD" && LD="$ac_prog"
  3130. ;;
  3131. "")
  3132. # If it fails, then pretend we aren't using GCC.
  3133. ac_prog=ld
  3134. ;;
  3135. *)
  3136. # If it is relative, then search for the first ld in PATH.
  3137. with_gnu_ld=unknown
  3138. ;;
  3139. esac
  3140. elif test "$with_gnu_ld" = yes; then
  3141. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3142. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3143. else
  3144. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3145. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3146. fi
  3147. if test "${acl_cv_path_LD+set}" = set; then
  3148. echo $ECHO_N "(cached) $ECHO_C" >&6
  3149. else
  3150. if test -z "$LD"; then
  3151. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3152. for ac_dir in $PATH; do
  3153. test -z "$ac_dir" && ac_dir=.
  3154. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3155. acl_cv_path_LD="$ac_dir/$ac_prog"
  3156. # Check to see if the program is GNU ld. I'd rather use --version,
  3157. # but apparently some GNU ld's only accept -v.
  3158. # Break only if it was the GNU/non-GNU ld that we prefer.
  3159. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  3160. test "$with_gnu_ld" != no && break
  3161. else
  3162. test "$with_gnu_ld" != yes && break
  3163. fi
  3164. fi
  3165. done
  3166. IFS="$ac_save_ifs"
  3167. else
  3168. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  3169. fi
  3170. fi
  3171. LD="$acl_cv_path_LD"
  3172. if test -n "$LD"; then
  3173. echo "$as_me:$LINENO: result: $LD" >&5
  3174. echo "${ECHO_T}$LD" >&6
  3175. else
  3176. echo "$as_me:$LINENO: result: no" >&5
  3177. echo "${ECHO_T}no" >&6
  3178. fi
  3179. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3180. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3181. { (exit 1); exit 1; }; }
  3182. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3183. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3184. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  3185. echo $ECHO_N "(cached) $ECHO_C" >&6
  3186. else
  3187. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3188. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  3189. acl_cv_prog_gnu_ld=yes
  3190. else
  3191. acl_cv_prog_gnu_ld=no
  3192. fi
  3193. fi
  3194. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  3195. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  3196. with_gnu_ld=$acl_cv_prog_gnu_ld
  3197. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  3198. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  3199. if test "${acl_cv_rpath+set}" = set; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  3203. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  3204. . ./conftest.sh
  3205. rm -f ./conftest.sh
  3206. acl_cv_rpath=done
  3207. fi
  3208. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  3209. echo "${ECHO_T}$acl_cv_rpath" >&6
  3210. wl="$acl_cv_wl"
  3211. libext="$acl_cv_libext"
  3212. shlibext="$acl_cv_shlibext"
  3213. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  3214. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  3215. hardcode_direct="$acl_cv_hardcode_direct"
  3216. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  3217. # Check whether --enable-rpath or --disable-rpath was given.
  3218. if test "${enable_rpath+set}" = set; then
  3219. enableval="$enable_rpath"
  3220. :
  3221. else
  3222. enable_rpath=yes
  3223. fi;
  3224. use_additional=yes
  3225. acl_save_prefix="$prefix"
  3226. prefix="$acl_final_prefix"
  3227. acl_save_exec_prefix="$exec_prefix"
  3228. exec_prefix="$acl_final_exec_prefix"
  3229. eval additional_includedir=\"$includedir\"
  3230. eval additional_libdir=\"$libdir\"
  3231. exec_prefix="$acl_save_exec_prefix"
  3232. prefix="$acl_save_prefix"
  3233. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  3234. if test "${with_libiconv_prefix+set}" = set; then
  3235. withval="$with_libiconv_prefix"
  3236. if test "X$withval" = "Xno"; then
  3237. use_additional=no
  3238. else
  3239. if test "X$withval" = "X"; then
  3240. acl_save_prefix="$prefix"
  3241. prefix="$acl_final_prefix"
  3242. acl_save_exec_prefix="$exec_prefix"
  3243. exec_prefix="$acl_final_exec_prefix"
  3244. eval additional_includedir=\"$includedir\"
  3245. eval additional_libdir=\"$libdir\"
  3246. exec_prefix="$acl_save_exec_prefix"
  3247. prefix="$acl_save_prefix"
  3248. else
  3249. additional_includedir="$withval/include"
  3250. additional_libdir="$withval/lib"
  3251. fi
  3252. fi
  3253. fi;
  3254. LIBICONV=
  3255. LTLIBICONV=
  3256. INCICONV=
  3257. rpathdirs=
  3258. ltrpathdirs=
  3259. names_already_handled=
  3260. names_next_round='iconv '
  3261. while test -n "$names_next_round"; do
  3262. names_this_round="$names_next_round"
  3263. names_next_round=
  3264. for name in $names_this_round; do
  3265. already_handled=
  3266. for n in $names_already_handled; do
  3267. if test "$n" = "$name"; then
  3268. already_handled=yes
  3269. break
  3270. fi
  3271. done
  3272. if test -z "$already_handled"; then
  3273. names_already_handled="$names_already_handled $name"
  3274. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  3275. eval value=\"\$HAVE_LIB$uppername\"
  3276. if test -n "$value"; then
  3277. if test "$value" = yes; then
  3278. eval value=\"\$LIB$uppername\"
  3279. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  3280. eval value=\"\$LTLIB$uppername\"
  3281. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  3282. else
  3283. :
  3284. fi
  3285. else
  3286. found_dir=
  3287. found_la=
  3288. found_so=
  3289. found_a=
  3290. if test $use_additional = yes; then
  3291. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  3292. found_dir="$additional_libdir"
  3293. found_so="$additional_libdir/lib$name.$shlibext"
  3294. if test -f "$additional_libdir/lib$name.la"; then
  3295. found_la="$additional_libdir/lib$name.la"
  3296. fi
  3297. else
  3298. if test -f "$additional_libdir/lib$name.$libext"; then
  3299. found_dir="$additional_libdir"
  3300. found_a="$additional_libdir/lib$name.$libext"
  3301. if test -f "$additional_libdir/lib$name.la"; then
  3302. found_la="$additional_libdir/lib$name.la"
  3303. fi
  3304. fi
  3305. fi
  3306. fi
  3307. if test "X$found_dir" = "X"; then
  3308. for x in $LDFLAGS $LTLIBICONV; do
  3309. acl_save_prefix="$prefix"
  3310. prefix="$acl_final_prefix"
  3311. acl_save_exec_prefix="$exec_prefix"
  3312. exec_prefix="$acl_final_exec_prefix"
  3313. eval x=\"$x\"
  3314. exec_prefix="$acl_save_exec_prefix"
  3315. prefix="$acl_save_prefix"
  3316. case "$x" in
  3317. -L*)
  3318. dir=`echo "X$x" | sed -e 's/^X-L//'`
  3319. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  3320. found_dir="$dir"
  3321. found_so="$dir/lib$name.$shlibext"
  3322. if test -f "$dir/lib$name.la"; then
  3323. found_la="$dir/lib$name.la"
  3324. fi
  3325. else
  3326. if test -f "$dir/lib$name.$libext"; then
  3327. found_dir="$dir"
  3328. found_a="$dir/lib$name.$libext"
  3329. if test -f "$dir/lib$name.la"; then
  3330. found_la="$dir/lib$name.la"
  3331. fi
  3332. fi
  3333. fi
  3334. ;;
  3335. esac
  3336. if test "X$found_dir" != "X"; then
  3337. break
  3338. fi
  3339. done
  3340. fi
  3341. if test "X$found_dir" != "X"; then
  3342. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  3343. if test "X$found_so" != "X"; then
  3344. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  3345. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3346. else
  3347. haveit=
  3348. for x in $ltrpathdirs; do
  3349. if test "X$x" = "X$found_dir"; then
  3350. haveit=yes
  3351. break
  3352. fi
  3353. done
  3354. if test -z "$haveit"; then
  3355. ltrpathdirs="$ltrpathdirs $found_dir"
  3356. fi
  3357. if test "$hardcode_direct" = yes; then
  3358. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3359. else
  3360. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  3361. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3362. haveit=
  3363. for x in $rpathdirs; do
  3364. if test "X$x" = "X$found_dir"; then
  3365. haveit=yes
  3366. break
  3367. fi
  3368. done
  3369. if test -z "$haveit"; then
  3370. rpathdirs="$rpathdirs $found_dir"
  3371. fi
  3372. else
  3373. haveit=
  3374. for x in $LDFLAGS $LIBICONV; do
  3375. acl_save_prefix="$prefix"
  3376. prefix="$acl_final_prefix"
  3377. acl_save_exec_prefix="$exec_prefix"
  3378. exec_prefix="$acl_final_exec_prefix"
  3379. eval x=\"$x\"
  3380. exec_prefix="$acl_save_exec_prefix"
  3381. prefix="$acl_save_prefix"
  3382. if test "X$x" = "X-L$found_dir"; then
  3383. haveit=yes
  3384. break
  3385. fi
  3386. done
  3387. if test -z "$haveit"; then
  3388. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  3389. fi
  3390. if test "$hardcode_minus_L" != no; then
  3391. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  3392. else
  3393. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  3394. fi
  3395. fi
  3396. fi
  3397. fi
  3398. else
  3399. if test "X$found_a" != "X"; then
  3400. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  3401. else
  3402. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  3403. fi
  3404. fi
  3405. additional_includedir=
  3406. case "$found_dir" in
  3407. */lib | */lib/)
  3408. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  3409. additional_includedir="$basedir/include"
  3410. ;;
  3411. esac
  3412. if test "X$additional_includedir" != "X"; then
  3413. if test "X$additional_includedir" != "X/usr/include"; then
  3414. haveit=
  3415. if test "X$additional_includedir" = "X/usr/local/include"; then
  3416. if test -n "$GCC"; then
  3417. case $host_os in
  3418. linux*) haveit=yes;;
  3419. esac
  3420. fi
  3421. fi
  3422. if test -z "$haveit"; then
  3423. for x in $CPPFLAGS $INCICONV; do
  3424. acl_save_prefix="$prefix"
  3425. prefix="$acl_final_prefix"
  3426. acl_save_exec_prefix="$exec_prefix"
  3427. exec_prefix="$acl_final_exec_prefix"
  3428. eval x=\"$x\"
  3429. exec_prefix="$acl_save_exec_prefix"
  3430. prefix="$acl_save_prefix"
  3431. if test "X$x" = "X-I$additional_includedir"; then
  3432. haveit=yes
  3433. break
  3434. fi
  3435. done
  3436. if test -z "$haveit"; then
  3437. if test -d "$additional_includedir"; then
  3438. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  3439. fi
  3440. fi
  3441. fi
  3442. fi
  3443. fi
  3444. if test -n "$found_la"; then
  3445. save_libdir="$libdir"
  3446. case "$found_la" in
  3447. */* | *\\*) . "$found_la" ;;
  3448. *) . "./$found_la" ;;
  3449. esac
  3450. libdir="$save_libdir"
  3451. for dep in $dependency_libs; do
  3452. case "$dep" in
  3453. -L*)
  3454. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  3455. if test "X$additional_libdir" != "X/usr/lib"; then
  3456. haveit=
  3457. if test "X$additional_libdir" = "X/usr/local/lib"; then
  3458. if test -n "$GCC"; then
  3459. case $host_os in
  3460. linux*) haveit=yes;;
  3461. esac
  3462. fi
  3463. fi
  3464. if test -z "$haveit"; then
  3465. haveit=
  3466. for x in $LDFLAGS $LIBICONV; do
  3467. acl_save_prefix="$prefix"
  3468. prefix="$acl_final_prefix"
  3469. acl_save_exec_prefix="$exec_prefix"
  3470. exec_prefix="$acl_final_exec_prefix"
  3471. eval x=\"$x\"
  3472. exec_prefix="$acl_save_exec_prefix"
  3473. prefix="$acl_save_prefix"
  3474. if test "X$x" = "X-L$additional_libdir"; then
  3475. haveit=yes
  3476. break
  3477. fi
  3478. done
  3479. if test -z "$haveit"; then
  3480. if test -d "$additional_libdir"; then
  3481. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  3482. fi
  3483. fi
  3484. haveit=
  3485. for x in $LDFLAGS $LTLIBICONV; do
  3486. acl_save_prefix="$prefix"
  3487. prefix="$acl_final_prefix"
  3488. acl_save_exec_prefix="$exec_prefix"
  3489. exec_prefix="$acl_final_exec_prefix"
  3490. eval x=\"$x\"
  3491. exec_prefix="$acl_save_exec_prefix"
  3492. prefix="$acl_save_prefix"
  3493. if test "X$x" = "X-L$additional_libdir"; then
  3494. haveit=yes
  3495. break
  3496. fi
  3497. done
  3498. if test -z "$haveit"; then
  3499. if test -d "$additional_libdir"; then
  3500. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  3501. fi
  3502. fi
  3503. fi
  3504. fi
  3505. ;;
  3506. -R*)
  3507. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  3508. if test "$enable_rpath" != no; then
  3509. haveit=
  3510. for x in $rpathdirs; do
  3511. if test "X$x" = "X$dir"; then
  3512. haveit=yes
  3513. break
  3514. fi
  3515. done
  3516. if test -z "$haveit"; then
  3517. rpathdirs="$rpathdirs $dir"
  3518. fi
  3519. haveit=
  3520. for x in $ltrpathdirs; do
  3521. if test "X$x" = "X$dir"; then
  3522. haveit=yes
  3523. break
  3524. fi
  3525. done
  3526. if test -z "$haveit"; then
  3527. ltrpathdirs="$ltrpathdirs $dir"
  3528. fi
  3529. fi
  3530. ;;
  3531. -l*)
  3532. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  3533. ;;
  3534. *.la)
  3535. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  3536. ;;
  3537. *)
  3538. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  3539. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  3540. ;;
  3541. esac
  3542. done
  3543. fi
  3544. else
  3545. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  3546. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  3547. fi
  3548. fi
  3549. fi
  3550. done
  3551. done
  3552. if test "X$rpathdirs" != "X"; then
  3553. if test -n "$hardcode_libdir_separator"; then
  3554. alldirs=
  3555. for found_dir in $rpathdirs; do
  3556. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  3557. done
  3558. acl_save_libdir="$libdir"
  3559. libdir="$alldirs"
  3560. eval flag=\"$hardcode_libdir_flag_spec\"
  3561. libdir="$acl_save_libdir"
  3562. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  3563. else
  3564. for found_dir in $rpathdirs; do
  3565. acl_save_libdir="$libdir"
  3566. libdir="$found_dir"
  3567. eval flag=\"$hardcode_libdir_flag_spec\"
  3568. libdir="$acl_save_libdir"
  3569. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  3570. done
  3571. fi
  3572. fi
  3573. if test "X$ltrpathdirs" != "X"; then
  3574. for found_dir in $ltrpathdirs; do
  3575. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  3576. done
  3577. fi
  3578. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  3579. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  3580. # Check whether --enable-nls or --disable-nls was given.
  3581. if test "${enable_nls+set}" = set; then
  3582. enableval="$enable_nls"
  3583. USE_NLS=$enableval
  3584. else
  3585. USE_NLS=yes
  3586. fi;
  3587. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  3588. echo "${ECHO_T}$USE_NLS" >&6
  3589. LIBINTL=
  3590. LTLIBINTL=
  3591. POSUB=
  3592. if test "$USE_NLS" = "yes"; then
  3593. gt_use_preinstalled_gnugettext=no
  3594. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  3595. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  3596. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. #include <libintl.h>
  3606. extern int _nl_msg_cat_cntr;
  3607. extern int *_nl_domain_bindings;
  3608. int
  3609. main ()
  3610. {
  3611. bindtextdomain ("", "");
  3612. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  3613. ;
  3614. return 0;
  3615. }
  3616. _ACEOF
  3617. rm -f conftest.$ac_objext conftest$ac_exeext
  3618. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3619. (eval $ac_link) 2>conftest.er1
  3620. ac_status=$?
  3621. grep -v '^ *+' conftest.er1 >conftest.err
  3622. rm -f conftest.er1
  3623. cat conftest.err >&5
  3624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625. (exit $ac_status); } &&
  3626. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3628. (eval $ac_try) 2>&5
  3629. ac_status=$?
  3630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. (exit $ac_status); }; } &&
  3632. { ac_try='test -s conftest$ac_exeext'
  3633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3634. (eval $ac_try) 2>&5
  3635. ac_status=$?
  3636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3637. (exit $ac_status); }; }; then
  3638. gt_cv_func_gnugettext1_libc=yes
  3639. else
  3640. echo "$as_me: failed program was:" >&5
  3641. sed 's/^/| /' conftest.$ac_ext >&5
  3642. gt_cv_func_gnugettext1_libc=no
  3643. fi
  3644. rm -f conftest.err conftest.$ac_objext \
  3645. conftest$ac_exeext conftest.$ac_ext
  3646. fi
  3647. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  3648. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  3649. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  3650. am_save_CPPFLAGS="$CPPFLAGS"
  3651. for element in $INCICONV; do
  3652. haveit=
  3653. for x in $CPPFLAGS; do
  3654. acl_save_prefix="$prefix"
  3655. prefix="$acl_final_prefix"
  3656. acl_save_exec_prefix="$exec_prefix"
  3657. exec_prefix="$acl_final_exec_prefix"
  3658. eval x=\"$x\"
  3659. exec_prefix="$acl_save_exec_prefix"
  3660. prefix="$acl_save_prefix"
  3661. if test "X$x" = "X$element"; then
  3662. haveit=yes
  3663. break
  3664. fi
  3665. done
  3666. if test -z "$haveit"; then
  3667. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  3668. fi
  3669. done
  3670. echo "$as_me:$LINENO: checking for iconv" >&5
  3671. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  3672. if test "${am_cv_func_iconv+set}" = set; then
  3673. echo $ECHO_N "(cached) $ECHO_C" >&6
  3674. else
  3675. am_cv_func_iconv="no, consider installing GNU libiconv"
  3676. am_cv_lib_iconv=no
  3677. cat >conftest.$ac_ext <<_ACEOF
  3678. /* confdefs.h. */
  3679. _ACEOF
  3680. cat confdefs.h >>conftest.$ac_ext
  3681. cat >>conftest.$ac_ext <<_ACEOF
  3682. /* end confdefs.h. */
  3683. #include <stdlib.h>
  3684. #include <iconv.h>
  3685. int
  3686. main ()
  3687. {
  3688. iconv_t cd = iconv_open("","");
  3689. iconv(cd,NULL,NULL,NULL,NULL);
  3690. iconv_close(cd);
  3691. ;
  3692. return 0;
  3693. }
  3694. _ACEOF
  3695. rm -f conftest.$ac_objext conftest$ac_exeext
  3696. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3697. (eval $ac_link) 2>conftest.er1
  3698. ac_status=$?
  3699. grep -v '^ *+' conftest.er1 >conftest.err
  3700. rm -f conftest.er1
  3701. cat conftest.err >&5
  3702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3703. (exit $ac_status); } &&
  3704. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3706. (eval $ac_try) 2>&5
  3707. ac_status=$?
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); }; } &&
  3710. { ac_try='test -s conftest$ac_exeext'
  3711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3712. (eval $ac_try) 2>&5
  3713. ac_status=$?
  3714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); }; }; then
  3716. am_cv_func_iconv=yes
  3717. else
  3718. echo "$as_me: failed program was:" >&5
  3719. sed 's/^/| /' conftest.$ac_ext >&5
  3720. fi
  3721. rm -f conftest.err conftest.$ac_objext \
  3722. conftest$ac_exeext conftest.$ac_ext
  3723. if test "$am_cv_func_iconv" != yes; then
  3724. am_save_LIBS="$LIBS"
  3725. LIBS="$LIBS $LIBICONV"
  3726. cat >conftest.$ac_ext <<_ACEOF
  3727. /* confdefs.h. */
  3728. _ACEOF
  3729. cat confdefs.h >>conftest.$ac_ext
  3730. cat >>conftest.$ac_ext <<_ACEOF
  3731. /* end confdefs.h. */
  3732. #include <stdlib.h>
  3733. #include <iconv.h>
  3734. int
  3735. main ()
  3736. {
  3737. iconv_t cd = iconv_open("","");
  3738. iconv(cd,NULL,NULL,NULL,NULL);
  3739. iconv_close(cd);
  3740. ;
  3741. return 0;
  3742. }
  3743. _ACEOF
  3744. rm -f conftest.$ac_objext conftest$ac_exeext
  3745. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3746. (eval $ac_link) 2>conftest.er1
  3747. ac_status=$?
  3748. grep -v '^ *+' conftest.er1 >conftest.err
  3749. rm -f conftest.er1
  3750. cat conftest.err >&5
  3751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3752. (exit $ac_status); } &&
  3753. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3755. (eval $ac_try) 2>&5
  3756. ac_status=$?
  3757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3758. (exit $ac_status); }; } &&
  3759. { ac_try='test -s conftest$ac_exeext'
  3760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3761. (eval $ac_try) 2>&5
  3762. ac_status=$?
  3763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3764. (exit $ac_status); }; }; then
  3765. am_cv_lib_iconv=yes
  3766. am_cv_func_iconv=yes
  3767. else
  3768. echo "$as_me: failed program was:" >&5
  3769. sed 's/^/| /' conftest.$ac_ext >&5
  3770. fi
  3771. rm -f conftest.err conftest.$ac_objext \
  3772. conftest$ac_exeext conftest.$ac_ext
  3773. LIBS="$am_save_LIBS"
  3774. fi
  3775. fi
  3776. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  3777. echo "${ECHO_T}$am_cv_func_iconv" >&6
  3778. if test "$am_cv_func_iconv" = yes; then
  3779. cat >>confdefs.h <<\_ACEOF
  3780. #define HAVE_ICONV 1
  3781. _ACEOF
  3782. fi
  3783. if test "$am_cv_lib_iconv" = yes; then
  3784. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  3785. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  3786. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  3787. echo "${ECHO_T}$LIBICONV" >&6
  3788. else
  3789. CPPFLAGS="$am_save_CPPFLAGS"
  3790. LIBICONV=
  3791. LTLIBICONV=
  3792. fi
  3793. use_additional=yes
  3794. acl_save_prefix="$prefix"
  3795. prefix="$acl_final_prefix"
  3796. acl_save_exec_prefix="$exec_prefix"
  3797. exec_prefix="$acl_final_exec_prefix"
  3798. eval additional_includedir=\"$includedir\"
  3799. eval additional_libdir=\"$libdir\"
  3800. exec_prefix="$acl_save_exec_prefix"
  3801. prefix="$acl_save_prefix"
  3802. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  3803. if test "${with_libintl_prefix+set}" = set; then
  3804. withval="$with_libintl_prefix"
  3805. if test "X$withval" = "Xno"; then
  3806. use_additional=no
  3807. else
  3808. if test "X$withval" = "X"; then
  3809. acl_save_prefix="$prefix"
  3810. prefix="$acl_final_prefix"
  3811. acl_save_exec_prefix="$exec_prefix"
  3812. exec_prefix="$acl_final_exec_prefix"
  3813. eval additional_includedir=\"$includedir\"
  3814. eval additional_libdir=\"$libdir\"
  3815. exec_prefix="$acl_save_exec_prefix"
  3816. prefix="$acl_save_prefix"
  3817. else
  3818. additional_includedir="$withval/include"
  3819. additional_libdir="$withval/lib"
  3820. fi
  3821. fi
  3822. fi;
  3823. LIBINTL=
  3824. LTLIBINTL=
  3825. INCINTL=
  3826. rpathdirs=
  3827. ltrpathdirs=
  3828. names_already_handled=
  3829. names_next_round='intl '
  3830. while test -n "$names_next_round"; do
  3831. names_this_round="$names_next_round"
  3832. names_next_round=
  3833. for name in $names_this_round; do
  3834. already_handled=
  3835. for n in $names_already_handled; do
  3836. if test "$n" = "$name"; then
  3837. already_handled=yes
  3838. break
  3839. fi
  3840. done
  3841. if test -z "$already_handled"; then
  3842. names_already_handled="$names_already_handled $name"
  3843. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  3844. eval value=\"\$HAVE_LIB$uppername\"
  3845. if test -n "$value"; then
  3846. if test "$value" = yes; then
  3847. eval value=\"\$LIB$uppername\"
  3848. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  3849. eval value=\"\$LTLIB$uppername\"
  3850. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  3851. else
  3852. :
  3853. fi
  3854. else
  3855. found_dir=
  3856. found_la=
  3857. found_so=
  3858. found_a=
  3859. if test $use_additional = yes; then
  3860. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  3861. found_dir="$additional_libdir"
  3862. found_so="$additional_libdir/lib$name.$shlibext"
  3863. if test -f "$additional_libdir/lib$name.la"; then
  3864. found_la="$additional_libdir/lib$name.la"
  3865. fi
  3866. else
  3867. if test -f "$additional_libdir/lib$name.$libext"; then
  3868. found_dir="$additional_libdir"
  3869. found_a="$additional_libdir/lib$name.$libext"
  3870. if test -f "$additional_libdir/lib$name.la"; then
  3871. found_la="$additional_libdir/lib$name.la"
  3872. fi
  3873. fi
  3874. fi
  3875. fi
  3876. if test "X$found_dir" = "X"; then
  3877. for x in $LDFLAGS $LTLIBINTL; do
  3878. acl_save_prefix="$prefix"
  3879. prefix="$acl_final_prefix"
  3880. acl_save_exec_prefix="$exec_prefix"
  3881. exec_prefix="$acl_final_exec_prefix"
  3882. eval x=\"$x\"
  3883. exec_prefix="$acl_save_exec_prefix"
  3884. prefix="$acl_save_prefix"
  3885. case "$x" in
  3886. -L*)
  3887. dir=`echo "X$x" | sed -e 's/^X-L//'`
  3888. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  3889. found_dir="$dir"
  3890. found_so="$dir/lib$name.$shlibext"
  3891. if test -f "$dir/lib$name.la"; then
  3892. found_la="$dir/lib$name.la"
  3893. fi
  3894. else
  3895. if test -f "$dir/lib$name.$libext"; then
  3896. found_dir="$dir"
  3897. found_a="$dir/lib$name.$libext"
  3898. if test -f "$dir/lib$name.la"; then
  3899. found_la="$dir/lib$name.la"
  3900. fi
  3901. fi
  3902. fi
  3903. ;;
  3904. esac
  3905. if test "X$found_dir" != "X"; then
  3906. break
  3907. fi
  3908. done
  3909. fi
  3910. if test "X$found_dir" != "X"; then
  3911. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  3912. if test "X$found_so" != "X"; then
  3913. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  3914. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  3915. else
  3916. haveit=
  3917. for x in $ltrpathdirs; do
  3918. if test "X$x" = "X$found_dir"; then
  3919. haveit=yes
  3920. break
  3921. fi
  3922. done
  3923. if test -z "$haveit"; then
  3924. ltrpathdirs="$ltrpathdirs $found_dir"
  3925. fi
  3926. if test "$hardcode_direct" = yes; then
  3927. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  3928. else
  3929. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  3930. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  3931. haveit=
  3932. for x in $rpathdirs; do
  3933. if test "X$x" = "X$found_dir"; then
  3934. haveit=yes
  3935. break
  3936. fi
  3937. done
  3938. if test -z "$haveit"; then
  3939. rpathdirs="$rpathdirs $found_dir"
  3940. fi
  3941. else
  3942. haveit=
  3943. for x in $LDFLAGS $LIBINTL; do
  3944. acl_save_prefix="$prefix"
  3945. prefix="$acl_final_prefix"
  3946. acl_save_exec_prefix="$exec_prefix"
  3947. exec_prefix="$acl_final_exec_prefix"
  3948. eval x=\"$x\"
  3949. exec_prefix="$acl_save_exec_prefix"
  3950. prefix="$acl_save_prefix"
  3951. if test "X$x" = "X-L$found_dir"; then
  3952. haveit=yes
  3953. break
  3954. fi
  3955. done
  3956. if test -z "$haveit"; then
  3957. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  3958. fi
  3959. if test "$hardcode_minus_L" != no; then
  3960. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  3961. else
  3962. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  3963. fi
  3964. fi
  3965. fi
  3966. fi
  3967. else
  3968. if test "X$found_a" != "X"; then
  3969. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  3970. else
  3971. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  3972. fi
  3973. fi
  3974. additional_includedir=
  3975. case "$found_dir" in
  3976. */lib | */lib/)
  3977. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  3978. additional_includedir="$basedir/include"
  3979. ;;
  3980. esac
  3981. if test "X$additional_includedir" != "X"; then
  3982. if test "X$additional_includedir" != "X/usr/include"; then
  3983. haveit=
  3984. if test "X$additional_includedir" = "X/usr/local/include"; then
  3985. if test -n "$GCC"; then
  3986. case $host_os in
  3987. linux*) haveit=yes;;
  3988. esac
  3989. fi
  3990. fi
  3991. if test -z "$haveit"; then
  3992. for x in $CPPFLAGS $INCINTL; do
  3993. acl_save_prefix="$prefix"
  3994. prefix="$acl_final_prefix"
  3995. acl_save_exec_prefix="$exec_prefix"
  3996. exec_prefix="$acl_final_exec_prefix"
  3997. eval x=\"$x\"
  3998. exec_prefix="$acl_save_exec_prefix"
  3999. prefix="$acl_save_prefix"
  4000. if test "X$x" = "X-I$additional_includedir"; then
  4001. haveit=yes
  4002. break
  4003. fi
  4004. done
  4005. if test -z "$haveit"; then
  4006. if test -d "$additional_includedir"; then
  4007. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  4008. fi
  4009. fi
  4010. fi
  4011. fi
  4012. fi
  4013. if test -n "$found_la"; then
  4014. save_libdir="$libdir"
  4015. case "$found_la" in
  4016. */* | *\\*) . "$found_la" ;;
  4017. *) . "./$found_la" ;;
  4018. esac
  4019. libdir="$save_libdir"
  4020. for dep in $dependency_libs; do
  4021. case "$dep" in
  4022. -L*)
  4023. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  4024. if test "X$additional_libdir" != "X/usr/lib"; then
  4025. haveit=
  4026. if test "X$additional_libdir" = "X/usr/local/lib"; then
  4027. if test -n "$GCC"; then
  4028. case $host_os in
  4029. linux*) haveit=yes;;
  4030. esac
  4031. fi
  4032. fi
  4033. if test -z "$haveit"; then
  4034. haveit=
  4035. for x in $LDFLAGS $LIBINTL; do
  4036. acl_save_prefix="$prefix"
  4037. prefix="$acl_final_prefix"
  4038. acl_save_exec_prefix="$exec_prefix"
  4039. exec_prefix="$acl_final_exec_prefix"
  4040. eval x=\"$x\"
  4041. exec_prefix="$acl_save_exec_prefix"
  4042. prefix="$acl_save_prefix"
  4043. if test "X$x" = "X-L$additional_libdir"; then
  4044. haveit=yes
  4045. break
  4046. fi
  4047. done
  4048. if test -z "$haveit"; then
  4049. if test -d "$additional_libdir"; then
  4050. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  4051. fi
  4052. fi
  4053. haveit=
  4054. for x in $LDFLAGS $LTLIBINTL; do
  4055. acl_save_prefix="$prefix"
  4056. prefix="$acl_final_prefix"
  4057. acl_save_exec_prefix="$exec_prefix"
  4058. exec_prefix="$acl_final_exec_prefix"
  4059. eval x=\"$x\"
  4060. exec_prefix="$acl_save_exec_prefix"
  4061. prefix="$acl_save_prefix"
  4062. if test "X$x" = "X-L$additional_libdir"; then
  4063. haveit=yes
  4064. break
  4065. fi
  4066. done
  4067. if test -z "$haveit"; then
  4068. if test -d "$additional_libdir"; then
  4069. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  4070. fi
  4071. fi
  4072. fi
  4073. fi
  4074. ;;
  4075. -R*)
  4076. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  4077. if test "$enable_rpath" != no; then
  4078. haveit=
  4079. for x in $rpathdirs; do
  4080. if test "X$x" = "X$dir"; then
  4081. haveit=yes
  4082. break
  4083. fi
  4084. done
  4085. if test -z "$haveit"; then
  4086. rpathdirs="$rpathdirs $dir"
  4087. fi
  4088. haveit=
  4089. for x in $ltrpathdirs; do
  4090. if test "X$x" = "X$dir"; then
  4091. haveit=yes
  4092. break
  4093. fi
  4094. done
  4095. if test -z "$haveit"; then
  4096. ltrpathdirs="$ltrpathdirs $dir"
  4097. fi
  4098. fi
  4099. ;;
  4100. -l*)
  4101. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  4102. ;;
  4103. *.la)
  4104. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  4105. ;;
  4106. *)
  4107. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  4108. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  4109. ;;
  4110. esac
  4111. done
  4112. fi
  4113. else
  4114. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  4115. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  4116. fi
  4117. fi
  4118. fi
  4119. done
  4120. done
  4121. if test "X$rpathdirs" != "X"; then
  4122. if test -n "$hardcode_libdir_separator"; then
  4123. alldirs=
  4124. for found_dir in $rpathdirs; do
  4125. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  4126. done
  4127. acl_save_libdir="$libdir"
  4128. libdir="$alldirs"
  4129. eval flag=\"$hardcode_libdir_flag_spec\"
  4130. libdir="$acl_save_libdir"
  4131. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  4132. else
  4133. for found_dir in $rpathdirs; do
  4134. acl_save_libdir="$libdir"
  4135. libdir="$found_dir"
  4136. eval flag=\"$hardcode_libdir_flag_spec\"
  4137. libdir="$acl_save_libdir"
  4138. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  4139. done
  4140. fi
  4141. fi
  4142. if test "X$ltrpathdirs" != "X"; then
  4143. for found_dir in $ltrpathdirs; do
  4144. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  4145. done
  4146. fi
  4147. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  4148. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  4149. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  4150. echo $ECHO_N "(cached) $ECHO_C" >&6
  4151. else
  4152. gt_save_CPPFLAGS="$CPPFLAGS"
  4153. CPPFLAGS="$CPPFLAGS $INCINTL"
  4154. gt_save_LIBS="$LIBS"
  4155. LIBS="$LIBS $LIBINTL"
  4156. cat >conftest.$ac_ext <<_ACEOF
  4157. /* confdefs.h. */
  4158. _ACEOF
  4159. cat confdefs.h >>conftest.$ac_ext
  4160. cat >>conftest.$ac_ext <<_ACEOF
  4161. /* end confdefs.h. */
  4162. #include <libintl.h>
  4163. extern int _nl_msg_cat_cntr;
  4164. extern
  4165. #ifdef __cplusplus
  4166. "C"
  4167. #endif
  4168. const char *_nl_expand_alias ();
  4169. int
  4170. main ()
  4171. {
  4172. bindtextdomain ("", "");
  4173. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. rm -f conftest.$ac_objext conftest$ac_exeext
  4179. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4180. (eval $ac_link) 2>conftest.er1
  4181. ac_status=$?
  4182. grep -v '^ *+' conftest.er1 >conftest.err
  4183. rm -f conftest.er1
  4184. cat conftest.err >&5
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); } &&
  4187. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4189. (eval $ac_try) 2>&5
  4190. ac_status=$?
  4191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4192. (exit $ac_status); }; } &&
  4193. { ac_try='test -s conftest$ac_exeext'
  4194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4195. (eval $ac_try) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); }; }; then
  4199. gt_cv_func_gnugettext1_libintl=yes
  4200. else
  4201. echo "$as_me: failed program was:" >&5
  4202. sed 's/^/| /' conftest.$ac_ext >&5
  4203. gt_cv_func_gnugettext1_libintl=no
  4204. fi
  4205. rm -f conftest.err conftest.$ac_objext \
  4206. conftest$ac_exeext conftest.$ac_ext
  4207. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  4208. LIBS="$LIBS $LIBICONV"
  4209. cat >conftest.$ac_ext <<_ACEOF
  4210. /* confdefs.h. */
  4211. _ACEOF
  4212. cat confdefs.h >>conftest.$ac_ext
  4213. cat >>conftest.$ac_ext <<_ACEOF
  4214. /* end confdefs.h. */
  4215. #include <libintl.h>
  4216. extern int _nl_msg_cat_cntr;
  4217. extern
  4218. #ifdef __cplusplus
  4219. "C"
  4220. #endif
  4221. const char *_nl_expand_alias ();
  4222. int
  4223. main ()
  4224. {
  4225. bindtextdomain ("", "");
  4226. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  4227. ;
  4228. return 0;
  4229. }
  4230. _ACEOF
  4231. rm -f conftest.$ac_objext conftest$ac_exeext
  4232. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4233. (eval $ac_link) 2>conftest.er1
  4234. ac_status=$?
  4235. grep -v '^ *+' conftest.er1 >conftest.err
  4236. rm -f conftest.er1
  4237. cat conftest.err >&5
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); } &&
  4240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4242. (eval $ac_try) 2>&5
  4243. ac_status=$?
  4244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4245. (exit $ac_status); }; } &&
  4246. { ac_try='test -s conftest$ac_exeext'
  4247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4248. (eval $ac_try) 2>&5
  4249. ac_status=$?
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); }; }; then
  4252. LIBINTL="$LIBINTL $LIBICONV"
  4253. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  4254. gt_cv_func_gnugettext1_libintl=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. fi
  4259. rm -f conftest.err conftest.$ac_objext \
  4260. conftest$ac_exeext conftest.$ac_ext
  4261. fi
  4262. CPPFLAGS="$gt_save_CPPFLAGS"
  4263. LIBS="$gt_save_LIBS"
  4264. fi
  4265. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  4266. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  4267. fi
  4268. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  4269. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  4270. && test "$PACKAGE" != gettext-runtime \
  4271. && test "$PACKAGE" != gettext-tools; }; then
  4272. gt_use_preinstalled_gnugettext=yes
  4273. else
  4274. LIBINTL=
  4275. LTLIBINTL=
  4276. INCINTL=
  4277. fi
  4278. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  4279. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  4280. cat >>confdefs.h <<\_ACEOF
  4281. #define ENABLE_NLS 1
  4282. _ACEOF
  4283. else
  4284. USE_NLS=no
  4285. fi
  4286. fi
  4287. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  4288. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  4289. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  4290. echo "${ECHO_T}$USE_NLS" >&6
  4291. if test "$USE_NLS" = "yes"; then
  4292. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  4293. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  4294. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  4295. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  4296. gt_source="external libintl"
  4297. else
  4298. gt_source="libc"
  4299. fi
  4300. else
  4301. gt_source="included intl directory"
  4302. fi
  4303. echo "$as_me:$LINENO: result: $gt_source" >&5
  4304. echo "${ECHO_T}$gt_source" >&6
  4305. fi
  4306. if test "$USE_NLS" = "yes"; then
  4307. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  4308. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  4309. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  4310. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  4311. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  4312. echo "${ECHO_T}$LIBINTL" >&6
  4313. for element in $INCINTL; do
  4314. haveit=
  4315. for x in $CPPFLAGS; do
  4316. acl_save_prefix="$prefix"
  4317. prefix="$acl_final_prefix"
  4318. acl_save_exec_prefix="$exec_prefix"
  4319. exec_prefix="$acl_final_exec_prefix"
  4320. eval x=\"$x\"
  4321. exec_prefix="$acl_save_exec_prefix"
  4322. prefix="$acl_save_prefix"
  4323. if test "X$x" = "X$element"; then
  4324. haveit=yes
  4325. break
  4326. fi
  4327. done
  4328. if test -z "$haveit"; then
  4329. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  4330. fi
  4331. done
  4332. fi
  4333. cat >>confdefs.h <<\_ACEOF
  4334. #define HAVE_GETTEXT 1
  4335. _ACEOF
  4336. cat >>confdefs.h <<\_ACEOF
  4337. #define HAVE_DCGETTEXT 1
  4338. _ACEOF
  4339. fi
  4340. POSUB=po
  4341. fi
  4342. INTLLIBS="$LIBINTL"
  4343. # Checks for arguments.
  4344. # Check whether --enable-ssl or --disable-ssl was given.
  4345. if test "${enable_ssl+set}" = set; then
  4346. enableval="$enable_ssl"
  4347. enable_ssl=$enableval
  4348. else
  4349. enable_ssl=yes
  4350. fi;
  4351. # Checks for programs.
  4352. ac_ext=cc
  4353. ac_cpp='$CXXCPP $CPPFLAGS'
  4354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4357. if test -n "$ac_tool_prefix"; then
  4358. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4359. do
  4360. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4361. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4362. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4363. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4364. if test "${ac_cv_prog_CXX+set}" = set; then
  4365. echo $ECHO_N "(cached) $ECHO_C" >&6
  4366. else
  4367. if test -n "$CXX"; then
  4368. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4369. else
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH
  4372. do
  4373. IFS=$as_save_IFS
  4374. test -z "$as_dir" && as_dir=.
  4375. for ac_exec_ext in '' $ac_executable_extensions; do
  4376. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4377. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4378. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4379. break 2
  4380. fi
  4381. done
  4382. done
  4383. fi
  4384. fi
  4385. CXX=$ac_cv_prog_CXX
  4386. if test -n "$CXX"; then
  4387. echo "$as_me:$LINENO: result: $CXX" >&5
  4388. echo "${ECHO_T}$CXX" >&6
  4389. else
  4390. echo "$as_me:$LINENO: result: no" >&5
  4391. echo "${ECHO_T}no" >&6
  4392. fi
  4393. test -n "$CXX" && break
  4394. done
  4395. fi
  4396. if test -z "$CXX"; then
  4397. ac_ct_CXX=$CXX
  4398. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4399. do
  4400. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4401. set dummy $ac_prog; ac_word=$2
  4402. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4403. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4404. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4405. echo $ECHO_N "(cached) $ECHO_C" >&6
  4406. else
  4407. if test -n "$ac_ct_CXX"; then
  4408. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4409. else
  4410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH
  4412. do
  4413. IFS=$as_save_IFS
  4414. test -z "$as_dir" && as_dir=.
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4417. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4418. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4419. break 2
  4420. fi
  4421. done
  4422. done
  4423. fi
  4424. fi
  4425. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4426. if test -n "$ac_ct_CXX"; then
  4427. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4428. echo "${ECHO_T}$ac_ct_CXX" >&6
  4429. else
  4430. echo "$as_me:$LINENO: result: no" >&5
  4431. echo "${ECHO_T}no" >&6
  4432. fi
  4433. test -n "$ac_ct_CXX" && break
  4434. done
  4435. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4436. CXX=$ac_ct_CXX
  4437. fi
  4438. # Provide some information about the compiler.
  4439. echo "$as_me:$LINENO:" \
  4440. "checking for C++ compiler version" >&5
  4441. ac_compiler=`set X $ac_compile; echo $2`
  4442. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4443. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4444. ac_status=$?
  4445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4446. (exit $ac_status); }
  4447. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4448. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4449. ac_status=$?
  4450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4451. (exit $ac_status); }
  4452. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4453. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4454. ac_status=$?
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); }
  4457. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4458. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4459. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4460. echo $ECHO_N "(cached) $ECHO_C" >&6
  4461. else
  4462. cat >conftest.$ac_ext <<_ACEOF
  4463. /* confdefs.h. */
  4464. _ACEOF
  4465. cat confdefs.h >>conftest.$ac_ext
  4466. cat >>conftest.$ac_ext <<_ACEOF
  4467. /* end confdefs.h. */
  4468. int
  4469. main ()
  4470. {
  4471. #ifndef __GNUC__
  4472. choke me
  4473. #endif
  4474. ;
  4475. return 0;
  4476. }
  4477. _ACEOF
  4478. rm -f conftest.$ac_objext
  4479. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4480. (eval $ac_compile) 2>conftest.er1
  4481. ac_status=$?
  4482. grep -v '^ *+' conftest.er1 >conftest.err
  4483. rm -f conftest.er1
  4484. cat conftest.err >&5
  4485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4486. (exit $ac_status); } &&
  4487. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4489. (eval $ac_try) 2>&5
  4490. ac_status=$?
  4491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4492. (exit $ac_status); }; } &&
  4493. { ac_try='test -s conftest.$ac_objext'
  4494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4495. (eval $ac_try) 2>&5
  4496. ac_status=$?
  4497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4498. (exit $ac_status); }; }; then
  4499. ac_compiler_gnu=yes
  4500. else
  4501. echo "$as_me: failed program was:" >&5
  4502. sed 's/^/| /' conftest.$ac_ext >&5
  4503. ac_compiler_gnu=no
  4504. fi
  4505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4506. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4507. fi
  4508. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4509. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4510. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4511. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4512. ac_save_CXXFLAGS=$CXXFLAGS
  4513. CXXFLAGS="-g"
  4514. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4515. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4516. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4517. echo $ECHO_N "(cached) $ECHO_C" >&6
  4518. else
  4519. cat >conftest.$ac_ext <<_ACEOF
  4520. /* confdefs.h. */
  4521. _ACEOF
  4522. cat confdefs.h >>conftest.$ac_ext
  4523. cat >>conftest.$ac_ext <<_ACEOF
  4524. /* end confdefs.h. */
  4525. int
  4526. main ()
  4527. {
  4528. ;
  4529. return 0;
  4530. }
  4531. _ACEOF
  4532. rm -f conftest.$ac_objext
  4533. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4534. (eval $ac_compile) 2>conftest.er1
  4535. ac_status=$?
  4536. grep -v '^ *+' conftest.er1 >conftest.err
  4537. rm -f conftest.er1
  4538. cat conftest.err >&5
  4539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4540. (exit $ac_status); } &&
  4541. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4543. (eval $ac_try) 2>&5
  4544. ac_status=$?
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); }; } &&
  4547. { ac_try='test -s conftest.$ac_objext'
  4548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4549. (eval $ac_try) 2>&5
  4550. ac_status=$?
  4551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4552. (exit $ac_status); }; }; then
  4553. ac_cv_prog_cxx_g=yes
  4554. else
  4555. echo "$as_me: failed program was:" >&5
  4556. sed 's/^/| /' conftest.$ac_ext >&5
  4557. ac_cv_prog_cxx_g=no
  4558. fi
  4559. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4560. fi
  4561. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4562. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4563. if test "$ac_test_CXXFLAGS" = set; then
  4564. CXXFLAGS=$ac_save_CXXFLAGS
  4565. elif test $ac_cv_prog_cxx_g = yes; then
  4566. if test "$GXX" = yes; then
  4567. CXXFLAGS="-g -O2"
  4568. else
  4569. CXXFLAGS="-g"
  4570. fi
  4571. else
  4572. if test "$GXX" = yes; then
  4573. CXXFLAGS="-O2"
  4574. else
  4575. CXXFLAGS=
  4576. fi
  4577. fi
  4578. for ac_declaration in \
  4579. '' \
  4580. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4581. 'extern "C" void std::exit (int); using std::exit;' \
  4582. 'extern "C" void exit (int) throw ();' \
  4583. 'extern "C" void exit (int);' \
  4584. 'void exit (int);'
  4585. do
  4586. cat >conftest.$ac_ext <<_ACEOF
  4587. /* confdefs.h. */
  4588. _ACEOF
  4589. cat confdefs.h >>conftest.$ac_ext
  4590. cat >>conftest.$ac_ext <<_ACEOF
  4591. /* end confdefs.h. */
  4592. $ac_declaration
  4593. #include <stdlib.h>
  4594. int
  4595. main ()
  4596. {
  4597. exit (42);
  4598. ;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. rm -f conftest.$ac_objext
  4603. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4604. (eval $ac_compile) 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } &&
  4611. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4613. (eval $ac_try) 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); }; } &&
  4617. { ac_try='test -s conftest.$ac_objext'
  4618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4619. (eval $ac_try) 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); }; }; then
  4623. :
  4624. else
  4625. echo "$as_me: failed program was:" >&5
  4626. sed 's/^/| /' conftest.$ac_ext >&5
  4627. continue
  4628. fi
  4629. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4630. cat >conftest.$ac_ext <<_ACEOF
  4631. /* confdefs.h. */
  4632. _ACEOF
  4633. cat confdefs.h >>conftest.$ac_ext
  4634. cat >>conftest.$ac_ext <<_ACEOF
  4635. /* end confdefs.h. */
  4636. $ac_declaration
  4637. int
  4638. main ()
  4639. {
  4640. exit (42);
  4641. ;
  4642. return 0;
  4643. }
  4644. _ACEOF
  4645. rm -f conftest.$ac_objext
  4646. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4647. (eval $ac_compile) 2>conftest.er1
  4648. ac_status=$?
  4649. grep -v '^ *+' conftest.er1 >conftest.err
  4650. rm -f conftest.er1
  4651. cat conftest.err >&5
  4652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4653. (exit $ac_status); } &&
  4654. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4656. (eval $ac_try) 2>&5
  4657. ac_status=$?
  4658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4659. (exit $ac_status); }; } &&
  4660. { ac_try='test -s conftest.$ac_objext'
  4661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4662. (eval $ac_try) 2>&5
  4663. ac_status=$?
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); }; }; then
  4666. break
  4667. else
  4668. echo "$as_me: failed program was:" >&5
  4669. sed 's/^/| /' conftest.$ac_ext >&5
  4670. fi
  4671. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4672. done
  4673. rm -f conftest*
  4674. if test -n "$ac_declaration"; then
  4675. echo '#ifdef __cplusplus' >>confdefs.h
  4676. echo $ac_declaration >>confdefs.h
  4677. echo '#endif' >>confdefs.h
  4678. fi
  4679. ac_ext=c
  4680. ac_cpp='$CPP $CPPFLAGS'
  4681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4684. depcc="$CXX" am_compiler_list=
  4685. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4686. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  4687. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  4688. echo $ECHO_N "(cached) $ECHO_C" >&6
  4689. else
  4690. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4691. # We make a subdir and do the tests there. Otherwise we can end up
  4692. # making bogus files that we don't know about and never remove. For
  4693. # instance it was reported that on HP-UX the gcc test will end up
  4694. # making a dummy file named `D' -- because `-MD' means `put the output
  4695. # in D'.
  4696. mkdir conftest.dir
  4697. # Copy depcomp to subdir because otherwise we won't find it if we're
  4698. # using a relative directory.
  4699. cp "$am_depcomp" conftest.dir
  4700. cd conftest.dir
  4701. # We will build objects and dependencies in a subdirectory because
  4702. # it helps to detect inapplicable dependency modes. For instance
  4703. # both Tru64's cc and ICC support -MD to output dependencies as a
  4704. # side effect of compilation, but ICC will put the dependencies in
  4705. # the current directory while Tru64 will put them in the object
  4706. # directory.
  4707. mkdir sub
  4708. am_cv_CXX_dependencies_compiler_type=none
  4709. if test "$am_compiler_list" = ""; then
  4710. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4711. fi
  4712. for depmode in $am_compiler_list; do
  4713. # Setup a source with many dependencies, because some compilers
  4714. # like to wrap large dependency lists on column 80 (with \), and
  4715. # we should not choose a depcomp mode which is confused by this.
  4716. #
  4717. # We need to recreate these files for each test, as the compiler may
  4718. # overwrite some of them when testing with obscure command lines.
  4719. # This happens at least with the AIX C compiler.
  4720. : > sub/conftest.c
  4721. for i in 1 2 3 4 5 6; do
  4722. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4723. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4724. # Solaris 8's {/usr,}/bin/sh.
  4725. touch sub/conftst$i.h
  4726. done
  4727. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4728. case $depmode in
  4729. nosideeffect)
  4730. # after this tag, mechanisms are not by side-effect, so they'll
  4731. # only be used when explicitly requested
  4732. if test "x$enable_dependency_tracking" = xyes; then
  4733. continue
  4734. else
  4735. break
  4736. fi
  4737. ;;
  4738. none) break ;;
  4739. esac
  4740. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4741. # mode. It turns out that the SunPro C++ compiler does not properly
  4742. # handle `-M -o', and we need to detect this.
  4743. if depmode=$depmode \
  4744. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4745. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4746. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4747. >/dev/null 2>conftest.err &&
  4748. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4749. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4750. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4751. # icc doesn't choke on unknown options, it will just issue warnings
  4752. # or remarks (even with -Werror). So we grep stderr for any message
  4753. # that says an option was ignored or not supported.
  4754. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4755. # icc: Command line warning: ignoring option '-M'; no argument required
  4756. # The diagnosis changed in icc 8.0:
  4757. # icc: Command line remark: option '-MP' not supported
  4758. if (grep 'ignoring option' conftest.err ||
  4759. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4760. am_cv_CXX_dependencies_compiler_type=$depmode
  4761. break
  4762. fi
  4763. fi
  4764. done
  4765. cd ..
  4766. rm -rf conftest.dir
  4767. else
  4768. am_cv_CXX_dependencies_compiler_type=none
  4769. fi
  4770. fi
  4771. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4772. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  4773. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4774. if
  4775. test "x$enable_dependency_tracking" != xno \
  4776. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4777. am__fastdepCXX_TRUE=
  4778. am__fastdepCXX_FALSE='#'
  4779. else
  4780. am__fastdepCXX_TRUE='#'
  4781. am__fastdepCXX_FALSE=
  4782. fi
  4783. ac_ext=c
  4784. ac_cpp='$CPP $CPPFLAGS'
  4785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4788. if test -n "$ac_tool_prefix"; then
  4789. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4790. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4791. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4792. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4793. if test "${ac_cv_prog_CC+set}" = set; then
  4794. echo $ECHO_N "(cached) $ECHO_C" >&6
  4795. else
  4796. if test -n "$CC"; then
  4797. ac_cv_prog_CC="$CC" # Let the user override the test.
  4798. else
  4799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4800. for as_dir in $PATH
  4801. do
  4802. IFS=$as_save_IFS
  4803. test -z "$as_dir" && as_dir=.
  4804. for ac_exec_ext in '' $ac_executable_extensions; do
  4805. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4806. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4807. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4808. break 2
  4809. fi
  4810. done
  4811. done
  4812. fi
  4813. fi
  4814. CC=$ac_cv_prog_CC
  4815. if test -n "$CC"; then
  4816. echo "$as_me:$LINENO: result: $CC" >&5
  4817. echo "${ECHO_T}$CC" >&6
  4818. else
  4819. echo "$as_me:$LINENO: result: no" >&5
  4820. echo "${ECHO_T}no" >&6
  4821. fi
  4822. fi
  4823. if test -z "$ac_cv_prog_CC"; then
  4824. ac_ct_CC=$CC
  4825. # Extract the first word of "gcc", so it can be a program name with args.
  4826. set dummy gcc; ac_word=$2
  4827. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4828. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4829. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4830. echo $ECHO_N "(cached) $ECHO_C" >&6
  4831. else
  4832. if test -n "$ac_ct_CC"; then
  4833. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4842. ac_cv_prog_ac_ct_CC="gcc"
  4843. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. fi
  4849. fi
  4850. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4851. if test -n "$ac_ct_CC"; then
  4852. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4853. echo "${ECHO_T}$ac_ct_CC" >&6
  4854. else
  4855. echo "$as_me:$LINENO: result: no" >&5
  4856. echo "${ECHO_T}no" >&6
  4857. fi
  4858. CC=$ac_ct_CC
  4859. else
  4860. CC="$ac_cv_prog_CC"
  4861. fi
  4862. if test -z "$CC"; then
  4863. if test -n "$ac_tool_prefix"; then
  4864. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4865. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4866. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4867. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4868. if test "${ac_cv_prog_CC+set}" = set; then
  4869. echo $ECHO_N "(cached) $ECHO_C" >&6
  4870. else
  4871. if test -n "$CC"; then
  4872. ac_cv_prog_CC="$CC" # Let the user override the test.
  4873. else
  4874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4875. for as_dir in $PATH
  4876. do
  4877. IFS=$as_save_IFS
  4878. test -z "$as_dir" && as_dir=.
  4879. for ac_exec_ext in '' $ac_executable_extensions; do
  4880. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4881. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4882. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4883. break 2
  4884. fi
  4885. done
  4886. done
  4887. fi
  4888. fi
  4889. CC=$ac_cv_prog_CC
  4890. if test -n "$CC"; then
  4891. echo "$as_me:$LINENO: result: $CC" >&5
  4892. echo "${ECHO_T}$CC" >&6
  4893. else
  4894. echo "$as_me:$LINENO: result: no" >&5
  4895. echo "${ECHO_T}no" >&6
  4896. fi
  4897. fi
  4898. if test -z "$ac_cv_prog_CC"; then
  4899. ac_ct_CC=$CC
  4900. # Extract the first word of "cc", so it can be a program name with args.
  4901. set dummy cc; ac_word=$2
  4902. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4904. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4905. echo $ECHO_N "(cached) $ECHO_C" >&6
  4906. else
  4907. if test -n "$ac_ct_CC"; then
  4908. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4909. else
  4910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4911. for as_dir in $PATH
  4912. do
  4913. IFS=$as_save_IFS
  4914. test -z "$as_dir" && as_dir=.
  4915. for ac_exec_ext in '' $ac_executable_extensions; do
  4916. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4917. ac_cv_prog_ac_ct_CC="cc"
  4918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4919. break 2
  4920. fi
  4921. done
  4922. done
  4923. fi
  4924. fi
  4925. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4926. if test -n "$ac_ct_CC"; then
  4927. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4928. echo "${ECHO_T}$ac_ct_CC" >&6
  4929. else
  4930. echo "$as_me:$LINENO: result: no" >&5
  4931. echo "${ECHO_T}no" >&6
  4932. fi
  4933. CC=$ac_ct_CC
  4934. else
  4935. CC="$ac_cv_prog_CC"
  4936. fi
  4937. fi
  4938. if test -z "$CC"; then
  4939. # Extract the first word of "cc", so it can be a program name with args.
  4940. set dummy cc; ac_word=$2
  4941. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4943. if test "${ac_cv_prog_CC+set}" = set; then
  4944. echo $ECHO_N "(cached) $ECHO_C" >&6
  4945. else
  4946. if test -n "$CC"; then
  4947. ac_cv_prog_CC="$CC" # Let the user override the test.
  4948. else
  4949. ac_prog_rejected=no
  4950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4951. for as_dir in $PATH
  4952. do
  4953. IFS=$as_save_IFS
  4954. test -z "$as_dir" && as_dir=.
  4955. for ac_exec_ext in '' $ac_executable_extensions; do
  4956. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4957. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4958. ac_prog_rejected=yes
  4959. continue
  4960. fi
  4961. ac_cv_prog_CC="cc"
  4962. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. if test $ac_prog_rejected = yes; then
  4968. # We found a bogon in the path, so make sure we never use it.
  4969. set dummy $ac_cv_prog_CC
  4970. shift
  4971. if test $# != 0; then
  4972. # We chose a different compiler from the bogus one.
  4973. # However, it has the same basename, so the bogon will be chosen
  4974. # first if we set CC to just the basename; use the full file name.
  4975. shift
  4976. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4977. fi
  4978. fi
  4979. fi
  4980. fi
  4981. CC=$ac_cv_prog_CC
  4982. if test -n "$CC"; then
  4983. echo "$as_me:$LINENO: result: $CC" >&5
  4984. echo "${ECHO_T}$CC" >&6
  4985. else
  4986. echo "$as_me:$LINENO: result: no" >&5
  4987. echo "${ECHO_T}no" >&6
  4988. fi
  4989. fi
  4990. if test -z "$CC"; then
  4991. if test -n "$ac_tool_prefix"; then
  4992. for ac_prog in cl
  4993. do
  4994. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4995. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4996. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4997. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4998. if test "${ac_cv_prog_CC+set}" = set; then
  4999. echo $ECHO_N "(cached) $ECHO_C" >&6
  5000. else
  5001. if test -n "$CC"; then
  5002. ac_cv_prog_CC="$CC" # Let the user override the test.
  5003. else
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH
  5006. do
  5007. IFS=$as_save_IFS
  5008. test -z "$as_dir" && as_dir=.
  5009. for ac_exec_ext in '' $ac_executable_extensions; do
  5010. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5011. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5012. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5013. break 2
  5014. fi
  5015. done
  5016. done
  5017. fi
  5018. fi
  5019. CC=$ac_cv_prog_CC
  5020. if test -n "$CC"; then
  5021. echo "$as_me:$LINENO: result: $CC" >&5
  5022. echo "${ECHO_T}$CC" >&6
  5023. else
  5024. echo "$as_me:$LINENO: result: no" >&5
  5025. echo "${ECHO_T}no" >&6
  5026. fi
  5027. test -n "$CC" && break
  5028. done
  5029. fi
  5030. if test -z "$CC"; then
  5031. ac_ct_CC=$CC
  5032. for ac_prog in cl
  5033. do
  5034. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5035. set dummy $ac_prog; ac_word=$2
  5036. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5038. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5039. echo $ECHO_N "(cached) $ECHO_C" >&6
  5040. else
  5041. if test -n "$ac_ct_CC"; then
  5042. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5043. else
  5044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5045. for as_dir in $PATH
  5046. do
  5047. IFS=$as_save_IFS
  5048. test -z "$as_dir" && as_dir=.
  5049. for ac_exec_ext in '' $ac_executable_extensions; do
  5050. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5051. ac_cv_prog_ac_ct_CC="$ac_prog"
  5052. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5053. break 2
  5054. fi
  5055. done
  5056. done
  5057. fi
  5058. fi
  5059. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5060. if test -n "$ac_ct_CC"; then
  5061. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5062. echo "${ECHO_T}$ac_ct_CC" >&6
  5063. else
  5064. echo "$as_me:$LINENO: result: no" >&5
  5065. echo "${ECHO_T}no" >&6
  5066. fi
  5067. test -n "$ac_ct_CC" && break
  5068. done
  5069. CC=$ac_ct_CC
  5070. fi
  5071. fi
  5072. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5073. See \`config.log' for more details." >&5
  5074. echo "$as_me: error: no acceptable C compiler found in \$PATH
  5075. See \`config.log' for more details." >&2;}
  5076. { (exit 1); exit 1; }; }
  5077. # Provide some information about the compiler.
  5078. echo "$as_me:$LINENO:" \
  5079. "checking for C compiler version" >&5
  5080. ac_compiler=`set X $ac_compile; echo $2`
  5081. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5082. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5083. ac_status=$?
  5084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5085. (exit $ac_status); }
  5086. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5087. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5088. ac_status=$?
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); }
  5091. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5092. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5093. ac_status=$?
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); }
  5096. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5097. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  5098. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5099. echo $ECHO_N "(cached) $ECHO_C" >&6
  5100. else
  5101. cat >conftest.$ac_ext <<_ACEOF
  5102. /* confdefs.h. */
  5103. _ACEOF
  5104. cat confdefs.h >>conftest.$ac_ext
  5105. cat >>conftest.$ac_ext <<_ACEOF
  5106. /* end confdefs.h. */
  5107. int
  5108. main ()
  5109. {
  5110. #ifndef __GNUC__
  5111. choke me
  5112. #endif
  5113. ;
  5114. return 0;
  5115. }
  5116. _ACEOF
  5117. rm -f conftest.$ac_objext
  5118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5119. (eval $ac_compile) 2>conftest.er1
  5120. ac_status=$?
  5121. grep -v '^ *+' conftest.er1 >conftest.err
  5122. rm -f conftest.er1
  5123. cat conftest.err >&5
  5124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5125. (exit $ac_status); } &&
  5126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5128. (eval $ac_try) 2>&5
  5129. ac_status=$?
  5130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5131. (exit $ac_status); }; } &&
  5132. { ac_try='test -s conftest.$ac_objext'
  5133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5134. (eval $ac_try) 2>&5
  5135. ac_status=$?
  5136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); }; }; then
  5138. ac_compiler_gnu=yes
  5139. else
  5140. echo "$as_me: failed program was:" >&5
  5141. sed 's/^/| /' conftest.$ac_ext >&5
  5142. ac_compiler_gnu=no
  5143. fi
  5144. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5146. fi
  5147. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5148. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  5149. GCC=`test $ac_compiler_gnu = yes && echo yes`
  5150. ac_test_CFLAGS=${CFLAGS+set}
  5151. ac_save_CFLAGS=$CFLAGS
  5152. CFLAGS="-g"
  5153. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5154. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  5155. if test "${ac_cv_prog_cc_g+set}" = set; then
  5156. echo $ECHO_N "(cached) $ECHO_C" >&6
  5157. else
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. int
  5165. main ()
  5166. {
  5167. ;
  5168. return 0;
  5169. }
  5170. _ACEOF
  5171. rm -f conftest.$ac_objext
  5172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5173. (eval $ac_compile) 2>conftest.er1
  5174. ac_status=$?
  5175. grep -v '^ *+' conftest.er1 >conftest.err
  5176. rm -f conftest.er1
  5177. cat conftest.err >&5
  5178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5179. (exit $ac_status); } &&
  5180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5182. (eval $ac_try) 2>&5
  5183. ac_status=$?
  5184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5185. (exit $ac_status); }; } &&
  5186. { ac_try='test -s conftest.$ac_objext'
  5187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5188. (eval $ac_try) 2>&5
  5189. ac_status=$?
  5190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5191. (exit $ac_status); }; }; then
  5192. ac_cv_prog_cc_g=yes
  5193. else
  5194. echo "$as_me: failed program was:" >&5
  5195. sed 's/^/| /' conftest.$ac_ext >&5
  5196. ac_cv_prog_cc_g=no
  5197. fi
  5198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5199. fi
  5200. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5201. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  5202. if test "$ac_test_CFLAGS" = set; then
  5203. CFLAGS=$ac_save_CFLAGS
  5204. elif test $ac_cv_prog_cc_g = yes; then
  5205. if test "$GCC" = yes; then
  5206. CFLAGS="-g -O2"
  5207. else
  5208. CFLAGS="-g"
  5209. fi
  5210. else
  5211. if test "$GCC" = yes; then
  5212. CFLAGS="-O2"
  5213. else
  5214. CFLAGS=
  5215. fi
  5216. fi
  5217. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  5218. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  5219. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  5220. echo $ECHO_N "(cached) $ECHO_C" >&6
  5221. else
  5222. ac_cv_prog_cc_stdc=no
  5223. ac_save_CC=$CC
  5224. cat >conftest.$ac_ext <<_ACEOF
  5225. /* confdefs.h. */
  5226. _ACEOF
  5227. cat confdefs.h >>conftest.$ac_ext
  5228. cat >>conftest.$ac_ext <<_ACEOF
  5229. /* end confdefs.h. */
  5230. #include <stdarg.h>
  5231. #include <stdio.h>
  5232. #include <sys/types.h>
  5233. #include <sys/stat.h>
  5234. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5235. struct buf { int x; };
  5236. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5237. static char *e (p, i)
  5238. char **p;
  5239. int i;
  5240. {
  5241. return p[i];
  5242. }
  5243. static char *f (char * (*g) (char **, int), char **p, ...)
  5244. {
  5245. char *s;
  5246. va_list v;
  5247. va_start (v,p);
  5248. s = g (p, va_arg (v,int));
  5249. va_end (v);
  5250. return s;
  5251. }
  5252. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5253. function prototypes and stuff, but not '\xHH' hex character constants.
  5254. These don't provoke an error unfortunately, instead are silently treated
  5255. as 'x'. The following induces an error, until -std1 is added to get
  5256. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5257. array size at least. It's necessary to write '\x00'==0 to get something
  5258. that's true only with -std1. */
  5259. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5260. int test (int i, double x);
  5261. struct s1 {int (*f) (int a);};
  5262. struct s2 {int (*f) (double a);};
  5263. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5264. int argc;
  5265. char **argv;
  5266. int
  5267. main ()
  5268. {
  5269. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5270. ;
  5271. return 0;
  5272. }
  5273. _ACEOF
  5274. # Don't try gcc -ansi; that turns off useful extensions and
  5275. # breaks some systems' header files.
  5276. # AIX -qlanglvl=ansi
  5277. # Ultrix and OSF/1 -std1
  5278. # HP-UX 10.20 and later -Ae
  5279. # HP-UX older versions -Aa -D_HPUX_SOURCE
  5280. # SVR4 -Xc -D__EXTENSIONS__
  5281. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5282. do
  5283. CC="$ac_save_CC $ac_arg"
  5284. rm -f conftest.$ac_objext
  5285. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5286. (eval $ac_compile) 2>conftest.er1
  5287. ac_status=$?
  5288. grep -v '^ *+' conftest.er1 >conftest.err
  5289. rm -f conftest.er1
  5290. cat conftest.err >&5
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); } &&
  5293. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5295. (eval $ac_try) 2>&5
  5296. ac_status=$?
  5297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); }; } &&
  5299. { ac_try='test -s conftest.$ac_objext'
  5300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5301. (eval $ac_try) 2>&5
  5302. ac_status=$?
  5303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5304. (exit $ac_status); }; }; then
  5305. ac_cv_prog_cc_stdc=$ac_arg
  5306. break
  5307. else
  5308. echo "$as_me: failed program was:" >&5
  5309. sed 's/^/| /' conftest.$ac_ext >&5
  5310. fi
  5311. rm -f conftest.err conftest.$ac_objext
  5312. done
  5313. rm -f conftest.$ac_ext conftest.$ac_objext
  5314. CC=$ac_save_CC
  5315. fi
  5316. case "x$ac_cv_prog_cc_stdc" in
  5317. x|xno)
  5318. echo "$as_me:$LINENO: result: none needed" >&5
  5319. echo "${ECHO_T}none needed" >&6 ;;
  5320. *)
  5321. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  5322. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  5323. CC="$CC $ac_cv_prog_cc_stdc" ;;
  5324. esac
  5325. # Some people use a C++ compiler to compile C. Since we use `exit',
  5326. # in C++ we need to declare it. In case someone uses the same compiler
  5327. # for both compiling C and C++ we need to have the C++ compiler decide
  5328. # the declaration of exit, since it's the most demanding environment.
  5329. cat >conftest.$ac_ext <<_ACEOF
  5330. #ifndef __cplusplus
  5331. choke me
  5332. #endif
  5333. _ACEOF
  5334. rm -f conftest.$ac_objext
  5335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5336. (eval $ac_compile) 2>conftest.er1
  5337. ac_status=$?
  5338. grep -v '^ *+' conftest.er1 >conftest.err
  5339. rm -f conftest.er1
  5340. cat conftest.err >&5
  5341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342. (exit $ac_status); } &&
  5343. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5345. (eval $ac_try) 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); }; } &&
  5349. { ac_try='test -s conftest.$ac_objext'
  5350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5351. (eval $ac_try) 2>&5
  5352. ac_status=$?
  5353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5354. (exit $ac_status); }; }; then
  5355. for ac_declaration in \
  5356. '' \
  5357. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  5358. 'extern "C" void std::exit (int); using std::exit;' \
  5359. 'extern "C" void exit (int) throw ();' \
  5360. 'extern "C" void exit (int);' \
  5361. 'void exit (int);'
  5362. do
  5363. cat >conftest.$ac_ext <<_ACEOF
  5364. /* confdefs.h. */
  5365. _ACEOF
  5366. cat confdefs.h >>conftest.$ac_ext
  5367. cat >>conftest.$ac_ext <<_ACEOF
  5368. /* end confdefs.h. */
  5369. $ac_declaration
  5370. #include <stdlib.h>
  5371. int
  5372. main ()
  5373. {
  5374. exit (42);
  5375. ;
  5376. return 0;
  5377. }
  5378. _ACEOF
  5379. rm -f conftest.$ac_objext
  5380. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5381. (eval $ac_compile) 2>conftest.er1
  5382. ac_status=$?
  5383. grep -v '^ *+' conftest.er1 >conftest.err
  5384. rm -f conftest.er1
  5385. cat conftest.err >&5
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); } &&
  5388. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5390. (eval $ac_try) 2>&5
  5391. ac_status=$?
  5392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5393. (exit $ac_status); }; } &&
  5394. { ac_try='test -s conftest.$ac_objext'
  5395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5396. (eval $ac_try) 2>&5
  5397. ac_status=$?
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); }; }; then
  5400. :
  5401. else
  5402. echo "$as_me: failed program was:" >&5
  5403. sed 's/^/| /' conftest.$ac_ext >&5
  5404. continue
  5405. fi
  5406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5407. cat >conftest.$ac_ext <<_ACEOF
  5408. /* confdefs.h. */
  5409. _ACEOF
  5410. cat confdefs.h >>conftest.$ac_ext
  5411. cat >>conftest.$ac_ext <<_ACEOF
  5412. /* end confdefs.h. */
  5413. $ac_declaration
  5414. int
  5415. main ()
  5416. {
  5417. exit (42);
  5418. ;
  5419. return 0;
  5420. }
  5421. _ACEOF
  5422. rm -f conftest.$ac_objext
  5423. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5424. (eval $ac_compile) 2>conftest.er1
  5425. ac_status=$?
  5426. grep -v '^ *+' conftest.er1 >conftest.err
  5427. rm -f conftest.er1
  5428. cat conftest.err >&5
  5429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5430. (exit $ac_status); } &&
  5431. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5433. (eval $ac_try) 2>&5
  5434. ac_status=$?
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); }; } &&
  5437. { ac_try='test -s conftest.$ac_objext'
  5438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5439. (eval $ac_try) 2>&5
  5440. ac_status=$?
  5441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5442. (exit $ac_status); }; }; then
  5443. break
  5444. else
  5445. echo "$as_me: failed program was:" >&5
  5446. sed 's/^/| /' conftest.$ac_ext >&5
  5447. fi
  5448. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5449. done
  5450. rm -f conftest*
  5451. if test -n "$ac_declaration"; then
  5452. echo '#ifdef __cplusplus' >>confdefs.h
  5453. echo $ac_declaration >>confdefs.h
  5454. echo '#endif' >>confdefs.h
  5455. fi
  5456. else
  5457. echo "$as_me: failed program was:" >&5
  5458. sed 's/^/| /' conftest.$ac_ext >&5
  5459. fi
  5460. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5461. ac_ext=c
  5462. ac_cpp='$CPP $CPPFLAGS'
  5463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5466. depcc="$CC" am_compiler_list=
  5467. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5468. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  5469. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5470. echo $ECHO_N "(cached) $ECHO_C" >&6
  5471. else
  5472. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5473. # We make a subdir and do the tests there. Otherwise we can end up
  5474. # making bogus files that we don't know about and never remove. For
  5475. # instance it was reported that on HP-UX the gcc test will end up
  5476. # making a dummy file named `D' -- because `-MD' means `put the output
  5477. # in D'.
  5478. mkdir conftest.dir
  5479. # Copy depcomp to subdir because otherwise we won't find it if we're
  5480. # using a relative directory.
  5481. cp "$am_depcomp" conftest.dir
  5482. cd conftest.dir
  5483. # We will build objects and dependencies in a subdirectory because
  5484. # it helps to detect inapplicable dependency modes. For instance
  5485. # both Tru64's cc and ICC support -MD to output dependencies as a
  5486. # side effect of compilation, but ICC will put the dependencies in
  5487. # the current directory while Tru64 will put them in the object
  5488. # directory.
  5489. mkdir sub
  5490. am_cv_CC_dependencies_compiler_type=none
  5491. if test "$am_compiler_list" = ""; then
  5492. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5493. fi
  5494. for depmode in $am_compiler_list; do
  5495. # Setup a source with many dependencies, because some compilers
  5496. # like to wrap large dependency lists on column 80 (with \), and
  5497. # we should not choose a depcomp mode which is confused by this.
  5498. #
  5499. # We need to recreate these files for each test, as the compiler may
  5500. # overwrite some of them when testing with obscure command lines.
  5501. # This happens at least with the AIX C compiler.
  5502. : > sub/conftest.c
  5503. for i in 1 2 3 4 5 6; do
  5504. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5505. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5506. # Solaris 8's {/usr,}/bin/sh.
  5507. touch sub/conftst$i.h
  5508. done
  5509. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5510. case $depmode in
  5511. nosideeffect)
  5512. # after this tag, mechanisms are not by side-effect, so they'll
  5513. # only be used when explicitly requested
  5514. if test "x$enable_dependency_tracking" = xyes; then
  5515. continue
  5516. else
  5517. break
  5518. fi
  5519. ;;
  5520. none) break ;;
  5521. esac
  5522. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5523. # mode. It turns out that the SunPro C++ compiler does not properly
  5524. # handle `-M -o', and we need to detect this.
  5525. if depmode=$depmode \
  5526. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5527. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5528. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5529. >/dev/null 2>conftest.err &&
  5530. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5531. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5532. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5533. # icc doesn't choke on unknown options, it will just issue warnings
  5534. # or remarks (even with -Werror). So we grep stderr for any message
  5535. # that says an option was ignored or not supported.
  5536. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5537. # icc: Command line warning: ignoring option '-M'; no argument required
  5538. # The diagnosis changed in icc 8.0:
  5539. # icc: Command line remark: option '-MP' not supported
  5540. if (grep 'ignoring option' conftest.err ||
  5541. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5542. am_cv_CC_dependencies_compiler_type=$depmode
  5543. break
  5544. fi
  5545. fi
  5546. done
  5547. cd ..
  5548. rm -rf conftest.dir
  5549. else
  5550. am_cv_CC_dependencies_compiler_type=none
  5551. fi
  5552. fi
  5553. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5554. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  5555. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5556. if
  5557. test "x$enable_dependency_tracking" != xno \
  5558. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5559. am__fastdepCC_TRUE=
  5560. am__fastdepCC_FALSE='#'
  5561. else
  5562. am__fastdepCC_TRUE='#'
  5563. am__fastdepCC_FALSE=
  5564. fi
  5565. # Checks for libraries.
  5566. if test "x$enable_ssl" = "xyes"; then
  5567. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5568. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  5569. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5570. echo $ECHO_N "(cached) $ECHO_C" >&6
  5571. else
  5572. ac_check_lib_save_LIBS=$LIBS
  5573. LIBS="-lssl $LIBS"
  5574. cat >conftest.$ac_ext <<_ACEOF
  5575. /* confdefs.h. */
  5576. _ACEOF
  5577. cat confdefs.h >>conftest.$ac_ext
  5578. cat >>conftest.$ac_ext <<_ACEOF
  5579. /* end confdefs.h. */
  5580. /* Override any gcc2 internal prototype to avoid an error. */
  5581. #ifdef __cplusplus
  5582. extern "C"
  5583. #endif
  5584. /* We use char because int might match the return type of a gcc2
  5585. builtin and then its argument prototype would still apply. */
  5586. char SSL_library_init ();
  5587. int
  5588. main ()
  5589. {
  5590. SSL_library_init ();
  5591. ;
  5592. return 0;
  5593. }
  5594. _ACEOF
  5595. rm -f conftest.$ac_objext conftest$ac_exeext
  5596. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5597. (eval $ac_link) 2>conftest.er1
  5598. ac_status=$?
  5599. grep -v '^ *+' conftest.er1 >conftest.err
  5600. rm -f conftest.er1
  5601. cat conftest.err >&5
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); } &&
  5604. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5606. (eval $ac_try) 2>&5
  5607. ac_status=$?
  5608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. (exit $ac_status); }; } &&
  5610. { ac_try='test -s conftest$ac_exeext'
  5611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5612. (eval $ac_try) 2>&5
  5613. ac_status=$?
  5614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); }; }; then
  5616. ac_cv_lib_ssl_SSL_library_init=yes
  5617. else
  5618. echo "$as_me: failed program was:" >&5
  5619. sed 's/^/| /' conftest.$ac_ext >&5
  5620. ac_cv_lib_ssl_SSL_library_init=no
  5621. fi
  5622. rm -f conftest.err conftest.$ac_objext \
  5623. conftest$ac_exeext conftest.$ac_ext
  5624. LIBS=$ac_check_lib_save_LIBS
  5625. fi
  5626. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5627. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  5628. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5629. cat >>confdefs.h <<_ACEOF
  5630. #define HAVE_LIBSSL 1
  5631. _ACEOF
  5632. LIBS="-lssl $LIBS"
  5633. fi
  5634. fi
  5635. # Checks for header files.
  5636. ac_ext=c
  5637. ac_cpp='$CPP $CPPFLAGS'
  5638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5641. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5642. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  5643. # On Suns, sometimes $CPP names a directory.
  5644. if test -n "$CPP" && test -d "$CPP"; then
  5645. CPP=
  5646. fi
  5647. if test -z "$CPP"; then
  5648. if test "${ac_cv_prog_CPP+set}" = set; then
  5649. echo $ECHO_N "(cached) $ECHO_C" >&6
  5650. else
  5651. # Double quotes because CPP needs to be expanded
  5652. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5653. do
  5654. ac_preproc_ok=false
  5655. for ac_c_preproc_warn_flag in '' yes
  5656. do
  5657. # Use a header file that comes with gcc, so configuring glibc
  5658. # with a fresh cross-compiler works.
  5659. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5660. # <limits.h> exists even on freestanding compilers.
  5661. # On the NeXT, cc -E runs the code through the compiler's parser,
  5662. # not just through cpp. "Syntax error" is here to catch this case.
  5663. cat >conftest.$ac_ext <<_ACEOF
  5664. /* confdefs.h. */
  5665. _ACEOF
  5666. cat confdefs.h >>conftest.$ac_ext
  5667. cat >>conftest.$ac_ext <<_ACEOF
  5668. /* end confdefs.h. */
  5669. #ifdef __STDC__
  5670. # include <limits.h>
  5671. #else
  5672. # include <assert.h>
  5673. #endif
  5674. Syntax error
  5675. _ACEOF
  5676. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5677. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5678. ac_status=$?
  5679. grep -v '^ *+' conftest.er1 >conftest.err
  5680. rm -f conftest.er1
  5681. cat conftest.err >&5
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); } >/dev/null; then
  5684. if test -s conftest.err; then
  5685. ac_cpp_err=$ac_c_preproc_warn_flag
  5686. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5687. else
  5688. ac_cpp_err=
  5689. fi
  5690. else
  5691. ac_cpp_err=yes
  5692. fi
  5693. if test -z "$ac_cpp_err"; then
  5694. :
  5695. else
  5696. echo "$as_me: failed program was:" >&5
  5697. sed 's/^/| /' conftest.$ac_ext >&5
  5698. # Broken: fails on valid input.
  5699. continue
  5700. fi
  5701. rm -f conftest.err conftest.$ac_ext
  5702. # OK, works on sane cases. Now check whether non-existent headers
  5703. # can be detected and how.
  5704. cat >conftest.$ac_ext <<_ACEOF
  5705. /* confdefs.h. */
  5706. _ACEOF
  5707. cat confdefs.h >>conftest.$ac_ext
  5708. cat >>conftest.$ac_ext <<_ACEOF
  5709. /* end confdefs.h. */
  5710. #include <ac_nonexistent.h>
  5711. _ACEOF
  5712. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5713. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5714. ac_status=$?
  5715. grep -v '^ *+' conftest.er1 >conftest.err
  5716. rm -f conftest.er1
  5717. cat conftest.err >&5
  5718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5719. (exit $ac_status); } >/dev/null; then
  5720. if test -s conftest.err; then
  5721. ac_cpp_err=$ac_c_preproc_warn_flag
  5722. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5723. else
  5724. ac_cpp_err=
  5725. fi
  5726. else
  5727. ac_cpp_err=yes
  5728. fi
  5729. if test -z "$ac_cpp_err"; then
  5730. # Broken: success on invalid input.
  5731. continue
  5732. else
  5733. echo "$as_me: failed program was:" >&5
  5734. sed 's/^/| /' conftest.$ac_ext >&5
  5735. # Passes both tests.
  5736. ac_preproc_ok=:
  5737. break
  5738. fi
  5739. rm -f conftest.err conftest.$ac_ext
  5740. done
  5741. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5742. rm -f conftest.err conftest.$ac_ext
  5743. if $ac_preproc_ok; then
  5744. break
  5745. fi
  5746. done
  5747. ac_cv_prog_CPP=$CPP
  5748. fi
  5749. CPP=$ac_cv_prog_CPP
  5750. else
  5751. ac_cv_prog_CPP=$CPP
  5752. fi
  5753. echo "$as_me:$LINENO: result: $CPP" >&5
  5754. echo "${ECHO_T}$CPP" >&6
  5755. ac_preproc_ok=false
  5756. for ac_c_preproc_warn_flag in '' yes
  5757. do
  5758. # Use a header file that comes with gcc, so configuring glibc
  5759. # with a fresh cross-compiler works.
  5760. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5761. # <limits.h> exists even on freestanding compilers.
  5762. # On the NeXT, cc -E runs the code through the compiler's parser,
  5763. # not just through cpp. "Syntax error" is here to catch this case.
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. #ifdef __STDC__
  5771. # include <limits.h>
  5772. #else
  5773. # include <assert.h>
  5774. #endif
  5775. Syntax error
  5776. _ACEOF
  5777. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5778. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5779. ac_status=$?
  5780. grep -v '^ *+' conftest.er1 >conftest.err
  5781. rm -f conftest.er1
  5782. cat conftest.err >&5
  5783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5784. (exit $ac_status); } >/dev/null; then
  5785. if test -s conftest.err; then
  5786. ac_cpp_err=$ac_c_preproc_warn_flag
  5787. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5788. else
  5789. ac_cpp_err=
  5790. fi
  5791. else
  5792. ac_cpp_err=yes
  5793. fi
  5794. if test -z "$ac_cpp_err"; then
  5795. :
  5796. else
  5797. echo "$as_me: failed program was:" >&5
  5798. sed 's/^/| /' conftest.$ac_ext >&5
  5799. # Broken: fails on valid input.
  5800. continue
  5801. fi
  5802. rm -f conftest.err conftest.$ac_ext
  5803. # OK, works on sane cases. Now check whether non-existent headers
  5804. # can be detected and how.
  5805. cat >conftest.$ac_ext <<_ACEOF
  5806. /* confdefs.h. */
  5807. _ACEOF
  5808. cat confdefs.h >>conftest.$ac_ext
  5809. cat >>conftest.$ac_ext <<_ACEOF
  5810. /* end confdefs.h. */
  5811. #include <ac_nonexistent.h>
  5812. _ACEOF
  5813. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5814. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5815. ac_status=$?
  5816. grep -v '^ *+' conftest.er1 >conftest.err
  5817. rm -f conftest.er1
  5818. cat conftest.err >&5
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } >/dev/null; then
  5821. if test -s conftest.err; then
  5822. ac_cpp_err=$ac_c_preproc_warn_flag
  5823. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5824. else
  5825. ac_cpp_err=
  5826. fi
  5827. else
  5828. ac_cpp_err=yes
  5829. fi
  5830. if test -z "$ac_cpp_err"; then
  5831. # Broken: success on invalid input.
  5832. continue
  5833. else
  5834. echo "$as_me: failed program was:" >&5
  5835. sed 's/^/| /' conftest.$ac_ext >&5
  5836. # Passes both tests.
  5837. ac_preproc_ok=:
  5838. break
  5839. fi
  5840. rm -f conftest.err conftest.$ac_ext
  5841. done
  5842. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5843. rm -f conftest.err conftest.$ac_ext
  5844. if $ac_preproc_ok; then
  5845. :
  5846. else
  5847. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5848. See \`config.log' for more details." >&5
  5849. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5850. See \`config.log' for more details." >&2;}
  5851. { (exit 1); exit 1; }; }
  5852. fi
  5853. ac_ext=c
  5854. ac_cpp='$CPP $CPPFLAGS'
  5855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5858. echo "$as_me:$LINENO: checking for egrep" >&5
  5859. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5860. if test "${ac_cv_prog_egrep+set}" = set; then
  5861. echo $ECHO_N "(cached) $ECHO_C" >&6
  5862. else
  5863. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5864. then ac_cv_prog_egrep='grep -E'
  5865. else ac_cv_prog_egrep='egrep'
  5866. fi
  5867. fi
  5868. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5869. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  5870. EGREP=$ac_cv_prog_egrep
  5871. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5872. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5873. if test "${ac_cv_header_stdc+set}" = set; then
  5874. echo $ECHO_N "(cached) $ECHO_C" >&6
  5875. else
  5876. cat >conftest.$ac_ext <<_ACEOF
  5877. /* confdefs.h. */
  5878. _ACEOF
  5879. cat confdefs.h >>conftest.$ac_ext
  5880. cat >>conftest.$ac_ext <<_ACEOF
  5881. /* end confdefs.h. */
  5882. #include <stdlib.h>
  5883. #include <stdarg.h>
  5884. #include <string.h>
  5885. #include <float.h>
  5886. int
  5887. main ()
  5888. {
  5889. ;
  5890. return 0;
  5891. }
  5892. _ACEOF
  5893. rm -f conftest.$ac_objext
  5894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5895. (eval $ac_compile) 2>conftest.er1
  5896. ac_status=$?
  5897. grep -v '^ *+' conftest.er1 >conftest.err
  5898. rm -f conftest.er1
  5899. cat conftest.err >&5
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); } &&
  5902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5904. (eval $ac_try) 2>&5
  5905. ac_status=$?
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); }; } &&
  5908. { ac_try='test -s conftest.$ac_objext'
  5909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; }; then
  5914. ac_cv_header_stdc=yes
  5915. else
  5916. echo "$as_me: failed program was:" >&5
  5917. sed 's/^/| /' conftest.$ac_ext >&5
  5918. ac_cv_header_stdc=no
  5919. fi
  5920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. if test $ac_cv_header_stdc = yes; then
  5922. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5923. cat >conftest.$ac_ext <<_ACEOF
  5924. /* confdefs.h. */
  5925. _ACEOF
  5926. cat confdefs.h >>conftest.$ac_ext
  5927. cat >>conftest.$ac_ext <<_ACEOF
  5928. /* end confdefs.h. */
  5929. #include <string.h>
  5930. _ACEOF
  5931. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5932. $EGREP "memchr" >/dev/null 2>&1; then
  5933. :
  5934. else
  5935. ac_cv_header_stdc=no
  5936. fi
  5937. rm -f conftest*
  5938. fi
  5939. if test $ac_cv_header_stdc = yes; then
  5940. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5941. cat >conftest.$ac_ext <<_ACEOF
  5942. /* confdefs.h. */
  5943. _ACEOF
  5944. cat confdefs.h >>conftest.$ac_ext
  5945. cat >>conftest.$ac_ext <<_ACEOF
  5946. /* end confdefs.h. */
  5947. #include <stdlib.h>
  5948. _ACEOF
  5949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5950. $EGREP "free" >/dev/null 2>&1; then
  5951. :
  5952. else
  5953. ac_cv_header_stdc=no
  5954. fi
  5955. rm -f conftest*
  5956. fi
  5957. if test $ac_cv_header_stdc = yes; then
  5958. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5959. if test "$cross_compiling" = yes; then
  5960. :
  5961. else
  5962. cat >conftest.$ac_ext <<_ACEOF
  5963. /* confdefs.h. */
  5964. _ACEOF
  5965. cat confdefs.h >>conftest.$ac_ext
  5966. cat >>conftest.$ac_ext <<_ACEOF
  5967. /* end confdefs.h. */
  5968. #include <ctype.h>
  5969. #if ((' ' & 0x0FF) == 0x020)
  5970. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5971. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5972. #else
  5973. # define ISLOWER(c) \
  5974. (('a' <= (c) && (c) <= 'i') \
  5975. || ('j' <= (c) && (c) <= 'r') \
  5976. || ('s' <= (c) && (c) <= 'z'))
  5977. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5978. #endif
  5979. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5980. int
  5981. main ()
  5982. {
  5983. int i;
  5984. for (i = 0; i < 256; i++)
  5985. if (XOR (islower (i), ISLOWER (i))
  5986. || toupper (i) != TOUPPER (i))
  5987. exit(2);
  5988. exit (0);
  5989. }
  5990. _ACEOF
  5991. rm -f conftest$ac_exeext
  5992. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5993. (eval $ac_link) 2>&5
  5994. ac_status=$?
  5995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5996. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5998. (eval $ac_try) 2>&5
  5999. ac_status=$?
  6000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6001. (exit $ac_status); }; }; then
  6002. :
  6003. else
  6004. echo "$as_me: program exited with status $ac_status" >&5
  6005. echo "$as_me: failed program was:" >&5
  6006. sed 's/^/| /' conftest.$ac_ext >&5
  6007. ( exit $ac_status )
  6008. ac_cv_header_stdc=no
  6009. fi
  6010. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6011. fi
  6012. fi
  6013. fi
  6014. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6015. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6016. if test $ac_cv_header_stdc = yes; then
  6017. cat >>confdefs.h <<\_ACEOF
  6018. #define STDC_HEADERS 1
  6019. _ACEOF
  6020. fi
  6021. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6022. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6023. inttypes.h stdint.h unistd.h
  6024. do
  6025. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6026. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6027. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6028. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6029. echo $ECHO_N "(cached) $ECHO_C" >&6
  6030. else
  6031. cat >conftest.$ac_ext <<_ACEOF
  6032. /* confdefs.h. */
  6033. _ACEOF
  6034. cat confdefs.h >>conftest.$ac_ext
  6035. cat >>conftest.$ac_ext <<_ACEOF
  6036. /* end confdefs.h. */
  6037. $ac_includes_default
  6038. #include <$ac_header>
  6039. _ACEOF
  6040. rm -f conftest.$ac_objext
  6041. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6042. (eval $ac_compile) 2>conftest.er1
  6043. ac_status=$?
  6044. grep -v '^ *+' conftest.er1 >conftest.err
  6045. rm -f conftest.er1
  6046. cat conftest.err >&5
  6047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6048. (exit $ac_status); } &&
  6049. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6051. (eval $ac_try) 2>&5
  6052. ac_status=$?
  6053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6054. (exit $ac_status); }; } &&
  6055. { ac_try='test -s conftest.$ac_objext'
  6056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6057. (eval $ac_try) 2>&5
  6058. ac_status=$?
  6059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6060. (exit $ac_status); }; }; then
  6061. eval "$as_ac_Header=yes"
  6062. else
  6063. echo "$as_me: failed program was:" >&5
  6064. sed 's/^/| /' conftest.$ac_ext >&5
  6065. eval "$as_ac_Header=no"
  6066. fi
  6067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6068. fi
  6069. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6070. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6071. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6072. cat >>confdefs.h <<_ACEOF
  6073. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6074. _ACEOF
  6075. fi
  6076. done
  6077. for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/socket.h sys/time.h unistd.h limits.h
  6078. do
  6079. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6080. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6081. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6082. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6083. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6084. echo $ECHO_N "(cached) $ECHO_C" >&6
  6085. fi
  6086. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6087. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6088. else
  6089. # Is the header compilable?
  6090. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6091. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6092. cat >conftest.$ac_ext <<_ACEOF
  6093. /* confdefs.h. */
  6094. _ACEOF
  6095. cat confdefs.h >>conftest.$ac_ext
  6096. cat >>conftest.$ac_ext <<_ACEOF
  6097. /* end confdefs.h. */
  6098. $ac_includes_default
  6099. #include <$ac_header>
  6100. _ACEOF
  6101. rm -f conftest.$ac_objext
  6102. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6103. (eval $ac_compile) 2>conftest.er1
  6104. ac_status=$?
  6105. grep -v '^ *+' conftest.er1 >conftest.err
  6106. rm -f conftest.er1
  6107. cat conftest.err >&5
  6108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6109. (exit $ac_status); } &&
  6110. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6112. (eval $ac_try) 2>&5
  6113. ac_status=$?
  6114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); }; } &&
  6116. { ac_try='test -s conftest.$ac_objext'
  6117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6118. (eval $ac_try) 2>&5
  6119. ac_status=$?
  6120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6121. (exit $ac_status); }; }; then
  6122. ac_header_compiler=yes
  6123. else
  6124. echo "$as_me: failed program was:" >&5
  6125. sed 's/^/| /' conftest.$ac_ext >&5
  6126. ac_header_compiler=no
  6127. fi
  6128. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6129. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6130. echo "${ECHO_T}$ac_header_compiler" >&6
  6131. # Is the header present?
  6132. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6133. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6134. cat >conftest.$ac_ext <<_ACEOF
  6135. /* confdefs.h. */
  6136. _ACEOF
  6137. cat confdefs.h >>conftest.$ac_ext
  6138. cat >>conftest.$ac_ext <<_ACEOF
  6139. /* end confdefs.h. */
  6140. #include <$ac_header>
  6141. _ACEOF
  6142. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6143. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6144. ac_status=$?
  6145. grep -v '^ *+' conftest.er1 >conftest.err
  6146. rm -f conftest.er1
  6147. cat conftest.err >&5
  6148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6149. (exit $ac_status); } >/dev/null; then
  6150. if test -s conftest.err; then
  6151. ac_cpp_err=$ac_c_preproc_warn_flag
  6152. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6153. else
  6154. ac_cpp_err=
  6155. fi
  6156. else
  6157. ac_cpp_err=yes
  6158. fi
  6159. if test -z "$ac_cpp_err"; then
  6160. ac_header_preproc=yes
  6161. else
  6162. echo "$as_me: failed program was:" >&5
  6163. sed 's/^/| /' conftest.$ac_ext >&5
  6164. ac_header_preproc=no
  6165. fi
  6166. rm -f conftest.err conftest.$ac_ext
  6167. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6168. echo "${ECHO_T}$ac_header_preproc" >&6
  6169. # So? What about this header?
  6170. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6171. yes:no: )
  6172. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6173. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6174. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6175. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6176. ac_header_preproc=yes
  6177. ;;
  6178. no:yes:* )
  6179. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6180. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6181. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6182. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6183. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6184. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6185. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6186. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6187. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6188. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6189. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6190. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6191. (
  6192. cat <<\_ASBOX
  6193. ## ----------------------------------- ##
  6194. ## Report this to tujikawa@rednoah.com ##
  6195. ## ----------------------------------- ##
  6196. _ASBOX
  6197. ) |
  6198. sed "s/^/$as_me: WARNING: /" >&2
  6199. ;;
  6200. esac
  6201. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6202. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6203. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6204. echo $ECHO_N "(cached) $ECHO_C" >&6
  6205. else
  6206. eval "$as_ac_Header=\$ac_header_preproc"
  6207. fi
  6208. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6209. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6210. fi
  6211. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6212. cat >>confdefs.h <<_ACEOF
  6213. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6214. _ACEOF
  6215. fi
  6216. done
  6217. # Checks for typedefs, structures, and compiler characteristics.
  6218. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6219. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  6220. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6221. echo $ECHO_N "(cached) $ECHO_C" >&6
  6222. else
  6223. cat >conftest.$ac_ext <<_ACEOF
  6224. /* confdefs.h. */
  6225. _ACEOF
  6226. cat confdefs.h >>conftest.$ac_ext
  6227. cat >>conftest.$ac_ext <<_ACEOF
  6228. /* end confdefs.h. */
  6229. #include <stdbool.h>
  6230. #ifndef bool
  6231. # error bool is not defined
  6232. #endif
  6233. #ifndef false
  6234. # error false is not defined
  6235. #endif
  6236. #if false
  6237. # error false is not 0
  6238. #endif
  6239. #ifndef true
  6240. # error true is not defined
  6241. #endif
  6242. #if true != 1
  6243. # error true is not 1
  6244. #endif
  6245. #ifndef __bool_true_false_are_defined
  6246. # error __bool_true_false_are_defined is not defined
  6247. #endif
  6248. struct s { _Bool s: 1; _Bool t; } s;
  6249. char a[true == 1 ? 1 : -1];
  6250. char b[false == 0 ? 1 : -1];
  6251. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6252. char d[(bool) -0.5 == true ? 1 : -1];
  6253. bool e = &s;
  6254. char f[(_Bool) -0.0 == false ? 1 : -1];
  6255. char g[true];
  6256. char h[sizeof (_Bool)];
  6257. char i[sizeof s.t];
  6258. int
  6259. main ()
  6260. {
  6261. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  6262. ;
  6263. return 0;
  6264. }
  6265. _ACEOF
  6266. rm -f conftest.$ac_objext
  6267. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6268. (eval $ac_compile) 2>conftest.er1
  6269. ac_status=$?
  6270. grep -v '^ *+' conftest.er1 >conftest.err
  6271. rm -f conftest.er1
  6272. cat conftest.err >&5
  6273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6274. (exit $ac_status); } &&
  6275. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6277. (eval $ac_try) 2>&5
  6278. ac_status=$?
  6279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6280. (exit $ac_status); }; } &&
  6281. { ac_try='test -s conftest.$ac_objext'
  6282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6283. (eval $ac_try) 2>&5
  6284. ac_status=$?
  6285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6286. (exit $ac_status); }; }; then
  6287. ac_cv_header_stdbool_h=yes
  6288. else
  6289. echo "$as_me: failed program was:" >&5
  6290. sed 's/^/| /' conftest.$ac_ext >&5
  6291. ac_cv_header_stdbool_h=no
  6292. fi
  6293. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6294. fi
  6295. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6296. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  6297. echo "$as_me:$LINENO: checking for _Bool" >&5
  6298. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  6299. if test "${ac_cv_type__Bool+set}" = set; then
  6300. echo $ECHO_N "(cached) $ECHO_C" >&6
  6301. else
  6302. cat >conftest.$ac_ext <<_ACEOF
  6303. /* confdefs.h. */
  6304. _ACEOF
  6305. cat confdefs.h >>conftest.$ac_ext
  6306. cat >>conftest.$ac_ext <<_ACEOF
  6307. /* end confdefs.h. */
  6308. $ac_includes_default
  6309. int
  6310. main ()
  6311. {
  6312. if ((_Bool *) 0)
  6313. return 0;
  6314. if (sizeof (_Bool))
  6315. return 0;
  6316. ;
  6317. return 0;
  6318. }
  6319. _ACEOF
  6320. rm -f conftest.$ac_objext
  6321. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6322. (eval $ac_compile) 2>conftest.er1
  6323. ac_status=$?
  6324. grep -v '^ *+' conftest.er1 >conftest.err
  6325. rm -f conftest.er1
  6326. cat conftest.err >&5
  6327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6328. (exit $ac_status); } &&
  6329. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6331. (eval $ac_try) 2>&5
  6332. ac_status=$?
  6333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6334. (exit $ac_status); }; } &&
  6335. { ac_try='test -s conftest.$ac_objext'
  6336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6337. (eval $ac_try) 2>&5
  6338. ac_status=$?
  6339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); }; }; then
  6341. ac_cv_type__Bool=yes
  6342. else
  6343. echo "$as_me: failed program was:" >&5
  6344. sed 's/^/| /' conftest.$ac_ext >&5
  6345. ac_cv_type__Bool=no
  6346. fi
  6347. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6348. fi
  6349. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6350. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  6351. if test $ac_cv_type__Bool = yes; then
  6352. cat >>confdefs.h <<_ACEOF
  6353. #define HAVE__BOOL 1
  6354. _ACEOF
  6355. fi
  6356. if test $ac_cv_header_stdbool_h = yes; then
  6357. cat >>confdefs.h <<\_ACEOF
  6358. #define HAVE_STDBOOL_H 1
  6359. _ACEOF
  6360. fi
  6361. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6362. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6363. if test "${ac_cv_c_const+set}" = set; then
  6364. echo $ECHO_N "(cached) $ECHO_C" >&6
  6365. else
  6366. cat >conftest.$ac_ext <<_ACEOF
  6367. /* confdefs.h. */
  6368. _ACEOF
  6369. cat confdefs.h >>conftest.$ac_ext
  6370. cat >>conftest.$ac_ext <<_ACEOF
  6371. /* end confdefs.h. */
  6372. int
  6373. main ()
  6374. {
  6375. /* FIXME: Include the comments suggested by Paul. */
  6376. #ifndef __cplusplus
  6377. /* Ultrix mips cc rejects this. */
  6378. typedef int charset[2];
  6379. const charset x;
  6380. /* SunOS 4.1.1 cc rejects this. */
  6381. char const *const *ccp;
  6382. char **p;
  6383. /* NEC SVR4.0.2 mips cc rejects this. */
  6384. struct point {int x, y;};
  6385. static struct point const zero = {0,0};
  6386. /* AIX XL C 1.02.0.0 rejects this.
  6387. It does not let you subtract one const X* pointer from another in
  6388. an arm of an if-expression whose if-part is not a constant
  6389. expression */
  6390. const char *g = "string";
  6391. ccp = &g + (g ? g-g : 0);
  6392. /* HPUX 7.0 cc rejects these. */
  6393. ++ccp;
  6394. p = (char**) ccp;
  6395. ccp = (char const *const *) p;
  6396. { /* SCO 3.2v4 cc rejects this. */
  6397. char *t;
  6398. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6399. *t++ = 0;
  6400. }
  6401. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6402. int x[] = {25, 17};
  6403. const int *foo = &x[0];
  6404. ++foo;
  6405. }
  6406. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6407. typedef const int *iptr;
  6408. iptr p = 0;
  6409. ++p;
  6410. }
  6411. { /* AIX XL C 1.02.0.0 rejects this saying
  6412. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6413. struct s { int j; const int *ap[3]; };
  6414. struct s *b; b->j = 5;
  6415. }
  6416. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6417. const int foo = 10;
  6418. }
  6419. #endif
  6420. ;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. rm -f conftest.$ac_objext
  6425. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6426. (eval $ac_compile) 2>conftest.er1
  6427. ac_status=$?
  6428. grep -v '^ *+' conftest.er1 >conftest.err
  6429. rm -f conftest.er1
  6430. cat conftest.err >&5
  6431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6432. (exit $ac_status); } &&
  6433. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6435. (eval $ac_try) 2>&5
  6436. ac_status=$?
  6437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6438. (exit $ac_status); }; } &&
  6439. { ac_try='test -s conftest.$ac_objext'
  6440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6441. (eval $ac_try) 2>&5
  6442. ac_status=$?
  6443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6444. (exit $ac_status); }; }; then
  6445. ac_cv_c_const=yes
  6446. else
  6447. echo "$as_me: failed program was:" >&5
  6448. sed 's/^/| /' conftest.$ac_ext >&5
  6449. ac_cv_c_const=no
  6450. fi
  6451. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6452. fi
  6453. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6454. echo "${ECHO_T}$ac_cv_c_const" >&6
  6455. if test $ac_cv_c_const = no; then
  6456. cat >>confdefs.h <<\_ACEOF
  6457. #define const
  6458. _ACEOF
  6459. fi
  6460. echo "$as_me:$LINENO: checking for size_t" >&5
  6461. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6462. if test "${ac_cv_type_size_t+set}" = set; then
  6463. echo $ECHO_N "(cached) $ECHO_C" >&6
  6464. else
  6465. cat >conftest.$ac_ext <<_ACEOF
  6466. /* confdefs.h. */
  6467. _ACEOF
  6468. cat confdefs.h >>conftest.$ac_ext
  6469. cat >>conftest.$ac_ext <<_ACEOF
  6470. /* end confdefs.h. */
  6471. $ac_includes_default
  6472. int
  6473. main ()
  6474. {
  6475. if ((size_t *) 0)
  6476. return 0;
  6477. if (sizeof (size_t))
  6478. return 0;
  6479. ;
  6480. return 0;
  6481. }
  6482. _ACEOF
  6483. rm -f conftest.$ac_objext
  6484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6485. (eval $ac_compile) 2>conftest.er1
  6486. ac_status=$?
  6487. grep -v '^ *+' conftest.er1 >conftest.err
  6488. rm -f conftest.er1
  6489. cat conftest.err >&5
  6490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6491. (exit $ac_status); } &&
  6492. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6494. (eval $ac_try) 2>&5
  6495. ac_status=$?
  6496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); }; } &&
  6498. { ac_try='test -s conftest.$ac_objext'
  6499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6500. (eval $ac_try) 2>&5
  6501. ac_status=$?
  6502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6503. (exit $ac_status); }; }; then
  6504. ac_cv_type_size_t=yes
  6505. else
  6506. echo "$as_me: failed program was:" >&5
  6507. sed 's/^/| /' conftest.$ac_ext >&5
  6508. ac_cv_type_size_t=no
  6509. fi
  6510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6511. fi
  6512. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6513. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6514. if test $ac_cv_type_size_t = yes; then
  6515. :
  6516. else
  6517. cat >>confdefs.h <<_ACEOF
  6518. #define size_t unsigned
  6519. _ACEOF
  6520. fi
  6521. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6522. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  6523. if test "${ac_cv_header_time+set}" = set; then
  6524. echo $ECHO_N "(cached) $ECHO_C" >&6
  6525. else
  6526. cat >conftest.$ac_ext <<_ACEOF
  6527. /* confdefs.h. */
  6528. _ACEOF
  6529. cat confdefs.h >>conftest.$ac_ext
  6530. cat >>conftest.$ac_ext <<_ACEOF
  6531. /* end confdefs.h. */
  6532. #include <sys/types.h>
  6533. #include <sys/time.h>
  6534. #include <time.h>
  6535. int
  6536. main ()
  6537. {
  6538. if ((struct tm *) 0)
  6539. return 0;
  6540. ;
  6541. return 0;
  6542. }
  6543. _ACEOF
  6544. rm -f conftest.$ac_objext
  6545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6546. (eval $ac_compile) 2>conftest.er1
  6547. ac_status=$?
  6548. grep -v '^ *+' conftest.er1 >conftest.err
  6549. rm -f conftest.er1
  6550. cat conftest.err >&5
  6551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. (exit $ac_status); } &&
  6553. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6555. (eval $ac_try) 2>&5
  6556. ac_status=$?
  6557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. (exit $ac_status); }; } &&
  6559. { ac_try='test -s conftest.$ac_objext'
  6560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6561. (eval $ac_try) 2>&5
  6562. ac_status=$?
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); }; }; then
  6565. ac_cv_header_time=yes
  6566. else
  6567. echo "$as_me: failed program was:" >&5
  6568. sed 's/^/| /' conftest.$ac_ext >&5
  6569. ac_cv_header_time=no
  6570. fi
  6571. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6572. fi
  6573. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6574. echo "${ECHO_T}$ac_cv_header_time" >&6
  6575. if test $ac_cv_header_time = yes; then
  6576. cat >>confdefs.h <<\_ACEOF
  6577. #define TIME_WITH_SYS_TIME 1
  6578. _ACEOF
  6579. fi
  6580. # Checks for library functions.
  6581. echo "$as_me:$LINENO: checking for error_at_line" >&5
  6582. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  6583. if test "${ac_cv_lib_error_at_line+set}" = set; then
  6584. echo $ECHO_N "(cached) $ECHO_C" >&6
  6585. else
  6586. cat >conftest.$ac_ext <<_ACEOF
  6587. /* confdefs.h. */
  6588. _ACEOF
  6589. cat confdefs.h >>conftest.$ac_ext
  6590. cat >>conftest.$ac_ext <<_ACEOF
  6591. /* end confdefs.h. */
  6592. $ac_includes_default
  6593. int
  6594. main ()
  6595. {
  6596. error_at_line (0, 0, "", 0, "");
  6597. ;
  6598. return 0;
  6599. }
  6600. _ACEOF
  6601. rm -f conftest.$ac_objext conftest$ac_exeext
  6602. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6603. (eval $ac_link) 2>conftest.er1
  6604. ac_status=$?
  6605. grep -v '^ *+' conftest.er1 >conftest.err
  6606. rm -f conftest.er1
  6607. cat conftest.err >&5
  6608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6609. (exit $ac_status); } &&
  6610. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6612. (eval $ac_try) 2>&5
  6613. ac_status=$?
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); }; } &&
  6616. { ac_try='test -s conftest$ac_exeext'
  6617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. (eval $ac_try) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); }; }; then
  6622. ac_cv_lib_error_at_line=yes
  6623. else
  6624. echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. ac_cv_lib_error_at_line=no
  6627. fi
  6628. rm -f conftest.err conftest.$ac_objext \
  6629. conftest$ac_exeext conftest.$ac_ext
  6630. fi
  6631. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  6632. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  6633. if test $ac_cv_lib_error_at_line = no; then
  6634. case $LIBOBJS in
  6635. "error.$ac_objext" | \
  6636. *" error.$ac_objext" | \
  6637. "error.$ac_objext "* | \
  6638. *" error.$ac_objext "* ) ;;
  6639. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  6640. esac
  6641. fi
  6642. for ac_header in sys/select.h sys/socket.h
  6643. do
  6644. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6645. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6646. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6647. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6648. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6649. echo $ECHO_N "(cached) $ECHO_C" >&6
  6650. fi
  6651. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6652. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6653. else
  6654. # Is the header compilable?
  6655. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6656. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6657. cat >conftest.$ac_ext <<_ACEOF
  6658. /* confdefs.h. */
  6659. _ACEOF
  6660. cat confdefs.h >>conftest.$ac_ext
  6661. cat >>conftest.$ac_ext <<_ACEOF
  6662. /* end confdefs.h. */
  6663. $ac_includes_default
  6664. #include <$ac_header>
  6665. _ACEOF
  6666. rm -f conftest.$ac_objext
  6667. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6668. (eval $ac_compile) 2>conftest.er1
  6669. ac_status=$?
  6670. grep -v '^ *+' conftest.er1 >conftest.err
  6671. rm -f conftest.er1
  6672. cat conftest.err >&5
  6673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6674. (exit $ac_status); } &&
  6675. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6677. (eval $ac_try) 2>&5
  6678. ac_status=$?
  6679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6680. (exit $ac_status); }; } &&
  6681. { ac_try='test -s conftest.$ac_objext'
  6682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6683. (eval $ac_try) 2>&5
  6684. ac_status=$?
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); }; }; then
  6687. ac_header_compiler=yes
  6688. else
  6689. echo "$as_me: failed program was:" >&5
  6690. sed 's/^/| /' conftest.$ac_ext >&5
  6691. ac_header_compiler=no
  6692. fi
  6693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6694. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6695. echo "${ECHO_T}$ac_header_compiler" >&6
  6696. # Is the header present?
  6697. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6698. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6699. cat >conftest.$ac_ext <<_ACEOF
  6700. /* confdefs.h. */
  6701. _ACEOF
  6702. cat confdefs.h >>conftest.$ac_ext
  6703. cat >>conftest.$ac_ext <<_ACEOF
  6704. /* end confdefs.h. */
  6705. #include <$ac_header>
  6706. _ACEOF
  6707. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6708. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6709. ac_status=$?
  6710. grep -v '^ *+' conftest.er1 >conftest.err
  6711. rm -f conftest.er1
  6712. cat conftest.err >&5
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); } >/dev/null; then
  6715. if test -s conftest.err; then
  6716. ac_cpp_err=$ac_c_preproc_warn_flag
  6717. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6718. else
  6719. ac_cpp_err=
  6720. fi
  6721. else
  6722. ac_cpp_err=yes
  6723. fi
  6724. if test -z "$ac_cpp_err"; then
  6725. ac_header_preproc=yes
  6726. else
  6727. echo "$as_me: failed program was:" >&5
  6728. sed 's/^/| /' conftest.$ac_ext >&5
  6729. ac_header_preproc=no
  6730. fi
  6731. rm -f conftest.err conftest.$ac_ext
  6732. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6733. echo "${ECHO_T}$ac_header_preproc" >&6
  6734. # So? What about this header?
  6735. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6736. yes:no: )
  6737. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6738. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6739. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6740. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6741. ac_header_preproc=yes
  6742. ;;
  6743. no:yes:* )
  6744. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6745. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6746. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6747. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6748. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6749. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6750. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6751. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6752. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6753. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6754. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6755. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6756. (
  6757. cat <<\_ASBOX
  6758. ## ----------------------------------- ##
  6759. ## Report this to tujikawa@rednoah.com ##
  6760. ## ----------------------------------- ##
  6761. _ASBOX
  6762. ) |
  6763. sed "s/^/$as_me: WARNING: /" >&2
  6764. ;;
  6765. esac
  6766. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6767. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6768. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6769. echo $ECHO_N "(cached) $ECHO_C" >&6
  6770. else
  6771. eval "$as_ac_Header=\$ac_header_preproc"
  6772. fi
  6773. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6774. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6775. fi
  6776. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6777. cat >>confdefs.h <<_ACEOF
  6778. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6779. _ACEOF
  6780. fi
  6781. done
  6782. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  6783. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  6784. if test "${ac_cv_func_select_args+set}" = set; then
  6785. echo $ECHO_N "(cached) $ECHO_C" >&6
  6786. else
  6787. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  6788. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  6789. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  6790. cat >conftest.$ac_ext <<_ACEOF
  6791. /* confdefs.h. */
  6792. _ACEOF
  6793. cat confdefs.h >>conftest.$ac_ext
  6794. cat >>conftest.$ac_ext <<_ACEOF
  6795. /* end confdefs.h. */
  6796. $ac_includes_default
  6797. #if HAVE_SYS_SELECT_H
  6798. # include <sys/select.h>
  6799. #endif
  6800. #if HAVE_SYS_SOCKET_H
  6801. # include <sys/socket.h>
  6802. #endif
  6803. int
  6804. main ()
  6805. {
  6806. extern int select ($ac_arg1,
  6807. $ac_arg234, $ac_arg234, $ac_arg234,
  6808. $ac_arg5);
  6809. ;
  6810. return 0;
  6811. }
  6812. _ACEOF
  6813. rm -f conftest.$ac_objext
  6814. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6815. (eval $ac_compile) 2>conftest.er1
  6816. ac_status=$?
  6817. grep -v '^ *+' conftest.er1 >conftest.err
  6818. rm -f conftest.er1
  6819. cat conftest.err >&5
  6820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } &&
  6822. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6824. (eval $ac_try) 2>&5
  6825. ac_status=$?
  6826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6827. (exit $ac_status); }; } &&
  6828. { ac_try='test -s conftest.$ac_objext'
  6829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6830. (eval $ac_try) 2>&5
  6831. ac_status=$?
  6832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6833. (exit $ac_status); }; }; then
  6834. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  6835. else
  6836. echo "$as_me: failed program was:" >&5
  6837. sed 's/^/| /' conftest.$ac_ext >&5
  6838. fi
  6839. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6840. done
  6841. done
  6842. done
  6843. # Provide a safe default value.
  6844. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  6845. fi
  6846. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  6847. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  6848. ac_save_IFS=$IFS; IFS=','
  6849. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  6850. IFS=$ac_save_IFS
  6851. shift
  6852. cat >>confdefs.h <<_ACEOF
  6853. #define SELECT_TYPE_ARG1 $1
  6854. _ACEOF
  6855. cat >>confdefs.h <<_ACEOF
  6856. #define SELECT_TYPE_ARG234 ($2)
  6857. _ACEOF
  6858. cat >>confdefs.h <<_ACEOF
  6859. #define SELECT_TYPE_ARG5 ($3)
  6860. _ACEOF
  6861. rm -f conftest*
  6862. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  6863. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  6864. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  6865. echo $ECHO_N "(cached) $ECHO_C" >&6
  6866. else
  6867. rm -f conftest.sym conftest.file
  6868. echo >conftest.file
  6869. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6870. if test "$cross_compiling" = yes; then
  6871. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6872. else
  6873. cat >conftest.$ac_ext <<_ACEOF
  6874. /* confdefs.h. */
  6875. _ACEOF
  6876. cat confdefs.h >>conftest.$ac_ext
  6877. cat >>conftest.$ac_ext <<_ACEOF
  6878. /* end confdefs.h. */
  6879. $ac_includes_default
  6880. int
  6881. main ()
  6882. {
  6883. struct stat sbuf;
  6884. /* Linux will dereference the symlink and fail.
  6885. That is better in the sense that it means we will not
  6886. have to compile and use the lstat wrapper. */
  6887. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  6888. ;
  6889. return 0;
  6890. }
  6891. _ACEOF
  6892. rm -f conftest$ac_exeext
  6893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6894. (eval $ac_link) 2>&5
  6895. ac_status=$?
  6896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6897. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6899. (eval $ac_try) 2>&5
  6900. ac_status=$?
  6901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6902. (exit $ac_status); }; }; then
  6903. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6904. else
  6905. echo "$as_me: program exited with status $ac_status" >&5
  6906. echo "$as_me: failed program was:" >&5
  6907. sed 's/^/| /' conftest.$ac_ext >&5
  6908. ( exit $ac_status )
  6909. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6910. fi
  6911. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6912. fi
  6913. else
  6914. # If the `ln -s' command failed, then we probably don't even
  6915. # have an lstat function.
  6916. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6917. fi
  6918. rm -f conftest.sym conftest.file
  6919. fi
  6920. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6921. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  6922. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6923. cat >>confdefs.h <<_ACEOF
  6924. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6925. _ACEOF
  6926. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  6927. case $LIBOBJS in
  6928. "lstat.$ac_objext" | \
  6929. *" lstat.$ac_objext" | \
  6930. "lstat.$ac_objext "* | \
  6931. *" lstat.$ac_objext "* ) ;;
  6932. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  6933. esac
  6934. fi
  6935. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  6936. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  6937. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  6938. echo $ECHO_N "(cached) $ECHO_C" >&6
  6939. else
  6940. if test "$cross_compiling" = yes; then
  6941. ac_cv_func_stat_empty_string_bug=yes
  6942. else
  6943. cat >conftest.$ac_ext <<_ACEOF
  6944. /* confdefs.h. */
  6945. _ACEOF
  6946. cat confdefs.h >>conftest.$ac_ext
  6947. cat >>conftest.$ac_ext <<_ACEOF
  6948. /* end confdefs.h. */
  6949. $ac_includes_default
  6950. int
  6951. main ()
  6952. {
  6953. struct stat sbuf;
  6954. exit (stat ("", &sbuf) ? 1 : 0);
  6955. ;
  6956. return 0;
  6957. }
  6958. _ACEOF
  6959. rm -f conftest$ac_exeext
  6960. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6961. (eval $ac_link) 2>&5
  6962. ac_status=$?
  6963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6964. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6966. (eval $ac_try) 2>&5
  6967. ac_status=$?
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. (exit $ac_status); }; }; then
  6970. ac_cv_func_stat_empty_string_bug=yes
  6971. else
  6972. echo "$as_me: program exited with status $ac_status" >&5
  6973. echo "$as_me: failed program was:" >&5
  6974. sed 's/^/| /' conftest.$ac_ext >&5
  6975. ( exit $ac_status )
  6976. ac_cv_func_stat_empty_string_bug=no
  6977. fi
  6978. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6979. fi
  6980. fi
  6981. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  6982. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  6983. if test $ac_cv_func_stat_empty_string_bug = yes; then
  6984. case $LIBOBJS in
  6985. "stat.$ac_objext" | \
  6986. *" stat.$ac_objext" | \
  6987. "stat.$ac_objext "* | \
  6988. *" stat.$ac_objext "* ) ;;
  6989. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  6990. esac
  6991. cat >>confdefs.h <<_ACEOF
  6992. #define HAVE_STAT_EMPTY_STRING_BUG 1
  6993. _ACEOF
  6994. fi
  6995. for ac_func in vprintf
  6996. do
  6997. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6998. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6999. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7000. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7001. echo $ECHO_N "(cached) $ECHO_C" >&6
  7002. else
  7003. cat >conftest.$ac_ext <<_ACEOF
  7004. /* confdefs.h. */
  7005. _ACEOF
  7006. cat confdefs.h >>conftest.$ac_ext
  7007. cat >>conftest.$ac_ext <<_ACEOF
  7008. /* end confdefs.h. */
  7009. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7010. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7011. #define $ac_func innocuous_$ac_func
  7012. /* System header to define __stub macros and hopefully few prototypes,
  7013. which can conflict with char $ac_func (); below.
  7014. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7015. <limits.h> exists even on freestanding compilers. */
  7016. #ifdef __STDC__
  7017. # include <limits.h>
  7018. #else
  7019. # include <assert.h>
  7020. #endif
  7021. #undef $ac_func
  7022. /* Override any gcc2 internal prototype to avoid an error. */
  7023. #ifdef __cplusplus
  7024. extern "C"
  7025. {
  7026. #endif
  7027. /* We use char because int might match the return type of a gcc2
  7028. builtin and then its argument prototype would still apply. */
  7029. char $ac_func ();
  7030. /* The GNU C library defines this for functions which it implements
  7031. to always fail with ENOSYS. Some functions are actually named
  7032. something starting with __ and the normal name is an alias. */
  7033. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7034. choke me
  7035. #else
  7036. char (*f) () = $ac_func;
  7037. #endif
  7038. #ifdef __cplusplus
  7039. }
  7040. #endif
  7041. int
  7042. main ()
  7043. {
  7044. return f != $ac_func;
  7045. ;
  7046. return 0;
  7047. }
  7048. _ACEOF
  7049. rm -f conftest.$ac_objext conftest$ac_exeext
  7050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7051. (eval $ac_link) 2>conftest.er1
  7052. ac_status=$?
  7053. grep -v '^ *+' conftest.er1 >conftest.err
  7054. rm -f conftest.er1
  7055. cat conftest.err >&5
  7056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7057. (exit $ac_status); } &&
  7058. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7060. (eval $ac_try) 2>&5
  7061. ac_status=$?
  7062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7063. (exit $ac_status); }; } &&
  7064. { ac_try='test -s conftest$ac_exeext'
  7065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7066. (eval $ac_try) 2>&5
  7067. ac_status=$?
  7068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7069. (exit $ac_status); }; }; then
  7070. eval "$as_ac_var=yes"
  7071. else
  7072. echo "$as_me: failed program was:" >&5
  7073. sed 's/^/| /' conftest.$ac_ext >&5
  7074. eval "$as_ac_var=no"
  7075. fi
  7076. rm -f conftest.err conftest.$ac_objext \
  7077. conftest$ac_exeext conftest.$ac_ext
  7078. fi
  7079. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7080. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7081. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7082. cat >>confdefs.h <<_ACEOF
  7083. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7084. _ACEOF
  7085. echo "$as_me:$LINENO: checking for _doprnt" >&5
  7086. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  7087. if test "${ac_cv_func__doprnt+set}" = set; then
  7088. echo $ECHO_N "(cached) $ECHO_C" >&6
  7089. else
  7090. cat >conftest.$ac_ext <<_ACEOF
  7091. /* confdefs.h. */
  7092. _ACEOF
  7093. cat confdefs.h >>conftest.$ac_ext
  7094. cat >>conftest.$ac_ext <<_ACEOF
  7095. /* end confdefs.h. */
  7096. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  7097. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7098. #define _doprnt innocuous__doprnt
  7099. /* System header to define __stub macros and hopefully few prototypes,
  7100. which can conflict with char _doprnt (); below.
  7101. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7102. <limits.h> exists even on freestanding compilers. */
  7103. #ifdef __STDC__
  7104. # include <limits.h>
  7105. #else
  7106. # include <assert.h>
  7107. #endif
  7108. #undef _doprnt
  7109. /* Override any gcc2 internal prototype to avoid an error. */
  7110. #ifdef __cplusplus
  7111. extern "C"
  7112. {
  7113. #endif
  7114. /* We use char because int might match the return type of a gcc2
  7115. builtin and then its argument prototype would still apply. */
  7116. char _doprnt ();
  7117. /* The GNU C library defines this for functions which it implements
  7118. to always fail with ENOSYS. Some functions are actually named
  7119. something starting with __ and the normal name is an alias. */
  7120. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  7121. choke me
  7122. #else
  7123. char (*f) () = _doprnt;
  7124. #endif
  7125. #ifdef __cplusplus
  7126. }
  7127. #endif
  7128. int
  7129. main ()
  7130. {
  7131. return f != _doprnt;
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. rm -f conftest.$ac_objext conftest$ac_exeext
  7137. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7138. (eval $ac_link) 2>conftest.er1
  7139. ac_status=$?
  7140. grep -v '^ *+' conftest.er1 >conftest.err
  7141. rm -f conftest.er1
  7142. cat conftest.err >&5
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); } &&
  7145. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7147. (eval $ac_try) 2>&5
  7148. ac_status=$?
  7149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); }; } &&
  7151. { ac_try='test -s conftest$ac_exeext'
  7152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7153. (eval $ac_try) 2>&5
  7154. ac_status=$?
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); }; }; then
  7157. ac_cv_func__doprnt=yes
  7158. else
  7159. echo "$as_me: failed program was:" >&5
  7160. sed 's/^/| /' conftest.$ac_ext >&5
  7161. ac_cv_func__doprnt=no
  7162. fi
  7163. rm -f conftest.err conftest.$ac_objext \
  7164. conftest$ac_exeext conftest.$ac_ext
  7165. fi
  7166. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  7167. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  7168. if test $ac_cv_func__doprnt = yes; then
  7169. cat >>confdefs.h <<\_ACEOF
  7170. #define HAVE_DOPRNT 1
  7171. _ACEOF
  7172. fi
  7173. fi
  7174. done
  7175. for ac_func in getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol
  7176. do
  7177. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7178. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7179. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7180. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7181. echo $ECHO_N "(cached) $ECHO_C" >&6
  7182. else
  7183. cat >conftest.$ac_ext <<_ACEOF
  7184. /* confdefs.h. */
  7185. _ACEOF
  7186. cat confdefs.h >>conftest.$ac_ext
  7187. cat >>conftest.$ac_ext <<_ACEOF
  7188. /* end confdefs.h. */
  7189. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7190. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7191. #define $ac_func innocuous_$ac_func
  7192. /* System header to define __stub macros and hopefully few prototypes,
  7193. which can conflict with char $ac_func (); below.
  7194. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7195. <limits.h> exists even on freestanding compilers. */
  7196. #ifdef __STDC__
  7197. # include <limits.h>
  7198. #else
  7199. # include <assert.h>
  7200. #endif
  7201. #undef $ac_func
  7202. /* Override any gcc2 internal prototype to avoid an error. */
  7203. #ifdef __cplusplus
  7204. extern "C"
  7205. {
  7206. #endif
  7207. /* We use char because int might match the return type of a gcc2
  7208. builtin and then its argument prototype would still apply. */
  7209. char $ac_func ();
  7210. /* The GNU C library defines this for functions which it implements
  7211. to always fail with ENOSYS. Some functions are actually named
  7212. something starting with __ and the normal name is an alias. */
  7213. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7214. choke me
  7215. #else
  7216. char (*f) () = $ac_func;
  7217. #endif
  7218. #ifdef __cplusplus
  7219. }
  7220. #endif
  7221. int
  7222. main ()
  7223. {
  7224. return f != $ac_func;
  7225. ;
  7226. return 0;
  7227. }
  7228. _ACEOF
  7229. rm -f conftest.$ac_objext conftest$ac_exeext
  7230. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7231. (eval $ac_link) 2>conftest.er1
  7232. ac_status=$?
  7233. grep -v '^ *+' conftest.er1 >conftest.err
  7234. rm -f conftest.er1
  7235. cat conftest.err >&5
  7236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7237. (exit $ac_status); } &&
  7238. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7240. (eval $ac_try) 2>&5
  7241. ac_status=$?
  7242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. (exit $ac_status); }; } &&
  7244. { ac_try='test -s conftest$ac_exeext'
  7245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7246. (eval $ac_try) 2>&5
  7247. ac_status=$?
  7248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7249. (exit $ac_status); }; }; then
  7250. eval "$as_ac_var=yes"
  7251. else
  7252. echo "$as_me: failed program was:" >&5
  7253. sed 's/^/| /' conftest.$ac_ext >&5
  7254. eval "$as_ac_var=no"
  7255. fi
  7256. rm -f conftest.err conftest.$ac_objext \
  7257. conftest$ac_exeext conftest.$ac_ext
  7258. fi
  7259. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7260. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7261. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7262. cat >>confdefs.h <<_ACEOF
  7263. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7264. _ACEOF
  7265. fi
  7266. done
  7267. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile"
  7268. cat >confcache <<\_ACEOF
  7269. # This file is a shell script that caches the results of configure
  7270. # tests run on this system so they can be shared between configure
  7271. # scripts and configure runs, see configure's option --config-cache.
  7272. # It is not useful on other systems. If it contains results you don't
  7273. # want to keep, you may remove or edit it.
  7274. #
  7275. # config.status only pays attention to the cache file if you give it
  7276. # the --recheck option to rerun configure.
  7277. #
  7278. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7279. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7280. # following values.
  7281. _ACEOF
  7282. # The following way of writing the cache mishandles newlines in values,
  7283. # but we know of no workaround that is simple, portable, and efficient.
  7284. # So, don't put newlines in cache variables' values.
  7285. # Ultrix sh set writes to stderr and can't be redirected directly,
  7286. # and sets the high bit in the cache file unless we assign to the vars.
  7287. {
  7288. (set) 2>&1 |
  7289. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7290. *ac_space=\ *)
  7291. # `set' does not quote correctly, so add quotes (double-quote
  7292. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7293. sed -n \
  7294. "s/'/'\\\\''/g;
  7295. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7296. ;;
  7297. *)
  7298. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7299. sed -n \
  7300. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7301. ;;
  7302. esac;
  7303. } |
  7304. sed '
  7305. t clear
  7306. : clear
  7307. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7308. t end
  7309. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7310. : end' >>confcache
  7311. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7312. if test -w $cache_file; then
  7313. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7314. cat confcache >$cache_file
  7315. else
  7316. echo "not updating unwritable cache $cache_file"
  7317. fi
  7318. fi
  7319. rm -f confcache
  7320. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7321. # Let make expand exec_prefix.
  7322. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7323. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7324. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7325. # trailing colons and then remove the whole line if VPATH becomes empty
  7326. # (actually we leave an empty line to preserve line numbers).
  7327. if test "x$srcdir" = x.; then
  7328. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7329. s/:*\$(srcdir):*/:/;
  7330. s/:*\${srcdir}:*/:/;
  7331. s/:*@srcdir@:*/:/;
  7332. s/^\([^=]*=[ ]*\):*/\1/;
  7333. s/:*$//;
  7334. s/^[^=]*=[ ]*$//;
  7335. }'
  7336. fi
  7337. DEFS=-DHAVE_CONFIG_H
  7338. ac_libobjs=
  7339. ac_ltlibobjs=
  7340. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7341. # 1. Remove the extension, and $U if already installed.
  7342. ac_i=`echo "$ac_i" |
  7343. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  7344. # 2. Add them.
  7345. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  7346. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  7347. done
  7348. LIBOBJS=$ac_libobjs
  7349. LTLIBOBJS=$ac_ltlibobjs
  7350. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  7351. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  7352. Usually this means the macro was only invoked conditionally." >&5
  7353. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  7354. Usually this means the macro was only invoked conditionally." >&2;}
  7355. { (exit 1); exit 1; }; }
  7356. fi
  7357. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  7358. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  7359. Usually this means the macro was only invoked conditionally." >&5
  7360. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  7361. Usually this means the macro was only invoked conditionally." >&2;}
  7362. { (exit 1); exit 1; }; }
  7363. fi
  7364. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  7365. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  7366. Usually this means the macro was only invoked conditionally." >&5
  7367. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  7368. Usually this means the macro was only invoked conditionally." >&2;}
  7369. { (exit 1); exit 1; }; }
  7370. fi
  7371. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  7372. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  7373. Usually this means the macro was only invoked conditionally." >&5
  7374. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  7375. Usually this means the macro was only invoked conditionally." >&2;}
  7376. { (exit 1); exit 1; }; }
  7377. fi
  7378. : ${CONFIG_STATUS=./config.status}
  7379. ac_clean_files_save=$ac_clean_files
  7380. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7381. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  7382. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7383. cat >$CONFIG_STATUS <<_ACEOF
  7384. #! $SHELL
  7385. # Generated by $as_me.
  7386. # Run this file to recreate the current configuration.
  7387. # Compiler output produced by configure, useful for debugging
  7388. # configure, is in config.log if it exists.
  7389. debug=false
  7390. ac_cs_recheck=false
  7391. ac_cs_silent=false
  7392. SHELL=\${CONFIG_SHELL-$SHELL}
  7393. _ACEOF
  7394. cat >>$CONFIG_STATUS <<\_ACEOF
  7395. ## --------------------- ##
  7396. ## M4sh Initialization. ##
  7397. ## --------------------- ##
  7398. # Be Bourne compatible
  7399. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7400. emulate sh
  7401. NULLCMD=:
  7402. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7403. # is contrary to our usage. Disable this feature.
  7404. alias -g '${1+"$@"}'='"$@"'
  7405. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  7406. set -o posix
  7407. fi
  7408. DUALCASE=1; export DUALCASE # for MKS sh
  7409. # Support unset when possible.
  7410. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7411. as_unset=unset
  7412. else
  7413. as_unset=false
  7414. fi
  7415. # Work around bugs in pre-3.0 UWIN ksh.
  7416. $as_unset ENV MAIL MAILPATH
  7417. PS1='$ '
  7418. PS2='> '
  7419. PS4='+ '
  7420. # NLS nuisances.
  7421. for as_var in \
  7422. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7423. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7424. LC_TELEPHONE LC_TIME
  7425. do
  7426. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7427. eval $as_var=C; export $as_var
  7428. else
  7429. $as_unset $as_var
  7430. fi
  7431. done
  7432. # Required to use basename.
  7433. if expr a : '\(a\)' >/dev/null 2>&1; then
  7434. as_expr=expr
  7435. else
  7436. as_expr=false
  7437. fi
  7438. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  7439. as_basename=basename
  7440. else
  7441. as_basename=false
  7442. fi
  7443. # Name of the executable.
  7444. as_me=`$as_basename "$0" ||
  7445. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7446. X"$0" : 'X\(//\)$' \| \
  7447. X"$0" : 'X\(/\)$' \| \
  7448. . : '\(.\)' 2>/dev/null ||
  7449. echo X/"$0" |
  7450. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7451. /^X\/\(\/\/\)$/{ s//\1/; q; }
  7452. /^X\/\(\/\).*/{ s//\1/; q; }
  7453. s/.*/./; q'`
  7454. # PATH needs CR, and LINENO needs CR and PATH.
  7455. # Avoid depending upon Character Ranges.
  7456. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7457. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7458. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7459. as_cr_digits='0123456789'
  7460. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7461. # The user is always right.
  7462. if test "${PATH_SEPARATOR+set}" != set; then
  7463. echo "#! /bin/sh" >conf$$.sh
  7464. echo "exit 0" >>conf$$.sh
  7465. chmod +x conf$$.sh
  7466. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7467. PATH_SEPARATOR=';'
  7468. else
  7469. PATH_SEPARATOR=:
  7470. fi
  7471. rm -f conf$$.sh
  7472. fi
  7473. as_lineno_1=$LINENO
  7474. as_lineno_2=$LINENO
  7475. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7476. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7477. test "x$as_lineno_3" = "x$as_lineno_2" || {
  7478. # Find who we are. Look in the path if we contain no path at all
  7479. # relative or not.
  7480. case $0 in
  7481. *[\\/]* ) as_myself=$0 ;;
  7482. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7483. for as_dir in $PATH
  7484. do
  7485. IFS=$as_save_IFS
  7486. test -z "$as_dir" && as_dir=.
  7487. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7488. done
  7489. ;;
  7490. esac
  7491. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7492. # in which case we are not to be found in the path.
  7493. if test "x$as_myself" = x; then
  7494. as_myself=$0
  7495. fi
  7496. if test ! -f "$as_myself"; then
  7497. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  7498. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  7499. { (exit 1); exit 1; }; }
  7500. fi
  7501. case $CONFIG_SHELL in
  7502. '')
  7503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7504. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7505. do
  7506. IFS=$as_save_IFS
  7507. test -z "$as_dir" && as_dir=.
  7508. for as_base in sh bash ksh sh5; do
  7509. case $as_dir in
  7510. /*)
  7511. if ("$as_dir/$as_base" -c '
  7512. as_lineno_1=$LINENO
  7513. as_lineno_2=$LINENO
  7514. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7515. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7516. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  7517. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  7518. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  7519. CONFIG_SHELL=$as_dir/$as_base
  7520. export CONFIG_SHELL
  7521. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  7522. fi;;
  7523. esac
  7524. done
  7525. done
  7526. ;;
  7527. esac
  7528. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  7529. # uniformly replaced by the line number. The first 'sed' inserts a
  7530. # line-number line before each line; the second 'sed' does the real
  7531. # work. The second script uses 'N' to pair each line-number line
  7532. # with the numbered line, and appends trailing '-' during
  7533. # substitution so that $LINENO is not a special case at line end.
  7534. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  7535. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  7536. sed '=' <$as_myself |
  7537. sed '
  7538. N
  7539. s,$,-,
  7540. : loop
  7541. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  7542. t loop
  7543. s,-$,,
  7544. s,^['$as_cr_digits']*\n,,
  7545. ' >$as_me.lineno &&
  7546. chmod +x $as_me.lineno ||
  7547. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  7548. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  7549. { (exit 1); exit 1; }; }
  7550. # Don't try to exec as it changes $[0], causing all sort of problems
  7551. # (the dirname of $[0] is not the place where we might find the
  7552. # original and so on. Autoconf is especially sensible to this).
  7553. . ./$as_me.lineno
  7554. # Exit status is that of the last command.
  7555. exit
  7556. }
  7557. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  7558. *c*,-n*) ECHO_N= ECHO_C='
  7559. ' ECHO_T=' ' ;;
  7560. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  7561. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  7562. esac
  7563. if expr a : '\(a\)' >/dev/null 2>&1; then
  7564. as_expr=expr
  7565. else
  7566. as_expr=false
  7567. fi
  7568. rm -f conf$$ conf$$.exe conf$$.file
  7569. echo >conf$$.file
  7570. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7571. # We could just check for DJGPP; but this test a) works b) is more generic
  7572. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  7573. if test -f conf$$.exe; then
  7574. # Don't use ln at all; we don't have any links
  7575. as_ln_s='cp -p'
  7576. else
  7577. as_ln_s='ln -s'
  7578. fi
  7579. elif ln conf$$.file conf$$ 2>/dev/null; then
  7580. as_ln_s=ln
  7581. else
  7582. as_ln_s='cp -p'
  7583. fi
  7584. rm -f conf$$ conf$$.exe conf$$.file
  7585. if mkdir -p . 2>/dev/null; then
  7586. as_mkdir_p=:
  7587. else
  7588. test -d ./-p && rmdir ./-p
  7589. as_mkdir_p=false
  7590. fi
  7591. as_executable_p="test -f"
  7592. # Sed expression to map a string onto a valid CPP name.
  7593. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7594. # Sed expression to map a string onto a valid variable name.
  7595. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7596. # IFS
  7597. # We need space, tab and new line, in precisely that order.
  7598. as_nl='
  7599. '
  7600. IFS=" $as_nl"
  7601. # CDPATH.
  7602. $as_unset CDPATH
  7603. exec 6>&1
  7604. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  7605. # report actual input values of CONFIG_FILES etc. instead of their
  7606. # values after options handling. Logging --version etc. is OK.
  7607. exec 5>>config.log
  7608. {
  7609. echo
  7610. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7611. ## Running $as_me. ##
  7612. _ASBOX
  7613. } >&5
  7614. cat >&5 <<_CSEOF
  7615. This file was extended by aria2c $as_me 0.2.1, which was
  7616. generated by GNU Autoconf 2.59. Invocation command line was
  7617. CONFIG_FILES = $CONFIG_FILES
  7618. CONFIG_HEADERS = $CONFIG_HEADERS
  7619. CONFIG_LINKS = $CONFIG_LINKS
  7620. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7621. $ $0 $@
  7622. _CSEOF
  7623. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  7624. echo >&5
  7625. _ACEOF
  7626. # Files that config.status was made for.
  7627. if test -n "$ac_config_files"; then
  7628. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  7629. fi
  7630. if test -n "$ac_config_headers"; then
  7631. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  7632. fi
  7633. if test -n "$ac_config_links"; then
  7634. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  7635. fi
  7636. if test -n "$ac_config_commands"; then
  7637. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  7638. fi
  7639. cat >>$CONFIG_STATUS <<\_ACEOF
  7640. ac_cs_usage="\
  7641. \`$as_me' instantiates files from templates according to the
  7642. current configuration.
  7643. Usage: $0 [OPTIONS] [FILE]...
  7644. -h, --help print this help, then exit
  7645. -V, --version print version number, then exit
  7646. -q, --quiet do not print progress messages
  7647. -d, --debug don't remove temporary files
  7648. --recheck update $as_me by reconfiguring in the same conditions
  7649. --file=FILE[:TEMPLATE]
  7650. instantiate the configuration file FILE
  7651. --header=FILE[:TEMPLATE]
  7652. instantiate the configuration header FILE
  7653. Configuration files:
  7654. $config_files
  7655. Configuration headers:
  7656. $config_headers
  7657. Configuration commands:
  7658. $config_commands
  7659. Report bugs to <bug-autoconf@gnu.org>."
  7660. _ACEOF
  7661. cat >>$CONFIG_STATUS <<_ACEOF
  7662. ac_cs_version="\\
  7663. aria2c config.status 0.2.1
  7664. configured by $0, generated by GNU Autoconf 2.59,
  7665. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  7666. Copyright (C) 2003 Free Software Foundation, Inc.
  7667. This config.status script is free software; the Free Software Foundation
  7668. gives unlimited permission to copy, distribute and modify it."
  7669. srcdir=$srcdir
  7670. INSTALL="$INSTALL"
  7671. _ACEOF
  7672. cat >>$CONFIG_STATUS <<\_ACEOF
  7673. # If no file are specified by the user, then we need to provide default
  7674. # value. By we need to know if files were specified by the user.
  7675. ac_need_defaults=:
  7676. while test $# != 0
  7677. do
  7678. case $1 in
  7679. --*=*)
  7680. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  7681. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  7682. ac_shift=:
  7683. ;;
  7684. -*)
  7685. ac_option=$1
  7686. ac_optarg=$2
  7687. ac_shift=shift
  7688. ;;
  7689. *) # This is not an option, so the user has probably given explicit
  7690. # arguments.
  7691. ac_option=$1
  7692. ac_need_defaults=false;;
  7693. esac
  7694. case $ac_option in
  7695. # Handling of the options.
  7696. _ACEOF
  7697. cat >>$CONFIG_STATUS <<\_ACEOF
  7698. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7699. ac_cs_recheck=: ;;
  7700. --version | --vers* | -V )
  7701. echo "$ac_cs_version"; exit 0 ;;
  7702. --he | --h)
  7703. # Conflict between --help and --header
  7704. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  7705. Try \`$0 --help' for more information." >&5
  7706. echo "$as_me: error: ambiguous option: $1
  7707. Try \`$0 --help' for more information." >&2;}
  7708. { (exit 1); exit 1; }; };;
  7709. --help | --hel | -h )
  7710. echo "$ac_cs_usage"; exit 0 ;;
  7711. --debug | --d* | -d )
  7712. debug=: ;;
  7713. --file | --fil | --fi | --f )
  7714. $ac_shift
  7715. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  7716. ac_need_defaults=false;;
  7717. --header | --heade | --head | --hea )
  7718. $ac_shift
  7719. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  7720. ac_need_defaults=false;;
  7721. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7722. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7723. ac_cs_silent=: ;;
  7724. # This is an error.
  7725. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  7726. Try \`$0 --help' for more information." >&5
  7727. echo "$as_me: error: unrecognized option: $1
  7728. Try \`$0 --help' for more information." >&2;}
  7729. { (exit 1); exit 1; }; } ;;
  7730. *) ac_config_targets="$ac_config_targets $1" ;;
  7731. esac
  7732. shift
  7733. done
  7734. ac_configure_extra_args=
  7735. if $ac_cs_silent; then
  7736. exec 6>/dev/null
  7737. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7738. fi
  7739. _ACEOF
  7740. cat >>$CONFIG_STATUS <<_ACEOF
  7741. if \$ac_cs_recheck; then
  7742. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  7743. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7744. fi
  7745. _ACEOF
  7746. cat >>$CONFIG_STATUS <<_ACEOF
  7747. #
  7748. # INIT-COMMANDS section.
  7749. #
  7750. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  7751. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  7752. # from automake.
  7753. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  7754. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  7755. LINGUAS="${LINGUAS-%UNSET%}"
  7756. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  7757. _ACEOF
  7758. cat >>$CONFIG_STATUS <<\_ACEOF
  7759. for ac_config_target in $ac_config_targets
  7760. do
  7761. case "$ac_config_target" in
  7762. # Handling of arguments.
  7763. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7764. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7765. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  7766. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  7767. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  7768. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  7769. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  7770. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7771. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  7772. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  7773. { (exit 1); exit 1; }; };;
  7774. esac
  7775. done
  7776. # If the user did not use the arguments to specify the items to instantiate,
  7777. # then the envvar interface is used. Set only those that are not.
  7778. # We use the long form for the default assignment because of an extremely
  7779. # bizarre bug on SunOS 4.1.3.
  7780. if $ac_need_defaults; then
  7781. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7782. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7783. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7784. fi
  7785. # Have a temporary directory for convenience. Make it in the build tree
  7786. # simply because there is no reason to put it here, and in addition,
  7787. # creating and moving files from /tmp can sometimes cause problems.
  7788. # Create a temporary directory, and hook for its removal unless debugging.
  7789. $debug ||
  7790. {
  7791. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  7792. trap '{ (exit 1); exit 1; }' 1 2 13 15
  7793. }
  7794. # Create a (secure) tmp directory for tmp files.
  7795. {
  7796. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  7797. test -n "$tmp" && test -d "$tmp"
  7798. } ||
  7799. {
  7800. tmp=./confstat$$-$RANDOM
  7801. (umask 077 && mkdir $tmp)
  7802. } ||
  7803. {
  7804. echo "$me: cannot create a temporary directory in ." >&2
  7805. { (exit 1); exit 1; }
  7806. }
  7807. _ACEOF
  7808. cat >>$CONFIG_STATUS <<_ACEOF
  7809. #
  7810. # CONFIG_FILES section.
  7811. #
  7812. # No need to generate the scripts if there are no CONFIG_FILES.
  7813. # This happens for instance when ./config.status config.h
  7814. if test -n "\$CONFIG_FILES"; then
  7815. # Protect against being on the right side of a sed subst in config.status.
  7816. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  7817. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  7818. s,@SHELL@,$SHELL,;t t
  7819. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  7820. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  7821. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  7822. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  7823. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  7824. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  7825. s,@exec_prefix@,$exec_prefix,;t t
  7826. s,@prefix@,$prefix,;t t
  7827. s,@program_transform_name@,$program_transform_name,;t t
  7828. s,@bindir@,$bindir,;t t
  7829. s,@sbindir@,$sbindir,;t t
  7830. s,@libexecdir@,$libexecdir,;t t
  7831. s,@datadir@,$datadir,;t t
  7832. s,@sysconfdir@,$sysconfdir,;t t
  7833. s,@sharedstatedir@,$sharedstatedir,;t t
  7834. s,@localstatedir@,$localstatedir,;t t
  7835. s,@libdir@,$libdir,;t t
  7836. s,@includedir@,$includedir,;t t
  7837. s,@oldincludedir@,$oldincludedir,;t t
  7838. s,@infodir@,$infodir,;t t
  7839. s,@mandir@,$mandir,;t t
  7840. s,@build_alias@,$build_alias,;t t
  7841. s,@host_alias@,$host_alias,;t t
  7842. s,@target_alias@,$target_alias,;t t
  7843. s,@DEFS@,$DEFS,;t t
  7844. s,@ECHO_C@,$ECHO_C,;t t
  7845. s,@ECHO_N@,$ECHO_N,;t t
  7846. s,@ECHO_T@,$ECHO_T,;t t
  7847. s,@LIBS@,$LIBS,;t t
  7848. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  7849. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  7850. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  7851. s,@CYGPATH_W@,$CYGPATH_W,;t t
  7852. s,@PACKAGE@,$PACKAGE,;t t
  7853. s,@VERSION@,$VERSION,;t t
  7854. s,@ACLOCAL@,$ACLOCAL,;t t
  7855. s,@AUTOCONF@,$AUTOCONF,;t t
  7856. s,@AUTOMAKE@,$AUTOMAKE,;t t
  7857. s,@AUTOHEADER@,$AUTOHEADER,;t t
  7858. s,@MAKEINFO@,$MAKEINFO,;t t
  7859. s,@install_sh@,$install_sh,;t t
  7860. s,@STRIP@,$STRIP,;t t
  7861. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  7862. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  7863. s,@mkdir_p@,$mkdir_p,;t t
  7864. s,@AWK@,$AWK,;t t
  7865. s,@SET_MAKE@,$SET_MAKE,;t t
  7866. s,@am__leading_dot@,$am__leading_dot,;t t
  7867. s,@AMTAR@,$AMTAR,;t t
  7868. s,@am__tar@,$am__tar,;t t
  7869. s,@am__untar@,$am__untar,;t t
  7870. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  7871. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  7872. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  7873. s,@RANLIB@,$RANLIB,;t t
  7874. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  7875. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  7876. s,@USE_NLS@,$USE_NLS,;t t
  7877. s,@MSGFMT@,$MSGFMT,;t t
  7878. s,@GMSGFMT@,$GMSGFMT,;t t
  7879. s,@XGETTEXT@,$XGETTEXT,;t t
  7880. s,@MSGMERGE@,$MSGMERGE,;t t
  7881. s,@CC@,$CC,;t t
  7882. s,@CFLAGS@,$CFLAGS,;t t
  7883. s,@LDFLAGS@,$LDFLAGS,;t t
  7884. s,@CPPFLAGS@,$CPPFLAGS,;t t
  7885. s,@ac_ct_CC@,$ac_ct_CC,;t t
  7886. s,@EXEEXT@,$EXEEXT,;t t
  7887. s,@OBJEXT@,$OBJEXT,;t t
  7888. s,@DEPDIR@,$DEPDIR,;t t
  7889. s,@am__include@,$am__include,;t t
  7890. s,@am__quote@,$am__quote,;t t
  7891. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  7892. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  7893. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  7894. s,@CCDEPMODE@,$CCDEPMODE,;t t
  7895. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  7896. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  7897. s,@build@,$build,;t t
  7898. s,@build_cpu@,$build_cpu,;t t
  7899. s,@build_vendor@,$build_vendor,;t t
  7900. s,@build_os@,$build_os,;t t
  7901. s,@host@,$host,;t t
  7902. s,@host_cpu@,$host_cpu,;t t
  7903. s,@host_vendor@,$host_vendor,;t t
  7904. s,@host_os@,$host_os,;t t
  7905. s,@LIBICONV@,$LIBICONV,;t t
  7906. s,@LTLIBICONV@,$LTLIBICONV,;t t
  7907. s,@INTLLIBS@,$INTLLIBS,;t t
  7908. s,@LIBINTL@,$LIBINTL,;t t
  7909. s,@LTLIBINTL@,$LTLIBINTL,;t t
  7910. s,@POSUB@,$POSUB,;t t
  7911. s,@CXX@,$CXX,;t t
  7912. s,@CXXFLAGS@,$CXXFLAGS,;t t
  7913. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  7914. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  7915. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  7916. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  7917. s,@CPP@,$CPP,;t t
  7918. s,@EGREP@,$EGREP,;t t
  7919. s,@LIBOBJS@,$LIBOBJS,;t t
  7920. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  7921. CEOF
  7922. _ACEOF
  7923. cat >>$CONFIG_STATUS <<\_ACEOF
  7924. # Split the substitutions into bite-sized pieces for seds with
  7925. # small command number limits, like on Digital OSF/1 and HP-UX.
  7926. ac_max_sed_lines=48
  7927. ac_sed_frag=1 # Number of current file.
  7928. ac_beg=1 # First line for current file.
  7929. ac_end=$ac_max_sed_lines # Line after last line for current file.
  7930. ac_more_lines=:
  7931. ac_sed_cmds=
  7932. while $ac_more_lines; do
  7933. if test $ac_beg -gt 1; then
  7934. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7935. else
  7936. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7937. fi
  7938. if test ! -s $tmp/subs.frag; then
  7939. ac_more_lines=false
  7940. else
  7941. # The purpose of the label and of the branching condition is to
  7942. # speed up the sed processing (if there are no `@' at all, there
  7943. # is no need to browse any of the substitutions).
  7944. # These are the two extra sed commands mentioned above.
  7945. (echo ':t
  7946. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  7947. if test -z "$ac_sed_cmds"; then
  7948. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  7949. else
  7950. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  7951. fi
  7952. ac_sed_frag=`expr $ac_sed_frag + 1`
  7953. ac_beg=$ac_end
  7954. ac_end=`expr $ac_end + $ac_max_sed_lines`
  7955. fi
  7956. done
  7957. if test -z "$ac_sed_cmds"; then
  7958. ac_sed_cmds=cat
  7959. fi
  7960. fi # test -n "$CONFIG_FILES"
  7961. _ACEOF
  7962. cat >>$CONFIG_STATUS <<\_ACEOF
  7963. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  7964. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7965. case $ac_file in
  7966. - | *:- | *:-:* ) # input from stdin
  7967. cat >$tmp/stdin
  7968. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7969. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7970. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7971. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7972. * ) ac_file_in=$ac_file.in ;;
  7973. esac
  7974. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  7975. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  7976. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7977. X"$ac_file" : 'X\(//\)[^/]' \| \
  7978. X"$ac_file" : 'X\(//\)$' \| \
  7979. X"$ac_file" : 'X\(/\)' \| \
  7980. . : '\(.\)' 2>/dev/null ||
  7981. echo X"$ac_file" |
  7982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7983. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7984. /^X\(\/\/\)$/{ s//\1/; q; }
  7985. /^X\(\/\).*/{ s//\1/; q; }
  7986. s/.*/./; q'`
  7987. { if $as_mkdir_p; then
  7988. mkdir -p "$ac_dir"
  7989. else
  7990. as_dir="$ac_dir"
  7991. as_dirs=
  7992. while test ! -d "$as_dir"; do
  7993. as_dirs="$as_dir $as_dirs"
  7994. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  7995. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7996. X"$as_dir" : 'X\(//\)[^/]' \| \
  7997. X"$as_dir" : 'X\(//\)$' \| \
  7998. X"$as_dir" : 'X\(/\)' \| \
  7999. . : '\(.\)' 2>/dev/null ||
  8000. echo X"$as_dir" |
  8001. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8002. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8003. /^X\(\/\/\)$/{ s//\1/; q; }
  8004. /^X\(\/\).*/{ s//\1/; q; }
  8005. s/.*/./; q'`
  8006. done
  8007. test ! -n "$as_dirs" || mkdir $as_dirs
  8008. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8009. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8010. { (exit 1); exit 1; }; }; }
  8011. ac_builddir=.
  8012. if test "$ac_dir" != .; then
  8013. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8014. # A "../" for each directory in $ac_dir_suffix.
  8015. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8016. else
  8017. ac_dir_suffix= ac_top_builddir=
  8018. fi
  8019. case $srcdir in
  8020. .) # No --srcdir option. We are building in place.
  8021. ac_srcdir=.
  8022. if test -z "$ac_top_builddir"; then
  8023. ac_top_srcdir=.
  8024. else
  8025. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8026. fi ;;
  8027. [\\/]* | ?:[\\/]* ) # Absolute path.
  8028. ac_srcdir=$srcdir$ac_dir_suffix;
  8029. ac_top_srcdir=$srcdir ;;
  8030. *) # Relative path.
  8031. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8032. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8033. esac
  8034. # Do not use `cd foo && pwd` to compute absolute paths, because
  8035. # the directories may not exist.
  8036. case `pwd` in
  8037. .) ac_abs_builddir="$ac_dir";;
  8038. *)
  8039. case "$ac_dir" in
  8040. .) ac_abs_builddir=`pwd`;;
  8041. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8042. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8043. esac;;
  8044. esac
  8045. case $ac_abs_builddir in
  8046. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8047. *)
  8048. case ${ac_top_builddir}. in
  8049. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8050. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8051. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8052. esac;;
  8053. esac
  8054. case $ac_abs_builddir in
  8055. .) ac_abs_srcdir=$ac_srcdir;;
  8056. *)
  8057. case $ac_srcdir in
  8058. .) ac_abs_srcdir=$ac_abs_builddir;;
  8059. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8060. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8061. esac;;
  8062. esac
  8063. case $ac_abs_builddir in
  8064. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8065. *)
  8066. case $ac_top_srcdir in
  8067. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8068. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8069. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8070. esac;;
  8071. esac
  8072. case $INSTALL in
  8073. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8074. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8075. esac
  8076. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8077. # use $as_me), people would be surprised to read:
  8078. # /* config.h. Generated by config.status. */
  8079. if test x"$ac_file" = x-; then
  8080. configure_input=
  8081. else
  8082. configure_input="$ac_file. "
  8083. fi
  8084. configure_input=$configure_input"Generated from `echo $ac_file_in |
  8085. sed 's,.*/,,'` by configure."
  8086. # First look for the input files in the build tree, otherwise in the
  8087. # src tree.
  8088. ac_file_inputs=`IFS=:
  8089. for f in $ac_file_in; do
  8090. case $f in
  8091. -) echo $tmp/stdin ;;
  8092. [\\/$]*)
  8093. # Absolute (can't be DOS-style, as IFS=:)
  8094. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8095. echo "$as_me: error: cannot find input file: $f" >&2;}
  8096. { (exit 1); exit 1; }; }
  8097. echo "$f";;
  8098. *) # Relative
  8099. if test -f "$f"; then
  8100. # Build tree
  8101. echo "$f"
  8102. elif test -f "$srcdir/$f"; then
  8103. # Source tree
  8104. echo "$srcdir/$f"
  8105. else
  8106. # /dev/null tree
  8107. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8108. echo "$as_me: error: cannot find input file: $f" >&2;}
  8109. { (exit 1); exit 1; }; }
  8110. fi;;
  8111. esac
  8112. done` || { (exit 1); exit 1; }
  8113. if test x"$ac_file" != x-; then
  8114. { echo "$as_me:$LINENO: creating $ac_file" >&5
  8115. echo "$as_me: creating $ac_file" >&6;}
  8116. rm -f "$ac_file"
  8117. fi
  8118. _ACEOF
  8119. cat >>$CONFIG_STATUS <<_ACEOF
  8120. sed "$ac_vpsub
  8121. $extrasub
  8122. _ACEOF
  8123. cat >>$CONFIG_STATUS <<\_ACEOF
  8124. :t
  8125. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8126. s,@configure_input@,$configure_input,;t t
  8127. s,@srcdir@,$ac_srcdir,;t t
  8128. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8129. s,@top_srcdir@,$ac_top_srcdir,;t t
  8130. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8131. s,@builddir@,$ac_builddir,;t t
  8132. s,@abs_builddir@,$ac_abs_builddir,;t t
  8133. s,@top_builddir@,$ac_top_builddir,;t t
  8134. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8135. s,@INSTALL@,$ac_INSTALL,;t t
  8136. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8137. rm -f $tmp/stdin
  8138. if test x"$ac_file" != x-; then
  8139. mv $tmp/out $ac_file
  8140. else
  8141. cat $tmp/out
  8142. rm -f $tmp/out
  8143. fi
  8144. done
  8145. _ACEOF
  8146. cat >>$CONFIG_STATUS <<\_ACEOF
  8147. #
  8148. # CONFIG_HEADER section.
  8149. #
  8150. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8151. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  8152. #
  8153. # ac_d sets the value in "#define NAME VALUE" lines.
  8154. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  8155. ac_dB='[ ].*$,\1#\2'
  8156. ac_dC=' '
  8157. ac_dD=',;t'
  8158. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8159. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  8160. ac_uB='$,\1#\2define\3'
  8161. ac_uC=' '
  8162. ac_uD=',;t'
  8163. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  8164. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8165. case $ac_file in
  8166. - | *:- | *:-:* ) # input from stdin
  8167. cat >$tmp/stdin
  8168. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8169. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8170. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8171. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8172. * ) ac_file_in=$ac_file.in ;;
  8173. esac
  8174. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  8175. echo "$as_me: creating $ac_file" >&6;}
  8176. # First look for the input files in the build tree, otherwise in the
  8177. # src tree.
  8178. ac_file_inputs=`IFS=:
  8179. for f in $ac_file_in; do
  8180. case $f in
  8181. -) echo $tmp/stdin ;;
  8182. [\\/$]*)
  8183. # Absolute (can't be DOS-style, as IFS=:)
  8184. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8185. echo "$as_me: error: cannot find input file: $f" >&2;}
  8186. { (exit 1); exit 1; }; }
  8187. # Do quote $f, to prevent DOS paths from being IFS'd.
  8188. echo "$f";;
  8189. *) # Relative
  8190. if test -f "$f"; then
  8191. # Build tree
  8192. echo "$f"
  8193. elif test -f "$srcdir/$f"; then
  8194. # Source tree
  8195. echo "$srcdir/$f"
  8196. else
  8197. # /dev/null tree
  8198. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8199. echo "$as_me: error: cannot find input file: $f" >&2;}
  8200. { (exit 1); exit 1; }; }
  8201. fi;;
  8202. esac
  8203. done` || { (exit 1); exit 1; }
  8204. # Remove the trailing spaces.
  8205. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  8206. _ACEOF
  8207. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  8208. # `conftest.undefs', that substitutes the proper values into
  8209. # config.h.in to produce config.h. The first handles `#define'
  8210. # templates, and the second `#undef' templates.
  8211. # And first: Protect against being on the right side of a sed subst in
  8212. # config.status. Protect against being in an unquoted here document
  8213. # in config.status.
  8214. rm -f conftest.defines conftest.undefs
  8215. # Using a here document instead of a string reduces the quoting nightmare.
  8216. # Putting comments in sed scripts is not portable.
  8217. #
  8218. # `end' is used to avoid that the second main sed command (meant for
  8219. # 0-ary CPP macros) applies to n-ary macro definitions.
  8220. # See the Autoconf documentation for `clear'.
  8221. cat >confdef2sed.sed <<\_ACEOF
  8222. s/[\\&,]/\\&/g
  8223. s,[\\$`],\\&,g
  8224. t clear
  8225. : clear
  8226. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  8227. t end
  8228. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  8229. : end
  8230. _ACEOF
  8231. # If some macros were called several times there might be several times
  8232. # the same #defines, which is useless. Nevertheless, we may not want to
  8233. # sort them, since we want the *last* AC-DEFINE to be honored.
  8234. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  8235. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  8236. rm -f confdef2sed.sed
  8237. # This sed command replaces #undef with comments. This is necessary, for
  8238. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8239. # on some systems where configure will not decide to define it.
  8240. cat >>conftest.undefs <<\_ACEOF
  8241. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  8242. _ACEOF
  8243. # Break up conftest.defines because some shells have a limit on the size
  8244. # of here documents, and old seds have small limits too (100 cmds).
  8245. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  8246. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  8247. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  8248. echo ' :' >>$CONFIG_STATUS
  8249. rm -f conftest.tail
  8250. while grep . conftest.defines >/dev/null
  8251. do
  8252. # Write a limited-size here document to $tmp/defines.sed.
  8253. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  8254. # Speed up: don't consider the non `#define' lines.
  8255. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  8256. # Work around the forget-to-reset-the-flag bug.
  8257. echo 't clr' >>$CONFIG_STATUS
  8258. echo ': clr' >>$CONFIG_STATUS
  8259. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  8260. echo 'CEOF
  8261. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  8262. rm -f $tmp/in
  8263. mv $tmp/out $tmp/in
  8264. ' >>$CONFIG_STATUS
  8265. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  8266. rm -f conftest.defines
  8267. mv conftest.tail conftest.defines
  8268. done
  8269. rm -f conftest.defines
  8270. echo ' fi # grep' >>$CONFIG_STATUS
  8271. echo >>$CONFIG_STATUS
  8272. # Break up conftest.undefs because some shells have a limit on the size
  8273. # of here documents, and old seds have small limits too (100 cmds).
  8274. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  8275. rm -f conftest.tail
  8276. while grep . conftest.undefs >/dev/null
  8277. do
  8278. # Write a limited-size here document to $tmp/undefs.sed.
  8279. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  8280. # Speed up: don't consider the non `#undef'
  8281. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  8282. # Work around the forget-to-reset-the-flag bug.
  8283. echo 't clr' >>$CONFIG_STATUS
  8284. echo ': clr' >>$CONFIG_STATUS
  8285. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  8286. echo 'CEOF
  8287. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  8288. rm -f $tmp/in
  8289. mv $tmp/out $tmp/in
  8290. ' >>$CONFIG_STATUS
  8291. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  8292. rm -f conftest.undefs
  8293. mv conftest.tail conftest.undefs
  8294. done
  8295. rm -f conftest.undefs
  8296. cat >>$CONFIG_STATUS <<\_ACEOF
  8297. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8298. # use $as_me), people would be surprised to read:
  8299. # /* config.h. Generated by config.status. */
  8300. if test x"$ac_file" = x-; then
  8301. echo "/* Generated by configure. */" >$tmp/config.h
  8302. else
  8303. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  8304. fi
  8305. cat $tmp/in >>$tmp/config.h
  8306. rm -f $tmp/in
  8307. if test x"$ac_file" != x-; then
  8308. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  8309. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  8310. echo "$as_me: $ac_file is unchanged" >&6;}
  8311. else
  8312. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8313. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8314. X"$ac_file" : 'X\(//\)[^/]' \| \
  8315. X"$ac_file" : 'X\(//\)$' \| \
  8316. X"$ac_file" : 'X\(/\)' \| \
  8317. . : '\(.\)' 2>/dev/null ||
  8318. echo X"$ac_file" |
  8319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8320. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8321. /^X\(\/\/\)$/{ s//\1/; q; }
  8322. /^X\(\/\).*/{ s//\1/; q; }
  8323. s/.*/./; q'`
  8324. { if $as_mkdir_p; then
  8325. mkdir -p "$ac_dir"
  8326. else
  8327. as_dir="$ac_dir"
  8328. as_dirs=
  8329. while test ! -d "$as_dir"; do
  8330. as_dirs="$as_dir $as_dirs"
  8331. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8332. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8333. X"$as_dir" : 'X\(//\)[^/]' \| \
  8334. X"$as_dir" : 'X\(//\)$' \| \
  8335. X"$as_dir" : 'X\(/\)' \| \
  8336. . : '\(.\)' 2>/dev/null ||
  8337. echo X"$as_dir" |
  8338. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8339. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8340. /^X\(\/\/\)$/{ s//\1/; q; }
  8341. /^X\(\/\).*/{ s//\1/; q; }
  8342. s/.*/./; q'`
  8343. done
  8344. test ! -n "$as_dirs" || mkdir $as_dirs
  8345. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8346. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8347. { (exit 1); exit 1; }; }; }
  8348. rm -f $ac_file
  8349. mv $tmp/config.h $ac_file
  8350. fi
  8351. else
  8352. cat $tmp/config.h
  8353. rm -f $tmp/config.h
  8354. fi
  8355. # Compute $ac_file's index in $config_headers.
  8356. _am_stamp_count=1
  8357. for _am_header in $config_headers :; do
  8358. case $_am_header in
  8359. $ac_file | $ac_file:* )
  8360. break ;;
  8361. * )
  8362. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8363. esac
  8364. done
  8365. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  8366. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8367. X$ac_file : 'X\(//\)[^/]' \| \
  8368. X$ac_file : 'X\(//\)$' \| \
  8369. X$ac_file : 'X\(/\)' \| \
  8370. . : '\(.\)' 2>/dev/null ||
  8371. echo X$ac_file |
  8372. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8373. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8374. /^X\(\/\/\)$/{ s//\1/; q; }
  8375. /^X\(\/\).*/{ s//\1/; q; }
  8376. s/.*/./; q'`/stamp-h$_am_stamp_count
  8377. done
  8378. _ACEOF
  8379. cat >>$CONFIG_STATUS <<\_ACEOF
  8380. #
  8381. # CONFIG_COMMANDS section.
  8382. #
  8383. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  8384. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  8385. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8386. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  8387. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8388. X"$ac_dest" : 'X\(//\)[^/]' \| \
  8389. X"$ac_dest" : 'X\(//\)$' \| \
  8390. X"$ac_dest" : 'X\(/\)' \| \
  8391. . : '\(.\)' 2>/dev/null ||
  8392. echo X"$ac_dest" |
  8393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8394. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8395. /^X\(\/\/\)$/{ s//\1/; q; }
  8396. /^X\(\/\).*/{ s//\1/; q; }
  8397. s/.*/./; q'`
  8398. { if $as_mkdir_p; then
  8399. mkdir -p "$ac_dir"
  8400. else
  8401. as_dir="$ac_dir"
  8402. as_dirs=
  8403. while test ! -d "$as_dir"; do
  8404. as_dirs="$as_dir $as_dirs"
  8405. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8406. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8407. X"$as_dir" : 'X\(//\)[^/]' \| \
  8408. X"$as_dir" : 'X\(//\)$' \| \
  8409. X"$as_dir" : 'X\(/\)' \| \
  8410. . : '\(.\)' 2>/dev/null ||
  8411. echo X"$as_dir" |
  8412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8413. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8414. /^X\(\/\/\)$/{ s//\1/; q; }
  8415. /^X\(\/\).*/{ s//\1/; q; }
  8416. s/.*/./; q'`
  8417. done
  8418. test ! -n "$as_dirs" || mkdir $as_dirs
  8419. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8420. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8421. { (exit 1); exit 1; }; }; }
  8422. ac_builddir=.
  8423. if test "$ac_dir" != .; then
  8424. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8425. # A "../" for each directory in $ac_dir_suffix.
  8426. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8427. else
  8428. ac_dir_suffix= ac_top_builddir=
  8429. fi
  8430. case $srcdir in
  8431. .) # No --srcdir option. We are building in place.
  8432. ac_srcdir=.
  8433. if test -z "$ac_top_builddir"; then
  8434. ac_top_srcdir=.
  8435. else
  8436. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8437. fi ;;
  8438. [\\/]* | ?:[\\/]* ) # Absolute path.
  8439. ac_srcdir=$srcdir$ac_dir_suffix;
  8440. ac_top_srcdir=$srcdir ;;
  8441. *) # Relative path.
  8442. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8443. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8444. esac
  8445. # Do not use `cd foo && pwd` to compute absolute paths, because
  8446. # the directories may not exist.
  8447. case `pwd` in
  8448. .) ac_abs_builddir="$ac_dir";;
  8449. *)
  8450. case "$ac_dir" in
  8451. .) ac_abs_builddir=`pwd`;;
  8452. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8453. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8454. esac;;
  8455. esac
  8456. case $ac_abs_builddir in
  8457. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8458. *)
  8459. case ${ac_top_builddir}. in
  8460. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8461. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8462. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8463. esac;;
  8464. esac
  8465. case $ac_abs_builddir in
  8466. .) ac_abs_srcdir=$ac_srcdir;;
  8467. *)
  8468. case $ac_srcdir in
  8469. .) ac_abs_srcdir=$ac_abs_builddir;;
  8470. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8471. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8472. esac;;
  8473. esac
  8474. case $ac_abs_builddir in
  8475. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8476. *)
  8477. case $ac_top_srcdir in
  8478. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8479. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8480. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8481. esac;;
  8482. esac
  8483. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  8484. echo "$as_me: executing $ac_dest commands" >&6;}
  8485. case $ac_dest in
  8486. default-1 )
  8487. for ac_file in $CONFIG_FILES; do
  8488. # Support "outfile[:infile[:infile...]]"
  8489. case "$ac_file" in
  8490. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8491. esac
  8492. # PO directories have a Makefile.in generated from Makefile.in.in.
  8493. case "$ac_file" in */Makefile.in)
  8494. # Adjust a relative srcdir.
  8495. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  8496. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  8497. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  8498. # In autoconf-2.13 it is called $ac_given_srcdir.
  8499. # In autoconf-2.50 it is called $srcdir.
  8500. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  8501. case "$ac_given_srcdir" in
  8502. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  8503. /*) top_srcdir="$ac_given_srcdir" ;;
  8504. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  8505. esac
  8506. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  8507. rm -f "$ac_dir/POTFILES"
  8508. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  8509. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  8510. POMAKEFILEDEPS="POTFILES.in"
  8511. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  8512. # on $ac_dir but don't depend on user-specified configuration
  8513. # parameters.
  8514. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  8515. # The LINGUAS file contains the set of available languages.
  8516. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  8517. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  8518. fi
  8519. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  8520. # Hide the ALL_LINGUAS assigment from automake.
  8521. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  8522. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  8523. else
  8524. # The set of available languages was given in configure.in.
  8525. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  8526. fi
  8527. case "$ac_given_srcdir" in
  8528. .) srcdirpre= ;;
  8529. *) srcdirpre='$(srcdir)/' ;;
  8530. esac
  8531. POFILES=
  8532. GMOFILES=
  8533. UPDATEPOFILES=
  8534. DUMMYPOFILES=
  8535. for lang in $ALL_LINGUAS; do
  8536. POFILES="$POFILES $srcdirpre$lang.po"
  8537. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  8538. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  8539. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  8540. done
  8541. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  8542. # environment variable.
  8543. INST_LINGUAS=
  8544. if test -n "$ALL_LINGUAS"; then
  8545. for presentlang in $ALL_LINGUAS; do
  8546. useit=no
  8547. if test "%UNSET%" != "$LINGUAS"; then
  8548. desiredlanguages="$LINGUAS"
  8549. else
  8550. desiredlanguages="$ALL_LINGUAS"
  8551. fi
  8552. for desiredlang in $desiredlanguages; do
  8553. # Use the presentlang catalog if desiredlang is
  8554. # a. equal to presentlang, or
  8555. # b. a variant of presentlang (because in this case,
  8556. # presentlang can be used as a fallback for messages
  8557. # which are not translated in the desiredlang catalog).
  8558. case "$desiredlang" in
  8559. "$presentlang"*) useit=yes;;
  8560. esac
  8561. done
  8562. if test $useit = yes; then
  8563. INST_LINGUAS="$INST_LINGUAS $presentlang"
  8564. fi
  8565. done
  8566. fi
  8567. CATALOGS=
  8568. if test -n "$INST_LINGUAS"; then
  8569. for lang in $INST_LINGUAS; do
  8570. CATALOGS="$CATALOGS $lang.gmo"
  8571. done
  8572. fi
  8573. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  8574. 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"
  8575. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  8576. if test -f "$f"; then
  8577. case "$f" in
  8578. *.orig | *.bak | *~) ;;
  8579. *) cat "$f" >> "$ac_dir/Makefile" ;;
  8580. esac
  8581. fi
  8582. done
  8583. fi
  8584. ;;
  8585. esac
  8586. done ;;
  8587. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  8588. # Strip MF so we end up with the name of the file.
  8589. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8590. # Check whether this is an Automake generated Makefile or not.
  8591. # We used to match only the files named `Makefile.in', but
  8592. # some people rename them; so instead we look at the file content.
  8593. # Grep'ing the first line is not enough: some people post-process
  8594. # each Makefile.in and add a new line on top of each file to say so.
  8595. # So let's grep whole file.
  8596. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  8597. dirpart=`(dirname "$mf") 2>/dev/null ||
  8598. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8599. X"$mf" : 'X\(//\)[^/]' \| \
  8600. X"$mf" : 'X\(//\)$' \| \
  8601. X"$mf" : 'X\(/\)' \| \
  8602. . : '\(.\)' 2>/dev/null ||
  8603. echo X"$mf" |
  8604. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8605. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8606. /^X\(\/\/\)$/{ s//\1/; q; }
  8607. /^X\(\/\).*/{ s//\1/; q; }
  8608. s/.*/./; q'`
  8609. else
  8610. continue
  8611. fi
  8612. # Extract the definition of DEPDIR, am__include, and am__quote
  8613. # from the Makefile without running `make'.
  8614. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8615. test -z "$DEPDIR" && continue
  8616. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8617. test -z "am__include" && continue
  8618. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8619. # When using ansi2knr, U may be empty or an underscore; expand it
  8620. U=`sed -n 's/^U = //p' < "$mf"`
  8621. # Find all dependency output files, they are included files with
  8622. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8623. # simplest approach to changing $(DEPDIR) to its actual value in the
  8624. # expansion.
  8625. for file in `sed -n "
  8626. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8627. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8628. # Make sure the directory exists.
  8629. test -f "$dirpart/$file" && continue
  8630. fdir=`(dirname "$file") 2>/dev/null ||
  8631. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8632. X"$file" : 'X\(//\)[^/]' \| \
  8633. X"$file" : 'X\(//\)$' \| \
  8634. X"$file" : 'X\(/\)' \| \
  8635. . : '\(.\)' 2>/dev/null ||
  8636. echo X"$file" |
  8637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8638. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8639. /^X\(\/\/\)$/{ s//\1/; q; }
  8640. /^X\(\/\).*/{ s//\1/; q; }
  8641. s/.*/./; q'`
  8642. { if $as_mkdir_p; then
  8643. mkdir -p $dirpart/$fdir
  8644. else
  8645. as_dir=$dirpart/$fdir
  8646. as_dirs=
  8647. while test ! -d "$as_dir"; do
  8648. as_dirs="$as_dir $as_dirs"
  8649. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8650. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8651. X"$as_dir" : 'X\(//\)[^/]' \| \
  8652. X"$as_dir" : 'X\(//\)$' \| \
  8653. X"$as_dir" : 'X\(/\)' \| \
  8654. . : '\(.\)' 2>/dev/null ||
  8655. echo X"$as_dir" |
  8656. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8657. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8658. /^X\(\/\/\)$/{ s//\1/; q; }
  8659. /^X\(\/\).*/{ s//\1/; q; }
  8660. s/.*/./; q'`
  8661. done
  8662. test ! -n "$as_dirs" || mkdir $as_dirs
  8663. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  8664. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  8665. { (exit 1); exit 1; }; }; }
  8666. # echo "creating $dirpart/$file"
  8667. echo '# dummy' > "$dirpart/$file"
  8668. done
  8669. done
  8670. ;;
  8671. esac
  8672. done
  8673. _ACEOF
  8674. cat >>$CONFIG_STATUS <<\_ACEOF
  8675. { (exit 0); exit 0; }
  8676. _ACEOF
  8677. chmod +x $CONFIG_STATUS
  8678. ac_clean_files=$ac_clean_files_save
  8679. # configure is writing to config.log, and then calls config.status.
  8680. # config.status does its own redirection, appending to config.log.
  8681. # Unfortunately, on DOS this fails, as config.log is still kept open
  8682. # by configure, so config.status won't be able to write to it; its
  8683. # output is simply discarded. So we exec the FD to /dev/null,
  8684. # effectively closing config.log, so it can be properly (re)opened and
  8685. # appended to by config.status. When coming back to configure, we
  8686. # need to make the FD available again.
  8687. if test "$no_create" != yes; then
  8688. ac_cs_success=:
  8689. ac_config_status_args=
  8690. test "$silent" = yes &&
  8691. ac_config_status_args="$ac_config_status_args --quiet"
  8692. exec 5>/dev/null
  8693. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8694. exec 5>>config.log
  8695. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8696. # would make configure fail if this is the last instruction.
  8697. $ac_cs_success || { (exit 1); exit 1; }
  8698. fi