configure 238 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for ngIRCd 20.
  4. #
  5. # Report bugs to <ngircd-ml@ngircd.barton.de>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: ngircd-ml@ngircd.barton.de about your system, including
  217. $0: any error possibly output before this message. Then
  218. $0: install a modern shell, or manually run the script
  219. $0: under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='ngIRCd'
  507. PACKAGE_TARNAME='ngircd'
  508. PACKAGE_VERSION='20'
  509. PACKAGE_STRING='ngIRCd 20'
  510. PACKAGE_BUGREPORT='ngircd-ml@ngircd.barton.de'
  511. PACKAGE_URL='http://ngircd.barton.de/'
  512. ac_unique_file="src/ngircd/ngircd.c"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. ac_header_list=
  549. ac_func_list=
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. ANSI2KNR
  555. U
  556. EGREP
  557. GREP
  558. CPP
  559. RANLIB
  560. LN_S
  561. am__fastdepCC_FALSE
  562. am__fastdepCC_TRUE
  563. CCDEPMODE
  564. AMDEPBACKSLASH
  565. AMDEP_FALSE
  566. AMDEP_TRUE
  567. am__quote
  568. am__include
  569. DEPDIR
  570. OBJEXT
  571. EXEEXT
  572. ac_ct_CC
  573. CPPFLAGS
  574. LDFLAGS
  575. CFLAGS
  576. CC
  577. AM_BACKSLASH
  578. AM_DEFAULT_VERBOSITY
  579. am__untar
  580. am__tar
  581. AMTAR
  582. am__leading_dot
  583. SET_MAKE
  584. AWK
  585. mkdir_p
  586. MKDIR_P
  587. INSTALL_STRIP_PROGRAM
  588. STRIP
  589. install_sh
  590. MAKEINFO
  591. AUTOHEADER
  592. AUTOMAKE
  593. AUTOCONF
  594. ACLOCAL
  595. VERSION
  596. PACKAGE
  597. CYGPATH_W
  598. am__isrc
  599. INSTALL_DATA
  600. INSTALL_SCRIPT
  601. INSTALL_PROGRAM
  602. host_os
  603. host_vendor
  604. host_cpu
  605. host
  606. build_os
  607. build_vendor
  608. build_cpu
  609. build
  610. target_alias
  611. host_alias
  612. build_alias
  613. LIBS
  614. ECHO_T
  615. ECHO_N
  616. ECHO_C
  617. DEFS
  618. mandir
  619. localedir
  620. libdir
  621. psdir
  622. pdfdir
  623. dvidir
  624. htmldir
  625. infodir
  626. docdir
  627. oldincludedir
  628. includedir
  629. localstatedir
  630. sharedstatedir
  631. sysconfdir
  632. datadir
  633. datarootdir
  634. libexecdir
  635. sbindir
  636. bindir
  637. program_transform_name
  638. prefix
  639. exec_prefix
  640. PACKAGE_URL
  641. PACKAGE_BUGREPORT
  642. PACKAGE_STRING
  643. PACKAGE_VERSION
  644. PACKAGE_TARNAME
  645. PACKAGE_NAME
  646. PATH_SEPARATOR
  647. SHELL'
  648. ac_subst_files=''
  649. ac_user_opts='
  650. enable_option_checking
  651. enable_silent_rules
  652. enable_dependency_tracking
  653. with_syslog
  654. with_zlib
  655. with_select
  656. with_poll
  657. with_devpoll
  658. with_epoll
  659. with_kqueue
  660. with_openssl
  661. with_gnutls
  662. with_tcp_wrappers
  663. with_ident
  664. with_pam
  665. enable_ircplus
  666. with_iconv
  667. enable_ipv6
  668. enable_sniffer
  669. enable_debug
  670. enable_strict_rfc
  671. '
  672. ac_precious_vars='build_alias
  673. host_alias
  674. target_alias
  675. CC
  676. CFLAGS
  677. LDFLAGS
  678. LIBS
  679. CPPFLAGS
  680. CPP'
  681. # Initialize some variables set by options.
  682. ac_init_help=
  683. ac_init_version=false
  684. ac_unrecognized_opts=
  685. ac_unrecognized_sep=
  686. # The variables have the same names as the options, with
  687. # dashes changed to underlines.
  688. cache_file=/dev/null
  689. exec_prefix=NONE
  690. no_create=
  691. no_recursion=
  692. prefix=NONE
  693. program_prefix=NONE
  694. program_suffix=NONE
  695. program_transform_name=s,x,x,
  696. silent=
  697. site=
  698. srcdir=
  699. verbose=
  700. x_includes=NONE
  701. x_libraries=NONE
  702. # Installation directory options.
  703. # These are left unexpanded so users can "make install exec_prefix=/foo"
  704. # and all the variables that are supposed to be based on exec_prefix
  705. # by default will actually change.
  706. # Use braces instead of parens because sh, perl, etc. also accept them.
  707. # (The list follows the same order as the GNU Coding Standards.)
  708. bindir='${exec_prefix}/bin'
  709. sbindir='${exec_prefix}/sbin'
  710. libexecdir='${exec_prefix}/libexec'
  711. datarootdir='${prefix}/share'
  712. datadir='${datarootdir}'
  713. sysconfdir='${prefix}/etc'
  714. sharedstatedir='${prefix}/com'
  715. localstatedir='${prefix}/var'
  716. includedir='${prefix}/include'
  717. oldincludedir='/usr/include'
  718. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  719. infodir='${datarootdir}/info'
  720. htmldir='${docdir}'
  721. dvidir='${docdir}'
  722. pdfdir='${docdir}'
  723. psdir='${docdir}'
  724. libdir='${exec_prefix}/lib'
  725. localedir='${datarootdir}/locale'
  726. mandir='${datarootdir}/man'
  727. ac_prev=
  728. ac_dashdash=
  729. for ac_option
  730. do
  731. # If the previous option needs an argument, assign it.
  732. if test -n "$ac_prev"; then
  733. eval $ac_prev=\$ac_option
  734. ac_prev=
  735. continue
  736. fi
  737. case $ac_option in
  738. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  739. *=) ac_optarg= ;;
  740. *) ac_optarg=yes ;;
  741. esac
  742. # Accept the important Cygnus configure options, so we can diagnose typos.
  743. case $ac_dashdash$ac_option in
  744. --)
  745. ac_dashdash=yes ;;
  746. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  747. ac_prev=bindir ;;
  748. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  749. bindir=$ac_optarg ;;
  750. -build | --build | --buil | --bui | --bu)
  751. ac_prev=build_alias ;;
  752. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  753. build_alias=$ac_optarg ;;
  754. -cache-file | --cache-file | --cache-fil | --cache-fi \
  755. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  756. ac_prev=cache_file ;;
  757. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  758. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  759. cache_file=$ac_optarg ;;
  760. --config-cache | -C)
  761. cache_file=config.cache ;;
  762. -datadir | --datadir | --datadi | --datad)
  763. ac_prev=datadir ;;
  764. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  765. datadir=$ac_optarg ;;
  766. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  767. | --dataroo | --dataro | --datar)
  768. ac_prev=datarootdir ;;
  769. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  770. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  771. datarootdir=$ac_optarg ;;
  772. -disable-* | --disable-*)
  773. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  774. # Reject names that are not valid shell variable names.
  775. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  776. as_fn_error $? "invalid feature name: $ac_useropt"
  777. ac_useropt_orig=$ac_useropt
  778. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  779. case $ac_user_opts in
  780. *"
  781. "enable_$ac_useropt"
  782. "*) ;;
  783. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  784. ac_unrecognized_sep=', ';;
  785. esac
  786. eval enable_$ac_useropt=no ;;
  787. -docdir | --docdir | --docdi | --doc | --do)
  788. ac_prev=docdir ;;
  789. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  790. docdir=$ac_optarg ;;
  791. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  792. ac_prev=dvidir ;;
  793. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  794. dvidir=$ac_optarg ;;
  795. -enable-* | --enable-*)
  796. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  797. # Reject names that are not valid shell variable names.
  798. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  799. as_fn_error $? "invalid feature name: $ac_useropt"
  800. ac_useropt_orig=$ac_useropt
  801. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  802. case $ac_user_opts in
  803. *"
  804. "enable_$ac_useropt"
  805. "*) ;;
  806. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  807. ac_unrecognized_sep=', ';;
  808. esac
  809. eval enable_$ac_useropt=\$ac_optarg ;;
  810. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  811. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  812. | --exec | --exe | --ex)
  813. ac_prev=exec_prefix ;;
  814. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  815. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  816. | --exec=* | --exe=* | --ex=*)
  817. exec_prefix=$ac_optarg ;;
  818. -gas | --gas | --ga | --g)
  819. # Obsolete; use --with-gas.
  820. with_gas=yes ;;
  821. -help | --help | --hel | --he | -h)
  822. ac_init_help=long ;;
  823. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  824. ac_init_help=recursive ;;
  825. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  826. ac_init_help=short ;;
  827. -host | --host | --hos | --ho)
  828. ac_prev=host_alias ;;
  829. -host=* | --host=* | --hos=* | --ho=*)
  830. host_alias=$ac_optarg ;;
  831. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  832. ac_prev=htmldir ;;
  833. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  834. | --ht=*)
  835. htmldir=$ac_optarg ;;
  836. -includedir | --includedir | --includedi | --included | --include \
  837. | --includ | --inclu | --incl | --inc)
  838. ac_prev=includedir ;;
  839. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  840. | --includ=* | --inclu=* | --incl=* | --inc=*)
  841. includedir=$ac_optarg ;;
  842. -infodir | --infodir | --infodi | --infod | --info | --inf)
  843. ac_prev=infodir ;;
  844. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  845. infodir=$ac_optarg ;;
  846. -libdir | --libdir | --libdi | --libd)
  847. ac_prev=libdir ;;
  848. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  849. libdir=$ac_optarg ;;
  850. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  851. | --libexe | --libex | --libe)
  852. ac_prev=libexecdir ;;
  853. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  854. | --libexe=* | --libex=* | --libe=*)
  855. libexecdir=$ac_optarg ;;
  856. -localedir | --localedir | --localedi | --localed | --locale)
  857. ac_prev=localedir ;;
  858. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  859. localedir=$ac_optarg ;;
  860. -localstatedir | --localstatedir | --localstatedi | --localstated \
  861. | --localstate | --localstat | --localsta | --localst | --locals)
  862. ac_prev=localstatedir ;;
  863. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  864. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  865. localstatedir=$ac_optarg ;;
  866. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  867. ac_prev=mandir ;;
  868. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  869. mandir=$ac_optarg ;;
  870. -nfp | --nfp | --nf)
  871. # Obsolete; use --without-fp.
  872. with_fp=no ;;
  873. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  874. | --no-cr | --no-c | -n)
  875. no_create=yes ;;
  876. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  877. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  878. no_recursion=yes ;;
  879. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  880. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  881. | --oldin | --oldi | --old | --ol | --o)
  882. ac_prev=oldincludedir ;;
  883. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  884. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  885. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  886. oldincludedir=$ac_optarg ;;
  887. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  888. ac_prev=prefix ;;
  889. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  890. prefix=$ac_optarg ;;
  891. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  892. | --program-pre | --program-pr | --program-p)
  893. ac_prev=program_prefix ;;
  894. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  895. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  896. program_prefix=$ac_optarg ;;
  897. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  898. | --program-suf | --program-su | --program-s)
  899. ac_prev=program_suffix ;;
  900. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  901. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  902. program_suffix=$ac_optarg ;;
  903. -program-transform-name | --program-transform-name \
  904. | --program-transform-nam | --program-transform-na \
  905. | --program-transform-n | --program-transform- \
  906. | --program-transform | --program-transfor \
  907. | --program-transfo | --program-transf \
  908. | --program-trans | --program-tran \
  909. | --progr-tra | --program-tr | --program-t)
  910. ac_prev=program_transform_name ;;
  911. -program-transform-name=* | --program-transform-name=* \
  912. | --program-transform-nam=* | --program-transform-na=* \
  913. | --program-transform-n=* | --program-transform-=* \
  914. | --program-transform=* | --program-transfor=* \
  915. | --program-transfo=* | --program-transf=* \
  916. | --program-trans=* | --program-tran=* \
  917. | --progr-tra=* | --program-tr=* | --program-t=*)
  918. program_transform_name=$ac_optarg ;;
  919. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  920. ac_prev=pdfdir ;;
  921. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  922. pdfdir=$ac_optarg ;;
  923. -psdir | --psdir | --psdi | --psd | --ps)
  924. ac_prev=psdir ;;
  925. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  926. psdir=$ac_optarg ;;
  927. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  928. | -silent | --silent | --silen | --sile | --sil)
  929. silent=yes ;;
  930. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  931. ac_prev=sbindir ;;
  932. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  933. | --sbi=* | --sb=*)
  934. sbindir=$ac_optarg ;;
  935. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  936. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  937. | --sharedst | --shareds | --shared | --share | --shar \
  938. | --sha | --sh)
  939. ac_prev=sharedstatedir ;;
  940. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  941. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  942. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  943. | --sha=* | --sh=*)
  944. sharedstatedir=$ac_optarg ;;
  945. -site | --site | --sit)
  946. ac_prev=site ;;
  947. -site=* | --site=* | --sit=*)
  948. site=$ac_optarg ;;
  949. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  950. ac_prev=srcdir ;;
  951. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  952. srcdir=$ac_optarg ;;
  953. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  954. | --syscon | --sysco | --sysc | --sys | --sy)
  955. ac_prev=sysconfdir ;;
  956. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  957. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  958. sysconfdir=$ac_optarg ;;
  959. -target | --target | --targe | --targ | --tar | --ta | --t)
  960. ac_prev=target_alias ;;
  961. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  962. target_alias=$ac_optarg ;;
  963. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  964. verbose=yes ;;
  965. -version | --version | --versio | --versi | --vers | -V)
  966. ac_init_version=: ;;
  967. -with-* | --with-*)
  968. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  969. # Reject names that are not valid shell variable names.
  970. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  971. as_fn_error $? "invalid package name: $ac_useropt"
  972. ac_useropt_orig=$ac_useropt
  973. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  974. case $ac_user_opts in
  975. *"
  976. "with_$ac_useropt"
  977. "*) ;;
  978. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  979. ac_unrecognized_sep=', ';;
  980. esac
  981. eval with_$ac_useropt=\$ac_optarg ;;
  982. -without-* | --without-*)
  983. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  986. as_fn_error $? "invalid package name: $ac_useropt"
  987. ac_useropt_orig=$ac_useropt
  988. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  989. case $ac_user_opts in
  990. *"
  991. "with_$ac_useropt"
  992. "*) ;;
  993. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  994. ac_unrecognized_sep=', ';;
  995. esac
  996. eval with_$ac_useropt=no ;;
  997. --x)
  998. # Obsolete; use --with-x.
  999. with_x=yes ;;
  1000. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1001. | --x-incl | --x-inc | --x-in | --x-i)
  1002. ac_prev=x_includes ;;
  1003. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1004. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1005. x_includes=$ac_optarg ;;
  1006. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1007. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1008. ac_prev=x_libraries ;;
  1009. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1010. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1011. x_libraries=$ac_optarg ;;
  1012. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1013. Try \`$0 --help' for more information"
  1014. ;;
  1015. *=*)
  1016. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1017. # Reject names that are not valid shell variable names.
  1018. case $ac_envvar in #(
  1019. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1020. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1021. esac
  1022. eval $ac_envvar=\$ac_optarg
  1023. export $ac_envvar ;;
  1024. *)
  1025. # FIXME: should be removed in autoconf 3.0.
  1026. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1027. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1028. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1029. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1030. ;;
  1031. esac
  1032. done
  1033. if test -n "$ac_prev"; then
  1034. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1035. as_fn_error $? "missing argument to $ac_option"
  1036. fi
  1037. if test -n "$ac_unrecognized_opts"; then
  1038. case $enable_option_checking in
  1039. no) ;;
  1040. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1041. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1042. esac
  1043. fi
  1044. # Check all directory arguments for consistency.
  1045. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1046. datadir sysconfdir sharedstatedir localstatedir includedir \
  1047. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1048. libdir localedir mandir
  1049. do
  1050. eval ac_val=\$$ac_var
  1051. # Remove trailing slashes.
  1052. case $ac_val in
  1053. */ )
  1054. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1055. eval $ac_var=\$ac_val;;
  1056. esac
  1057. # Be sure to have absolute directory names.
  1058. case $ac_val in
  1059. [\\/$]* | ?:[\\/]* ) continue;;
  1060. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1061. esac
  1062. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1063. done
  1064. # There might be people who depend on the old broken behavior: `$host'
  1065. # used to hold the argument of --host etc.
  1066. # FIXME: To remove some day.
  1067. build=$build_alias
  1068. host=$host_alias
  1069. target=$target_alias
  1070. # FIXME: To remove some day.
  1071. if test "x$host_alias" != x; then
  1072. if test "x$build_alias" = x; then
  1073. cross_compiling=maybe
  1074. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1075. If a cross compiler is detected then cross compile mode will be used" >&2
  1076. elif test "x$build_alias" != "x$host_alias"; then
  1077. cross_compiling=yes
  1078. fi
  1079. fi
  1080. ac_tool_prefix=
  1081. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1082. test "$silent" = yes && exec 6>/dev/null
  1083. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1084. ac_ls_di=`ls -di .` &&
  1085. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1086. as_fn_error $? "working directory cannot be determined"
  1087. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1088. as_fn_error $? "pwd does not report name of working directory"
  1089. # Find the source files, if location was not specified.
  1090. if test -z "$srcdir"; then
  1091. ac_srcdir_defaulted=yes
  1092. # Try the directory containing this script, then the parent directory.
  1093. ac_confdir=`$as_dirname -- "$as_myself" ||
  1094. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1095. X"$as_myself" : 'X\(//\)[^/]' \| \
  1096. X"$as_myself" : 'X\(//\)$' \| \
  1097. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1098. $as_echo X"$as_myself" |
  1099. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1100. s//\1/
  1101. q
  1102. }
  1103. /^X\(\/\/\)[^/].*/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)$/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\).*/{
  1112. s//\1/
  1113. q
  1114. }
  1115. s/.*/./; q'`
  1116. srcdir=$ac_confdir
  1117. if test ! -r "$srcdir/$ac_unique_file"; then
  1118. srcdir=..
  1119. fi
  1120. else
  1121. ac_srcdir_defaulted=no
  1122. fi
  1123. if test ! -r "$srcdir/$ac_unique_file"; then
  1124. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1125. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1126. fi
  1127. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1128. ac_abs_confdir=`(
  1129. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1130. pwd)`
  1131. # When building in place, set srcdir=.
  1132. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1133. srcdir=.
  1134. fi
  1135. # Remove unnecessary trailing slashes from srcdir.
  1136. # Double slashes in file names in object file debugging info
  1137. # mess up M-x gdb in Emacs.
  1138. case $srcdir in
  1139. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1140. esac
  1141. for ac_var in $ac_precious_vars; do
  1142. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1143. eval ac_env_${ac_var}_value=\$${ac_var}
  1144. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1146. done
  1147. #
  1148. # Report the --help message.
  1149. #
  1150. if test "$ac_init_help" = "long"; then
  1151. # Omit some internal or obsolete options to make the list less imposing.
  1152. # This message is too long to be a string in the A/UX 3.1 sh.
  1153. cat <<_ACEOF
  1154. \`configure' configures ngIRCd 20 to adapt to many kinds of systems.
  1155. Usage: $0 [OPTION]... [VAR=VALUE]...
  1156. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1157. VAR=VALUE. See below for descriptions of some of the useful variables.
  1158. Defaults for the options are specified in brackets.
  1159. Configuration:
  1160. -h, --help display this help and exit
  1161. --help=short display options specific to this package
  1162. --help=recursive display the short help of all the included packages
  1163. -V, --version display version information and exit
  1164. -q, --quiet, --silent do not print \`checking ...' messages
  1165. --cache-file=FILE cache test results in FILE [disabled]
  1166. -C, --config-cache alias for \`--cache-file=config.cache'
  1167. -n, --no-create do not create output files
  1168. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1169. Installation directories:
  1170. --prefix=PREFIX install architecture-independent files in PREFIX
  1171. [$ac_default_prefix]
  1172. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1173. [PREFIX]
  1174. By default, \`make install' will install all the files in
  1175. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1176. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1177. for instance \`--prefix=\$HOME'.
  1178. For better control, use the options below.
  1179. Fine tuning of the installation directories:
  1180. --bindir=DIR user executables [EPREFIX/bin]
  1181. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1182. --libexecdir=DIR program executables [EPREFIX/libexec]
  1183. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1184. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1185. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1186. --libdir=DIR object code libraries [EPREFIX/lib]
  1187. --includedir=DIR C header files [PREFIX/include]
  1188. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1189. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1190. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1191. --infodir=DIR info documentation [DATAROOTDIR/info]
  1192. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1193. --mandir=DIR man documentation [DATAROOTDIR/man]
  1194. --docdir=DIR documentation root [DATAROOTDIR/doc/ngircd]
  1195. --htmldir=DIR html documentation [DOCDIR]
  1196. --dvidir=DIR dvi documentation [DOCDIR]
  1197. --pdfdir=DIR pdf documentation [DOCDIR]
  1198. --psdir=DIR ps documentation [DOCDIR]
  1199. _ACEOF
  1200. cat <<\_ACEOF
  1201. Program names:
  1202. --program-prefix=PREFIX prepend PREFIX to installed program names
  1203. --program-suffix=SUFFIX append SUFFIX to installed program names
  1204. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1205. System types:
  1206. --build=BUILD configure for building on BUILD [guessed]
  1207. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1208. _ACEOF
  1209. fi
  1210. if test -n "$ac_init_help"; then
  1211. case $ac_init_help in
  1212. short | recursive ) echo "Configuration of ngIRCd 20:";;
  1213. esac
  1214. cat <<\_ACEOF
  1215. Optional Features:
  1216. --disable-option-checking ignore unrecognized --enable/--with options
  1217. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1218. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1219. --enable-silent-rules less verbose build output (undo: `make V=1')
  1220. --disable-silent-rules verbose build output (undo: `make V=0')
  1221. --disable-dependency-tracking speeds up one-time build
  1222. --enable-dependency-tracking do not reject slow dependency extractors
  1223. --disable-ircplus disable IRC+ protocol
  1224. --enable-ipv6 enable IPv6 protocol support
  1225. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  1226. --enable-debug show additional debug output
  1227. --enable-strict-rfc strict RFC conformance -- may break clients!
  1228. Optional Packages:
  1229. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1230. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1231. --without-syslog disable syslog (autodetected by default)
  1232. --without-zlib disable zlib compression (autodetected by default)
  1233. --without-select disable select IO support (autodetected by default)
  1234. --without-poll disable poll support (autodetected by default)
  1235. --without-devpoll disable /dev/poll IO support (autodetected by
  1236. default)
  1237. --without-epoll disable epoll IO support (autodetected by default)
  1238. --without-kqueue disable kqueue IO support (autodetected by default)
  1239. --with-openssl enable SSL support using OpenSSL
  1240. --with-gnutls enable SSL support using gnutls
  1241. --with-tcp-wrappers enable TCP wrappers support
  1242. --with-ident enable "IDENT" ("AUTH") protocol support
  1243. --with-pam enable user authentication using PAM
  1244. --with-iconv enable character conversation using libiconv
  1245. Some influential environment variables:
  1246. CC C compiler command
  1247. CFLAGS C compiler flags
  1248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1249. nonstandard directory <lib dir>
  1250. LIBS libraries to pass to the linker, e.g. -l<library>
  1251. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1252. you have headers in a nonstandard directory <include dir>
  1253. CPP C preprocessor
  1254. Use these variables to override the choices made by `configure' or to help
  1255. it to find libraries and programs with nonstandard names/locations.
  1256. Report bugs to <ngircd-ml@ngircd.barton.de>.
  1257. ngIRCd home page: <http://ngircd.barton.de/>.
  1258. _ACEOF
  1259. ac_status=$?
  1260. fi
  1261. if test "$ac_init_help" = "recursive"; then
  1262. # If there are subdirs, report their specific --help.
  1263. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1264. test -d "$ac_dir" ||
  1265. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1266. continue
  1267. ac_builddir=.
  1268. case "$ac_dir" in
  1269. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1270. *)
  1271. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1272. # A ".." for each directory in $ac_dir_suffix.
  1273. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1274. case $ac_top_builddir_sub in
  1275. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1276. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1277. esac ;;
  1278. esac
  1279. ac_abs_top_builddir=$ac_pwd
  1280. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1281. # for backward compatibility:
  1282. ac_top_builddir=$ac_top_build_prefix
  1283. case $srcdir in
  1284. .) # We are building in place.
  1285. ac_srcdir=.
  1286. ac_top_srcdir=$ac_top_builddir_sub
  1287. ac_abs_top_srcdir=$ac_pwd ;;
  1288. [\\/]* | ?:[\\/]* ) # Absolute name.
  1289. ac_srcdir=$srcdir$ac_dir_suffix;
  1290. ac_top_srcdir=$srcdir
  1291. ac_abs_top_srcdir=$srcdir ;;
  1292. *) # Relative name.
  1293. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1294. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1295. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1296. esac
  1297. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1298. cd "$ac_dir" || { ac_status=$?; continue; }
  1299. # Check for guested configure.
  1300. if test -f "$ac_srcdir/configure.gnu"; then
  1301. echo &&
  1302. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1303. elif test -f "$ac_srcdir/configure"; then
  1304. echo &&
  1305. $SHELL "$ac_srcdir/configure" --help=recursive
  1306. else
  1307. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1308. fi || ac_status=$?
  1309. cd "$ac_pwd" || { ac_status=$?; break; }
  1310. done
  1311. fi
  1312. test -n "$ac_init_help" && exit $ac_status
  1313. if $ac_init_version; then
  1314. cat <<\_ACEOF
  1315. ngIRCd configure 20
  1316. generated by GNU Autoconf 2.67
  1317. Copyright (C) 2010 Free Software Foundation, Inc.
  1318. This configure script is free software; the Free Software Foundation
  1319. gives unlimited permission to copy, distribute and modify it.
  1320. _ACEOF
  1321. exit
  1322. fi
  1323. ## ------------------------ ##
  1324. ## Autoconf initialization. ##
  1325. ## ------------------------ ##
  1326. # ac_fn_c_try_compile LINENO
  1327. # --------------------------
  1328. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1329. ac_fn_c_try_compile ()
  1330. {
  1331. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1332. rm -f conftest.$ac_objext
  1333. if { { ac_try="$ac_compile"
  1334. case "(($ac_try" in
  1335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1336. *) ac_try_echo=$ac_try;;
  1337. esac
  1338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1339. $as_echo "$ac_try_echo"; } >&5
  1340. (eval "$ac_compile") 2>conftest.err
  1341. ac_status=$?
  1342. if test -s conftest.err; then
  1343. grep -v '^ *+' conftest.err >conftest.er1
  1344. cat conftest.er1 >&5
  1345. mv -f conftest.er1 conftest.err
  1346. fi
  1347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1348. test $ac_status = 0; } && {
  1349. test -z "$ac_c_werror_flag" ||
  1350. test ! -s conftest.err
  1351. } && test -s conftest.$ac_objext; then :
  1352. ac_retval=0
  1353. else
  1354. $as_echo "$as_me: failed program was:" >&5
  1355. sed 's/^/| /' conftest.$ac_ext >&5
  1356. ac_retval=1
  1357. fi
  1358. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1359. as_fn_set_status $ac_retval
  1360. } # ac_fn_c_try_compile
  1361. # ac_fn_c_try_cpp LINENO
  1362. # ----------------------
  1363. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1364. ac_fn_c_try_cpp ()
  1365. {
  1366. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1367. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } > conftest.i && {
  1383. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. }; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1393. as_fn_set_status $ac_retval
  1394. } # ac_fn_c_try_cpp
  1395. # ac_fn_c_try_run LINENO
  1396. # ----------------------
  1397. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1398. # that executables *can* be run.
  1399. ac_fn_c_try_run ()
  1400. {
  1401. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1402. if { { ac_try="$ac_link"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_link") 2>&5
  1410. ac_status=$?
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1413. { { case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_try") 2>&5
  1420. ac_status=$?
  1421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1422. test $ac_status = 0; }; }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: program exited with status $ac_status" >&5
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=$ac_status
  1429. fi
  1430. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1431. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1432. as_fn_set_status $ac_retval
  1433. } # ac_fn_c_try_run
  1434. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1435. # -------------------------------------------------------
  1436. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1437. # the include files in INCLUDES and setting the cache variable VAR
  1438. # accordingly.
  1439. ac_fn_c_check_header_mongrel ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. if eval "test \"\${$3+set}\"" = set; then :
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1444. $as_echo_n "checking for $2... " >&6; }
  1445. if eval "test \"\${$3+set}\"" = set; then :
  1446. $as_echo_n "(cached) " >&6
  1447. fi
  1448. eval ac_res=\$$3
  1449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1450. $as_echo "$ac_res" >&6; }
  1451. else
  1452. # Is the header compilable?
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1454. $as_echo_n "checking $2 usability... " >&6; }
  1455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1456. /* end confdefs.h. */
  1457. $4
  1458. #include <$2>
  1459. _ACEOF
  1460. if ac_fn_c_try_compile "$LINENO"; then :
  1461. ac_header_compiler=yes
  1462. else
  1463. ac_header_compiler=no
  1464. fi
  1465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1467. $as_echo "$ac_header_compiler" >&6; }
  1468. # Is the header present?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1470. $as_echo_n "checking $2 presence... " >&6; }
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. #include <$2>
  1474. _ACEOF
  1475. if ac_fn_c_try_cpp "$LINENO"; then :
  1476. ac_header_preproc=yes
  1477. else
  1478. ac_header_preproc=no
  1479. fi
  1480. rm -f conftest.err conftest.i conftest.$ac_ext
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1482. $as_echo "$ac_header_preproc" >&6; }
  1483. # So? What about this header?
  1484. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1485. yes:no: )
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1487. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1489. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1490. ;;
  1491. no:yes:* )
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1493. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1495. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1497. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1499. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1501. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1502. ( $as_echo "## ----------------------------------------- ##
  1503. ## Report this to ngircd-ml@ngircd.barton.de ##
  1504. ## ----------------------------------------- ##"
  1505. ) | sed "s/^/$as_me: WARNING: /" >&2
  1506. ;;
  1507. esac
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if eval "test \"\${$3+set}\"" = set; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. eval "$3=\$ac_header_compiler"
  1514. fi
  1515. eval ac_res=\$$3
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1517. $as_echo "$ac_res" >&6; }
  1518. fi
  1519. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1520. } # ac_fn_c_check_header_mongrel
  1521. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1522. # -------------------------------------------------------
  1523. # Tests whether HEADER exists and can be compiled using the include files in
  1524. # INCLUDES, setting the cache variable VAR accordingly.
  1525. ac_fn_c_check_header_compile ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1529. $as_echo_n "checking for $2... " >&6; }
  1530. if eval "test \"\${$3+set}\"" = set; then :
  1531. $as_echo_n "(cached) " >&6
  1532. else
  1533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1534. /* end confdefs.h. */
  1535. $4
  1536. #include <$2>
  1537. _ACEOF
  1538. if ac_fn_c_try_compile "$LINENO"; then :
  1539. eval "$3=yes"
  1540. else
  1541. eval "$3=no"
  1542. fi
  1543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1549. } # ac_fn_c_check_header_compile
  1550. # ac_fn_c_try_link LINENO
  1551. # -----------------------
  1552. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_link ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext conftest$ac_exeext
  1557. if { { ac_try="$ac_link"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_link") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest$ac_exeext && {
  1576. test "$cross_compiling" = yes ||
  1577. $as_test_x conftest$ac_exeext
  1578. }; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: failed program was:" >&5
  1582. sed 's/^/| /' conftest.$ac_ext >&5
  1583. ac_retval=1
  1584. fi
  1585. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1586. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1587. # interfere with the next link command; also delete a directory that is
  1588. # left behind by Apple's compiler. We do this before executing the actions.
  1589. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1590. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_link
  1593. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1594. # -------------------------------------------
  1595. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1596. # variable VAR accordingly.
  1597. ac_fn_c_check_type ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval "test \"\${$3+set}\"" = set; then :
  1603. $as_echo_n "(cached) " >&6
  1604. else
  1605. eval "$3=no"
  1606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1607. /* end confdefs.h. */
  1608. $4
  1609. int
  1610. main ()
  1611. {
  1612. if (sizeof ($2))
  1613. return 0;
  1614. ;
  1615. return 0;
  1616. }
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. $4
  1622. int
  1623. main ()
  1624. {
  1625. if (sizeof (($2)))
  1626. return 0;
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. if ac_fn_c_try_compile "$LINENO"; then :
  1632. else
  1633. eval "$3=yes"
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1636. fi
  1637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1643. } # ac_fn_c_check_type
  1644. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1645. # ------------------------------------
  1646. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1647. # accordingly.
  1648. ac_fn_c_find_uintX_t ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1652. $as_echo_n "checking for uint$2_t... " >&6; }
  1653. if eval "test \"\${$3+set}\"" = set; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. eval "$3=no"
  1657. # Order is important - never check a type that is potentially smaller
  1658. # than half of the expected target width.
  1659. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1660. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $ac_includes_default
  1664. int
  1665. main ()
  1666. {
  1667. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1668. test_array [0] = 0
  1669. ;
  1670. return 0;
  1671. }
  1672. _ACEOF
  1673. if ac_fn_c_try_compile "$LINENO"; then :
  1674. case $ac_type in #(
  1675. uint$2_t) :
  1676. eval "$3=yes" ;; #(
  1677. *) :
  1678. eval "$3=\$ac_type" ;;
  1679. esac
  1680. fi
  1681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1682. if eval test \"x\$"$3"\" = x"no"; then :
  1683. else
  1684. break
  1685. fi
  1686. done
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1692. } # ac_fn_c_find_uintX_t
  1693. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1694. # ----------------------------------------------------
  1695. # Tries to find if the field MEMBER exists in type AGGR, after including
  1696. # INCLUDES, setting cache variable VAR accordingly.
  1697. ac_fn_c_check_member ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1701. $as_echo_n "checking for $2.$3... " >&6; }
  1702. if eval "test \"\${$4+set}\"" = set; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $5
  1708. int
  1709. main ()
  1710. {
  1711. static $2 ac_aggr;
  1712. if (ac_aggr.$3)
  1713. return 0;
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_compile "$LINENO"; then :
  1719. eval "$4=yes"
  1720. else
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $5
  1724. int
  1725. main ()
  1726. {
  1727. static $2 ac_aggr;
  1728. if (sizeof ac_aggr.$3)
  1729. return 0;
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"; then :
  1735. eval "$4=yes"
  1736. else
  1737. eval "$4=no"
  1738. fi
  1739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1740. fi
  1741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1742. fi
  1743. eval ac_res=\$$4
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1745. $as_echo "$ac_res" >&6; }
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. } # ac_fn_c_check_member
  1748. # ac_fn_c_check_func LINENO FUNC VAR
  1749. # ----------------------------------
  1750. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1751. ac_fn_c_check_func ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if eval "test \"\${$3+set}\"" = set; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1762. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1763. #define $2 innocuous_$2
  1764. /* System header to define __stub macros and hopefully few prototypes,
  1765. which can conflict with char $2 (); below.
  1766. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1767. <limits.h> exists even on freestanding compilers. */
  1768. #ifdef __STDC__
  1769. # include <limits.h>
  1770. #else
  1771. # include <assert.h>
  1772. #endif
  1773. #undef $2
  1774. /* Override any GCC internal prototype to avoid an error.
  1775. Use char because int might match the return type of a GCC
  1776. builtin and then its argument prototype would still apply. */
  1777. #ifdef __cplusplus
  1778. extern "C"
  1779. #endif
  1780. char $2 ();
  1781. /* The GNU C library defines this for functions which it implements
  1782. to always fail with ENOSYS. Some functions are actually named
  1783. something starting with __ and the normal name is an alias. */
  1784. #if defined __stub_$2 || defined __stub___$2
  1785. choke me
  1786. #endif
  1787. int
  1788. main ()
  1789. {
  1790. return $2 ();
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_link "$LINENO"; then :
  1796. eval "$3=yes"
  1797. else
  1798. eval "$3=no"
  1799. fi
  1800. rm -f core conftest.err conftest.$ac_objext \
  1801. conftest$ac_exeext conftest.$ac_ext
  1802. fi
  1803. eval ac_res=\$$3
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1805. $as_echo "$ac_res" >&6; }
  1806. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1807. } # ac_fn_c_check_func
  1808. cat >config.log <<_ACEOF
  1809. This file contains any messages produced by compilers while
  1810. running configure, to aid debugging if configure makes a mistake.
  1811. It was created by ngIRCd $as_me 20, which was
  1812. generated by GNU Autoconf 2.67. Invocation command line was
  1813. $ $0 $@
  1814. _ACEOF
  1815. exec 5>>config.log
  1816. {
  1817. cat <<_ASUNAME
  1818. ## --------- ##
  1819. ## Platform. ##
  1820. ## --------- ##
  1821. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1822. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1823. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1824. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1825. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1826. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1827. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1828. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1829. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1830. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1831. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1832. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1833. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1834. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1835. _ASUNAME
  1836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1837. for as_dir in $PATH
  1838. do
  1839. IFS=$as_save_IFS
  1840. test -z "$as_dir" && as_dir=.
  1841. $as_echo "PATH: $as_dir"
  1842. done
  1843. IFS=$as_save_IFS
  1844. } >&5
  1845. cat >&5 <<_ACEOF
  1846. ## ----------- ##
  1847. ## Core tests. ##
  1848. ## ----------- ##
  1849. _ACEOF
  1850. # Keep a trace of the command line.
  1851. # Strip out --no-create and --no-recursion so they do not pile up.
  1852. # Strip out --silent because we don't want to record it for future runs.
  1853. # Also quote any args containing shell meta-characters.
  1854. # Make two passes to allow for proper duplicate-argument suppression.
  1855. ac_configure_args=
  1856. ac_configure_args0=
  1857. ac_configure_args1=
  1858. ac_must_keep_next=false
  1859. for ac_pass in 1 2
  1860. do
  1861. for ac_arg
  1862. do
  1863. case $ac_arg in
  1864. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1865. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1866. | -silent | --silent | --silen | --sile | --sil)
  1867. continue ;;
  1868. *\'*)
  1869. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1870. esac
  1871. case $ac_pass in
  1872. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1873. 2)
  1874. as_fn_append ac_configure_args1 " '$ac_arg'"
  1875. if test $ac_must_keep_next = true; then
  1876. ac_must_keep_next=false # Got value, back to normal.
  1877. else
  1878. case $ac_arg in
  1879. *=* | --config-cache | -C | -disable-* | --disable-* \
  1880. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1881. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1882. | -with-* | --with-* | -without-* | --without-* | --x)
  1883. case "$ac_configure_args0 " in
  1884. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1885. esac
  1886. ;;
  1887. -* ) ac_must_keep_next=true ;;
  1888. esac
  1889. fi
  1890. as_fn_append ac_configure_args " '$ac_arg'"
  1891. ;;
  1892. esac
  1893. done
  1894. done
  1895. { ac_configure_args0=; unset ac_configure_args0;}
  1896. { ac_configure_args1=; unset ac_configure_args1;}
  1897. # When interrupted or exit'd, cleanup temporary files, and complete
  1898. # config.log. We remove comments because anyway the quotes in there
  1899. # would cause problems or look ugly.
  1900. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1901. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1902. trap 'exit_status=$?
  1903. # Save into config.log some information that might help in debugging.
  1904. {
  1905. echo
  1906. $as_echo "## ---------------- ##
  1907. ## Cache variables. ##
  1908. ## ---------------- ##"
  1909. echo
  1910. # The following way of writing the cache mishandles newlines in values,
  1911. (
  1912. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1913. eval ac_val=\$$ac_var
  1914. case $ac_val in #(
  1915. *${as_nl}*)
  1916. case $ac_var in #(
  1917. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1918. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1919. esac
  1920. case $ac_var in #(
  1921. _ | IFS | as_nl) ;; #(
  1922. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1923. *) { eval $ac_var=; unset $ac_var;} ;;
  1924. esac ;;
  1925. esac
  1926. done
  1927. (set) 2>&1 |
  1928. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1929. *${as_nl}ac_space=\ *)
  1930. sed -n \
  1931. "s/'\''/'\''\\\\'\'''\''/g;
  1932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1933. ;; #(
  1934. *)
  1935. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1936. ;;
  1937. esac |
  1938. sort
  1939. )
  1940. echo
  1941. $as_echo "## ----------------- ##
  1942. ## Output variables. ##
  1943. ## ----------------- ##"
  1944. echo
  1945. for ac_var in $ac_subst_vars
  1946. do
  1947. eval ac_val=\$$ac_var
  1948. case $ac_val in
  1949. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1950. esac
  1951. $as_echo "$ac_var='\''$ac_val'\''"
  1952. done | sort
  1953. echo
  1954. if test -n "$ac_subst_files"; then
  1955. $as_echo "## ------------------- ##
  1956. ## File substitutions. ##
  1957. ## ------------------- ##"
  1958. echo
  1959. for ac_var in $ac_subst_files
  1960. do
  1961. eval ac_val=\$$ac_var
  1962. case $ac_val in
  1963. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1964. esac
  1965. $as_echo "$ac_var='\''$ac_val'\''"
  1966. done | sort
  1967. echo
  1968. fi
  1969. if test -s confdefs.h; then
  1970. $as_echo "## ----------- ##
  1971. ## confdefs.h. ##
  1972. ## ----------- ##"
  1973. echo
  1974. cat confdefs.h
  1975. echo
  1976. fi
  1977. test "$ac_signal" != 0 &&
  1978. $as_echo "$as_me: caught signal $ac_signal"
  1979. $as_echo "$as_me: exit $exit_status"
  1980. } >&5
  1981. rm -f core *.core core.conftest.* &&
  1982. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1983. exit $exit_status
  1984. ' 0
  1985. for ac_signal in 1 2 13 15; do
  1986. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1987. done
  1988. ac_signal=0
  1989. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1990. rm -f -r conftest* confdefs.h
  1991. $as_echo "/* confdefs.h */" > confdefs.h
  1992. # Predefined preprocessor variables.
  1993. cat >>confdefs.h <<_ACEOF
  1994. #define PACKAGE_NAME "$PACKAGE_NAME"
  1995. _ACEOF
  1996. cat >>confdefs.h <<_ACEOF
  1997. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1998. _ACEOF
  1999. cat >>confdefs.h <<_ACEOF
  2000. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2001. _ACEOF
  2002. cat >>confdefs.h <<_ACEOF
  2003. #define PACKAGE_STRING "$PACKAGE_STRING"
  2004. _ACEOF
  2005. cat >>confdefs.h <<_ACEOF
  2006. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2007. _ACEOF
  2008. cat >>confdefs.h <<_ACEOF
  2009. #define PACKAGE_URL "$PACKAGE_URL"
  2010. _ACEOF
  2011. # Let the site file select an alternate cache file if it wants to.
  2012. # Prefer an explicitly selected file to automatically selected ones.
  2013. ac_site_file1=NONE
  2014. ac_site_file2=NONE
  2015. if test -n "$CONFIG_SITE"; then
  2016. # We do not want a PATH search for config.site.
  2017. case $CONFIG_SITE in #((
  2018. -*) ac_site_file1=./$CONFIG_SITE;;
  2019. */*) ac_site_file1=$CONFIG_SITE;;
  2020. *) ac_site_file1=./$CONFIG_SITE;;
  2021. esac
  2022. elif test "x$prefix" != xNONE; then
  2023. ac_site_file1=$prefix/share/config.site
  2024. ac_site_file2=$prefix/etc/config.site
  2025. else
  2026. ac_site_file1=$ac_default_prefix/share/config.site
  2027. ac_site_file2=$ac_default_prefix/etc/config.site
  2028. fi
  2029. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2030. do
  2031. test "x$ac_site_file" = xNONE && continue
  2032. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2034. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2035. sed 's/^/| /' "$ac_site_file" >&5
  2036. . "$ac_site_file" \
  2037. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2039. as_fn_error $? "failed to load site script $ac_site_file
  2040. See \`config.log' for more details" "$LINENO" 5 ; }
  2041. fi
  2042. done
  2043. if test -r "$cache_file"; then
  2044. # Some versions of bash will fail to source /dev/null (special files
  2045. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2046. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2048. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2049. case $cache_file in
  2050. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2051. *) . "./$cache_file";;
  2052. esac
  2053. fi
  2054. else
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2056. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2057. >$cache_file
  2058. fi
  2059. as_fn_append ac_header_list " arpa/inet.h"
  2060. as_fn_append ac_header_list " inttypes.h"
  2061. as_fn_append ac_header_list " malloc.h"
  2062. as_fn_append ac_header_list " netinet/ip.h"
  2063. as_fn_append ac_header_list " stdbool.h"
  2064. as_fn_append ac_header_list " stddef.h"
  2065. as_fn_append ac_header_list " stdint.h"
  2066. as_fn_append ac_header_list " varargs.h"
  2067. as_fn_append ac_func_list " gai_strerror"
  2068. as_fn_append ac_func_list " getaddrinfo"
  2069. as_fn_append ac_func_list " getnameinfo"
  2070. as_fn_append ac_func_list " inet_aton"
  2071. as_fn_append ac_func_list " sigaction"
  2072. as_fn_append ac_func_list " sigprocmask"
  2073. as_fn_append ac_func_list " snprintf"
  2074. as_fn_append ac_func_list " vsnprintf"
  2075. as_fn_append ac_func_list " strdup"
  2076. as_fn_append ac_func_list " strlcpy"
  2077. as_fn_append ac_func_list " strlcat"
  2078. as_fn_append ac_func_list " strtok_r"
  2079. as_fn_append ac_func_list " waitpid"
  2080. # Check that the precious variables saved in the cache have kept the same
  2081. # value.
  2082. ac_cache_corrupted=false
  2083. for ac_var in $ac_precious_vars; do
  2084. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2085. eval ac_new_set=\$ac_env_${ac_var}_set
  2086. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2087. eval ac_new_val=\$ac_env_${ac_var}_value
  2088. case $ac_old_set,$ac_new_set in
  2089. set,)
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2091. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2092. ac_cache_corrupted=: ;;
  2093. ,set)
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2095. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2096. ac_cache_corrupted=: ;;
  2097. ,);;
  2098. *)
  2099. if test "x$ac_old_val" != "x$ac_new_val"; then
  2100. # differences in whitespace do not lead to failure.
  2101. ac_old_val_w=`echo x $ac_old_val`
  2102. ac_new_val_w=`echo x $ac_new_val`
  2103. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2105. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2106. ac_cache_corrupted=:
  2107. else
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2109. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2110. eval $ac_var=\$ac_old_val
  2111. fi
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2113. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2115. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2116. fi;;
  2117. esac
  2118. # Pass precious variables to config.status.
  2119. if test "$ac_new_set" = set; then
  2120. case $ac_new_val in
  2121. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2122. *) ac_arg=$ac_var=$ac_new_val ;;
  2123. esac
  2124. case " $ac_configure_args " in
  2125. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2126. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2127. esac
  2128. fi
  2129. done
  2130. if $ac_cache_corrupted; then
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2134. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2135. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2136. fi
  2137. ## -------------------- ##
  2138. ## Main body of script. ##
  2139. ## -------------------- ##
  2140. ac_ext=c
  2141. ac_cpp='$CPP $CPPFLAGS'
  2142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2145. ac_config_headers="$ac_config_headers src/config.h"
  2146. ac_aux_dir=
  2147. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2148. if test -f "$ac_dir/install-sh"; then
  2149. ac_aux_dir=$ac_dir
  2150. ac_install_sh="$ac_aux_dir/install-sh -c"
  2151. break
  2152. elif test -f "$ac_dir/install.sh"; then
  2153. ac_aux_dir=$ac_dir
  2154. ac_install_sh="$ac_aux_dir/install.sh -c"
  2155. break
  2156. elif test -f "$ac_dir/shtool"; then
  2157. ac_aux_dir=$ac_dir
  2158. ac_install_sh="$ac_aux_dir/shtool install -c"
  2159. break
  2160. fi
  2161. done
  2162. if test -z "$ac_aux_dir"; then
  2163. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2164. fi
  2165. # These three variables are undocumented and unsupported,
  2166. # and are intended to be withdrawn in a future Autoconf release.
  2167. # They can cause serious problems if a builder's source tree is in a directory
  2168. # whose full name contains unusual characters.
  2169. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2170. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2171. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2172. # Make sure we can run config.sub.
  2173. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2174. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2176. $as_echo_n "checking build system type... " >&6; }
  2177. if test "${ac_cv_build+set}" = set; then :
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. ac_build_alias=$build_alias
  2181. test "x$ac_build_alias" = x &&
  2182. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2183. test "x$ac_build_alias" = x &&
  2184. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2185. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2186. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2187. fi
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2189. $as_echo "$ac_cv_build" >&6; }
  2190. case $ac_cv_build in
  2191. *-*-*) ;;
  2192. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2193. esac
  2194. build=$ac_cv_build
  2195. ac_save_IFS=$IFS; IFS='-'
  2196. set x $ac_cv_build
  2197. shift
  2198. build_cpu=$1
  2199. build_vendor=$2
  2200. shift; shift
  2201. # Remember, the first character of IFS is used to create $*,
  2202. # except with old shells:
  2203. build_os=$*
  2204. IFS=$ac_save_IFS
  2205. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2207. $as_echo_n "checking host system type... " >&6; }
  2208. if test "${ac_cv_host+set}" = set; then :
  2209. $as_echo_n "(cached) " >&6
  2210. else
  2211. if test "x$host_alias" = x; then
  2212. ac_cv_host=$ac_cv_build
  2213. else
  2214. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2215. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2216. fi
  2217. fi
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2219. $as_echo "$ac_cv_host" >&6; }
  2220. case $ac_cv_host in
  2221. *-*-*) ;;
  2222. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2223. esac
  2224. host=$ac_cv_host
  2225. ac_save_IFS=$IFS; IFS='-'
  2226. set x $ac_cv_host
  2227. shift
  2228. host_cpu=$1
  2229. host_vendor=$2
  2230. shift; shift
  2231. # Remember, the first character of IFS is used to create $*,
  2232. # except with old shells:
  2233. host_os=$*
  2234. IFS=$ac_save_IFS
  2235. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2236. am__api_version='1.11'
  2237. # Find a good install program. We prefer a C program (faster),
  2238. # so one script is as good as another. But avoid the broken or
  2239. # incompatible versions:
  2240. # SysV /etc/install, /usr/sbin/install
  2241. # SunOS /usr/etc/install
  2242. # IRIX /sbin/install
  2243. # AIX /bin/install
  2244. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2245. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2246. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2247. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2248. # OS/2's system install, which has a completely different semantic
  2249. # ./install, which can be erroneously created by make from ./install.sh.
  2250. # Reject install programs that cannot install multiple files.
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2252. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2253. if test -z "$INSTALL"; then
  2254. if test "${ac_cv_path_install+set}" = set; then :
  2255. $as_echo_n "(cached) " >&6
  2256. else
  2257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2258. for as_dir in $PATH
  2259. do
  2260. IFS=$as_save_IFS
  2261. test -z "$as_dir" && as_dir=.
  2262. # Account for people who put trailing slashes in PATH elements.
  2263. case $as_dir/ in #((
  2264. ./ | .// | /[cC]/* | \
  2265. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2266. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2267. /usr/ucb/* ) ;;
  2268. *)
  2269. # OSF1 and SCO ODT 3.0 have their own names for install.
  2270. # Don't use installbsd from OSF since it installs stuff as root
  2271. # by default.
  2272. for ac_prog in ginstall scoinst install; do
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2275. if test $ac_prog = install &&
  2276. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2277. # AIX install. It has an incompatible calling convention.
  2278. :
  2279. elif test $ac_prog = install &&
  2280. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2281. # program-specific install script used by HP pwplus--don't use.
  2282. :
  2283. else
  2284. rm -rf conftest.one conftest.two conftest.dir
  2285. echo one > conftest.one
  2286. echo two > conftest.two
  2287. mkdir conftest.dir
  2288. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2289. test -s conftest.one && test -s conftest.two &&
  2290. test -s conftest.dir/conftest.one &&
  2291. test -s conftest.dir/conftest.two
  2292. then
  2293. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2294. break 3
  2295. fi
  2296. fi
  2297. fi
  2298. done
  2299. done
  2300. ;;
  2301. esac
  2302. done
  2303. IFS=$as_save_IFS
  2304. rm -rf conftest.one conftest.two conftest.dir
  2305. fi
  2306. if test "${ac_cv_path_install+set}" = set; then
  2307. INSTALL=$ac_cv_path_install
  2308. else
  2309. # As a last resort, use the slow shell script. Don't cache a
  2310. # value for INSTALL within a source directory, because that will
  2311. # break other packages using the cache if that directory is
  2312. # removed, or if the value is a relative name.
  2313. INSTALL=$ac_install_sh
  2314. fi
  2315. fi
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2317. $as_echo "$INSTALL" >&6; }
  2318. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2319. # It thinks the first close brace ends the variable substitution.
  2320. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2321. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2322. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2324. $as_echo_n "checking whether build environment is sane... " >&6; }
  2325. # Just in case
  2326. sleep 1
  2327. echo timestamp > conftest.file
  2328. # Reject unsafe characters in $srcdir or the absolute working directory
  2329. # name. Accept space and tab only in the latter.
  2330. am_lf='
  2331. '
  2332. case `pwd` in
  2333. *[\\\"\#\$\&\'\`$am_lf]*)
  2334. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2335. esac
  2336. case $srcdir in
  2337. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2338. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2339. esac
  2340. # Do `set' in a subshell so we don't clobber the current shell's
  2341. # arguments. Must try -L first in case configure is actually a
  2342. # symlink; some systems play weird games with the mod time of symlinks
  2343. # (eg FreeBSD returns the mod time of the symlink's containing
  2344. # directory).
  2345. if (
  2346. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2347. if test "$*" = "X"; then
  2348. # -L didn't work.
  2349. set X `ls -t "$srcdir/configure" conftest.file`
  2350. fi
  2351. rm -f conftest.file
  2352. if test "$*" != "X $srcdir/configure conftest.file" \
  2353. && test "$*" != "X conftest.file $srcdir/configure"; then
  2354. # If neither matched, then we have a broken ls. This can happen
  2355. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2356. # broken ls alias from the environment. This has actually
  2357. # happened. Such a system could not be considered "sane".
  2358. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2359. alias in your environment" "$LINENO" 5
  2360. fi
  2361. test "$2" = conftest.file
  2362. )
  2363. then
  2364. # Ok.
  2365. :
  2366. else
  2367. as_fn_error $? "newly created file is older than distributed files!
  2368. Check your system clock" "$LINENO" 5
  2369. fi
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2371. $as_echo "yes" >&6; }
  2372. test "$program_prefix" != NONE &&
  2373. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2374. # Use a double $ so make ignores it.
  2375. test "$program_suffix" != NONE &&
  2376. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2377. # Double any \ or $.
  2378. # By default was `s,x,x', remove it if useless.
  2379. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2380. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2381. # expand $ac_aux_dir to an absolute path
  2382. am_aux_dir=`cd $ac_aux_dir && pwd`
  2383. if test x"${MISSING+set}" != xset; then
  2384. case $am_aux_dir in
  2385. *\ * | *\ *)
  2386. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2387. *)
  2388. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2389. esac
  2390. fi
  2391. # Use eval to expand $SHELL
  2392. if eval "$MISSING --run true"; then
  2393. am_missing_run="$MISSING --run "
  2394. else
  2395. am_missing_run=
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2397. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2398. fi
  2399. if test x"${install_sh}" != xset; then
  2400. case $am_aux_dir in
  2401. *\ * | *\ *)
  2402. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2403. *)
  2404. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2405. esac
  2406. fi
  2407. # Installed binaries are usually stripped using `strip' when the user
  2408. # run `make install-strip'. However `strip' might not be the right
  2409. # tool to use in cross-compilation environments, therefore Automake
  2410. # will honor the `STRIP' environment variable to overrule this program.
  2411. if test "$cross_compiling" != no; then
  2412. if test -n "$ac_tool_prefix"; then
  2413. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2414. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2416. $as_echo_n "checking for $ac_word... " >&6; }
  2417. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2418. $as_echo_n "(cached) " >&6
  2419. else
  2420. if test -n "$STRIP"; then
  2421. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2422. else
  2423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2424. for as_dir in $PATH
  2425. do
  2426. IFS=$as_save_IFS
  2427. test -z "$as_dir" && as_dir=.
  2428. for ac_exec_ext in '' $ac_executable_extensions; do
  2429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2430. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2432. break 2
  2433. fi
  2434. done
  2435. done
  2436. IFS=$as_save_IFS
  2437. fi
  2438. fi
  2439. STRIP=$ac_cv_prog_STRIP
  2440. if test -n "$STRIP"; then
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2442. $as_echo "$STRIP" >&6; }
  2443. else
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2445. $as_echo "no" >&6; }
  2446. fi
  2447. fi
  2448. if test -z "$ac_cv_prog_STRIP"; then
  2449. ac_ct_STRIP=$STRIP
  2450. # Extract the first word of "strip", so it can be a program name with args.
  2451. set dummy strip; ac_word=$2
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2453. $as_echo_n "checking for $ac_word... " >&6; }
  2454. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2455. $as_echo_n "(cached) " >&6
  2456. else
  2457. if test -n "$ac_ct_STRIP"; then
  2458. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2459. else
  2460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2461. for as_dir in $PATH
  2462. do
  2463. IFS=$as_save_IFS
  2464. test -z "$as_dir" && as_dir=.
  2465. for ac_exec_ext in '' $ac_executable_extensions; do
  2466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2467. ac_cv_prog_ac_ct_STRIP="strip"
  2468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2469. break 2
  2470. fi
  2471. done
  2472. done
  2473. IFS=$as_save_IFS
  2474. fi
  2475. fi
  2476. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2477. if test -n "$ac_ct_STRIP"; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2479. $as_echo "$ac_ct_STRIP" >&6; }
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2482. $as_echo "no" >&6; }
  2483. fi
  2484. if test "x$ac_ct_STRIP" = x; then
  2485. STRIP=":"
  2486. else
  2487. case $cross_compiling:$ac_tool_warned in
  2488. yes:)
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2491. ac_tool_warned=yes ;;
  2492. esac
  2493. STRIP=$ac_ct_STRIP
  2494. fi
  2495. else
  2496. STRIP="$ac_cv_prog_STRIP"
  2497. fi
  2498. fi
  2499. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2501. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2502. if test -z "$MKDIR_P"; then
  2503. if test "${ac_cv_path_mkdir+set}" = set; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. for ac_prog in mkdir gmkdir; do
  2512. for ac_exec_ext in '' $ac_executable_extensions; do
  2513. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2514. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2515. 'mkdir (GNU coreutils) '* | \
  2516. 'mkdir (coreutils) '* | \
  2517. 'mkdir (fileutils) '4.1*)
  2518. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2519. break 3;;
  2520. esac
  2521. done
  2522. done
  2523. done
  2524. IFS=$as_save_IFS
  2525. fi
  2526. test -d ./--version && rmdir ./--version
  2527. if test "${ac_cv_path_mkdir+set}" = set; then
  2528. MKDIR_P="$ac_cv_path_mkdir -p"
  2529. else
  2530. # As a last resort, use the slow shell script. Don't cache a
  2531. # value for MKDIR_P within a source directory, because that will
  2532. # break other packages using the cache if that directory is
  2533. # removed, or if the value is a relative name.
  2534. MKDIR_P="$ac_install_sh -d"
  2535. fi
  2536. fi
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2538. $as_echo "$MKDIR_P" >&6; }
  2539. mkdir_p="$MKDIR_P"
  2540. case $mkdir_p in
  2541. [\\/$]* | ?:[\\/]*) ;;
  2542. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2543. esac
  2544. for ac_prog in gawk mawk nawk awk
  2545. do
  2546. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2547. set dummy $ac_prog; ac_word=$2
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2549. $as_echo_n "checking for $ac_word... " >&6; }
  2550. if test "${ac_cv_prog_AWK+set}" = set; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. if test -n "$AWK"; then
  2554. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2555. else
  2556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2557. for as_dir in $PATH
  2558. do
  2559. IFS=$as_save_IFS
  2560. test -z "$as_dir" && as_dir=.
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2563. ac_cv_prog_AWK="$ac_prog"
  2564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2565. break 2
  2566. fi
  2567. done
  2568. done
  2569. IFS=$as_save_IFS
  2570. fi
  2571. fi
  2572. AWK=$ac_cv_prog_AWK
  2573. if test -n "$AWK"; then
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2575. $as_echo "$AWK" >&6; }
  2576. else
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2578. $as_echo "no" >&6; }
  2579. fi
  2580. test -n "$AWK" && break
  2581. done
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2583. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2584. set x ${MAKE-make}
  2585. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2586. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. cat >conftest.make <<\_ACEOF
  2590. SHELL = /bin/sh
  2591. all:
  2592. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2593. _ACEOF
  2594. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2595. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2596. *@@@%%%=?*=@@@%%%*)
  2597. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2598. *)
  2599. eval ac_cv_prog_make_${ac_make}_set=no;;
  2600. esac
  2601. rm -f conftest.make
  2602. fi
  2603. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2605. $as_echo "yes" >&6; }
  2606. SET_MAKE=
  2607. else
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2609. $as_echo "no" >&6; }
  2610. SET_MAKE="MAKE=${MAKE-make}"
  2611. fi
  2612. rm -rf .tst 2>/dev/null
  2613. mkdir .tst 2>/dev/null
  2614. if test -d .tst; then
  2615. am__leading_dot=.
  2616. else
  2617. am__leading_dot=_
  2618. fi
  2619. rmdir .tst 2>/dev/null
  2620. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2621. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2622. # is not polluted with repeated "-I."
  2623. am__isrc=' -I$(srcdir)'
  2624. # test to see if srcdir already configured
  2625. if test -f $srcdir/config.status; then
  2626. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2627. fi
  2628. fi
  2629. # test whether we have cygpath
  2630. if test -z "$CYGPATH_W"; then
  2631. if (cygpath --version) >/dev/null 2>/dev/null; then
  2632. CYGPATH_W='cygpath -w'
  2633. else
  2634. CYGPATH_W=echo
  2635. fi
  2636. fi
  2637. # Define the identity of the package.
  2638. PACKAGE='ngircd'
  2639. VERSION='20'
  2640. cat >>confdefs.h <<_ACEOF
  2641. #define PACKAGE "$PACKAGE"
  2642. _ACEOF
  2643. cat >>confdefs.h <<_ACEOF
  2644. #define VERSION "$VERSION"
  2645. _ACEOF
  2646. # Some tools Automake needs.
  2647. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2648. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2649. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2650. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2651. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2652. # We need awk for the "check" target. The system "awk" is bad on
  2653. # some platforms.
  2654. # Always define AMTAR for backward compatibility.
  2655. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2656. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2657. # Check whether --enable-silent-rules was given.
  2658. if test "${enable_silent_rules+set}" = set; then :
  2659. enableval=$enable_silent_rules;
  2660. fi
  2661. case $enable_silent_rules in
  2662. yes) AM_DEFAULT_VERBOSITY=0;;
  2663. no) AM_DEFAULT_VERBOSITY=1;;
  2664. *) AM_DEFAULT_VERBOSITY=0;;
  2665. esac
  2666. AM_BACKSLASH='\'
  2667. # -- Templates for config.h --
  2668. # -- C Compiler --
  2669. ac_ext=c
  2670. ac_cpp='$CPP $CPPFLAGS'
  2671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2674. if test -n "$ac_tool_prefix"; then
  2675. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2676. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2678. $as_echo_n "checking for $ac_word... " >&6; }
  2679. if test "${ac_cv_prog_CC+set}" = set; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test -n "$CC"; then
  2683. ac_cv_prog_CC="$CC" # Let the user override the test.
  2684. else
  2685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2686. for as_dir in $PATH
  2687. do
  2688. IFS=$as_save_IFS
  2689. test -z "$as_dir" && as_dir=.
  2690. for ac_exec_ext in '' $ac_executable_extensions; do
  2691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2692. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2694. break 2
  2695. fi
  2696. done
  2697. done
  2698. IFS=$as_save_IFS
  2699. fi
  2700. fi
  2701. CC=$ac_cv_prog_CC
  2702. if test -n "$CC"; then
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2704. $as_echo "$CC" >&6; }
  2705. else
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2707. $as_echo "no" >&6; }
  2708. fi
  2709. fi
  2710. if test -z "$ac_cv_prog_CC"; then
  2711. ac_ct_CC=$CC
  2712. # Extract the first word of "gcc", so it can be a program name with args.
  2713. set dummy gcc; ac_word=$2
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2715. $as_echo_n "checking for $ac_word... " >&6; }
  2716. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. if test -n "$ac_ct_CC"; then
  2720. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2729. ac_cv_prog_ac_ct_CC="gcc"
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2731. break 2
  2732. fi
  2733. done
  2734. done
  2735. IFS=$as_save_IFS
  2736. fi
  2737. fi
  2738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2739. if test -n "$ac_ct_CC"; then
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2741. $as_echo "$ac_ct_CC" >&6; }
  2742. else
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. fi
  2746. if test "x$ac_ct_CC" = x; then
  2747. CC=""
  2748. else
  2749. case $cross_compiling:$ac_tool_warned in
  2750. yes:)
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2752. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2753. ac_tool_warned=yes ;;
  2754. esac
  2755. CC=$ac_ct_CC
  2756. fi
  2757. else
  2758. CC="$ac_cv_prog_CC"
  2759. fi
  2760. if test -z "$CC"; then
  2761. if test -n "$ac_tool_prefix"; then
  2762. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2763. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if test "${ac_cv_prog_CC+set}" = set; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$CC"; then
  2770. ac_cv_prog_CC="$CC" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. CC=$ac_cv_prog_CC
  2789. if test -n "$CC"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2791. $as_echo "$CC" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. fi
  2797. fi
  2798. if test -z "$CC"; then
  2799. # Extract the first word of "cc", so it can be a program name with args.
  2800. set dummy cc; ac_word=$2
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2802. $as_echo_n "checking for $ac_word... " >&6; }
  2803. if test "${ac_cv_prog_CC+set}" = set; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$CC"; then
  2807. ac_cv_prog_CC="$CC" # Let the user override the test.
  2808. else
  2809. ac_prog_rejected=no
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2817. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2818. ac_prog_rejected=yes
  2819. continue
  2820. fi
  2821. ac_cv_prog_CC="cc"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. if test $ac_prog_rejected = yes; then
  2829. # We found a bogon in the path, so make sure we never use it.
  2830. set dummy $ac_cv_prog_CC
  2831. shift
  2832. if test $# != 0; then
  2833. # We chose a different compiler from the bogus one.
  2834. # However, it has the same basename, so the bogon will be chosen
  2835. # first if we set CC to just the basename; use the full file name.
  2836. shift
  2837. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2838. fi
  2839. fi
  2840. fi
  2841. fi
  2842. CC=$ac_cv_prog_CC
  2843. if test -n "$CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2845. $as_echo "$CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. fi
  2851. if test -z "$CC"; then
  2852. if test -n "$ac_tool_prefix"; then
  2853. for ac_prog in cl.exe
  2854. do
  2855. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2856. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2858. $as_echo_n "checking for $ac_word... " >&6; }
  2859. if test "${ac_cv_prog_CC+set}" = set; then :
  2860. $as_echo_n "(cached) " >&6
  2861. else
  2862. if test -n "$CC"; then
  2863. ac_cv_prog_CC="$CC" # Let the user override the test.
  2864. else
  2865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866. for as_dir in $PATH
  2867. do
  2868. IFS=$as_save_IFS
  2869. test -z "$as_dir" && as_dir=.
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2872. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. IFS=$as_save_IFS
  2879. fi
  2880. fi
  2881. CC=$ac_cv_prog_CC
  2882. if test -n "$CC"; then
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2884. $as_echo "$CC" >&6; }
  2885. else
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2887. $as_echo "no" >&6; }
  2888. fi
  2889. test -n "$CC" && break
  2890. done
  2891. fi
  2892. if test -z "$CC"; then
  2893. ac_ct_CC=$CC
  2894. for ac_prog in cl.exe
  2895. do
  2896. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2897. set dummy $ac_prog; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$ac_ct_CC"; then
  2904. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2913. ac_cv_prog_ac_ct_CC="$ac_prog"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2923. if test -n "$ac_ct_CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2925. $as_echo "$ac_ct_CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. test -n "$ac_ct_CC" && break
  2931. done
  2932. if test "x$ac_ct_CC" = x; then
  2933. CC=""
  2934. else
  2935. case $cross_compiling:$ac_tool_warned in
  2936. yes:)
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2939. ac_tool_warned=yes ;;
  2940. esac
  2941. CC=$ac_ct_CC
  2942. fi
  2943. fi
  2944. fi
  2945. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2947. as_fn_error $? "no acceptable C compiler found in \$PATH
  2948. See \`config.log' for more details" "$LINENO" 5 ; }
  2949. # Provide some information about the compiler.
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2951. set X $ac_compile
  2952. ac_compiler=$2
  2953. for ac_option in --version -v -V -qversion; do
  2954. { { ac_try="$ac_compiler $ac_option >&5"
  2955. case "(($ac_try" in
  2956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957. *) ac_try_echo=$ac_try;;
  2958. esac
  2959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2960. $as_echo "$ac_try_echo"; } >&5
  2961. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2962. ac_status=$?
  2963. if test -s conftest.err; then
  2964. sed '10a\
  2965. ... rest of stderr output deleted ...
  2966. 10q' conftest.err >conftest.er1
  2967. cat conftest.er1 >&5
  2968. fi
  2969. rm -f conftest.er1 conftest.err
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2971. test $ac_status = 0; }
  2972. done
  2973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2974. /* end confdefs.h. */
  2975. int
  2976. main ()
  2977. {
  2978. ;
  2979. return 0;
  2980. }
  2981. _ACEOF
  2982. ac_clean_files_save=$ac_clean_files
  2983. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2984. # Try to create an executable without -o first, disregard a.out.
  2985. # It will help us diagnose broken compilers, and finding out an intuition
  2986. # of exeext.
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2988. $as_echo_n "checking whether the C compiler works... " >&6; }
  2989. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2990. # The possible output files:
  2991. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2992. ac_rmfiles=
  2993. for ac_file in $ac_files
  2994. do
  2995. case $ac_file in
  2996. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2997. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2998. esac
  2999. done
  3000. rm -f $ac_rmfiles
  3001. if { { ac_try="$ac_link_default"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_link_default") 2>&5
  3009. ac_status=$?
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3011. test $ac_status = 0; }; then :
  3012. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3013. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3014. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3015. # so that the user can short-circuit this test for compilers unknown to
  3016. # Autoconf.
  3017. for ac_file in $ac_files ''
  3018. do
  3019. test -f "$ac_file" || continue
  3020. case $ac_file in
  3021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3022. ;;
  3023. [ab].out )
  3024. # We found the default executable, but exeext='' is most
  3025. # certainly right.
  3026. break;;
  3027. *.* )
  3028. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3029. then :; else
  3030. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3031. fi
  3032. # We set ac_cv_exeext here because the later test for it is not
  3033. # safe: cross compilers may not add the suffix if given an `-o'
  3034. # argument, so we may need to know it at that point already.
  3035. # Even if this section looks crufty: it has the advantage of
  3036. # actually working.
  3037. break;;
  3038. * )
  3039. break;;
  3040. esac
  3041. done
  3042. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3043. else
  3044. ac_file=''
  3045. fi
  3046. if test -z "$ac_file"; then :
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3048. $as_echo "no" >&6; }
  3049. $as_echo "$as_me: failed program was:" >&5
  3050. sed 's/^/| /' conftest.$ac_ext >&5
  3051. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3053. as_fn_error 77 "C compiler cannot create executables
  3054. See \`config.log' for more details" "$LINENO" 5 ; }
  3055. else
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3057. $as_echo "yes" >&6; }
  3058. fi
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3060. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3062. $as_echo "$ac_file" >&6; }
  3063. ac_exeext=$ac_cv_exeext
  3064. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3065. ac_clean_files=$ac_clean_files_save
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3067. $as_echo_n "checking for suffix of executables... " >&6; }
  3068. if { { ac_try="$ac_link"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_link") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }; then :
  3079. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3080. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3081. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3082. # `rm'.
  3083. for ac_file in conftest.exe conftest conftest.*; do
  3084. test -f "$ac_file" || continue
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3087. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3088. break;;
  3089. * ) break;;
  3090. esac
  3091. done
  3092. else
  3093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3095. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3096. See \`config.log' for more details" "$LINENO" 5 ; }
  3097. fi
  3098. rm -f conftest conftest$ac_cv_exeext
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3100. $as_echo "$ac_cv_exeext" >&6; }
  3101. rm -f conftest.$ac_ext
  3102. EXEEXT=$ac_cv_exeext
  3103. ac_exeext=$EXEEXT
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. #include <stdio.h>
  3107. int
  3108. main ()
  3109. {
  3110. FILE *f = fopen ("conftest.out", "w");
  3111. return ferror (f) || fclose (f) != 0;
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. ac_clean_files="$ac_clean_files conftest.out"
  3117. # Check that the compiler produces executables we can run. If not, either
  3118. # the compiler is broken, or we cross compile.
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3120. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3121. if test "$cross_compiling" != yes; then
  3122. { { ac_try="$ac_link"
  3123. case "(($ac_try" in
  3124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3125. *) ac_try_echo=$ac_try;;
  3126. esac
  3127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3128. $as_echo "$ac_try_echo"; } >&5
  3129. (eval "$ac_link") 2>&5
  3130. ac_status=$?
  3131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3132. test $ac_status = 0; }
  3133. if { ac_try='./conftest$ac_cv_exeext'
  3134. { { case "(($ac_try" in
  3135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3136. *) ac_try_echo=$ac_try;;
  3137. esac
  3138. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3139. $as_echo "$ac_try_echo"; } >&5
  3140. (eval "$ac_try") 2>&5
  3141. ac_status=$?
  3142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3143. test $ac_status = 0; }; }; then
  3144. cross_compiling=no
  3145. else
  3146. if test "$cross_compiling" = maybe; then
  3147. cross_compiling=yes
  3148. else
  3149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3151. as_fn_error $? "cannot run C compiled programs.
  3152. If you meant to cross compile, use \`--host'.
  3153. See \`config.log' for more details" "$LINENO" 5 ; }
  3154. fi
  3155. fi
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3158. $as_echo "$cross_compiling" >&6; }
  3159. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3160. ac_clean_files=$ac_clean_files_save
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3162. $as_echo_n "checking for suffix of object files... " >&6; }
  3163. if test "${ac_cv_objext+set}" = set; then :
  3164. $as_echo_n "(cached) " >&6
  3165. else
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. rm -f conftest.o conftest.obj
  3176. if { { ac_try="$ac_compile"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_compile") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }; then :
  3187. for ac_file in conftest.o conftest.obj conftest.*; do
  3188. test -f "$ac_file" || continue;
  3189. case $ac_file in
  3190. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3191. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3192. break;;
  3193. esac
  3194. done
  3195. else
  3196. $as_echo "$as_me: failed program was:" >&5
  3197. sed 's/^/| /' conftest.$ac_ext >&5
  3198. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3200. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3201. See \`config.log' for more details" "$LINENO" 5 ; }
  3202. fi
  3203. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3204. fi
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3206. $as_echo "$ac_cv_objext" >&6; }
  3207. OBJEXT=$ac_cv_objext
  3208. ac_objext=$OBJEXT
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3210. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3211. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. #ifndef __GNUC__
  3220. choke me
  3221. #endif
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. if ac_fn_c_try_compile "$LINENO"; then :
  3227. ac_compiler_gnu=yes
  3228. else
  3229. ac_compiler_gnu=no
  3230. fi
  3231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3233. fi
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3235. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3236. if test $ac_compiler_gnu = yes; then
  3237. GCC=yes
  3238. else
  3239. GCC=
  3240. fi
  3241. ac_test_CFLAGS=${CFLAGS+set}
  3242. ac_save_CFLAGS=$CFLAGS
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3244. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3245. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. ac_save_c_werror_flag=$ac_c_werror_flag
  3249. ac_c_werror_flag=yes
  3250. ac_cv_prog_cc_g=no
  3251. CFLAGS="-g"
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. int
  3255. main ()
  3256. {
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. if ac_fn_c_try_compile "$LINENO"; then :
  3262. ac_cv_prog_cc_g=yes
  3263. else
  3264. CFLAGS=""
  3265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3266. /* end confdefs.h. */
  3267. int
  3268. main ()
  3269. {
  3270. ;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. if ac_fn_c_try_compile "$LINENO"; then :
  3275. else
  3276. ac_c_werror_flag=$ac_save_c_werror_flag
  3277. CFLAGS="-g"
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. int
  3281. main ()
  3282. {
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_cv_prog_cc_g=yes
  3289. fi
  3290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3291. fi
  3292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3293. fi
  3294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3295. ac_c_werror_flag=$ac_save_c_werror_flag
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3298. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3299. if test "$ac_test_CFLAGS" = set; then
  3300. CFLAGS=$ac_save_CFLAGS
  3301. elif test $ac_cv_prog_cc_g = yes; then
  3302. if test "$GCC" = yes; then
  3303. CFLAGS="-g -O2"
  3304. else
  3305. CFLAGS="-g"
  3306. fi
  3307. else
  3308. if test "$GCC" = yes; then
  3309. CFLAGS="-O2"
  3310. else
  3311. CFLAGS=
  3312. fi
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3315. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3316. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. ac_cv_prog_cc_c89=no
  3320. ac_save_CC=$CC
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. #include <stdarg.h>
  3324. #include <stdio.h>
  3325. #include <sys/types.h>
  3326. #include <sys/stat.h>
  3327. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3328. struct buf { int x; };
  3329. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3330. static char *e (p, i)
  3331. char **p;
  3332. int i;
  3333. {
  3334. return p[i];
  3335. }
  3336. static char *f (char * (*g) (char **, int), char **p, ...)
  3337. {
  3338. char *s;
  3339. va_list v;
  3340. va_start (v,p);
  3341. s = g (p, va_arg (v,int));
  3342. va_end (v);
  3343. return s;
  3344. }
  3345. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3346. function prototypes and stuff, but not '\xHH' hex character constants.
  3347. These don't provoke an error unfortunately, instead are silently treated
  3348. as 'x'. The following induces an error, until -std is added to get
  3349. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3350. array size at least. It's necessary to write '\x00'==0 to get something
  3351. that's true only with -std. */
  3352. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3353. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3354. inside strings and character constants. */
  3355. #define FOO(x) 'x'
  3356. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3357. int test (int i, double x);
  3358. struct s1 {int (*f) (int a);};
  3359. struct s2 {int (*f) (double a);};
  3360. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3361. int argc;
  3362. char **argv;
  3363. int
  3364. main ()
  3365. {
  3366. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3372. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3373. do
  3374. CC="$ac_save_CC $ac_arg"
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_c89=$ac_arg
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext
  3379. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3380. done
  3381. rm -f conftest.$ac_ext
  3382. CC=$ac_save_CC
  3383. fi
  3384. # AC_CACHE_VAL
  3385. case "x$ac_cv_prog_cc_c89" in
  3386. x)
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3388. $as_echo "none needed" >&6; } ;;
  3389. xno)
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3391. $as_echo "unsupported" >&6; } ;;
  3392. *)
  3393. CC="$CC $ac_cv_prog_cc_c89"
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3395. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3396. esac
  3397. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3398. fi
  3399. ac_ext=c
  3400. ac_cpp='$CPP $CPPFLAGS'
  3401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3404. DEPDIR="${am__leading_dot}deps"
  3405. ac_config_commands="$ac_config_commands depfiles"
  3406. am_make=${MAKE-make}
  3407. cat > confinc << 'END'
  3408. am__doit:
  3409. @echo this is the am__doit target
  3410. .PHONY: am__doit
  3411. END
  3412. # If we don't find an include directive, just comment out the code.
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3414. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3415. am__include="#"
  3416. am__quote=
  3417. _am_result=none
  3418. # First try GNU make style include.
  3419. echo "include confinc" > confmf
  3420. # Ignore all kinds of additional output from `make'.
  3421. case `$am_make -s -f confmf 2> /dev/null` in #(
  3422. *the\ am__doit\ target*)
  3423. am__include=include
  3424. am__quote=
  3425. _am_result=GNU
  3426. ;;
  3427. esac
  3428. # Now try BSD make style include.
  3429. if test "$am__include" = "#"; then
  3430. echo '.include "confinc"' > confmf
  3431. case `$am_make -s -f confmf 2> /dev/null` in #(
  3432. *the\ am__doit\ target*)
  3433. am__include=.include
  3434. am__quote="\""
  3435. _am_result=BSD
  3436. ;;
  3437. esac
  3438. fi
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3440. $as_echo "$_am_result" >&6; }
  3441. rm -f confinc confmf
  3442. # Check whether --enable-dependency-tracking was given.
  3443. if test "${enable_dependency_tracking+set}" = set; then :
  3444. enableval=$enable_dependency_tracking;
  3445. fi
  3446. if test "x$enable_dependency_tracking" != xno; then
  3447. am_depcomp="$ac_aux_dir/depcomp"
  3448. AMDEPBACKSLASH='\'
  3449. fi
  3450. if test "x$enable_dependency_tracking" != xno; then
  3451. AMDEP_TRUE=
  3452. AMDEP_FALSE='#'
  3453. else
  3454. AMDEP_TRUE='#'
  3455. AMDEP_FALSE=
  3456. fi
  3457. depcc="$CC" am_compiler_list=
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3459. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3460. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3464. # We make a subdir and do the tests there. Otherwise we can end up
  3465. # making bogus files that we don't know about and never remove. For
  3466. # instance it was reported that on HP-UX the gcc test will end up
  3467. # making a dummy file named `D' -- because `-MD' means `put the output
  3468. # in D'.
  3469. mkdir conftest.dir
  3470. # Copy depcomp to subdir because otherwise we won't find it if we're
  3471. # using a relative directory.
  3472. cp "$am_depcomp" conftest.dir
  3473. cd conftest.dir
  3474. # We will build objects and dependencies in a subdirectory because
  3475. # it helps to detect inapplicable dependency modes. For instance
  3476. # both Tru64's cc and ICC support -MD to output dependencies as a
  3477. # side effect of compilation, but ICC will put the dependencies in
  3478. # the current directory while Tru64 will put them in the object
  3479. # directory.
  3480. mkdir sub
  3481. am_cv_CC_dependencies_compiler_type=none
  3482. if test "$am_compiler_list" = ""; then
  3483. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3484. fi
  3485. am__universal=false
  3486. case " $depcc " in #(
  3487. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3488. esac
  3489. for depmode in $am_compiler_list; do
  3490. # Setup a source with many dependencies, because some compilers
  3491. # like to wrap large dependency lists on column 80 (with \), and
  3492. # we should not choose a depcomp mode which is confused by this.
  3493. #
  3494. # We need to recreate these files for each test, as the compiler may
  3495. # overwrite some of them when testing with obscure command lines.
  3496. # This happens at least with the AIX C compiler.
  3497. : > sub/conftest.c
  3498. for i in 1 2 3 4 5 6; do
  3499. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3500. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3501. # Solaris 8's {/usr,}/bin/sh.
  3502. touch sub/conftst$i.h
  3503. done
  3504. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3505. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3506. # mode. It turns out that the SunPro C++ compiler does not properly
  3507. # handle `-M -o', and we need to detect this. Also, some Intel
  3508. # versions had trouble with output in subdirs
  3509. am__obj=sub/conftest.${OBJEXT-o}
  3510. am__minus_obj="-o $am__obj"
  3511. case $depmode in
  3512. gcc)
  3513. # This depmode causes a compiler race in universal mode.
  3514. test "$am__universal" = false || continue
  3515. ;;
  3516. nosideeffect)
  3517. # after this tag, mechanisms are not by side-effect, so they'll
  3518. # only be used when explicitly requested
  3519. if test "x$enable_dependency_tracking" = xyes; then
  3520. continue
  3521. else
  3522. break
  3523. fi
  3524. ;;
  3525. msvisualcpp | msvcmsys)
  3526. # This compiler won't grok `-c -o', but also, the minuso test has
  3527. # not run yet. These depmodes are late enough in the game, and
  3528. # so weak that their functioning should not be impacted.
  3529. am__obj=conftest.${OBJEXT-o}
  3530. am__minus_obj=
  3531. ;;
  3532. none) break ;;
  3533. esac
  3534. if depmode=$depmode \
  3535. source=sub/conftest.c object=$am__obj \
  3536. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3537. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3538. >/dev/null 2>conftest.err &&
  3539. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3540. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3541. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3542. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3543. # icc doesn't choke on unknown options, it will just issue warnings
  3544. # or remarks (even with -Werror). So we grep stderr for any message
  3545. # that says an option was ignored or not supported.
  3546. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3547. # icc: Command line warning: ignoring option '-M'; no argument required
  3548. # The diagnosis changed in icc 8.0:
  3549. # icc: Command line remark: option '-MP' not supported
  3550. if (grep 'ignoring option' conftest.err ||
  3551. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3552. am_cv_CC_dependencies_compiler_type=$depmode
  3553. break
  3554. fi
  3555. fi
  3556. done
  3557. cd ..
  3558. rm -rf conftest.dir
  3559. else
  3560. am_cv_CC_dependencies_compiler_type=none
  3561. fi
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3564. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3565. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3566. if
  3567. test "x$enable_dependency_tracking" != xno \
  3568. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3569. am__fastdepCC_TRUE=
  3570. am__fastdepCC_FALSE='#'
  3571. else
  3572. am__fastdepCC_TRUE='#'
  3573. am__fastdepCC_FALSE=
  3574. fi
  3575. case $ac_cv_prog_cc_stdc in #(
  3576. no) :
  3577. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3578. *) :
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3580. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3581. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. ac_cv_prog_cc_c99=no
  3585. ac_save_CC=$CC
  3586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3587. /* end confdefs.h. */
  3588. #include <stdarg.h>
  3589. #include <stdbool.h>
  3590. #include <stdlib.h>
  3591. #include <wchar.h>
  3592. #include <stdio.h>
  3593. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3594. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3595. #define showlist(...) puts (#__VA_ARGS__)
  3596. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3597. static void
  3598. test_varargs_macros (void)
  3599. {
  3600. int x = 1234;
  3601. int y = 5678;
  3602. debug ("Flag");
  3603. debug ("X = %d\n", x);
  3604. showlist (The first, second, and third items.);
  3605. report (x>y, "x is %d but y is %d", x, y);
  3606. }
  3607. // Check long long types.
  3608. #define BIG64 18446744073709551615ull
  3609. #define BIG32 4294967295ul
  3610. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3611. #if !BIG_OK
  3612. your preprocessor is broken;
  3613. #endif
  3614. #if BIG_OK
  3615. #else
  3616. your preprocessor is broken;
  3617. #endif
  3618. static long long int bignum = -9223372036854775807LL;
  3619. static unsigned long long int ubignum = BIG64;
  3620. struct incomplete_array
  3621. {
  3622. int datasize;
  3623. double data[];
  3624. };
  3625. struct named_init {
  3626. int number;
  3627. const wchar_t *name;
  3628. double average;
  3629. };
  3630. typedef const char *ccp;
  3631. static inline int
  3632. test_restrict (ccp restrict text)
  3633. {
  3634. // See if C++-style comments work.
  3635. // Iterate through items via the restricted pointer.
  3636. // Also check for declarations in for loops.
  3637. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3638. continue;
  3639. return 0;
  3640. }
  3641. // Check varargs and va_copy.
  3642. static void
  3643. test_varargs (const char *format, ...)
  3644. {
  3645. va_list args;
  3646. va_start (args, format);
  3647. va_list args_copy;
  3648. va_copy (args_copy, args);
  3649. const char *str;
  3650. int number;
  3651. float fnumber;
  3652. while (*format)
  3653. {
  3654. switch (*format++)
  3655. {
  3656. case 's': // string
  3657. str = va_arg (args_copy, const char *);
  3658. break;
  3659. case 'd': // int
  3660. number = va_arg (args_copy, int);
  3661. break;
  3662. case 'f': // float
  3663. fnumber = va_arg (args_copy, double);
  3664. break;
  3665. default:
  3666. break;
  3667. }
  3668. }
  3669. va_end (args_copy);
  3670. va_end (args);
  3671. }
  3672. int
  3673. main ()
  3674. {
  3675. // Check bool.
  3676. _Bool success = false;
  3677. // Check restrict.
  3678. if (test_restrict ("String literal") == 0)
  3679. success = true;
  3680. char *restrict newvar = "Another string";
  3681. // Check varargs.
  3682. test_varargs ("s, d' f .", "string", 65, 34.234);
  3683. test_varargs_macros ();
  3684. // Check flexible array members.
  3685. struct incomplete_array *ia =
  3686. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3687. ia->datasize = 10;
  3688. for (int i = 0; i < ia->datasize; ++i)
  3689. ia->data[i] = i * 1.234;
  3690. // Check named initializers.
  3691. struct named_init ni = {
  3692. .number = 34,
  3693. .name = L"Test wide string",
  3694. .average = 543.34343,
  3695. };
  3696. ni.number = 58;
  3697. int dynamic_array[ni.number];
  3698. dynamic_array[ni.number - 1] = 543;
  3699. // work around unused variable warnings
  3700. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3701. || dynamic_array[ni.number - 1] != 543);
  3702. ;
  3703. return 0;
  3704. }
  3705. _ACEOF
  3706. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3707. do
  3708. CC="$ac_save_CC $ac_arg"
  3709. if ac_fn_c_try_compile "$LINENO"; then :
  3710. ac_cv_prog_cc_c99=$ac_arg
  3711. fi
  3712. rm -f core conftest.err conftest.$ac_objext
  3713. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3714. done
  3715. rm -f conftest.$ac_ext
  3716. CC=$ac_save_CC
  3717. fi
  3718. # AC_CACHE_VAL
  3719. case "x$ac_cv_prog_cc_c99" in
  3720. x)
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3722. $as_echo "none needed" >&6; } ;;
  3723. xno)
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3725. $as_echo "unsupported" >&6; } ;;
  3726. *)
  3727. CC="$CC $ac_cv_prog_cc_c99"
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3729. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3730. esac
  3731. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3732. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3733. else
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3735. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3736. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. ac_cv_prog_cc_c89=no
  3740. ac_save_CC=$CC
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. #include <stdarg.h>
  3744. #include <stdio.h>
  3745. #include <sys/types.h>
  3746. #include <sys/stat.h>
  3747. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3748. struct buf { int x; };
  3749. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3750. static char *e (p, i)
  3751. char **p;
  3752. int i;
  3753. {
  3754. return p[i];
  3755. }
  3756. static char *f (char * (*g) (char **, int), char **p, ...)
  3757. {
  3758. char *s;
  3759. va_list v;
  3760. va_start (v,p);
  3761. s = g (p, va_arg (v,int));
  3762. va_end (v);
  3763. return s;
  3764. }
  3765. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3766. function prototypes and stuff, but not '\xHH' hex character constants.
  3767. These don't provoke an error unfortunately, instead are silently treated
  3768. as 'x'. The following induces an error, until -std is added to get
  3769. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3770. array size at least. It's necessary to write '\x00'==0 to get something
  3771. that's true only with -std. */
  3772. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3773. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3774. inside strings and character constants. */
  3775. #define FOO(x) 'x'
  3776. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3777. int test (int i, double x);
  3778. struct s1 {int (*f) (int a);};
  3779. struct s2 {int (*f) (double a);};
  3780. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3781. int argc;
  3782. char **argv;
  3783. int
  3784. main ()
  3785. {
  3786. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3787. ;
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3792. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3793. do
  3794. CC="$ac_save_CC $ac_arg"
  3795. if ac_fn_c_try_compile "$LINENO"; then :
  3796. ac_cv_prog_cc_c89=$ac_arg
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext
  3799. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3800. done
  3801. rm -f conftest.$ac_ext
  3802. CC=$ac_save_CC
  3803. fi
  3804. # AC_CACHE_VAL
  3805. case "x$ac_cv_prog_cc_c89" in
  3806. x)
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3808. $as_echo "none needed" >&6; } ;;
  3809. xno)
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3811. $as_echo "unsupported" >&6; } ;;
  3812. *)
  3813. CC="$CC $ac_cv_prog_cc_c89"
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3815. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3816. esac
  3817. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3818. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3819. else
  3820. ac_cv_prog_cc_stdc=no
  3821. fi
  3822. fi
  3823. ;;
  3824. esac
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  3826. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  3827. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  3828. $as_echo_n "(cached) " >&6
  3829. fi
  3830. case $ac_cv_prog_cc_stdc in #(
  3831. no) :
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3833. $as_echo "unsupported" >&6; } ;; #(
  3834. '') :
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3836. $as_echo "none needed" >&6; } ;; #(
  3837. *) :
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  3839. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  3840. esac
  3841. # -- Helper programs --
  3842. for ac_prog in gawk mawk nawk awk
  3843. do
  3844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3845. set dummy $ac_prog; ac_word=$2
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3847. $as_echo_n "checking for $ac_word... " >&6; }
  3848. if test "${ac_cv_prog_AWK+set}" = set; then :
  3849. $as_echo_n "(cached) " >&6
  3850. else
  3851. if test -n "$AWK"; then
  3852. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3853. else
  3854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3855. for as_dir in $PATH
  3856. do
  3857. IFS=$as_save_IFS
  3858. test -z "$as_dir" && as_dir=.
  3859. for ac_exec_ext in '' $ac_executable_extensions; do
  3860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3861. ac_cv_prog_AWK="$ac_prog"
  3862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3863. break 2
  3864. fi
  3865. done
  3866. done
  3867. IFS=$as_save_IFS
  3868. fi
  3869. fi
  3870. AWK=$ac_cv_prog_AWK
  3871. if test -n "$AWK"; then
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3873. $as_echo "$AWK" >&6; }
  3874. else
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3876. $as_echo "no" >&6; }
  3877. fi
  3878. test -n "$AWK" && break
  3879. done
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3881. $as_echo_n "checking whether ln -s works... " >&6; }
  3882. LN_S=$as_ln_s
  3883. if test "$LN_S" = "ln -s"; then
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3885. $as_echo "yes" >&6; }
  3886. else
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3888. $as_echo "no, using $LN_S" >&6; }
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3891. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3892. set x ${MAKE-make}
  3893. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3894. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. cat >conftest.make <<\_ACEOF
  3898. SHELL = /bin/sh
  3899. all:
  3900. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3901. _ACEOF
  3902. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3903. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3904. *@@@%%%=?*=@@@%%%*)
  3905. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3906. *)
  3907. eval ac_cv_prog_make_${ac_make}_set=no;;
  3908. esac
  3909. rm -f conftest.make
  3910. fi
  3911. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3913. $as_echo "yes" >&6; }
  3914. SET_MAKE=
  3915. else
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3917. $as_echo "no" >&6; }
  3918. SET_MAKE="MAKE=${MAKE-make}"
  3919. fi
  3920. if test -n "$ac_tool_prefix"; then
  3921. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3922. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3924. $as_echo_n "checking for $ac_word... " >&6; }
  3925. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. if test -n "$RANLIB"; then
  3929. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3930. else
  3931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3932. for as_dir in $PATH
  3933. do
  3934. IFS=$as_save_IFS
  3935. test -z "$as_dir" && as_dir=.
  3936. for ac_exec_ext in '' $ac_executable_extensions; do
  3937. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3938. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3940. break 2
  3941. fi
  3942. done
  3943. done
  3944. IFS=$as_save_IFS
  3945. fi
  3946. fi
  3947. RANLIB=$ac_cv_prog_RANLIB
  3948. if test -n "$RANLIB"; then
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3950. $as_echo "$RANLIB" >&6; }
  3951. else
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3953. $as_echo "no" >&6; }
  3954. fi
  3955. fi
  3956. if test -z "$ac_cv_prog_RANLIB"; then
  3957. ac_ct_RANLIB=$RANLIB
  3958. # Extract the first word of "ranlib", so it can be a program name with args.
  3959. set dummy ranlib; ac_word=$2
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3961. $as_echo_n "checking for $ac_word... " >&6; }
  3962. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. if test -n "$ac_ct_RANLIB"; then
  3966. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3967. else
  3968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3969. for as_dir in $PATH
  3970. do
  3971. IFS=$as_save_IFS
  3972. test -z "$as_dir" && as_dir=.
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3975. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3977. break 2
  3978. fi
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. fi
  3984. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3985. if test -n "$ac_ct_RANLIB"; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3987. $as_echo "$ac_ct_RANLIB" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3990. $as_echo "no" >&6; }
  3991. fi
  3992. if test "x$ac_ct_RANLIB" = x; then
  3993. RANLIB=":"
  3994. else
  3995. case $cross_compiling:$ac_tool_warned in
  3996. yes:)
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3999. ac_tool_warned=yes ;;
  4000. esac
  4001. RANLIB=$ac_ct_RANLIB
  4002. fi
  4003. else
  4004. RANLIB="$ac_cv_prog_RANLIB"
  4005. fi
  4006. # -- Compiler Features --
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4008. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4009. if test "${ac_cv_c_const+set}" = set; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013. /* end confdefs.h. */
  4014. int
  4015. main ()
  4016. {
  4017. /* FIXME: Include the comments suggested by Paul. */
  4018. #ifndef __cplusplus
  4019. /* Ultrix mips cc rejects this. */
  4020. typedef int charset[2];
  4021. const charset cs;
  4022. /* SunOS 4.1.1 cc rejects this. */
  4023. char const *const *pcpcc;
  4024. char **ppc;
  4025. /* NEC SVR4.0.2 mips cc rejects this. */
  4026. struct point {int x, y;};
  4027. static struct point const zero = {0,0};
  4028. /* AIX XL C 1.02.0.0 rejects this.
  4029. It does not let you subtract one const X* pointer from another in
  4030. an arm of an if-expression whose if-part is not a constant
  4031. expression */
  4032. const char *g = "string";
  4033. pcpcc = &g + (g ? g-g : 0);
  4034. /* HPUX 7.0 cc rejects these. */
  4035. ++pcpcc;
  4036. ppc = (char**) pcpcc;
  4037. pcpcc = (char const *const *) ppc;
  4038. { /* SCO 3.2v4 cc rejects this. */
  4039. char *t;
  4040. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4041. *t++ = 0;
  4042. if (s) return 0;
  4043. }
  4044. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4045. int x[] = {25, 17};
  4046. const int *foo = &x[0];
  4047. ++foo;
  4048. }
  4049. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4050. typedef const int *iptr;
  4051. iptr p = 0;
  4052. ++p;
  4053. }
  4054. { /* AIX XL C 1.02.0.0 rejects this saying
  4055. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4056. struct s { int j; const int *ap[3]; };
  4057. struct s *b; b->j = 5;
  4058. }
  4059. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4060. const int foo = 10;
  4061. if (!foo) return 0;
  4062. }
  4063. return !cs[0] && !zero.x;
  4064. #endif
  4065. ;
  4066. return 0;
  4067. }
  4068. _ACEOF
  4069. if ac_fn_c_try_compile "$LINENO"; then :
  4070. ac_cv_c_const=yes
  4071. else
  4072. ac_cv_c_const=no
  4073. fi
  4074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4077. $as_echo "$ac_cv_c_const" >&6; }
  4078. if test $ac_cv_c_const = no; then
  4079. $as_echo "#define const /**/" >>confdefs.h
  4080. fi
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4082. $as_echo_n "checking for inline... " >&6; }
  4083. if test "${ac_cv_c_inline+set}" = set; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. ac_cv_c_inline=no
  4087. for ac_kw in inline __inline__ __inline; do
  4088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4089. /* end confdefs.h. */
  4090. #ifndef __cplusplus
  4091. typedef int foo_t;
  4092. static $ac_kw foo_t static_foo () {return 0; }
  4093. $ac_kw foo_t foo () {return 0; }
  4094. #endif
  4095. _ACEOF
  4096. if ac_fn_c_try_compile "$LINENO"; then :
  4097. ac_cv_c_inline=$ac_kw
  4098. fi
  4099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4100. test "$ac_cv_c_inline" != no && break
  4101. done
  4102. fi
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4104. $as_echo "$ac_cv_c_inline" >&6; }
  4105. case $ac_cv_c_inline in
  4106. inline | yes) ;;
  4107. *)
  4108. case $ac_cv_c_inline in
  4109. no) ac_val=;;
  4110. *) ac_val=$ac_cv_c_inline;;
  4111. esac
  4112. cat >>confdefs.h <<_ACEOF
  4113. #ifndef __cplusplus
  4114. #define inline $ac_val
  4115. #endif
  4116. _ACEOF
  4117. ;;
  4118. esac
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  4120. $as_echo_n "checking for function prototypes... " >&6; }
  4121. if test "$ac_cv_prog_cc_c89" != no; then
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4123. $as_echo "yes" >&6; }
  4124. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  4125. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  4126. else
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4128. $as_echo "no" >&6; }
  4129. fi
  4130. ac_ext=c
  4131. ac_cpp='$CPP $CPPFLAGS'
  4132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4136. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4137. # On Suns, sometimes $CPP names a directory.
  4138. if test -n "$CPP" && test -d "$CPP"; then
  4139. CPP=
  4140. fi
  4141. if test -z "$CPP"; then
  4142. if test "${ac_cv_prog_CPP+set}" = set; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. # Double quotes because CPP needs to be expanded
  4146. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4147. do
  4148. ac_preproc_ok=false
  4149. for ac_c_preproc_warn_flag in '' yes
  4150. do
  4151. # Use a header file that comes with gcc, so configuring glibc
  4152. # with a fresh cross-compiler works.
  4153. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4154. # <limits.h> exists even on freestanding compilers.
  4155. # On the NeXT, cc -E runs the code through the compiler's parser,
  4156. # not just through cpp. "Syntax error" is here to catch this case.
  4157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4158. /* end confdefs.h. */
  4159. #ifdef __STDC__
  4160. # include <limits.h>
  4161. #else
  4162. # include <assert.h>
  4163. #endif
  4164. Syntax error
  4165. _ACEOF
  4166. if ac_fn_c_try_cpp "$LINENO"; then :
  4167. else
  4168. # Broken: fails on valid input.
  4169. continue
  4170. fi
  4171. rm -f conftest.err conftest.i conftest.$ac_ext
  4172. # OK, works on sane cases. Now check whether nonexistent headers
  4173. # can be detected and how.
  4174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4175. /* end confdefs.h. */
  4176. #include <ac_nonexistent.h>
  4177. _ACEOF
  4178. if ac_fn_c_try_cpp "$LINENO"; then :
  4179. # Broken: success on invalid input.
  4180. continue
  4181. else
  4182. # Passes both tests.
  4183. ac_preproc_ok=:
  4184. break
  4185. fi
  4186. rm -f conftest.err conftest.i conftest.$ac_ext
  4187. done
  4188. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4189. rm -f conftest.i conftest.err conftest.$ac_ext
  4190. if $ac_preproc_ok; then :
  4191. break
  4192. fi
  4193. done
  4194. ac_cv_prog_CPP=$CPP
  4195. fi
  4196. CPP=$ac_cv_prog_CPP
  4197. else
  4198. ac_cv_prog_CPP=$CPP
  4199. fi
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4201. $as_echo "$CPP" >&6; }
  4202. ac_preproc_ok=false
  4203. for ac_c_preproc_warn_flag in '' yes
  4204. do
  4205. # Use a header file that comes with gcc, so configuring glibc
  4206. # with a fresh cross-compiler works.
  4207. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4208. # <limits.h> exists even on freestanding compilers.
  4209. # On the NeXT, cc -E runs the code through the compiler's parser,
  4210. # not just through cpp. "Syntax error" is here to catch this case.
  4211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4212. /* end confdefs.h. */
  4213. #ifdef __STDC__
  4214. # include <limits.h>
  4215. #else
  4216. # include <assert.h>
  4217. #endif
  4218. Syntax error
  4219. _ACEOF
  4220. if ac_fn_c_try_cpp "$LINENO"; then :
  4221. else
  4222. # Broken: fails on valid input.
  4223. continue
  4224. fi
  4225. rm -f conftest.err conftest.i conftest.$ac_ext
  4226. # OK, works on sane cases. Now check whether nonexistent headers
  4227. # can be detected and how.
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. #include <ac_nonexistent.h>
  4231. _ACEOF
  4232. if ac_fn_c_try_cpp "$LINENO"; then :
  4233. # Broken: success on invalid input.
  4234. continue
  4235. else
  4236. # Passes both tests.
  4237. ac_preproc_ok=:
  4238. break
  4239. fi
  4240. rm -f conftest.err conftest.i conftest.$ac_ext
  4241. done
  4242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4243. rm -f conftest.i conftest.err conftest.$ac_ext
  4244. if $ac_preproc_ok; then :
  4245. else
  4246. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4248. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4249. See \`config.log' for more details" "$LINENO" 5 ; }
  4250. fi
  4251. ac_ext=c
  4252. ac_cpp='$CPP $CPPFLAGS'
  4253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4257. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4258. if test "${ac_cv_path_GREP+set}" = set; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -z "$GREP"; then
  4262. ac_path_GREP_found=false
  4263. # Loop through the user's path and test for each of PROGNAME-LIST
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_prog in grep ggrep; do
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4272. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4273. # Check for GNU ac_path_GREP and select it if it is found.
  4274. # Check for GNU $ac_path_GREP
  4275. case `"$ac_path_GREP" --version 2>&1` in
  4276. *GNU*)
  4277. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4278. *)
  4279. ac_count=0
  4280. $as_echo_n 0123456789 >"conftest.in"
  4281. while :
  4282. do
  4283. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4284. mv "conftest.tmp" "conftest.in"
  4285. cp "conftest.in" "conftest.nl"
  4286. $as_echo 'GREP' >> "conftest.nl"
  4287. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4288. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4289. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4290. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4291. # Best one so far, save it but keep looking for a better one
  4292. ac_cv_path_GREP="$ac_path_GREP"
  4293. ac_path_GREP_max=$ac_count
  4294. fi
  4295. # 10*(2^10) chars as input seems more than enough
  4296. test $ac_count -gt 10 && break
  4297. done
  4298. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4299. esac
  4300. $ac_path_GREP_found && break 3
  4301. done
  4302. done
  4303. done
  4304. IFS=$as_save_IFS
  4305. if test -z "$ac_cv_path_GREP"; then
  4306. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4307. fi
  4308. else
  4309. ac_cv_path_GREP=$GREP
  4310. fi
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4313. $as_echo "$ac_cv_path_GREP" >&6; }
  4314. GREP="$ac_cv_path_GREP"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4316. $as_echo_n "checking for egrep... " >&6; }
  4317. if test "${ac_cv_path_EGREP+set}" = set; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4321. then ac_cv_path_EGREP="$GREP -E"
  4322. else
  4323. if test -z "$EGREP"; then
  4324. ac_path_EGREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in egrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4335. # Check for GNU ac_path_EGREP and select it if it is found.
  4336. # Check for GNU $ac_path_EGREP
  4337. case `"$ac_path_EGREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. $as_echo_n 0123456789 >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. $as_echo 'EGREP' >> "conftest.nl"
  4349. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4352. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_EGREP="$ac_path_EGREP"
  4355. ac_path_EGREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_EGREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. if test -z "$ac_cv_path_EGREP"; then
  4368. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4369. fi
  4370. else
  4371. ac_cv_path_EGREP=$EGREP
  4372. fi
  4373. fi
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4376. $as_echo "$ac_cv_path_EGREP" >&6; }
  4377. EGREP="$ac_cv_path_EGREP"
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4379. $as_echo_n "checking for ANSI C header files... " >&6; }
  4380. if test "${ac_cv_header_stdc+set}" = set; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4384. /* end confdefs.h. */
  4385. #include <stdlib.h>
  4386. #include <stdarg.h>
  4387. #include <string.h>
  4388. #include <float.h>
  4389. int
  4390. main ()
  4391. {
  4392. ;
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. if ac_fn_c_try_compile "$LINENO"; then :
  4397. ac_cv_header_stdc=yes
  4398. else
  4399. ac_cv_header_stdc=no
  4400. fi
  4401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4402. if test $ac_cv_header_stdc = yes; then
  4403. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4405. /* end confdefs.h. */
  4406. #include <string.h>
  4407. _ACEOF
  4408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4409. $EGREP "memchr" >/dev/null 2>&1; then :
  4410. else
  4411. ac_cv_header_stdc=no
  4412. fi
  4413. rm -f conftest*
  4414. fi
  4415. if test $ac_cv_header_stdc = yes; then
  4416. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4418. /* end confdefs.h. */
  4419. #include <stdlib.h>
  4420. _ACEOF
  4421. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4422. $EGREP "free" >/dev/null 2>&1; then :
  4423. else
  4424. ac_cv_header_stdc=no
  4425. fi
  4426. rm -f conftest*
  4427. fi
  4428. if test $ac_cv_header_stdc = yes; then
  4429. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4430. if test "$cross_compiling" = yes; then :
  4431. :
  4432. else
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. #include <ctype.h>
  4436. #include <stdlib.h>
  4437. #if ((' ' & 0x0FF) == 0x020)
  4438. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4439. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4440. #else
  4441. # define ISLOWER(c) \
  4442. (('a' <= (c) && (c) <= 'i') \
  4443. || ('j' <= (c) && (c) <= 'r') \
  4444. || ('s' <= (c) && (c) <= 'z'))
  4445. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4446. #endif
  4447. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4448. int
  4449. main ()
  4450. {
  4451. int i;
  4452. for (i = 0; i < 256; i++)
  4453. if (XOR (islower (i), ISLOWER (i))
  4454. || toupper (i) != TOUPPER (i))
  4455. return 2;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. if ac_fn_c_try_run "$LINENO"; then :
  4460. else
  4461. ac_cv_header_stdc=no
  4462. fi
  4463. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4464. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4465. fi
  4466. fi
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4469. $as_echo "$ac_cv_header_stdc" >&6; }
  4470. if test $ac_cv_header_stdc = yes; then
  4471. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4472. fi
  4473. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4474. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4475. inttypes.h stdint.h unistd.h
  4476. do :
  4477. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4478. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4479. "
  4480. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4481. cat >>confdefs.h <<_ACEOF
  4482. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4483. _ACEOF
  4484. fi
  4485. done
  4486. if test "$ac_cv_prog_cc_stdc" != no; then
  4487. U= ANSI2KNR=
  4488. else
  4489. U=_ ANSI2KNR=./ansi2knr
  4490. fi
  4491. # Ensure some checks needed by ansi2knr itself.
  4492. for ac_header in string.h
  4493. do :
  4494. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4495. if test "x$ac_cv_header_string_h" = x""yes; then :
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define HAVE_STRING_H 1
  4498. _ACEOF
  4499. fi
  4500. done
  4501. # -- Hard coded system and compiler dependencies/features/options ... --
  4502. if test "$GCC" = "yes"; then
  4503. # We are using the GNU C compiler. Good!
  4504. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4505. ssp_cc=yes
  4506. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
  4508. $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
  4509. ssp_old_cflags="$CFLAGS"
  4510. CFLAGS="$CFLAGS -fstack-protector-all"
  4511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4512. /* end confdefs.h. */
  4513. int
  4514. main ()
  4515. {
  4516. ;
  4517. return 0;
  4518. }
  4519. _ACEOF
  4520. if ac_fn_c_try_link "$LINENO"; then :
  4521. else
  4522. ssp_cc=no
  4523. fi
  4524. rm -f core conftest.err conftest.$ac_objext \
  4525. conftest$ac_exeext conftest.$ac_ext
  4526. echo $ssp_cc
  4527. CFLAGS="$ssp_old_cflags"
  4528. if test "X$ssp_cc" = "Xyes"; then
  4529. CFLAGS="$CFLAGS -fstack-protector"
  4530. $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
  4531. fi
  4532. fi
  4533. case "$host_os" in
  4534. hpux*)
  4535. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4536. # (tested with HP/UX 11.11)
  4537. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4538. ;;
  4539. esac
  4540. # Add additional CFLAGS, eventually specified on the command line:
  4541. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4542. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  4543. # -- Headers --
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4545. $as_echo_n "checking for ANSI C header files... " >&6; }
  4546. if test "${ac_cv_header_stdc+set}" = set; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4550. /* end confdefs.h. */
  4551. #include <stdlib.h>
  4552. #include <stdarg.h>
  4553. #include <string.h>
  4554. #include <float.h>
  4555. int
  4556. main ()
  4557. {
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. if ac_fn_c_try_compile "$LINENO"; then :
  4563. ac_cv_header_stdc=yes
  4564. else
  4565. ac_cv_header_stdc=no
  4566. fi
  4567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4568. if test $ac_cv_header_stdc = yes; then
  4569. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end confdefs.h. */
  4572. #include <string.h>
  4573. _ACEOF
  4574. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4575. $EGREP "memchr" >/dev/null 2>&1; then :
  4576. else
  4577. ac_cv_header_stdc=no
  4578. fi
  4579. rm -f conftest*
  4580. fi
  4581. if test $ac_cv_header_stdc = yes; then
  4582. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4584. /* end confdefs.h. */
  4585. #include <stdlib.h>
  4586. _ACEOF
  4587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4588. $EGREP "free" >/dev/null 2>&1; then :
  4589. else
  4590. ac_cv_header_stdc=no
  4591. fi
  4592. rm -f conftest*
  4593. fi
  4594. if test $ac_cv_header_stdc = yes; then
  4595. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4596. if test "$cross_compiling" = yes; then :
  4597. :
  4598. else
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. #include <ctype.h>
  4602. #include <stdlib.h>
  4603. #if ((' ' & 0x0FF) == 0x020)
  4604. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4605. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4606. #else
  4607. # define ISLOWER(c) \
  4608. (('a' <= (c) && (c) <= 'i') \
  4609. || ('j' <= (c) && (c) <= 'r') \
  4610. || ('s' <= (c) && (c) <= 'z'))
  4611. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4612. #endif
  4613. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4614. int
  4615. main ()
  4616. {
  4617. int i;
  4618. for (i = 0; i < 256; i++)
  4619. if (XOR (islower (i), ISLOWER (i))
  4620. || toupper (i) != TOUPPER (i))
  4621. return 2;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. if ac_fn_c_try_run "$LINENO"; then :
  4626. else
  4627. ac_cv_header_stdc=no
  4628. fi
  4629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4631. fi
  4632. fi
  4633. fi
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4635. $as_echo "$ac_cv_header_stdc" >&6; }
  4636. if test $ac_cv_header_stdc = yes; then
  4637. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4640. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4641. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4642. $as_echo_n "(cached) " >&6
  4643. else
  4644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4645. /* end confdefs.h. */
  4646. #include <sys/types.h>
  4647. #include <sys/wait.h>
  4648. #ifndef WEXITSTATUS
  4649. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4650. #endif
  4651. #ifndef WIFEXITED
  4652. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4653. #endif
  4654. int
  4655. main ()
  4656. {
  4657. int s;
  4658. wait (&s);
  4659. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. if ac_fn_c_try_compile "$LINENO"; then :
  4665. ac_cv_header_sys_wait_h=yes
  4666. else
  4667. ac_cv_header_sys_wait_h=no
  4668. fi
  4669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4672. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4673. if test $ac_cv_header_sys_wait_h = yes; then
  4674. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4675. fi
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4677. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4678. if test "${ac_cv_header_time+set}" = set; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4682. /* end confdefs.h. */
  4683. #include <sys/types.h>
  4684. #include <sys/time.h>
  4685. #include <time.h>
  4686. int
  4687. main ()
  4688. {
  4689. if ((struct tm *) 0)
  4690. return 0;
  4691. ;
  4692. return 0;
  4693. }
  4694. _ACEOF
  4695. if ac_fn_c_try_compile "$LINENO"; then :
  4696. ac_cv_header_time=yes
  4697. else
  4698. ac_cv_header_time=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4703. $as_echo "$ac_cv_header_time" >&6; }
  4704. if test $ac_cv_header_time = yes; then
  4705. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4706. fi
  4707. # Required header files
  4708. for ac_header in \
  4709. fcntl.h netdb.h netinet/in.h netinet/in_systm.h stdlib.h string.h \
  4710. strings.h sys/socket.h sys/time.h unistd.h \
  4711. do :
  4712. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4713. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4714. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4715. cat >>confdefs.h <<_ACEOF
  4716. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4717. _ACEOF
  4718. else
  4719. as_fn_error $? "required C header missing!" "$LINENO" 5
  4720. fi
  4721. done
  4722. # Optional header files
  4723. for ac_header in $ac_header_list
  4724. do :
  4725. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4726. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4727. "
  4728. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4729. cat >>confdefs.h <<_ACEOF
  4730. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4731. _ACEOF
  4732. fi
  4733. done
  4734. # -- Datatypes --
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t exists" >&5
  4736. $as_echo_n "checking whether socklen_t exists... " >&6; }
  4737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4738. /* end confdefs.h. */
  4739. #include <sys/types.h>
  4740. #include <sys/socket.h>
  4741. int
  4742. main ()
  4743. {
  4744. socklen_t a, b;
  4745. a = 2; b = 4; a += b;
  4746. ;
  4747. return 0;
  4748. }
  4749. _ACEOF
  4750. if ac_fn_c_try_compile "$LINENO"; then :
  4751. $as_echo "#define HAVE_socklen_t 1" >>confdefs.h
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4753. $as_echo "yes" >&6; }
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. $as_echo "no" >&6; }
  4757. fi
  4758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4759. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4760. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4761. else
  4762. cat >>confdefs.h <<_ACEOF
  4763. #define pid_t int
  4764. _ACEOF
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  4767. $as_echo_n "checking return type of signal handlers... " >&6; }
  4768. if test "${ac_cv_type_signal+set}" = set; then :
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. #include <sys/types.h>
  4774. #include <signal.h>
  4775. int
  4776. main ()
  4777. {
  4778. return *(signal (0, 0)) (0) == 1;
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. ac_cv_type_signal=int
  4785. else
  4786. ac_cv_type_signal=void
  4787. fi
  4788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  4791. $as_echo "$ac_cv_type_signal" >&6; }
  4792. cat >>confdefs.h <<_ACEOF
  4793. #define RETSIGTYPE $ac_cv_type_signal
  4794. _ACEOF
  4795. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4796. if test "x$ac_cv_type_size_t" = x""yes; then :
  4797. else
  4798. cat >>confdefs.h <<_ACEOF
  4799. #define size_t unsigned int
  4800. _ACEOF
  4801. fi
  4802. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  4803. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  4804. else
  4805. cat >>confdefs.h <<_ACEOF
  4806. #define ssize_t int
  4807. _ACEOF
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4810. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4811. if test "${ac_cv_type_uid_t+set}" = set; then :
  4812. $as_echo_n "(cached) " >&6
  4813. else
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h. */
  4816. #include <sys/types.h>
  4817. _ACEOF
  4818. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4819. $EGREP "uid_t" >/dev/null 2>&1; then :
  4820. ac_cv_type_uid_t=yes
  4821. else
  4822. ac_cv_type_uid_t=no
  4823. fi
  4824. rm -f conftest*
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4827. $as_echo "$ac_cv_type_uid_t" >&6; }
  4828. if test $ac_cv_type_uid_t = no; then
  4829. $as_echo "#define uid_t int" >>confdefs.h
  4830. $as_echo "#define gid_t int" >>confdefs.h
  4831. fi
  4832. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  4833. case $ac_cv_c_uint16_t in #(
  4834. no|yes) ;; #(
  4835. *)
  4836. cat >>confdefs.h <<_ACEOF
  4837. #define uint16_t $ac_cv_c_uint16_t
  4838. _ACEOF
  4839. ;;
  4840. esac
  4841. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4842. case $ac_cv_c_uint32_t in #(
  4843. no|yes) ;; #(
  4844. *)
  4845. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4846. cat >>confdefs.h <<_ACEOF
  4847. #define uint32_t $ac_cv_c_uint32_t
  4848. _ACEOF
  4849. ;;
  4850. esac
  4851. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4852. case $ac_cv_c_uint8_t in #(
  4853. no|yes) ;; #(
  4854. *)
  4855. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4856. cat >>confdefs.h <<_ACEOF
  4857. #define uint8_t $ac_cv_c_uint8_t
  4858. _ACEOF
  4859. ;;
  4860. esac
  4861. ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <arpa/inet.h>
  4862. "
  4863. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  4864. $as_echo "#define HAVE_sockaddr_in_len 1" >>confdefs.h
  4865. fi
  4866. # -- Libraries --
  4867. # memmove: A/UX libUTIL
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmove" >&5
  4869. $as_echo_n "checking for library containing memmove... " >&6; }
  4870. if test "${ac_cv_search_memmove+set}" = set; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. ac_func_search_save_LIBS=$LIBS
  4874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4875. /* end confdefs.h. */
  4876. /* Override any GCC internal prototype to avoid an error.
  4877. Use char because int might match the return type of a GCC
  4878. builtin and then its argument prototype would still apply. */
  4879. #ifdef __cplusplus
  4880. extern "C"
  4881. #endif
  4882. char memmove ();
  4883. int
  4884. main ()
  4885. {
  4886. return memmove ();
  4887. ;
  4888. return 0;
  4889. }
  4890. _ACEOF
  4891. for ac_lib in '' UTIL; do
  4892. if test -z "$ac_lib"; then
  4893. ac_res="none required"
  4894. else
  4895. ac_res=-l$ac_lib
  4896. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4897. fi
  4898. if ac_fn_c_try_link "$LINENO"; then :
  4899. ac_cv_search_memmove=$ac_res
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext \
  4902. conftest$ac_exeext
  4903. if test "${ac_cv_search_memmove+set}" = set; then :
  4904. break
  4905. fi
  4906. done
  4907. if test "${ac_cv_search_memmove+set}" = set; then :
  4908. else
  4909. ac_cv_search_memmove=no
  4910. fi
  4911. rm conftest.$ac_ext
  4912. LIBS=$ac_func_search_save_LIBS
  4913. fi
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmove" >&5
  4915. $as_echo "$ac_cv_search_memmove" >&6; }
  4916. ac_res=$ac_cv_search_memmove
  4917. if test "$ac_res" != no; then :
  4918. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4919. else
  4920. as_fn_error $? "unable to find the memmove() function" "$LINENO" 5
  4921. fi
  4922. # gethostbyname: Solaris libnsl
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  4924. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  4925. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. ac_func_search_save_LIBS=$LIBS
  4929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4930. /* end confdefs.h. */
  4931. /* Override any GCC internal prototype to avoid an error.
  4932. Use char because int might match the return type of a GCC
  4933. builtin and then its argument prototype would still apply. */
  4934. #ifdef __cplusplus
  4935. extern "C"
  4936. #endif
  4937. char gethostbyname ();
  4938. int
  4939. main ()
  4940. {
  4941. return gethostbyname ();
  4942. ;
  4943. return 0;
  4944. }
  4945. _ACEOF
  4946. for ac_lib in '' bind nsl network; do
  4947. if test -z "$ac_lib"; then
  4948. ac_res="none required"
  4949. else
  4950. ac_res=-l$ac_lib
  4951. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4952. fi
  4953. if ac_fn_c_try_link "$LINENO"; then :
  4954. ac_cv_search_gethostbyname=$ac_res
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext \
  4957. conftest$ac_exeext
  4958. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4959. break
  4960. fi
  4961. done
  4962. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4963. else
  4964. ac_cv_search_gethostbyname=no
  4965. fi
  4966. rm conftest.$ac_ext
  4967. LIBS=$ac_func_search_save_LIBS
  4968. fi
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  4970. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  4971. ac_res=$ac_cv_search_gethostbyname
  4972. if test "$ac_res" != no; then :
  4973. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4974. else
  4975. as_fn_error $? "unable to find the gethostbyname() function" "$LINENO" 5
  4976. fi
  4977. # bind: SVR4 libsocket
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
  4979. $as_echo_n "checking for library containing bind... " >&6; }
  4980. if test "${ac_cv_search_bind+set}" = set; then :
  4981. $as_echo_n "(cached) " >&6
  4982. else
  4983. ac_func_search_save_LIBS=$LIBS
  4984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4985. /* end confdefs.h. */
  4986. /* Override any GCC internal prototype to avoid an error.
  4987. Use char because int might match the return type of a GCC
  4988. builtin and then its argument prototype would still apply. */
  4989. #ifdef __cplusplus
  4990. extern "C"
  4991. #endif
  4992. char bind ();
  4993. int
  4994. main ()
  4995. {
  4996. return bind ();
  4997. ;
  4998. return 0;
  4999. }
  5000. _ACEOF
  5001. for ac_lib in '' socket network; do
  5002. if test -z "$ac_lib"; then
  5003. ac_res="none required"
  5004. else
  5005. ac_res=-l$ac_lib
  5006. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5007. fi
  5008. if ac_fn_c_try_link "$LINENO"; then :
  5009. ac_cv_search_bind=$ac_res
  5010. fi
  5011. rm -f core conftest.err conftest.$ac_objext \
  5012. conftest$ac_exeext
  5013. if test "${ac_cv_search_bind+set}" = set; then :
  5014. break
  5015. fi
  5016. done
  5017. if test "${ac_cv_search_bind+set}" = set; then :
  5018. else
  5019. ac_cv_search_bind=no
  5020. fi
  5021. rm conftest.$ac_ext
  5022. LIBS=$ac_func_search_save_LIBS
  5023. fi
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
  5025. $as_echo "$ac_cv_search_bind" >&6; }
  5026. ac_res=$ac_cv_search_bind
  5027. if test "$ac_res" != no; then :
  5028. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5029. else
  5030. as_fn_error $? "unable to find the bind() function" "$LINENO" 5
  5031. fi
  5032. # -- Functions --
  5033. for ac_header in vfork.h
  5034. do :
  5035. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5036. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5037. cat >>confdefs.h <<_ACEOF
  5038. #define HAVE_VFORK_H 1
  5039. _ACEOF
  5040. fi
  5041. done
  5042. for ac_func in fork vfork
  5043. do :
  5044. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5045. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5046. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5047. cat >>confdefs.h <<_ACEOF
  5048. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5049. _ACEOF
  5050. fi
  5051. done
  5052. if test "x$ac_cv_func_fork" = xyes; then
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5054. $as_echo_n "checking for working fork... " >&6; }
  5055. if test "${ac_cv_func_fork_works+set}" = set; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. if test "$cross_compiling" = yes; then :
  5059. ac_cv_func_fork_works=cross
  5060. else
  5061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5062. /* end confdefs.h. */
  5063. $ac_includes_default
  5064. int
  5065. main ()
  5066. {
  5067. /* By Ruediger Kuhlmann. */
  5068. return fork () < 0;
  5069. ;
  5070. return 0;
  5071. }
  5072. _ACEOF
  5073. if ac_fn_c_try_run "$LINENO"; then :
  5074. ac_cv_func_fork_works=yes
  5075. else
  5076. ac_cv_func_fork_works=no
  5077. fi
  5078. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5079. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5080. fi
  5081. fi
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5083. $as_echo "$ac_cv_func_fork_works" >&6; }
  5084. else
  5085. ac_cv_func_fork_works=$ac_cv_func_fork
  5086. fi
  5087. if test "x$ac_cv_func_fork_works" = xcross; then
  5088. case $host in
  5089. *-*-amigaos* | *-*-msdosdjgpp*)
  5090. # Override, as these systems have only a dummy fork() stub
  5091. ac_cv_func_fork_works=no
  5092. ;;
  5093. *)
  5094. ac_cv_func_fork_works=yes
  5095. ;;
  5096. esac
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5098. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5099. fi
  5100. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5101. if test "x$ac_cv_func_vfork" = xyes; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5103. $as_echo_n "checking for working vfork... " >&6; }
  5104. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5105. $as_echo_n "(cached) " >&6
  5106. else
  5107. if test "$cross_compiling" = yes; then :
  5108. ac_cv_func_vfork_works=cross
  5109. else
  5110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5111. /* end confdefs.h. */
  5112. /* Thanks to Paul Eggert for this test. */
  5113. $ac_includes_default
  5114. #include <sys/wait.h>
  5115. #ifdef HAVE_VFORK_H
  5116. # include <vfork.h>
  5117. #endif
  5118. /* On some sparc systems, changes by the child to local and incoming
  5119. argument registers are propagated back to the parent. The compiler
  5120. is told about this with #include <vfork.h>, but some compilers
  5121. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5122. static variable whose address is put into a register that is
  5123. clobbered by the vfork. */
  5124. static void
  5125. #ifdef __cplusplus
  5126. sparc_address_test (int arg)
  5127. # else
  5128. sparc_address_test (arg) int arg;
  5129. #endif
  5130. {
  5131. static pid_t child;
  5132. if (!child) {
  5133. child = vfork ();
  5134. if (child < 0) {
  5135. perror ("vfork");
  5136. _exit(2);
  5137. }
  5138. if (!child) {
  5139. arg = getpid();
  5140. write(-1, "", 0);
  5141. _exit (arg);
  5142. }
  5143. }
  5144. }
  5145. int
  5146. main ()
  5147. {
  5148. pid_t parent = getpid ();
  5149. pid_t child;
  5150. sparc_address_test (0);
  5151. child = vfork ();
  5152. if (child == 0) {
  5153. /* Here is another test for sparc vfork register problems. This
  5154. test uses lots of local variables, at least as many local
  5155. variables as main has allocated so far including compiler
  5156. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5157. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5158. reuse the register of parent for one of the local variables,
  5159. since it will think that parent can't possibly be used any more
  5160. in this routine. Assigning to the local variable will thus
  5161. munge parent in the parent process. */
  5162. pid_t
  5163. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5164. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5165. /* Convince the compiler that p..p7 are live; otherwise, it might
  5166. use the same hardware register for all 8 local variables. */
  5167. if (p != p1 || p != p2 || p != p3 || p != p4
  5168. || p != p5 || p != p6 || p != p7)
  5169. _exit(1);
  5170. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5171. from child file descriptors. If the child closes a descriptor
  5172. before it execs or exits, this munges the parent's descriptor
  5173. as well. Test for this by closing stdout in the child. */
  5174. _exit(close(fileno(stdout)) != 0);
  5175. } else {
  5176. int status;
  5177. struct stat st;
  5178. while (wait(&status) != child)
  5179. ;
  5180. return (
  5181. /* Was there some problem with vforking? */
  5182. child < 0
  5183. /* Did the child fail? (This shouldn't happen.) */
  5184. || status
  5185. /* Did the vfork/compiler bug occur? */
  5186. || parent != getpid()
  5187. /* Did the file descriptor bug occur? */
  5188. || fstat(fileno(stdout), &st) != 0
  5189. );
  5190. }
  5191. }
  5192. _ACEOF
  5193. if ac_fn_c_try_run "$LINENO"; then :
  5194. ac_cv_func_vfork_works=yes
  5195. else
  5196. ac_cv_func_vfork_works=no
  5197. fi
  5198. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5199. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5200. fi
  5201. fi
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5203. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5204. fi;
  5205. if test "x$ac_cv_func_fork_works" = xcross; then
  5206. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5208. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5209. fi
  5210. if test "x$ac_cv_func_vfork_works" = xyes; then
  5211. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5212. else
  5213. $as_echo "#define vfork fork" >>confdefs.h
  5214. fi
  5215. if test "x$ac_cv_func_fork_works" = xyes; then
  5216. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5217. fi
  5218. for ac_func in strftime
  5219. do :
  5220. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  5221. if test "x$ac_cv_func_strftime" = x""yes; then :
  5222. cat >>confdefs.h <<_ACEOF
  5223. #define HAVE_STRFTIME 1
  5224. _ACEOF
  5225. else
  5226. # strftime is in -lintl on SCO UNIX.
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  5228. $as_echo_n "checking for strftime in -lintl... " >&6; }
  5229. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. ac_check_lib_save_LIBS=$LIBS
  5233. LIBS="-lintl $LIBS"
  5234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5235. /* end confdefs.h. */
  5236. /* Override any GCC internal prototype to avoid an error.
  5237. Use char because int might match the return type of a GCC
  5238. builtin and then its argument prototype would still apply. */
  5239. #ifdef __cplusplus
  5240. extern "C"
  5241. #endif
  5242. char strftime ();
  5243. int
  5244. main ()
  5245. {
  5246. return strftime ();
  5247. ;
  5248. return 0;
  5249. }
  5250. _ACEOF
  5251. if ac_fn_c_try_link "$LINENO"; then :
  5252. ac_cv_lib_intl_strftime=yes
  5253. else
  5254. ac_cv_lib_intl_strftime=no
  5255. fi
  5256. rm -f core conftest.err conftest.$ac_objext \
  5257. conftest$ac_exeext conftest.$ac_ext
  5258. LIBS=$ac_check_lib_save_LIBS
  5259. fi
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  5261. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  5262. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  5263. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  5264. LIBS="-lintl $LIBS"
  5265. fi
  5266. fi
  5267. done
  5268. # Required functions
  5269. for ac_func in \
  5270. alarm dup2 endpwent gethostbyaddr gethostbyname gethostname \
  5271. gettimeofday inet_ntoa memmove memset setsid socket strcasecmp \
  5272. strchr strcspn strerror strncasecmp strrchr strspn strstr \
  5273. do :
  5274. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5275. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5276. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5277. cat >>confdefs.h <<_ACEOF
  5278. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5279. _ACEOF
  5280. else
  5281. as_fn_error $? "required function missing!" "$LINENO" 5
  5282. fi
  5283. done
  5284. # Optional functions
  5285. for ac_func in $ac_func_list
  5286. do :
  5287. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5288. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5289. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5290. cat >>confdefs.h <<_ACEOF
  5291. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5292. _ACEOF
  5293. fi
  5294. done
  5295. # -- Configuration options --
  5296. # use syslog?
  5297. x_syslog_on=no
  5298. # Check whether --with-syslog was given.
  5299. if test "${with_syslog+set}" = set; then :
  5300. withval=$with_syslog; if test "$withval" != "no"; then
  5301. if test "$withval" != "yes"; then
  5302. CFLAGS="-I$withval/include $CFLAGS"
  5303. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5304. LDFLAGS="-L$withval/lib $LDFLAGS"
  5305. fi
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5307. $as_echo_n "checking for library containing syslog... " >&6; }
  5308. if test "${ac_cv_search_syslog+set}" = set; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. ac_func_search_save_LIBS=$LIBS
  5312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5313. /* end confdefs.h. */
  5314. /* Override any GCC internal prototype to avoid an error.
  5315. Use char because int might match the return type of a GCC
  5316. builtin and then its argument prototype would still apply. */
  5317. #ifdef __cplusplus
  5318. extern "C"
  5319. #endif
  5320. char syslog ();
  5321. int
  5322. main ()
  5323. {
  5324. return syslog ();
  5325. ;
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. for ac_lib in '' be; do
  5330. if test -z "$ac_lib"; then
  5331. ac_res="none required"
  5332. else
  5333. ac_res=-l$ac_lib
  5334. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5335. fi
  5336. if ac_fn_c_try_link "$LINENO"; then :
  5337. ac_cv_search_syslog=$ac_res
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext \
  5340. conftest$ac_exeext
  5341. if test "${ac_cv_search_syslog+set}" = set; then :
  5342. break
  5343. fi
  5344. done
  5345. if test "${ac_cv_search_syslog+set}" = set; then :
  5346. else
  5347. ac_cv_search_syslog=no
  5348. fi
  5349. rm conftest.$ac_ext
  5350. LIBS=$ac_func_search_save_LIBS
  5351. fi
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5353. $as_echo "$ac_cv_search_syslog" >&6; }
  5354. ac_res=$ac_cv_search_syslog
  5355. if test "$ac_res" != no; then :
  5356. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5357. x_syslog_on=yes
  5358. else
  5359. as_fn_error $? "Can't enable syslog!" "$LINENO" 5
  5360. fi
  5361. fi
  5362. else
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5364. $as_echo_n "checking for library containing syslog... " >&6; }
  5365. if test "${ac_cv_search_syslog+set}" = set; then :
  5366. $as_echo_n "(cached) " >&6
  5367. else
  5368. ac_func_search_save_LIBS=$LIBS
  5369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5370. /* end confdefs.h. */
  5371. /* Override any GCC internal prototype to avoid an error.
  5372. Use char because int might match the return type of a GCC
  5373. builtin and then its argument prototype would still apply. */
  5374. #ifdef __cplusplus
  5375. extern "C"
  5376. #endif
  5377. char syslog ();
  5378. int
  5379. main ()
  5380. {
  5381. return syslog ();
  5382. ;
  5383. return 0;
  5384. }
  5385. _ACEOF
  5386. for ac_lib in '' be; do
  5387. if test -z "$ac_lib"; then
  5388. ac_res="none required"
  5389. else
  5390. ac_res=-l$ac_lib
  5391. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5392. fi
  5393. if ac_fn_c_try_link "$LINENO"; then :
  5394. ac_cv_search_syslog=$ac_res
  5395. fi
  5396. rm -f core conftest.err conftest.$ac_objext \
  5397. conftest$ac_exeext
  5398. if test "${ac_cv_search_syslog+set}" = set; then :
  5399. break
  5400. fi
  5401. done
  5402. if test "${ac_cv_search_syslog+set}" = set; then :
  5403. else
  5404. ac_cv_search_syslog=no
  5405. fi
  5406. rm conftest.$ac_ext
  5407. LIBS=$ac_func_search_save_LIBS
  5408. fi
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5410. $as_echo "$ac_cv_search_syslog" >&6; }
  5411. ac_res=$ac_cv_search_syslog
  5412. if test "$ac_res" != no; then :
  5413. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5414. x_syslog_on=yes
  5415. fi
  5416. fi
  5417. if test "$x_syslog_on" = "yes"; then
  5418. $as_echo "#define SYSLOG 1" >>confdefs.h
  5419. for ac_header in syslog.h
  5420. do :
  5421. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  5422. if test "x$ac_cv_header_syslog_h" = x""yes; then :
  5423. cat >>confdefs.h <<_ACEOF
  5424. #define HAVE_SYSLOG_H 1
  5425. _ACEOF
  5426. else
  5427. as_fn_error $? "required C header missing!" "$LINENO" 5
  5428. fi
  5429. done
  5430. fi
  5431. # use zlib compression?
  5432. x_zlib_on=no
  5433. # Check whether --with-zlib was given.
  5434. if test "${with_zlib+set}" = set; then :
  5435. withval=$with_zlib; if test "$withval" != "no"; then
  5436. if test "$withval" != "yes"; then
  5437. CFLAGS="-I$withval/include $CFLAGS"
  5438. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5439. LDFLAGS="-L$withval/lib $LDFLAGS"
  5440. fi
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5442. $as_echo_n "checking for deflate in -lz... " >&6; }
  5443. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. ac_check_lib_save_LIBS=$LIBS
  5447. LIBS="-lz $LIBS"
  5448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5449. /* end confdefs.h. */
  5450. /* Override any GCC internal prototype to avoid an error.
  5451. Use char because int might match the return type of a GCC
  5452. builtin and then its argument prototype would still apply. */
  5453. #ifdef __cplusplus
  5454. extern "C"
  5455. #endif
  5456. char deflate ();
  5457. int
  5458. main ()
  5459. {
  5460. return deflate ();
  5461. ;
  5462. return 0;
  5463. }
  5464. _ACEOF
  5465. if ac_fn_c_try_link "$LINENO"; then :
  5466. ac_cv_lib_z_deflate=yes
  5467. else
  5468. ac_cv_lib_z_deflate=no
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext \
  5471. conftest$ac_exeext conftest.$ac_ext
  5472. LIBS=$ac_check_lib_save_LIBS
  5473. fi
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5475. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5476. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5477. cat >>confdefs.h <<_ACEOF
  5478. #define HAVE_LIBZ 1
  5479. _ACEOF
  5480. LIBS="-lz $LIBS"
  5481. fi
  5482. for ac_func in deflate
  5483. do :
  5484. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5485. if test "x$ac_cv_func_deflate" = x""yes; then :
  5486. cat >>confdefs.h <<_ACEOF
  5487. #define HAVE_DEFLATE 1
  5488. _ACEOF
  5489. x_zlib_on=yes
  5490. else
  5491. as_fn_error $? "Can't enable zlib!" "$LINENO" 5
  5492. fi
  5493. done
  5494. fi
  5495. else
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5497. $as_echo_n "checking for deflate in -lz... " >&6; }
  5498. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. ac_check_lib_save_LIBS=$LIBS
  5502. LIBS="-lz $LIBS"
  5503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5504. /* end confdefs.h. */
  5505. /* Override any GCC internal prototype to avoid an error.
  5506. Use char because int might match the return type of a GCC
  5507. builtin and then its argument prototype would still apply. */
  5508. #ifdef __cplusplus
  5509. extern "C"
  5510. #endif
  5511. char deflate ();
  5512. int
  5513. main ()
  5514. {
  5515. return deflate ();
  5516. ;
  5517. return 0;
  5518. }
  5519. _ACEOF
  5520. if ac_fn_c_try_link "$LINENO"; then :
  5521. ac_cv_lib_z_deflate=yes
  5522. else
  5523. ac_cv_lib_z_deflate=no
  5524. fi
  5525. rm -f core conftest.err conftest.$ac_objext \
  5526. conftest$ac_exeext conftest.$ac_ext
  5527. LIBS=$ac_check_lib_save_LIBS
  5528. fi
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5530. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5531. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5532. cat >>confdefs.h <<_ACEOF
  5533. #define HAVE_LIBZ 1
  5534. _ACEOF
  5535. LIBS="-lz $LIBS"
  5536. fi
  5537. for ac_func in deflate
  5538. do :
  5539. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5540. if test "x$ac_cv_func_deflate" = x""yes; then :
  5541. cat >>confdefs.h <<_ACEOF
  5542. #define HAVE_DEFLATE 1
  5543. _ACEOF
  5544. x_zlib_on=yes
  5545. fi
  5546. done
  5547. fi
  5548. if test "$x_zlib_on" = "yes"; then
  5549. $as_echo "#define ZLIB 1" >>confdefs.h
  5550. for ac_header in zlib.h
  5551. do :
  5552. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5553. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5554. cat >>confdefs.h <<_ACEOF
  5555. #define HAVE_ZLIB_H 1
  5556. _ACEOF
  5557. else
  5558. as_fn_error $? "required C header missing!" "$LINENO" 5
  5559. fi
  5560. done
  5561. fi
  5562. # detect which IO API to use:
  5563. x_io_backend=none
  5564. # Check whether --with-select was given.
  5565. if test "${with_select+set}" = set; then :
  5566. withval=$with_select; if test "$withval" != "no"; then
  5567. if test "$withval" != "yes"; then
  5568. CFLAGS="-I$withval/include $CFLAGS"
  5569. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5570. LDFLAGS="-L$withval/lib $LDFLAGS"
  5571. fi
  5572. for ac_func in select
  5573. do :
  5574. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5575. if test "x$ac_cv_func_select" = x""yes; then :
  5576. cat >>confdefs.h <<_ACEOF
  5577. #define HAVE_SELECT 1
  5578. _ACEOF
  5579. x_io_select=yes
  5580. else
  5581. as_fn_error $? "Can't enable select IO support!" "$LINENO" 5
  5582. fi
  5583. done
  5584. fi
  5585. else
  5586. for ac_func in select
  5587. do :
  5588. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5589. if test "x$ac_cv_func_select" = x""yes; then :
  5590. cat >>confdefs.h <<_ACEOF
  5591. #define HAVE_SELECT 1
  5592. _ACEOF
  5593. x_io_select=yes
  5594. fi
  5595. done
  5596. fi
  5597. # Check whether --with-poll was given.
  5598. if test "${with_poll+set}" = set; then :
  5599. withval=$with_poll; if test "$withval" != "no"; then
  5600. if test "$withval" != "yes"; then
  5601. CFLAGS="-I$withval/include $CFLAGS"
  5602. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5603. LDFLAGS="-L$withval/lib $LDFLAGS"
  5604. fi
  5605. for ac_func in poll
  5606. do :
  5607. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5608. if test "x$ac_cv_func_poll" = x""yes; then :
  5609. cat >>confdefs.h <<_ACEOF
  5610. #define HAVE_POLL 1
  5611. _ACEOF
  5612. for ac_header in poll.h
  5613. do :
  5614. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5615. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5616. cat >>confdefs.h <<_ACEOF
  5617. #define HAVE_POLL_H 1
  5618. _ACEOF
  5619. x_io_backend=poll\(\)
  5620. else
  5621. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5622. fi
  5623. done
  5624. else
  5625. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5626. fi
  5627. done
  5628. fi
  5629. else
  5630. for ac_func in poll
  5631. do :
  5632. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5633. if test "x$ac_cv_func_poll" = x""yes; then :
  5634. cat >>confdefs.h <<_ACEOF
  5635. #define HAVE_POLL 1
  5636. _ACEOF
  5637. for ac_header in poll.h
  5638. do :
  5639. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5640. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5641. cat >>confdefs.h <<_ACEOF
  5642. #define HAVE_POLL_H 1
  5643. _ACEOF
  5644. x_io_backend=poll\(\)
  5645. fi
  5646. done
  5647. fi
  5648. done
  5649. fi
  5650. # Check whether --with-devpoll was given.
  5651. if test "${with_devpoll+set}" = set; then :
  5652. withval=$with_devpoll; if test "$withval" != "no"; then
  5653. if test "$withval" != "yes"; then
  5654. CFLAGS="-I$withval/include $CFLAGS"
  5655. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5656. LDFLAGS="-L$withval/lib $LDFLAGS"
  5657. fi
  5658. for ac_header in sys/devpoll.h
  5659. do :
  5660. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5661. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5662. cat >>confdefs.h <<_ACEOF
  5663. #define HAVE_SYS_DEVPOLL_H 1
  5664. _ACEOF
  5665. else
  5666. as_fn_error $? "required C header missing!" "$LINENO" 5
  5667. fi
  5668. done
  5669. fi
  5670. else
  5671. for ac_header in sys/devpoll.h
  5672. do :
  5673. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5674. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5675. cat >>confdefs.h <<_ACEOF
  5676. #define HAVE_SYS_DEVPOLL_H 1
  5677. _ACEOF
  5678. x_io_backend=/dev/poll
  5679. fi
  5680. done
  5681. fi
  5682. # Check whether --with-epoll was given.
  5683. if test "${with_epoll+set}" = set; then :
  5684. withval=$with_epoll; if test "$withval" != "no"; then
  5685. if test "$withval" != "yes"; then
  5686. CFLAGS="-I$withval/include $CFLAGS"
  5687. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5688. LDFLAGS="-L$withval/lib $LDFLAGS"
  5689. fi
  5690. for ac_func in epoll_create
  5691. do :
  5692. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5693. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5694. cat >>confdefs.h <<_ACEOF
  5695. #define HAVE_EPOLL_CREATE 1
  5696. _ACEOF
  5697. x_io_epoll=yes
  5698. else
  5699. as_fn_error $? "Can't enable epoll IO support!" "$LINENO" 5
  5700. fi
  5701. done
  5702. fi
  5703. else
  5704. for ac_func in epoll_create
  5705. do :
  5706. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5707. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5708. cat >>confdefs.h <<_ACEOF
  5709. #define HAVE_EPOLL_CREATE 1
  5710. _ACEOF
  5711. x_io_epoll=yes
  5712. fi
  5713. done
  5714. fi
  5715. # Check whether --with-kqueue was given.
  5716. if test "${with_kqueue+set}" = set; then :
  5717. withval=$with_kqueue; if test "$withval" != "no"; then
  5718. if test "$withval" != "yes"; then
  5719. CFLAGS="-I$withval/include $CFLAGS"
  5720. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5721. LDFLAGS="-L$withval/lib $LDFLAGS"
  5722. fi
  5723. for ac_func in kqueue
  5724. do :
  5725. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5726. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5727. cat >>confdefs.h <<_ACEOF
  5728. #define HAVE_KQUEUE 1
  5729. _ACEOF
  5730. x_io_backend=kqueue\(\)
  5731. else
  5732. as_fn_error $? "Can't enable kqueue IO support!" "$LINENO" 5
  5733. fi
  5734. done
  5735. fi
  5736. else
  5737. for ac_func in kqueue
  5738. do :
  5739. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5740. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5741. cat >>confdefs.h <<_ACEOF
  5742. #define HAVE_KQUEUE 1
  5743. _ACEOF
  5744. x_io_backend=kqueue\(\)
  5745. fi
  5746. done
  5747. fi
  5748. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  5749. # when epoll() and select() are available, we'll use both!
  5750. x_io_backend="epoll(), select()"
  5751. else
  5752. if test "$x_io_epoll" = "yes"; then
  5753. # we prefere epoll() if it is available
  5754. x_io_backend="epoll()"
  5755. else
  5756. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  5757. # we'll use select, when available and no "better"
  5758. # interface has been detected ...
  5759. x_io_backend="select()"
  5760. fi
  5761. fi
  5762. fi
  5763. if test "$x_io_backend" = "none"; then
  5764. as_fn_error $? "No useable IO API activated/found!?" "$LINENO" 5
  5765. fi
  5766. # use SSL?
  5767. # Check whether --with-openssl was given.
  5768. if test "${with_openssl+set}" = set; then :
  5769. withval=$with_openssl; if test "$withval" != "no"; then
  5770. if test "$withval" != "yes"; then
  5771. CFLAGS="-I$withval/include $CFLAGS"
  5772. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5773. LDFLAGS="-L$withval/lib $LDFLAGS"
  5774. fi
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_s_mem in -lcrypto" >&5
  5776. $as_echo_n "checking for BIO_s_mem in -lcrypto... " >&6; }
  5777. if test "${ac_cv_lib_crypto_BIO_s_mem+set}" = set; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. ac_check_lib_save_LIBS=$LIBS
  5781. LIBS="-lcrypto $LIBS"
  5782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5783. /* end confdefs.h. */
  5784. /* Override any GCC internal prototype to avoid an error.
  5785. Use char because int might match the return type of a GCC
  5786. builtin and then its argument prototype would still apply. */
  5787. #ifdef __cplusplus
  5788. extern "C"
  5789. #endif
  5790. char BIO_s_mem ();
  5791. int
  5792. main ()
  5793. {
  5794. return BIO_s_mem ();
  5795. ;
  5796. return 0;
  5797. }
  5798. _ACEOF
  5799. if ac_fn_c_try_link "$LINENO"; then :
  5800. ac_cv_lib_crypto_BIO_s_mem=yes
  5801. else
  5802. ac_cv_lib_crypto_BIO_s_mem=no
  5803. fi
  5804. rm -f core conftest.err conftest.$ac_objext \
  5805. conftest$ac_exeext conftest.$ac_ext
  5806. LIBS=$ac_check_lib_save_LIBS
  5807. fi
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  5809. $as_echo "$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  5810. if test "x$ac_cv_lib_crypto_BIO_s_mem" = x""yes; then :
  5811. cat >>confdefs.h <<_ACEOF
  5812. #define HAVE_LIBCRYPTO 1
  5813. _ACEOF
  5814. LIBS="-lcrypto $LIBS"
  5815. fi
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  5817. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  5818. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. ac_check_lib_save_LIBS=$LIBS
  5822. LIBS="-lssl $LIBS"
  5823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5824. /* end confdefs.h. */
  5825. /* Override any GCC internal prototype to avoid an error.
  5826. Use char because int might match the return type of a GCC
  5827. builtin and then its argument prototype would still apply. */
  5828. #ifdef __cplusplus
  5829. extern "C"
  5830. #endif
  5831. char SSL_library_init ();
  5832. int
  5833. main ()
  5834. {
  5835. return SSL_library_init ();
  5836. ;
  5837. return 0;
  5838. }
  5839. _ACEOF
  5840. if ac_fn_c_try_link "$LINENO"; then :
  5841. ac_cv_lib_ssl_SSL_library_init=yes
  5842. else
  5843. ac_cv_lib_ssl_SSL_library_init=no
  5844. fi
  5845. rm -f core conftest.err conftest.$ac_objext \
  5846. conftest$ac_exeext conftest.$ac_ext
  5847. LIBS=$ac_check_lib_save_LIBS
  5848. fi
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5850. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5851. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  5852. cat >>confdefs.h <<_ACEOF
  5853. #define HAVE_LIBSSL 1
  5854. _ACEOF
  5855. LIBS="-lssl $LIBS"
  5856. fi
  5857. for ac_func in SSL_library_init
  5858. do :
  5859. ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init"
  5860. if test "x$ac_cv_func_SSL_library_init" = x""yes; then :
  5861. cat >>confdefs.h <<_ACEOF
  5862. #define HAVE_SSL_LIBRARY_INIT 1
  5863. _ACEOF
  5864. x_ssl_openssl=yes
  5865. else
  5866. as_fn_error $? "Can't enable openssl" "$LINENO" 5
  5867. fi
  5868. done
  5869. fi
  5870. fi
  5871. # Check whether --with-gnutls was given.
  5872. if test "${with_gnutls+set}" = set; then :
  5873. withval=$with_gnutls; if test "$withval" != "no"; then
  5874. if test "$withval" != "yes"; then
  5875. CFLAGS="-I$withval/include $CFLAGS"
  5876. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5877. LDFLAGS="-L$withval/lib $LDFLAGS"
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
  5880. $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
  5881. if test "${ac_cv_lib_gnutls_gnutls_global_init+set}" = set; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. ac_check_lib_save_LIBS=$LIBS
  5885. LIBS="-lgnutls $LIBS"
  5886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5887. /* end confdefs.h. */
  5888. /* Override any GCC internal prototype to avoid an error.
  5889. Use char because int might match the return type of a GCC
  5890. builtin and then its argument prototype would still apply. */
  5891. #ifdef __cplusplus
  5892. extern "C"
  5893. #endif
  5894. char gnutls_global_init ();
  5895. int
  5896. main ()
  5897. {
  5898. return gnutls_global_init ();
  5899. ;
  5900. return 0;
  5901. }
  5902. _ACEOF
  5903. if ac_fn_c_try_link "$LINENO"; then :
  5904. ac_cv_lib_gnutls_gnutls_global_init=yes
  5905. else
  5906. ac_cv_lib_gnutls_gnutls_global_init=no
  5907. fi
  5908. rm -f core conftest.err conftest.$ac_objext \
  5909. conftest$ac_exeext conftest.$ac_ext
  5910. LIBS=$ac_check_lib_save_LIBS
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  5913. $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  5914. if test "x$ac_cv_lib_gnutls_gnutls_global_init" = x""yes; then :
  5915. cat >>confdefs.h <<_ACEOF
  5916. #define HAVE_LIBGNUTLS 1
  5917. _ACEOF
  5918. LIBS="-lgnutls $LIBS"
  5919. fi
  5920. for ac_func in gnutls_global_init
  5921. do :
  5922. ac_fn_c_check_func "$LINENO" "gnutls_global_init" "ac_cv_func_gnutls_global_init"
  5923. if test "x$ac_cv_func_gnutls_global_init" = x""yes; then :
  5924. cat >>confdefs.h <<_ACEOF
  5925. #define HAVE_GNUTLS_GLOBAL_INIT 1
  5926. _ACEOF
  5927. x_ssl_gnutls=yes
  5928. else
  5929. as_fn_error $? "Can't enable gnutls" "$LINENO" 5
  5930. fi
  5931. done
  5932. fi
  5933. fi
  5934. x_ssl_lib="no"
  5935. if test "$x_ssl_gnutls" = "yes"; then
  5936. if test "$x_ssl_openssl" = "yes";then
  5937. as_fn_error $? "Cannot enable both gnutls and openssl" "$LINENO" 5
  5938. fi
  5939. x_ssl_lib=gnutls
  5940. fi
  5941. if test "$x_ssl_openssl" = "yes"; then
  5942. x_ssl_lib=openssl
  5943. fi
  5944. # use TCP wrappers?
  5945. x_tcpwrap_on=no
  5946. # Check whether --with-tcp-wrappers was given.
  5947. if test "${with_tcp_wrappers+set}" = set; then :
  5948. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  5949. if test "$withval" != "yes"; then
  5950. CFLAGS="-I$withval/include $CFLAGS"
  5951. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5952. LDFLAGS="-L$withval/lib $LDFLAGS"
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access" >&5
  5955. $as_echo_n "checking for hosts_access... " >&6; }
  5956. LIBS="-lwrap $LIBS"
  5957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5958. /* end confdefs.h. */
  5959. #include <tcpd.h>
  5960. int allow_severity = 0;
  5961. int deny_severity = 0;
  5962. int
  5963. main ()
  5964. {
  5965. tcpd_warn("link test");
  5966. ;
  5967. return 0;
  5968. }
  5969. _ACEOF
  5970. if ac_fn_c_try_link "$LINENO"; then :
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5972. $as_echo "yes" >&6; }
  5973. $as_echo "#define TCPWRAP 1" >>confdefs.h
  5974. x_tcpwrap_on=yes
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. as_fn_error $? "Can't enable TCP wrappers!" "$LINENO" 5
  5979. fi
  5980. rm -f core conftest.err conftest.$ac_objext \
  5981. conftest$ac_exeext conftest.$ac_ext
  5982. fi
  5983. fi
  5984. # do IDENT requests using libident?
  5985. x_identauth_on=no
  5986. # Check whether --with-ident was given.
  5987. if test "${with_ident+set}" = set; then :
  5988. withval=$with_ident; if test "$withval" != "no"; then
  5989. if test "$withval" != "yes"; then
  5990. CFLAGS="-I$withval/include $CFLAGS"
  5991. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5992. LDFLAGS="-L$withval/lib $LDFLAGS"
  5993. fi
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
  5995. $as_echo_n "checking for ident_id in -lident... " >&6; }
  5996. if test "${ac_cv_lib_ident_ident_id+set}" = set; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. ac_check_lib_save_LIBS=$LIBS
  6000. LIBS="-lident $LIBS"
  6001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6002. /* end confdefs.h. */
  6003. /* Override any GCC internal prototype to avoid an error.
  6004. Use char because int might match the return type of a GCC
  6005. builtin and then its argument prototype would still apply. */
  6006. #ifdef __cplusplus
  6007. extern "C"
  6008. #endif
  6009. char ident_id ();
  6010. int
  6011. main ()
  6012. {
  6013. return ident_id ();
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. if ac_fn_c_try_link "$LINENO"; then :
  6019. ac_cv_lib_ident_ident_id=yes
  6020. else
  6021. ac_cv_lib_ident_ident_id=no
  6022. fi
  6023. rm -f core conftest.err conftest.$ac_objext \
  6024. conftest$ac_exeext conftest.$ac_ext
  6025. LIBS=$ac_check_lib_save_LIBS
  6026. fi
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
  6028. $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
  6029. if test "x$ac_cv_lib_ident_ident_id" = x""yes; then :
  6030. cat >>confdefs.h <<_ACEOF
  6031. #define HAVE_LIBIDENT 1
  6032. _ACEOF
  6033. LIBS="-lident $LIBS"
  6034. fi
  6035. for ac_func in ident_id
  6036. do :
  6037. ac_fn_c_check_func "$LINENO" "ident_id" "ac_cv_func_ident_id"
  6038. if test "x$ac_cv_func_ident_id" = x""yes; then :
  6039. cat >>confdefs.h <<_ACEOF
  6040. #define HAVE_IDENT_ID 1
  6041. _ACEOF
  6042. x_identauth_on=yes
  6043. else
  6044. as_fn_error $? "Can't enable IDENT support!" "$LINENO" 5
  6045. fi
  6046. done
  6047. fi
  6048. fi
  6049. if test "$x_identauth_on" = "yes"; then
  6050. $as_echo "#define IDENTAUTH 1" >>confdefs.h
  6051. for ac_header in ident.h
  6052. do :
  6053. ac_fn_c_check_header_mongrel "$LINENO" "ident.h" "ac_cv_header_ident_h" "$ac_includes_default"
  6054. if test "x$ac_cv_header_ident_h" = x""yes; then :
  6055. cat >>confdefs.h <<_ACEOF
  6056. #define HAVE_IDENT_H 1
  6057. _ACEOF
  6058. else
  6059. as_fn_error $? "required C header missing!" "$LINENO" 5
  6060. fi
  6061. done
  6062. fi
  6063. # compile in PAM support?
  6064. x_pam_on=no
  6065. # Check whether --with-pam was given.
  6066. if test "${with_pam+set}" = set; then :
  6067. withval=$with_pam; if test "$withval" != "no"; then
  6068. if test "$withval" != "yes"; then
  6069. CFLAGS="-I$withval/include $CFLAGS"
  6070. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6071. LDFLAGS="-L$withval/lib $LDFLAGS"
  6072. fi
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
  6074. $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
  6075. if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. ac_check_lib_save_LIBS=$LIBS
  6079. LIBS="-lpam $LIBS"
  6080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end confdefs.h. */
  6082. /* Override any GCC internal prototype to avoid an error.
  6083. Use char because int might match the return type of a GCC
  6084. builtin and then its argument prototype would still apply. */
  6085. #ifdef __cplusplus
  6086. extern "C"
  6087. #endif
  6088. char pam_authenticate ();
  6089. int
  6090. main ()
  6091. {
  6092. return pam_authenticate ();
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. if ac_fn_c_try_link "$LINENO"; then :
  6098. ac_cv_lib_pam_pam_authenticate=yes
  6099. else
  6100. ac_cv_lib_pam_pam_authenticate=no
  6101. fi
  6102. rm -f core conftest.err conftest.$ac_objext \
  6103. conftest$ac_exeext conftest.$ac_ext
  6104. LIBS=$ac_check_lib_save_LIBS
  6105. fi
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
  6107. $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
  6108. if test "x$ac_cv_lib_pam_pam_authenticate" = x""yes; then :
  6109. cat >>confdefs.h <<_ACEOF
  6110. #define HAVE_LIBPAM 1
  6111. _ACEOF
  6112. LIBS="-lpam $LIBS"
  6113. fi
  6114. for ac_func in pam_authenticate
  6115. do :
  6116. ac_fn_c_check_func "$LINENO" "pam_authenticate" "ac_cv_func_pam_authenticate"
  6117. if test "x$ac_cv_func_pam_authenticate" = x""yes; then :
  6118. cat >>confdefs.h <<_ACEOF
  6119. #define HAVE_PAM_AUTHENTICATE 1
  6120. _ACEOF
  6121. x_pam_on=yes
  6122. else
  6123. as_fn_error $? "Can't enable PAM support!" "$LINENO" 5
  6124. fi
  6125. done
  6126. fi
  6127. fi
  6128. if test "$x_pam_on" = "yes"; then
  6129. $as_echo "#define PAM 1" >>confdefs.h
  6130. for ac_header in security/pam_appl.h
  6131. do :
  6132. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  6133. if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
  6134. cat >>confdefs.h <<_ACEOF
  6135. #define HAVE_SECURITY_PAM_APPL_H 1
  6136. _ACEOF
  6137. pam_ok=yes
  6138. fi
  6139. done
  6140. if test "$pam_ok" != "yes"; then
  6141. for ac_header in pam/pam_appl.h
  6142. do :
  6143. ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
  6144. if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define HAVE_PAM_PAM_APPL_H 1
  6147. _ACEOF
  6148. pam_ok=yes
  6149. else
  6150. as_fn_error $? "required C header missing!" "$LINENO" 5
  6151. fi
  6152. done
  6153. fi
  6154. fi
  6155. # compile in IRC+ protocol support?
  6156. x_ircplus_on=yes
  6157. # Check whether --enable-ircplus was given.
  6158. if test "${enable_ircplus+set}" = set; then :
  6159. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  6160. fi
  6161. if test "$x_ircplus_on" = "yes"; then
  6162. $as_echo "#define IRCPLUS 1" >>confdefs.h
  6163. # Compile in iconv support?
  6164. # We only check for it when IRC+ is enabled, because the IRC+ command
  6165. # CHARCONV is the only function depending on it.
  6166. x_iconv_on=no
  6167. # Check whether --with-iconv was given.
  6168. if test "${with_iconv+set}" = set; then :
  6169. withval=$with_iconv; if test "$withval" != "no"; then
  6170. if test "$withval" != "yes"; then
  6171. CFLAGS="-I$withval/include $CFLAGS"
  6172. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6173. LDFLAGS="-L$withval/lib $LDFLAGS"
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  6176. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  6177. if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. ac_check_lib_save_LIBS=$LIBS
  6181. LIBS="-liconv $LIBS"
  6182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6183. /* end confdefs.h. */
  6184. /* Override any GCC internal prototype to avoid an error.
  6185. Use char because int might match the return type of a GCC
  6186. builtin and then its argument prototype would still apply. */
  6187. #ifdef __cplusplus
  6188. extern "C"
  6189. #endif
  6190. char iconv_open ();
  6191. int
  6192. main ()
  6193. {
  6194. return iconv_open ();
  6195. ;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_c_try_link "$LINENO"; then :
  6200. ac_cv_lib_iconv_iconv_open=yes
  6201. else
  6202. ac_cv_lib_iconv_iconv_open=no
  6203. fi
  6204. rm -f core conftest.err conftest.$ac_objext \
  6205. conftest$ac_exeext conftest.$ac_ext
  6206. LIBS=$ac_check_lib_save_LIBS
  6207. fi
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  6209. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  6210. if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
  6211. cat >>confdefs.h <<_ACEOF
  6212. #define HAVE_LIBICONV 1
  6213. _ACEOF
  6214. LIBS="-liconv $LIBS"
  6215. fi
  6216. for ac_func in iconv_open
  6217. do :
  6218. ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
  6219. if test "x$ac_cv_func_iconv_open" = x""yes; then :
  6220. cat >>confdefs.h <<_ACEOF
  6221. #define HAVE_ICONV_OPEN 1
  6222. _ACEOF
  6223. x_iconv_on=yes
  6224. else
  6225. as_fn_error $? "Can't enable libiconv support!" "$LINENO" 5
  6226. fi
  6227. done
  6228. fi
  6229. fi
  6230. if test "$x_iconv_on" = "yes"; then
  6231. $as_echo "#define ICONV 1" >>confdefs.h
  6232. fi
  6233. fi
  6234. # enable support for IPv6?
  6235. x_ipv6_on=no
  6236. # Check whether --enable-ipv6 was given.
  6237. if test "${enable_ipv6+set}" = set; then :
  6238. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  6239. fi
  6240. if test "$x_ipv6_on" = "yes"; then
  6241. # getaddrinfo() and getnameinfo() are optional when not compiling
  6242. # with IPv6 support, but are required for IPv6 to work!
  6243. for ac_func in \
  6244. getaddrinfo getnameinfo \
  6245. do :
  6246. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6247. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6248. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6249. cat >>confdefs.h <<_ACEOF
  6250. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6251. _ACEOF
  6252. else
  6253. as_fn_error $? "required function missing for IPv6 support!" "$LINENO" 5
  6254. fi
  6255. done
  6256. $as_echo "#define WANT_IPV6 1" >>confdefs.h
  6257. fi
  6258. # compile in IRC "sniffer"?
  6259. x_sniffer_on=no; x_debug_on=no
  6260. # Check whether --enable-sniffer was given.
  6261. if test "${enable_sniffer+set}" = set; then :
  6262. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  6263. $as_echo "#define SNIFFER 1" >>confdefs.h
  6264. x_sniffer_on=yes; x_debug_on=yes
  6265. fi
  6266. fi
  6267. # enable additional debugging code?
  6268. # Check whether --enable-debug was given.
  6269. if test "${enable_debug+set}" = set; then :
  6270. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  6271. fi
  6272. if test "$x_debug_on" = "yes"; then
  6273. $as_echo "#define DEBUG 1" >>confdefs.h
  6274. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  6275. for ac_func in mtrace
  6276. do :
  6277. ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
  6278. if test "x$ac_cv_func_mtrace" = x""yes; then :
  6279. cat >>confdefs.h <<_ACEOF
  6280. #define HAVE_MTRACE 1
  6281. _ACEOF
  6282. fi
  6283. done
  6284. fi
  6285. # enable "strict RFC rules"?
  6286. x_strict_rfc_on=no
  6287. # Check whether --enable-strict-rfc was given.
  6288. if test "${enable_strict_rfc+set}" = set; then :
  6289. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  6290. $as_echo "#define STRICT_RFC 1" >>confdefs.h
  6291. x_strict_rfc_on=yes
  6292. fi
  6293. fi
  6294. # -- Definitions --
  6295. cat >>confdefs.h <<_ACEOF
  6296. #define HOST_CPU "$host_cpu"
  6297. _ACEOF
  6298. cat >>confdefs.h <<_ACEOF
  6299. #define HOST_VENDOR "$host_vendor"
  6300. _ACEOF
  6301. cat >>confdefs.h <<_ACEOF
  6302. #define HOST_OS "$host_os"
  6303. _ACEOF
  6304. # Add additional CFLAGS, eventually specified on the command line, but after
  6305. # running this configure script. Useful for "-Werror" for example.
  6306. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  6307. # -- Generate files --
  6308. ac_config_files="$ac_config_files Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.pmdoc/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile contrib/Makefile doc/Makefile doc/src/Makefile man/Makefile src/ipaddr/Makefile src/Makefile src/ngircd/Makefile src/portab/Makefile src/testsuite/Makefile src/tool/Makefile"
  6309. cat >confcache <<\_ACEOF
  6310. # This file is a shell script that caches the results of configure
  6311. # tests run on this system so they can be shared between configure
  6312. # scripts and configure runs, see configure's option --config-cache.
  6313. # It is not useful on other systems. If it contains results you don't
  6314. # want to keep, you may remove or edit it.
  6315. #
  6316. # config.status only pays attention to the cache file if you give it
  6317. # the --recheck option to rerun configure.
  6318. #
  6319. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6320. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6321. # following values.
  6322. _ACEOF
  6323. # The following way of writing the cache mishandles newlines in values,
  6324. # but we know of no workaround that is simple, portable, and efficient.
  6325. # So, we kill variables containing newlines.
  6326. # Ultrix sh set writes to stderr and can't be redirected directly,
  6327. # and sets the high bit in the cache file unless we assign to the vars.
  6328. (
  6329. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6330. eval ac_val=\$$ac_var
  6331. case $ac_val in #(
  6332. *${as_nl}*)
  6333. case $ac_var in #(
  6334. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6335. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6336. esac
  6337. case $ac_var in #(
  6338. _ | IFS | as_nl) ;; #(
  6339. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6340. *) { eval $ac_var=; unset $ac_var;} ;;
  6341. esac ;;
  6342. esac
  6343. done
  6344. (set) 2>&1 |
  6345. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6346. *${as_nl}ac_space=\ *)
  6347. # `set' does not quote correctly, so add quotes: double-quote
  6348. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6349. sed -n \
  6350. "s/'/'\\\\''/g;
  6351. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6352. ;; #(
  6353. *)
  6354. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6355. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6356. ;;
  6357. esac |
  6358. sort
  6359. ) |
  6360. sed '
  6361. /^ac_cv_env_/b end
  6362. t clear
  6363. :clear
  6364. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6365. t end
  6366. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6367. :end' >>confcache
  6368. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6369. if test -w "$cache_file"; then
  6370. test "x$cache_file" != "x/dev/null" &&
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6372. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6373. cat confcache >$cache_file
  6374. else
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6376. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6377. fi
  6378. fi
  6379. rm -f confcache
  6380. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6381. # Let make expand exec_prefix.
  6382. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6383. DEFS=-DHAVE_CONFIG_H
  6384. ac_libobjs=
  6385. ac_ltlibobjs=
  6386. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6387. # 1. Remove the extension, and $U if already installed.
  6388. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6389. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6390. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6391. # will be set to the directory where LIBOBJS objects are built.
  6392. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6393. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6394. done
  6395. LIBOBJS=$ac_libobjs
  6396. LTLIBOBJS=$ac_ltlibobjs
  6397. if test -n "$EXEEXT"; then
  6398. am__EXEEXT_TRUE=
  6399. am__EXEEXT_FALSE='#'
  6400. else
  6401. am__EXEEXT_TRUE='#'
  6402. am__EXEEXT_FALSE=
  6403. fi
  6404. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6405. as_fn_error $? "conditional \"AMDEP\" was never defined.
  6406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6407. fi
  6408. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6409. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6411. fi
  6412. : ${CONFIG_STATUS=./config.status}
  6413. ac_write_fail=0
  6414. ac_clean_files_save=$ac_clean_files
  6415. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6417. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6418. as_write_fail=0
  6419. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6420. #! $SHELL
  6421. # Generated by $as_me.
  6422. # Run this file to recreate the current configuration.
  6423. # Compiler output produced by configure, useful for debugging
  6424. # configure, is in config.log if it exists.
  6425. debug=false
  6426. ac_cs_recheck=false
  6427. ac_cs_silent=false
  6428. SHELL=\${CONFIG_SHELL-$SHELL}
  6429. export SHELL
  6430. _ASEOF
  6431. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6432. ## -------------------- ##
  6433. ## M4sh Initialization. ##
  6434. ## -------------------- ##
  6435. # Be more Bourne compatible
  6436. DUALCASE=1; export DUALCASE # for MKS sh
  6437. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6438. emulate sh
  6439. NULLCMD=:
  6440. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6441. # is contrary to our usage. Disable this feature.
  6442. alias -g '${1+"$@"}'='"$@"'
  6443. setopt NO_GLOB_SUBST
  6444. else
  6445. case `(set -o) 2>/dev/null` in #(
  6446. *posix*) :
  6447. set -o posix ;; #(
  6448. *) :
  6449. ;;
  6450. esac
  6451. fi
  6452. as_nl='
  6453. '
  6454. export as_nl
  6455. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6456. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6457. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6458. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6459. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6460. # but without wasting forks for bash or zsh.
  6461. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6462. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6463. as_echo='print -r --'
  6464. as_echo_n='print -rn --'
  6465. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6466. as_echo='printf %s\n'
  6467. as_echo_n='printf %s'
  6468. else
  6469. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6470. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6471. as_echo_n='/usr/ucb/echo -n'
  6472. else
  6473. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6474. as_echo_n_body='eval
  6475. arg=$1;
  6476. case $arg in #(
  6477. *"$as_nl"*)
  6478. expr "X$arg" : "X\\(.*\\)$as_nl";
  6479. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6480. esac;
  6481. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6482. '
  6483. export as_echo_n_body
  6484. as_echo_n='sh -c $as_echo_n_body as_echo'
  6485. fi
  6486. export as_echo_body
  6487. as_echo='sh -c $as_echo_body as_echo'
  6488. fi
  6489. # The user is always right.
  6490. if test "${PATH_SEPARATOR+set}" != set; then
  6491. PATH_SEPARATOR=:
  6492. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6493. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6494. PATH_SEPARATOR=';'
  6495. }
  6496. fi
  6497. # IFS
  6498. # We need space, tab and new line, in precisely that order. Quoting is
  6499. # there to prevent editors from complaining about space-tab.
  6500. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6501. # splitting by setting IFS to empty value.)
  6502. IFS=" "" $as_nl"
  6503. # Find who we are. Look in the path if we contain no directory separator.
  6504. case $0 in #((
  6505. *[\\/]* ) as_myself=$0 ;;
  6506. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6507. for as_dir in $PATH
  6508. do
  6509. IFS=$as_save_IFS
  6510. test -z "$as_dir" && as_dir=.
  6511. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6512. done
  6513. IFS=$as_save_IFS
  6514. ;;
  6515. esac
  6516. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6517. # in which case we are not to be found in the path.
  6518. if test "x$as_myself" = x; then
  6519. as_myself=$0
  6520. fi
  6521. if test ! -f "$as_myself"; then
  6522. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6523. exit 1
  6524. fi
  6525. # Unset variables that we do not need and which cause bugs (e.g. in
  6526. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6527. # suppresses any "Segmentation fault" message there. '((' could
  6528. # trigger a bug in pdksh 5.2.14.
  6529. for as_var in BASH_ENV ENV MAIL MAILPATH
  6530. do eval test x\${$as_var+set} = xset \
  6531. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6532. done
  6533. PS1='$ '
  6534. PS2='> '
  6535. PS4='+ '
  6536. # NLS nuisances.
  6537. LC_ALL=C
  6538. export LC_ALL
  6539. LANGUAGE=C
  6540. export LANGUAGE
  6541. # CDPATH.
  6542. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6543. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6544. # ----------------------------------------
  6545. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6546. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6547. # script with STATUS, using 1 if that was 0.
  6548. as_fn_error ()
  6549. {
  6550. as_status=$1; test $as_status -eq 0 && as_status=1
  6551. if test "$4"; then
  6552. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6553. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6554. fi
  6555. $as_echo "$as_me: error: $2" >&2
  6556. as_fn_exit $as_status
  6557. } # as_fn_error
  6558. # as_fn_set_status STATUS
  6559. # -----------------------
  6560. # Set $? to STATUS, without forking.
  6561. as_fn_set_status ()
  6562. {
  6563. return $1
  6564. } # as_fn_set_status
  6565. # as_fn_exit STATUS
  6566. # -----------------
  6567. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6568. as_fn_exit ()
  6569. {
  6570. set +e
  6571. as_fn_set_status $1
  6572. exit $1
  6573. } # as_fn_exit
  6574. # as_fn_unset VAR
  6575. # ---------------
  6576. # Portably unset VAR.
  6577. as_fn_unset ()
  6578. {
  6579. { eval $1=; unset $1;}
  6580. }
  6581. as_unset=as_fn_unset
  6582. # as_fn_append VAR VALUE
  6583. # ----------------------
  6584. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6585. # advantage of any shell optimizations that allow amortized linear growth over
  6586. # repeated appends, instead of the typical quadratic growth present in naive
  6587. # implementations.
  6588. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6589. eval 'as_fn_append ()
  6590. {
  6591. eval $1+=\$2
  6592. }'
  6593. else
  6594. as_fn_append ()
  6595. {
  6596. eval $1=\$$1\$2
  6597. }
  6598. fi # as_fn_append
  6599. # as_fn_arith ARG...
  6600. # ------------------
  6601. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6602. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6603. # must be portable across $(()) and expr.
  6604. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6605. eval 'as_fn_arith ()
  6606. {
  6607. as_val=$(( $* ))
  6608. }'
  6609. else
  6610. as_fn_arith ()
  6611. {
  6612. as_val=`expr "$@" || test $? -eq 1`
  6613. }
  6614. fi # as_fn_arith
  6615. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6616. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6617. as_expr=expr
  6618. else
  6619. as_expr=false
  6620. fi
  6621. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6622. as_basename=basename
  6623. else
  6624. as_basename=false
  6625. fi
  6626. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6627. as_dirname=dirname
  6628. else
  6629. as_dirname=false
  6630. fi
  6631. as_me=`$as_basename -- "$0" ||
  6632. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6633. X"$0" : 'X\(//\)$' \| \
  6634. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6635. $as_echo X/"$0" |
  6636. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6637. s//\1/
  6638. q
  6639. }
  6640. /^X\/\(\/\/\)$/{
  6641. s//\1/
  6642. q
  6643. }
  6644. /^X\/\(\/\).*/{
  6645. s//\1/
  6646. q
  6647. }
  6648. s/.*/./; q'`
  6649. # Avoid depending upon Character Ranges.
  6650. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6651. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6652. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6653. as_cr_digits='0123456789'
  6654. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6655. ECHO_C= ECHO_N= ECHO_T=
  6656. case `echo -n x` in #(((((
  6657. -n*)
  6658. case `echo 'xy\c'` in
  6659. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6660. xy) ECHO_C='\c';;
  6661. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6662. ECHO_T=' ';;
  6663. esac;;
  6664. *)
  6665. ECHO_N='-n';;
  6666. esac
  6667. rm -f conf$$ conf$$.exe conf$$.file
  6668. if test -d conf$$.dir; then
  6669. rm -f conf$$.dir/conf$$.file
  6670. else
  6671. rm -f conf$$.dir
  6672. mkdir conf$$.dir 2>/dev/null
  6673. fi
  6674. if (echo >conf$$.file) 2>/dev/null; then
  6675. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6676. as_ln_s='ln -s'
  6677. # ... but there are two gotchas:
  6678. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6679. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6680. # In both cases, we have to default to `cp -p'.
  6681. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6682. as_ln_s='cp -p'
  6683. elif ln conf$$.file conf$$ 2>/dev/null; then
  6684. as_ln_s=ln
  6685. else
  6686. as_ln_s='cp -p'
  6687. fi
  6688. else
  6689. as_ln_s='cp -p'
  6690. fi
  6691. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6692. rmdir conf$$.dir 2>/dev/null
  6693. # as_fn_mkdir_p
  6694. # -------------
  6695. # Create "$as_dir" as a directory, including parents if necessary.
  6696. as_fn_mkdir_p ()
  6697. {
  6698. case $as_dir in #(
  6699. -*) as_dir=./$as_dir;;
  6700. esac
  6701. test -d "$as_dir" || eval $as_mkdir_p || {
  6702. as_dirs=
  6703. while :; do
  6704. case $as_dir in #(
  6705. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6706. *) as_qdir=$as_dir;;
  6707. esac
  6708. as_dirs="'$as_qdir' $as_dirs"
  6709. as_dir=`$as_dirname -- "$as_dir" ||
  6710. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6711. X"$as_dir" : 'X\(//\)[^/]' \| \
  6712. X"$as_dir" : 'X\(//\)$' \| \
  6713. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6714. $as_echo X"$as_dir" |
  6715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6716. s//\1/
  6717. q
  6718. }
  6719. /^X\(\/\/\)[^/].*/{
  6720. s//\1/
  6721. q
  6722. }
  6723. /^X\(\/\/\)$/{
  6724. s//\1/
  6725. q
  6726. }
  6727. /^X\(\/\).*/{
  6728. s//\1/
  6729. q
  6730. }
  6731. s/.*/./; q'`
  6732. test -d "$as_dir" && break
  6733. done
  6734. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6735. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6736. } # as_fn_mkdir_p
  6737. if mkdir -p . 2>/dev/null; then
  6738. as_mkdir_p='mkdir -p "$as_dir"'
  6739. else
  6740. test -d ./-p && rmdir ./-p
  6741. as_mkdir_p=false
  6742. fi
  6743. if test -x / >/dev/null 2>&1; then
  6744. as_test_x='test -x'
  6745. else
  6746. if ls -dL / >/dev/null 2>&1; then
  6747. as_ls_L_option=L
  6748. else
  6749. as_ls_L_option=
  6750. fi
  6751. as_test_x='
  6752. eval sh -c '\''
  6753. if test -d "$1"; then
  6754. test -d "$1/.";
  6755. else
  6756. case $1 in #(
  6757. -*)set "./$1";;
  6758. esac;
  6759. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6760. ???[sx]*):;;*)false;;esac;fi
  6761. '\'' sh
  6762. '
  6763. fi
  6764. as_executable_p=$as_test_x
  6765. # Sed expression to map a string onto a valid CPP name.
  6766. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6767. # Sed expression to map a string onto a valid variable name.
  6768. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6769. exec 6>&1
  6770. ## ----------------------------------- ##
  6771. ## Main body of $CONFIG_STATUS script. ##
  6772. ## ----------------------------------- ##
  6773. _ASEOF
  6774. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6776. # Save the log message, to keep $0 and so on meaningful, and to
  6777. # report actual input values of CONFIG_FILES etc. instead of their
  6778. # values after options handling.
  6779. ac_log="
  6780. This file was extended by ngIRCd $as_me 20, which was
  6781. generated by GNU Autoconf 2.67. Invocation command line was
  6782. CONFIG_FILES = $CONFIG_FILES
  6783. CONFIG_HEADERS = $CONFIG_HEADERS
  6784. CONFIG_LINKS = $CONFIG_LINKS
  6785. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6786. $ $0 $@
  6787. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6788. "
  6789. _ACEOF
  6790. case $ac_config_files in *"
  6791. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6792. esac
  6793. case $ac_config_headers in *"
  6794. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6795. esac
  6796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6797. # Files that config.status was made for.
  6798. config_files="$ac_config_files"
  6799. config_headers="$ac_config_headers"
  6800. config_commands="$ac_config_commands"
  6801. _ACEOF
  6802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6803. ac_cs_usage="\
  6804. \`$as_me' instantiates files and other configuration actions
  6805. from templates according to the current configuration. Unless the files
  6806. and actions are specified as TAGs, all are instantiated by default.
  6807. Usage: $0 [OPTION]... [TAG]...
  6808. -h, --help print this help, then exit
  6809. -V, --version print version number and configuration settings, then exit
  6810. --config print configuration, then exit
  6811. -q, --quiet, --silent
  6812. do not print progress messages
  6813. -d, --debug don't remove temporary files
  6814. --recheck update $as_me by reconfiguring in the same conditions
  6815. --file=FILE[:TEMPLATE]
  6816. instantiate the configuration file FILE
  6817. --header=FILE[:TEMPLATE]
  6818. instantiate the configuration header FILE
  6819. Configuration files:
  6820. $config_files
  6821. Configuration headers:
  6822. $config_headers
  6823. Configuration commands:
  6824. $config_commands
  6825. Report bugs to <ngircd-ml@ngircd.barton.de>.
  6826. ngIRCd home page: <http://ngircd.barton.de/>."
  6827. _ACEOF
  6828. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6829. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6830. ac_cs_version="\\
  6831. ngIRCd config.status 20
  6832. configured by $0, generated by GNU Autoconf 2.67,
  6833. with options \\"\$ac_cs_config\\"
  6834. Copyright (C) 2010 Free Software Foundation, Inc.
  6835. This config.status script is free software; the Free Software Foundation
  6836. gives unlimited permission to copy, distribute and modify it."
  6837. ac_pwd='$ac_pwd'
  6838. srcdir='$srcdir'
  6839. INSTALL='$INSTALL'
  6840. MKDIR_P='$MKDIR_P'
  6841. AWK='$AWK'
  6842. test -n "\$AWK" || AWK=awk
  6843. _ACEOF
  6844. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6845. # The default lists apply if the user does not specify any file.
  6846. ac_need_defaults=:
  6847. while test $# != 0
  6848. do
  6849. case $1 in
  6850. --*=?*)
  6851. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6852. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6853. ac_shift=:
  6854. ;;
  6855. --*=)
  6856. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6857. ac_optarg=
  6858. ac_shift=:
  6859. ;;
  6860. *)
  6861. ac_option=$1
  6862. ac_optarg=$2
  6863. ac_shift=shift
  6864. ;;
  6865. esac
  6866. case $ac_option in
  6867. # Handling of the options.
  6868. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6869. ac_cs_recheck=: ;;
  6870. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6871. $as_echo "$ac_cs_version"; exit ;;
  6872. --config | --confi | --conf | --con | --co | --c )
  6873. $as_echo "$ac_cs_config"; exit ;;
  6874. --debug | --debu | --deb | --de | --d | -d )
  6875. debug=: ;;
  6876. --file | --fil | --fi | --f )
  6877. $ac_shift
  6878. case $ac_optarg in
  6879. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6880. '') as_fn_error $? "missing file argument" ;;
  6881. esac
  6882. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6883. ac_need_defaults=false;;
  6884. --header | --heade | --head | --hea )
  6885. $ac_shift
  6886. case $ac_optarg in
  6887. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6888. esac
  6889. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6890. ac_need_defaults=false;;
  6891. --he | --h)
  6892. # Conflict between --help and --header
  6893. as_fn_error $? "ambiguous option: \`$1'
  6894. Try \`$0 --help' for more information.";;
  6895. --help | --hel | -h )
  6896. $as_echo "$ac_cs_usage"; exit ;;
  6897. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6898. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6899. ac_cs_silent=: ;;
  6900. # This is an error.
  6901. -*) as_fn_error $? "unrecognized option: \`$1'
  6902. Try \`$0 --help' for more information." ;;
  6903. *) as_fn_append ac_config_targets " $1"
  6904. ac_need_defaults=false ;;
  6905. esac
  6906. shift
  6907. done
  6908. ac_configure_extra_args=
  6909. if $ac_cs_silent; then
  6910. exec 6>/dev/null
  6911. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6912. fi
  6913. _ACEOF
  6914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6915. if \$ac_cs_recheck; then
  6916. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6917. shift
  6918. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6919. CONFIG_SHELL='$SHELL'
  6920. export CONFIG_SHELL
  6921. exec "\$@"
  6922. fi
  6923. _ACEOF
  6924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6925. exec 5>>config.log
  6926. {
  6927. echo
  6928. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6929. ## Running $as_me. ##
  6930. _ASBOX
  6931. $as_echo "$ac_log"
  6932. } >&5
  6933. _ACEOF
  6934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6935. #
  6936. # INIT-COMMANDS
  6937. #
  6938. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  6939. _ACEOF
  6940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6941. # Handling of arguments.
  6942. for ac_config_target in $ac_config_targets
  6943. do
  6944. case $ac_config_target in
  6945. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  6946. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  6947. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6948. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  6949. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  6950. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  6951. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  6952. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  6953. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  6954. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  6955. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  6956. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  6957. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  6958. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  6959. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  6960. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  6961. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  6962. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  6963. esac
  6964. done
  6965. # If the user did not use the arguments to specify the items to instantiate,
  6966. # then the envvar interface is used. Set only those that are not.
  6967. # We use the long form for the default assignment because of an extremely
  6968. # bizarre bug on SunOS 4.1.3.
  6969. if $ac_need_defaults; then
  6970. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6971. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6972. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6973. fi
  6974. # Have a temporary directory for convenience. Make it in the build tree
  6975. # simply because there is no reason against having it here, and in addition,
  6976. # creating and moving files from /tmp can sometimes cause problems.
  6977. # Hook for its removal unless debugging.
  6978. # Note that there is a small window in which the directory will not be cleaned:
  6979. # after its creation but before its name has been assigned to `$tmp'.
  6980. $debug ||
  6981. {
  6982. tmp=
  6983. trap 'exit_status=$?
  6984. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6985. ' 0
  6986. trap 'as_fn_exit 1' 1 2 13 15
  6987. }
  6988. # Create a (secure) tmp directory for tmp files.
  6989. {
  6990. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6991. test -n "$tmp" && test -d "$tmp"
  6992. } ||
  6993. {
  6994. tmp=./conf$$-$RANDOM
  6995. (umask 077 && mkdir "$tmp")
  6996. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6997. # Set up the scripts for CONFIG_FILES section.
  6998. # No need to generate them if there are no CONFIG_FILES.
  6999. # This happens for instance with `./config.status config.h'.
  7000. if test -n "$CONFIG_FILES"; then
  7001. ac_cr=`echo X | tr X '\015'`
  7002. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7003. # But we know of no other shell where ac_cr would be empty at this
  7004. # point, so we can use a bashism as a fallback.
  7005. if test "x$ac_cr" = x; then
  7006. eval ac_cr=\$\'\\r\'
  7007. fi
  7008. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7009. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7010. ac_cs_awk_cr='\\r'
  7011. else
  7012. ac_cs_awk_cr=$ac_cr
  7013. fi
  7014. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7015. _ACEOF
  7016. {
  7017. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7018. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7019. echo "_ACEOF"
  7020. } >conf$$subs.sh ||
  7021. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7022. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7023. ac_delim='%!_!# '
  7024. for ac_last_try in false false false false false :; do
  7025. . ./conf$$subs.sh ||
  7026. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7027. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7028. if test $ac_delim_n = $ac_delim_num; then
  7029. break
  7030. elif $ac_last_try; then
  7031. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7032. else
  7033. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7034. fi
  7035. done
  7036. rm -f conf$$subs.sh
  7037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7038. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7039. _ACEOF
  7040. sed -n '
  7041. h
  7042. s/^/S["/; s/!.*/"]=/
  7043. p
  7044. g
  7045. s/^[^!]*!//
  7046. :repl
  7047. t repl
  7048. s/'"$ac_delim"'$//
  7049. t delim
  7050. :nl
  7051. h
  7052. s/\(.\{148\}\)..*/\1/
  7053. t more1
  7054. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7055. p
  7056. n
  7057. b repl
  7058. :more1
  7059. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7060. p
  7061. g
  7062. s/.\{148\}//
  7063. t nl
  7064. :delim
  7065. h
  7066. s/\(.\{148\}\)..*/\1/
  7067. t more2
  7068. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7069. p
  7070. b
  7071. :more2
  7072. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7073. p
  7074. g
  7075. s/.\{148\}//
  7076. t delim
  7077. ' <conf$$subs.awk | sed '
  7078. /^[^""]/{
  7079. N
  7080. s/\n//
  7081. }
  7082. ' >>$CONFIG_STATUS || ac_write_fail=1
  7083. rm -f conf$$subs.awk
  7084. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7085. _ACAWK
  7086. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7087. for (key in S) S_is_set[key] = 1
  7088. FS = ""
  7089. }
  7090. {
  7091. line = $ 0
  7092. nfields = split(line, field, "@")
  7093. substed = 0
  7094. len = length(field[1])
  7095. for (i = 2; i < nfields; i++) {
  7096. key = field[i]
  7097. keylen = length(key)
  7098. if (S_is_set[key]) {
  7099. value = S[key]
  7100. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7101. len += length(value) + length(field[++i])
  7102. substed = 1
  7103. } else
  7104. len += 1 + keylen
  7105. }
  7106. print line
  7107. }
  7108. _ACAWK
  7109. _ACEOF
  7110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7111. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7112. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7113. else
  7114. cat
  7115. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7116. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7117. _ACEOF
  7118. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7119. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7120. # trailing colons and then remove the whole line if VPATH becomes empty
  7121. # (actually we leave an empty line to preserve line numbers).
  7122. if test "x$srcdir" = x.; then
  7123. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7124. h
  7125. s///
  7126. s/^/:/
  7127. s/[ ]*$/:/
  7128. s/:\$(srcdir):/:/g
  7129. s/:\${srcdir}:/:/g
  7130. s/:@srcdir@:/:/g
  7131. s/^:*//
  7132. s/:*$//
  7133. x
  7134. s/\(=[ ]*\).*/\1/
  7135. G
  7136. s/\n//
  7137. s/^[^=]*=[ ]*$//
  7138. }'
  7139. fi
  7140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7141. fi # test -n "$CONFIG_FILES"
  7142. # Set up the scripts for CONFIG_HEADERS section.
  7143. # No need to generate them if there are no CONFIG_HEADERS.
  7144. # This happens for instance with `./config.status Makefile'.
  7145. if test -n "$CONFIG_HEADERS"; then
  7146. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7147. BEGIN {
  7148. _ACEOF
  7149. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7150. # here-document in config.status, that substitutes the proper values into
  7151. # config.h.in to produce config.h.
  7152. # Create a delimiter string that does not exist in confdefs.h, to ease
  7153. # handling of long lines.
  7154. ac_delim='%!_!# '
  7155. for ac_last_try in false false :; do
  7156. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7157. if test -z "$ac_t"; then
  7158. break
  7159. elif $ac_last_try; then
  7160. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7161. else
  7162. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7163. fi
  7164. done
  7165. # For the awk script, D is an array of macro values keyed by name,
  7166. # likewise P contains macro parameters if any. Preserve backslash
  7167. # newline sequences.
  7168. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7169. sed -n '
  7170. s/.\{148\}/&'"$ac_delim"'/g
  7171. t rset
  7172. :rset
  7173. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7174. t def
  7175. d
  7176. :def
  7177. s/\\$//
  7178. t bsnl
  7179. s/["\\]/\\&/g
  7180. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7181. D["\1"]=" \3"/p
  7182. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7183. d
  7184. :bsnl
  7185. s/["\\]/\\&/g
  7186. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7187. D["\1"]=" \3\\\\\\n"\\/p
  7188. t cont
  7189. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7190. t cont
  7191. d
  7192. :cont
  7193. n
  7194. s/.\{148\}/&'"$ac_delim"'/g
  7195. t clear
  7196. :clear
  7197. s/\\$//
  7198. t bsnlc
  7199. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7200. d
  7201. :bsnlc
  7202. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7203. b cont
  7204. ' <confdefs.h | sed '
  7205. s/'"$ac_delim"'/"\\\
  7206. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7208. for (key in D) D_is_set[key] = 1
  7209. FS = ""
  7210. }
  7211. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7212. line = \$ 0
  7213. split(line, arg, " ")
  7214. if (arg[1] == "#") {
  7215. defundef = arg[2]
  7216. mac1 = arg[3]
  7217. } else {
  7218. defundef = substr(arg[1], 2)
  7219. mac1 = arg[2]
  7220. }
  7221. split(mac1, mac2, "(") #)
  7222. macro = mac2[1]
  7223. prefix = substr(line, 1, index(line, defundef) - 1)
  7224. if (D_is_set[macro]) {
  7225. # Preserve the white space surrounding the "#".
  7226. print prefix "define", macro P[macro] D[macro]
  7227. next
  7228. } else {
  7229. # Replace #undef with comments. This is necessary, for example,
  7230. # in the case of _POSIX_SOURCE, which is predefined and required
  7231. # on some systems where configure will not decide to define it.
  7232. if (defundef == "undef") {
  7233. print "/*", prefix defundef, macro, "*/"
  7234. next
  7235. }
  7236. }
  7237. }
  7238. { print }
  7239. _ACAWK
  7240. _ACEOF
  7241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7242. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7243. fi # test -n "$CONFIG_HEADERS"
  7244. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7245. shift
  7246. for ac_tag
  7247. do
  7248. case $ac_tag in
  7249. :[FHLC]) ac_mode=$ac_tag; continue;;
  7250. esac
  7251. case $ac_mode$ac_tag in
  7252. :[FHL]*:*);;
  7253. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  7254. :[FH]-) ac_tag=-:-;;
  7255. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7256. esac
  7257. ac_save_IFS=$IFS
  7258. IFS=:
  7259. set x $ac_tag
  7260. IFS=$ac_save_IFS
  7261. shift
  7262. ac_file=$1
  7263. shift
  7264. case $ac_mode in
  7265. :L) ac_source=$1;;
  7266. :[FH])
  7267. ac_file_inputs=
  7268. for ac_f
  7269. do
  7270. case $ac_f in
  7271. -) ac_f="$tmp/stdin";;
  7272. *) # Look for the file first in the build tree, then in the source tree
  7273. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7274. # because $ac_f cannot contain `:'.
  7275. test -f "$ac_f" ||
  7276. case $ac_f in
  7277. [\\/$]*) false;;
  7278. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7279. esac ||
  7280. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  7281. esac
  7282. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7283. as_fn_append ac_file_inputs " '$ac_f'"
  7284. done
  7285. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7286. # use $as_me), people would be surprised to read:
  7287. # /* config.h. Generated by config.status. */
  7288. configure_input='Generated from '`
  7289. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7290. `' by configure.'
  7291. if test x"$ac_file" != x-; then
  7292. configure_input="$ac_file. $configure_input"
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7294. $as_echo "$as_me: creating $ac_file" >&6;}
  7295. fi
  7296. # Neutralize special characters interpreted by sed in replacement strings.
  7297. case $configure_input in #(
  7298. *\&* | *\|* | *\\* )
  7299. ac_sed_conf_input=`$as_echo "$configure_input" |
  7300. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7301. *) ac_sed_conf_input=$configure_input;;
  7302. esac
  7303. case $ac_tag in
  7304. *:-:* | *:-) cat >"$tmp/stdin" \
  7305. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7306. esac
  7307. ;;
  7308. esac
  7309. ac_dir=`$as_dirname -- "$ac_file" ||
  7310. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7311. X"$ac_file" : 'X\(//\)[^/]' \| \
  7312. X"$ac_file" : 'X\(//\)$' \| \
  7313. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7314. $as_echo X"$ac_file" |
  7315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7316. s//\1/
  7317. q
  7318. }
  7319. /^X\(\/\/\)[^/].*/{
  7320. s//\1/
  7321. q
  7322. }
  7323. /^X\(\/\/\)$/{
  7324. s//\1/
  7325. q
  7326. }
  7327. /^X\(\/\).*/{
  7328. s//\1/
  7329. q
  7330. }
  7331. s/.*/./; q'`
  7332. as_dir="$ac_dir"; as_fn_mkdir_p
  7333. ac_builddir=.
  7334. case "$ac_dir" in
  7335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7336. *)
  7337. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7338. # A ".." for each directory in $ac_dir_suffix.
  7339. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7340. case $ac_top_builddir_sub in
  7341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7343. esac ;;
  7344. esac
  7345. ac_abs_top_builddir=$ac_pwd
  7346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7347. # for backward compatibility:
  7348. ac_top_builddir=$ac_top_build_prefix
  7349. case $srcdir in
  7350. .) # We are building in place.
  7351. ac_srcdir=.
  7352. ac_top_srcdir=$ac_top_builddir_sub
  7353. ac_abs_top_srcdir=$ac_pwd ;;
  7354. [\\/]* | ?:[\\/]* ) # Absolute name.
  7355. ac_srcdir=$srcdir$ac_dir_suffix;
  7356. ac_top_srcdir=$srcdir
  7357. ac_abs_top_srcdir=$srcdir ;;
  7358. *) # Relative name.
  7359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7362. esac
  7363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7364. case $ac_mode in
  7365. :F)
  7366. #
  7367. # CONFIG_FILE
  7368. #
  7369. case $INSTALL in
  7370. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7371. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7372. esac
  7373. ac_MKDIR_P=$MKDIR_P
  7374. case $MKDIR_P in
  7375. [\\/$]* | ?:[\\/]* ) ;;
  7376. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  7377. esac
  7378. _ACEOF
  7379. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7380. # If the template does not know about datarootdir, expand it.
  7381. # FIXME: This hack should be removed a few years after 2.60.
  7382. ac_datarootdir_hack=; ac_datarootdir_seen=
  7383. ac_sed_dataroot='
  7384. /datarootdir/ {
  7385. p
  7386. q
  7387. }
  7388. /@datadir@/p
  7389. /@docdir@/p
  7390. /@infodir@/p
  7391. /@localedir@/p
  7392. /@mandir@/p'
  7393. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7394. *datarootdir*) ac_datarootdir_seen=yes;;
  7395. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7397. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7398. _ACEOF
  7399. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7400. ac_datarootdir_hack='
  7401. s&@datadir@&$datadir&g
  7402. s&@docdir@&$docdir&g
  7403. s&@infodir@&$infodir&g
  7404. s&@localedir@&$localedir&g
  7405. s&@mandir@&$mandir&g
  7406. s&\\\${datarootdir}&$datarootdir&g' ;;
  7407. esac
  7408. _ACEOF
  7409. # Neutralize VPATH when `$srcdir' = `.'.
  7410. # Shell code in configure.ac might set extrasub.
  7411. # FIXME: do we really want to maintain this feature?
  7412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7413. ac_sed_extra="$ac_vpsub
  7414. $extrasub
  7415. _ACEOF
  7416. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7417. :t
  7418. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7419. s|@configure_input@|$ac_sed_conf_input|;t t
  7420. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7421. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7422. s&@srcdir@&$ac_srcdir&;t t
  7423. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7424. s&@top_srcdir@&$ac_top_srcdir&;t t
  7425. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7426. s&@builddir@&$ac_builddir&;t t
  7427. s&@abs_builddir@&$ac_abs_builddir&;t t
  7428. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7429. s&@INSTALL@&$ac_INSTALL&;t t
  7430. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7431. $ac_datarootdir_hack
  7432. "
  7433. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7434. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7435. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7436. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7437. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7439. which seems to be undefined. Please make sure it is defined" >&5
  7440. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7441. which seems to be undefined. Please make sure it is defined" >&2;}
  7442. rm -f "$tmp/stdin"
  7443. case $ac_file in
  7444. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7445. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7446. esac \
  7447. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7448. ;;
  7449. :H)
  7450. #
  7451. # CONFIG_HEADER
  7452. #
  7453. if test x"$ac_file" != x-; then
  7454. {
  7455. $as_echo "/* $configure_input */" \
  7456. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7457. } >"$tmp/config.h" \
  7458. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7459. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7461. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7462. else
  7463. rm -f "$ac_file"
  7464. mv "$tmp/config.h" "$ac_file" \
  7465. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7466. fi
  7467. else
  7468. $as_echo "/* $configure_input */" \
  7469. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7470. || as_fn_error $? "could not create -" "$LINENO" 5
  7471. fi
  7472. # Compute "$ac_file"'s index in $config_headers.
  7473. _am_arg="$ac_file"
  7474. _am_stamp_count=1
  7475. for _am_header in $config_headers :; do
  7476. case $_am_header in
  7477. $_am_arg | $_am_arg:* )
  7478. break ;;
  7479. * )
  7480. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7481. esac
  7482. done
  7483. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7484. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7485. X"$_am_arg" : 'X\(//\)[^/]' \| \
  7486. X"$_am_arg" : 'X\(//\)$' \| \
  7487. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7488. $as_echo X"$_am_arg" |
  7489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7490. s//\1/
  7491. q
  7492. }
  7493. /^X\(\/\/\)[^/].*/{
  7494. s//\1/
  7495. q
  7496. }
  7497. /^X\(\/\/\)$/{
  7498. s//\1/
  7499. q
  7500. }
  7501. /^X\(\/\).*/{
  7502. s//\1/
  7503. q
  7504. }
  7505. s/.*/./; q'`/stamp-h$_am_stamp_count
  7506. ;;
  7507. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7508. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7509. ;;
  7510. esac
  7511. case $ac_file$ac_mode in
  7512. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  7513. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7514. # are listed without --file. Let's play safe and only enable the eval
  7515. # if we detect the quoting.
  7516. case $CONFIG_FILES in
  7517. *\'*) eval set x "$CONFIG_FILES" ;;
  7518. *) set x $CONFIG_FILES ;;
  7519. esac
  7520. shift
  7521. for mf
  7522. do
  7523. # Strip MF so we end up with the name of the file.
  7524. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7525. # Check whether this is an Automake generated Makefile or not.
  7526. # We used to match only the files named `Makefile.in', but
  7527. # some people rename them; so instead we look at the file content.
  7528. # Grep'ing the first line is not enough: some people post-process
  7529. # each Makefile.in and add a new line on top of each file to say so.
  7530. # Grep'ing the whole file is not good either: AIX grep has a line
  7531. # limit of 2048, but all sed's we know have understand at least 4000.
  7532. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7533. dirpart=`$as_dirname -- "$mf" ||
  7534. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7535. X"$mf" : 'X\(//\)[^/]' \| \
  7536. X"$mf" : 'X\(//\)$' \| \
  7537. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7538. $as_echo X"$mf" |
  7539. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7540. s//\1/
  7541. q
  7542. }
  7543. /^X\(\/\/\)[^/].*/{
  7544. s//\1/
  7545. q
  7546. }
  7547. /^X\(\/\/\)$/{
  7548. s//\1/
  7549. q
  7550. }
  7551. /^X\(\/\).*/{
  7552. s//\1/
  7553. q
  7554. }
  7555. s/.*/./; q'`
  7556. else
  7557. continue
  7558. fi
  7559. # Extract the definition of DEPDIR, am__include, and am__quote
  7560. # from the Makefile without running `make'.
  7561. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7562. test -z "$DEPDIR" && continue
  7563. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7564. test -z "am__include" && continue
  7565. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7566. # When using ansi2knr, U may be empty or an underscore; expand it
  7567. U=`sed -n 's/^U = //p' < "$mf"`
  7568. # Find all dependency output files, they are included files with
  7569. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7570. # simplest approach to changing $(DEPDIR) to its actual value in the
  7571. # expansion.
  7572. for file in `sed -n "
  7573. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7574. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7575. # Make sure the directory exists.
  7576. test -f "$dirpart/$file" && continue
  7577. fdir=`$as_dirname -- "$file" ||
  7578. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7579. X"$file" : 'X\(//\)[^/]' \| \
  7580. X"$file" : 'X\(//\)$' \| \
  7581. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  7582. $as_echo X"$file" |
  7583. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7584. s//\1/
  7585. q
  7586. }
  7587. /^X\(\/\/\)[^/].*/{
  7588. s//\1/
  7589. q
  7590. }
  7591. /^X\(\/\/\)$/{
  7592. s//\1/
  7593. q
  7594. }
  7595. /^X\(\/\).*/{
  7596. s//\1/
  7597. q
  7598. }
  7599. s/.*/./; q'`
  7600. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  7601. # echo "creating $dirpart/$file"
  7602. echo '# dummy' > "$dirpart/$file"
  7603. done
  7604. done
  7605. }
  7606. ;;
  7607. esac
  7608. done # for ac_tag
  7609. as_fn_exit 0
  7610. _ACEOF
  7611. ac_clean_files=$ac_clean_files_save
  7612. test $ac_write_fail = 0 ||
  7613. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7614. # configure is writing to config.log, and then calls config.status.
  7615. # config.status does its own redirection, appending to config.log.
  7616. # Unfortunately, on DOS this fails, as config.log is still kept open
  7617. # by configure, so config.status won't be able to write to it; its
  7618. # output is simply discarded. So we exec the FD to /dev/null,
  7619. # effectively closing config.log, so it can be properly (re)opened and
  7620. # appended to by config.status. When coming back to configure, we
  7621. # need to make the FD available again.
  7622. if test "$no_create" != yes; then
  7623. ac_cs_success=:
  7624. ac_config_status_args=
  7625. test "$silent" = yes &&
  7626. ac_config_status_args="$ac_config_status_args --quiet"
  7627. exec 5>/dev/null
  7628. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7629. exec 5>>config.log
  7630. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7631. # would make configure fail if this is the last instruction.
  7632. $ac_cs_success || as_fn_exit 1
  7633. fi
  7634. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7636. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7637. fi
  7638. type dpkg >/dev/null 2>&1
  7639. if test $? -eq 0; then
  7640. # Generate debian/ link if the dpkg command exists
  7641. # (read: if we are running on a debian compatible system)
  7642. echo "creating Debian-specific links ..."
  7643. test -f debian/rules || ln -s contrib/Debian debian
  7644. fi
  7645. # -- Result --
  7646. echo
  7647. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  7648. echo
  7649. # Someone please show me a better way :) [borrowed by OpenSSH]
  7650. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  7651. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  7652. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  7653. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  7654. D=`eval echo ${docdir}` ; D=`eval echo ${D}`
  7655. echo " Host: ${host}"
  7656. echo " Compiler: ${CC}"
  7657. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  7658. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  7659. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  7660. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  7661. echo
  7662. echo " 'ngircd' binary: $S"
  7663. echo " Configuration file: $C"
  7664. echo " Manual pages: $M"
  7665. echo " Documentation: $D"
  7666. echo
  7667. echo $ECHO_N " Syslog support: $ECHO_C"
  7668. test "$x_syslog_on" = "yes" \
  7669. && echo $ECHO_N "yes $ECHO_C" \
  7670. || echo $ECHO_N "no $ECHO_C"
  7671. echo $ECHO_N " Enable debug code: $ECHO_C"
  7672. test "$x_debug_on" = "yes" \
  7673. && echo "yes" \
  7674. || echo "no"
  7675. echo $ECHO_N " zlib compression: $ECHO_C"
  7676. test "$x_zlib_on" = "yes" \
  7677. && echo $ECHO_N "yes $ECHO_C" \
  7678. || echo $ECHO_N "no $ECHO_C"
  7679. echo $ECHO_N " IRC sniffer: $ECHO_C"
  7680. test "$x_sniffer_on" = "yes" \
  7681. && echo "yes" \
  7682. || echo "no"
  7683. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  7684. test "$x_tcpwrap_on" = "yes" \
  7685. && echo $ECHO_N "yes $ECHO_C" \
  7686. || echo $ECHO_N "no $ECHO_C"
  7687. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  7688. test "$x_strict_rfc_on" = "yes" \
  7689. && echo "yes" \
  7690. || echo "no"
  7691. echo $ECHO_N " IDENT support: $ECHO_C"
  7692. test "$x_identauth_on" = "yes" \
  7693. && echo $ECHO_N "yes $ECHO_C" \
  7694. || echo $ECHO_N "no $ECHO_C"
  7695. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  7696. test "$x_ircplus_on" = "yes" \
  7697. && echo "yes" \
  7698. || echo "no"
  7699. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  7700. test "$x_ipv6_on" = "yes" \
  7701. && echo $ECHO_N "yes $ECHO_C" \
  7702. || echo $ECHO_N "no $ECHO_C"
  7703. echo $ECHO_N " I/O backend: $ECHO_C"
  7704. echo "\"$x_io_backend\""
  7705. echo $ECHO_N " PAM support: $ECHO_C"
  7706. test "$x_pam_on" = "yes" \
  7707. && echo $ECHO_N "yes $ECHO_C" \
  7708. || echo $ECHO_N "no $ECHO_C"
  7709. echo $ECHO_N " SSL support: $ECHO_C"
  7710. echo "$x_ssl_lib"
  7711. echo $ECHO_N " libiconv support: $ECHO_C"
  7712. echo "$x_iconv_on"
  7713. echo
  7714. if ! grep "^AUTOMAKE_OPTIONS = ../portab/ansi2knr" src/ngircd/Makefile.am >/dev/null 2>&1; then
  7715. echo "WARNING:"
  7716. echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
  7717. echo "therefore don't use it to generate \"official\" distribution archives!"
  7718. echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"
  7719. echo
  7720. fi
  7721. # -eof-