configure 202 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924
  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. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3199. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3200. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. fi
  3206. fi
  3207. AR=$ac_cv_prog_AR
  3208. if test -n "$AR"; then
  3209. echo "$as_me:$LINENO: result: $AR" >&5
  3210. echo "${ECHO_T}$AR" >&6
  3211. else
  3212. echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6
  3214. fi
  3215. fi
  3216. if test -z "$ac_cv_prog_AR"; then
  3217. ac_ct_AR=$AR
  3218. # Extract the first word of "ar", so it can be a program name with args.
  3219. set dummy ar; ac_word=$2
  3220. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3221. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3222. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3223. echo $ECHO_N "(cached) $ECHO_C" >&6
  3224. else
  3225. if test -n "$ac_ct_AR"; then
  3226. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3227. else
  3228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3229. for as_dir in $PATH
  3230. do
  3231. IFS=$as_save_IFS
  3232. test -z "$as_dir" && as_dir=.
  3233. for ac_exec_ext in '' $ac_executable_extensions; do
  3234. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3235. ac_cv_prog_ac_ct_AR="ar"
  3236. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3237. break 2
  3238. fi
  3239. done
  3240. done
  3241. fi
  3242. fi
  3243. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3244. if test -n "$ac_ct_AR"; then
  3245. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3246. echo "${ECHO_T}$ac_ct_AR" >&6
  3247. else
  3248. echo "$as_me:$LINENO: result: no" >&5
  3249. echo "${ECHO_T}no" >&6
  3250. fi
  3251. AR=$ac_ct_AR
  3252. else
  3253. AR="$ac_cv_prog_AR"
  3254. fi
  3255. # Checks for libraries.
  3256. if test "x$enable_ssl" = "xyes"; then
  3257. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  3258. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  3259. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  3260. echo $ECHO_N "(cached) $ECHO_C" >&6
  3261. else
  3262. ac_check_lib_save_LIBS=$LIBS
  3263. LIBS="-lssl $LIBS"
  3264. cat >conftest.$ac_ext <<_ACEOF
  3265. /* confdefs.h. */
  3266. _ACEOF
  3267. cat confdefs.h >>conftest.$ac_ext
  3268. cat >>conftest.$ac_ext <<_ACEOF
  3269. /* end confdefs.h. */
  3270. /* Override any gcc2 internal prototype to avoid an error. */
  3271. #ifdef __cplusplus
  3272. extern "C"
  3273. #endif
  3274. /* We use char because int might match the return type of a gcc2
  3275. builtin and then its argument prototype would still apply. */
  3276. char SSL_library_init ();
  3277. int
  3278. main ()
  3279. {
  3280. SSL_library_init ();
  3281. ;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. rm -f conftest.$ac_objext conftest$ac_exeext
  3286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3287. (eval $ac_link) 2>conftest.er1
  3288. ac_status=$?
  3289. grep -v '^ *+' conftest.er1 >conftest.err
  3290. rm -f conftest.er1
  3291. cat conftest.err >&5
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); } &&
  3294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3296. (eval $ac_try) 2>&5
  3297. ac_status=$?
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); }; } &&
  3300. { ac_try='test -s conftest$ac_exeext'
  3301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3302. (eval $ac_try) 2>&5
  3303. ac_status=$?
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); }; }; then
  3306. ac_cv_lib_ssl_SSL_library_init=yes
  3307. else
  3308. echo "$as_me: failed program was:" >&5
  3309. sed 's/^/| /' conftest.$ac_ext >&5
  3310. ac_cv_lib_ssl_SSL_library_init=no
  3311. fi
  3312. rm -f conftest.err conftest.$ac_objext \
  3313. conftest$ac_exeext conftest.$ac_ext
  3314. LIBS=$ac_check_lib_save_LIBS
  3315. fi
  3316. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  3317. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  3318. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  3319. cat >>confdefs.h <<_ACEOF
  3320. #define HAVE_LIBSSL 1
  3321. _ACEOF
  3322. LIBS="-lssl $LIBS"
  3323. fi
  3324. fi
  3325. # Checks for header files.
  3326. ac_ext=c
  3327. ac_cpp='$CPP $CPPFLAGS'
  3328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3331. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3332. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3333. # On Suns, sometimes $CPP names a directory.
  3334. if test -n "$CPP" && test -d "$CPP"; then
  3335. CPP=
  3336. fi
  3337. if test -z "$CPP"; then
  3338. if test "${ac_cv_prog_CPP+set}" = set; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. # Double quotes because CPP needs to be expanded
  3342. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3343. do
  3344. ac_preproc_ok=false
  3345. for ac_c_preproc_warn_flag in '' yes
  3346. do
  3347. # Use a header file that comes with gcc, so configuring glibc
  3348. # with a fresh cross-compiler works.
  3349. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3350. # <limits.h> exists even on freestanding compilers.
  3351. # On the NeXT, cc -E runs the code through the compiler's parser,
  3352. # not just through cpp. "Syntax error" is here to catch this case.
  3353. cat >conftest.$ac_ext <<_ACEOF
  3354. /* confdefs.h. */
  3355. _ACEOF
  3356. cat confdefs.h >>conftest.$ac_ext
  3357. cat >>conftest.$ac_ext <<_ACEOF
  3358. /* end confdefs.h. */
  3359. #ifdef __STDC__
  3360. # include <limits.h>
  3361. #else
  3362. # include <assert.h>
  3363. #endif
  3364. Syntax error
  3365. _ACEOF
  3366. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3367. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3368. ac_status=$?
  3369. grep -v '^ *+' conftest.er1 >conftest.err
  3370. rm -f conftest.er1
  3371. cat conftest.err >&5
  3372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3373. (exit $ac_status); } >/dev/null; then
  3374. if test -s conftest.err; then
  3375. ac_cpp_err=$ac_c_preproc_warn_flag
  3376. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3377. else
  3378. ac_cpp_err=
  3379. fi
  3380. else
  3381. ac_cpp_err=yes
  3382. fi
  3383. if test -z "$ac_cpp_err"; then
  3384. :
  3385. else
  3386. echo "$as_me: failed program was:" >&5
  3387. sed 's/^/| /' conftest.$ac_ext >&5
  3388. # Broken: fails on valid input.
  3389. continue
  3390. fi
  3391. rm -f conftest.err conftest.$ac_ext
  3392. # OK, works on sane cases. Now check whether non-existent headers
  3393. # can be detected and how.
  3394. cat >conftest.$ac_ext <<_ACEOF
  3395. /* confdefs.h. */
  3396. _ACEOF
  3397. cat confdefs.h >>conftest.$ac_ext
  3398. cat >>conftest.$ac_ext <<_ACEOF
  3399. /* end confdefs.h. */
  3400. #include <ac_nonexistent.h>
  3401. _ACEOF
  3402. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3403. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3404. ac_status=$?
  3405. grep -v '^ *+' conftest.er1 >conftest.err
  3406. rm -f conftest.er1
  3407. cat conftest.err >&5
  3408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3409. (exit $ac_status); } >/dev/null; then
  3410. if test -s conftest.err; then
  3411. ac_cpp_err=$ac_c_preproc_warn_flag
  3412. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3413. else
  3414. ac_cpp_err=
  3415. fi
  3416. else
  3417. ac_cpp_err=yes
  3418. fi
  3419. if test -z "$ac_cpp_err"; then
  3420. # Broken: success on invalid input.
  3421. continue
  3422. else
  3423. echo "$as_me: failed program was:" >&5
  3424. sed 's/^/| /' conftest.$ac_ext >&5
  3425. # Passes both tests.
  3426. ac_preproc_ok=:
  3427. break
  3428. fi
  3429. rm -f conftest.err conftest.$ac_ext
  3430. done
  3431. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3432. rm -f conftest.err conftest.$ac_ext
  3433. if $ac_preproc_ok; then
  3434. break
  3435. fi
  3436. done
  3437. ac_cv_prog_CPP=$CPP
  3438. fi
  3439. CPP=$ac_cv_prog_CPP
  3440. else
  3441. ac_cv_prog_CPP=$CPP
  3442. fi
  3443. echo "$as_me:$LINENO: result: $CPP" >&5
  3444. echo "${ECHO_T}$CPP" >&6
  3445. ac_preproc_ok=false
  3446. for ac_c_preproc_warn_flag in '' yes
  3447. do
  3448. # Use a header file that comes with gcc, so configuring glibc
  3449. # with a fresh cross-compiler works.
  3450. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3451. # <limits.h> exists even on freestanding compilers.
  3452. # On the NeXT, cc -E runs the code through the compiler's parser,
  3453. # not just through cpp. "Syntax error" is here to catch this case.
  3454. cat >conftest.$ac_ext <<_ACEOF
  3455. /* confdefs.h. */
  3456. _ACEOF
  3457. cat confdefs.h >>conftest.$ac_ext
  3458. cat >>conftest.$ac_ext <<_ACEOF
  3459. /* end confdefs.h. */
  3460. #ifdef __STDC__
  3461. # include <limits.h>
  3462. #else
  3463. # include <assert.h>
  3464. #endif
  3465. Syntax error
  3466. _ACEOF
  3467. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3468. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3469. ac_status=$?
  3470. grep -v '^ *+' conftest.er1 >conftest.err
  3471. rm -f conftest.er1
  3472. cat conftest.err >&5
  3473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3474. (exit $ac_status); } >/dev/null; then
  3475. if test -s conftest.err; then
  3476. ac_cpp_err=$ac_c_preproc_warn_flag
  3477. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3478. else
  3479. ac_cpp_err=
  3480. fi
  3481. else
  3482. ac_cpp_err=yes
  3483. fi
  3484. if test -z "$ac_cpp_err"; then
  3485. :
  3486. else
  3487. echo "$as_me: failed program was:" >&5
  3488. sed 's/^/| /' conftest.$ac_ext >&5
  3489. # Broken: fails on valid input.
  3490. continue
  3491. fi
  3492. rm -f conftest.err conftest.$ac_ext
  3493. # OK, works on sane cases. Now check whether non-existent headers
  3494. # can be detected and how.
  3495. cat >conftest.$ac_ext <<_ACEOF
  3496. /* confdefs.h. */
  3497. _ACEOF
  3498. cat confdefs.h >>conftest.$ac_ext
  3499. cat >>conftest.$ac_ext <<_ACEOF
  3500. /* end confdefs.h. */
  3501. #include <ac_nonexistent.h>
  3502. _ACEOF
  3503. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3504. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3505. ac_status=$?
  3506. grep -v '^ *+' conftest.er1 >conftest.err
  3507. rm -f conftest.er1
  3508. cat conftest.err >&5
  3509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3510. (exit $ac_status); } >/dev/null; then
  3511. if test -s conftest.err; then
  3512. ac_cpp_err=$ac_c_preproc_warn_flag
  3513. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3514. else
  3515. ac_cpp_err=
  3516. fi
  3517. else
  3518. ac_cpp_err=yes
  3519. fi
  3520. if test -z "$ac_cpp_err"; then
  3521. # Broken: success on invalid input.
  3522. continue
  3523. else
  3524. echo "$as_me: failed program was:" >&5
  3525. sed 's/^/| /' conftest.$ac_ext >&5
  3526. # Passes both tests.
  3527. ac_preproc_ok=:
  3528. break
  3529. fi
  3530. rm -f conftest.err conftest.$ac_ext
  3531. done
  3532. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3533. rm -f conftest.err conftest.$ac_ext
  3534. if $ac_preproc_ok; then
  3535. :
  3536. else
  3537. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3538. See \`config.log' for more details." >&5
  3539. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3540. See \`config.log' for more details." >&2;}
  3541. { (exit 1); exit 1; }; }
  3542. fi
  3543. ac_ext=c
  3544. ac_cpp='$CPP $CPPFLAGS'
  3545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3548. echo "$as_me:$LINENO: checking for egrep" >&5
  3549. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3550. if test "${ac_cv_prog_egrep+set}" = set; then
  3551. echo $ECHO_N "(cached) $ECHO_C" >&6
  3552. else
  3553. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3554. then ac_cv_prog_egrep='grep -E'
  3555. else ac_cv_prog_egrep='egrep'
  3556. fi
  3557. fi
  3558. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3559. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3560. EGREP=$ac_cv_prog_egrep
  3561. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3562. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3563. if test "${ac_cv_header_stdc+set}" = set; then
  3564. echo $ECHO_N "(cached) $ECHO_C" >&6
  3565. else
  3566. cat >conftest.$ac_ext <<_ACEOF
  3567. /* confdefs.h. */
  3568. _ACEOF
  3569. cat confdefs.h >>conftest.$ac_ext
  3570. cat >>conftest.$ac_ext <<_ACEOF
  3571. /* end confdefs.h. */
  3572. #include <stdlib.h>
  3573. #include <stdarg.h>
  3574. #include <string.h>
  3575. #include <float.h>
  3576. int
  3577. main ()
  3578. {
  3579. ;
  3580. return 0;
  3581. }
  3582. _ACEOF
  3583. rm -f conftest.$ac_objext
  3584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3585. (eval $ac_compile) 2>conftest.er1
  3586. ac_status=$?
  3587. grep -v '^ *+' conftest.er1 >conftest.err
  3588. rm -f conftest.er1
  3589. cat conftest.err >&5
  3590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3591. (exit $ac_status); } &&
  3592. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3594. (eval $ac_try) 2>&5
  3595. ac_status=$?
  3596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3597. (exit $ac_status); }; } &&
  3598. { ac_try='test -s conftest.$ac_objext'
  3599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3600. (eval $ac_try) 2>&5
  3601. ac_status=$?
  3602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); }; }; then
  3604. ac_cv_header_stdc=yes
  3605. else
  3606. echo "$as_me: failed program was:" >&5
  3607. sed 's/^/| /' conftest.$ac_ext >&5
  3608. ac_cv_header_stdc=no
  3609. fi
  3610. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3611. if test $ac_cv_header_stdc = yes; then
  3612. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. #include <string.h>
  3620. _ACEOF
  3621. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3622. $EGREP "memchr" >/dev/null 2>&1; then
  3623. :
  3624. else
  3625. ac_cv_header_stdc=no
  3626. fi
  3627. rm -f conftest*
  3628. fi
  3629. if test $ac_cv_header_stdc = yes; then
  3630. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3631. cat >conftest.$ac_ext <<_ACEOF
  3632. /* confdefs.h. */
  3633. _ACEOF
  3634. cat confdefs.h >>conftest.$ac_ext
  3635. cat >>conftest.$ac_ext <<_ACEOF
  3636. /* end confdefs.h. */
  3637. #include <stdlib.h>
  3638. _ACEOF
  3639. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3640. $EGREP "free" >/dev/null 2>&1; then
  3641. :
  3642. else
  3643. ac_cv_header_stdc=no
  3644. fi
  3645. rm -f conftest*
  3646. fi
  3647. if test $ac_cv_header_stdc = yes; then
  3648. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3649. if test "$cross_compiling" = yes; then
  3650. :
  3651. else
  3652. cat >conftest.$ac_ext <<_ACEOF
  3653. /* confdefs.h. */
  3654. _ACEOF
  3655. cat confdefs.h >>conftest.$ac_ext
  3656. cat >>conftest.$ac_ext <<_ACEOF
  3657. /* end confdefs.h. */
  3658. #include <ctype.h>
  3659. #if ((' ' & 0x0FF) == 0x020)
  3660. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3661. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3662. #else
  3663. # define ISLOWER(c) \
  3664. (('a' <= (c) && (c) <= 'i') \
  3665. || ('j' <= (c) && (c) <= 'r') \
  3666. || ('s' <= (c) && (c) <= 'z'))
  3667. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3668. #endif
  3669. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3670. int
  3671. main ()
  3672. {
  3673. int i;
  3674. for (i = 0; i < 256; i++)
  3675. if (XOR (islower (i), ISLOWER (i))
  3676. || toupper (i) != TOUPPER (i))
  3677. exit(2);
  3678. exit (0);
  3679. }
  3680. _ACEOF
  3681. rm -f conftest$ac_exeext
  3682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3683. (eval $ac_link) 2>&5
  3684. ac_status=$?
  3685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3688. (eval $ac_try) 2>&5
  3689. ac_status=$?
  3690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3691. (exit $ac_status); }; }; then
  3692. :
  3693. else
  3694. echo "$as_me: program exited with status $ac_status" >&5
  3695. echo "$as_me: failed program was:" >&5
  3696. sed 's/^/| /' conftest.$ac_ext >&5
  3697. ( exit $ac_status )
  3698. ac_cv_header_stdc=no
  3699. fi
  3700. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3701. fi
  3702. fi
  3703. fi
  3704. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3705. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3706. if test $ac_cv_header_stdc = yes; then
  3707. cat >>confdefs.h <<\_ACEOF
  3708. #define STDC_HEADERS 1
  3709. _ACEOF
  3710. fi
  3711. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3712. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3713. inttypes.h stdint.h unistd.h
  3714. do
  3715. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3716. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3717. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3718. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3719. echo $ECHO_N "(cached) $ECHO_C" >&6
  3720. else
  3721. cat >conftest.$ac_ext <<_ACEOF
  3722. /* confdefs.h. */
  3723. _ACEOF
  3724. cat confdefs.h >>conftest.$ac_ext
  3725. cat >>conftest.$ac_ext <<_ACEOF
  3726. /* end confdefs.h. */
  3727. $ac_includes_default
  3728. #include <$ac_header>
  3729. _ACEOF
  3730. rm -f conftest.$ac_objext
  3731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3732. (eval $ac_compile) 2>conftest.er1
  3733. ac_status=$?
  3734. grep -v '^ *+' conftest.er1 >conftest.err
  3735. rm -f conftest.er1
  3736. cat conftest.err >&5
  3737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3738. (exit $ac_status); } &&
  3739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3741. (eval $ac_try) 2>&5
  3742. ac_status=$?
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); }; } &&
  3745. { ac_try='test -s conftest.$ac_objext'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; }; then
  3751. eval "$as_ac_Header=yes"
  3752. else
  3753. echo "$as_me: failed program was:" >&5
  3754. sed 's/^/| /' conftest.$ac_ext >&5
  3755. eval "$as_ac_Header=no"
  3756. fi
  3757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. fi
  3759. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3760. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3761. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3762. cat >>confdefs.h <<_ACEOF
  3763. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3764. _ACEOF
  3765. fi
  3766. done
  3767. 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
  3768. do
  3769. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3770. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3771. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3772. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. fi
  3776. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3777. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3778. else
  3779. # Is the header compilable?
  3780. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3781. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3782. cat >conftest.$ac_ext <<_ACEOF
  3783. /* confdefs.h. */
  3784. _ACEOF
  3785. cat confdefs.h >>conftest.$ac_ext
  3786. cat >>conftest.$ac_ext <<_ACEOF
  3787. /* end confdefs.h. */
  3788. $ac_includes_default
  3789. #include <$ac_header>
  3790. _ACEOF
  3791. rm -f conftest.$ac_objext
  3792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3793. (eval $ac_compile) 2>conftest.er1
  3794. ac_status=$?
  3795. grep -v '^ *+' conftest.er1 >conftest.err
  3796. rm -f conftest.er1
  3797. cat conftest.err >&5
  3798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); } &&
  3800. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3802. (eval $ac_try) 2>&5
  3803. ac_status=$?
  3804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3805. (exit $ac_status); }; } &&
  3806. { ac_try='test -s conftest.$ac_objext'
  3807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3808. (eval $ac_try) 2>&5
  3809. ac_status=$?
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); }; }; then
  3812. ac_header_compiler=yes
  3813. else
  3814. echo "$as_me: failed program was:" >&5
  3815. sed 's/^/| /' conftest.$ac_ext >&5
  3816. ac_header_compiler=no
  3817. fi
  3818. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3819. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3820. echo "${ECHO_T}$ac_header_compiler" >&6
  3821. # Is the header present?
  3822. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3823. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3824. cat >conftest.$ac_ext <<_ACEOF
  3825. /* confdefs.h. */
  3826. _ACEOF
  3827. cat confdefs.h >>conftest.$ac_ext
  3828. cat >>conftest.$ac_ext <<_ACEOF
  3829. /* end confdefs.h. */
  3830. #include <$ac_header>
  3831. _ACEOF
  3832. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3833. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3834. ac_status=$?
  3835. grep -v '^ *+' conftest.er1 >conftest.err
  3836. rm -f conftest.er1
  3837. cat conftest.err >&5
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); } >/dev/null; then
  3840. if test -s conftest.err; then
  3841. ac_cpp_err=$ac_c_preproc_warn_flag
  3842. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3843. else
  3844. ac_cpp_err=
  3845. fi
  3846. else
  3847. ac_cpp_err=yes
  3848. fi
  3849. if test -z "$ac_cpp_err"; then
  3850. ac_header_preproc=yes
  3851. else
  3852. echo "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. ac_header_preproc=no
  3855. fi
  3856. rm -f conftest.err conftest.$ac_ext
  3857. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3858. echo "${ECHO_T}$ac_header_preproc" >&6
  3859. # So? What about this header?
  3860. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3861. yes:no: )
  3862. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3863. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3864. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3865. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3866. ac_header_preproc=yes
  3867. ;;
  3868. no:yes:* )
  3869. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3870. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3871. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3872. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3873. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3874. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3875. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3876. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3877. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3878. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3879. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3880. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3881. (
  3882. cat <<\_ASBOX
  3883. ## ----------------------------------- ##
  3884. ## Report this to tujikawa@rednoah.com ##
  3885. ## ----------------------------------- ##
  3886. _ASBOX
  3887. ) |
  3888. sed "s/^/$as_me: WARNING: /" >&2
  3889. ;;
  3890. esac
  3891. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3892. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3893. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3894. echo $ECHO_N "(cached) $ECHO_C" >&6
  3895. else
  3896. eval "$as_ac_Header=\$ac_header_preproc"
  3897. fi
  3898. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3899. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3900. fi
  3901. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3902. cat >>confdefs.h <<_ACEOF
  3903. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3904. _ACEOF
  3905. fi
  3906. done
  3907. # Checks for typedefs, structures, and compiler characteristics.
  3908. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  3909. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  3910. if test "${ac_cv_header_stdbool_h+set}" = set; then
  3911. echo $ECHO_N "(cached) $ECHO_C" >&6
  3912. else
  3913. cat >conftest.$ac_ext <<_ACEOF
  3914. /* confdefs.h. */
  3915. _ACEOF
  3916. cat confdefs.h >>conftest.$ac_ext
  3917. cat >>conftest.$ac_ext <<_ACEOF
  3918. /* end confdefs.h. */
  3919. #include <stdbool.h>
  3920. #ifndef bool
  3921. # error bool is not defined
  3922. #endif
  3923. #ifndef false
  3924. # error false is not defined
  3925. #endif
  3926. #if false
  3927. # error false is not 0
  3928. #endif
  3929. #ifndef true
  3930. # error true is not defined
  3931. #endif
  3932. #if true != 1
  3933. # error true is not 1
  3934. #endif
  3935. #ifndef __bool_true_false_are_defined
  3936. # error __bool_true_false_are_defined is not defined
  3937. #endif
  3938. struct s { _Bool s: 1; _Bool t; } s;
  3939. char a[true == 1 ? 1 : -1];
  3940. char b[false == 0 ? 1 : -1];
  3941. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  3942. char d[(bool) -0.5 == true ? 1 : -1];
  3943. bool e = &s;
  3944. char f[(_Bool) -0.0 == false ? 1 : -1];
  3945. char g[true];
  3946. char h[sizeof (_Bool)];
  3947. char i[sizeof s.t];
  3948. int
  3949. main ()
  3950. {
  3951. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  3952. ;
  3953. return 0;
  3954. }
  3955. _ACEOF
  3956. rm -f conftest.$ac_objext
  3957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3958. (eval $ac_compile) 2>conftest.er1
  3959. ac_status=$?
  3960. grep -v '^ *+' conftest.er1 >conftest.err
  3961. rm -f conftest.er1
  3962. cat conftest.err >&5
  3963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964. (exit $ac_status); } &&
  3965. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3967. (eval $ac_try) 2>&5
  3968. ac_status=$?
  3969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3970. (exit $ac_status); }; } &&
  3971. { ac_try='test -s conftest.$ac_objext'
  3972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3973. (eval $ac_try) 2>&5
  3974. ac_status=$?
  3975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3976. (exit $ac_status); }; }; then
  3977. ac_cv_header_stdbool_h=yes
  3978. else
  3979. echo "$as_me: failed program was:" >&5
  3980. sed 's/^/| /' conftest.$ac_ext >&5
  3981. ac_cv_header_stdbool_h=no
  3982. fi
  3983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3984. fi
  3985. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  3986. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  3987. echo "$as_me:$LINENO: checking for _Bool" >&5
  3988. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  3989. if test "${ac_cv_type__Bool+set}" = set; then
  3990. echo $ECHO_N "(cached) $ECHO_C" >&6
  3991. else
  3992. cat >conftest.$ac_ext <<_ACEOF
  3993. /* confdefs.h. */
  3994. _ACEOF
  3995. cat confdefs.h >>conftest.$ac_ext
  3996. cat >>conftest.$ac_ext <<_ACEOF
  3997. /* end confdefs.h. */
  3998. $ac_includes_default
  3999. int
  4000. main ()
  4001. {
  4002. if ((_Bool *) 0)
  4003. return 0;
  4004. if (sizeof (_Bool))
  4005. return 0;
  4006. ;
  4007. return 0;
  4008. }
  4009. _ACEOF
  4010. rm -f conftest.$ac_objext
  4011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4012. (eval $ac_compile) 2>conftest.er1
  4013. ac_status=$?
  4014. grep -v '^ *+' conftest.er1 >conftest.err
  4015. rm -f conftest.er1
  4016. cat conftest.err >&5
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); } &&
  4019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4021. (eval $ac_try) 2>&5
  4022. ac_status=$?
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); }; } &&
  4025. { ac_try='test -s conftest.$ac_objext'
  4026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4027. (eval $ac_try) 2>&5
  4028. ac_status=$?
  4029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4030. (exit $ac_status); }; }; then
  4031. ac_cv_type__Bool=yes
  4032. else
  4033. echo "$as_me: failed program was:" >&5
  4034. sed 's/^/| /' conftest.$ac_ext >&5
  4035. ac_cv_type__Bool=no
  4036. fi
  4037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4038. fi
  4039. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  4040. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  4041. if test $ac_cv_type__Bool = yes; then
  4042. cat >>confdefs.h <<_ACEOF
  4043. #define HAVE__BOOL 1
  4044. _ACEOF
  4045. fi
  4046. if test $ac_cv_header_stdbool_h = yes; then
  4047. cat >>confdefs.h <<\_ACEOF
  4048. #define HAVE_STDBOOL_H 1
  4049. _ACEOF
  4050. fi
  4051. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4052. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4053. if test "${ac_cv_c_const+set}" = set; then
  4054. echo $ECHO_N "(cached) $ECHO_C" >&6
  4055. else
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. int
  4063. main ()
  4064. {
  4065. /* FIXME: Include the comments suggested by Paul. */
  4066. #ifndef __cplusplus
  4067. /* Ultrix mips cc rejects this. */
  4068. typedef int charset[2];
  4069. const charset x;
  4070. /* SunOS 4.1.1 cc rejects this. */
  4071. char const *const *ccp;
  4072. char **p;
  4073. /* NEC SVR4.0.2 mips cc rejects this. */
  4074. struct point {int x, y;};
  4075. static struct point const zero = {0,0};
  4076. /* AIX XL C 1.02.0.0 rejects this.
  4077. It does not let you subtract one const X* pointer from another in
  4078. an arm of an if-expression whose if-part is not a constant
  4079. expression */
  4080. const char *g = "string";
  4081. ccp = &g + (g ? g-g : 0);
  4082. /* HPUX 7.0 cc rejects these. */
  4083. ++ccp;
  4084. p = (char**) ccp;
  4085. ccp = (char const *const *) p;
  4086. { /* SCO 3.2v4 cc rejects this. */
  4087. char *t;
  4088. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4089. *t++ = 0;
  4090. }
  4091. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4092. int x[] = {25, 17};
  4093. const int *foo = &x[0];
  4094. ++foo;
  4095. }
  4096. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4097. typedef const int *iptr;
  4098. iptr p = 0;
  4099. ++p;
  4100. }
  4101. { /* AIX XL C 1.02.0.0 rejects this saying
  4102. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4103. struct s { int j; const int *ap[3]; };
  4104. struct s *b; b->j = 5;
  4105. }
  4106. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4107. const int foo = 10;
  4108. }
  4109. #endif
  4110. ;
  4111. return 0;
  4112. }
  4113. _ACEOF
  4114. rm -f conftest.$ac_objext
  4115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4116. (eval $ac_compile) 2>conftest.er1
  4117. ac_status=$?
  4118. grep -v '^ *+' conftest.er1 >conftest.err
  4119. rm -f conftest.er1
  4120. cat conftest.err >&5
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); } &&
  4123. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4125. (eval $ac_try) 2>&5
  4126. ac_status=$?
  4127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4128. (exit $ac_status); }; } &&
  4129. { ac_try='test -s conftest.$ac_objext'
  4130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4131. (eval $ac_try) 2>&5
  4132. ac_status=$?
  4133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4134. (exit $ac_status); }; }; then
  4135. ac_cv_c_const=yes
  4136. else
  4137. echo "$as_me: failed program was:" >&5
  4138. sed 's/^/| /' conftest.$ac_ext >&5
  4139. ac_cv_c_const=no
  4140. fi
  4141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. fi
  4143. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4144. echo "${ECHO_T}$ac_cv_c_const" >&6
  4145. if test $ac_cv_c_const = no; then
  4146. cat >>confdefs.h <<\_ACEOF
  4147. #define const
  4148. _ACEOF
  4149. fi
  4150. echo "$as_me:$LINENO: checking for size_t" >&5
  4151. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4152. if test "${ac_cv_type_size_t+set}" = set; then
  4153. echo $ECHO_N "(cached) $ECHO_C" >&6
  4154. else
  4155. cat >conftest.$ac_ext <<_ACEOF
  4156. /* confdefs.h. */
  4157. _ACEOF
  4158. cat confdefs.h >>conftest.$ac_ext
  4159. cat >>conftest.$ac_ext <<_ACEOF
  4160. /* end confdefs.h. */
  4161. $ac_includes_default
  4162. int
  4163. main ()
  4164. {
  4165. if ((size_t *) 0)
  4166. return 0;
  4167. if (sizeof (size_t))
  4168. return 0;
  4169. ;
  4170. return 0;
  4171. }
  4172. _ACEOF
  4173. rm -f conftest.$ac_objext
  4174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4175. (eval $ac_compile) 2>conftest.er1
  4176. ac_status=$?
  4177. grep -v '^ *+' conftest.er1 >conftest.err
  4178. rm -f conftest.er1
  4179. cat conftest.err >&5
  4180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4181. (exit $ac_status); } &&
  4182. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4184. (eval $ac_try) 2>&5
  4185. ac_status=$?
  4186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4187. (exit $ac_status); }; } &&
  4188. { ac_try='test -s conftest.$ac_objext'
  4189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4190. (eval $ac_try) 2>&5
  4191. ac_status=$?
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); }; }; then
  4194. ac_cv_type_size_t=yes
  4195. else
  4196. echo "$as_me: failed program was:" >&5
  4197. sed 's/^/| /' conftest.$ac_ext >&5
  4198. ac_cv_type_size_t=no
  4199. fi
  4200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4201. fi
  4202. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4203. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4204. if test $ac_cv_type_size_t = yes; then
  4205. :
  4206. else
  4207. cat >>confdefs.h <<_ACEOF
  4208. #define size_t unsigned
  4209. _ACEOF
  4210. fi
  4211. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4212. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4213. if test "${ac_cv_header_time+set}" = set; then
  4214. echo $ECHO_N "(cached) $ECHO_C" >&6
  4215. else
  4216. cat >conftest.$ac_ext <<_ACEOF
  4217. /* confdefs.h. */
  4218. _ACEOF
  4219. cat confdefs.h >>conftest.$ac_ext
  4220. cat >>conftest.$ac_ext <<_ACEOF
  4221. /* end confdefs.h. */
  4222. #include <sys/types.h>
  4223. #include <sys/time.h>
  4224. #include <time.h>
  4225. int
  4226. main ()
  4227. {
  4228. if ((struct tm *) 0)
  4229. return 0;
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest.$ac_objext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4236. (eval $ac_compile) 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } &&
  4243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4245. (eval $ac_try) 2>&5
  4246. ac_status=$?
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); }; } &&
  4249. { ac_try='test -s conftest.$ac_objext'
  4250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4251. (eval $ac_try) 2>&5
  4252. ac_status=$?
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); }; }; then
  4255. ac_cv_header_time=yes
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. ac_cv_header_time=no
  4260. fi
  4261. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4262. fi
  4263. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4264. echo "${ECHO_T}$ac_cv_header_time" >&6
  4265. if test $ac_cv_header_time = yes; then
  4266. cat >>confdefs.h <<\_ACEOF
  4267. #define TIME_WITH_SYS_TIME 1
  4268. _ACEOF
  4269. fi
  4270. # Checks for library functions.
  4271. echo "$as_me:$LINENO: checking for error_at_line" >&5
  4272. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  4273. if test "${ac_cv_lib_error_at_line+set}" = set; then
  4274. echo $ECHO_N "(cached) $ECHO_C" >&6
  4275. else
  4276. cat >conftest.$ac_ext <<_ACEOF
  4277. /* confdefs.h. */
  4278. _ACEOF
  4279. cat confdefs.h >>conftest.$ac_ext
  4280. cat >>conftest.$ac_ext <<_ACEOF
  4281. /* end confdefs.h. */
  4282. $ac_includes_default
  4283. int
  4284. main ()
  4285. {
  4286. error_at_line (0, 0, "", 0, "");
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. rm -f conftest.$ac_objext conftest$ac_exeext
  4292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4293. (eval $ac_link) 2>conftest.er1
  4294. ac_status=$?
  4295. grep -v '^ *+' conftest.er1 >conftest.err
  4296. rm -f conftest.er1
  4297. cat conftest.err >&5
  4298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4299. (exit $ac_status); } &&
  4300. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4302. (eval $ac_try) 2>&5
  4303. ac_status=$?
  4304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. (exit $ac_status); }; } &&
  4306. { ac_try='test -s conftest$ac_exeext'
  4307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4308. (eval $ac_try) 2>&5
  4309. ac_status=$?
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); }; }; then
  4312. ac_cv_lib_error_at_line=yes
  4313. else
  4314. echo "$as_me: failed program was:" >&5
  4315. sed 's/^/| /' conftest.$ac_ext >&5
  4316. ac_cv_lib_error_at_line=no
  4317. fi
  4318. rm -f conftest.err conftest.$ac_objext \
  4319. conftest$ac_exeext conftest.$ac_ext
  4320. fi
  4321. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  4322. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  4323. if test $ac_cv_lib_error_at_line = no; then
  4324. case $LIBOBJS in
  4325. "error.$ac_objext" | \
  4326. *" error.$ac_objext" | \
  4327. "error.$ac_objext "* | \
  4328. *" error.$ac_objext "* ) ;;
  4329. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  4330. esac
  4331. fi
  4332. for ac_header in sys/select.h sys/socket.h
  4333. do
  4334. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4336. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4337. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4338. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4339. echo $ECHO_N "(cached) $ECHO_C" >&6
  4340. fi
  4341. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4342. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4343. else
  4344. # Is the header compilable?
  4345. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4346. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4347. cat >conftest.$ac_ext <<_ACEOF
  4348. /* confdefs.h. */
  4349. _ACEOF
  4350. cat confdefs.h >>conftest.$ac_ext
  4351. cat >>conftest.$ac_ext <<_ACEOF
  4352. /* end confdefs.h. */
  4353. $ac_includes_default
  4354. #include <$ac_header>
  4355. _ACEOF
  4356. rm -f conftest.$ac_objext
  4357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4358. (eval $ac_compile) 2>conftest.er1
  4359. ac_status=$?
  4360. grep -v '^ *+' conftest.er1 >conftest.err
  4361. rm -f conftest.er1
  4362. cat conftest.err >&5
  4363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); } &&
  4365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4367. (eval $ac_try) 2>&5
  4368. ac_status=$?
  4369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4370. (exit $ac_status); }; } &&
  4371. { ac_try='test -s conftest.$ac_objext'
  4372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4373. (eval $ac_try) 2>&5
  4374. ac_status=$?
  4375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4376. (exit $ac_status); }; }; then
  4377. ac_header_compiler=yes
  4378. else
  4379. echo "$as_me: failed program was:" >&5
  4380. sed 's/^/| /' conftest.$ac_ext >&5
  4381. ac_header_compiler=no
  4382. fi
  4383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4384. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4385. echo "${ECHO_T}$ac_header_compiler" >&6
  4386. # Is the header present?
  4387. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4388. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4389. cat >conftest.$ac_ext <<_ACEOF
  4390. /* confdefs.h. */
  4391. _ACEOF
  4392. cat confdefs.h >>conftest.$ac_ext
  4393. cat >>conftest.$ac_ext <<_ACEOF
  4394. /* end confdefs.h. */
  4395. #include <$ac_header>
  4396. _ACEOF
  4397. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4398. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4399. ac_status=$?
  4400. grep -v '^ *+' conftest.er1 >conftest.err
  4401. rm -f conftest.er1
  4402. cat conftest.err >&5
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); } >/dev/null; then
  4405. if test -s conftest.err; then
  4406. ac_cpp_err=$ac_c_preproc_warn_flag
  4407. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4408. else
  4409. ac_cpp_err=
  4410. fi
  4411. else
  4412. ac_cpp_err=yes
  4413. fi
  4414. if test -z "$ac_cpp_err"; then
  4415. ac_header_preproc=yes
  4416. else
  4417. echo "$as_me: failed program was:" >&5
  4418. sed 's/^/| /' conftest.$ac_ext >&5
  4419. ac_header_preproc=no
  4420. fi
  4421. rm -f conftest.err conftest.$ac_ext
  4422. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4423. echo "${ECHO_T}$ac_header_preproc" >&6
  4424. # So? What about this header?
  4425. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4426. yes:no: )
  4427. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4428. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4429. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4430. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4431. ac_header_preproc=yes
  4432. ;;
  4433. no:yes:* )
  4434. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4435. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4436. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4437. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4438. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4439. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4440. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4441. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4443. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4444. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4445. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4446. (
  4447. cat <<\_ASBOX
  4448. ## ----------------------------------- ##
  4449. ## Report this to tujikawa@rednoah.com ##
  4450. ## ----------------------------------- ##
  4451. _ASBOX
  4452. ) |
  4453. sed "s/^/$as_me: WARNING: /" >&2
  4454. ;;
  4455. esac
  4456. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4458. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4459. echo $ECHO_N "(cached) $ECHO_C" >&6
  4460. else
  4461. eval "$as_ac_Header=\$ac_header_preproc"
  4462. fi
  4463. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4464. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4465. fi
  4466. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4467. cat >>confdefs.h <<_ACEOF
  4468. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4469. _ACEOF
  4470. fi
  4471. done
  4472. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  4473. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  4474. if test "${ac_cv_func_select_args+set}" = set; then
  4475. echo $ECHO_N "(cached) $ECHO_C" >&6
  4476. else
  4477. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  4478. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  4479. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  4480. cat >conftest.$ac_ext <<_ACEOF
  4481. /* confdefs.h. */
  4482. _ACEOF
  4483. cat confdefs.h >>conftest.$ac_ext
  4484. cat >>conftest.$ac_ext <<_ACEOF
  4485. /* end confdefs.h. */
  4486. $ac_includes_default
  4487. #if HAVE_SYS_SELECT_H
  4488. # include <sys/select.h>
  4489. #endif
  4490. #if HAVE_SYS_SOCKET_H
  4491. # include <sys/socket.h>
  4492. #endif
  4493. int
  4494. main ()
  4495. {
  4496. extern int select ($ac_arg1,
  4497. $ac_arg234, $ac_arg234, $ac_arg234,
  4498. $ac_arg5);
  4499. ;
  4500. return 0;
  4501. }
  4502. _ACEOF
  4503. rm -f conftest.$ac_objext
  4504. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4505. (eval $ac_compile) 2>conftest.er1
  4506. ac_status=$?
  4507. grep -v '^ *+' conftest.er1 >conftest.err
  4508. rm -f conftest.er1
  4509. cat conftest.err >&5
  4510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4511. (exit $ac_status); } &&
  4512. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4514. (eval $ac_try) 2>&5
  4515. ac_status=$?
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); }; } &&
  4518. { ac_try='test -s conftest.$ac_objext'
  4519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4520. (eval $ac_try) 2>&5
  4521. ac_status=$?
  4522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4523. (exit $ac_status); }; }; then
  4524. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  4525. else
  4526. echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528. fi
  4529. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4530. done
  4531. done
  4532. done
  4533. # Provide a safe default value.
  4534. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  4535. fi
  4536. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  4537. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  4538. ac_save_IFS=$IFS; IFS=','
  4539. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  4540. IFS=$ac_save_IFS
  4541. shift
  4542. cat >>confdefs.h <<_ACEOF
  4543. #define SELECT_TYPE_ARG1 $1
  4544. _ACEOF
  4545. cat >>confdefs.h <<_ACEOF
  4546. #define SELECT_TYPE_ARG234 ($2)
  4547. _ACEOF
  4548. cat >>confdefs.h <<_ACEOF
  4549. #define SELECT_TYPE_ARG5 ($3)
  4550. _ACEOF
  4551. rm -f conftest*
  4552. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  4553. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  4554. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  4555. echo $ECHO_N "(cached) $ECHO_C" >&6
  4556. else
  4557. rm -f conftest.sym conftest.file
  4558. echo >conftest.file
  4559. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  4560. if test "$cross_compiling" = yes; then
  4561. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4562. else
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. $ac_includes_default
  4570. int
  4571. main ()
  4572. {
  4573. struct stat sbuf;
  4574. /* Linux will dereference the symlink and fail.
  4575. That is better in the sense that it means we will not
  4576. have to compile and use the lstat wrapper. */
  4577. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  4578. ;
  4579. return 0;
  4580. }
  4581. _ACEOF
  4582. rm -f conftest$ac_exeext
  4583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4584. (eval $ac_link) 2>&5
  4585. ac_status=$?
  4586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4589. (eval $ac_try) 2>&5
  4590. ac_status=$?
  4591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4592. (exit $ac_status); }; }; then
  4593. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  4594. else
  4595. echo "$as_me: program exited with status $ac_status" >&5
  4596. echo "$as_me: failed program was:" >&5
  4597. sed 's/^/| /' conftest.$ac_ext >&5
  4598. ( exit $ac_status )
  4599. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4600. fi
  4601. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4602. fi
  4603. else
  4604. # If the `ln -s' command failed, then we probably don't even
  4605. # have an lstat function.
  4606. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4607. fi
  4608. rm -f conftest.sym conftest.file
  4609. fi
  4610. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  4611. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  4612. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  4613. cat >>confdefs.h <<_ACEOF
  4614. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  4615. _ACEOF
  4616. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  4617. case $LIBOBJS in
  4618. "lstat.$ac_objext" | \
  4619. *" lstat.$ac_objext" | \
  4620. "lstat.$ac_objext "* | \
  4621. *" lstat.$ac_objext "* ) ;;
  4622. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  4623. esac
  4624. fi
  4625. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  4626. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  4627. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  4628. echo $ECHO_N "(cached) $ECHO_C" >&6
  4629. else
  4630. if test "$cross_compiling" = yes; then
  4631. ac_cv_func_stat_empty_string_bug=yes
  4632. else
  4633. cat >conftest.$ac_ext <<_ACEOF
  4634. /* confdefs.h. */
  4635. _ACEOF
  4636. cat confdefs.h >>conftest.$ac_ext
  4637. cat >>conftest.$ac_ext <<_ACEOF
  4638. /* end confdefs.h. */
  4639. $ac_includes_default
  4640. int
  4641. main ()
  4642. {
  4643. struct stat sbuf;
  4644. exit (stat ("", &sbuf) ? 1 : 0);
  4645. ;
  4646. return 0;
  4647. }
  4648. _ACEOF
  4649. rm -f conftest$ac_exeext
  4650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4651. (eval $ac_link) 2>&5
  4652. ac_status=$?
  4653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4654. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4656. (eval $ac_try) 2>&5
  4657. ac_status=$?
  4658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4659. (exit $ac_status); }; }; then
  4660. ac_cv_func_stat_empty_string_bug=yes
  4661. else
  4662. echo "$as_me: program exited with status $ac_status" >&5
  4663. echo "$as_me: failed program was:" >&5
  4664. sed 's/^/| /' conftest.$ac_ext >&5
  4665. ( exit $ac_status )
  4666. ac_cv_func_stat_empty_string_bug=no
  4667. fi
  4668. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. fi
  4671. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  4672. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  4673. if test $ac_cv_func_stat_empty_string_bug = yes; then
  4674. case $LIBOBJS in
  4675. "stat.$ac_objext" | \
  4676. *" stat.$ac_objext" | \
  4677. "stat.$ac_objext "* | \
  4678. *" stat.$ac_objext "* ) ;;
  4679. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  4680. esac
  4681. cat >>confdefs.h <<_ACEOF
  4682. #define HAVE_STAT_EMPTY_STRING_BUG 1
  4683. _ACEOF
  4684. fi
  4685. for ac_func in vprintf
  4686. do
  4687. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4688. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4689. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4690. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4691. echo $ECHO_N "(cached) $ECHO_C" >&6
  4692. else
  4693. cat >conftest.$ac_ext <<_ACEOF
  4694. /* confdefs.h. */
  4695. _ACEOF
  4696. cat confdefs.h >>conftest.$ac_ext
  4697. cat >>conftest.$ac_ext <<_ACEOF
  4698. /* end confdefs.h. */
  4699. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4700. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4701. #define $ac_func innocuous_$ac_func
  4702. /* System header to define __stub macros and hopefully few prototypes,
  4703. which can conflict with char $ac_func (); below.
  4704. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4705. <limits.h> exists even on freestanding compilers. */
  4706. #ifdef __STDC__
  4707. # include <limits.h>
  4708. #else
  4709. # include <assert.h>
  4710. #endif
  4711. #undef $ac_func
  4712. /* Override any gcc2 internal prototype to avoid an error. */
  4713. #ifdef __cplusplus
  4714. extern "C"
  4715. {
  4716. #endif
  4717. /* We use char because int might match the return type of a gcc2
  4718. builtin and then its argument prototype would still apply. */
  4719. char $ac_func ();
  4720. /* The GNU C library defines this for functions which it implements
  4721. to always fail with ENOSYS. Some functions are actually named
  4722. something starting with __ and the normal name is an alias. */
  4723. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4724. choke me
  4725. #else
  4726. char (*f) () = $ac_func;
  4727. #endif
  4728. #ifdef __cplusplus
  4729. }
  4730. #endif
  4731. int
  4732. main ()
  4733. {
  4734. return f != $ac_func;
  4735. ;
  4736. return 0;
  4737. }
  4738. _ACEOF
  4739. rm -f conftest.$ac_objext conftest$ac_exeext
  4740. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4741. (eval $ac_link) 2>conftest.er1
  4742. ac_status=$?
  4743. grep -v '^ *+' conftest.er1 >conftest.err
  4744. rm -f conftest.er1
  4745. cat conftest.err >&5
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); } &&
  4748. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4750. (eval $ac_try) 2>&5
  4751. ac_status=$?
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); }; } &&
  4754. { ac_try='test -s conftest$ac_exeext'
  4755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4756. (eval $ac_try) 2>&5
  4757. ac_status=$?
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); }; }; then
  4760. eval "$as_ac_var=yes"
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. eval "$as_ac_var=no"
  4765. fi
  4766. rm -f conftest.err conftest.$ac_objext \
  4767. conftest$ac_exeext conftest.$ac_ext
  4768. fi
  4769. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4770. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4771. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4772. cat >>confdefs.h <<_ACEOF
  4773. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4774. _ACEOF
  4775. echo "$as_me:$LINENO: checking for _doprnt" >&5
  4776. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  4777. if test "${ac_cv_func__doprnt+set}" = set; then
  4778. echo $ECHO_N "(cached) $ECHO_C" >&6
  4779. else
  4780. cat >conftest.$ac_ext <<_ACEOF
  4781. /* confdefs.h. */
  4782. _ACEOF
  4783. cat confdefs.h >>conftest.$ac_ext
  4784. cat >>conftest.$ac_ext <<_ACEOF
  4785. /* end confdefs.h. */
  4786. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  4787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4788. #define _doprnt innocuous__doprnt
  4789. /* System header to define __stub macros and hopefully few prototypes,
  4790. which can conflict with char _doprnt (); below.
  4791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4792. <limits.h> exists even on freestanding compilers. */
  4793. #ifdef __STDC__
  4794. # include <limits.h>
  4795. #else
  4796. # include <assert.h>
  4797. #endif
  4798. #undef _doprnt
  4799. /* Override any gcc2 internal prototype to avoid an error. */
  4800. #ifdef __cplusplus
  4801. extern "C"
  4802. {
  4803. #endif
  4804. /* We use char because int might match the return type of a gcc2
  4805. builtin and then its argument prototype would still apply. */
  4806. char _doprnt ();
  4807. /* The GNU C library defines this for functions which it implements
  4808. to always fail with ENOSYS. Some functions are actually named
  4809. something starting with __ and the normal name is an alias. */
  4810. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  4811. choke me
  4812. #else
  4813. char (*f) () = _doprnt;
  4814. #endif
  4815. #ifdef __cplusplus
  4816. }
  4817. #endif
  4818. int
  4819. main ()
  4820. {
  4821. return f != _doprnt;
  4822. ;
  4823. return 0;
  4824. }
  4825. _ACEOF
  4826. rm -f conftest.$ac_objext conftest$ac_exeext
  4827. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4828. (eval $ac_link) 2>conftest.er1
  4829. ac_status=$?
  4830. grep -v '^ *+' conftest.er1 >conftest.err
  4831. rm -f conftest.er1
  4832. cat conftest.err >&5
  4833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4834. (exit $ac_status); } &&
  4835. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4837. (eval $ac_try) 2>&5
  4838. ac_status=$?
  4839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4840. (exit $ac_status); }; } &&
  4841. { ac_try='test -s conftest$ac_exeext'
  4842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4843. (eval $ac_try) 2>&5
  4844. ac_status=$?
  4845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4846. (exit $ac_status); }; }; then
  4847. ac_cv_func__doprnt=yes
  4848. else
  4849. echo "$as_me: failed program was:" >&5
  4850. sed 's/^/| /' conftest.$ac_ext >&5
  4851. ac_cv_func__doprnt=no
  4852. fi
  4853. rm -f conftest.err conftest.$ac_objext \
  4854. conftest$ac_exeext conftest.$ac_ext
  4855. fi
  4856. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  4857. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  4858. if test $ac_cv_func__doprnt = yes; then
  4859. cat >>confdefs.h <<\_ACEOF
  4860. #define HAVE_DOPRNT 1
  4861. _ACEOF
  4862. fi
  4863. fi
  4864. done
  4865. for ac_func in getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol
  4866. do
  4867. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4868. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4869. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4870. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4871. echo $ECHO_N "(cached) $ECHO_C" >&6
  4872. else
  4873. cat >conftest.$ac_ext <<_ACEOF
  4874. /* confdefs.h. */
  4875. _ACEOF
  4876. cat confdefs.h >>conftest.$ac_ext
  4877. cat >>conftest.$ac_ext <<_ACEOF
  4878. /* end confdefs.h. */
  4879. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4880. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4881. #define $ac_func innocuous_$ac_func
  4882. /* System header to define __stub macros and hopefully few prototypes,
  4883. which can conflict with char $ac_func (); below.
  4884. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4885. <limits.h> exists even on freestanding compilers. */
  4886. #ifdef __STDC__
  4887. # include <limits.h>
  4888. #else
  4889. # include <assert.h>
  4890. #endif
  4891. #undef $ac_func
  4892. /* Override any gcc2 internal prototype to avoid an error. */
  4893. #ifdef __cplusplus
  4894. extern "C"
  4895. {
  4896. #endif
  4897. /* We use char because int might match the return type of a gcc2
  4898. builtin and then its argument prototype would still apply. */
  4899. char $ac_func ();
  4900. /* The GNU C library defines this for functions which it implements
  4901. to always fail with ENOSYS. Some functions are actually named
  4902. something starting with __ and the normal name is an alias. */
  4903. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4904. choke me
  4905. #else
  4906. char (*f) () = $ac_func;
  4907. #endif
  4908. #ifdef __cplusplus
  4909. }
  4910. #endif
  4911. int
  4912. main ()
  4913. {
  4914. return f != $ac_func;
  4915. ;
  4916. return 0;
  4917. }
  4918. _ACEOF
  4919. rm -f conftest.$ac_objext conftest$ac_exeext
  4920. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4921. (eval $ac_link) 2>conftest.er1
  4922. ac_status=$?
  4923. grep -v '^ *+' conftest.er1 >conftest.err
  4924. rm -f conftest.er1
  4925. cat conftest.err >&5
  4926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4927. (exit $ac_status); } &&
  4928. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4930. (eval $ac_try) 2>&5
  4931. ac_status=$?
  4932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); }; } &&
  4934. { ac_try='test -s conftest$ac_exeext'
  4935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4936. (eval $ac_try) 2>&5
  4937. ac_status=$?
  4938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4939. (exit $ac_status); }; }; then
  4940. eval "$as_ac_var=yes"
  4941. else
  4942. echo "$as_me: failed program was:" >&5
  4943. sed 's/^/| /' conftest.$ac_ext >&5
  4944. eval "$as_ac_var=no"
  4945. fi
  4946. rm -f conftest.err conftest.$ac_objext \
  4947. conftest$ac_exeext conftest.$ac_ext
  4948. fi
  4949. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4950. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4951. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4952. cat >>confdefs.h <<_ACEOF
  4953. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4954. _ACEOF
  4955. fi
  4956. done
  4957. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
  4958. cat >confcache <<\_ACEOF
  4959. # This file is a shell script that caches the results of configure
  4960. # tests run on this system so they can be shared between configure
  4961. # scripts and configure runs, see configure's option --config-cache.
  4962. # It is not useful on other systems. If it contains results you don't
  4963. # want to keep, you may remove or edit it.
  4964. #
  4965. # config.status only pays attention to the cache file if you give it
  4966. # the --recheck option to rerun configure.
  4967. #
  4968. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4969. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4970. # following values.
  4971. _ACEOF
  4972. # The following way of writing the cache mishandles newlines in values,
  4973. # but we know of no workaround that is simple, portable, and efficient.
  4974. # So, don't put newlines in cache variables' values.
  4975. # Ultrix sh set writes to stderr and can't be redirected directly,
  4976. # and sets the high bit in the cache file unless we assign to the vars.
  4977. {
  4978. (set) 2>&1 |
  4979. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4980. *ac_space=\ *)
  4981. # `set' does not quote correctly, so add quotes (double-quote
  4982. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4983. sed -n \
  4984. "s/'/'\\\\''/g;
  4985. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4986. ;;
  4987. *)
  4988. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4989. sed -n \
  4990. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4991. ;;
  4992. esac;
  4993. } |
  4994. sed '
  4995. t clear
  4996. : clear
  4997. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4998. t end
  4999. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5000. : end' >>confcache
  5001. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5002. if test -w $cache_file; then
  5003. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5004. cat confcache >$cache_file
  5005. else
  5006. echo "not updating unwritable cache $cache_file"
  5007. fi
  5008. fi
  5009. rm -f confcache
  5010. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5011. # Let make expand exec_prefix.
  5012. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5013. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5014. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5015. # trailing colons and then remove the whole line if VPATH becomes empty
  5016. # (actually we leave an empty line to preserve line numbers).
  5017. if test "x$srcdir" = x.; then
  5018. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5019. s/:*\$(srcdir):*/:/;
  5020. s/:*\${srcdir}:*/:/;
  5021. s/:*@srcdir@:*/:/;
  5022. s/^\([^=]*=[ ]*\):*/\1/;
  5023. s/:*$//;
  5024. s/^[^=]*=[ ]*$//;
  5025. }'
  5026. fi
  5027. DEFS=-DHAVE_CONFIG_H
  5028. ac_libobjs=
  5029. ac_ltlibobjs=
  5030. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5031. # 1. Remove the extension, and $U if already installed.
  5032. ac_i=`echo "$ac_i" |
  5033. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  5034. # 2. Add them.
  5035. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  5036. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  5037. done
  5038. LIBOBJS=$ac_libobjs
  5039. LTLIBOBJS=$ac_ltlibobjs
  5040. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  5041. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  5042. Usually this means the macro was only invoked conditionally." >&5
  5043. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  5044. Usually this means the macro was only invoked conditionally." >&2;}
  5045. { (exit 1); exit 1; }; }
  5046. fi
  5047. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  5048. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  5049. Usually this means the macro was only invoked conditionally." >&5
  5050. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  5051. Usually this means the macro was only invoked conditionally." >&2;}
  5052. { (exit 1); exit 1; }; }
  5053. fi
  5054. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  5055. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  5056. Usually this means the macro was only invoked conditionally." >&5
  5057. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  5058. Usually this means the macro was only invoked conditionally." >&2;}
  5059. { (exit 1); exit 1; }; }
  5060. fi
  5061. : ${CONFIG_STATUS=./config.status}
  5062. ac_clean_files_save=$ac_clean_files
  5063. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5064. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5065. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5066. cat >$CONFIG_STATUS <<_ACEOF
  5067. #! $SHELL
  5068. # Generated by $as_me.
  5069. # Run this file to recreate the current configuration.
  5070. # Compiler output produced by configure, useful for debugging
  5071. # configure, is in config.log if it exists.
  5072. debug=false
  5073. ac_cs_recheck=false
  5074. ac_cs_silent=false
  5075. SHELL=\${CONFIG_SHELL-$SHELL}
  5076. _ACEOF
  5077. cat >>$CONFIG_STATUS <<\_ACEOF
  5078. ## --------------------- ##
  5079. ## M4sh Initialization. ##
  5080. ## --------------------- ##
  5081. # Be Bourne compatible
  5082. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5083. emulate sh
  5084. NULLCMD=:
  5085. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5086. # is contrary to our usage. Disable this feature.
  5087. alias -g '${1+"$@"}'='"$@"'
  5088. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  5089. set -o posix
  5090. fi
  5091. DUALCASE=1; export DUALCASE # for MKS sh
  5092. # Support unset when possible.
  5093. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5094. as_unset=unset
  5095. else
  5096. as_unset=false
  5097. fi
  5098. # Work around bugs in pre-3.0 UWIN ksh.
  5099. $as_unset ENV MAIL MAILPATH
  5100. PS1='$ '
  5101. PS2='> '
  5102. PS4='+ '
  5103. # NLS nuisances.
  5104. for as_var in \
  5105. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5106. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5107. LC_TELEPHONE LC_TIME
  5108. do
  5109. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5110. eval $as_var=C; export $as_var
  5111. else
  5112. $as_unset $as_var
  5113. fi
  5114. done
  5115. # Required to use basename.
  5116. if expr a : '\(a\)' >/dev/null 2>&1; then
  5117. as_expr=expr
  5118. else
  5119. as_expr=false
  5120. fi
  5121. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  5122. as_basename=basename
  5123. else
  5124. as_basename=false
  5125. fi
  5126. # Name of the executable.
  5127. as_me=`$as_basename "$0" ||
  5128. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5129. X"$0" : 'X\(//\)$' \| \
  5130. X"$0" : 'X\(/\)$' \| \
  5131. . : '\(.\)' 2>/dev/null ||
  5132. echo X/"$0" |
  5133. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  5134. /^X\/\(\/\/\)$/{ s//\1/; q; }
  5135. /^X\/\(\/\).*/{ s//\1/; q; }
  5136. s/.*/./; q'`
  5137. # PATH needs CR, and LINENO needs CR and PATH.
  5138. # Avoid depending upon Character Ranges.
  5139. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5140. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5141. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5142. as_cr_digits='0123456789'
  5143. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5144. # The user is always right.
  5145. if test "${PATH_SEPARATOR+set}" != set; then
  5146. echo "#! /bin/sh" >conf$$.sh
  5147. echo "exit 0" >>conf$$.sh
  5148. chmod +x conf$$.sh
  5149. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5150. PATH_SEPARATOR=';'
  5151. else
  5152. PATH_SEPARATOR=:
  5153. fi
  5154. rm -f conf$$.sh
  5155. fi
  5156. as_lineno_1=$LINENO
  5157. as_lineno_2=$LINENO
  5158. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5159. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5160. test "x$as_lineno_3" = "x$as_lineno_2" || {
  5161. # Find who we are. Look in the path if we contain no path at all
  5162. # relative or not.
  5163. case $0 in
  5164. *[\\/]* ) as_myself=$0 ;;
  5165. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5171. done
  5172. ;;
  5173. esac
  5174. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5175. # in which case we are not to be found in the path.
  5176. if test "x$as_myself" = x; then
  5177. as_myself=$0
  5178. fi
  5179. if test ! -f "$as_myself"; then
  5180. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  5181. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  5182. { (exit 1); exit 1; }; }
  5183. fi
  5184. case $CONFIG_SHELL in
  5185. '')
  5186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5187. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  5188. do
  5189. IFS=$as_save_IFS
  5190. test -z "$as_dir" && as_dir=.
  5191. for as_base in sh bash ksh sh5; do
  5192. case $as_dir in
  5193. /*)
  5194. if ("$as_dir/$as_base" -c '
  5195. as_lineno_1=$LINENO
  5196. as_lineno_2=$LINENO
  5197. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5198. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5199. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  5200. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  5201. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  5202. CONFIG_SHELL=$as_dir/$as_base
  5203. export CONFIG_SHELL
  5204. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  5205. fi;;
  5206. esac
  5207. done
  5208. done
  5209. ;;
  5210. esac
  5211. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5212. # uniformly replaced by the line number. The first 'sed' inserts a
  5213. # line-number line before each line; the second 'sed' does the real
  5214. # work. The second script uses 'N' to pair each line-number line
  5215. # with the numbered line, and appends trailing '-' during
  5216. # substitution so that $LINENO is not a special case at line end.
  5217. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5218. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  5219. sed '=' <$as_myself |
  5220. sed '
  5221. N
  5222. s,$,-,
  5223. : loop
  5224. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  5225. t loop
  5226. s,-$,,
  5227. s,^['$as_cr_digits']*\n,,
  5228. ' >$as_me.lineno &&
  5229. chmod +x $as_me.lineno ||
  5230. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  5231. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  5232. { (exit 1); exit 1; }; }
  5233. # Don't try to exec as it changes $[0], causing all sort of problems
  5234. # (the dirname of $[0] is not the place where we might find the
  5235. # original and so on. Autoconf is especially sensible to this).
  5236. . ./$as_me.lineno
  5237. # Exit status is that of the last command.
  5238. exit
  5239. }
  5240. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  5241. *c*,-n*) ECHO_N= ECHO_C='
  5242. ' ECHO_T=' ' ;;
  5243. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  5244. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  5245. esac
  5246. if expr a : '\(a\)' >/dev/null 2>&1; then
  5247. as_expr=expr
  5248. else
  5249. as_expr=false
  5250. fi
  5251. rm -f conf$$ conf$$.exe conf$$.file
  5252. echo >conf$$.file
  5253. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5254. # We could just check for DJGPP; but this test a) works b) is more generic
  5255. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  5256. if test -f conf$$.exe; then
  5257. # Don't use ln at all; we don't have any links
  5258. as_ln_s='cp -p'
  5259. else
  5260. as_ln_s='ln -s'
  5261. fi
  5262. elif ln conf$$.file conf$$ 2>/dev/null; then
  5263. as_ln_s=ln
  5264. else
  5265. as_ln_s='cp -p'
  5266. fi
  5267. rm -f conf$$ conf$$.exe conf$$.file
  5268. if mkdir -p . 2>/dev/null; then
  5269. as_mkdir_p=:
  5270. else
  5271. test -d ./-p && rmdir ./-p
  5272. as_mkdir_p=false
  5273. fi
  5274. as_executable_p="test -f"
  5275. # Sed expression to map a string onto a valid CPP name.
  5276. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5277. # Sed expression to map a string onto a valid variable name.
  5278. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5279. # IFS
  5280. # We need space, tab and new line, in precisely that order.
  5281. as_nl='
  5282. '
  5283. IFS=" $as_nl"
  5284. # CDPATH.
  5285. $as_unset CDPATH
  5286. exec 6>&1
  5287. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  5288. # report actual input values of CONFIG_FILES etc. instead of their
  5289. # values after options handling. Logging --version etc. is OK.
  5290. exec 5>>config.log
  5291. {
  5292. echo
  5293. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5294. ## Running $as_me. ##
  5295. _ASBOX
  5296. } >&5
  5297. cat >&5 <<_CSEOF
  5298. This file was extended by aria2c $as_me 0.2.1-dev, which was
  5299. generated by GNU Autoconf 2.59. Invocation command line was
  5300. CONFIG_FILES = $CONFIG_FILES
  5301. CONFIG_HEADERS = $CONFIG_HEADERS
  5302. CONFIG_LINKS = $CONFIG_LINKS
  5303. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5304. $ $0 $@
  5305. _CSEOF
  5306. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  5307. echo >&5
  5308. _ACEOF
  5309. # Files that config.status was made for.
  5310. if test -n "$ac_config_files"; then
  5311. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  5312. fi
  5313. if test -n "$ac_config_headers"; then
  5314. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  5315. fi
  5316. if test -n "$ac_config_links"; then
  5317. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  5318. fi
  5319. if test -n "$ac_config_commands"; then
  5320. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  5321. fi
  5322. cat >>$CONFIG_STATUS <<\_ACEOF
  5323. ac_cs_usage="\
  5324. \`$as_me' instantiates files from templates according to the
  5325. current configuration.
  5326. Usage: $0 [OPTIONS] [FILE]...
  5327. -h, --help print this help, then exit
  5328. -V, --version print version number, then exit
  5329. -q, --quiet do not print progress messages
  5330. -d, --debug don't remove temporary files
  5331. --recheck update $as_me by reconfiguring in the same conditions
  5332. --file=FILE[:TEMPLATE]
  5333. instantiate the configuration file FILE
  5334. --header=FILE[:TEMPLATE]
  5335. instantiate the configuration header FILE
  5336. Configuration files:
  5337. $config_files
  5338. Configuration headers:
  5339. $config_headers
  5340. Configuration commands:
  5341. $config_commands
  5342. Report bugs to <bug-autoconf@gnu.org>."
  5343. _ACEOF
  5344. cat >>$CONFIG_STATUS <<_ACEOF
  5345. ac_cs_version="\\
  5346. aria2c config.status 0.2.1-dev
  5347. configured by $0, generated by GNU Autoconf 2.59,
  5348. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5349. Copyright (C) 2003 Free Software Foundation, Inc.
  5350. This config.status script is free software; the Free Software Foundation
  5351. gives unlimited permission to copy, distribute and modify it."
  5352. srcdir=$srcdir
  5353. INSTALL="$INSTALL"
  5354. _ACEOF
  5355. cat >>$CONFIG_STATUS <<\_ACEOF
  5356. # If no file are specified by the user, then we need to provide default
  5357. # value. By we need to know if files were specified by the user.
  5358. ac_need_defaults=:
  5359. while test $# != 0
  5360. do
  5361. case $1 in
  5362. --*=*)
  5363. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5364. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5365. ac_shift=:
  5366. ;;
  5367. -*)
  5368. ac_option=$1
  5369. ac_optarg=$2
  5370. ac_shift=shift
  5371. ;;
  5372. *) # This is not an option, so the user has probably given explicit
  5373. # arguments.
  5374. ac_option=$1
  5375. ac_need_defaults=false;;
  5376. esac
  5377. case $ac_option in
  5378. # Handling of the options.
  5379. _ACEOF
  5380. cat >>$CONFIG_STATUS <<\_ACEOF
  5381. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5382. ac_cs_recheck=: ;;
  5383. --version | --vers* | -V )
  5384. echo "$ac_cs_version"; exit 0 ;;
  5385. --he | --h)
  5386. # Conflict between --help and --header
  5387. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5388. Try \`$0 --help' for more information." >&5
  5389. echo "$as_me: error: ambiguous option: $1
  5390. Try \`$0 --help' for more information." >&2;}
  5391. { (exit 1); exit 1; }; };;
  5392. --help | --hel | -h )
  5393. echo "$ac_cs_usage"; exit 0 ;;
  5394. --debug | --d* | -d )
  5395. debug=: ;;
  5396. --file | --fil | --fi | --f )
  5397. $ac_shift
  5398. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5399. ac_need_defaults=false;;
  5400. --header | --heade | --head | --hea )
  5401. $ac_shift
  5402. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5403. ac_need_defaults=false;;
  5404. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5405. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5406. ac_cs_silent=: ;;
  5407. # This is an error.
  5408. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5409. Try \`$0 --help' for more information." >&5
  5410. echo "$as_me: error: unrecognized option: $1
  5411. Try \`$0 --help' for more information." >&2;}
  5412. { (exit 1); exit 1; }; } ;;
  5413. *) ac_config_targets="$ac_config_targets $1" ;;
  5414. esac
  5415. shift
  5416. done
  5417. ac_configure_extra_args=
  5418. if $ac_cs_silent; then
  5419. exec 6>/dev/null
  5420. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5421. fi
  5422. _ACEOF
  5423. cat >>$CONFIG_STATUS <<_ACEOF
  5424. if \$ac_cs_recheck; then
  5425. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5426. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5427. fi
  5428. _ACEOF
  5429. cat >>$CONFIG_STATUS <<_ACEOF
  5430. #
  5431. # INIT-COMMANDS section.
  5432. #
  5433. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  5434. _ACEOF
  5435. cat >>$CONFIG_STATUS <<\_ACEOF
  5436. for ac_config_target in $ac_config_targets
  5437. do
  5438. case "$ac_config_target" in
  5439. # Handling of arguments.
  5440. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5441. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5442. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  5443. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  5444. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5445. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5446. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5447. { (exit 1); exit 1; }; };;
  5448. esac
  5449. done
  5450. # If the user did not use the arguments to specify the items to instantiate,
  5451. # then the envvar interface is used. Set only those that are not.
  5452. # We use the long form for the default assignment because of an extremely
  5453. # bizarre bug on SunOS 4.1.3.
  5454. if $ac_need_defaults; then
  5455. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5456. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5457. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5458. fi
  5459. # Have a temporary directory for convenience. Make it in the build tree
  5460. # simply because there is no reason to put it here, and in addition,
  5461. # creating and moving files from /tmp can sometimes cause problems.
  5462. # Create a temporary directory, and hook for its removal unless debugging.
  5463. $debug ||
  5464. {
  5465. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5466. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5467. }
  5468. # Create a (secure) tmp directory for tmp files.
  5469. {
  5470. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  5471. test -n "$tmp" && test -d "$tmp"
  5472. } ||
  5473. {
  5474. tmp=./confstat$$-$RANDOM
  5475. (umask 077 && mkdir $tmp)
  5476. } ||
  5477. {
  5478. echo "$me: cannot create a temporary directory in ." >&2
  5479. { (exit 1); exit 1; }
  5480. }
  5481. _ACEOF
  5482. cat >>$CONFIG_STATUS <<_ACEOF
  5483. #
  5484. # CONFIG_FILES section.
  5485. #
  5486. # No need to generate the scripts if there are no CONFIG_FILES.
  5487. # This happens for instance when ./config.status config.h
  5488. if test -n "\$CONFIG_FILES"; then
  5489. # Protect against being on the right side of a sed subst in config.status.
  5490. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5491. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5492. s,@SHELL@,$SHELL,;t t
  5493. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5494. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5495. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5496. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5497. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5498. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5499. s,@exec_prefix@,$exec_prefix,;t t
  5500. s,@prefix@,$prefix,;t t
  5501. s,@program_transform_name@,$program_transform_name,;t t
  5502. s,@bindir@,$bindir,;t t
  5503. s,@sbindir@,$sbindir,;t t
  5504. s,@libexecdir@,$libexecdir,;t t
  5505. s,@datadir@,$datadir,;t t
  5506. s,@sysconfdir@,$sysconfdir,;t t
  5507. s,@sharedstatedir@,$sharedstatedir,;t t
  5508. s,@localstatedir@,$localstatedir,;t t
  5509. s,@libdir@,$libdir,;t t
  5510. s,@includedir@,$includedir,;t t
  5511. s,@oldincludedir@,$oldincludedir,;t t
  5512. s,@infodir@,$infodir,;t t
  5513. s,@mandir@,$mandir,;t t
  5514. s,@build_alias@,$build_alias,;t t
  5515. s,@host_alias@,$host_alias,;t t
  5516. s,@target_alias@,$target_alias,;t t
  5517. s,@DEFS@,$DEFS,;t t
  5518. s,@ECHO_C@,$ECHO_C,;t t
  5519. s,@ECHO_N@,$ECHO_N,;t t
  5520. s,@ECHO_T@,$ECHO_T,;t t
  5521. s,@LIBS@,$LIBS,;t t
  5522. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  5523. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  5524. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  5525. s,@CYGPATH_W@,$CYGPATH_W,;t t
  5526. s,@PACKAGE@,$PACKAGE,;t t
  5527. s,@VERSION@,$VERSION,;t t
  5528. s,@ACLOCAL@,$ACLOCAL,;t t
  5529. s,@AUTOCONF@,$AUTOCONF,;t t
  5530. s,@AUTOMAKE@,$AUTOMAKE,;t t
  5531. s,@AUTOHEADER@,$AUTOHEADER,;t t
  5532. s,@MAKEINFO@,$MAKEINFO,;t t
  5533. s,@install_sh@,$install_sh,;t t
  5534. s,@STRIP@,$STRIP,;t t
  5535. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  5536. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  5537. s,@mkdir_p@,$mkdir_p,;t t
  5538. s,@AWK@,$AWK,;t t
  5539. s,@SET_MAKE@,$SET_MAKE,;t t
  5540. s,@am__leading_dot@,$am__leading_dot,;t t
  5541. s,@AMTAR@,$AMTAR,;t t
  5542. s,@am__tar@,$am__tar,;t t
  5543. s,@am__untar@,$am__untar,;t t
  5544. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  5545. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  5546. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  5547. s,@RANLIB@,$RANLIB,;t t
  5548. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  5549. s,@CXX@,$CXX,;t t
  5550. s,@CXXFLAGS@,$CXXFLAGS,;t t
  5551. s,@LDFLAGS@,$LDFLAGS,;t t
  5552. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5553. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  5554. s,@EXEEXT@,$EXEEXT,;t t
  5555. s,@OBJEXT@,$OBJEXT,;t t
  5556. s,@DEPDIR@,$DEPDIR,;t t
  5557. s,@am__include@,$am__include,;t t
  5558. s,@am__quote@,$am__quote,;t t
  5559. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  5560. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  5561. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  5562. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  5563. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  5564. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  5565. s,@CC@,$CC,;t t
  5566. s,@CFLAGS@,$CFLAGS,;t t
  5567. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5568. s,@CCDEPMODE@,$CCDEPMODE,;t t
  5569. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  5570. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  5571. s,@AR@,$AR,;t t
  5572. s,@ac_ct_AR@,$ac_ct_AR,;t t
  5573. s,@CPP@,$CPP,;t t
  5574. s,@EGREP@,$EGREP,;t t
  5575. s,@LIBOBJS@,$LIBOBJS,;t t
  5576. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  5577. CEOF
  5578. _ACEOF
  5579. cat >>$CONFIG_STATUS <<\_ACEOF
  5580. # Split the substitutions into bite-sized pieces for seds with
  5581. # small command number limits, like on Digital OSF/1 and HP-UX.
  5582. ac_max_sed_lines=48
  5583. ac_sed_frag=1 # Number of current file.
  5584. ac_beg=1 # First line for current file.
  5585. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5586. ac_more_lines=:
  5587. ac_sed_cmds=
  5588. while $ac_more_lines; do
  5589. if test $ac_beg -gt 1; then
  5590. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5591. else
  5592. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5593. fi
  5594. if test ! -s $tmp/subs.frag; then
  5595. ac_more_lines=false
  5596. else
  5597. # The purpose of the label and of the branching condition is to
  5598. # speed up the sed processing (if there are no `@' at all, there
  5599. # is no need to browse any of the substitutions).
  5600. # These are the two extra sed commands mentioned above.
  5601. (echo ':t
  5602. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5603. if test -z "$ac_sed_cmds"; then
  5604. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5605. else
  5606. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5607. fi
  5608. ac_sed_frag=`expr $ac_sed_frag + 1`
  5609. ac_beg=$ac_end
  5610. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5611. fi
  5612. done
  5613. if test -z "$ac_sed_cmds"; then
  5614. ac_sed_cmds=cat
  5615. fi
  5616. fi # test -n "$CONFIG_FILES"
  5617. _ACEOF
  5618. cat >>$CONFIG_STATUS <<\_ACEOF
  5619. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5620. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5621. case $ac_file in
  5622. - | *:- | *:-:* ) # input from stdin
  5623. cat >$tmp/stdin
  5624. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5625. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5626. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5627. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5628. * ) ac_file_in=$ac_file.in ;;
  5629. esac
  5630. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5631. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5632. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5633. X"$ac_file" : 'X\(//\)[^/]' \| \
  5634. X"$ac_file" : 'X\(//\)$' \| \
  5635. X"$ac_file" : 'X\(/\)' \| \
  5636. . : '\(.\)' 2>/dev/null ||
  5637. echo X"$ac_file" |
  5638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5639. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5640. /^X\(\/\/\)$/{ s//\1/; q; }
  5641. /^X\(\/\).*/{ s//\1/; q; }
  5642. s/.*/./; q'`
  5643. { if $as_mkdir_p; then
  5644. mkdir -p "$ac_dir"
  5645. else
  5646. as_dir="$ac_dir"
  5647. as_dirs=
  5648. while test ! -d "$as_dir"; do
  5649. as_dirs="$as_dir $as_dirs"
  5650. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5651. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5652. X"$as_dir" : 'X\(//\)[^/]' \| \
  5653. X"$as_dir" : 'X\(//\)$' \| \
  5654. X"$as_dir" : 'X\(/\)' \| \
  5655. . : '\(.\)' 2>/dev/null ||
  5656. echo X"$as_dir" |
  5657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5658. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5659. /^X\(\/\/\)$/{ s//\1/; q; }
  5660. /^X\(\/\).*/{ s//\1/; q; }
  5661. s/.*/./; q'`
  5662. done
  5663. test ! -n "$as_dirs" || mkdir $as_dirs
  5664. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5665. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5666. { (exit 1); exit 1; }; }; }
  5667. ac_builddir=.
  5668. if test "$ac_dir" != .; then
  5669. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5670. # A "../" for each directory in $ac_dir_suffix.
  5671. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5672. else
  5673. ac_dir_suffix= ac_top_builddir=
  5674. fi
  5675. case $srcdir in
  5676. .) # No --srcdir option. We are building in place.
  5677. ac_srcdir=.
  5678. if test -z "$ac_top_builddir"; then
  5679. ac_top_srcdir=.
  5680. else
  5681. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5682. fi ;;
  5683. [\\/]* | ?:[\\/]* ) # Absolute path.
  5684. ac_srcdir=$srcdir$ac_dir_suffix;
  5685. ac_top_srcdir=$srcdir ;;
  5686. *) # Relative path.
  5687. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5688. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5689. esac
  5690. # Do not use `cd foo && pwd` to compute absolute paths, because
  5691. # the directories may not exist.
  5692. case `pwd` in
  5693. .) ac_abs_builddir="$ac_dir";;
  5694. *)
  5695. case "$ac_dir" in
  5696. .) ac_abs_builddir=`pwd`;;
  5697. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  5698. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  5699. esac;;
  5700. esac
  5701. case $ac_abs_builddir in
  5702. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  5703. *)
  5704. case ${ac_top_builddir}. in
  5705. .) ac_abs_top_builddir=$ac_abs_builddir;;
  5706. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  5707. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  5708. esac;;
  5709. esac
  5710. case $ac_abs_builddir in
  5711. .) ac_abs_srcdir=$ac_srcdir;;
  5712. *)
  5713. case $ac_srcdir in
  5714. .) ac_abs_srcdir=$ac_abs_builddir;;
  5715. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  5716. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  5717. esac;;
  5718. esac
  5719. case $ac_abs_builddir in
  5720. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  5721. *)
  5722. case $ac_top_srcdir in
  5723. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  5724. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  5725. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  5726. esac;;
  5727. esac
  5728. case $INSTALL in
  5729. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5730. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  5731. esac
  5732. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5733. # use $as_me), people would be surprised to read:
  5734. # /* config.h. Generated by config.status. */
  5735. if test x"$ac_file" = x-; then
  5736. configure_input=
  5737. else
  5738. configure_input="$ac_file. "
  5739. fi
  5740. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5741. sed 's,.*/,,'` by configure."
  5742. # First look for the input files in the build tree, otherwise in the
  5743. # src tree.
  5744. ac_file_inputs=`IFS=:
  5745. for f in $ac_file_in; do
  5746. case $f in
  5747. -) echo $tmp/stdin ;;
  5748. [\\/$]*)
  5749. # Absolute (can't be DOS-style, as IFS=:)
  5750. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5751. echo "$as_me: error: cannot find input file: $f" >&2;}
  5752. { (exit 1); exit 1; }; }
  5753. echo "$f";;
  5754. *) # Relative
  5755. if test -f "$f"; then
  5756. # Build tree
  5757. echo "$f"
  5758. elif test -f "$srcdir/$f"; then
  5759. # Source tree
  5760. echo "$srcdir/$f"
  5761. else
  5762. # /dev/null tree
  5763. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5764. echo "$as_me: error: cannot find input file: $f" >&2;}
  5765. { (exit 1); exit 1; }; }
  5766. fi;;
  5767. esac
  5768. done` || { (exit 1); exit 1; }
  5769. if test x"$ac_file" != x-; then
  5770. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5771. echo "$as_me: creating $ac_file" >&6;}
  5772. rm -f "$ac_file"
  5773. fi
  5774. _ACEOF
  5775. cat >>$CONFIG_STATUS <<_ACEOF
  5776. sed "$ac_vpsub
  5777. $extrasub
  5778. _ACEOF
  5779. cat >>$CONFIG_STATUS <<\_ACEOF
  5780. :t
  5781. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5782. s,@configure_input@,$configure_input,;t t
  5783. s,@srcdir@,$ac_srcdir,;t t
  5784. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5785. s,@top_srcdir@,$ac_top_srcdir,;t t
  5786. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5787. s,@builddir@,$ac_builddir,;t t
  5788. s,@abs_builddir@,$ac_abs_builddir,;t t
  5789. s,@top_builddir@,$ac_top_builddir,;t t
  5790. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5791. s,@INSTALL@,$ac_INSTALL,;t t
  5792. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5793. rm -f $tmp/stdin
  5794. if test x"$ac_file" != x-; then
  5795. mv $tmp/out $ac_file
  5796. else
  5797. cat $tmp/out
  5798. rm -f $tmp/out
  5799. fi
  5800. done
  5801. _ACEOF
  5802. cat >>$CONFIG_STATUS <<\_ACEOF
  5803. #
  5804. # CONFIG_HEADER section.
  5805. #
  5806. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5807. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5808. #
  5809. # ac_d sets the value in "#define NAME VALUE" lines.
  5810. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  5811. ac_dB='[ ].*$,\1#\2'
  5812. ac_dC=' '
  5813. ac_dD=',;t'
  5814. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5815. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  5816. ac_uB='$,\1#\2define\3'
  5817. ac_uC=' '
  5818. ac_uD=',;t'
  5819. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  5820. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5821. case $ac_file in
  5822. - | *:- | *:-:* ) # input from stdin
  5823. cat >$tmp/stdin
  5824. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5825. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5826. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5827. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5828. * ) ac_file_in=$ac_file.in ;;
  5829. esac
  5830. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  5831. echo "$as_me: creating $ac_file" >&6;}
  5832. # First look for the input files in the build tree, otherwise in the
  5833. # src tree.
  5834. ac_file_inputs=`IFS=:
  5835. for f in $ac_file_in; do
  5836. case $f in
  5837. -) echo $tmp/stdin ;;
  5838. [\\/$]*)
  5839. # Absolute (can't be DOS-style, as IFS=:)
  5840. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5841. echo "$as_me: error: cannot find input file: $f" >&2;}
  5842. { (exit 1); exit 1; }; }
  5843. # Do quote $f, to prevent DOS paths from being IFS'd.
  5844. echo "$f";;
  5845. *) # Relative
  5846. if test -f "$f"; then
  5847. # Build tree
  5848. echo "$f"
  5849. elif test -f "$srcdir/$f"; then
  5850. # Source tree
  5851. echo "$srcdir/$f"
  5852. else
  5853. # /dev/null tree
  5854. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5855. echo "$as_me: error: cannot find input file: $f" >&2;}
  5856. { (exit 1); exit 1; }; }
  5857. fi;;
  5858. esac
  5859. done` || { (exit 1); exit 1; }
  5860. # Remove the trailing spaces.
  5861. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  5862. _ACEOF
  5863. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  5864. # `conftest.undefs', that substitutes the proper values into
  5865. # config.h.in to produce config.h. The first handles `#define'
  5866. # templates, and the second `#undef' templates.
  5867. # And first: Protect against being on the right side of a sed subst in
  5868. # config.status. Protect against being in an unquoted here document
  5869. # in config.status.
  5870. rm -f conftest.defines conftest.undefs
  5871. # Using a here document instead of a string reduces the quoting nightmare.
  5872. # Putting comments in sed scripts is not portable.
  5873. #
  5874. # `end' is used to avoid that the second main sed command (meant for
  5875. # 0-ary CPP macros) applies to n-ary macro definitions.
  5876. # See the Autoconf documentation for `clear'.
  5877. cat >confdef2sed.sed <<\_ACEOF
  5878. s/[\\&,]/\\&/g
  5879. s,[\\$`],\\&,g
  5880. t clear
  5881. : clear
  5882. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  5883. t end
  5884. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  5885. : end
  5886. _ACEOF
  5887. # If some macros were called several times there might be several times
  5888. # the same #defines, which is useless. Nevertheless, we may not want to
  5889. # sort them, since we want the *last* AC-DEFINE to be honored.
  5890. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  5891. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  5892. rm -f confdef2sed.sed
  5893. # This sed command replaces #undef with comments. This is necessary, for
  5894. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5895. # on some systems where configure will not decide to define it.
  5896. cat >>conftest.undefs <<\_ACEOF
  5897. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5898. _ACEOF
  5899. # Break up conftest.defines because some shells have a limit on the size
  5900. # of here documents, and old seds have small limits too (100 cmds).
  5901. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  5902. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  5903. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  5904. echo ' :' >>$CONFIG_STATUS
  5905. rm -f conftest.tail
  5906. while grep . conftest.defines >/dev/null
  5907. do
  5908. # Write a limited-size here document to $tmp/defines.sed.
  5909. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  5910. # Speed up: don't consider the non `#define' lines.
  5911. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  5912. # Work around the forget-to-reset-the-flag bug.
  5913. echo 't clr' >>$CONFIG_STATUS
  5914. echo ': clr' >>$CONFIG_STATUS
  5915. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  5916. echo 'CEOF
  5917. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  5918. rm -f $tmp/in
  5919. mv $tmp/out $tmp/in
  5920. ' >>$CONFIG_STATUS
  5921. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  5922. rm -f conftest.defines
  5923. mv conftest.tail conftest.defines
  5924. done
  5925. rm -f conftest.defines
  5926. echo ' fi # grep' >>$CONFIG_STATUS
  5927. echo >>$CONFIG_STATUS
  5928. # Break up conftest.undefs because some shells have a limit on the size
  5929. # of here documents, and old seds have small limits too (100 cmds).
  5930. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  5931. rm -f conftest.tail
  5932. while grep . conftest.undefs >/dev/null
  5933. do
  5934. # Write a limited-size here document to $tmp/undefs.sed.
  5935. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  5936. # Speed up: don't consider the non `#undef'
  5937. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  5938. # Work around the forget-to-reset-the-flag bug.
  5939. echo 't clr' >>$CONFIG_STATUS
  5940. echo ': clr' >>$CONFIG_STATUS
  5941. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  5942. echo 'CEOF
  5943. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  5944. rm -f $tmp/in
  5945. mv $tmp/out $tmp/in
  5946. ' >>$CONFIG_STATUS
  5947. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  5948. rm -f conftest.undefs
  5949. mv conftest.tail conftest.undefs
  5950. done
  5951. rm -f conftest.undefs
  5952. cat >>$CONFIG_STATUS <<\_ACEOF
  5953. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5954. # use $as_me), people would be surprised to read:
  5955. # /* config.h. Generated by config.status. */
  5956. if test x"$ac_file" = x-; then
  5957. echo "/* Generated by configure. */" >$tmp/config.h
  5958. else
  5959. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  5960. fi
  5961. cat $tmp/in >>$tmp/config.h
  5962. rm -f $tmp/in
  5963. if test x"$ac_file" != x-; then
  5964. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  5965. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5966. echo "$as_me: $ac_file is unchanged" >&6;}
  5967. else
  5968. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5969. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5970. X"$ac_file" : 'X\(//\)[^/]' \| \
  5971. X"$ac_file" : 'X\(//\)$' \| \
  5972. X"$ac_file" : 'X\(/\)' \| \
  5973. . : '\(.\)' 2>/dev/null ||
  5974. echo X"$ac_file" |
  5975. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5976. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5977. /^X\(\/\/\)$/{ s//\1/; q; }
  5978. /^X\(\/\).*/{ s//\1/; q; }
  5979. s/.*/./; q'`
  5980. { if $as_mkdir_p; then
  5981. mkdir -p "$ac_dir"
  5982. else
  5983. as_dir="$ac_dir"
  5984. as_dirs=
  5985. while test ! -d "$as_dir"; do
  5986. as_dirs="$as_dir $as_dirs"
  5987. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5988. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5989. X"$as_dir" : 'X\(//\)[^/]' \| \
  5990. X"$as_dir" : 'X\(//\)$' \| \
  5991. X"$as_dir" : 'X\(/\)' \| \
  5992. . : '\(.\)' 2>/dev/null ||
  5993. echo X"$as_dir" |
  5994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5995. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5996. /^X\(\/\/\)$/{ s//\1/; q; }
  5997. /^X\(\/\).*/{ s//\1/; q; }
  5998. s/.*/./; q'`
  5999. done
  6000. test ! -n "$as_dirs" || mkdir $as_dirs
  6001. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6002. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6003. { (exit 1); exit 1; }; }; }
  6004. rm -f $ac_file
  6005. mv $tmp/config.h $ac_file
  6006. fi
  6007. else
  6008. cat $tmp/config.h
  6009. rm -f $tmp/config.h
  6010. fi
  6011. # Compute $ac_file's index in $config_headers.
  6012. _am_stamp_count=1
  6013. for _am_header in $config_headers :; do
  6014. case $_am_header in
  6015. $ac_file | $ac_file:* )
  6016. break ;;
  6017. * )
  6018. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6019. esac
  6020. done
  6021. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  6022. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6023. X$ac_file : 'X\(//\)[^/]' \| \
  6024. X$ac_file : 'X\(//\)$' \| \
  6025. X$ac_file : 'X\(/\)' \| \
  6026. . : '\(.\)' 2>/dev/null ||
  6027. echo X$ac_file |
  6028. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6029. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6030. /^X\(\/\/\)$/{ s//\1/; q; }
  6031. /^X\(\/\).*/{ s//\1/; q; }
  6032. s/.*/./; q'`/stamp-h$_am_stamp_count
  6033. done
  6034. _ACEOF
  6035. cat >>$CONFIG_STATUS <<\_ACEOF
  6036. #
  6037. # CONFIG_COMMANDS section.
  6038. #
  6039. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  6040. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  6041. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6042. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  6043. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6044. X"$ac_dest" : 'X\(//\)[^/]' \| \
  6045. X"$ac_dest" : 'X\(//\)$' \| \
  6046. X"$ac_dest" : 'X\(/\)' \| \
  6047. . : '\(.\)' 2>/dev/null ||
  6048. echo X"$ac_dest" |
  6049. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6050. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6051. /^X\(\/\/\)$/{ s//\1/; q; }
  6052. /^X\(\/\).*/{ s//\1/; q; }
  6053. s/.*/./; q'`
  6054. { if $as_mkdir_p; then
  6055. mkdir -p "$ac_dir"
  6056. else
  6057. as_dir="$ac_dir"
  6058. as_dirs=
  6059. while test ! -d "$as_dir"; do
  6060. as_dirs="$as_dir $as_dirs"
  6061. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6062. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6063. X"$as_dir" : 'X\(//\)[^/]' \| \
  6064. X"$as_dir" : 'X\(//\)$' \| \
  6065. X"$as_dir" : 'X\(/\)' \| \
  6066. . : '\(.\)' 2>/dev/null ||
  6067. echo X"$as_dir" |
  6068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6069. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6070. /^X\(\/\/\)$/{ s//\1/; q; }
  6071. /^X\(\/\).*/{ s//\1/; q; }
  6072. s/.*/./; q'`
  6073. done
  6074. test ! -n "$as_dirs" || mkdir $as_dirs
  6075. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6076. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6077. { (exit 1); exit 1; }; }; }
  6078. ac_builddir=.
  6079. if test "$ac_dir" != .; then
  6080. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6081. # A "../" for each directory in $ac_dir_suffix.
  6082. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  6083. else
  6084. ac_dir_suffix= ac_top_builddir=
  6085. fi
  6086. case $srcdir in
  6087. .) # No --srcdir option. We are building in place.
  6088. ac_srcdir=.
  6089. if test -z "$ac_top_builddir"; then
  6090. ac_top_srcdir=.
  6091. else
  6092. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  6093. fi ;;
  6094. [\\/]* | ?:[\\/]* ) # Absolute path.
  6095. ac_srcdir=$srcdir$ac_dir_suffix;
  6096. ac_top_srcdir=$srcdir ;;
  6097. *) # Relative path.
  6098. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  6099. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  6100. esac
  6101. # Do not use `cd foo && pwd` to compute absolute paths, because
  6102. # the directories may not exist.
  6103. case `pwd` in
  6104. .) ac_abs_builddir="$ac_dir";;
  6105. *)
  6106. case "$ac_dir" in
  6107. .) ac_abs_builddir=`pwd`;;
  6108. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  6109. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  6110. esac;;
  6111. esac
  6112. case $ac_abs_builddir in
  6113. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  6114. *)
  6115. case ${ac_top_builddir}. in
  6116. .) ac_abs_top_builddir=$ac_abs_builddir;;
  6117. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  6118. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  6119. esac;;
  6120. esac
  6121. case $ac_abs_builddir in
  6122. .) ac_abs_srcdir=$ac_srcdir;;
  6123. *)
  6124. case $ac_srcdir in
  6125. .) ac_abs_srcdir=$ac_abs_builddir;;
  6126. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  6127. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  6128. esac;;
  6129. esac
  6130. case $ac_abs_builddir in
  6131. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  6132. *)
  6133. case $ac_top_srcdir in
  6134. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  6135. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  6136. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  6137. esac;;
  6138. esac
  6139. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  6140. echo "$as_me: executing $ac_dest commands" >&6;}
  6141. case $ac_dest in
  6142. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  6143. # Strip MF so we end up with the name of the file.
  6144. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6145. # Check whether this is an Automake generated Makefile or not.
  6146. # We used to match only the files named `Makefile.in', but
  6147. # some people rename them; so instead we look at the file content.
  6148. # Grep'ing the first line is not enough: some people post-process
  6149. # each Makefile.in and add a new line on top of each file to say so.
  6150. # So let's grep whole file.
  6151. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  6152. dirpart=`(dirname "$mf") 2>/dev/null ||
  6153. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6154. X"$mf" : 'X\(//\)[^/]' \| \
  6155. X"$mf" : 'X\(//\)$' \| \
  6156. X"$mf" : 'X\(/\)' \| \
  6157. . : '\(.\)' 2>/dev/null ||
  6158. echo X"$mf" |
  6159. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6160. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6161. /^X\(\/\/\)$/{ s//\1/; q; }
  6162. /^X\(\/\).*/{ s//\1/; q; }
  6163. s/.*/./; q'`
  6164. else
  6165. continue
  6166. fi
  6167. # Extract the definition of DEPDIR, am__include, and am__quote
  6168. # from the Makefile without running `make'.
  6169. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6170. test -z "$DEPDIR" && continue
  6171. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6172. test -z "am__include" && continue
  6173. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6174. # When using ansi2knr, U may be empty or an underscore; expand it
  6175. U=`sed -n 's/^U = //p' < "$mf"`
  6176. # Find all dependency output files, they are included files with
  6177. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6178. # simplest approach to changing $(DEPDIR) to its actual value in the
  6179. # expansion.
  6180. for file in `sed -n "
  6181. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6182. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6183. # Make sure the directory exists.
  6184. test -f "$dirpart/$file" && continue
  6185. fdir=`(dirname "$file") 2>/dev/null ||
  6186. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6187. X"$file" : 'X\(//\)[^/]' \| \
  6188. X"$file" : 'X\(//\)$' \| \
  6189. X"$file" : 'X\(/\)' \| \
  6190. . : '\(.\)' 2>/dev/null ||
  6191. echo X"$file" |
  6192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6193. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6194. /^X\(\/\/\)$/{ s//\1/; q; }
  6195. /^X\(\/\).*/{ s//\1/; q; }
  6196. s/.*/./; q'`
  6197. { if $as_mkdir_p; then
  6198. mkdir -p $dirpart/$fdir
  6199. else
  6200. as_dir=$dirpart/$fdir
  6201. as_dirs=
  6202. while test ! -d "$as_dir"; do
  6203. as_dirs="$as_dir $as_dirs"
  6204. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6205. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6206. X"$as_dir" : 'X\(//\)[^/]' \| \
  6207. X"$as_dir" : 'X\(//\)$' \| \
  6208. X"$as_dir" : 'X\(/\)' \| \
  6209. . : '\(.\)' 2>/dev/null ||
  6210. echo X"$as_dir" |
  6211. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6212. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6213. /^X\(\/\/\)$/{ s//\1/; q; }
  6214. /^X\(\/\).*/{ s//\1/; q; }
  6215. s/.*/./; q'`
  6216. done
  6217. test ! -n "$as_dirs" || mkdir $as_dirs
  6218. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  6219. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  6220. { (exit 1); exit 1; }; }; }
  6221. # echo "creating $dirpart/$file"
  6222. echo '# dummy' > "$dirpart/$file"
  6223. done
  6224. done
  6225. ;;
  6226. esac
  6227. done
  6228. _ACEOF
  6229. cat >>$CONFIG_STATUS <<\_ACEOF
  6230. { (exit 0); exit 0; }
  6231. _ACEOF
  6232. chmod +x $CONFIG_STATUS
  6233. ac_clean_files=$ac_clean_files_save
  6234. # configure is writing to config.log, and then calls config.status.
  6235. # config.status does its own redirection, appending to config.log.
  6236. # Unfortunately, on DOS this fails, as config.log is still kept open
  6237. # by configure, so config.status won't be able to write to it; its
  6238. # output is simply discarded. So we exec the FD to /dev/null,
  6239. # effectively closing config.log, so it can be properly (re)opened and
  6240. # appended to by config.status. When coming back to configure, we
  6241. # need to make the FD available again.
  6242. if test "$no_create" != yes; then
  6243. ac_cs_success=:
  6244. ac_config_status_args=
  6245. test "$silent" = yes &&
  6246. ac_config_status_args="$ac_config_status_args --quiet"
  6247. exec 5>/dev/null
  6248. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6249. exec 5>>config.log
  6250. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6251. # would make configure fail if this is the last instruction.
  6252. $ac_cs_success || { (exit 1); exit 1; }
  6253. fi