configure 202 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927
  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-dev.
  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-dev'
  239. PACKAGE_STRING='aria2c 0.2.1-dev'
  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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR 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_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.2.1-dev 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. _ACEOF
  743. fi
  744. if test -n "$ac_init_help"; then
  745. case $ac_init_help in
  746. short | recursive ) echo "Configuration of aria2c 0.2.1-dev:";;
  747. esac
  748. cat <<\_ACEOF
  749. Optional Features:
  750. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  751. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  752. --enable-ssl enalbe SSL support if libssl is installed. Default: yes
  753. --disable-dependency-tracking speeds up one-time build
  754. --enable-dependency-tracking do not reject slow dependency extractors
  755. Optional Packages:
  756. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  757. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  758. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  759. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  760. Some influential environment variables:
  761. CXX C++ compiler command
  762. CXXFLAGS C++ compiler flags
  763. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  764. nonstandard directory <lib dir>
  765. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  766. headers in a nonstandard directory <include dir>
  767. CC C compiler command
  768. CFLAGS C compiler flags
  769. CPP C preprocessor
  770. Use these variables to override the choices made by `configure' or to help
  771. it to find libraries and programs with nonstandard names/locations.
  772. Report bugs to <tujikawa@rednoah.com>.
  773. _ACEOF
  774. fi
  775. if test "$ac_init_help" = "recursive"; then
  776. # If there are subdirs, report their specific --help.
  777. ac_popdir=`pwd`
  778. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  779. test -d $ac_dir || continue
  780. ac_builddir=.
  781. if test "$ac_dir" != .; then
  782. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  783. # A "../" for each directory in $ac_dir_suffix.
  784. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  785. else
  786. ac_dir_suffix= ac_top_builddir=
  787. fi
  788. case $srcdir in
  789. .) # No --srcdir option. We are building in place.
  790. ac_srcdir=.
  791. if test -z "$ac_top_builddir"; then
  792. ac_top_srcdir=.
  793. else
  794. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  795. fi ;;
  796. [\\/]* | ?:[\\/]* ) # Absolute path.
  797. ac_srcdir=$srcdir$ac_dir_suffix;
  798. ac_top_srcdir=$srcdir ;;
  799. *) # Relative path.
  800. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  801. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  802. esac
  803. # Do not use `cd foo && pwd` to compute absolute paths, because
  804. # the directories may not exist.
  805. case `pwd` in
  806. .) ac_abs_builddir="$ac_dir";;
  807. *)
  808. case "$ac_dir" in
  809. .) ac_abs_builddir=`pwd`;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  811. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  816. *)
  817. case ${ac_top_builddir}. in
  818. .) ac_abs_top_builddir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  820. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  821. esac;;
  822. esac
  823. case $ac_abs_builddir in
  824. .) ac_abs_srcdir=$ac_srcdir;;
  825. *)
  826. case $ac_srcdir in
  827. .) ac_abs_srcdir=$ac_abs_builddir;;
  828. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  829. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  830. esac;;
  831. esac
  832. case $ac_abs_builddir in
  833. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  834. *)
  835. case $ac_top_srcdir in
  836. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  837. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  838. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  839. esac;;
  840. esac
  841. cd $ac_dir
  842. # Check for guested configure; otherwise get Cygnus style configure.
  843. if test -f $ac_srcdir/configure.gnu; then
  844. echo
  845. $SHELL $ac_srcdir/configure.gnu --help=recursive
  846. elif test -f $ac_srcdir/configure; then
  847. echo
  848. $SHELL $ac_srcdir/configure --help=recursive
  849. elif test -f $ac_srcdir/configure.ac ||
  850. test -f $ac_srcdir/configure.in; then
  851. echo
  852. $ac_configure --help
  853. else
  854. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  855. fi
  856. cd "$ac_popdir"
  857. done
  858. fi
  859. test -n "$ac_init_help" && exit 0
  860. if $ac_init_version; then
  861. cat <<\_ACEOF
  862. aria2c configure 0.2.1-dev
  863. generated by GNU Autoconf 2.59
  864. Copyright (C) 2003 Free Software Foundation, Inc.
  865. This configure script is free software; the Free Software Foundation
  866. gives unlimited permission to copy, distribute and modify it.
  867. _ACEOF
  868. exit 0
  869. fi
  870. exec 5>config.log
  871. cat >&5 <<_ACEOF
  872. This file contains any messages produced by compilers while
  873. running configure, to aid debugging if configure makes a mistake.
  874. It was created by aria2c $as_me 0.2.1-dev, which was
  875. generated by GNU Autoconf 2.59. Invocation command line was
  876. $ $0 $@
  877. _ACEOF
  878. {
  879. cat <<_ASUNAME
  880. ## --------- ##
  881. ## Platform. ##
  882. ## --------- ##
  883. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  884. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  885. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  886. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  887. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  888. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  889. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  890. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  891. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  892. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  893. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  894. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  895. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  896. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  897. _ASUNAME
  898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  899. for as_dir in $PATH
  900. do
  901. IFS=$as_save_IFS
  902. test -z "$as_dir" && as_dir=.
  903. echo "PATH: $as_dir"
  904. done
  905. } >&5
  906. cat >&5 <<_ACEOF
  907. ## ----------- ##
  908. ## Core tests. ##
  909. ## ----------- ##
  910. _ACEOF
  911. # Keep a trace of the command line.
  912. # Strip out --no-create and --no-recursion so they do not pile up.
  913. # Strip out --silent because we don't want to record it for future runs.
  914. # Also quote any args containing shell meta-characters.
  915. # Make two passes to allow for proper duplicate-argument suppression.
  916. ac_configure_args=
  917. ac_configure_args0=
  918. ac_configure_args1=
  919. ac_sep=
  920. ac_must_keep_next=false
  921. for ac_pass in 1 2
  922. do
  923. for ac_arg
  924. do
  925. case $ac_arg in
  926. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  927. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  928. | -silent | --silent | --silen | --sile | --sil)
  929. continue ;;
  930. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  931. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  932. esac
  933. case $ac_pass in
  934. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  935. 2)
  936. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  937. if test $ac_must_keep_next = true; then
  938. ac_must_keep_next=false # Got value, back to normal.
  939. else
  940. case $ac_arg in
  941. *=* | --config-cache | -C | -disable-* | --disable-* \
  942. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  943. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  944. | -with-* | --with-* | -without-* | --without-* | --x)
  945. case "$ac_configure_args0 " in
  946. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  947. esac
  948. ;;
  949. -* ) ac_must_keep_next=true ;;
  950. esac
  951. fi
  952. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  953. # Get rid of the leading space.
  954. ac_sep=" "
  955. ;;
  956. esac
  957. done
  958. done
  959. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  960. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  961. # When interrupted or exit'd, cleanup temporary files, and complete
  962. # config.log. We remove comments because anyway the quotes in there
  963. # would cause problems or look ugly.
  964. # WARNING: Be sure not to use single quotes in there, as some shells,
  965. # such as our DU 5.0 friend, will then `close' the trap.
  966. trap 'exit_status=$?
  967. # Save into config.log some information that might help in debugging.
  968. {
  969. echo
  970. cat <<\_ASBOX
  971. ## ---------------- ##
  972. ## Cache variables. ##
  973. ## ---------------- ##
  974. _ASBOX
  975. echo
  976. # The following way of writing the cache mishandles newlines in values,
  977. {
  978. (set) 2>&1 |
  979. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  980. *ac_space=\ *)
  981. sed -n \
  982. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  983. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  984. ;;
  985. *)
  986. sed -n \
  987. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  988. ;;
  989. esac;
  990. }
  991. echo
  992. cat <<\_ASBOX
  993. ## ----------------- ##
  994. ## Output variables. ##
  995. ## ----------------- ##
  996. _ASBOX
  997. echo
  998. for ac_var in $ac_subst_vars
  999. do
  1000. eval ac_val=$`echo $ac_var`
  1001. echo "$ac_var='"'"'$ac_val'"'"'"
  1002. done | sort
  1003. echo
  1004. if test -n "$ac_subst_files"; then
  1005. cat <<\_ASBOX
  1006. ## ------------- ##
  1007. ## Output files. ##
  1008. ## ------------- ##
  1009. _ASBOX
  1010. echo
  1011. for ac_var in $ac_subst_files
  1012. do
  1013. eval ac_val=$`echo $ac_var`
  1014. echo "$ac_var='"'"'$ac_val'"'"'"
  1015. done | sort
  1016. echo
  1017. fi
  1018. if test -s confdefs.h; then
  1019. cat <<\_ASBOX
  1020. ## ----------- ##
  1021. ## confdefs.h. ##
  1022. ## ----------- ##
  1023. _ASBOX
  1024. echo
  1025. sed "/^$/d" confdefs.h | sort
  1026. echo
  1027. fi
  1028. test "$ac_signal" != 0 &&
  1029. echo "$as_me: caught signal $ac_signal"
  1030. echo "$as_me: exit $exit_status"
  1031. } >&5
  1032. rm -f core *.core &&
  1033. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1034. exit $exit_status
  1035. ' 0
  1036. for ac_signal in 1 2 13 15; do
  1037. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1038. done
  1039. ac_signal=0
  1040. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1041. rm -rf conftest* confdefs.h
  1042. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1043. echo >confdefs.h
  1044. # Predefined preprocessor variables.
  1045. cat >>confdefs.h <<_ACEOF
  1046. #define PACKAGE_NAME "$PACKAGE_NAME"
  1047. _ACEOF
  1048. cat >>confdefs.h <<_ACEOF
  1049. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1050. _ACEOF
  1051. cat >>confdefs.h <<_ACEOF
  1052. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1053. _ACEOF
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_STRING "$PACKAGE_STRING"
  1056. _ACEOF
  1057. cat >>confdefs.h <<_ACEOF
  1058. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1059. _ACEOF
  1060. # Let the site file select an alternate cache file if it wants to.
  1061. # Prefer explicitly selected file to automatically selected ones.
  1062. if test -z "$CONFIG_SITE"; then
  1063. if test "x$prefix" != xNONE; then
  1064. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1065. else
  1066. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1067. fi
  1068. fi
  1069. for ac_site_file in $CONFIG_SITE; do
  1070. if test -r "$ac_site_file"; then
  1071. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1072. echo "$as_me: loading site script $ac_site_file" >&6;}
  1073. sed 's/^/| /' "$ac_site_file" >&5
  1074. . "$ac_site_file"
  1075. fi
  1076. done
  1077. if test -r "$cache_file"; then
  1078. # Some versions of bash will fail to source /dev/null (special
  1079. # files actually), so we avoid doing that.
  1080. if test -f "$cache_file"; then
  1081. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1082. echo "$as_me: loading cache $cache_file" >&6;}
  1083. case $cache_file in
  1084. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1085. *) . ./$cache_file;;
  1086. esac
  1087. fi
  1088. else
  1089. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1090. echo "$as_me: creating cache $cache_file" >&6;}
  1091. >$cache_file
  1092. fi
  1093. # Check that the precious variables saved in the cache have kept the same
  1094. # value.
  1095. ac_cache_corrupted=false
  1096. for ac_var in `(set) 2>&1 |
  1097. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1098. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1099. eval ac_new_set=\$ac_env_${ac_var}_set
  1100. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1101. eval ac_new_val="\$ac_env_${ac_var}_value"
  1102. case $ac_old_set,$ac_new_set in
  1103. set,)
  1104. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1105. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1106. ac_cache_corrupted=: ;;
  1107. ,set)
  1108. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1109. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1110. ac_cache_corrupted=: ;;
  1111. ,);;
  1112. *)
  1113. if test "x$ac_old_val" != "x$ac_new_val"; then
  1114. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1115. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1116. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1117. echo "$as_me: former value: $ac_old_val" >&2;}
  1118. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1119. echo "$as_me: current value: $ac_new_val" >&2;}
  1120. ac_cache_corrupted=:
  1121. fi;;
  1122. esac
  1123. # Pass precious variables to config.status.
  1124. if test "$ac_new_set" = set; then
  1125. case $ac_new_val in
  1126. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1127. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1128. *) ac_arg=$ac_var=$ac_new_val ;;
  1129. esac
  1130. case " $ac_configure_args " in
  1131. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1132. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1133. esac
  1134. fi
  1135. done
  1136. if $ac_cache_corrupted; then
  1137. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1138. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1139. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1140. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1141. { (exit 1); exit 1; }; }
  1142. fi
  1143. ac_ext=c
  1144. ac_cpp='$CPP $CPPFLAGS'
  1145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1148. am__api_version="1.9"
  1149. ac_aux_dir=
  1150. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1151. if test -f $ac_dir/install-sh; then
  1152. ac_aux_dir=$ac_dir
  1153. ac_install_sh="$ac_aux_dir/install-sh -c"
  1154. break
  1155. elif test -f $ac_dir/install.sh; then
  1156. ac_aux_dir=$ac_dir
  1157. ac_install_sh="$ac_aux_dir/install.sh -c"
  1158. break
  1159. elif test -f $ac_dir/shtool; then
  1160. ac_aux_dir=$ac_dir
  1161. ac_install_sh="$ac_aux_dir/shtool install -c"
  1162. break
  1163. fi
  1164. done
  1165. if test -z "$ac_aux_dir"; then
  1166. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1167. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1168. { (exit 1); exit 1; }; }
  1169. fi
  1170. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1171. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1172. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1173. # Find a good install program. We prefer a C program (faster),
  1174. # so one script is as good as another. But avoid the broken or
  1175. # incompatible versions:
  1176. # SysV /etc/install, /usr/sbin/install
  1177. # SunOS /usr/etc/install
  1178. # IRIX /sbin/install
  1179. # AIX /bin/install
  1180. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1181. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1182. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1183. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1184. # OS/2's system install, which has a completely different semantic
  1185. # ./install, which can be erroneously created by make from ./install.sh.
  1186. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1187. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1188. if test -z "$INSTALL"; then
  1189. if test "${ac_cv_path_install+set}" = set; then
  1190. echo $ECHO_N "(cached) $ECHO_C" >&6
  1191. else
  1192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1193. for as_dir in $PATH
  1194. do
  1195. IFS=$as_save_IFS
  1196. test -z "$as_dir" && as_dir=.
  1197. # Account for people who put trailing slashes in PATH elements.
  1198. case $as_dir/ in
  1199. ./ | .// | /cC/* | \
  1200. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1201. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1202. /usr/ucb/* ) ;;
  1203. *)
  1204. # OSF1 and SCO ODT 3.0 have their own names for install.
  1205. # Don't use installbsd from OSF since it installs stuff as root
  1206. # by default.
  1207. for ac_prog in ginstall scoinst install; do
  1208. for ac_exec_ext in '' $ac_executable_extensions; do
  1209. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1210. if test $ac_prog = install &&
  1211. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1212. # AIX install. It has an incompatible calling convention.
  1213. :
  1214. elif test $ac_prog = install &&
  1215. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1216. # program-specific install script used by HP pwplus--don't use.
  1217. :
  1218. else
  1219. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1220. break 3
  1221. fi
  1222. fi
  1223. done
  1224. done
  1225. ;;
  1226. esac
  1227. done
  1228. fi
  1229. if test "${ac_cv_path_install+set}" = set; then
  1230. INSTALL=$ac_cv_path_install
  1231. else
  1232. # As a last resort, use the slow shell script. We don't cache a
  1233. # path for INSTALL within a source directory, because that will
  1234. # break other packages using the cache if that directory is
  1235. # removed, or if the path is relative.
  1236. INSTALL=$ac_install_sh
  1237. fi
  1238. fi
  1239. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1240. echo "${ECHO_T}$INSTALL" >&6
  1241. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1242. # It thinks the first close brace ends the variable substitution.
  1243. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1244. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1245. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1246. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1247. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1248. # Just in case
  1249. sleep 1
  1250. echo timestamp > conftest.file
  1251. # Do `set' in a subshell so we don't clobber the current shell's
  1252. # arguments. Must try -L first in case configure is actually a
  1253. # symlink; some systems play weird games with the mod time of symlinks
  1254. # (eg FreeBSD returns the mod time of the symlink's containing
  1255. # directory).
  1256. if (
  1257. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1258. if test "$*" = "X"; then
  1259. # -L didn't work.
  1260. set X `ls -t $srcdir/configure conftest.file`
  1261. fi
  1262. rm -f conftest.file
  1263. if test "$*" != "X $srcdir/configure conftest.file" \
  1264. && test "$*" != "X conftest.file $srcdir/configure"; then
  1265. # If neither matched, then we have a broken ls. This can happen
  1266. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1267. # broken ls alias from the environment. This has actually
  1268. # happened. Such a system could not be considered "sane".
  1269. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1270. alias in your environment" >&5
  1271. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1272. alias in your environment" >&2;}
  1273. { (exit 1); exit 1; }; }
  1274. fi
  1275. test "$2" = conftest.file
  1276. )
  1277. then
  1278. # Ok.
  1279. :
  1280. else
  1281. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1282. Check your system clock" >&5
  1283. echo "$as_me: error: newly created file is older than distributed files!
  1284. Check your system clock" >&2;}
  1285. { (exit 1); exit 1; }; }
  1286. fi
  1287. echo "$as_me:$LINENO: result: yes" >&5
  1288. echo "${ECHO_T}yes" >&6
  1289. test "$program_prefix" != NONE &&
  1290. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1291. # Use a double $ so make ignores it.
  1292. test "$program_suffix" != NONE &&
  1293. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1294. # Double any \ or $. echo might interpret backslashes.
  1295. # By default was `s,x,x', remove it if useless.
  1296. cat <<\_ACEOF >conftest.sed
  1297. s/[\\$]/&&/g;s/;s,x,x,$//
  1298. _ACEOF
  1299. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1300. rm conftest.sed
  1301. # expand $ac_aux_dir to an absolute path
  1302. am_aux_dir=`cd $ac_aux_dir && pwd`
  1303. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1304. # Use eval to expand $SHELL
  1305. if eval "$MISSING --run true"; then
  1306. am_missing_run="$MISSING --run "
  1307. else
  1308. am_missing_run=
  1309. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1310. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1311. fi
  1312. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1313. # We used to keeping the `.' as first argument, in order to
  1314. # allow $(mkdir_p) to be used without argument. As in
  1315. # $(mkdir_p) $(somedir)
  1316. # where $(somedir) is conditionally defined. However this is wrong
  1317. # for two reasons:
  1318. # 1. if the package is installed by a user who cannot write `.'
  1319. # make install will fail,
  1320. # 2. the above comment should most certainly read
  1321. # $(mkdir_p) $(DESTDIR)$(somedir)
  1322. # so it does not work when $(somedir) is undefined and
  1323. # $(DESTDIR) is not.
  1324. # To support the latter case, we have to write
  1325. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1326. # so the `.' trick is pointless.
  1327. mkdir_p='mkdir -p --'
  1328. else
  1329. # On NextStep and OpenStep, the `mkdir' command does not
  1330. # recognize any option. It will interpret all options as
  1331. # directories to create, and then abort because `.' already
  1332. # exists.
  1333. for d in ./-p ./--version;
  1334. do
  1335. test -d $d && rmdir $d
  1336. done
  1337. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1338. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1339. mkdir_p='$(mkinstalldirs)'
  1340. else
  1341. mkdir_p='$(install_sh) -d'
  1342. fi
  1343. fi
  1344. for ac_prog in gawk mawk nawk awk
  1345. do
  1346. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1347. set dummy $ac_prog; ac_word=$2
  1348. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1350. if test "${ac_cv_prog_AWK+set}" = set; then
  1351. echo $ECHO_N "(cached) $ECHO_C" >&6
  1352. else
  1353. if test -n "$AWK"; then
  1354. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1355. else
  1356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1357. for as_dir in $PATH
  1358. do
  1359. IFS=$as_save_IFS
  1360. test -z "$as_dir" && as_dir=.
  1361. for ac_exec_ext in '' $ac_executable_extensions; do
  1362. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1363. ac_cv_prog_AWK="$ac_prog"
  1364. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1365. break 2
  1366. fi
  1367. done
  1368. done
  1369. fi
  1370. fi
  1371. AWK=$ac_cv_prog_AWK
  1372. if test -n "$AWK"; then
  1373. echo "$as_me:$LINENO: result: $AWK" >&5
  1374. echo "${ECHO_T}$AWK" >&6
  1375. else
  1376. echo "$as_me:$LINENO: result: no" >&5
  1377. echo "${ECHO_T}no" >&6
  1378. fi
  1379. test -n "$AWK" && break
  1380. done
  1381. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1382. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1383. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1384. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1385. echo $ECHO_N "(cached) $ECHO_C" >&6
  1386. else
  1387. cat >conftest.make <<\_ACEOF
  1388. all:
  1389. @echo 'ac_maketemp="$(MAKE)"'
  1390. _ACEOF
  1391. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1392. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1393. if test -n "$ac_maketemp"; then
  1394. eval ac_cv_prog_make_${ac_make}_set=yes
  1395. else
  1396. eval ac_cv_prog_make_${ac_make}_set=no
  1397. fi
  1398. rm -f conftest.make
  1399. fi
  1400. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1401. echo "$as_me:$LINENO: result: yes" >&5
  1402. echo "${ECHO_T}yes" >&6
  1403. SET_MAKE=
  1404. else
  1405. echo "$as_me:$LINENO: result: no" >&5
  1406. echo "${ECHO_T}no" >&6
  1407. SET_MAKE="MAKE=${MAKE-make}"
  1408. fi
  1409. rm -rf .tst 2>/dev/null
  1410. mkdir .tst 2>/dev/null
  1411. if test -d .tst; then
  1412. am__leading_dot=.
  1413. else
  1414. am__leading_dot=_
  1415. fi
  1416. rmdir .tst 2>/dev/null
  1417. # test to see if srcdir already configured
  1418. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1419. test -f $srcdir/config.status; then
  1420. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1421. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1422. { (exit 1); exit 1; }; }
  1423. fi
  1424. # test whether we have cygpath
  1425. if test -z "$CYGPATH_W"; then
  1426. if (cygpath --version) >/dev/null 2>/dev/null; then
  1427. CYGPATH_W='cygpath -w'
  1428. else
  1429. CYGPATH_W=echo
  1430. fi
  1431. fi
  1432. # Define the identity of the package.
  1433. PACKAGE='aria2c'
  1434. VERSION='0.2.1-dev'
  1435. cat >>confdefs.h <<_ACEOF
  1436. #define PACKAGE "$PACKAGE"
  1437. _ACEOF
  1438. cat >>confdefs.h <<_ACEOF
  1439. #define VERSION "$VERSION"
  1440. _ACEOF
  1441. # Some tools Automake needs.
  1442. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1443. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1444. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1445. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1446. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1447. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1448. # Installed binaries are usually stripped using `strip' when the user
  1449. # run `make install-strip'. However `strip' might not be the right
  1450. # tool to use in cross-compilation environments, therefore Automake
  1451. # will honor the `STRIP' environment variable to overrule this program.
  1452. if test "$cross_compiling" != no; then
  1453. if test -n "$ac_tool_prefix"; then
  1454. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1455. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1456. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1458. if test "${ac_cv_prog_STRIP+set}" = set; then
  1459. echo $ECHO_N "(cached) $ECHO_C" >&6
  1460. else
  1461. if test -n "$STRIP"; then
  1462. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1463. else
  1464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1465. for as_dir in $PATH
  1466. do
  1467. IFS=$as_save_IFS
  1468. test -z "$as_dir" && as_dir=.
  1469. for ac_exec_ext in '' $ac_executable_extensions; do
  1470. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1471. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1472. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1473. break 2
  1474. fi
  1475. done
  1476. done
  1477. fi
  1478. fi
  1479. STRIP=$ac_cv_prog_STRIP
  1480. if test -n "$STRIP"; then
  1481. echo "$as_me:$LINENO: result: $STRIP" >&5
  1482. echo "${ECHO_T}$STRIP" >&6
  1483. else
  1484. echo "$as_me:$LINENO: result: no" >&5
  1485. echo "${ECHO_T}no" >&6
  1486. fi
  1487. fi
  1488. if test -z "$ac_cv_prog_STRIP"; then
  1489. ac_ct_STRIP=$STRIP
  1490. # Extract the first word of "strip", so it can be a program name with args.
  1491. set dummy strip; ac_word=$2
  1492. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1494. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1495. echo $ECHO_N "(cached) $ECHO_C" >&6
  1496. else
  1497. if test -n "$ac_ct_STRIP"; then
  1498. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1499. else
  1500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1501. for as_dir in $PATH
  1502. do
  1503. IFS=$as_save_IFS
  1504. test -z "$as_dir" && as_dir=.
  1505. for ac_exec_ext in '' $ac_executable_extensions; do
  1506. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1507. ac_cv_prog_ac_ct_STRIP="strip"
  1508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1509. break 2
  1510. fi
  1511. done
  1512. done
  1513. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1514. fi
  1515. fi
  1516. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1517. if test -n "$ac_ct_STRIP"; then
  1518. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1519. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1520. else
  1521. echo "$as_me:$LINENO: result: no" >&5
  1522. echo "${ECHO_T}no" >&6
  1523. fi
  1524. STRIP=$ac_ct_STRIP
  1525. else
  1526. STRIP="$ac_cv_prog_STRIP"
  1527. fi
  1528. fi
  1529. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1530. # We need awk for the "check" target. The system "awk" is bad on
  1531. # some platforms.
  1532. # Always define AMTAR for backward compatibility.
  1533. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1534. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1535. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1536. if test "${with_cppunit_prefix+set}" = set; then
  1537. withval="$with_cppunit_prefix"
  1538. cppunit_config_prefix="$withval"
  1539. else
  1540. cppunit_config_prefix=""
  1541. fi;
  1542. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1543. if test "${with_cppunit_exec_prefix+set}" = set; then
  1544. withval="$with_cppunit_exec_prefix"
  1545. cppunit_config_exec_prefix="$withval"
  1546. else
  1547. cppunit_config_exec_prefix=""
  1548. fi;
  1549. if test x$cppunit_config_exec_prefix != x ; then
  1550. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1551. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1552. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1553. fi
  1554. fi
  1555. if test x$cppunit_config_prefix != x ; then
  1556. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1557. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1558. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1559. fi
  1560. fi
  1561. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1562. set dummy cppunit-config; ac_word=$2
  1563. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1564. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1565. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1566. echo $ECHO_N "(cached) $ECHO_C" >&6
  1567. else
  1568. case $CPPUNIT_CONFIG in
  1569. [\\/]* | ?:[\\/]*)
  1570. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1571. ;;
  1572. *)
  1573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1574. for as_dir in $PATH
  1575. do
  1576. IFS=$as_save_IFS
  1577. test -z "$as_dir" && as_dir=.
  1578. for ac_exec_ext in '' $ac_executable_extensions; do
  1579. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1580. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1581. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1582. break 2
  1583. fi
  1584. done
  1585. done
  1586. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1587. ;;
  1588. esac
  1589. fi
  1590. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1591. if test -n "$CPPUNIT_CONFIG"; then
  1592. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1593. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1594. else
  1595. echo "$as_me:$LINENO: result: no" >&5
  1596. echo "${ECHO_T}no" >&6
  1597. fi
  1598. cppunit_version_min=1.10.2
  1599. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1600. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1601. no_cppunit=""
  1602. if test "$CPPUNIT_CONFIG" = "no" ; then
  1603. no_cppunit=yes
  1604. else
  1605. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1606. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1607. cppunit_version=`$CPPUNIT_CONFIG --version`
  1608. cppunit_major_version=`echo $cppunit_version | \
  1609. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1610. cppunit_minor_version=`echo $cppunit_version | \
  1611. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1612. cppunit_micro_version=`echo $cppunit_version | \
  1613. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1614. cppunit_major_min=`echo $cppunit_version_min | \
  1615. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1616. cppunit_minor_min=`echo $cppunit_version_min | \
  1617. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1618. cppunit_micro_min=`echo $cppunit_version_min | \
  1619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1620. cppunit_version_proper=`expr \
  1621. $cppunit_major_version \> $cppunit_major_min \| \
  1622. $cppunit_major_version \= $cppunit_major_min \& \
  1623. $cppunit_minor_version \> $cppunit_minor_min \| \
  1624. $cppunit_major_version \= $cppunit_major_min \& \
  1625. $cppunit_minor_version \= $cppunit_minor_min \& \
  1626. $cppunit_micro_version \>= $cppunit_micro_min `
  1627. if test "$cppunit_version_proper" = "1" ; then
  1628. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1629. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1630. else
  1631. echo "$as_me:$LINENO: result: no" >&5
  1632. echo "${ECHO_T}no" >&6
  1633. no_cppunit=yes
  1634. fi
  1635. fi
  1636. if test "x$no_cppunit" = x ; then
  1637. :
  1638. else
  1639. CPPUNIT_CFLAGS=""
  1640. CPPUNIT_LIBS=""
  1641. :
  1642. fi
  1643. ac_config_headers="$ac_config_headers config.h"
  1644. if test -n "$ac_tool_prefix"; then
  1645. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1646. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1649. if test "${ac_cv_prog_RANLIB+set}" = set; then
  1650. echo $ECHO_N "(cached) $ECHO_C" >&6
  1651. else
  1652. if test -n "$RANLIB"; then
  1653. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1654. else
  1655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1656. for as_dir in $PATH
  1657. do
  1658. IFS=$as_save_IFS
  1659. test -z "$as_dir" && as_dir=.
  1660. for ac_exec_ext in '' $ac_executable_extensions; do
  1661. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1662. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1664. break 2
  1665. fi
  1666. done
  1667. done
  1668. fi
  1669. fi
  1670. RANLIB=$ac_cv_prog_RANLIB
  1671. if test -n "$RANLIB"; then
  1672. echo "$as_me:$LINENO: result: $RANLIB" >&5
  1673. echo "${ECHO_T}$RANLIB" >&6
  1674. else
  1675. echo "$as_me:$LINENO: result: no" >&5
  1676. echo "${ECHO_T}no" >&6
  1677. fi
  1678. fi
  1679. if test -z "$ac_cv_prog_RANLIB"; then
  1680. ac_ct_RANLIB=$RANLIB
  1681. # Extract the first word of "ranlib", so it can be a program name with args.
  1682. set dummy ranlib; ac_word=$2
  1683. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1685. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1686. echo $ECHO_N "(cached) $ECHO_C" >&6
  1687. else
  1688. if test -n "$ac_ct_RANLIB"; then
  1689. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1690. else
  1691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1692. for as_dir in $PATH
  1693. do
  1694. IFS=$as_save_IFS
  1695. test -z "$as_dir" && as_dir=.
  1696. for ac_exec_ext in '' $ac_executable_extensions; do
  1697. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1698. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1700. break 2
  1701. fi
  1702. done
  1703. done
  1704. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  1705. fi
  1706. fi
  1707. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  1708. if test -n "$ac_ct_RANLIB"; then
  1709. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  1710. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  1711. else
  1712. echo "$as_me:$LINENO: result: no" >&5
  1713. echo "${ECHO_T}no" >&6
  1714. fi
  1715. RANLIB=$ac_ct_RANLIB
  1716. else
  1717. RANLIB="$ac_cv_prog_RANLIB"
  1718. fi
  1719. # Checks for arguments.
  1720. # Check whether --enable-ssl or --disable-ssl was given.
  1721. if test "${enable_ssl+set}" = set; then
  1722. enableval="$enable_ssl"
  1723. enable_ssl=$enableval
  1724. else
  1725. enable_ssl=yes
  1726. fi;
  1727. # Checks for programs.
  1728. ac_ext=cc
  1729. ac_cpp='$CXXCPP $CPPFLAGS'
  1730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1733. if test -n "$ac_tool_prefix"; then
  1734. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1735. do
  1736. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1737. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1738. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1739. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1740. if test "${ac_cv_prog_CXX+set}" = set; then
  1741. echo $ECHO_N "(cached) $ECHO_C" >&6
  1742. else
  1743. if test -n "$CXX"; then
  1744. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1745. else
  1746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1747. for as_dir in $PATH
  1748. do
  1749. IFS=$as_save_IFS
  1750. test -z "$as_dir" && as_dir=.
  1751. for ac_exec_ext in '' $ac_executable_extensions; do
  1752. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1753. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1754. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1755. break 2
  1756. fi
  1757. done
  1758. done
  1759. fi
  1760. fi
  1761. CXX=$ac_cv_prog_CXX
  1762. if test -n "$CXX"; then
  1763. echo "$as_me:$LINENO: result: $CXX" >&5
  1764. echo "${ECHO_T}$CXX" >&6
  1765. else
  1766. echo "$as_me:$LINENO: result: no" >&5
  1767. echo "${ECHO_T}no" >&6
  1768. fi
  1769. test -n "$CXX" && break
  1770. done
  1771. fi
  1772. if test -z "$CXX"; then
  1773. ac_ct_CXX=$CXX
  1774. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1775. do
  1776. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1777. set dummy $ac_prog; 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_prog_ac_ct_CXX+set}" = set; then
  1781. echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783. if test -n "$ac_ct_CXX"; then
  1784. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1785. else
  1786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1787. for as_dir in $PATH
  1788. do
  1789. IFS=$as_save_IFS
  1790. test -z "$as_dir" && as_dir=.
  1791. for ac_exec_ext in '' $ac_executable_extensions; do
  1792. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1793. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1794. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1795. break 2
  1796. fi
  1797. done
  1798. done
  1799. fi
  1800. fi
  1801. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1802. if test -n "$ac_ct_CXX"; then
  1803. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1804. echo "${ECHO_T}$ac_ct_CXX" >&6
  1805. else
  1806. echo "$as_me:$LINENO: result: no" >&5
  1807. echo "${ECHO_T}no" >&6
  1808. fi
  1809. test -n "$ac_ct_CXX" && break
  1810. done
  1811. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1812. CXX=$ac_ct_CXX
  1813. fi
  1814. # Provide some information about the compiler.
  1815. echo "$as_me:$LINENO:" \
  1816. "checking for C++ compiler version" >&5
  1817. ac_compiler=`set X $ac_compile; echo $2`
  1818. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1819. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1820. ac_status=$?
  1821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1822. (exit $ac_status); }
  1823. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1824. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1825. ac_status=$?
  1826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1827. (exit $ac_status); }
  1828. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1829. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1830. ac_status=$?
  1831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1832. (exit $ac_status); }
  1833. cat >conftest.$ac_ext <<_ACEOF
  1834. /* confdefs.h. */
  1835. _ACEOF
  1836. cat confdefs.h >>conftest.$ac_ext
  1837. cat >>conftest.$ac_ext <<_ACEOF
  1838. /* end confdefs.h. */
  1839. int
  1840. main ()
  1841. {
  1842. ;
  1843. return 0;
  1844. }
  1845. _ACEOF
  1846. ac_clean_files_save=$ac_clean_files
  1847. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1848. # Try to create an executable without -o first, disregard a.out.
  1849. # It will help us diagnose broken compilers, and finding out an intuition
  1850. # of exeext.
  1851. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1852. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1853. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1854. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1855. (eval $ac_link_default) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; then
  1859. # Find the output, starting from the most likely. This scheme is
  1860. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1861. # resort.
  1862. # Be careful to initialize this variable, since it used to be cached.
  1863. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1864. ac_cv_exeext=
  1865. # b.out is created by i960 compilers.
  1866. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1867. do
  1868. test -f "$ac_file" || continue
  1869. case $ac_file in
  1870. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1871. ;;
  1872. conftest.$ac_ext )
  1873. # This is the source file.
  1874. ;;
  1875. [ab].out )
  1876. # We found the default executable, but exeext='' is most
  1877. # certainly right.
  1878. break;;
  1879. *.* )
  1880. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1881. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1882. # but it would be cool to find out if it's true. Does anybody
  1883. # maintain Libtool? --akim.
  1884. export ac_cv_exeext
  1885. break;;
  1886. * )
  1887. break;;
  1888. esac
  1889. done
  1890. else
  1891. echo "$as_me: failed program was:" >&5
  1892. sed 's/^/| /' conftest.$ac_ext >&5
  1893. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1894. See \`config.log' for more details." >&5
  1895. echo "$as_me: error: C++ compiler cannot create executables
  1896. See \`config.log' for more details." >&2;}
  1897. { (exit 77); exit 77; }; }
  1898. fi
  1899. ac_exeext=$ac_cv_exeext
  1900. echo "$as_me:$LINENO: result: $ac_file" >&5
  1901. echo "${ECHO_T}$ac_file" >&6
  1902. # Check the compiler produces executables we can run. If not, either
  1903. # the compiler is broken, or we cross compile.
  1904. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1905. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1906. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1907. # If not cross compiling, check that we can run a simple program.
  1908. if test "$cross_compiling" != yes; then
  1909. if { ac_try='./$ac_file'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. cross_compiling=no
  1916. else
  1917. if test "$cross_compiling" = maybe; then
  1918. cross_compiling=yes
  1919. else
  1920. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1921. If you meant to cross compile, use \`--host'.
  1922. See \`config.log' for more details." >&5
  1923. echo "$as_me: error: cannot run C++ compiled programs.
  1924. If you meant to cross compile, use \`--host'.
  1925. See \`config.log' for more details." >&2;}
  1926. { (exit 1); exit 1; }; }
  1927. fi
  1928. fi
  1929. fi
  1930. echo "$as_me:$LINENO: result: yes" >&5
  1931. echo "${ECHO_T}yes" >&6
  1932. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1933. ac_clean_files=$ac_clean_files_save
  1934. # Check the compiler produces executables we can run. If not, either
  1935. # the compiler is broken, or we cross compile.
  1936. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1937. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1938. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1939. echo "${ECHO_T}$cross_compiling" >&6
  1940. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1941. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1943. (eval $ac_link) 2>&5
  1944. ac_status=$?
  1945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1946. (exit $ac_status); }; then
  1947. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1948. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1949. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1950. # `rm'.
  1951. for ac_file in conftest.exe conftest conftest.*; do
  1952. test -f "$ac_file" || continue
  1953. case $ac_file in
  1954. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1955. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1956. export ac_cv_exeext
  1957. break;;
  1958. * ) break;;
  1959. esac
  1960. done
  1961. else
  1962. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1963. See \`config.log' for more details." >&5
  1964. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1965. See \`config.log' for more details." >&2;}
  1966. { (exit 1); exit 1; }; }
  1967. fi
  1968. rm -f conftest$ac_cv_exeext
  1969. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1970. echo "${ECHO_T}$ac_cv_exeext" >&6
  1971. rm -f conftest.$ac_ext
  1972. EXEEXT=$ac_cv_exeext
  1973. ac_exeext=$EXEEXT
  1974. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1975. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1976. if test "${ac_cv_objext+set}" = set; then
  1977. echo $ECHO_N "(cached) $ECHO_C" >&6
  1978. else
  1979. cat >conftest.$ac_ext <<_ACEOF
  1980. /* confdefs.h. */
  1981. _ACEOF
  1982. cat confdefs.h >>conftest.$ac_ext
  1983. cat >>conftest.$ac_ext <<_ACEOF
  1984. /* end confdefs.h. */
  1985. int
  1986. main ()
  1987. {
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. rm -f conftest.o conftest.obj
  1993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1994. (eval $ac_compile) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); }; then
  1998. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1999. case $ac_file in
  2000. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2001. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2002. break;;
  2003. esac
  2004. done
  2005. else
  2006. echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2009. See \`config.log' for more details." >&5
  2010. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2011. See \`config.log' for more details." >&2;}
  2012. { (exit 1); exit 1; }; }
  2013. fi
  2014. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2015. fi
  2016. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2017. echo "${ECHO_T}$ac_cv_objext" >&6
  2018. OBJEXT=$ac_cv_objext
  2019. ac_objext=$OBJEXT
  2020. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2021. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2022. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2023. echo $ECHO_N "(cached) $ECHO_C" >&6
  2024. else
  2025. cat >conftest.$ac_ext <<_ACEOF
  2026. /* confdefs.h. */
  2027. _ACEOF
  2028. cat confdefs.h >>conftest.$ac_ext
  2029. cat >>conftest.$ac_ext <<_ACEOF
  2030. /* end confdefs.h. */
  2031. int
  2032. main ()
  2033. {
  2034. #ifndef __GNUC__
  2035. choke me
  2036. #endif
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. rm -f conftest.$ac_objext
  2042. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2043. (eval $ac_compile) 2>conftest.er1
  2044. ac_status=$?
  2045. grep -v '^ *+' conftest.er1 >conftest.err
  2046. rm -f conftest.er1
  2047. cat conftest.err >&5
  2048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2049. (exit $ac_status); } &&
  2050. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2052. (eval $ac_try) 2>&5
  2053. ac_status=$?
  2054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2055. (exit $ac_status); }; } &&
  2056. { ac_try='test -s conftest.$ac_objext'
  2057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2058. (eval $ac_try) 2>&5
  2059. ac_status=$?
  2060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2061. (exit $ac_status); }; }; then
  2062. ac_compiler_gnu=yes
  2063. else
  2064. echo "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_compiler_gnu=no
  2067. fi
  2068. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2069. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2070. fi
  2071. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2072. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2073. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2074. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2075. ac_save_CXXFLAGS=$CXXFLAGS
  2076. CXXFLAGS="-g"
  2077. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2078. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2079. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2080. echo $ECHO_N "(cached) $ECHO_C" >&6
  2081. else
  2082. cat >conftest.$ac_ext <<_ACEOF
  2083. /* confdefs.h. */
  2084. _ACEOF
  2085. cat confdefs.h >>conftest.$ac_ext
  2086. cat >>conftest.$ac_ext <<_ACEOF
  2087. /* end confdefs.h. */
  2088. int
  2089. main ()
  2090. {
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. rm -f conftest.$ac_objext
  2096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2097. (eval $ac_compile) 2>conftest.er1
  2098. ac_status=$?
  2099. grep -v '^ *+' conftest.er1 >conftest.err
  2100. rm -f conftest.er1
  2101. cat conftest.err >&5
  2102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2103. (exit $ac_status); } &&
  2104. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2106. (eval $ac_try) 2>&5
  2107. ac_status=$?
  2108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2109. (exit $ac_status); }; } &&
  2110. { ac_try='test -s conftest.$ac_objext'
  2111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2112. (eval $ac_try) 2>&5
  2113. ac_status=$?
  2114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2115. (exit $ac_status); }; }; then
  2116. ac_cv_prog_cxx_g=yes
  2117. else
  2118. echo "$as_me: failed program was:" >&5
  2119. sed 's/^/| /' conftest.$ac_ext >&5
  2120. ac_cv_prog_cxx_g=no
  2121. fi
  2122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2125. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2126. if test "$ac_test_CXXFLAGS" = set; then
  2127. CXXFLAGS=$ac_save_CXXFLAGS
  2128. elif test $ac_cv_prog_cxx_g = yes; then
  2129. if test "$GXX" = yes; then
  2130. CXXFLAGS="-g -O2"
  2131. else
  2132. CXXFLAGS="-g"
  2133. fi
  2134. else
  2135. if test "$GXX" = yes; then
  2136. CXXFLAGS="-O2"
  2137. else
  2138. CXXFLAGS=
  2139. fi
  2140. fi
  2141. for ac_declaration in \
  2142. '' \
  2143. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2144. 'extern "C" void std::exit (int); using std::exit;' \
  2145. 'extern "C" void exit (int) throw ();' \
  2146. 'extern "C" void exit (int);' \
  2147. 'void exit (int);'
  2148. do
  2149. cat >conftest.$ac_ext <<_ACEOF
  2150. /* confdefs.h. */
  2151. _ACEOF
  2152. cat confdefs.h >>conftest.$ac_ext
  2153. cat >>conftest.$ac_ext <<_ACEOF
  2154. /* end confdefs.h. */
  2155. $ac_declaration
  2156. #include <stdlib.h>
  2157. int
  2158. main ()
  2159. {
  2160. exit (42);
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. rm -f conftest.$ac_objext
  2166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2167. (eval $ac_compile) 2>conftest.er1
  2168. ac_status=$?
  2169. grep -v '^ *+' conftest.er1 >conftest.err
  2170. rm -f conftest.er1
  2171. cat conftest.err >&5
  2172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2173. (exit $ac_status); } &&
  2174. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2176. (eval $ac_try) 2>&5
  2177. ac_status=$?
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); }; } &&
  2180. { ac_try='test -s conftest.$ac_objext'
  2181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2182. (eval $ac_try) 2>&5
  2183. ac_status=$?
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); }; }; then
  2186. :
  2187. else
  2188. echo "$as_me: failed program was:" >&5
  2189. sed 's/^/| /' conftest.$ac_ext >&5
  2190. continue
  2191. fi
  2192. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2193. cat >conftest.$ac_ext <<_ACEOF
  2194. /* confdefs.h. */
  2195. _ACEOF
  2196. cat confdefs.h >>conftest.$ac_ext
  2197. cat >>conftest.$ac_ext <<_ACEOF
  2198. /* end confdefs.h. */
  2199. $ac_declaration
  2200. int
  2201. main ()
  2202. {
  2203. exit (42);
  2204. ;
  2205. return 0;
  2206. }
  2207. _ACEOF
  2208. rm -f conftest.$ac_objext
  2209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2210. (eval $ac_compile) 2>conftest.er1
  2211. ac_status=$?
  2212. grep -v '^ *+' conftest.er1 >conftest.err
  2213. rm -f conftest.er1
  2214. cat conftest.err >&5
  2215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2216. (exit $ac_status); } &&
  2217. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2219. (eval $ac_try) 2>&5
  2220. ac_status=$?
  2221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2222. (exit $ac_status); }; } &&
  2223. { ac_try='test -s conftest.$ac_objext'
  2224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2225. (eval $ac_try) 2>&5
  2226. ac_status=$?
  2227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228. (exit $ac_status); }; }; then
  2229. break
  2230. else
  2231. echo "$as_me: failed program was:" >&5
  2232. sed 's/^/| /' conftest.$ac_ext >&5
  2233. fi
  2234. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2235. done
  2236. rm -f conftest*
  2237. if test -n "$ac_declaration"; then
  2238. echo '#ifdef __cplusplus' >>confdefs.h
  2239. echo $ac_declaration >>confdefs.h
  2240. echo '#endif' >>confdefs.h
  2241. fi
  2242. ac_ext=c
  2243. ac_cpp='$CPP $CPPFLAGS'
  2244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2247. DEPDIR="${am__leading_dot}deps"
  2248. ac_config_commands="$ac_config_commands depfiles"
  2249. am_make=${MAKE-make}
  2250. cat > confinc << 'END'
  2251. am__doit:
  2252. @echo done
  2253. .PHONY: am__doit
  2254. END
  2255. # If we don't find an include directive, just comment out the code.
  2256. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2257. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2258. am__include="#"
  2259. am__quote=
  2260. _am_result=none
  2261. # First try GNU make style include.
  2262. echo "include confinc" > confmf
  2263. # We grep out `Entering directory' and `Leaving directory'
  2264. # messages which can occur if `w' ends up in MAKEFLAGS.
  2265. # In particular we don't look at `^make:' because GNU make might
  2266. # be invoked under some other name (usually "gmake"), in which
  2267. # case it prints its new name instead of `make'.
  2268. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2269. am__include=include
  2270. am__quote=
  2271. _am_result=GNU
  2272. fi
  2273. # Now try BSD make style include.
  2274. if test "$am__include" = "#"; then
  2275. echo '.include "confinc"' > confmf
  2276. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2277. am__include=.include
  2278. am__quote="\""
  2279. _am_result=BSD
  2280. fi
  2281. fi
  2282. echo "$as_me:$LINENO: result: $_am_result" >&5
  2283. echo "${ECHO_T}$_am_result" >&6
  2284. rm -f confinc confmf
  2285. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2286. if test "${enable_dependency_tracking+set}" = set; then
  2287. enableval="$enable_dependency_tracking"
  2288. fi;
  2289. if test "x$enable_dependency_tracking" != xno; then
  2290. am_depcomp="$ac_aux_dir/depcomp"
  2291. AMDEPBACKSLASH='\'
  2292. fi
  2293. if test "x$enable_dependency_tracking" != xno; then
  2294. AMDEP_TRUE=
  2295. AMDEP_FALSE='#'
  2296. else
  2297. AMDEP_TRUE='#'
  2298. AMDEP_FALSE=
  2299. fi
  2300. depcc="$CXX" am_compiler_list=
  2301. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2302. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2303. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2304. echo $ECHO_N "(cached) $ECHO_C" >&6
  2305. else
  2306. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2307. # We make a subdir and do the tests there. Otherwise we can end up
  2308. # making bogus files that we don't know about and never remove. For
  2309. # instance it was reported that on HP-UX the gcc test will end up
  2310. # making a dummy file named `D' -- because `-MD' means `put the output
  2311. # in D'.
  2312. mkdir conftest.dir
  2313. # Copy depcomp to subdir because otherwise we won't find it if we're
  2314. # using a relative directory.
  2315. cp "$am_depcomp" conftest.dir
  2316. cd conftest.dir
  2317. # We will build objects and dependencies in a subdirectory because
  2318. # it helps to detect inapplicable dependency modes. For instance
  2319. # both Tru64's cc and ICC support -MD to output dependencies as a
  2320. # side effect of compilation, but ICC will put the dependencies in
  2321. # the current directory while Tru64 will put them in the object
  2322. # directory.
  2323. mkdir sub
  2324. am_cv_CXX_dependencies_compiler_type=none
  2325. if test "$am_compiler_list" = ""; then
  2326. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2327. fi
  2328. for depmode in $am_compiler_list; do
  2329. # Setup a source with many dependencies, because some compilers
  2330. # like to wrap large dependency lists on column 80 (with \), and
  2331. # we should not choose a depcomp mode which is confused by this.
  2332. #
  2333. # We need to recreate these files for each test, as the compiler may
  2334. # overwrite some of them when testing with obscure command lines.
  2335. # This happens at least with the AIX C compiler.
  2336. : > sub/conftest.c
  2337. for i in 1 2 3 4 5 6; do
  2338. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2339. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2340. # Solaris 8's {/usr,}/bin/sh.
  2341. touch sub/conftst$i.h
  2342. done
  2343. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2344. case $depmode in
  2345. nosideeffect)
  2346. # after this tag, mechanisms are not by side-effect, so they'll
  2347. # only be used when explicitly requested
  2348. if test "x$enable_dependency_tracking" = xyes; then
  2349. continue
  2350. else
  2351. break
  2352. fi
  2353. ;;
  2354. none) break ;;
  2355. esac
  2356. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2357. # mode. It turns out that the SunPro C++ compiler does not properly
  2358. # handle `-M -o', and we need to detect this.
  2359. if depmode=$depmode \
  2360. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2361. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2362. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2363. >/dev/null 2>conftest.err &&
  2364. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2365. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2366. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2367. # icc doesn't choke on unknown options, it will just issue warnings
  2368. # or remarks (even with -Werror). So we grep stderr for any message
  2369. # that says an option was ignored or not supported.
  2370. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2371. # icc: Command line warning: ignoring option '-M'; no argument required
  2372. # The diagnosis changed in icc 8.0:
  2373. # icc: Command line remark: option '-MP' not supported
  2374. if (grep 'ignoring option' conftest.err ||
  2375. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2376. am_cv_CXX_dependencies_compiler_type=$depmode
  2377. break
  2378. fi
  2379. fi
  2380. done
  2381. cd ..
  2382. rm -rf conftest.dir
  2383. else
  2384. am_cv_CXX_dependencies_compiler_type=none
  2385. fi
  2386. fi
  2387. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2388. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2389. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2390. if
  2391. test "x$enable_dependency_tracking" != xno \
  2392. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2393. am__fastdepCXX_TRUE=
  2394. am__fastdepCXX_FALSE='#'
  2395. else
  2396. am__fastdepCXX_TRUE='#'
  2397. am__fastdepCXX_FALSE=
  2398. fi
  2399. ac_ext=c
  2400. ac_cpp='$CPP $CPPFLAGS'
  2401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2404. if test -n "$ac_tool_prefix"; then
  2405. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2406. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2409. if test "${ac_cv_prog_CC+set}" = set; then
  2410. echo $ECHO_N "(cached) $ECHO_C" >&6
  2411. else
  2412. if test -n "$CC"; then
  2413. ac_cv_prog_CC="$CC" # Let the user override the test.
  2414. else
  2415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2416. for as_dir in $PATH
  2417. do
  2418. IFS=$as_save_IFS
  2419. test -z "$as_dir" && as_dir=.
  2420. for ac_exec_ext in '' $ac_executable_extensions; do
  2421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2422. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2424. break 2
  2425. fi
  2426. done
  2427. done
  2428. fi
  2429. fi
  2430. CC=$ac_cv_prog_CC
  2431. if test -n "$CC"; then
  2432. echo "$as_me:$LINENO: result: $CC" >&5
  2433. echo "${ECHO_T}$CC" >&6
  2434. else
  2435. echo "$as_me:$LINENO: result: no" >&5
  2436. echo "${ECHO_T}no" >&6
  2437. fi
  2438. fi
  2439. if test -z "$ac_cv_prog_CC"; then
  2440. ac_ct_CC=$CC
  2441. # Extract the first word of "gcc", so it can be a program name with args.
  2442. set dummy gcc; ac_word=$2
  2443. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2444. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2445. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2446. echo $ECHO_N "(cached) $ECHO_C" >&6
  2447. else
  2448. if test -n "$ac_ct_CC"; then
  2449. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2458. ac_cv_prog_ac_ct_CC="gcc"
  2459. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. fi
  2465. fi
  2466. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2467. if test -n "$ac_ct_CC"; then
  2468. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2469. echo "${ECHO_T}$ac_ct_CC" >&6
  2470. else
  2471. echo "$as_me:$LINENO: result: no" >&5
  2472. echo "${ECHO_T}no" >&6
  2473. fi
  2474. CC=$ac_ct_CC
  2475. else
  2476. CC="$ac_cv_prog_CC"
  2477. fi
  2478. if test -z "$CC"; then
  2479. if test -n "$ac_tool_prefix"; then
  2480. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2481. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2482. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2484. if test "${ac_cv_prog_CC+set}" = set; then
  2485. echo $ECHO_N "(cached) $ECHO_C" >&6
  2486. else
  2487. if test -n "$CC"; then
  2488. ac_cv_prog_CC="$CC" # Let the user override the test.
  2489. else
  2490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2491. for as_dir in $PATH
  2492. do
  2493. IFS=$as_save_IFS
  2494. test -z "$as_dir" && as_dir=.
  2495. for ac_exec_ext in '' $ac_executable_extensions; do
  2496. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2497. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2498. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2499. break 2
  2500. fi
  2501. done
  2502. done
  2503. fi
  2504. fi
  2505. CC=$ac_cv_prog_CC
  2506. if test -n "$CC"; then
  2507. echo "$as_me:$LINENO: result: $CC" >&5
  2508. echo "${ECHO_T}$CC" >&6
  2509. else
  2510. echo "$as_me:$LINENO: result: no" >&5
  2511. echo "${ECHO_T}no" >&6
  2512. fi
  2513. fi
  2514. if test -z "$ac_cv_prog_CC"; then
  2515. ac_ct_CC=$CC
  2516. # Extract the first word of "cc", so it can be a program name with args.
  2517. set dummy cc; ac_word=$2
  2518. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2520. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2521. echo $ECHO_N "(cached) $ECHO_C" >&6
  2522. else
  2523. if test -n "$ac_ct_CC"; then
  2524. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. test -z "$as_dir" && as_dir=.
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2533. ac_cv_prog_ac_ct_CC="cc"
  2534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2535. break 2
  2536. fi
  2537. done
  2538. done
  2539. fi
  2540. fi
  2541. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2542. if test -n "$ac_ct_CC"; then
  2543. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2544. echo "${ECHO_T}$ac_ct_CC" >&6
  2545. else
  2546. echo "$as_me:$LINENO: result: no" >&5
  2547. echo "${ECHO_T}no" >&6
  2548. fi
  2549. CC=$ac_ct_CC
  2550. else
  2551. CC="$ac_cv_prog_CC"
  2552. fi
  2553. fi
  2554. if test -z "$CC"; then
  2555. # Extract the first word of "cc", so it can be a program name with args.
  2556. set dummy cc; ac_word=$2
  2557. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2558. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2559. if test "${ac_cv_prog_CC+set}" = set; then
  2560. echo $ECHO_N "(cached) $ECHO_C" >&6
  2561. else
  2562. if test -n "$CC"; then
  2563. ac_cv_prog_CC="$CC" # Let the user override the test.
  2564. else
  2565. ac_prog_rejected=no
  2566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2567. for as_dir in $PATH
  2568. do
  2569. IFS=$as_save_IFS
  2570. test -z "$as_dir" && as_dir=.
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2573. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2574. ac_prog_rejected=yes
  2575. continue
  2576. fi
  2577. ac_cv_prog_CC="cc"
  2578. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2579. break 2
  2580. fi
  2581. done
  2582. done
  2583. if test $ac_prog_rejected = yes; then
  2584. # We found a bogon in the path, so make sure we never use it.
  2585. set dummy $ac_cv_prog_CC
  2586. shift
  2587. if test $# != 0; then
  2588. # We chose a different compiler from the bogus one.
  2589. # However, it has the same basename, so the bogon will be chosen
  2590. # first if we set CC to just the basename; use the full file name.
  2591. shift
  2592. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2593. fi
  2594. fi
  2595. fi
  2596. fi
  2597. CC=$ac_cv_prog_CC
  2598. if test -n "$CC"; then
  2599. echo "$as_me:$LINENO: result: $CC" >&5
  2600. echo "${ECHO_T}$CC" >&6
  2601. else
  2602. echo "$as_me:$LINENO: result: no" >&5
  2603. echo "${ECHO_T}no" >&6
  2604. fi
  2605. fi
  2606. if test -z "$CC"; then
  2607. if test -n "$ac_tool_prefix"; then
  2608. for ac_prog in cl
  2609. do
  2610. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2611. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2612. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2614. if test "${ac_cv_prog_CC+set}" = set; then
  2615. echo $ECHO_N "(cached) $ECHO_C" >&6
  2616. else
  2617. if test -n "$CC"; then
  2618. ac_cv_prog_CC="$CC" # Let the user override the test.
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2627. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2629. break 2
  2630. fi
  2631. done
  2632. done
  2633. fi
  2634. fi
  2635. CC=$ac_cv_prog_CC
  2636. if test -n "$CC"; then
  2637. echo "$as_me:$LINENO: result: $CC" >&5
  2638. echo "${ECHO_T}$CC" >&6
  2639. else
  2640. echo "$as_me:$LINENO: result: no" >&5
  2641. echo "${ECHO_T}no" >&6
  2642. fi
  2643. test -n "$CC" && break
  2644. done
  2645. fi
  2646. if test -z "$CC"; then
  2647. ac_ct_CC=$CC
  2648. for ac_prog in cl
  2649. do
  2650. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2651. set dummy $ac_prog; ac_word=$2
  2652. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2653. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2654. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2655. echo $ECHO_N "(cached) $ECHO_C" >&6
  2656. else
  2657. if test -n "$ac_ct_CC"; then
  2658. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2659. else
  2660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2661. for as_dir in $PATH
  2662. do
  2663. IFS=$as_save_IFS
  2664. test -z "$as_dir" && as_dir=.
  2665. for ac_exec_ext in '' $ac_executable_extensions; do
  2666. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2667. ac_cv_prog_ac_ct_CC="$ac_prog"
  2668. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2669. break 2
  2670. fi
  2671. done
  2672. done
  2673. fi
  2674. fi
  2675. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2676. if test -n "$ac_ct_CC"; then
  2677. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2678. echo "${ECHO_T}$ac_ct_CC" >&6
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. test -n "$ac_ct_CC" && break
  2684. done
  2685. CC=$ac_ct_CC
  2686. fi
  2687. fi
  2688. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2689. See \`config.log' for more details." >&5
  2690. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2691. See \`config.log' for more details." >&2;}
  2692. { (exit 1); exit 1; }; }
  2693. # Provide some information about the compiler.
  2694. echo "$as_me:$LINENO:" \
  2695. "checking for C compiler version" >&5
  2696. ac_compiler=`set X $ac_compile; echo $2`
  2697. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2698. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2699. ac_status=$?
  2700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2701. (exit $ac_status); }
  2702. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2703. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }
  2707. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2708. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2709. ac_status=$?
  2710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }
  2712. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2713. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2714. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2715. echo $ECHO_N "(cached) $ECHO_C" >&6
  2716. else
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. /* confdefs.h. */
  2719. _ACEOF
  2720. cat confdefs.h >>conftest.$ac_ext
  2721. cat >>conftest.$ac_ext <<_ACEOF
  2722. /* end confdefs.h. */
  2723. int
  2724. main ()
  2725. {
  2726. #ifndef __GNUC__
  2727. choke me
  2728. #endif
  2729. ;
  2730. return 0;
  2731. }
  2732. _ACEOF
  2733. rm -f conftest.$ac_objext
  2734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2735. (eval $ac_compile) 2>conftest.er1
  2736. ac_status=$?
  2737. grep -v '^ *+' conftest.er1 >conftest.err
  2738. rm -f conftest.er1
  2739. cat conftest.err >&5
  2740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); } &&
  2742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2744. (eval $ac_try) 2>&5
  2745. ac_status=$?
  2746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2747. (exit $ac_status); }; } &&
  2748. { ac_try='test -s conftest.$ac_objext'
  2749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2750. (eval $ac_try) 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }; }; then
  2754. ac_compiler_gnu=yes
  2755. else
  2756. echo "$as_me: failed program was:" >&5
  2757. sed 's/^/| /' conftest.$ac_ext >&5
  2758. ac_compiler_gnu=no
  2759. fi
  2760. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2761. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2762. fi
  2763. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2764. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2765. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2766. ac_test_CFLAGS=${CFLAGS+set}
  2767. ac_save_CFLAGS=$CFLAGS
  2768. CFLAGS="-g"
  2769. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2770. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2771. if test "${ac_cv_prog_cc_g+set}" = set; then
  2772. echo $ECHO_N "(cached) $ECHO_C" >&6
  2773. else
  2774. cat >conftest.$ac_ext <<_ACEOF
  2775. /* confdefs.h. */
  2776. _ACEOF
  2777. cat confdefs.h >>conftest.$ac_ext
  2778. cat >>conftest.$ac_ext <<_ACEOF
  2779. /* end confdefs.h. */
  2780. int
  2781. main ()
  2782. {
  2783. ;
  2784. return 0;
  2785. }
  2786. _ACEOF
  2787. rm -f conftest.$ac_objext
  2788. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2789. (eval $ac_compile) 2>conftest.er1
  2790. ac_status=$?
  2791. grep -v '^ *+' conftest.er1 >conftest.err
  2792. rm -f conftest.er1
  2793. cat conftest.err >&5
  2794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); } &&
  2796. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2798. (eval $ac_try) 2>&5
  2799. ac_status=$?
  2800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. (exit $ac_status); }; } &&
  2802. { ac_try='test -s conftest.$ac_objext'
  2803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2804. (eval $ac_try) 2>&5
  2805. ac_status=$?
  2806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807. (exit $ac_status); }; }; then
  2808. ac_cv_prog_cc_g=yes
  2809. else
  2810. echo "$as_me: failed program was:" >&5
  2811. sed 's/^/| /' conftest.$ac_ext >&5
  2812. ac_cv_prog_cc_g=no
  2813. fi
  2814. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2815. fi
  2816. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2817. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2818. if test "$ac_test_CFLAGS" = set; then
  2819. CFLAGS=$ac_save_CFLAGS
  2820. elif test $ac_cv_prog_cc_g = yes; then
  2821. if test "$GCC" = yes; then
  2822. CFLAGS="-g -O2"
  2823. else
  2824. CFLAGS="-g"
  2825. fi
  2826. else
  2827. if test "$GCC" = yes; then
  2828. CFLAGS="-O2"
  2829. else
  2830. CFLAGS=
  2831. fi
  2832. fi
  2833. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2834. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2835. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_cv_prog_cc_stdc=no
  2839. ac_save_CC=$CC
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. #include <stdarg.h>
  2847. #include <stdio.h>
  2848. #include <sys/types.h>
  2849. #include <sys/stat.h>
  2850. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2851. struct buf { int x; };
  2852. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2853. static char *e (p, i)
  2854. char **p;
  2855. int i;
  2856. {
  2857. return p[i];
  2858. }
  2859. static char *f (char * (*g) (char **, int), char **p, ...)
  2860. {
  2861. char *s;
  2862. va_list v;
  2863. va_start (v,p);
  2864. s = g (p, va_arg (v,int));
  2865. va_end (v);
  2866. return s;
  2867. }
  2868. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2869. function prototypes and stuff, but not '\xHH' hex character constants.
  2870. These don't provoke an error unfortunately, instead are silently treated
  2871. as 'x'. The following induces an error, until -std1 is added to get
  2872. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2873. array size at least. It's necessary to write '\x00'==0 to get something
  2874. that's true only with -std1. */
  2875. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2876. int test (int i, double x);
  2877. struct s1 {int (*f) (int a);};
  2878. struct s2 {int (*f) (double a);};
  2879. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2880. int argc;
  2881. char **argv;
  2882. int
  2883. main ()
  2884. {
  2885. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2886. ;
  2887. return 0;
  2888. }
  2889. _ACEOF
  2890. # Don't try gcc -ansi; that turns off useful extensions and
  2891. # breaks some systems' header files.
  2892. # AIX -qlanglvl=ansi
  2893. # Ultrix and OSF/1 -std1
  2894. # HP-UX 10.20 and later -Ae
  2895. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2896. # SVR4 -Xc -D__EXTENSIONS__
  2897. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2898. do
  2899. CC="$ac_save_CC $ac_arg"
  2900. rm -f conftest.$ac_objext
  2901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2902. (eval $ac_compile) 2>conftest.er1
  2903. ac_status=$?
  2904. grep -v '^ *+' conftest.er1 >conftest.err
  2905. rm -f conftest.er1
  2906. cat conftest.err >&5
  2907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2908. (exit $ac_status); } &&
  2909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2911. (eval $ac_try) 2>&5
  2912. ac_status=$?
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); }; } &&
  2915. { ac_try='test -s conftest.$ac_objext'
  2916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2917. (eval $ac_try) 2>&5
  2918. ac_status=$?
  2919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2920. (exit $ac_status); }; }; then
  2921. ac_cv_prog_cc_stdc=$ac_arg
  2922. break
  2923. else
  2924. echo "$as_me: failed program was:" >&5
  2925. sed 's/^/| /' conftest.$ac_ext >&5
  2926. fi
  2927. rm -f conftest.err conftest.$ac_objext
  2928. done
  2929. rm -f conftest.$ac_ext conftest.$ac_objext
  2930. CC=$ac_save_CC
  2931. fi
  2932. case "x$ac_cv_prog_cc_stdc" in
  2933. x|xno)
  2934. echo "$as_me:$LINENO: result: none needed" >&5
  2935. echo "${ECHO_T}none needed" >&6 ;;
  2936. *)
  2937. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2938. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2939. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2940. esac
  2941. # Some people use a C++ compiler to compile C. Since we use `exit',
  2942. # in C++ we need to declare it. In case someone uses the same compiler
  2943. # for both compiling C and C++ we need to have the C++ compiler decide
  2944. # the declaration of exit, since it's the most demanding environment.
  2945. cat >conftest.$ac_ext <<_ACEOF
  2946. #ifndef __cplusplus
  2947. choke me
  2948. #endif
  2949. _ACEOF
  2950. rm -f conftest.$ac_objext
  2951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2952. (eval $ac_compile) 2>conftest.er1
  2953. ac_status=$?
  2954. grep -v '^ *+' conftest.er1 >conftest.err
  2955. rm -f conftest.er1
  2956. cat conftest.err >&5
  2957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2958. (exit $ac_status); } &&
  2959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2961. (eval $ac_try) 2>&5
  2962. ac_status=$?
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); }; } &&
  2965. { ac_try='test -s conftest.$ac_objext'
  2966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2967. (eval $ac_try) 2>&5
  2968. ac_status=$?
  2969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2970. (exit $ac_status); }; }; then
  2971. for ac_declaration in \
  2972. '' \
  2973. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2974. 'extern "C" void std::exit (int); using std::exit;' \
  2975. 'extern "C" void exit (int) throw ();' \
  2976. 'extern "C" void exit (int);' \
  2977. 'void exit (int);'
  2978. do
  2979. cat >conftest.$ac_ext <<_ACEOF
  2980. /* confdefs.h. */
  2981. _ACEOF
  2982. cat confdefs.h >>conftest.$ac_ext
  2983. cat >>conftest.$ac_ext <<_ACEOF
  2984. /* end confdefs.h. */
  2985. $ac_declaration
  2986. #include <stdlib.h>
  2987. int
  2988. main ()
  2989. {
  2990. exit (42);
  2991. ;
  2992. return 0;
  2993. }
  2994. _ACEOF
  2995. rm -f conftest.$ac_objext
  2996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2997. (eval $ac_compile) 2>conftest.er1
  2998. ac_status=$?
  2999. grep -v '^ *+' conftest.er1 >conftest.err
  3000. rm -f conftest.er1
  3001. cat conftest.err >&5
  3002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3003. (exit $ac_status); } &&
  3004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3006. (eval $ac_try) 2>&5
  3007. ac_status=$?
  3008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3009. (exit $ac_status); }; } &&
  3010. { ac_try='test -s conftest.$ac_objext'
  3011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3012. (eval $ac_try) 2>&5
  3013. ac_status=$?
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); }; }; then
  3016. :
  3017. else
  3018. echo "$as_me: failed program was:" >&5
  3019. sed 's/^/| /' conftest.$ac_ext >&5
  3020. continue
  3021. fi
  3022. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3023. cat >conftest.$ac_ext <<_ACEOF
  3024. /* confdefs.h. */
  3025. _ACEOF
  3026. cat confdefs.h >>conftest.$ac_ext
  3027. cat >>conftest.$ac_ext <<_ACEOF
  3028. /* end confdefs.h. */
  3029. $ac_declaration
  3030. int
  3031. main ()
  3032. {
  3033. exit (42);
  3034. ;
  3035. return 0;
  3036. }
  3037. _ACEOF
  3038. rm -f conftest.$ac_objext
  3039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3040. (eval $ac_compile) 2>conftest.er1
  3041. ac_status=$?
  3042. grep -v '^ *+' conftest.er1 >conftest.err
  3043. rm -f conftest.er1
  3044. cat conftest.err >&5
  3045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3046. (exit $ac_status); } &&
  3047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3049. (eval $ac_try) 2>&5
  3050. ac_status=$?
  3051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3052. (exit $ac_status); }; } &&
  3053. { ac_try='test -s conftest.$ac_objext'
  3054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3055. (eval $ac_try) 2>&5
  3056. ac_status=$?
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); }; }; then
  3059. break
  3060. else
  3061. echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. fi
  3064. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3065. done
  3066. rm -f conftest*
  3067. if test -n "$ac_declaration"; then
  3068. echo '#ifdef __cplusplus' >>confdefs.h
  3069. echo $ac_declaration >>confdefs.h
  3070. echo '#endif' >>confdefs.h
  3071. fi
  3072. else
  3073. echo "$as_me: failed program was:" >&5
  3074. sed 's/^/| /' conftest.$ac_ext >&5
  3075. fi
  3076. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3077. ac_ext=c
  3078. ac_cpp='$CPP $CPPFLAGS'
  3079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3082. depcc="$CC" am_compiler_list=
  3083. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3084. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3085. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3086. echo $ECHO_N "(cached) $ECHO_C" >&6
  3087. else
  3088. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3089. # We make a subdir and do the tests there. Otherwise we can end up
  3090. # making bogus files that we don't know about and never remove. For
  3091. # instance it was reported that on HP-UX the gcc test will end up
  3092. # making a dummy file named `D' -- because `-MD' means `put the output
  3093. # in D'.
  3094. mkdir conftest.dir
  3095. # Copy depcomp to subdir because otherwise we won't find it if we're
  3096. # using a relative directory.
  3097. cp "$am_depcomp" conftest.dir
  3098. cd conftest.dir
  3099. # We will build objects and dependencies in a subdirectory because
  3100. # it helps to detect inapplicable dependency modes. For instance
  3101. # both Tru64's cc and ICC support -MD to output dependencies as a
  3102. # side effect of compilation, but ICC will put the dependencies in
  3103. # the current directory while Tru64 will put them in the object
  3104. # directory.
  3105. mkdir sub
  3106. am_cv_CC_dependencies_compiler_type=none
  3107. if test "$am_compiler_list" = ""; then
  3108. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3109. fi
  3110. for depmode in $am_compiler_list; do
  3111. # Setup a source with many dependencies, because some compilers
  3112. # like to wrap large dependency lists on column 80 (with \), and
  3113. # we should not choose a depcomp mode which is confused by this.
  3114. #
  3115. # We need to recreate these files for each test, as the compiler may
  3116. # overwrite some of them when testing with obscure command lines.
  3117. # This happens at least with the AIX C compiler.
  3118. : > sub/conftest.c
  3119. for i in 1 2 3 4 5 6; do
  3120. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3121. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3122. # Solaris 8's {/usr,}/bin/sh.
  3123. touch sub/conftst$i.h
  3124. done
  3125. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3126. case $depmode in
  3127. nosideeffect)
  3128. # after this tag, mechanisms are not by side-effect, so they'll
  3129. # only be used when explicitly requested
  3130. if test "x$enable_dependency_tracking" = xyes; then
  3131. continue
  3132. else
  3133. break
  3134. fi
  3135. ;;
  3136. none) break ;;
  3137. esac
  3138. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3139. # mode. It turns out that the SunPro C++ compiler does not properly
  3140. # handle `-M -o', and we need to detect this.
  3141. if depmode=$depmode \
  3142. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3143. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3144. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3145. >/dev/null 2>conftest.err &&
  3146. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3147. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3148. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3149. # icc doesn't choke on unknown options, it will just issue warnings
  3150. # or remarks (even with -Werror). So we grep stderr for any message
  3151. # that says an option was ignored or not supported.
  3152. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3153. # icc: Command line warning: ignoring option '-M'; no argument required
  3154. # The diagnosis changed in icc 8.0:
  3155. # icc: Command line remark: option '-MP' not supported
  3156. if (grep 'ignoring option' conftest.err ||
  3157. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3158. am_cv_CC_dependencies_compiler_type=$depmode
  3159. break
  3160. fi
  3161. fi
  3162. done
  3163. cd ..
  3164. rm -rf conftest.dir
  3165. else
  3166. am_cv_CC_dependencies_compiler_type=none
  3167. fi
  3168. fi
  3169. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3170. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3171. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3172. if
  3173. test "x$enable_dependency_tracking" != xno \
  3174. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3175. am__fastdepCC_TRUE=
  3176. am__fastdepCC_FALSE='#'
  3177. else
  3178. am__fastdepCC_TRUE='#'
  3179. am__fastdepCC_FALSE=
  3180. fi
  3181. if test -n "$ac_tool_prefix"; then
  3182. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3183. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3184. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3185. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3186. if test "${ac_cv_prog_AR+set}" = set; then
  3187. echo $ECHO_N "(cached) $ECHO_C" >&6
  3188. else
  3189. if test -n "$AR"; then
  3190. ac_cv_prog_AR="$AR" # Let the user override the test.
  3191. else
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. as_dummy="$PATH:/usr/ccs/bin"
  3194. for as_dir in $as_dummy
  3195. do
  3196. IFS=$as_save_IFS
  3197. test -z "$as_dir" && as_dir=.
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3200. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3201. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. fi
  3207. fi
  3208. AR=$ac_cv_prog_AR
  3209. if test -n "$AR"; then
  3210. echo "$as_me:$LINENO: result: $AR" >&5
  3211. echo "${ECHO_T}$AR" >&6
  3212. else
  3213. echo "$as_me:$LINENO: result: no" >&5
  3214. echo "${ECHO_T}no" >&6
  3215. fi
  3216. fi
  3217. if test -z "$ac_cv_prog_AR"; then
  3218. ac_ct_AR=$AR
  3219. # Extract the first word of "ar", so it can be a program name with args.
  3220. set dummy ar; ac_word=$2
  3221. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3222. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3223. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3224. echo $ECHO_N "(cached) $ECHO_C" >&6
  3225. else
  3226. if test -n "$ac_ct_AR"; then
  3227. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3228. else
  3229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3230. as_dummy="$PATH:/usr/ccs/bin"
  3231. for as_dir in $as_dummy
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_exec_ext in '' $ac_executable_extensions; do
  3236. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3237. ac_cv_prog_ac_ct_AR="ar"
  3238. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239. break 2
  3240. fi
  3241. done
  3242. done
  3243. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
  3244. fi
  3245. fi
  3246. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3247. if test -n "$ac_ct_AR"; then
  3248. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3249. echo "${ECHO_T}$ac_ct_AR" >&6
  3250. else
  3251. echo "$as_me:$LINENO: result: no" >&5
  3252. echo "${ECHO_T}no" >&6
  3253. fi
  3254. AR=$ac_ct_AR
  3255. else
  3256. AR="$ac_cv_prog_AR"
  3257. fi
  3258. # Checks for libraries.
  3259. if test "x$enable_ssl" = "xyes"; then
  3260. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  3261. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  3262. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  3263. echo $ECHO_N "(cached) $ECHO_C" >&6
  3264. else
  3265. ac_check_lib_save_LIBS=$LIBS
  3266. LIBS="-lssl $LIBS"
  3267. cat >conftest.$ac_ext <<_ACEOF
  3268. /* confdefs.h. */
  3269. _ACEOF
  3270. cat confdefs.h >>conftest.$ac_ext
  3271. cat >>conftest.$ac_ext <<_ACEOF
  3272. /* end confdefs.h. */
  3273. /* Override any gcc2 internal prototype to avoid an error. */
  3274. #ifdef __cplusplus
  3275. extern "C"
  3276. #endif
  3277. /* We use char because int might match the return type of a gcc2
  3278. builtin and then its argument prototype would still apply. */
  3279. char SSL_library_init ();
  3280. int
  3281. main ()
  3282. {
  3283. SSL_library_init ();
  3284. ;
  3285. return 0;
  3286. }
  3287. _ACEOF
  3288. rm -f conftest.$ac_objext conftest$ac_exeext
  3289. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3290. (eval $ac_link) 2>conftest.er1
  3291. ac_status=$?
  3292. grep -v '^ *+' conftest.er1 >conftest.err
  3293. rm -f conftest.er1
  3294. cat conftest.err >&5
  3295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3296. (exit $ac_status); } &&
  3297. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3299. (eval $ac_try) 2>&5
  3300. ac_status=$?
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); }; } &&
  3303. { ac_try='test -s conftest$ac_exeext'
  3304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3305. (eval $ac_try) 2>&5
  3306. ac_status=$?
  3307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3308. (exit $ac_status); }; }; then
  3309. ac_cv_lib_ssl_SSL_library_init=yes
  3310. else
  3311. echo "$as_me: failed program was:" >&5
  3312. sed 's/^/| /' conftest.$ac_ext >&5
  3313. ac_cv_lib_ssl_SSL_library_init=no
  3314. fi
  3315. rm -f conftest.err conftest.$ac_objext \
  3316. conftest$ac_exeext conftest.$ac_ext
  3317. LIBS=$ac_check_lib_save_LIBS
  3318. fi
  3319. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  3320. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  3321. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  3322. cat >>confdefs.h <<_ACEOF
  3323. #define HAVE_LIBSSL 1
  3324. _ACEOF
  3325. LIBS="-lssl $LIBS"
  3326. fi
  3327. fi
  3328. # Checks for header files.
  3329. ac_ext=c
  3330. ac_cpp='$CPP $CPPFLAGS'
  3331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3334. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3335. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3336. # On Suns, sometimes $CPP names a directory.
  3337. if test -n "$CPP" && test -d "$CPP"; then
  3338. CPP=
  3339. fi
  3340. if test -z "$CPP"; then
  3341. if test "${ac_cv_prog_CPP+set}" = set; then
  3342. echo $ECHO_N "(cached) $ECHO_C" >&6
  3343. else
  3344. # Double quotes because CPP needs to be expanded
  3345. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3346. do
  3347. ac_preproc_ok=false
  3348. for ac_c_preproc_warn_flag in '' yes
  3349. do
  3350. # Use a header file that comes with gcc, so configuring glibc
  3351. # with a fresh cross-compiler works.
  3352. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3353. # <limits.h> exists even on freestanding compilers.
  3354. # On the NeXT, cc -E runs the code through the compiler's parser,
  3355. # not just through cpp. "Syntax error" is here to catch this case.
  3356. cat >conftest.$ac_ext <<_ACEOF
  3357. /* confdefs.h. */
  3358. _ACEOF
  3359. cat confdefs.h >>conftest.$ac_ext
  3360. cat >>conftest.$ac_ext <<_ACEOF
  3361. /* end confdefs.h. */
  3362. #ifdef __STDC__
  3363. # include <limits.h>
  3364. #else
  3365. # include <assert.h>
  3366. #endif
  3367. Syntax error
  3368. _ACEOF
  3369. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3370. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3371. ac_status=$?
  3372. grep -v '^ *+' conftest.er1 >conftest.err
  3373. rm -f conftest.er1
  3374. cat conftest.err >&5
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); } >/dev/null; then
  3377. if test -s conftest.err; then
  3378. ac_cpp_err=$ac_c_preproc_warn_flag
  3379. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3380. else
  3381. ac_cpp_err=
  3382. fi
  3383. else
  3384. ac_cpp_err=yes
  3385. fi
  3386. if test -z "$ac_cpp_err"; then
  3387. :
  3388. else
  3389. echo "$as_me: failed program was:" >&5
  3390. sed 's/^/| /' conftest.$ac_ext >&5
  3391. # Broken: fails on valid input.
  3392. continue
  3393. fi
  3394. rm -f conftest.err conftest.$ac_ext
  3395. # OK, works on sane cases. Now check whether non-existent headers
  3396. # can be detected and how.
  3397. cat >conftest.$ac_ext <<_ACEOF
  3398. /* confdefs.h. */
  3399. _ACEOF
  3400. cat confdefs.h >>conftest.$ac_ext
  3401. cat >>conftest.$ac_ext <<_ACEOF
  3402. /* end confdefs.h. */
  3403. #include <ac_nonexistent.h>
  3404. _ACEOF
  3405. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3406. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3407. ac_status=$?
  3408. grep -v '^ *+' conftest.er1 >conftest.err
  3409. rm -f conftest.er1
  3410. cat conftest.err >&5
  3411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3412. (exit $ac_status); } >/dev/null; then
  3413. if test -s conftest.err; then
  3414. ac_cpp_err=$ac_c_preproc_warn_flag
  3415. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3416. else
  3417. ac_cpp_err=
  3418. fi
  3419. else
  3420. ac_cpp_err=yes
  3421. fi
  3422. if test -z "$ac_cpp_err"; then
  3423. # Broken: success on invalid input.
  3424. continue
  3425. else
  3426. echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. # Passes both tests.
  3429. ac_preproc_ok=:
  3430. break
  3431. fi
  3432. rm -f conftest.err conftest.$ac_ext
  3433. done
  3434. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3435. rm -f conftest.err conftest.$ac_ext
  3436. if $ac_preproc_ok; then
  3437. break
  3438. fi
  3439. done
  3440. ac_cv_prog_CPP=$CPP
  3441. fi
  3442. CPP=$ac_cv_prog_CPP
  3443. else
  3444. ac_cv_prog_CPP=$CPP
  3445. fi
  3446. echo "$as_me:$LINENO: result: $CPP" >&5
  3447. echo "${ECHO_T}$CPP" >&6
  3448. ac_preproc_ok=false
  3449. for ac_c_preproc_warn_flag in '' yes
  3450. do
  3451. # Use a header file that comes with gcc, so configuring glibc
  3452. # with a fresh cross-compiler works.
  3453. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3454. # <limits.h> exists even on freestanding compilers.
  3455. # On the NeXT, cc -E runs the code through the compiler's parser,
  3456. # not just through cpp. "Syntax error" is here to catch this case.
  3457. cat >conftest.$ac_ext <<_ACEOF
  3458. /* confdefs.h. */
  3459. _ACEOF
  3460. cat confdefs.h >>conftest.$ac_ext
  3461. cat >>conftest.$ac_ext <<_ACEOF
  3462. /* end confdefs.h. */
  3463. #ifdef __STDC__
  3464. # include <limits.h>
  3465. #else
  3466. # include <assert.h>
  3467. #endif
  3468. Syntax error
  3469. _ACEOF
  3470. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3471. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3472. ac_status=$?
  3473. grep -v '^ *+' conftest.er1 >conftest.err
  3474. rm -f conftest.er1
  3475. cat conftest.err >&5
  3476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3477. (exit $ac_status); } >/dev/null; then
  3478. if test -s conftest.err; then
  3479. ac_cpp_err=$ac_c_preproc_warn_flag
  3480. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3481. else
  3482. ac_cpp_err=
  3483. fi
  3484. else
  3485. ac_cpp_err=yes
  3486. fi
  3487. if test -z "$ac_cpp_err"; then
  3488. :
  3489. else
  3490. echo "$as_me: failed program was:" >&5
  3491. sed 's/^/| /' conftest.$ac_ext >&5
  3492. # Broken: fails on valid input.
  3493. continue
  3494. fi
  3495. rm -f conftest.err conftest.$ac_ext
  3496. # OK, works on sane cases. Now check whether non-existent headers
  3497. # can be detected and how.
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. #include <ac_nonexistent.h>
  3505. _ACEOF
  3506. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3507. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3508. ac_status=$?
  3509. grep -v '^ *+' conftest.er1 >conftest.err
  3510. rm -f conftest.er1
  3511. cat conftest.err >&5
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); } >/dev/null; then
  3514. if test -s conftest.err; then
  3515. ac_cpp_err=$ac_c_preproc_warn_flag
  3516. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3517. else
  3518. ac_cpp_err=
  3519. fi
  3520. else
  3521. ac_cpp_err=yes
  3522. fi
  3523. if test -z "$ac_cpp_err"; then
  3524. # Broken: success on invalid input.
  3525. continue
  3526. else
  3527. echo "$as_me: failed program was:" >&5
  3528. sed 's/^/| /' conftest.$ac_ext >&5
  3529. # Passes both tests.
  3530. ac_preproc_ok=:
  3531. break
  3532. fi
  3533. rm -f conftest.err conftest.$ac_ext
  3534. done
  3535. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3536. rm -f conftest.err conftest.$ac_ext
  3537. if $ac_preproc_ok; then
  3538. :
  3539. else
  3540. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3541. See \`config.log' for more details." >&5
  3542. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3543. See \`config.log' for more details." >&2;}
  3544. { (exit 1); exit 1; }; }
  3545. fi
  3546. ac_ext=c
  3547. ac_cpp='$CPP $CPPFLAGS'
  3548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3551. echo "$as_me:$LINENO: checking for egrep" >&5
  3552. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3553. if test "${ac_cv_prog_egrep+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3557. then ac_cv_prog_egrep='grep -E'
  3558. else ac_cv_prog_egrep='egrep'
  3559. fi
  3560. fi
  3561. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3562. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3563. EGREP=$ac_cv_prog_egrep
  3564. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3565. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3566. if test "${ac_cv_header_stdc+set}" = set; then
  3567. echo $ECHO_N "(cached) $ECHO_C" >&6
  3568. else
  3569. cat >conftest.$ac_ext <<_ACEOF
  3570. /* confdefs.h. */
  3571. _ACEOF
  3572. cat confdefs.h >>conftest.$ac_ext
  3573. cat >>conftest.$ac_ext <<_ACEOF
  3574. /* end confdefs.h. */
  3575. #include <stdlib.h>
  3576. #include <stdarg.h>
  3577. #include <string.h>
  3578. #include <float.h>
  3579. int
  3580. main ()
  3581. {
  3582. ;
  3583. return 0;
  3584. }
  3585. _ACEOF
  3586. rm -f conftest.$ac_objext
  3587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3588. (eval $ac_compile) 2>conftest.er1
  3589. ac_status=$?
  3590. grep -v '^ *+' conftest.er1 >conftest.err
  3591. rm -f conftest.er1
  3592. cat conftest.err >&5
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); } &&
  3595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3597. (eval $ac_try) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); }; } &&
  3601. { ac_try='test -s conftest.$ac_objext'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; }; then
  3607. ac_cv_header_stdc=yes
  3608. else
  3609. echo "$as_me: failed program was:" >&5
  3610. sed 's/^/| /' conftest.$ac_ext >&5
  3611. ac_cv_header_stdc=no
  3612. fi
  3613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3614. if test $ac_cv_header_stdc = yes; then
  3615. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3616. cat >conftest.$ac_ext <<_ACEOF
  3617. /* confdefs.h. */
  3618. _ACEOF
  3619. cat confdefs.h >>conftest.$ac_ext
  3620. cat >>conftest.$ac_ext <<_ACEOF
  3621. /* end confdefs.h. */
  3622. #include <string.h>
  3623. _ACEOF
  3624. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3625. $EGREP "memchr" >/dev/null 2>&1; then
  3626. :
  3627. else
  3628. ac_cv_header_stdc=no
  3629. fi
  3630. rm -f conftest*
  3631. fi
  3632. if test $ac_cv_header_stdc = yes; then
  3633. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3634. cat >conftest.$ac_ext <<_ACEOF
  3635. /* confdefs.h. */
  3636. _ACEOF
  3637. cat confdefs.h >>conftest.$ac_ext
  3638. cat >>conftest.$ac_ext <<_ACEOF
  3639. /* end confdefs.h. */
  3640. #include <stdlib.h>
  3641. _ACEOF
  3642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3643. $EGREP "free" >/dev/null 2>&1; then
  3644. :
  3645. else
  3646. ac_cv_header_stdc=no
  3647. fi
  3648. rm -f conftest*
  3649. fi
  3650. if test $ac_cv_header_stdc = yes; then
  3651. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3652. if test "$cross_compiling" = yes; then
  3653. :
  3654. else
  3655. cat >conftest.$ac_ext <<_ACEOF
  3656. /* confdefs.h. */
  3657. _ACEOF
  3658. cat confdefs.h >>conftest.$ac_ext
  3659. cat >>conftest.$ac_ext <<_ACEOF
  3660. /* end confdefs.h. */
  3661. #include <ctype.h>
  3662. #if ((' ' & 0x0FF) == 0x020)
  3663. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3664. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3665. #else
  3666. # define ISLOWER(c) \
  3667. (('a' <= (c) && (c) <= 'i') \
  3668. || ('j' <= (c) && (c) <= 'r') \
  3669. || ('s' <= (c) && (c) <= 'z'))
  3670. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3671. #endif
  3672. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3673. int
  3674. main ()
  3675. {
  3676. int i;
  3677. for (i = 0; i < 256; i++)
  3678. if (XOR (islower (i), ISLOWER (i))
  3679. || toupper (i) != TOUPPER (i))
  3680. exit(2);
  3681. exit (0);
  3682. }
  3683. _ACEOF
  3684. rm -f conftest$ac_exeext
  3685. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3686. (eval $ac_link) 2>&5
  3687. ac_status=$?
  3688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3689. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3691. (eval $ac_try) 2>&5
  3692. ac_status=$?
  3693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3694. (exit $ac_status); }; }; then
  3695. :
  3696. else
  3697. echo "$as_me: program exited with status $ac_status" >&5
  3698. echo "$as_me: failed program was:" >&5
  3699. sed 's/^/| /' conftest.$ac_ext >&5
  3700. ( exit $ac_status )
  3701. ac_cv_header_stdc=no
  3702. fi
  3703. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3704. fi
  3705. fi
  3706. fi
  3707. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3708. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3709. if test $ac_cv_header_stdc = yes; then
  3710. cat >>confdefs.h <<\_ACEOF
  3711. #define STDC_HEADERS 1
  3712. _ACEOF
  3713. fi
  3714. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3715. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3716. inttypes.h stdint.h unistd.h
  3717. do
  3718. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3719. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3720. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3721. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3722. echo $ECHO_N "(cached) $ECHO_C" >&6
  3723. else
  3724. cat >conftest.$ac_ext <<_ACEOF
  3725. /* confdefs.h. */
  3726. _ACEOF
  3727. cat confdefs.h >>conftest.$ac_ext
  3728. cat >>conftest.$ac_ext <<_ACEOF
  3729. /* end confdefs.h. */
  3730. $ac_includes_default
  3731. #include <$ac_header>
  3732. _ACEOF
  3733. rm -f conftest.$ac_objext
  3734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3735. (eval $ac_compile) 2>conftest.er1
  3736. ac_status=$?
  3737. grep -v '^ *+' conftest.er1 >conftest.err
  3738. rm -f conftest.er1
  3739. cat conftest.err >&5
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); } &&
  3742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3744. (eval $ac_try) 2>&5
  3745. ac_status=$?
  3746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3747. (exit $ac_status); }; } &&
  3748. { ac_try='test -s conftest.$ac_objext'
  3749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3750. (eval $ac_try) 2>&5
  3751. ac_status=$?
  3752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3753. (exit $ac_status); }; }; then
  3754. eval "$as_ac_Header=yes"
  3755. else
  3756. echo "$as_me: failed program was:" >&5
  3757. sed 's/^/| /' conftest.$ac_ext >&5
  3758. eval "$as_ac_Header=no"
  3759. fi
  3760. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3761. fi
  3762. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3763. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3764. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3765. cat >>confdefs.h <<_ACEOF
  3766. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3767. _ACEOF
  3768. fi
  3769. done
  3770. 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
  3771. do
  3772. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3774. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3775. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3776. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3777. echo $ECHO_N "(cached) $ECHO_C" >&6
  3778. fi
  3779. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3780. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3781. else
  3782. # Is the header compilable?
  3783. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3784. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3785. cat >conftest.$ac_ext <<_ACEOF
  3786. /* confdefs.h. */
  3787. _ACEOF
  3788. cat confdefs.h >>conftest.$ac_ext
  3789. cat >>conftest.$ac_ext <<_ACEOF
  3790. /* end confdefs.h. */
  3791. $ac_includes_default
  3792. #include <$ac_header>
  3793. _ACEOF
  3794. rm -f conftest.$ac_objext
  3795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3796. (eval $ac_compile) 2>conftest.er1
  3797. ac_status=$?
  3798. grep -v '^ *+' conftest.er1 >conftest.err
  3799. rm -f conftest.er1
  3800. cat conftest.err >&5
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); } &&
  3803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3805. (eval $ac_try) 2>&5
  3806. ac_status=$?
  3807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3808. (exit $ac_status); }; } &&
  3809. { ac_try='test -s conftest.$ac_objext'
  3810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3811. (eval $ac_try) 2>&5
  3812. ac_status=$?
  3813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3814. (exit $ac_status); }; }; then
  3815. ac_header_compiler=yes
  3816. else
  3817. echo "$as_me: failed program was:" >&5
  3818. sed 's/^/| /' conftest.$ac_ext >&5
  3819. ac_header_compiler=no
  3820. fi
  3821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3822. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3823. echo "${ECHO_T}$ac_header_compiler" >&6
  3824. # Is the header present?
  3825. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3826. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3827. cat >conftest.$ac_ext <<_ACEOF
  3828. /* confdefs.h. */
  3829. _ACEOF
  3830. cat confdefs.h >>conftest.$ac_ext
  3831. cat >>conftest.$ac_ext <<_ACEOF
  3832. /* end confdefs.h. */
  3833. #include <$ac_header>
  3834. _ACEOF
  3835. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3836. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3837. ac_status=$?
  3838. grep -v '^ *+' conftest.er1 >conftest.err
  3839. rm -f conftest.er1
  3840. cat conftest.err >&5
  3841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3842. (exit $ac_status); } >/dev/null; then
  3843. if test -s conftest.err; then
  3844. ac_cpp_err=$ac_c_preproc_warn_flag
  3845. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3846. else
  3847. ac_cpp_err=
  3848. fi
  3849. else
  3850. ac_cpp_err=yes
  3851. fi
  3852. if test -z "$ac_cpp_err"; then
  3853. ac_header_preproc=yes
  3854. else
  3855. echo "$as_me: failed program was:" >&5
  3856. sed 's/^/| /' conftest.$ac_ext >&5
  3857. ac_header_preproc=no
  3858. fi
  3859. rm -f conftest.err conftest.$ac_ext
  3860. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3861. echo "${ECHO_T}$ac_header_preproc" >&6
  3862. # So? What about this header?
  3863. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3864. yes:no: )
  3865. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3866. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3868. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3869. ac_header_preproc=yes
  3870. ;;
  3871. no:yes:* )
  3872. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3873. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3874. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3875. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3876. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3877. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3878. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3879. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3880. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3881. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3882. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3883. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3884. (
  3885. cat <<\_ASBOX
  3886. ## ----------------------------------- ##
  3887. ## Report this to tujikawa@rednoah.com ##
  3888. ## ----------------------------------- ##
  3889. _ASBOX
  3890. ) |
  3891. sed "s/^/$as_me: WARNING: /" >&2
  3892. ;;
  3893. esac
  3894. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3895. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3897. echo $ECHO_N "(cached) $ECHO_C" >&6
  3898. else
  3899. eval "$as_ac_Header=\$ac_header_preproc"
  3900. fi
  3901. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3902. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3903. fi
  3904. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3905. cat >>confdefs.h <<_ACEOF
  3906. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3907. _ACEOF
  3908. fi
  3909. done
  3910. # Checks for typedefs, structures, and compiler characteristics.
  3911. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  3912. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  3913. if test "${ac_cv_header_stdbool_h+set}" = set; then
  3914. echo $ECHO_N "(cached) $ECHO_C" >&6
  3915. else
  3916. cat >conftest.$ac_ext <<_ACEOF
  3917. /* confdefs.h. */
  3918. _ACEOF
  3919. cat confdefs.h >>conftest.$ac_ext
  3920. cat >>conftest.$ac_ext <<_ACEOF
  3921. /* end confdefs.h. */
  3922. #include <stdbool.h>
  3923. #ifndef bool
  3924. # error bool is not defined
  3925. #endif
  3926. #ifndef false
  3927. # error false is not defined
  3928. #endif
  3929. #if false
  3930. # error false is not 0
  3931. #endif
  3932. #ifndef true
  3933. # error true is not defined
  3934. #endif
  3935. #if true != 1
  3936. # error true is not 1
  3937. #endif
  3938. #ifndef __bool_true_false_are_defined
  3939. # error __bool_true_false_are_defined is not defined
  3940. #endif
  3941. struct s { _Bool s: 1; _Bool t; } s;
  3942. char a[true == 1 ? 1 : -1];
  3943. char b[false == 0 ? 1 : -1];
  3944. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  3945. char d[(bool) -0.5 == true ? 1 : -1];
  3946. bool e = &s;
  3947. char f[(_Bool) -0.0 == false ? 1 : -1];
  3948. char g[true];
  3949. char h[sizeof (_Bool)];
  3950. char i[sizeof s.t];
  3951. int
  3952. main ()
  3953. {
  3954. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  3955. ;
  3956. return 0;
  3957. }
  3958. _ACEOF
  3959. rm -f conftest.$ac_objext
  3960. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3961. (eval $ac_compile) 2>conftest.er1
  3962. ac_status=$?
  3963. grep -v '^ *+' conftest.er1 >conftest.err
  3964. rm -f conftest.er1
  3965. cat conftest.err >&5
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); } &&
  3968. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3970. (eval $ac_try) 2>&5
  3971. ac_status=$?
  3972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3973. (exit $ac_status); }; } &&
  3974. { ac_try='test -s conftest.$ac_objext'
  3975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3976. (eval $ac_try) 2>&5
  3977. ac_status=$?
  3978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3979. (exit $ac_status); }; }; then
  3980. ac_cv_header_stdbool_h=yes
  3981. else
  3982. echo "$as_me: failed program was:" >&5
  3983. sed 's/^/| /' conftest.$ac_ext >&5
  3984. ac_cv_header_stdbool_h=no
  3985. fi
  3986. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3987. fi
  3988. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  3989. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  3990. echo "$as_me:$LINENO: checking for _Bool" >&5
  3991. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  3992. if test "${ac_cv_type__Bool+set}" = set; then
  3993. echo $ECHO_N "(cached) $ECHO_C" >&6
  3994. else
  3995. cat >conftest.$ac_ext <<_ACEOF
  3996. /* confdefs.h. */
  3997. _ACEOF
  3998. cat confdefs.h >>conftest.$ac_ext
  3999. cat >>conftest.$ac_ext <<_ACEOF
  4000. /* end confdefs.h. */
  4001. $ac_includes_default
  4002. int
  4003. main ()
  4004. {
  4005. if ((_Bool *) 0)
  4006. return 0;
  4007. if (sizeof (_Bool))
  4008. return 0;
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. rm -f conftest.$ac_objext
  4014. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4015. (eval $ac_compile) 2>conftest.er1
  4016. ac_status=$?
  4017. grep -v '^ *+' conftest.er1 >conftest.err
  4018. rm -f conftest.er1
  4019. cat conftest.err >&5
  4020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021. (exit $ac_status); } &&
  4022. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4024. (eval $ac_try) 2>&5
  4025. ac_status=$?
  4026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4027. (exit $ac_status); }; } &&
  4028. { ac_try='test -s conftest.$ac_objext'
  4029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4030. (eval $ac_try) 2>&5
  4031. ac_status=$?
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); }; }; then
  4034. ac_cv_type__Bool=yes
  4035. else
  4036. echo "$as_me: failed program was:" >&5
  4037. sed 's/^/| /' conftest.$ac_ext >&5
  4038. ac_cv_type__Bool=no
  4039. fi
  4040. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4041. fi
  4042. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  4043. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  4044. if test $ac_cv_type__Bool = yes; then
  4045. cat >>confdefs.h <<_ACEOF
  4046. #define HAVE__BOOL 1
  4047. _ACEOF
  4048. fi
  4049. if test $ac_cv_header_stdbool_h = yes; then
  4050. cat >>confdefs.h <<\_ACEOF
  4051. #define HAVE_STDBOOL_H 1
  4052. _ACEOF
  4053. fi
  4054. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4055. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4056. if test "${ac_cv_c_const+set}" = set; then
  4057. echo $ECHO_N "(cached) $ECHO_C" >&6
  4058. else
  4059. cat >conftest.$ac_ext <<_ACEOF
  4060. /* confdefs.h. */
  4061. _ACEOF
  4062. cat confdefs.h >>conftest.$ac_ext
  4063. cat >>conftest.$ac_ext <<_ACEOF
  4064. /* end confdefs.h. */
  4065. int
  4066. main ()
  4067. {
  4068. /* FIXME: Include the comments suggested by Paul. */
  4069. #ifndef __cplusplus
  4070. /* Ultrix mips cc rejects this. */
  4071. typedef int charset[2];
  4072. const charset x;
  4073. /* SunOS 4.1.1 cc rejects this. */
  4074. char const *const *ccp;
  4075. char **p;
  4076. /* NEC SVR4.0.2 mips cc rejects this. */
  4077. struct point {int x, y;};
  4078. static struct point const zero = {0,0};
  4079. /* AIX XL C 1.02.0.0 rejects this.
  4080. It does not let you subtract one const X* pointer from another in
  4081. an arm of an if-expression whose if-part is not a constant
  4082. expression */
  4083. const char *g = "string";
  4084. ccp = &g + (g ? g-g : 0);
  4085. /* HPUX 7.0 cc rejects these. */
  4086. ++ccp;
  4087. p = (char**) ccp;
  4088. ccp = (char const *const *) p;
  4089. { /* SCO 3.2v4 cc rejects this. */
  4090. char *t;
  4091. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4092. *t++ = 0;
  4093. }
  4094. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4095. int x[] = {25, 17};
  4096. const int *foo = &x[0];
  4097. ++foo;
  4098. }
  4099. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4100. typedef const int *iptr;
  4101. iptr p = 0;
  4102. ++p;
  4103. }
  4104. { /* AIX XL C 1.02.0.0 rejects this saying
  4105. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4106. struct s { int j; const int *ap[3]; };
  4107. struct s *b; b->j = 5;
  4108. }
  4109. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4110. const int foo = 10;
  4111. }
  4112. #endif
  4113. ;
  4114. return 0;
  4115. }
  4116. _ACEOF
  4117. rm -f conftest.$ac_objext
  4118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4119. (eval $ac_compile) 2>conftest.er1
  4120. ac_status=$?
  4121. grep -v '^ *+' conftest.er1 >conftest.err
  4122. rm -f conftest.er1
  4123. cat conftest.err >&5
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); } &&
  4126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4128. (eval $ac_try) 2>&5
  4129. ac_status=$?
  4130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4131. (exit $ac_status); }; } &&
  4132. { ac_try='test -s conftest.$ac_objext'
  4133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4134. (eval $ac_try) 2>&5
  4135. ac_status=$?
  4136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137. (exit $ac_status); }; }; then
  4138. ac_cv_c_const=yes
  4139. else
  4140. echo "$as_me: failed program was:" >&5
  4141. sed 's/^/| /' conftest.$ac_ext >&5
  4142. ac_cv_c_const=no
  4143. fi
  4144. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4145. fi
  4146. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4147. echo "${ECHO_T}$ac_cv_c_const" >&6
  4148. if test $ac_cv_c_const = no; then
  4149. cat >>confdefs.h <<\_ACEOF
  4150. #define const
  4151. _ACEOF
  4152. fi
  4153. echo "$as_me:$LINENO: checking for size_t" >&5
  4154. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4155. if test "${ac_cv_type_size_t+set}" = set; then
  4156. echo $ECHO_N "(cached) $ECHO_C" >&6
  4157. else
  4158. cat >conftest.$ac_ext <<_ACEOF
  4159. /* confdefs.h. */
  4160. _ACEOF
  4161. cat confdefs.h >>conftest.$ac_ext
  4162. cat >>conftest.$ac_ext <<_ACEOF
  4163. /* end confdefs.h. */
  4164. $ac_includes_default
  4165. int
  4166. main ()
  4167. {
  4168. if ((size_t *) 0)
  4169. return 0;
  4170. if (sizeof (size_t))
  4171. return 0;
  4172. ;
  4173. return 0;
  4174. }
  4175. _ACEOF
  4176. rm -f conftest.$ac_objext
  4177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4178. (eval $ac_compile) 2>conftest.er1
  4179. ac_status=$?
  4180. grep -v '^ *+' conftest.er1 >conftest.err
  4181. rm -f conftest.er1
  4182. cat conftest.err >&5
  4183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4184. (exit $ac_status); } &&
  4185. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4187. (eval $ac_try) 2>&5
  4188. ac_status=$?
  4189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4190. (exit $ac_status); }; } &&
  4191. { ac_try='test -s conftest.$ac_objext'
  4192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4193. (eval $ac_try) 2>&5
  4194. ac_status=$?
  4195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4196. (exit $ac_status); }; }; then
  4197. ac_cv_type_size_t=yes
  4198. else
  4199. echo "$as_me: failed program was:" >&5
  4200. sed 's/^/| /' conftest.$ac_ext >&5
  4201. ac_cv_type_size_t=no
  4202. fi
  4203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4204. fi
  4205. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4206. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4207. if test $ac_cv_type_size_t = yes; then
  4208. :
  4209. else
  4210. cat >>confdefs.h <<_ACEOF
  4211. #define size_t unsigned
  4212. _ACEOF
  4213. fi
  4214. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4215. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4216. if test "${ac_cv_header_time+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. /* confdefs.h. */
  4221. _ACEOF
  4222. cat confdefs.h >>conftest.$ac_ext
  4223. cat >>conftest.$ac_ext <<_ACEOF
  4224. /* end confdefs.h. */
  4225. #include <sys/types.h>
  4226. #include <sys/time.h>
  4227. #include <time.h>
  4228. int
  4229. main ()
  4230. {
  4231. if ((struct tm *) 0)
  4232. return 0;
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. rm -f conftest.$ac_objext
  4238. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4239. (eval $ac_compile) 2>conftest.er1
  4240. ac_status=$?
  4241. grep -v '^ *+' conftest.er1 >conftest.err
  4242. rm -f conftest.er1
  4243. cat conftest.err >&5
  4244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4245. (exit $ac_status); } &&
  4246. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4252. { ac_try='test -s conftest.$ac_objext'
  4253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4254. (eval $ac_try) 2>&5
  4255. ac_status=$?
  4256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257. (exit $ac_status); }; }; then
  4258. ac_cv_header_time=yes
  4259. else
  4260. echo "$as_me: failed program was:" >&5
  4261. sed 's/^/| /' conftest.$ac_ext >&5
  4262. ac_cv_header_time=no
  4263. fi
  4264. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4265. fi
  4266. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4267. echo "${ECHO_T}$ac_cv_header_time" >&6
  4268. if test $ac_cv_header_time = yes; then
  4269. cat >>confdefs.h <<\_ACEOF
  4270. #define TIME_WITH_SYS_TIME 1
  4271. _ACEOF
  4272. fi
  4273. # Checks for library functions.
  4274. echo "$as_me:$LINENO: checking for error_at_line" >&5
  4275. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  4276. if test "${ac_cv_lib_error_at_line+set}" = set; then
  4277. echo $ECHO_N "(cached) $ECHO_C" >&6
  4278. else
  4279. cat >conftest.$ac_ext <<_ACEOF
  4280. /* confdefs.h. */
  4281. _ACEOF
  4282. cat confdefs.h >>conftest.$ac_ext
  4283. cat >>conftest.$ac_ext <<_ACEOF
  4284. /* end confdefs.h. */
  4285. $ac_includes_default
  4286. int
  4287. main ()
  4288. {
  4289. error_at_line (0, 0, "", 0, "");
  4290. ;
  4291. return 0;
  4292. }
  4293. _ACEOF
  4294. rm -f conftest.$ac_objext conftest$ac_exeext
  4295. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4296. (eval $ac_link) 2>conftest.er1
  4297. ac_status=$?
  4298. grep -v '^ *+' conftest.er1 >conftest.err
  4299. rm -f conftest.er1
  4300. cat conftest.err >&5
  4301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4302. (exit $ac_status); } &&
  4303. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4305. (eval $ac_try) 2>&5
  4306. ac_status=$?
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); }; } &&
  4309. { ac_try='test -s conftest$ac_exeext'
  4310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4311. (eval $ac_try) 2>&5
  4312. ac_status=$?
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); }; }; then
  4315. ac_cv_lib_error_at_line=yes
  4316. else
  4317. echo "$as_me: failed program was:" >&5
  4318. sed 's/^/| /' conftest.$ac_ext >&5
  4319. ac_cv_lib_error_at_line=no
  4320. fi
  4321. rm -f conftest.err conftest.$ac_objext \
  4322. conftest$ac_exeext conftest.$ac_ext
  4323. fi
  4324. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  4325. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  4326. if test $ac_cv_lib_error_at_line = no; then
  4327. case $LIBOBJS in
  4328. "error.$ac_objext" | \
  4329. *" error.$ac_objext" | \
  4330. "error.$ac_objext "* | \
  4331. *" error.$ac_objext "* ) ;;
  4332. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  4333. esac
  4334. fi
  4335. for ac_header in sys/select.h sys/socket.h
  4336. do
  4337. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4338. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4339. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4340. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4341. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. fi
  4344. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4345. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4346. else
  4347. # Is the header compilable?
  4348. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4349. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4350. cat >conftest.$ac_ext <<_ACEOF
  4351. /* confdefs.h. */
  4352. _ACEOF
  4353. cat confdefs.h >>conftest.$ac_ext
  4354. cat >>conftest.$ac_ext <<_ACEOF
  4355. /* end confdefs.h. */
  4356. $ac_includes_default
  4357. #include <$ac_header>
  4358. _ACEOF
  4359. rm -f conftest.$ac_objext
  4360. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4361. (eval $ac_compile) 2>conftest.er1
  4362. ac_status=$?
  4363. grep -v '^ *+' conftest.er1 >conftest.err
  4364. rm -f conftest.er1
  4365. cat conftest.err >&5
  4366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4367. (exit $ac_status); } &&
  4368. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4370. (eval $ac_try) 2>&5
  4371. ac_status=$?
  4372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4373. (exit $ac_status); }; } &&
  4374. { ac_try='test -s conftest.$ac_objext'
  4375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4376. (eval $ac_try) 2>&5
  4377. ac_status=$?
  4378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4379. (exit $ac_status); }; }; then
  4380. ac_header_compiler=yes
  4381. else
  4382. echo "$as_me: failed program was:" >&5
  4383. sed 's/^/| /' conftest.$ac_ext >&5
  4384. ac_header_compiler=no
  4385. fi
  4386. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4387. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4388. echo "${ECHO_T}$ac_header_compiler" >&6
  4389. # Is the header present?
  4390. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4391. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4392. cat >conftest.$ac_ext <<_ACEOF
  4393. /* confdefs.h. */
  4394. _ACEOF
  4395. cat confdefs.h >>conftest.$ac_ext
  4396. cat >>conftest.$ac_ext <<_ACEOF
  4397. /* end confdefs.h. */
  4398. #include <$ac_header>
  4399. _ACEOF
  4400. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4401. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4402. ac_status=$?
  4403. grep -v '^ *+' conftest.er1 >conftest.err
  4404. rm -f conftest.er1
  4405. cat conftest.err >&5
  4406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. (exit $ac_status); } >/dev/null; then
  4408. if test -s conftest.err; then
  4409. ac_cpp_err=$ac_c_preproc_warn_flag
  4410. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4411. else
  4412. ac_cpp_err=
  4413. fi
  4414. else
  4415. ac_cpp_err=yes
  4416. fi
  4417. if test -z "$ac_cpp_err"; then
  4418. ac_header_preproc=yes
  4419. else
  4420. echo "$as_me: failed program was:" >&5
  4421. sed 's/^/| /' conftest.$ac_ext >&5
  4422. ac_header_preproc=no
  4423. fi
  4424. rm -f conftest.err conftest.$ac_ext
  4425. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4426. echo "${ECHO_T}$ac_header_preproc" >&6
  4427. # So? What about this header?
  4428. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4429. yes:no: )
  4430. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4431. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4433. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4434. ac_header_preproc=yes
  4435. ;;
  4436. no:yes:* )
  4437. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4438. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4439. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4440. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4441. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4442. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4443. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4444. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4445. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4446. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4447. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4448. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4449. (
  4450. cat <<\_ASBOX
  4451. ## ----------------------------------- ##
  4452. ## Report this to tujikawa@rednoah.com ##
  4453. ## ----------------------------------- ##
  4454. _ASBOX
  4455. ) |
  4456. sed "s/^/$as_me: WARNING: /" >&2
  4457. ;;
  4458. esac
  4459. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4460. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4461. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4462. echo $ECHO_N "(cached) $ECHO_C" >&6
  4463. else
  4464. eval "$as_ac_Header=\$ac_header_preproc"
  4465. fi
  4466. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4467. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4468. fi
  4469. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4470. cat >>confdefs.h <<_ACEOF
  4471. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4472. _ACEOF
  4473. fi
  4474. done
  4475. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  4476. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  4477. if test "${ac_cv_func_select_args+set}" = set; then
  4478. echo $ECHO_N "(cached) $ECHO_C" >&6
  4479. else
  4480. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  4481. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  4482. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  4483. cat >conftest.$ac_ext <<_ACEOF
  4484. /* confdefs.h. */
  4485. _ACEOF
  4486. cat confdefs.h >>conftest.$ac_ext
  4487. cat >>conftest.$ac_ext <<_ACEOF
  4488. /* end confdefs.h. */
  4489. $ac_includes_default
  4490. #if HAVE_SYS_SELECT_H
  4491. # include <sys/select.h>
  4492. #endif
  4493. #if HAVE_SYS_SOCKET_H
  4494. # include <sys/socket.h>
  4495. #endif
  4496. int
  4497. main ()
  4498. {
  4499. extern int select ($ac_arg1,
  4500. $ac_arg234, $ac_arg234, $ac_arg234,
  4501. $ac_arg5);
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. rm -f conftest.$ac_objext
  4507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4508. (eval $ac_compile) 2>conftest.er1
  4509. ac_status=$?
  4510. grep -v '^ *+' conftest.er1 >conftest.err
  4511. rm -f conftest.er1
  4512. cat conftest.err >&5
  4513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4514. (exit $ac_status); } &&
  4515. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4517. (eval $ac_try) 2>&5
  4518. ac_status=$?
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); }; } &&
  4521. { ac_try='test -s conftest.$ac_objext'
  4522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4523. (eval $ac_try) 2>&5
  4524. ac_status=$?
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); }; }; then
  4527. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  4528. else
  4529. echo "$as_me: failed program was:" >&5
  4530. sed 's/^/| /' conftest.$ac_ext >&5
  4531. fi
  4532. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4533. done
  4534. done
  4535. done
  4536. # Provide a safe default value.
  4537. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  4538. fi
  4539. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  4540. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  4541. ac_save_IFS=$IFS; IFS=','
  4542. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  4543. IFS=$ac_save_IFS
  4544. shift
  4545. cat >>confdefs.h <<_ACEOF
  4546. #define SELECT_TYPE_ARG1 $1
  4547. _ACEOF
  4548. cat >>confdefs.h <<_ACEOF
  4549. #define SELECT_TYPE_ARG234 ($2)
  4550. _ACEOF
  4551. cat >>confdefs.h <<_ACEOF
  4552. #define SELECT_TYPE_ARG5 ($3)
  4553. _ACEOF
  4554. rm -f conftest*
  4555. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  4556. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  4557. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  4558. echo $ECHO_N "(cached) $ECHO_C" >&6
  4559. else
  4560. rm -f conftest.sym conftest.file
  4561. echo >conftest.file
  4562. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  4563. if test "$cross_compiling" = yes; then
  4564. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4565. else
  4566. cat >conftest.$ac_ext <<_ACEOF
  4567. /* confdefs.h. */
  4568. _ACEOF
  4569. cat confdefs.h >>conftest.$ac_ext
  4570. cat >>conftest.$ac_ext <<_ACEOF
  4571. /* end confdefs.h. */
  4572. $ac_includes_default
  4573. int
  4574. main ()
  4575. {
  4576. struct stat sbuf;
  4577. /* Linux will dereference the symlink and fail.
  4578. That is better in the sense that it means we will not
  4579. have to compile and use the lstat wrapper. */
  4580. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  4581. ;
  4582. return 0;
  4583. }
  4584. _ACEOF
  4585. rm -f conftest$ac_exeext
  4586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4587. (eval $ac_link) 2>&5
  4588. ac_status=$?
  4589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4592. (eval $ac_try) 2>&5
  4593. ac_status=$?
  4594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595. (exit $ac_status); }; }; then
  4596. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  4597. else
  4598. echo "$as_me: program exited with status $ac_status" >&5
  4599. echo "$as_me: failed program was:" >&5
  4600. sed 's/^/| /' conftest.$ac_ext >&5
  4601. ( exit $ac_status )
  4602. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4603. fi
  4604. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4605. fi
  4606. else
  4607. # If the `ln -s' command failed, then we probably don't even
  4608. # have an lstat function.
  4609. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4610. fi
  4611. rm -f conftest.sym conftest.file
  4612. fi
  4613. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  4614. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  4615. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  4616. cat >>confdefs.h <<_ACEOF
  4617. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  4618. _ACEOF
  4619. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  4620. case $LIBOBJS in
  4621. "lstat.$ac_objext" | \
  4622. *" lstat.$ac_objext" | \
  4623. "lstat.$ac_objext "* | \
  4624. *" lstat.$ac_objext "* ) ;;
  4625. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  4626. esac
  4627. fi
  4628. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  4629. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  4630. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  4631. echo $ECHO_N "(cached) $ECHO_C" >&6
  4632. else
  4633. if test "$cross_compiling" = yes; then
  4634. ac_cv_func_stat_empty_string_bug=yes
  4635. else
  4636. cat >conftest.$ac_ext <<_ACEOF
  4637. /* confdefs.h. */
  4638. _ACEOF
  4639. cat confdefs.h >>conftest.$ac_ext
  4640. cat >>conftest.$ac_ext <<_ACEOF
  4641. /* end confdefs.h. */
  4642. $ac_includes_default
  4643. int
  4644. main ()
  4645. {
  4646. struct stat sbuf;
  4647. exit (stat ("", &sbuf) ? 1 : 0);
  4648. ;
  4649. return 0;
  4650. }
  4651. _ACEOF
  4652. rm -f conftest$ac_exeext
  4653. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4654. (eval $ac_link) 2>&5
  4655. ac_status=$?
  4656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4659. (eval $ac_try) 2>&5
  4660. ac_status=$?
  4661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662. (exit $ac_status); }; }; then
  4663. ac_cv_func_stat_empty_string_bug=yes
  4664. else
  4665. echo "$as_me: program exited with status $ac_status" >&5
  4666. echo "$as_me: failed program was:" >&5
  4667. sed 's/^/| /' conftest.$ac_ext >&5
  4668. ( exit $ac_status )
  4669. ac_cv_func_stat_empty_string_bug=no
  4670. fi
  4671. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4672. fi
  4673. fi
  4674. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  4675. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  4676. if test $ac_cv_func_stat_empty_string_bug = yes; then
  4677. case $LIBOBJS in
  4678. "stat.$ac_objext" | \
  4679. *" stat.$ac_objext" | \
  4680. "stat.$ac_objext "* | \
  4681. *" stat.$ac_objext "* ) ;;
  4682. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  4683. esac
  4684. cat >>confdefs.h <<_ACEOF
  4685. #define HAVE_STAT_EMPTY_STRING_BUG 1
  4686. _ACEOF
  4687. fi
  4688. for ac_func in vprintf
  4689. do
  4690. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4691. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4692. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4693. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4694. echo $ECHO_N "(cached) $ECHO_C" >&6
  4695. else
  4696. cat >conftest.$ac_ext <<_ACEOF
  4697. /* confdefs.h. */
  4698. _ACEOF
  4699. cat confdefs.h >>conftest.$ac_ext
  4700. cat >>conftest.$ac_ext <<_ACEOF
  4701. /* end confdefs.h. */
  4702. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4704. #define $ac_func innocuous_$ac_func
  4705. /* System header to define __stub macros and hopefully few prototypes,
  4706. which can conflict with char $ac_func (); below.
  4707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4708. <limits.h> exists even on freestanding compilers. */
  4709. #ifdef __STDC__
  4710. # include <limits.h>
  4711. #else
  4712. # include <assert.h>
  4713. #endif
  4714. #undef $ac_func
  4715. /* Override any gcc2 internal prototype to avoid an error. */
  4716. #ifdef __cplusplus
  4717. extern "C"
  4718. {
  4719. #endif
  4720. /* We use char because int might match the return type of a gcc2
  4721. builtin and then its argument prototype would still apply. */
  4722. char $ac_func ();
  4723. /* The GNU C library defines this for functions which it implements
  4724. to always fail with ENOSYS. Some functions are actually named
  4725. something starting with __ and the normal name is an alias. */
  4726. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4727. choke me
  4728. #else
  4729. char (*f) () = $ac_func;
  4730. #endif
  4731. #ifdef __cplusplus
  4732. }
  4733. #endif
  4734. int
  4735. main ()
  4736. {
  4737. return f != $ac_func;
  4738. ;
  4739. return 0;
  4740. }
  4741. _ACEOF
  4742. rm -f conftest.$ac_objext conftest$ac_exeext
  4743. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4744. (eval $ac_link) 2>conftest.er1
  4745. ac_status=$?
  4746. grep -v '^ *+' conftest.er1 >conftest.err
  4747. rm -f conftest.er1
  4748. cat conftest.err >&5
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } &&
  4751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4753. (eval $ac_try) 2>&5
  4754. ac_status=$?
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); }; } &&
  4757. { ac_try='test -s conftest$ac_exeext'
  4758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4759. (eval $ac_try) 2>&5
  4760. ac_status=$?
  4761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4762. (exit $ac_status); }; }; then
  4763. eval "$as_ac_var=yes"
  4764. else
  4765. echo "$as_me: failed program was:" >&5
  4766. sed 's/^/| /' conftest.$ac_ext >&5
  4767. eval "$as_ac_var=no"
  4768. fi
  4769. rm -f conftest.err conftest.$ac_objext \
  4770. conftest$ac_exeext conftest.$ac_ext
  4771. fi
  4772. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4773. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4774. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4775. cat >>confdefs.h <<_ACEOF
  4776. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4777. _ACEOF
  4778. echo "$as_me:$LINENO: checking for _doprnt" >&5
  4779. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  4780. if test "${ac_cv_func__doprnt+set}" = set; then
  4781. echo $ECHO_N "(cached) $ECHO_C" >&6
  4782. else
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  4790. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4791. #define _doprnt innocuous__doprnt
  4792. /* System header to define __stub macros and hopefully few prototypes,
  4793. which can conflict with char _doprnt (); below.
  4794. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4795. <limits.h> exists even on freestanding compilers. */
  4796. #ifdef __STDC__
  4797. # include <limits.h>
  4798. #else
  4799. # include <assert.h>
  4800. #endif
  4801. #undef _doprnt
  4802. /* Override any gcc2 internal prototype to avoid an error. */
  4803. #ifdef __cplusplus
  4804. extern "C"
  4805. {
  4806. #endif
  4807. /* We use char because int might match the return type of a gcc2
  4808. builtin and then its argument prototype would still apply. */
  4809. char _doprnt ();
  4810. /* The GNU C library defines this for functions which it implements
  4811. to always fail with ENOSYS. Some functions are actually named
  4812. something starting with __ and the normal name is an alias. */
  4813. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  4814. choke me
  4815. #else
  4816. char (*f) () = _doprnt;
  4817. #endif
  4818. #ifdef __cplusplus
  4819. }
  4820. #endif
  4821. int
  4822. main ()
  4823. {
  4824. return f != _doprnt;
  4825. ;
  4826. return 0;
  4827. }
  4828. _ACEOF
  4829. rm -f conftest.$ac_objext conftest$ac_exeext
  4830. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4831. (eval $ac_link) 2>conftest.er1
  4832. ac_status=$?
  4833. grep -v '^ *+' conftest.er1 >conftest.err
  4834. rm -f conftest.er1
  4835. cat conftest.err >&5
  4836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); } &&
  4838. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4840. (eval $ac_try) 2>&5
  4841. ac_status=$?
  4842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4843. (exit $ac_status); }; } &&
  4844. { ac_try='test -s conftest$ac_exeext'
  4845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4846. (eval $ac_try) 2>&5
  4847. ac_status=$?
  4848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4849. (exit $ac_status); }; }; then
  4850. ac_cv_func__doprnt=yes
  4851. else
  4852. echo "$as_me: failed program was:" >&5
  4853. sed 's/^/| /' conftest.$ac_ext >&5
  4854. ac_cv_func__doprnt=no
  4855. fi
  4856. rm -f conftest.err conftest.$ac_objext \
  4857. conftest$ac_exeext conftest.$ac_ext
  4858. fi
  4859. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  4860. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  4861. if test $ac_cv_func__doprnt = yes; then
  4862. cat >>confdefs.h <<\_ACEOF
  4863. #define HAVE_DOPRNT 1
  4864. _ACEOF
  4865. fi
  4866. fi
  4867. done
  4868. for ac_func in getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol
  4869. do
  4870. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4871. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4872. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4873. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4874. echo $ECHO_N "(cached) $ECHO_C" >&6
  4875. else
  4876. cat >conftest.$ac_ext <<_ACEOF
  4877. /* confdefs.h. */
  4878. _ACEOF
  4879. cat confdefs.h >>conftest.$ac_ext
  4880. cat >>conftest.$ac_ext <<_ACEOF
  4881. /* end confdefs.h. */
  4882. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4883. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4884. #define $ac_func innocuous_$ac_func
  4885. /* System header to define __stub macros and hopefully few prototypes,
  4886. which can conflict with char $ac_func (); below.
  4887. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4888. <limits.h> exists even on freestanding compilers. */
  4889. #ifdef __STDC__
  4890. # include <limits.h>
  4891. #else
  4892. # include <assert.h>
  4893. #endif
  4894. #undef $ac_func
  4895. /* Override any gcc2 internal prototype to avoid an error. */
  4896. #ifdef __cplusplus
  4897. extern "C"
  4898. {
  4899. #endif
  4900. /* We use char because int might match the return type of a gcc2
  4901. builtin and then its argument prototype would still apply. */
  4902. char $ac_func ();
  4903. /* The GNU C library defines this for functions which it implements
  4904. to always fail with ENOSYS. Some functions are actually named
  4905. something starting with __ and the normal name is an alias. */
  4906. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4907. choke me
  4908. #else
  4909. char (*f) () = $ac_func;
  4910. #endif
  4911. #ifdef __cplusplus
  4912. }
  4913. #endif
  4914. int
  4915. main ()
  4916. {
  4917. return f != $ac_func;
  4918. ;
  4919. return 0;
  4920. }
  4921. _ACEOF
  4922. rm -f conftest.$ac_objext conftest$ac_exeext
  4923. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4924. (eval $ac_link) 2>conftest.er1
  4925. ac_status=$?
  4926. grep -v '^ *+' conftest.er1 >conftest.err
  4927. rm -f conftest.er1
  4928. cat conftest.err >&5
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); } &&
  4931. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4933. (eval $ac_try) 2>&5
  4934. ac_status=$?
  4935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4936. (exit $ac_status); }; } &&
  4937. { ac_try='test -s conftest$ac_exeext'
  4938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4939. (eval $ac_try) 2>&5
  4940. ac_status=$?
  4941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4942. (exit $ac_status); }; }; then
  4943. eval "$as_ac_var=yes"
  4944. else
  4945. echo "$as_me: failed program was:" >&5
  4946. sed 's/^/| /' conftest.$ac_ext >&5
  4947. eval "$as_ac_var=no"
  4948. fi
  4949. rm -f conftest.err conftest.$ac_objext \
  4950. conftest$ac_exeext conftest.$ac_ext
  4951. fi
  4952. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4953. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4954. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4955. cat >>confdefs.h <<_ACEOF
  4956. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4957. _ACEOF
  4958. fi
  4959. done
  4960. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
  4961. cat >confcache <<\_ACEOF
  4962. # This file is a shell script that caches the results of configure
  4963. # tests run on this system so they can be shared between configure
  4964. # scripts and configure runs, see configure's option --config-cache.
  4965. # It is not useful on other systems. If it contains results you don't
  4966. # want to keep, you may remove or edit it.
  4967. #
  4968. # config.status only pays attention to the cache file if you give it
  4969. # the --recheck option to rerun configure.
  4970. #
  4971. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4972. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4973. # following values.
  4974. _ACEOF
  4975. # The following way of writing the cache mishandles newlines in values,
  4976. # but we know of no workaround that is simple, portable, and efficient.
  4977. # So, don't put newlines in cache variables' values.
  4978. # Ultrix sh set writes to stderr and can't be redirected directly,
  4979. # and sets the high bit in the cache file unless we assign to the vars.
  4980. {
  4981. (set) 2>&1 |
  4982. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4983. *ac_space=\ *)
  4984. # `set' does not quote correctly, so add quotes (double-quote
  4985. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4986. sed -n \
  4987. "s/'/'\\\\''/g;
  4988. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4989. ;;
  4990. *)
  4991. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4992. sed -n \
  4993. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4994. ;;
  4995. esac;
  4996. } |
  4997. sed '
  4998. t clear
  4999. : clear
  5000. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5001. t end
  5002. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5003. : end' >>confcache
  5004. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5005. if test -w $cache_file; then
  5006. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5007. cat confcache >$cache_file
  5008. else
  5009. echo "not updating unwritable cache $cache_file"
  5010. fi
  5011. fi
  5012. rm -f confcache
  5013. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5014. # Let make expand exec_prefix.
  5015. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5016. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5017. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5018. # trailing colons and then remove the whole line if VPATH becomes empty
  5019. # (actually we leave an empty line to preserve line numbers).
  5020. if test "x$srcdir" = x.; then
  5021. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5022. s/:*\$(srcdir):*/:/;
  5023. s/:*\${srcdir}:*/:/;
  5024. s/:*@srcdir@:*/:/;
  5025. s/^\([^=]*=[ ]*\):*/\1/;
  5026. s/:*$//;
  5027. s/^[^=]*=[ ]*$//;
  5028. }'
  5029. fi
  5030. DEFS=-DHAVE_CONFIG_H
  5031. ac_libobjs=
  5032. ac_ltlibobjs=
  5033. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5034. # 1. Remove the extension, and $U if already installed.
  5035. ac_i=`echo "$ac_i" |
  5036. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  5037. # 2. Add them.
  5038. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  5039. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  5040. done
  5041. LIBOBJS=$ac_libobjs
  5042. LTLIBOBJS=$ac_ltlibobjs
  5043. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  5044. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  5045. Usually this means the macro was only invoked conditionally." >&5
  5046. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  5047. Usually this means the macro was only invoked conditionally." >&2;}
  5048. { (exit 1); exit 1; }; }
  5049. fi
  5050. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  5051. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  5052. Usually this means the macro was only invoked conditionally." >&5
  5053. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  5054. Usually this means the macro was only invoked conditionally." >&2;}
  5055. { (exit 1); exit 1; }; }
  5056. fi
  5057. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  5058. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  5059. Usually this means the macro was only invoked conditionally." >&5
  5060. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  5061. Usually this means the macro was only invoked conditionally." >&2;}
  5062. { (exit 1); exit 1; }; }
  5063. fi
  5064. : ${CONFIG_STATUS=./config.status}
  5065. ac_clean_files_save=$ac_clean_files
  5066. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5067. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5068. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5069. cat >$CONFIG_STATUS <<_ACEOF
  5070. #! $SHELL
  5071. # Generated by $as_me.
  5072. # Run this file to recreate the current configuration.
  5073. # Compiler output produced by configure, useful for debugging
  5074. # configure, is in config.log if it exists.
  5075. debug=false
  5076. ac_cs_recheck=false
  5077. ac_cs_silent=false
  5078. SHELL=\${CONFIG_SHELL-$SHELL}
  5079. _ACEOF
  5080. cat >>$CONFIG_STATUS <<\_ACEOF
  5081. ## --------------------- ##
  5082. ## M4sh Initialization. ##
  5083. ## --------------------- ##
  5084. # Be Bourne compatible
  5085. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5086. emulate sh
  5087. NULLCMD=:
  5088. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5089. # is contrary to our usage. Disable this feature.
  5090. alias -g '${1+"$@"}'='"$@"'
  5091. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  5092. set -o posix
  5093. fi
  5094. DUALCASE=1; export DUALCASE # for MKS sh
  5095. # Support unset when possible.
  5096. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5097. as_unset=unset
  5098. else
  5099. as_unset=false
  5100. fi
  5101. # Work around bugs in pre-3.0 UWIN ksh.
  5102. $as_unset ENV MAIL MAILPATH
  5103. PS1='$ '
  5104. PS2='> '
  5105. PS4='+ '
  5106. # NLS nuisances.
  5107. for as_var in \
  5108. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5109. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5110. LC_TELEPHONE LC_TIME
  5111. do
  5112. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5113. eval $as_var=C; export $as_var
  5114. else
  5115. $as_unset $as_var
  5116. fi
  5117. done
  5118. # Required to use basename.
  5119. if expr a : '\(a\)' >/dev/null 2>&1; then
  5120. as_expr=expr
  5121. else
  5122. as_expr=false
  5123. fi
  5124. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  5125. as_basename=basename
  5126. else
  5127. as_basename=false
  5128. fi
  5129. # Name of the executable.
  5130. as_me=`$as_basename "$0" ||
  5131. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5132. X"$0" : 'X\(//\)$' \| \
  5133. X"$0" : 'X\(/\)$' \| \
  5134. . : '\(.\)' 2>/dev/null ||
  5135. echo X/"$0" |
  5136. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  5137. /^X\/\(\/\/\)$/{ s//\1/; q; }
  5138. /^X\/\(\/\).*/{ s//\1/; q; }
  5139. s/.*/./; q'`
  5140. # PATH needs CR, and LINENO needs CR and PATH.
  5141. # Avoid depending upon Character Ranges.
  5142. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5143. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5144. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5145. as_cr_digits='0123456789'
  5146. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5147. # The user is always right.
  5148. if test "${PATH_SEPARATOR+set}" != set; then
  5149. echo "#! /bin/sh" >conf$$.sh
  5150. echo "exit 0" >>conf$$.sh
  5151. chmod +x conf$$.sh
  5152. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5153. PATH_SEPARATOR=';'
  5154. else
  5155. PATH_SEPARATOR=:
  5156. fi
  5157. rm -f conf$$.sh
  5158. fi
  5159. as_lineno_1=$LINENO
  5160. as_lineno_2=$LINENO
  5161. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5162. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5163. test "x$as_lineno_3" = "x$as_lineno_2" || {
  5164. # Find who we are. Look in the path if we contain no path at all
  5165. # relative or not.
  5166. case $0 in
  5167. *[\\/]* ) as_myself=$0 ;;
  5168. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5169. for as_dir in $PATH
  5170. do
  5171. IFS=$as_save_IFS
  5172. test -z "$as_dir" && as_dir=.
  5173. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5174. done
  5175. ;;
  5176. esac
  5177. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5178. # in which case we are not to be found in the path.
  5179. if test "x$as_myself" = x; then
  5180. as_myself=$0
  5181. fi
  5182. if test ! -f "$as_myself"; then
  5183. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  5184. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  5185. { (exit 1); exit 1; }; }
  5186. fi
  5187. case $CONFIG_SHELL in
  5188. '')
  5189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5190. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  5191. do
  5192. IFS=$as_save_IFS
  5193. test -z "$as_dir" && as_dir=.
  5194. for as_base in sh bash ksh sh5; do
  5195. case $as_dir in
  5196. /*)
  5197. if ("$as_dir/$as_base" -c '
  5198. as_lineno_1=$LINENO
  5199. as_lineno_2=$LINENO
  5200. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5201. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5202. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  5203. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  5204. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  5205. CONFIG_SHELL=$as_dir/$as_base
  5206. export CONFIG_SHELL
  5207. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  5208. fi;;
  5209. esac
  5210. done
  5211. done
  5212. ;;
  5213. esac
  5214. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5215. # uniformly replaced by the line number. The first 'sed' inserts a
  5216. # line-number line before each line; the second 'sed' does the real
  5217. # work. The second script uses 'N' to pair each line-number line
  5218. # with the numbered line, and appends trailing '-' during
  5219. # substitution so that $LINENO is not a special case at line end.
  5220. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5221. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  5222. sed '=' <$as_myself |
  5223. sed '
  5224. N
  5225. s,$,-,
  5226. : loop
  5227. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  5228. t loop
  5229. s,-$,,
  5230. s,^['$as_cr_digits']*\n,,
  5231. ' >$as_me.lineno &&
  5232. chmod +x $as_me.lineno ||
  5233. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  5234. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  5235. { (exit 1); exit 1; }; }
  5236. # Don't try to exec as it changes $[0], causing all sort of problems
  5237. # (the dirname of $[0] is not the place where we might find the
  5238. # original and so on. Autoconf is especially sensible to this).
  5239. . ./$as_me.lineno
  5240. # Exit status is that of the last command.
  5241. exit
  5242. }
  5243. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  5244. *c*,-n*) ECHO_N= ECHO_C='
  5245. ' ECHO_T=' ' ;;
  5246. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  5247. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  5248. esac
  5249. if expr a : '\(a\)' >/dev/null 2>&1; then
  5250. as_expr=expr
  5251. else
  5252. as_expr=false
  5253. fi
  5254. rm -f conf$$ conf$$.exe conf$$.file
  5255. echo >conf$$.file
  5256. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5257. # We could just check for DJGPP; but this test a) works b) is more generic
  5258. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  5259. if test -f conf$$.exe; then
  5260. # Don't use ln at all; we don't have any links
  5261. as_ln_s='cp -p'
  5262. else
  5263. as_ln_s='ln -s'
  5264. fi
  5265. elif ln conf$$.file conf$$ 2>/dev/null; then
  5266. as_ln_s=ln
  5267. else
  5268. as_ln_s='cp -p'
  5269. fi
  5270. rm -f conf$$ conf$$.exe conf$$.file
  5271. if mkdir -p . 2>/dev/null; then
  5272. as_mkdir_p=:
  5273. else
  5274. test -d ./-p && rmdir ./-p
  5275. as_mkdir_p=false
  5276. fi
  5277. as_executable_p="test -f"
  5278. # Sed expression to map a string onto a valid CPP name.
  5279. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5280. # Sed expression to map a string onto a valid variable name.
  5281. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5282. # IFS
  5283. # We need space, tab and new line, in precisely that order.
  5284. as_nl='
  5285. '
  5286. IFS=" $as_nl"
  5287. # CDPATH.
  5288. $as_unset CDPATH
  5289. exec 6>&1
  5290. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  5291. # report actual input values of CONFIG_FILES etc. instead of their
  5292. # values after options handling. Logging --version etc. is OK.
  5293. exec 5>>config.log
  5294. {
  5295. echo
  5296. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5297. ## Running $as_me. ##
  5298. _ASBOX
  5299. } >&5
  5300. cat >&5 <<_CSEOF
  5301. This file was extended by aria2c $as_me 0.2.1-dev, which was
  5302. generated by GNU Autoconf 2.59. Invocation command line was
  5303. CONFIG_FILES = $CONFIG_FILES
  5304. CONFIG_HEADERS = $CONFIG_HEADERS
  5305. CONFIG_LINKS = $CONFIG_LINKS
  5306. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5307. $ $0 $@
  5308. _CSEOF
  5309. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  5310. echo >&5
  5311. _ACEOF
  5312. # Files that config.status was made for.
  5313. if test -n "$ac_config_files"; then
  5314. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  5315. fi
  5316. if test -n "$ac_config_headers"; then
  5317. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  5318. fi
  5319. if test -n "$ac_config_links"; then
  5320. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  5321. fi
  5322. if test -n "$ac_config_commands"; then
  5323. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  5324. fi
  5325. cat >>$CONFIG_STATUS <<\_ACEOF
  5326. ac_cs_usage="\
  5327. \`$as_me' instantiates files from templates according to the
  5328. current configuration.
  5329. Usage: $0 [OPTIONS] [FILE]...
  5330. -h, --help print this help, then exit
  5331. -V, --version print version number, then exit
  5332. -q, --quiet do not print progress messages
  5333. -d, --debug don't remove temporary files
  5334. --recheck update $as_me by reconfiguring in the same conditions
  5335. --file=FILE[:TEMPLATE]
  5336. instantiate the configuration file FILE
  5337. --header=FILE[:TEMPLATE]
  5338. instantiate the configuration header FILE
  5339. Configuration files:
  5340. $config_files
  5341. Configuration headers:
  5342. $config_headers
  5343. Configuration commands:
  5344. $config_commands
  5345. Report bugs to <bug-autoconf@gnu.org>."
  5346. _ACEOF
  5347. cat >>$CONFIG_STATUS <<_ACEOF
  5348. ac_cs_version="\\
  5349. aria2c config.status 0.2.1-dev
  5350. configured by $0, generated by GNU Autoconf 2.59,
  5351. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5352. Copyright (C) 2003 Free Software Foundation, Inc.
  5353. This config.status script is free software; the Free Software Foundation
  5354. gives unlimited permission to copy, distribute and modify it."
  5355. srcdir=$srcdir
  5356. INSTALL="$INSTALL"
  5357. _ACEOF
  5358. cat >>$CONFIG_STATUS <<\_ACEOF
  5359. # If no file are specified by the user, then we need to provide default
  5360. # value. By we need to know if files were specified by the user.
  5361. ac_need_defaults=:
  5362. while test $# != 0
  5363. do
  5364. case $1 in
  5365. --*=*)
  5366. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5367. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5368. ac_shift=:
  5369. ;;
  5370. -*)
  5371. ac_option=$1
  5372. ac_optarg=$2
  5373. ac_shift=shift
  5374. ;;
  5375. *) # This is not an option, so the user has probably given explicit
  5376. # arguments.
  5377. ac_option=$1
  5378. ac_need_defaults=false;;
  5379. esac
  5380. case $ac_option in
  5381. # Handling of the options.
  5382. _ACEOF
  5383. cat >>$CONFIG_STATUS <<\_ACEOF
  5384. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5385. ac_cs_recheck=: ;;
  5386. --version | --vers* | -V )
  5387. echo "$ac_cs_version"; exit 0 ;;
  5388. --he | --h)
  5389. # Conflict between --help and --header
  5390. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5391. Try \`$0 --help' for more information." >&5
  5392. echo "$as_me: error: ambiguous option: $1
  5393. Try \`$0 --help' for more information." >&2;}
  5394. { (exit 1); exit 1; }; };;
  5395. --help | --hel | -h )
  5396. echo "$ac_cs_usage"; exit 0 ;;
  5397. --debug | --d* | -d )
  5398. debug=: ;;
  5399. --file | --fil | --fi | --f )
  5400. $ac_shift
  5401. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5402. ac_need_defaults=false;;
  5403. --header | --heade | --head | --hea )
  5404. $ac_shift
  5405. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5406. ac_need_defaults=false;;
  5407. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5408. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5409. ac_cs_silent=: ;;
  5410. # This is an error.
  5411. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5412. Try \`$0 --help' for more information." >&5
  5413. echo "$as_me: error: unrecognized option: $1
  5414. Try \`$0 --help' for more information." >&2;}
  5415. { (exit 1); exit 1; }; } ;;
  5416. *) ac_config_targets="$ac_config_targets $1" ;;
  5417. esac
  5418. shift
  5419. done
  5420. ac_configure_extra_args=
  5421. if $ac_cs_silent; then
  5422. exec 6>/dev/null
  5423. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5424. fi
  5425. _ACEOF
  5426. cat >>$CONFIG_STATUS <<_ACEOF
  5427. if \$ac_cs_recheck; then
  5428. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5429. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5430. fi
  5431. _ACEOF
  5432. cat >>$CONFIG_STATUS <<_ACEOF
  5433. #
  5434. # INIT-COMMANDS section.
  5435. #
  5436. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  5437. _ACEOF
  5438. cat >>$CONFIG_STATUS <<\_ACEOF
  5439. for ac_config_target in $ac_config_targets
  5440. do
  5441. case "$ac_config_target" in
  5442. # Handling of arguments.
  5443. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5444. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5445. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  5446. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  5447. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5448. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5449. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5450. { (exit 1); exit 1; }; };;
  5451. esac
  5452. done
  5453. # If the user did not use the arguments to specify the items to instantiate,
  5454. # then the envvar interface is used. Set only those that are not.
  5455. # We use the long form for the default assignment because of an extremely
  5456. # bizarre bug on SunOS 4.1.3.
  5457. if $ac_need_defaults; then
  5458. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5459. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5460. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5461. fi
  5462. # Have a temporary directory for convenience. Make it in the build tree
  5463. # simply because there is no reason to put it here, and in addition,
  5464. # creating and moving files from /tmp can sometimes cause problems.
  5465. # Create a temporary directory, and hook for its removal unless debugging.
  5466. $debug ||
  5467. {
  5468. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5469. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5470. }
  5471. # Create a (secure) tmp directory for tmp files.
  5472. {
  5473. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  5474. test -n "$tmp" && test -d "$tmp"
  5475. } ||
  5476. {
  5477. tmp=./confstat$$-$RANDOM
  5478. (umask 077 && mkdir $tmp)
  5479. } ||
  5480. {
  5481. echo "$me: cannot create a temporary directory in ." >&2
  5482. { (exit 1); exit 1; }
  5483. }
  5484. _ACEOF
  5485. cat >>$CONFIG_STATUS <<_ACEOF
  5486. #
  5487. # CONFIG_FILES section.
  5488. #
  5489. # No need to generate the scripts if there are no CONFIG_FILES.
  5490. # This happens for instance when ./config.status config.h
  5491. if test -n "\$CONFIG_FILES"; then
  5492. # Protect against being on the right side of a sed subst in config.status.
  5493. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5494. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5495. s,@SHELL@,$SHELL,;t t
  5496. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5497. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5498. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5499. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5500. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5501. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5502. s,@exec_prefix@,$exec_prefix,;t t
  5503. s,@prefix@,$prefix,;t t
  5504. s,@program_transform_name@,$program_transform_name,;t t
  5505. s,@bindir@,$bindir,;t t
  5506. s,@sbindir@,$sbindir,;t t
  5507. s,@libexecdir@,$libexecdir,;t t
  5508. s,@datadir@,$datadir,;t t
  5509. s,@sysconfdir@,$sysconfdir,;t t
  5510. s,@sharedstatedir@,$sharedstatedir,;t t
  5511. s,@localstatedir@,$localstatedir,;t t
  5512. s,@libdir@,$libdir,;t t
  5513. s,@includedir@,$includedir,;t t
  5514. s,@oldincludedir@,$oldincludedir,;t t
  5515. s,@infodir@,$infodir,;t t
  5516. s,@mandir@,$mandir,;t t
  5517. s,@build_alias@,$build_alias,;t t
  5518. s,@host_alias@,$host_alias,;t t
  5519. s,@target_alias@,$target_alias,;t t
  5520. s,@DEFS@,$DEFS,;t t
  5521. s,@ECHO_C@,$ECHO_C,;t t
  5522. s,@ECHO_N@,$ECHO_N,;t t
  5523. s,@ECHO_T@,$ECHO_T,;t t
  5524. s,@LIBS@,$LIBS,;t t
  5525. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  5526. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  5527. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  5528. s,@CYGPATH_W@,$CYGPATH_W,;t t
  5529. s,@PACKAGE@,$PACKAGE,;t t
  5530. s,@VERSION@,$VERSION,;t t
  5531. s,@ACLOCAL@,$ACLOCAL,;t t
  5532. s,@AUTOCONF@,$AUTOCONF,;t t
  5533. s,@AUTOMAKE@,$AUTOMAKE,;t t
  5534. s,@AUTOHEADER@,$AUTOHEADER,;t t
  5535. s,@MAKEINFO@,$MAKEINFO,;t t
  5536. s,@install_sh@,$install_sh,;t t
  5537. s,@STRIP@,$STRIP,;t t
  5538. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  5539. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  5540. s,@mkdir_p@,$mkdir_p,;t t
  5541. s,@AWK@,$AWK,;t t
  5542. s,@SET_MAKE@,$SET_MAKE,;t t
  5543. s,@am__leading_dot@,$am__leading_dot,;t t
  5544. s,@AMTAR@,$AMTAR,;t t
  5545. s,@am__tar@,$am__tar,;t t
  5546. s,@am__untar@,$am__untar,;t t
  5547. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  5548. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  5549. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  5550. s,@RANLIB@,$RANLIB,;t t
  5551. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  5552. s,@CXX@,$CXX,;t t
  5553. s,@CXXFLAGS@,$CXXFLAGS,;t t
  5554. s,@LDFLAGS@,$LDFLAGS,;t t
  5555. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5556. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  5557. s,@EXEEXT@,$EXEEXT,;t t
  5558. s,@OBJEXT@,$OBJEXT,;t t
  5559. s,@DEPDIR@,$DEPDIR,;t t
  5560. s,@am__include@,$am__include,;t t
  5561. s,@am__quote@,$am__quote,;t t
  5562. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  5563. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  5564. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  5565. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  5566. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  5567. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  5568. s,@CC@,$CC,;t t
  5569. s,@CFLAGS@,$CFLAGS,;t t
  5570. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5571. s,@CCDEPMODE@,$CCDEPMODE,;t t
  5572. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  5573. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  5574. s,@AR@,$AR,;t t
  5575. s,@ac_ct_AR@,$ac_ct_AR,;t t
  5576. s,@CPP@,$CPP,;t t
  5577. s,@EGREP@,$EGREP,;t t
  5578. s,@LIBOBJS@,$LIBOBJS,;t t
  5579. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  5580. CEOF
  5581. _ACEOF
  5582. cat >>$CONFIG_STATUS <<\_ACEOF
  5583. # Split the substitutions into bite-sized pieces for seds with
  5584. # small command number limits, like on Digital OSF/1 and HP-UX.
  5585. ac_max_sed_lines=48
  5586. ac_sed_frag=1 # Number of current file.
  5587. ac_beg=1 # First line for current file.
  5588. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5589. ac_more_lines=:
  5590. ac_sed_cmds=
  5591. while $ac_more_lines; do
  5592. if test $ac_beg -gt 1; then
  5593. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5594. else
  5595. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5596. fi
  5597. if test ! -s $tmp/subs.frag; then
  5598. ac_more_lines=false
  5599. else
  5600. # The purpose of the label and of the branching condition is to
  5601. # speed up the sed processing (if there are no `@' at all, there
  5602. # is no need to browse any of the substitutions).
  5603. # These are the two extra sed commands mentioned above.
  5604. (echo ':t
  5605. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5606. if test -z "$ac_sed_cmds"; then
  5607. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5608. else
  5609. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5610. fi
  5611. ac_sed_frag=`expr $ac_sed_frag + 1`
  5612. ac_beg=$ac_end
  5613. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5614. fi
  5615. done
  5616. if test -z "$ac_sed_cmds"; then
  5617. ac_sed_cmds=cat
  5618. fi
  5619. fi # test -n "$CONFIG_FILES"
  5620. _ACEOF
  5621. cat >>$CONFIG_STATUS <<\_ACEOF
  5622. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5623. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5624. case $ac_file in
  5625. - | *:- | *:-:* ) # input from stdin
  5626. cat >$tmp/stdin
  5627. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5628. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5629. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5630. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5631. * ) ac_file_in=$ac_file.in ;;
  5632. esac
  5633. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5634. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5635. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5636. X"$ac_file" : 'X\(//\)[^/]' \| \
  5637. X"$ac_file" : 'X\(//\)$' \| \
  5638. X"$ac_file" : 'X\(/\)' \| \
  5639. . : '\(.\)' 2>/dev/null ||
  5640. echo X"$ac_file" |
  5641. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5642. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5643. /^X\(\/\/\)$/{ s//\1/; q; }
  5644. /^X\(\/\).*/{ s//\1/; q; }
  5645. s/.*/./; q'`
  5646. { if $as_mkdir_p; then
  5647. mkdir -p "$ac_dir"
  5648. else
  5649. as_dir="$ac_dir"
  5650. as_dirs=
  5651. while test ! -d "$as_dir"; do
  5652. as_dirs="$as_dir $as_dirs"
  5653. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5654. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5655. X"$as_dir" : 'X\(//\)[^/]' \| \
  5656. X"$as_dir" : 'X\(//\)$' \| \
  5657. X"$as_dir" : 'X\(/\)' \| \
  5658. . : '\(.\)' 2>/dev/null ||
  5659. echo X"$as_dir" |
  5660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5661. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5662. /^X\(\/\/\)$/{ s//\1/; q; }
  5663. /^X\(\/\).*/{ s//\1/; q; }
  5664. s/.*/./; q'`
  5665. done
  5666. test ! -n "$as_dirs" || mkdir $as_dirs
  5667. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5668. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5669. { (exit 1); exit 1; }; }; }
  5670. ac_builddir=.
  5671. if test "$ac_dir" != .; then
  5672. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5673. # A "../" for each directory in $ac_dir_suffix.
  5674. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5675. else
  5676. ac_dir_suffix= ac_top_builddir=
  5677. fi
  5678. case $srcdir in
  5679. .) # No --srcdir option. We are building in place.
  5680. ac_srcdir=.
  5681. if test -z "$ac_top_builddir"; then
  5682. ac_top_srcdir=.
  5683. else
  5684. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5685. fi ;;
  5686. [\\/]* | ?:[\\/]* ) # Absolute path.
  5687. ac_srcdir=$srcdir$ac_dir_suffix;
  5688. ac_top_srcdir=$srcdir ;;
  5689. *) # Relative path.
  5690. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5691. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5692. esac
  5693. # Do not use `cd foo && pwd` to compute absolute paths, because
  5694. # the directories may not exist.
  5695. case `pwd` in
  5696. .) ac_abs_builddir="$ac_dir";;
  5697. *)
  5698. case "$ac_dir" in
  5699. .) ac_abs_builddir=`pwd`;;
  5700. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  5701. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  5702. esac;;
  5703. esac
  5704. case $ac_abs_builddir in
  5705. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  5706. *)
  5707. case ${ac_top_builddir}. in
  5708. .) ac_abs_top_builddir=$ac_abs_builddir;;
  5709. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  5710. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  5711. esac;;
  5712. esac
  5713. case $ac_abs_builddir in
  5714. .) ac_abs_srcdir=$ac_srcdir;;
  5715. *)
  5716. case $ac_srcdir in
  5717. .) ac_abs_srcdir=$ac_abs_builddir;;
  5718. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  5719. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  5720. esac;;
  5721. esac
  5722. case $ac_abs_builddir in
  5723. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  5724. *)
  5725. case $ac_top_srcdir in
  5726. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  5727. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  5728. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  5729. esac;;
  5730. esac
  5731. case $INSTALL in
  5732. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5733. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  5734. esac
  5735. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5736. # use $as_me), people would be surprised to read:
  5737. # /* config.h. Generated by config.status. */
  5738. if test x"$ac_file" = x-; then
  5739. configure_input=
  5740. else
  5741. configure_input="$ac_file. "
  5742. fi
  5743. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5744. sed 's,.*/,,'` by configure."
  5745. # First look for the input files in the build tree, otherwise in the
  5746. # src tree.
  5747. ac_file_inputs=`IFS=:
  5748. for f in $ac_file_in; do
  5749. case $f in
  5750. -) echo $tmp/stdin ;;
  5751. [\\/$]*)
  5752. # Absolute (can't be DOS-style, as IFS=:)
  5753. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5754. echo "$as_me: error: cannot find input file: $f" >&2;}
  5755. { (exit 1); exit 1; }; }
  5756. echo "$f";;
  5757. *) # Relative
  5758. if test -f "$f"; then
  5759. # Build tree
  5760. echo "$f"
  5761. elif test -f "$srcdir/$f"; then
  5762. # Source tree
  5763. echo "$srcdir/$f"
  5764. else
  5765. # /dev/null tree
  5766. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5767. echo "$as_me: error: cannot find input file: $f" >&2;}
  5768. { (exit 1); exit 1; }; }
  5769. fi;;
  5770. esac
  5771. done` || { (exit 1); exit 1; }
  5772. if test x"$ac_file" != x-; then
  5773. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5774. echo "$as_me: creating $ac_file" >&6;}
  5775. rm -f "$ac_file"
  5776. fi
  5777. _ACEOF
  5778. cat >>$CONFIG_STATUS <<_ACEOF
  5779. sed "$ac_vpsub
  5780. $extrasub
  5781. _ACEOF
  5782. cat >>$CONFIG_STATUS <<\_ACEOF
  5783. :t
  5784. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5785. s,@configure_input@,$configure_input,;t t
  5786. s,@srcdir@,$ac_srcdir,;t t
  5787. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5788. s,@top_srcdir@,$ac_top_srcdir,;t t
  5789. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5790. s,@builddir@,$ac_builddir,;t t
  5791. s,@abs_builddir@,$ac_abs_builddir,;t t
  5792. s,@top_builddir@,$ac_top_builddir,;t t
  5793. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5794. s,@INSTALL@,$ac_INSTALL,;t t
  5795. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5796. rm -f $tmp/stdin
  5797. if test x"$ac_file" != x-; then
  5798. mv $tmp/out $ac_file
  5799. else
  5800. cat $tmp/out
  5801. rm -f $tmp/out
  5802. fi
  5803. done
  5804. _ACEOF
  5805. cat >>$CONFIG_STATUS <<\_ACEOF
  5806. #
  5807. # CONFIG_HEADER section.
  5808. #
  5809. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5810. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5811. #
  5812. # ac_d sets the value in "#define NAME VALUE" lines.
  5813. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  5814. ac_dB='[ ].*$,\1#\2'
  5815. ac_dC=' '
  5816. ac_dD=',;t'
  5817. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5818. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  5819. ac_uB='$,\1#\2define\3'
  5820. ac_uC=' '
  5821. ac_uD=',;t'
  5822. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  5823. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5824. case $ac_file in
  5825. - | *:- | *:-:* ) # input from stdin
  5826. cat >$tmp/stdin
  5827. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5828. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5829. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5830. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5831. * ) ac_file_in=$ac_file.in ;;
  5832. esac
  5833. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  5834. echo "$as_me: creating $ac_file" >&6;}
  5835. # First look for the input files in the build tree, otherwise in the
  5836. # src tree.
  5837. ac_file_inputs=`IFS=:
  5838. for f in $ac_file_in; do
  5839. case $f in
  5840. -) echo $tmp/stdin ;;
  5841. [\\/$]*)
  5842. # Absolute (can't be DOS-style, as IFS=:)
  5843. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5844. echo "$as_me: error: cannot find input file: $f" >&2;}
  5845. { (exit 1); exit 1; }; }
  5846. # Do quote $f, to prevent DOS paths from being IFS'd.
  5847. echo "$f";;
  5848. *) # Relative
  5849. if test -f "$f"; then
  5850. # Build tree
  5851. echo "$f"
  5852. elif test -f "$srcdir/$f"; then
  5853. # Source tree
  5854. echo "$srcdir/$f"
  5855. else
  5856. # /dev/null tree
  5857. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5858. echo "$as_me: error: cannot find input file: $f" >&2;}
  5859. { (exit 1); exit 1; }; }
  5860. fi;;
  5861. esac
  5862. done` || { (exit 1); exit 1; }
  5863. # Remove the trailing spaces.
  5864. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  5865. _ACEOF
  5866. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  5867. # `conftest.undefs', that substitutes the proper values into
  5868. # config.h.in to produce config.h. The first handles `#define'
  5869. # templates, and the second `#undef' templates.
  5870. # And first: Protect against being on the right side of a sed subst in
  5871. # config.status. Protect against being in an unquoted here document
  5872. # in config.status.
  5873. rm -f conftest.defines conftest.undefs
  5874. # Using a here document instead of a string reduces the quoting nightmare.
  5875. # Putting comments in sed scripts is not portable.
  5876. #
  5877. # `end' is used to avoid that the second main sed command (meant for
  5878. # 0-ary CPP macros) applies to n-ary macro definitions.
  5879. # See the Autoconf documentation for `clear'.
  5880. cat >confdef2sed.sed <<\_ACEOF
  5881. s/[\\&,]/\\&/g
  5882. s,[\\$`],\\&,g
  5883. t clear
  5884. : clear
  5885. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  5886. t end
  5887. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  5888. : end
  5889. _ACEOF
  5890. # If some macros were called several times there might be several times
  5891. # the same #defines, which is useless. Nevertheless, we may not want to
  5892. # sort them, since we want the *last* AC-DEFINE to be honored.
  5893. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  5894. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  5895. rm -f confdef2sed.sed
  5896. # This sed command replaces #undef with comments. This is necessary, for
  5897. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5898. # on some systems where configure will not decide to define it.
  5899. cat >>conftest.undefs <<\_ACEOF
  5900. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5901. _ACEOF
  5902. # Break up conftest.defines because some shells have a limit on the size
  5903. # of here documents, and old seds have small limits too (100 cmds).
  5904. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  5905. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  5906. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  5907. echo ' :' >>$CONFIG_STATUS
  5908. rm -f conftest.tail
  5909. while grep . conftest.defines >/dev/null
  5910. do
  5911. # Write a limited-size here document to $tmp/defines.sed.
  5912. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  5913. # Speed up: don't consider the non `#define' lines.
  5914. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  5915. # Work around the forget-to-reset-the-flag bug.
  5916. echo 't clr' >>$CONFIG_STATUS
  5917. echo ': clr' >>$CONFIG_STATUS
  5918. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  5919. echo 'CEOF
  5920. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  5921. rm -f $tmp/in
  5922. mv $tmp/out $tmp/in
  5923. ' >>$CONFIG_STATUS
  5924. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  5925. rm -f conftest.defines
  5926. mv conftest.tail conftest.defines
  5927. done
  5928. rm -f conftest.defines
  5929. echo ' fi # grep' >>$CONFIG_STATUS
  5930. echo >>$CONFIG_STATUS
  5931. # Break up conftest.undefs because some shells have a limit on the size
  5932. # of here documents, and old seds have small limits too (100 cmds).
  5933. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  5934. rm -f conftest.tail
  5935. while grep . conftest.undefs >/dev/null
  5936. do
  5937. # Write a limited-size here document to $tmp/undefs.sed.
  5938. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  5939. # Speed up: don't consider the non `#undef'
  5940. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  5941. # Work around the forget-to-reset-the-flag bug.
  5942. echo 't clr' >>$CONFIG_STATUS
  5943. echo ': clr' >>$CONFIG_STATUS
  5944. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  5945. echo 'CEOF
  5946. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  5947. rm -f $tmp/in
  5948. mv $tmp/out $tmp/in
  5949. ' >>$CONFIG_STATUS
  5950. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  5951. rm -f conftest.undefs
  5952. mv conftest.tail conftest.undefs
  5953. done
  5954. rm -f conftest.undefs
  5955. cat >>$CONFIG_STATUS <<\_ACEOF
  5956. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5957. # use $as_me), people would be surprised to read:
  5958. # /* config.h. Generated by config.status. */
  5959. if test x"$ac_file" = x-; then
  5960. echo "/* Generated by configure. */" >$tmp/config.h
  5961. else
  5962. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  5963. fi
  5964. cat $tmp/in >>$tmp/config.h
  5965. rm -f $tmp/in
  5966. if test x"$ac_file" != x-; then
  5967. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  5968. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5969. echo "$as_me: $ac_file is unchanged" >&6;}
  5970. else
  5971. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5972. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5973. X"$ac_file" : 'X\(//\)[^/]' \| \
  5974. X"$ac_file" : 'X\(//\)$' \| \
  5975. X"$ac_file" : 'X\(/\)' \| \
  5976. . : '\(.\)' 2>/dev/null ||
  5977. echo X"$ac_file" |
  5978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5979. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5980. /^X\(\/\/\)$/{ s//\1/; q; }
  5981. /^X\(\/\).*/{ s//\1/; q; }
  5982. s/.*/./; q'`
  5983. { if $as_mkdir_p; then
  5984. mkdir -p "$ac_dir"
  5985. else
  5986. as_dir="$ac_dir"
  5987. as_dirs=
  5988. while test ! -d "$as_dir"; do
  5989. as_dirs="$as_dir $as_dirs"
  5990. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5991. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5992. X"$as_dir" : 'X\(//\)[^/]' \| \
  5993. X"$as_dir" : 'X\(//\)$' \| \
  5994. X"$as_dir" : 'X\(/\)' \| \
  5995. . : '\(.\)' 2>/dev/null ||
  5996. echo X"$as_dir" |
  5997. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5998. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5999. /^X\(\/\/\)$/{ s//\1/; q; }
  6000. /^X\(\/\).*/{ s//\1/; q; }
  6001. s/.*/./; q'`
  6002. done
  6003. test ! -n "$as_dirs" || mkdir $as_dirs
  6004. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6005. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6006. { (exit 1); exit 1; }; }; }
  6007. rm -f $ac_file
  6008. mv $tmp/config.h $ac_file
  6009. fi
  6010. else
  6011. cat $tmp/config.h
  6012. rm -f $tmp/config.h
  6013. fi
  6014. # Compute $ac_file's index in $config_headers.
  6015. _am_stamp_count=1
  6016. for _am_header in $config_headers :; do
  6017. case $_am_header in
  6018. $ac_file | $ac_file:* )
  6019. break ;;
  6020. * )
  6021. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6022. esac
  6023. done
  6024. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  6025. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6026. X$ac_file : 'X\(//\)[^/]' \| \
  6027. X$ac_file : 'X\(//\)$' \| \
  6028. X$ac_file : 'X\(/\)' \| \
  6029. . : '\(.\)' 2>/dev/null ||
  6030. echo X$ac_file |
  6031. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6032. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6033. /^X\(\/\/\)$/{ s//\1/; q; }
  6034. /^X\(\/\).*/{ s//\1/; q; }
  6035. s/.*/./; q'`/stamp-h$_am_stamp_count
  6036. done
  6037. _ACEOF
  6038. cat >>$CONFIG_STATUS <<\_ACEOF
  6039. #
  6040. # CONFIG_COMMANDS section.
  6041. #
  6042. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  6043. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  6044. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6045. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  6046. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6047. X"$ac_dest" : 'X\(//\)[^/]' \| \
  6048. X"$ac_dest" : 'X\(//\)$' \| \
  6049. X"$ac_dest" : 'X\(/\)' \| \
  6050. . : '\(.\)' 2>/dev/null ||
  6051. echo X"$ac_dest" |
  6052. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6053. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6054. /^X\(\/\/\)$/{ s//\1/; q; }
  6055. /^X\(\/\).*/{ s//\1/; q; }
  6056. s/.*/./; q'`
  6057. { if $as_mkdir_p; then
  6058. mkdir -p "$ac_dir"
  6059. else
  6060. as_dir="$ac_dir"
  6061. as_dirs=
  6062. while test ! -d "$as_dir"; do
  6063. as_dirs="$as_dir $as_dirs"
  6064. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6065. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6066. X"$as_dir" : 'X\(//\)[^/]' \| \
  6067. X"$as_dir" : 'X\(//\)$' \| \
  6068. X"$as_dir" : 'X\(/\)' \| \
  6069. . : '\(.\)' 2>/dev/null ||
  6070. echo X"$as_dir" |
  6071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6072. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6073. /^X\(\/\/\)$/{ s//\1/; q; }
  6074. /^X\(\/\).*/{ s//\1/; q; }
  6075. s/.*/./; q'`
  6076. done
  6077. test ! -n "$as_dirs" || mkdir $as_dirs
  6078. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6079. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6080. { (exit 1); exit 1; }; }; }
  6081. ac_builddir=.
  6082. if test "$ac_dir" != .; then
  6083. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6084. # A "../" for each directory in $ac_dir_suffix.
  6085. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  6086. else
  6087. ac_dir_suffix= ac_top_builddir=
  6088. fi
  6089. case $srcdir in
  6090. .) # No --srcdir option. We are building in place.
  6091. ac_srcdir=.
  6092. if test -z "$ac_top_builddir"; then
  6093. ac_top_srcdir=.
  6094. else
  6095. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  6096. fi ;;
  6097. [\\/]* | ?:[\\/]* ) # Absolute path.
  6098. ac_srcdir=$srcdir$ac_dir_suffix;
  6099. ac_top_srcdir=$srcdir ;;
  6100. *) # Relative path.
  6101. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  6102. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  6103. esac
  6104. # Do not use `cd foo && pwd` to compute absolute paths, because
  6105. # the directories may not exist.
  6106. case `pwd` in
  6107. .) ac_abs_builddir="$ac_dir";;
  6108. *)
  6109. case "$ac_dir" in
  6110. .) ac_abs_builddir=`pwd`;;
  6111. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  6112. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  6113. esac;;
  6114. esac
  6115. case $ac_abs_builddir in
  6116. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  6117. *)
  6118. case ${ac_top_builddir}. in
  6119. .) ac_abs_top_builddir=$ac_abs_builddir;;
  6120. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  6121. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  6122. esac;;
  6123. esac
  6124. case $ac_abs_builddir in
  6125. .) ac_abs_srcdir=$ac_srcdir;;
  6126. *)
  6127. case $ac_srcdir in
  6128. .) ac_abs_srcdir=$ac_abs_builddir;;
  6129. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  6130. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  6131. esac;;
  6132. esac
  6133. case $ac_abs_builddir in
  6134. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  6135. *)
  6136. case $ac_top_srcdir in
  6137. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  6138. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  6139. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  6140. esac;;
  6141. esac
  6142. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  6143. echo "$as_me: executing $ac_dest commands" >&6;}
  6144. case $ac_dest in
  6145. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  6146. # Strip MF so we end up with the name of the file.
  6147. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6148. # Check whether this is an Automake generated Makefile or not.
  6149. # We used to match only the files named `Makefile.in', but
  6150. # some people rename them; so instead we look at the file content.
  6151. # Grep'ing the first line is not enough: some people post-process
  6152. # each Makefile.in and add a new line on top of each file to say so.
  6153. # So let's grep whole file.
  6154. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  6155. dirpart=`(dirname "$mf") 2>/dev/null ||
  6156. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6157. X"$mf" : 'X\(//\)[^/]' \| \
  6158. X"$mf" : 'X\(//\)$' \| \
  6159. X"$mf" : 'X\(/\)' \| \
  6160. . : '\(.\)' 2>/dev/null ||
  6161. echo X"$mf" |
  6162. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6163. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6164. /^X\(\/\/\)$/{ s//\1/; q; }
  6165. /^X\(\/\).*/{ s//\1/; q; }
  6166. s/.*/./; q'`
  6167. else
  6168. continue
  6169. fi
  6170. # Extract the definition of DEPDIR, am__include, and am__quote
  6171. # from the Makefile without running `make'.
  6172. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6173. test -z "$DEPDIR" && continue
  6174. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6175. test -z "am__include" && continue
  6176. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6177. # When using ansi2knr, U may be empty or an underscore; expand it
  6178. U=`sed -n 's/^U = //p' < "$mf"`
  6179. # Find all dependency output files, they are included files with
  6180. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6181. # simplest approach to changing $(DEPDIR) to its actual value in the
  6182. # expansion.
  6183. for file in `sed -n "
  6184. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6185. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6186. # Make sure the directory exists.
  6187. test -f "$dirpart/$file" && continue
  6188. fdir=`(dirname "$file") 2>/dev/null ||
  6189. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6190. X"$file" : 'X\(//\)[^/]' \| \
  6191. X"$file" : 'X\(//\)$' \| \
  6192. X"$file" : 'X\(/\)' \| \
  6193. . : '\(.\)' 2>/dev/null ||
  6194. echo X"$file" |
  6195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6196. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6197. /^X\(\/\/\)$/{ s//\1/; q; }
  6198. /^X\(\/\).*/{ s//\1/; q; }
  6199. s/.*/./; q'`
  6200. { if $as_mkdir_p; then
  6201. mkdir -p $dirpart/$fdir
  6202. else
  6203. as_dir=$dirpart/$fdir
  6204. as_dirs=
  6205. while test ! -d "$as_dir"; do
  6206. as_dirs="$as_dir $as_dirs"
  6207. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6208. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6209. X"$as_dir" : 'X\(//\)[^/]' \| \
  6210. X"$as_dir" : 'X\(//\)$' \| \
  6211. X"$as_dir" : 'X\(/\)' \| \
  6212. . : '\(.\)' 2>/dev/null ||
  6213. echo X"$as_dir" |
  6214. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6215. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6216. /^X\(\/\/\)$/{ s//\1/; q; }
  6217. /^X\(\/\).*/{ s//\1/; q; }
  6218. s/.*/./; q'`
  6219. done
  6220. test ! -n "$as_dirs" || mkdir $as_dirs
  6221. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  6222. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  6223. { (exit 1); exit 1; }; }; }
  6224. # echo "creating $dirpart/$file"
  6225. echo '# dummy' > "$dirpart/$file"
  6226. done
  6227. done
  6228. ;;
  6229. esac
  6230. done
  6231. _ACEOF
  6232. cat >>$CONFIG_STATUS <<\_ACEOF
  6233. { (exit 0); exit 0; }
  6234. _ACEOF
  6235. chmod +x $CONFIG_STATUS
  6236. ac_clean_files=$ac_clean_files_save
  6237. # configure is writing to config.log, and then calls config.status.
  6238. # config.status does its own redirection, appending to config.log.
  6239. # Unfortunately, on DOS this fails, as config.log is still kept open
  6240. # by configure, so config.status won't be able to write to it; its
  6241. # output is simply discarded. So we exec the FD to /dev/null,
  6242. # effectively closing config.log, so it can be properly (re)opened and
  6243. # appended to by config.status. When coming back to configure, we
  6244. # need to make the FD available again.
  6245. if test "$no_create" != yes; then
  6246. ac_cs_success=:
  6247. ac_config_status_args=
  6248. test "$silent" = yes &&
  6249. ac_config_status_args="$ac_config_status_args --quiet"
  6250. exec 5>/dev/null
  6251. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6252. exec 5>>config.log
  6253. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6254. # would make configure fail if this is the last instruction.
  6255. $ac_cs_success || { (exit 1); exit 1; }
  6256. fi