1
0

configure 294 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for ngircd 0.9.2.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME='ngircd'
  235. PACKAGE_TARNAME='ngircd'
  236. PACKAGE_VERSION='0.9.2'
  237. PACKAGE_STRING='ngircd 0.9.2'
  238. PACKAGE_BUGREPORT=''
  239. ac_unique_file="src/ngircd/ngircd.c"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CPP_set=${CPP+set}
  676. ac_env_CPP_value=$CPP
  677. ac_cv_env_CPP_set=${CPP+set}
  678. ac_cv_env_CPP_value=$CPP
  679. #
  680. # Report the --help message.
  681. #
  682. if test "$ac_init_help" = "long"; then
  683. # Omit some internal or obsolete options to make the list less imposing.
  684. # This message is too long to be a string in the A/UX 3.1 sh.
  685. cat <<_ACEOF
  686. \`configure' configures ngircd 0.9.2 to adapt to many kinds of systems.
  687. Usage: $0 [OPTION]... [VAR=VALUE]...
  688. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  689. VAR=VALUE. See below for descriptions of some of the useful variables.
  690. Defaults for the options are specified in brackets.
  691. Configuration:
  692. -h, --help display this help and exit
  693. --help=short display options specific to this package
  694. --help=recursive display the short help of all the included packages
  695. -V, --version display version information and exit
  696. -q, --quiet, --silent do not print \`checking...' messages
  697. --cache-file=FILE cache test results in FILE [disabled]
  698. -C, --config-cache alias for \`--cache-file=config.cache'
  699. -n, --no-create do not create output files
  700. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  701. _ACEOF
  702. cat <<_ACEOF
  703. Installation directories:
  704. --prefix=PREFIX install architecture-independent files in PREFIX
  705. [$ac_default_prefix]
  706. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  707. [PREFIX]
  708. By default, \`make install' will install all the files in
  709. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  710. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  711. for instance \`--prefix=\$HOME'.
  712. For better control, use the options below.
  713. Fine tuning of the installation directories:
  714. --bindir=DIR user executables [EPREFIX/bin]
  715. --sbindir=DIR system admin executables [EPREFIX/sbin]
  716. --libexecdir=DIR program executables [EPREFIX/libexec]
  717. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  718. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  719. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  720. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  721. --libdir=DIR object code libraries [EPREFIX/lib]
  722. --includedir=DIR C header files [PREFIX/include]
  723. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  724. --infodir=DIR info documentation [PREFIX/info]
  725. --mandir=DIR man documentation [PREFIX/man]
  726. _ACEOF
  727. cat <<\_ACEOF
  728. Program names:
  729. --program-prefix=PREFIX prepend PREFIX to installed program names
  730. --program-suffix=SUFFIX append SUFFIX to installed program names
  731. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  732. System types:
  733. --build=BUILD configure for building on BUILD [guessed]
  734. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  735. --target=TARGET configure for building compilers for TARGET [HOST]
  736. _ACEOF
  737. fi
  738. if test -n "$ac_init_help"; then
  739. case $ac_init_help in
  740. short | recursive ) echo "Configuration of ngircd 0.9.2:";;
  741. esac
  742. cat <<\_ACEOF
  743. Optional Features:
  744. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  745. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  746. --disable-dependency-tracking Speeds up one-time builds
  747. --enable-dependency-tracking Do not reject slow dependency extractors
  748. --disable-ircplus disable IRC+ protocol
  749. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  750. --enable-debug show additional debug output
  751. --enable-strict-rfc strict RFC conformance -- may break clients!
  752. Optional Packages:
  753. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  754. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  755. --without-syslog disable syslog (autodetected by default)
  756. --without-zlib disable zlib compression (autodetected by default)
  757. --with-tcp-wrappers enable TCP wrappers support
  758. --with-rendezvous enable support for "Rendezvous"
  759. --with-ident enable "IDENT" ("AUTH") protocol support
  760. Some influential environment variables:
  761. CC C compiler command
  762. CFLAGS C compiler flags
  763. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  764. nonstandard directory <lib dir>
  765. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  766. headers in a nonstandard directory <include dir>
  767. CPP C preprocessor
  768. Use these variables to override the choices made by `configure' or to help
  769. it to find libraries and programs with nonstandard names/locations.
  770. _ACEOF
  771. fi
  772. if test "$ac_init_help" = "recursive"; then
  773. # If there are subdirs, report their specific --help.
  774. ac_popdir=`pwd`
  775. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  776. test -d $ac_dir || continue
  777. ac_builddir=.
  778. if test "$ac_dir" != .; then
  779. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  780. # A "../" for each directory in $ac_dir_suffix.
  781. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  782. else
  783. ac_dir_suffix= ac_top_builddir=
  784. fi
  785. case $srcdir in
  786. .) # No --srcdir option. We are building in place.
  787. ac_srcdir=.
  788. if test -z "$ac_top_builddir"; then
  789. ac_top_srcdir=.
  790. else
  791. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  792. fi ;;
  793. [\\/]* | ?:[\\/]* ) # Absolute path.
  794. ac_srcdir=$srcdir$ac_dir_suffix;
  795. ac_top_srcdir=$srcdir ;;
  796. *) # Relative path.
  797. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  798. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  799. esac
  800. # Do not use `cd foo && pwd` to compute absolute paths, because
  801. # the directories may not exist.
  802. case `pwd` in
  803. .) ac_abs_builddir="$ac_dir";;
  804. *)
  805. case "$ac_dir" in
  806. .) ac_abs_builddir=`pwd`;;
  807. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  808. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  809. esac;;
  810. esac
  811. case $ac_abs_builddir in
  812. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  813. *)
  814. case ${ac_top_builddir}. in
  815. .) ac_abs_top_builddir=$ac_abs_builddir;;
  816. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  817. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  818. esac;;
  819. esac
  820. case $ac_abs_builddir in
  821. .) ac_abs_srcdir=$ac_srcdir;;
  822. *)
  823. case $ac_srcdir in
  824. .) ac_abs_srcdir=$ac_abs_builddir;;
  825. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  826. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  827. esac;;
  828. esac
  829. case $ac_abs_builddir in
  830. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  831. *)
  832. case $ac_top_srcdir in
  833. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  834. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  835. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  836. esac;;
  837. esac
  838. cd $ac_dir
  839. # Check for guested configure; otherwise get Cygnus style configure.
  840. if test -f $ac_srcdir/configure.gnu; then
  841. echo
  842. $SHELL $ac_srcdir/configure.gnu --help=recursive
  843. elif test -f $ac_srcdir/configure; then
  844. echo
  845. $SHELL $ac_srcdir/configure --help=recursive
  846. elif test -f $ac_srcdir/configure.ac ||
  847. test -f $ac_srcdir/configure.in; then
  848. echo
  849. $ac_configure --help
  850. else
  851. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  852. fi
  853. cd "$ac_popdir"
  854. done
  855. fi
  856. test -n "$ac_init_help" && exit 0
  857. if $ac_init_version; then
  858. cat <<\_ACEOF
  859. ngircd configure 0.9.2
  860. generated by GNU Autoconf 2.59
  861. Copyright (C) 2003 Free Software Foundation, Inc.
  862. This configure script is free software; the Free Software Foundation
  863. gives unlimited permission to copy, distribute and modify it.
  864. _ACEOF
  865. exit 0
  866. fi
  867. exec 5>config.log
  868. cat >&5 <<_ACEOF
  869. This file contains any messages produced by compilers while
  870. running configure, to aid debugging if configure makes a mistake.
  871. It was created by ngircd $as_me 0.9.2, which was
  872. generated by GNU Autoconf 2.59. Invocation command line was
  873. $ $0 $@
  874. _ACEOF
  875. {
  876. cat <<_ASUNAME
  877. ## --------- ##
  878. ## Platform. ##
  879. ## --------- ##
  880. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  881. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  882. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  883. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  884. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  885. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  886. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  887. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  888. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  889. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  890. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  891. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  892. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  893. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  894. _ASUNAME
  895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  896. for as_dir in $PATH
  897. do
  898. IFS=$as_save_IFS
  899. test -z "$as_dir" && as_dir=.
  900. echo "PATH: $as_dir"
  901. done
  902. } >&5
  903. cat >&5 <<_ACEOF
  904. ## ----------- ##
  905. ## Core tests. ##
  906. ## ----------- ##
  907. _ACEOF
  908. # Keep a trace of the command line.
  909. # Strip out --no-create and --no-recursion so they do not pile up.
  910. # Strip out --silent because we don't want to record it for future runs.
  911. # Also quote any args containing shell meta-characters.
  912. # Make two passes to allow for proper duplicate-argument suppression.
  913. ac_configure_args=
  914. ac_configure_args0=
  915. ac_configure_args1=
  916. ac_sep=
  917. ac_must_keep_next=false
  918. for ac_pass in 1 2
  919. do
  920. for ac_arg
  921. do
  922. case $ac_arg in
  923. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  925. | -silent | --silent | --silen | --sile | --sil)
  926. continue ;;
  927. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  928. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  929. esac
  930. case $ac_pass in
  931. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  932. 2)
  933. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  934. if test $ac_must_keep_next = true; then
  935. ac_must_keep_next=false # Got value, back to normal.
  936. else
  937. case $ac_arg in
  938. *=* | --config-cache | -C | -disable-* | --disable-* \
  939. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  940. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  941. | -with-* | --with-* | -without-* | --without-* | --x)
  942. case "$ac_configure_args0 " in
  943. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  944. esac
  945. ;;
  946. -* ) ac_must_keep_next=true ;;
  947. esac
  948. fi
  949. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  950. # Get rid of the leading space.
  951. ac_sep=" "
  952. ;;
  953. esac
  954. done
  955. done
  956. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  957. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  958. # When interrupted or exit'd, cleanup temporary files, and complete
  959. # config.log. We remove comments because anyway the quotes in there
  960. # would cause problems or look ugly.
  961. # WARNING: Be sure not to use single quotes in there, as some shells,
  962. # such as our DU 5.0 friend, will then `close' the trap.
  963. trap 'exit_status=$?
  964. # Save into config.log some information that might help in debugging.
  965. {
  966. echo
  967. cat <<\_ASBOX
  968. ## ---------------- ##
  969. ## Cache variables. ##
  970. ## ---------------- ##
  971. _ASBOX
  972. echo
  973. # The following way of writing the cache mishandles newlines in values,
  974. {
  975. (set) 2>&1 |
  976. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  977. *ac_space=\ *)
  978. sed -n \
  979. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  980. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  981. ;;
  982. *)
  983. sed -n \
  984. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  985. ;;
  986. esac;
  987. }
  988. echo
  989. cat <<\_ASBOX
  990. ## ----------------- ##
  991. ## Output variables. ##
  992. ## ----------------- ##
  993. _ASBOX
  994. echo
  995. for ac_var in $ac_subst_vars
  996. do
  997. eval ac_val=$`echo $ac_var`
  998. echo "$ac_var='"'"'$ac_val'"'"'"
  999. done | sort
  1000. echo
  1001. if test -n "$ac_subst_files"; then
  1002. cat <<\_ASBOX
  1003. ## ------------- ##
  1004. ## Output files. ##
  1005. ## ------------- ##
  1006. _ASBOX
  1007. echo
  1008. for ac_var in $ac_subst_files
  1009. do
  1010. eval ac_val=$`echo $ac_var`
  1011. echo "$ac_var='"'"'$ac_val'"'"'"
  1012. done | sort
  1013. echo
  1014. fi
  1015. if test -s confdefs.h; then
  1016. cat <<\_ASBOX
  1017. ## ----------- ##
  1018. ## confdefs.h. ##
  1019. ## ----------- ##
  1020. _ASBOX
  1021. echo
  1022. sed "/^$/d" confdefs.h | sort
  1023. echo
  1024. fi
  1025. test "$ac_signal" != 0 &&
  1026. echo "$as_me: caught signal $ac_signal"
  1027. echo "$as_me: exit $exit_status"
  1028. } >&5
  1029. rm -f core *.core &&
  1030. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1031. exit $exit_status
  1032. ' 0
  1033. for ac_signal in 1 2 13 15; do
  1034. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1035. done
  1036. ac_signal=0
  1037. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1038. rm -rf conftest* confdefs.h
  1039. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1040. echo >confdefs.h
  1041. # Predefined preprocessor variables.
  1042. cat >>confdefs.h <<_ACEOF
  1043. #define PACKAGE_NAME "$PACKAGE_NAME"
  1044. _ACEOF
  1045. cat >>confdefs.h <<_ACEOF
  1046. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1047. _ACEOF
  1048. cat >>confdefs.h <<_ACEOF
  1049. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1050. _ACEOF
  1051. cat >>confdefs.h <<_ACEOF
  1052. #define PACKAGE_STRING "$PACKAGE_STRING"
  1053. _ACEOF
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1056. _ACEOF
  1057. # Let the site file select an alternate cache file if it wants to.
  1058. # Prefer explicitly selected file to automatically selected ones.
  1059. if test -z "$CONFIG_SITE"; then
  1060. if test "x$prefix" != xNONE; then
  1061. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1062. else
  1063. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1064. fi
  1065. fi
  1066. for ac_site_file in $CONFIG_SITE; do
  1067. if test -r "$ac_site_file"; then
  1068. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1069. echo "$as_me: loading site script $ac_site_file" >&6;}
  1070. sed 's/^/| /' "$ac_site_file" >&5
  1071. . "$ac_site_file"
  1072. fi
  1073. done
  1074. if test -r "$cache_file"; then
  1075. # Some versions of bash will fail to source /dev/null (special
  1076. # files actually), so we avoid doing that.
  1077. if test -f "$cache_file"; then
  1078. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1079. echo "$as_me: loading cache $cache_file" >&6;}
  1080. case $cache_file in
  1081. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1082. *) . ./$cache_file;;
  1083. esac
  1084. fi
  1085. else
  1086. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1087. echo "$as_me: creating cache $cache_file" >&6;}
  1088. >$cache_file
  1089. fi
  1090. # Check that the precious variables saved in the cache have kept the same
  1091. # value.
  1092. ac_cache_corrupted=false
  1093. for ac_var in `(set) 2>&1 |
  1094. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1095. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1096. eval ac_new_set=\$ac_env_${ac_var}_set
  1097. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1098. eval ac_new_val="\$ac_env_${ac_var}_value"
  1099. case $ac_old_set,$ac_new_set in
  1100. set,)
  1101. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1102. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1103. ac_cache_corrupted=: ;;
  1104. ,set)
  1105. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1106. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1107. ac_cache_corrupted=: ;;
  1108. ,);;
  1109. *)
  1110. if test "x$ac_old_val" != "x$ac_new_val"; then
  1111. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1112. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1113. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1114. echo "$as_me: former value: $ac_old_val" >&2;}
  1115. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1116. echo "$as_me: current value: $ac_new_val" >&2;}
  1117. ac_cache_corrupted=:
  1118. fi;;
  1119. esac
  1120. # Pass precious variables to config.status.
  1121. if test "$ac_new_set" = set; then
  1122. case $ac_new_val in
  1123. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1124. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1125. *) ac_arg=$ac_var=$ac_new_val ;;
  1126. esac
  1127. case " $ac_configure_args " in
  1128. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1129. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1130. esac
  1131. fi
  1132. done
  1133. if $ac_cache_corrupted; then
  1134. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1135. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1136. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1137. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1138. { (exit 1); exit 1; }; }
  1139. fi
  1140. ac_ext=c
  1141. ac_cpp='$CPP $CPPFLAGS'
  1142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1145. ac_aux_dir=
  1146. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1147. if test -f $ac_dir/install-sh; then
  1148. ac_aux_dir=$ac_dir
  1149. ac_install_sh="$ac_aux_dir/install-sh -c"
  1150. break
  1151. elif test -f $ac_dir/install.sh; then
  1152. ac_aux_dir=$ac_dir
  1153. ac_install_sh="$ac_aux_dir/install.sh -c"
  1154. break
  1155. elif test -f $ac_dir/shtool; then
  1156. ac_aux_dir=$ac_dir
  1157. ac_install_sh="$ac_aux_dir/shtool install -c"
  1158. break
  1159. fi
  1160. done
  1161. if test -z "$ac_aux_dir"; then
  1162. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1163. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1164. { (exit 1); exit 1; }; }
  1165. fi
  1166. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1167. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1168. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1169. # Make sure we can run config.sub.
  1170. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1171. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1172. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1173. { (exit 1); exit 1; }; }
  1174. echo "$as_me:$LINENO: checking build system type" >&5
  1175. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1176. if test "${ac_cv_build+set}" = set; then
  1177. echo $ECHO_N "(cached) $ECHO_C" >&6
  1178. else
  1179. ac_cv_build_alias=$build_alias
  1180. test -z "$ac_cv_build_alias" &&
  1181. ac_cv_build_alias=`$ac_config_guess`
  1182. test -z "$ac_cv_build_alias" &&
  1183. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1184. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1185. { (exit 1); exit 1; }; }
  1186. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1187. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1188. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1189. { (exit 1); exit 1; }; }
  1190. fi
  1191. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1192. echo "${ECHO_T}$ac_cv_build" >&6
  1193. build=$ac_cv_build
  1194. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1195. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1196. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1197. echo "$as_me:$LINENO: checking host system type" >&5
  1198. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1199. if test "${ac_cv_host+set}" = set; then
  1200. echo $ECHO_N "(cached) $ECHO_C" >&6
  1201. else
  1202. ac_cv_host_alias=$host_alias
  1203. test -z "$ac_cv_host_alias" &&
  1204. ac_cv_host_alias=$ac_cv_build_alias
  1205. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1206. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1207. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1208. { (exit 1); exit 1; }; }
  1209. fi
  1210. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1211. echo "${ECHO_T}$ac_cv_host" >&6
  1212. host=$ac_cv_host
  1213. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1214. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1215. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1216. echo "$as_me:$LINENO: checking target system type" >&5
  1217. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1218. if test "${ac_cv_target+set}" = set; then
  1219. echo $ECHO_N "(cached) $ECHO_C" >&6
  1220. else
  1221. ac_cv_target_alias=$target_alias
  1222. test "x$ac_cv_target_alias" = "x" &&
  1223. ac_cv_target_alias=$ac_cv_host_alias
  1224. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1225. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1226. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1227. { (exit 1); exit 1; }; }
  1228. fi
  1229. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1230. echo "${ECHO_T}$ac_cv_target" >&6
  1231. target=$ac_cv_target
  1232. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1233. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1234. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1235. # The aliases save the names the user supplied, while $host etc.
  1236. # will get canonicalized.
  1237. test -n "$target_alias" &&
  1238. test "$program_prefix$program_suffix$program_transform_name" = \
  1239. NONENONEs,x,x, &&
  1240. program_prefix=${target_alias}-
  1241. am__api_version="1.7"
  1242. # Find a good install program. We prefer a C program (faster),
  1243. # so one script is as good as another. But avoid the broken or
  1244. # incompatible versions:
  1245. # SysV /etc/install, /usr/sbin/install
  1246. # SunOS /usr/etc/install
  1247. # IRIX /sbin/install
  1248. # AIX /bin/install
  1249. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1250. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1251. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1252. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1253. # OS/2's system install, which has a completely different semantic
  1254. # ./install, which can be erroneously created by make from ./install.sh.
  1255. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1256. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1257. if test -z "$INSTALL"; then
  1258. if test "${ac_cv_path_install+set}" = set; then
  1259. echo $ECHO_N "(cached) $ECHO_C" >&6
  1260. else
  1261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1262. for as_dir in $PATH
  1263. do
  1264. IFS=$as_save_IFS
  1265. test -z "$as_dir" && as_dir=.
  1266. # Account for people who put trailing slashes in PATH elements.
  1267. case $as_dir/ in
  1268. ./ | .// | /cC/* | \
  1269. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1270. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1271. /usr/ucb/* ) ;;
  1272. *)
  1273. # OSF1 and SCO ODT 3.0 have their own names for install.
  1274. # Don't use installbsd from OSF since it installs stuff as root
  1275. # by default.
  1276. for ac_prog in ginstall scoinst install; do
  1277. for ac_exec_ext in '' $ac_executable_extensions; do
  1278. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1279. if test $ac_prog = install &&
  1280. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1281. # AIX install. It has an incompatible calling convention.
  1282. :
  1283. elif test $ac_prog = install &&
  1284. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1285. # program-specific install script used by HP pwplus--don't use.
  1286. :
  1287. else
  1288. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1289. break 3
  1290. fi
  1291. fi
  1292. done
  1293. done
  1294. ;;
  1295. esac
  1296. done
  1297. fi
  1298. if test "${ac_cv_path_install+set}" = set; then
  1299. INSTALL=$ac_cv_path_install
  1300. else
  1301. # As a last resort, use the slow shell script. We don't cache a
  1302. # path for INSTALL within a source directory, because that will
  1303. # break other packages using the cache if that directory is
  1304. # removed, or if the path is relative.
  1305. INSTALL=$ac_install_sh
  1306. fi
  1307. fi
  1308. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1309. echo "${ECHO_T}$INSTALL" >&6
  1310. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1311. # It thinks the first close brace ends the variable substitution.
  1312. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1313. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1314. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1315. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1316. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1317. # Just in case
  1318. sleep 1
  1319. echo timestamp > conftest.file
  1320. # Do `set' in a subshell so we don't clobber the current shell's
  1321. # arguments. Must try -L first in case configure is actually a
  1322. # symlink; some systems play weird games with the mod time of symlinks
  1323. # (eg FreeBSD returns the mod time of the symlink's containing
  1324. # directory).
  1325. if (
  1326. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1327. if test "$*" = "X"; then
  1328. # -L didn't work.
  1329. set X `ls -t $srcdir/configure conftest.file`
  1330. fi
  1331. rm -f conftest.file
  1332. if test "$*" != "X $srcdir/configure conftest.file" \
  1333. && test "$*" != "X conftest.file $srcdir/configure"; then
  1334. # If neither matched, then we have a broken ls. This can happen
  1335. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1336. # broken ls alias from the environment. This has actually
  1337. # happened. Such a system could not be considered "sane".
  1338. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1339. alias in your environment" >&5
  1340. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1341. alias in your environment" >&2;}
  1342. { (exit 1); exit 1; }; }
  1343. fi
  1344. test "$2" = conftest.file
  1345. )
  1346. then
  1347. # Ok.
  1348. :
  1349. else
  1350. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1351. Check your system clock" >&5
  1352. echo "$as_me: error: newly created file is older than distributed files!
  1353. Check your system clock" >&2;}
  1354. { (exit 1); exit 1; }; }
  1355. fi
  1356. echo "$as_me:$LINENO: result: yes" >&5
  1357. echo "${ECHO_T}yes" >&6
  1358. test "$program_prefix" != NONE &&
  1359. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1360. # Use a double $ so make ignores it.
  1361. test "$program_suffix" != NONE &&
  1362. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1363. # Double any \ or $. echo might interpret backslashes.
  1364. # By default was `s,x,x', remove it if useless.
  1365. cat <<\_ACEOF >conftest.sed
  1366. s/[\\$]/&&/g;s/;s,x,x,$//
  1367. _ACEOF
  1368. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1369. rm conftest.sed
  1370. # expand $ac_aux_dir to an absolute path
  1371. am_aux_dir=`cd $ac_aux_dir && pwd`
  1372. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1373. # Use eval to expand $SHELL
  1374. if eval "$MISSING --run true"; then
  1375. am_missing_run="$MISSING --run "
  1376. else
  1377. am_missing_run=
  1378. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1379. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1380. fi
  1381. for ac_prog in gawk mawk nawk awk
  1382. do
  1383. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1384. set dummy $ac_prog; ac_word=$2
  1385. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1386. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1387. if test "${ac_cv_prog_AWK+set}" = set; then
  1388. echo $ECHO_N "(cached) $ECHO_C" >&6
  1389. else
  1390. if test -n "$AWK"; then
  1391. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1392. else
  1393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1394. for as_dir in $PATH
  1395. do
  1396. IFS=$as_save_IFS
  1397. test -z "$as_dir" && as_dir=.
  1398. for ac_exec_ext in '' $ac_executable_extensions; do
  1399. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1400. ac_cv_prog_AWK="$ac_prog"
  1401. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1402. break 2
  1403. fi
  1404. done
  1405. done
  1406. fi
  1407. fi
  1408. AWK=$ac_cv_prog_AWK
  1409. if test -n "$AWK"; then
  1410. echo "$as_me:$LINENO: result: $AWK" >&5
  1411. echo "${ECHO_T}$AWK" >&6
  1412. else
  1413. echo "$as_me:$LINENO: result: no" >&5
  1414. echo "${ECHO_T}no" >&6
  1415. fi
  1416. test -n "$AWK" && break
  1417. done
  1418. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1419. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1420. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1421. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1422. echo $ECHO_N "(cached) $ECHO_C" >&6
  1423. else
  1424. cat >conftest.make <<\_ACEOF
  1425. all:
  1426. @echo 'ac_maketemp="$(MAKE)"'
  1427. _ACEOF
  1428. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1429. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1430. if test -n "$ac_maketemp"; then
  1431. eval ac_cv_prog_make_${ac_make}_set=yes
  1432. else
  1433. eval ac_cv_prog_make_${ac_make}_set=no
  1434. fi
  1435. rm -f conftest.make
  1436. fi
  1437. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1438. echo "$as_me:$LINENO: result: yes" >&5
  1439. echo "${ECHO_T}yes" >&6
  1440. SET_MAKE=
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. SET_MAKE="MAKE=${MAKE-make}"
  1445. fi
  1446. rm -rf .tst 2>/dev/null
  1447. mkdir .tst 2>/dev/null
  1448. if test -d .tst; then
  1449. am__leading_dot=.
  1450. else
  1451. am__leading_dot=_
  1452. fi
  1453. rmdir .tst 2>/dev/null
  1454. # test to see if srcdir already configured
  1455. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1456. test -f $srcdir/config.status; then
  1457. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1458. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1459. { (exit 1); exit 1; }; }
  1460. fi
  1461. # test whether we have cygpath
  1462. if test -z "$CYGPATH_W"; then
  1463. if (cygpath --version) >/dev/null 2>/dev/null; then
  1464. CYGPATH_W='cygpath -w'
  1465. else
  1466. CYGPATH_W=echo
  1467. fi
  1468. fi
  1469. # Define the identity of the package.
  1470. PACKAGE='ngircd'
  1471. VERSION='0.9.2'
  1472. cat >>confdefs.h <<_ACEOF
  1473. #define PACKAGE "$PACKAGE"
  1474. _ACEOF
  1475. cat >>confdefs.h <<_ACEOF
  1476. #define VERSION "$VERSION"
  1477. _ACEOF
  1478. # Some tools Automake needs.
  1479. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1480. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1481. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1482. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1483. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1484. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1485. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1486. # Installed binaries are usually stripped using `strip' when the user
  1487. # run `make install-strip'. However `strip' might not be the right
  1488. # tool to use in cross-compilation environments, therefore Automake
  1489. # will honor the `STRIP' environment variable to overrule this program.
  1490. if test "$cross_compiling" != no; then
  1491. if test -n "$ac_tool_prefix"; then
  1492. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1493. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1494. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1495. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1496. if test "${ac_cv_prog_STRIP+set}" = set; then
  1497. echo $ECHO_N "(cached) $ECHO_C" >&6
  1498. else
  1499. if test -n "$STRIP"; then
  1500. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1501. else
  1502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1503. for as_dir in $PATH
  1504. do
  1505. IFS=$as_save_IFS
  1506. test -z "$as_dir" && as_dir=.
  1507. for ac_exec_ext in '' $ac_executable_extensions; do
  1508. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1509. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1510. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1511. break 2
  1512. fi
  1513. done
  1514. done
  1515. fi
  1516. fi
  1517. STRIP=$ac_cv_prog_STRIP
  1518. if test -n "$STRIP"; then
  1519. echo "$as_me:$LINENO: result: $STRIP" >&5
  1520. echo "${ECHO_T}$STRIP" >&6
  1521. else
  1522. echo "$as_me:$LINENO: result: no" >&5
  1523. echo "${ECHO_T}no" >&6
  1524. fi
  1525. fi
  1526. if test -z "$ac_cv_prog_STRIP"; then
  1527. ac_ct_STRIP=$STRIP
  1528. # Extract the first word of "strip", so it can be a program name with args.
  1529. set dummy strip; ac_word=$2
  1530. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1531. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1532. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1533. echo $ECHO_N "(cached) $ECHO_C" >&6
  1534. else
  1535. if test -n "$ac_ct_STRIP"; then
  1536. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1537. else
  1538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1539. for as_dir in $PATH
  1540. do
  1541. IFS=$as_save_IFS
  1542. test -z "$as_dir" && as_dir=.
  1543. for ac_exec_ext in '' $ac_executable_extensions; do
  1544. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1545. ac_cv_prog_ac_ct_STRIP="strip"
  1546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1547. break 2
  1548. fi
  1549. done
  1550. done
  1551. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1552. fi
  1553. fi
  1554. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1555. if test -n "$ac_ct_STRIP"; then
  1556. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1557. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1558. else
  1559. echo "$as_me:$LINENO: result: no" >&5
  1560. echo "${ECHO_T}no" >&6
  1561. fi
  1562. STRIP=$ac_ct_STRIP
  1563. else
  1564. STRIP="$ac_cv_prog_STRIP"
  1565. fi
  1566. fi
  1567. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1568. # We need awk for the "check" target. The system "awk" is bad on
  1569. # some platforms.
  1570. ac_config_headers="$ac_config_headers src/config.h"
  1571. # -- Templates for config.h --
  1572. # -- C Compiler --
  1573. ac_ext=c
  1574. ac_cpp='$CPP $CPPFLAGS'
  1575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1578. if test -n "$ac_tool_prefix"; then
  1579. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1580. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1581. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1582. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1583. if test "${ac_cv_prog_CC+set}" = set; then
  1584. echo $ECHO_N "(cached) $ECHO_C" >&6
  1585. else
  1586. if test -n "$CC"; then
  1587. ac_cv_prog_CC="$CC" # Let the user override the test.
  1588. else
  1589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1590. for as_dir in $PATH
  1591. do
  1592. IFS=$as_save_IFS
  1593. test -z "$as_dir" && as_dir=.
  1594. for ac_exec_ext in '' $ac_executable_extensions; do
  1595. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1596. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1597. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1598. break 2
  1599. fi
  1600. done
  1601. done
  1602. fi
  1603. fi
  1604. CC=$ac_cv_prog_CC
  1605. if test -n "$CC"; then
  1606. echo "$as_me:$LINENO: result: $CC" >&5
  1607. echo "${ECHO_T}$CC" >&6
  1608. else
  1609. echo "$as_me:$LINENO: result: no" >&5
  1610. echo "${ECHO_T}no" >&6
  1611. fi
  1612. fi
  1613. if test -z "$ac_cv_prog_CC"; then
  1614. ac_ct_CC=$CC
  1615. # Extract the first word of "gcc", so it can be a program name with args.
  1616. set dummy gcc; ac_word=$2
  1617. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1619. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1620. echo $ECHO_N "(cached) $ECHO_C" >&6
  1621. else
  1622. if test -n "$ac_ct_CC"; then
  1623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1624. else
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. test -z "$as_dir" && as_dir=.
  1630. for ac_exec_ext in '' $ac_executable_extensions; do
  1631. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1632. ac_cv_prog_ac_ct_CC="gcc"
  1633. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1634. break 2
  1635. fi
  1636. done
  1637. done
  1638. fi
  1639. fi
  1640. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1641. if test -n "$ac_ct_CC"; then
  1642. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1643. echo "${ECHO_T}$ac_ct_CC" >&6
  1644. else
  1645. echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6
  1647. fi
  1648. CC=$ac_ct_CC
  1649. else
  1650. CC="$ac_cv_prog_CC"
  1651. fi
  1652. if test -z "$CC"; then
  1653. if test -n "$ac_tool_prefix"; then
  1654. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1655. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1656. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1657. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1658. if test "${ac_cv_prog_CC+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. if test -n "$CC"; then
  1662. ac_cv_prog_CC="$CC" # Let the user override the test.
  1663. else
  1664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1665. for as_dir in $PATH
  1666. do
  1667. IFS=$as_save_IFS
  1668. test -z "$as_dir" && as_dir=.
  1669. for ac_exec_ext in '' $ac_executable_extensions; do
  1670. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1671. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1672. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1673. break 2
  1674. fi
  1675. done
  1676. done
  1677. fi
  1678. fi
  1679. CC=$ac_cv_prog_CC
  1680. if test -n "$CC"; then
  1681. echo "$as_me:$LINENO: result: $CC" >&5
  1682. echo "${ECHO_T}$CC" >&6
  1683. else
  1684. echo "$as_me:$LINENO: result: no" >&5
  1685. echo "${ECHO_T}no" >&6
  1686. fi
  1687. fi
  1688. if test -z "$ac_cv_prog_CC"; then
  1689. ac_ct_CC=$CC
  1690. # Extract the first word of "cc", so it can be a program name with args.
  1691. set dummy cc; ac_word=$2
  1692. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1693. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1694. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1695. echo $ECHO_N "(cached) $ECHO_C" >&6
  1696. else
  1697. if test -n "$ac_ct_CC"; then
  1698. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1699. else
  1700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1701. for as_dir in $PATH
  1702. do
  1703. IFS=$as_save_IFS
  1704. test -z "$as_dir" && as_dir=.
  1705. for ac_exec_ext in '' $ac_executable_extensions; do
  1706. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1707. ac_cv_prog_ac_ct_CC="cc"
  1708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1709. break 2
  1710. fi
  1711. done
  1712. done
  1713. fi
  1714. fi
  1715. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1716. if test -n "$ac_ct_CC"; then
  1717. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1718. echo "${ECHO_T}$ac_ct_CC" >&6
  1719. else
  1720. echo "$as_me:$LINENO: result: no" >&5
  1721. echo "${ECHO_T}no" >&6
  1722. fi
  1723. CC=$ac_ct_CC
  1724. else
  1725. CC="$ac_cv_prog_CC"
  1726. fi
  1727. fi
  1728. if test -z "$CC"; then
  1729. # Extract the first word of "cc", so it can be a program name with args.
  1730. set dummy cc; ac_word=$2
  1731. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1732. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1733. if test "${ac_cv_prog_CC+set}" = set; then
  1734. echo $ECHO_N "(cached) $ECHO_C" >&6
  1735. else
  1736. if test -n "$CC"; then
  1737. ac_cv_prog_CC="$CC" # Let the user override the test.
  1738. else
  1739. ac_prog_rejected=no
  1740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1741. for as_dir in $PATH
  1742. do
  1743. IFS=$as_save_IFS
  1744. test -z "$as_dir" && as_dir=.
  1745. for ac_exec_ext in '' $ac_executable_extensions; do
  1746. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1747. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1748. ac_prog_rejected=yes
  1749. continue
  1750. fi
  1751. ac_cv_prog_CC="cc"
  1752. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1753. break 2
  1754. fi
  1755. done
  1756. done
  1757. if test $ac_prog_rejected = yes; then
  1758. # We found a bogon in the path, so make sure we never use it.
  1759. set dummy $ac_cv_prog_CC
  1760. shift
  1761. if test $# != 0; then
  1762. # We chose a different compiler from the bogus one.
  1763. # However, it has the same basename, so the bogon will be chosen
  1764. # first if we set CC to just the basename; use the full file name.
  1765. shift
  1766. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1767. fi
  1768. fi
  1769. fi
  1770. fi
  1771. CC=$ac_cv_prog_CC
  1772. if test -n "$CC"; then
  1773. echo "$as_me:$LINENO: result: $CC" >&5
  1774. echo "${ECHO_T}$CC" >&6
  1775. else
  1776. echo "$as_me:$LINENO: result: no" >&5
  1777. echo "${ECHO_T}no" >&6
  1778. fi
  1779. fi
  1780. if test -z "$CC"; then
  1781. if test -n "$ac_tool_prefix"; then
  1782. for ac_prog in cl
  1783. do
  1784. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1785. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1786. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1787. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1788. if test "${ac_cv_prog_CC+set}" = set; then
  1789. echo $ECHO_N "(cached) $ECHO_C" >&6
  1790. else
  1791. if test -n "$CC"; then
  1792. ac_cv_prog_CC="$CC" # Let the user override the test.
  1793. else
  1794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1795. for as_dir in $PATH
  1796. do
  1797. IFS=$as_save_IFS
  1798. test -z "$as_dir" && as_dir=.
  1799. for ac_exec_ext in '' $ac_executable_extensions; do
  1800. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1801. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1802. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1803. break 2
  1804. fi
  1805. done
  1806. done
  1807. fi
  1808. fi
  1809. CC=$ac_cv_prog_CC
  1810. if test -n "$CC"; then
  1811. echo "$as_me:$LINENO: result: $CC" >&5
  1812. echo "${ECHO_T}$CC" >&6
  1813. else
  1814. echo "$as_me:$LINENO: result: no" >&5
  1815. echo "${ECHO_T}no" >&6
  1816. fi
  1817. test -n "$CC" && break
  1818. done
  1819. fi
  1820. if test -z "$CC"; then
  1821. ac_ct_CC=$CC
  1822. for ac_prog in cl
  1823. do
  1824. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1825. set dummy $ac_prog; ac_word=$2
  1826. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1827. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1828. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1829. echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. else
  1831. if test -n "$ac_ct_CC"; then
  1832. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1833. else
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. for as_dir in $PATH
  1836. do
  1837. IFS=$as_save_IFS
  1838. test -z "$as_dir" && as_dir=.
  1839. for ac_exec_ext in '' $ac_executable_extensions; do
  1840. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1841. ac_cv_prog_ac_ct_CC="$ac_prog"
  1842. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1843. break 2
  1844. fi
  1845. done
  1846. done
  1847. fi
  1848. fi
  1849. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1850. if test -n "$ac_ct_CC"; then
  1851. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1852. echo "${ECHO_T}$ac_ct_CC" >&6
  1853. else
  1854. echo "$as_me:$LINENO: result: no" >&5
  1855. echo "${ECHO_T}no" >&6
  1856. fi
  1857. test -n "$ac_ct_CC" && break
  1858. done
  1859. CC=$ac_ct_CC
  1860. fi
  1861. fi
  1862. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1863. See \`config.log' for more details." >&5
  1864. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1865. See \`config.log' for more details." >&2;}
  1866. { (exit 1); exit 1; }; }
  1867. # Provide some information about the compiler.
  1868. echo "$as_me:$LINENO:" \
  1869. "checking for C compiler version" >&5
  1870. ac_compiler=`set X $ac_compile; echo $2`
  1871. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1872. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1873. ac_status=$?
  1874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1875. (exit $ac_status); }
  1876. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1877. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1878. ac_status=$?
  1879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1880. (exit $ac_status); }
  1881. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1882. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1883. ac_status=$?
  1884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1885. (exit $ac_status); }
  1886. cat >conftest.$ac_ext <<_ACEOF
  1887. /* confdefs.h. */
  1888. _ACEOF
  1889. cat confdefs.h >>conftest.$ac_ext
  1890. cat >>conftest.$ac_ext <<_ACEOF
  1891. /* end confdefs.h. */
  1892. int
  1893. main ()
  1894. {
  1895. ;
  1896. return 0;
  1897. }
  1898. _ACEOF
  1899. ac_clean_files_save=$ac_clean_files
  1900. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1901. # Try to create an executable without -o first, disregard a.out.
  1902. # It will help us diagnose broken compilers, and finding out an intuition
  1903. # of exeext.
  1904. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1905. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1906. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1907. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1908. (eval $ac_link_default) 2>&5
  1909. ac_status=$?
  1910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1911. (exit $ac_status); }; then
  1912. # Find the output, starting from the most likely. This scheme is
  1913. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1914. # resort.
  1915. # Be careful to initialize this variable, since it used to be cached.
  1916. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1917. ac_cv_exeext=
  1918. # b.out is created by i960 compilers.
  1919. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1920. do
  1921. test -f "$ac_file" || continue
  1922. case $ac_file in
  1923. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1924. ;;
  1925. conftest.$ac_ext )
  1926. # This is the source file.
  1927. ;;
  1928. [ab].out )
  1929. # We found the default executable, but exeext='' is most
  1930. # certainly right.
  1931. break;;
  1932. *.* )
  1933. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1934. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1935. # but it would be cool to find out if it's true. Does anybody
  1936. # maintain Libtool? --akim.
  1937. export ac_cv_exeext
  1938. break;;
  1939. * )
  1940. break;;
  1941. esac
  1942. done
  1943. else
  1944. echo "$as_me: failed program was:" >&5
  1945. sed 's/^/| /' conftest.$ac_ext >&5
  1946. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1947. See \`config.log' for more details." >&5
  1948. echo "$as_me: error: C compiler cannot create executables
  1949. See \`config.log' for more details." >&2;}
  1950. { (exit 77); exit 77; }; }
  1951. fi
  1952. ac_exeext=$ac_cv_exeext
  1953. echo "$as_me:$LINENO: result: $ac_file" >&5
  1954. echo "${ECHO_T}$ac_file" >&6
  1955. # Check the compiler produces executables we can run. If not, either
  1956. # the compiler is broken, or we cross compile.
  1957. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1958. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1959. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1960. # If not cross compiling, check that we can run a simple program.
  1961. if test "$cross_compiling" != yes; then
  1962. if { ac_try='./$ac_file'
  1963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1964. (eval $ac_try) 2>&5
  1965. ac_status=$?
  1966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1967. (exit $ac_status); }; }; then
  1968. cross_compiling=no
  1969. else
  1970. if test "$cross_compiling" = maybe; then
  1971. cross_compiling=yes
  1972. else
  1973. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1974. If you meant to cross compile, use \`--host'.
  1975. See \`config.log' for more details." >&5
  1976. echo "$as_me: error: cannot run C compiled programs.
  1977. If you meant to cross compile, use \`--host'.
  1978. See \`config.log' for more details." >&2;}
  1979. { (exit 1); exit 1; }; }
  1980. fi
  1981. fi
  1982. fi
  1983. echo "$as_me:$LINENO: result: yes" >&5
  1984. echo "${ECHO_T}yes" >&6
  1985. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1986. ac_clean_files=$ac_clean_files_save
  1987. # Check the compiler produces executables we can run. If not, either
  1988. # the compiler is broken, or we cross compile.
  1989. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1990. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1991. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1992. echo "${ECHO_T}$cross_compiling" >&6
  1993. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1994. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1996. (eval $ac_link) 2>&5
  1997. ac_status=$?
  1998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1999. (exit $ac_status); }; then
  2000. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2001. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2002. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2003. # `rm'.
  2004. for ac_file in conftest.exe conftest conftest.*; do
  2005. test -f "$ac_file" || continue
  2006. case $ac_file in
  2007. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2008. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2009. export ac_cv_exeext
  2010. break;;
  2011. * ) break;;
  2012. esac
  2013. done
  2014. else
  2015. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2016. See \`config.log' for more details." >&5
  2017. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2018. See \`config.log' for more details." >&2;}
  2019. { (exit 1); exit 1; }; }
  2020. fi
  2021. rm -f conftest$ac_cv_exeext
  2022. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2023. echo "${ECHO_T}$ac_cv_exeext" >&6
  2024. rm -f conftest.$ac_ext
  2025. EXEEXT=$ac_cv_exeext
  2026. ac_exeext=$EXEEXT
  2027. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2028. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2029. if test "${ac_cv_objext+set}" = set; then
  2030. echo $ECHO_N "(cached) $ECHO_C" >&6
  2031. else
  2032. cat >conftest.$ac_ext <<_ACEOF
  2033. /* confdefs.h. */
  2034. _ACEOF
  2035. cat confdefs.h >>conftest.$ac_ext
  2036. cat >>conftest.$ac_ext <<_ACEOF
  2037. /* end confdefs.h. */
  2038. int
  2039. main ()
  2040. {
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. rm -f conftest.o conftest.obj
  2046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2047. (eval $ac_compile) 2>&5
  2048. ac_status=$?
  2049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2050. (exit $ac_status); }; then
  2051. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2052. case $ac_file in
  2053. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2054. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2055. break;;
  2056. esac
  2057. done
  2058. else
  2059. echo "$as_me: failed program was:" >&5
  2060. sed 's/^/| /' conftest.$ac_ext >&5
  2061. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2062. See \`config.log' for more details." >&5
  2063. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2064. See \`config.log' for more details." >&2;}
  2065. { (exit 1); exit 1; }; }
  2066. fi
  2067. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2068. fi
  2069. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2070. echo "${ECHO_T}$ac_cv_objext" >&6
  2071. OBJEXT=$ac_cv_objext
  2072. ac_objext=$OBJEXT
  2073. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2074. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2075. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2076. echo $ECHO_N "(cached) $ECHO_C" >&6
  2077. else
  2078. cat >conftest.$ac_ext <<_ACEOF
  2079. /* confdefs.h. */
  2080. _ACEOF
  2081. cat confdefs.h >>conftest.$ac_ext
  2082. cat >>conftest.$ac_ext <<_ACEOF
  2083. /* end confdefs.h. */
  2084. int
  2085. main ()
  2086. {
  2087. #ifndef __GNUC__
  2088. choke me
  2089. #endif
  2090. ;
  2091. return 0;
  2092. }
  2093. _ACEOF
  2094. rm -f conftest.$ac_objext
  2095. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2096. (eval $ac_compile) 2>conftest.er1
  2097. ac_status=$?
  2098. grep -v '^ *+' conftest.er1 >conftest.err
  2099. rm -f conftest.er1
  2100. cat conftest.err >&5
  2101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2102. (exit $ac_status); } &&
  2103. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2105. (eval $ac_try) 2>&5
  2106. ac_status=$?
  2107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2108. (exit $ac_status); }; } &&
  2109. { ac_try='test -s conftest.$ac_objext'
  2110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2111. (eval $ac_try) 2>&5
  2112. ac_status=$?
  2113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114. (exit $ac_status); }; }; then
  2115. ac_compiler_gnu=yes
  2116. else
  2117. echo "$as_me: failed program was:" >&5
  2118. sed 's/^/| /' conftest.$ac_ext >&5
  2119. ac_compiler_gnu=no
  2120. fi
  2121. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2123. fi
  2124. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2125. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2126. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2127. ac_test_CFLAGS=${CFLAGS+set}
  2128. ac_save_CFLAGS=$CFLAGS
  2129. CFLAGS="-g"
  2130. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2131. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2132. if test "${ac_cv_prog_cc_g+set}" = set; then
  2133. echo $ECHO_N "(cached) $ECHO_C" >&6
  2134. else
  2135. cat >conftest.$ac_ext <<_ACEOF
  2136. /* confdefs.h. */
  2137. _ACEOF
  2138. cat confdefs.h >>conftest.$ac_ext
  2139. cat >>conftest.$ac_ext <<_ACEOF
  2140. /* end confdefs.h. */
  2141. int
  2142. main ()
  2143. {
  2144. ;
  2145. return 0;
  2146. }
  2147. _ACEOF
  2148. rm -f conftest.$ac_objext
  2149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2150. (eval $ac_compile) 2>conftest.er1
  2151. ac_status=$?
  2152. grep -v '^ *+' conftest.er1 >conftest.err
  2153. rm -f conftest.er1
  2154. cat conftest.err >&5
  2155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2156. (exit $ac_status); } &&
  2157. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2159. (eval $ac_try) 2>&5
  2160. ac_status=$?
  2161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2162. (exit $ac_status); }; } &&
  2163. { ac_try='test -s conftest.$ac_objext'
  2164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2165. (eval $ac_try) 2>&5
  2166. ac_status=$?
  2167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2168. (exit $ac_status); }; }; then
  2169. ac_cv_prog_cc_g=yes
  2170. else
  2171. echo "$as_me: failed program was:" >&5
  2172. sed 's/^/| /' conftest.$ac_ext >&5
  2173. ac_cv_prog_cc_g=no
  2174. fi
  2175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2176. fi
  2177. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2178. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2179. if test "$ac_test_CFLAGS" = set; then
  2180. CFLAGS=$ac_save_CFLAGS
  2181. elif test $ac_cv_prog_cc_g = yes; then
  2182. if test "$GCC" = yes; then
  2183. CFLAGS="-g -O2"
  2184. else
  2185. CFLAGS="-g"
  2186. fi
  2187. else
  2188. if test "$GCC" = yes; then
  2189. CFLAGS="-O2"
  2190. else
  2191. CFLAGS=
  2192. fi
  2193. fi
  2194. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2195. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2196. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2197. echo $ECHO_N "(cached) $ECHO_C" >&6
  2198. else
  2199. ac_cv_prog_cc_stdc=no
  2200. ac_save_CC=$CC
  2201. cat >conftest.$ac_ext <<_ACEOF
  2202. /* confdefs.h. */
  2203. _ACEOF
  2204. cat confdefs.h >>conftest.$ac_ext
  2205. cat >>conftest.$ac_ext <<_ACEOF
  2206. /* end confdefs.h. */
  2207. #include <stdarg.h>
  2208. #include <stdio.h>
  2209. #include <sys/types.h>
  2210. #include <sys/stat.h>
  2211. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2212. struct buf { int x; };
  2213. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2214. static char *e (p, i)
  2215. char **p;
  2216. int i;
  2217. {
  2218. return p[i];
  2219. }
  2220. static char *f (char * (*g) (char **, int), char **p, ...)
  2221. {
  2222. char *s;
  2223. va_list v;
  2224. va_start (v,p);
  2225. s = g (p, va_arg (v,int));
  2226. va_end (v);
  2227. return s;
  2228. }
  2229. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2230. function prototypes and stuff, but not '\xHH' hex character constants.
  2231. These don't provoke an error unfortunately, instead are silently treated
  2232. as 'x'. The following induces an error, until -std1 is added to get
  2233. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2234. array size at least. It's necessary to write '\x00'==0 to get something
  2235. that's true only with -std1. */
  2236. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2237. int test (int i, double x);
  2238. struct s1 {int (*f) (int a);};
  2239. struct s2 {int (*f) (double a);};
  2240. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2241. int argc;
  2242. char **argv;
  2243. int
  2244. main ()
  2245. {
  2246. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. # Don't try gcc -ansi; that turns off useful extensions and
  2252. # breaks some systems' header files.
  2253. # AIX -qlanglvl=ansi
  2254. # Ultrix and OSF/1 -std1
  2255. # HP-UX 10.20 and later -Ae
  2256. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2257. # SVR4 -Xc -D__EXTENSIONS__
  2258. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2259. do
  2260. CC="$ac_save_CC $ac_arg"
  2261. rm -f conftest.$ac_objext
  2262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2263. (eval $ac_compile) 2>conftest.er1
  2264. ac_status=$?
  2265. grep -v '^ *+' conftest.er1 >conftest.err
  2266. rm -f conftest.er1
  2267. cat conftest.err >&5
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); } &&
  2270. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2272. (eval $ac_try) 2>&5
  2273. ac_status=$?
  2274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2275. (exit $ac_status); }; } &&
  2276. { ac_try='test -s conftest.$ac_objext'
  2277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2278. (eval $ac_try) 2>&5
  2279. ac_status=$?
  2280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281. (exit $ac_status); }; }; then
  2282. ac_cv_prog_cc_stdc=$ac_arg
  2283. break
  2284. else
  2285. echo "$as_me: failed program was:" >&5
  2286. sed 's/^/| /' conftest.$ac_ext >&5
  2287. fi
  2288. rm -f conftest.err conftest.$ac_objext
  2289. done
  2290. rm -f conftest.$ac_ext conftest.$ac_objext
  2291. CC=$ac_save_CC
  2292. fi
  2293. case "x$ac_cv_prog_cc_stdc" in
  2294. x|xno)
  2295. echo "$as_me:$LINENO: result: none needed" >&5
  2296. echo "${ECHO_T}none needed" >&6 ;;
  2297. *)
  2298. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2299. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2300. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2301. esac
  2302. # Some people use a C++ compiler to compile C. Since we use `exit',
  2303. # in C++ we need to declare it. In case someone uses the same compiler
  2304. # for both compiling C and C++ we need to have the C++ compiler decide
  2305. # the declaration of exit, since it's the most demanding environment.
  2306. cat >conftest.$ac_ext <<_ACEOF
  2307. #ifndef __cplusplus
  2308. choke me
  2309. #endif
  2310. _ACEOF
  2311. rm -f conftest.$ac_objext
  2312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2313. (eval $ac_compile) 2>conftest.er1
  2314. ac_status=$?
  2315. grep -v '^ *+' conftest.er1 >conftest.err
  2316. rm -f conftest.er1
  2317. cat conftest.err >&5
  2318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2319. (exit $ac_status); } &&
  2320. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2322. (eval $ac_try) 2>&5
  2323. ac_status=$?
  2324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2325. (exit $ac_status); }; } &&
  2326. { ac_try='test -s conftest.$ac_objext'
  2327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2328. (eval $ac_try) 2>&5
  2329. ac_status=$?
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); }; }; then
  2332. for ac_declaration in \
  2333. '' \
  2334. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2335. 'extern "C" void std::exit (int); using std::exit;' \
  2336. 'extern "C" void exit (int) throw ();' \
  2337. 'extern "C" void exit (int);' \
  2338. 'void exit (int);'
  2339. do
  2340. cat >conftest.$ac_ext <<_ACEOF
  2341. /* confdefs.h. */
  2342. _ACEOF
  2343. cat confdefs.h >>conftest.$ac_ext
  2344. cat >>conftest.$ac_ext <<_ACEOF
  2345. /* end confdefs.h. */
  2346. $ac_declaration
  2347. #include <stdlib.h>
  2348. int
  2349. main ()
  2350. {
  2351. exit (42);
  2352. ;
  2353. return 0;
  2354. }
  2355. _ACEOF
  2356. rm -f conftest.$ac_objext
  2357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2358. (eval $ac_compile) 2>conftest.er1
  2359. ac_status=$?
  2360. grep -v '^ *+' conftest.er1 >conftest.err
  2361. rm -f conftest.er1
  2362. cat conftest.err >&5
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); } &&
  2365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2367. (eval $ac_try) 2>&5
  2368. ac_status=$?
  2369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2370. (exit $ac_status); }; } &&
  2371. { ac_try='test -s conftest.$ac_objext'
  2372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2373. (eval $ac_try) 2>&5
  2374. ac_status=$?
  2375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376. (exit $ac_status); }; }; then
  2377. :
  2378. else
  2379. echo "$as_me: failed program was:" >&5
  2380. sed 's/^/| /' conftest.$ac_ext >&5
  2381. continue
  2382. fi
  2383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2384. cat >conftest.$ac_ext <<_ACEOF
  2385. /* confdefs.h. */
  2386. _ACEOF
  2387. cat confdefs.h >>conftest.$ac_ext
  2388. cat >>conftest.$ac_ext <<_ACEOF
  2389. /* end confdefs.h. */
  2390. $ac_declaration
  2391. int
  2392. main ()
  2393. {
  2394. exit (42);
  2395. ;
  2396. return 0;
  2397. }
  2398. _ACEOF
  2399. rm -f conftest.$ac_objext
  2400. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2401. (eval $ac_compile) 2>conftest.er1
  2402. ac_status=$?
  2403. grep -v '^ *+' conftest.er1 >conftest.err
  2404. rm -f conftest.er1
  2405. cat conftest.err >&5
  2406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2407. (exit $ac_status); } &&
  2408. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2410. (eval $ac_try) 2>&5
  2411. ac_status=$?
  2412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2413. (exit $ac_status); }; } &&
  2414. { ac_try='test -s conftest.$ac_objext'
  2415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2416. (eval $ac_try) 2>&5
  2417. ac_status=$?
  2418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2419. (exit $ac_status); }; }; then
  2420. break
  2421. else
  2422. echo "$as_me: failed program was:" >&5
  2423. sed 's/^/| /' conftest.$ac_ext >&5
  2424. fi
  2425. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2426. done
  2427. rm -f conftest*
  2428. if test -n "$ac_declaration"; then
  2429. echo '#ifdef __cplusplus' >>confdefs.h
  2430. echo $ac_declaration >>confdefs.h
  2431. echo '#endif' >>confdefs.h
  2432. fi
  2433. else
  2434. echo "$as_me: failed program was:" >&5
  2435. sed 's/^/| /' conftest.$ac_ext >&5
  2436. fi
  2437. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2438. ac_ext=c
  2439. ac_cpp='$CPP $CPPFLAGS'
  2440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2443. DEPDIR="${am__leading_dot}deps"
  2444. ac_config_commands="$ac_config_commands depfiles"
  2445. am_make=${MAKE-make}
  2446. cat > confinc << 'END'
  2447. am__doit:
  2448. @echo done
  2449. .PHONY: am__doit
  2450. END
  2451. # If we don't find an include directive, just comment out the code.
  2452. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2453. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2454. am__include="#"
  2455. am__quote=
  2456. _am_result=none
  2457. # First try GNU make style include.
  2458. echo "include confinc" > confmf
  2459. # We grep out `Entering directory' and `Leaving directory'
  2460. # messages which can occur if `w' ends up in MAKEFLAGS.
  2461. # In particular we don't look at `^make:' because GNU make might
  2462. # be invoked under some other name (usually "gmake"), in which
  2463. # case it prints its new name instead of `make'.
  2464. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2465. am__include=include
  2466. am__quote=
  2467. _am_result=GNU
  2468. fi
  2469. # Now try BSD make style include.
  2470. if test "$am__include" = "#"; then
  2471. echo '.include "confinc"' > confmf
  2472. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2473. am__include=.include
  2474. am__quote="\""
  2475. _am_result=BSD
  2476. fi
  2477. fi
  2478. echo "$as_me:$LINENO: result: $_am_result" >&5
  2479. echo "${ECHO_T}$_am_result" >&6
  2480. rm -f confinc confmf
  2481. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2482. if test "${enable_dependency_tracking+set}" = set; then
  2483. enableval="$enable_dependency_tracking"
  2484. fi;
  2485. if test "x$enable_dependency_tracking" != xno; then
  2486. am_depcomp="$ac_aux_dir/depcomp"
  2487. AMDEPBACKSLASH='\'
  2488. fi
  2489. if test "x$enable_dependency_tracking" != xno; then
  2490. AMDEP_TRUE=
  2491. AMDEP_FALSE='#'
  2492. else
  2493. AMDEP_TRUE='#'
  2494. AMDEP_FALSE=
  2495. fi
  2496. depcc="$CC" am_compiler_list=
  2497. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2498. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2499. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2500. echo $ECHO_N "(cached) $ECHO_C" >&6
  2501. else
  2502. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2503. # We make a subdir and do the tests there. Otherwise we can end up
  2504. # making bogus files that we don't know about and never remove. For
  2505. # instance it was reported that on HP-UX the gcc test will end up
  2506. # making a dummy file named `D' -- because `-MD' means `put the output
  2507. # in D'.
  2508. mkdir conftest.dir
  2509. # Copy depcomp to subdir because otherwise we won't find it if we're
  2510. # using a relative directory.
  2511. cp "$am_depcomp" conftest.dir
  2512. cd conftest.dir
  2513. # We will build objects and dependencies in a subdirectory because
  2514. # it helps to detect inapplicable dependency modes. For instance
  2515. # both Tru64's cc and ICC support -MD to output dependencies as a
  2516. # side effect of compilation, but ICC will put the dependencies in
  2517. # the current directory while Tru64 will put them in the object
  2518. # directory.
  2519. mkdir sub
  2520. am_cv_CC_dependencies_compiler_type=none
  2521. if test "$am_compiler_list" = ""; then
  2522. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2523. fi
  2524. for depmode in $am_compiler_list; do
  2525. # Setup a source with many dependencies, because some compilers
  2526. # like to wrap large dependency lists on column 80 (with \), and
  2527. # we should not choose a depcomp mode which is confused by this.
  2528. #
  2529. # We need to recreate these files for each test, as the compiler may
  2530. # overwrite some of them when testing with obscure command lines.
  2531. # This happens at least with the AIX C compiler.
  2532. : > sub/conftest.c
  2533. for i in 1 2 3 4 5 6; do
  2534. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2535. : > sub/conftst$i.h
  2536. done
  2537. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2538. case $depmode in
  2539. nosideeffect)
  2540. # after this tag, mechanisms are not by side-effect, so they'll
  2541. # only be used when explicitly requested
  2542. if test "x$enable_dependency_tracking" = xyes; then
  2543. continue
  2544. else
  2545. break
  2546. fi
  2547. ;;
  2548. none) break ;;
  2549. esac
  2550. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2551. # mode. It turns out that the SunPro C++ compiler does not properly
  2552. # handle `-M -o', and we need to detect this.
  2553. if depmode=$depmode \
  2554. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2555. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2556. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2557. >/dev/null 2>conftest.err &&
  2558. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2559. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2560. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2561. # icc doesn't choke on unknown options, it will just issue warnings
  2562. # (even with -Werror). So we grep stderr for any message
  2563. # that says an option was ignored.
  2564. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2565. am_cv_CC_dependencies_compiler_type=$depmode
  2566. break
  2567. fi
  2568. fi
  2569. done
  2570. cd ..
  2571. rm -rf conftest.dir
  2572. else
  2573. am_cv_CC_dependencies_compiler_type=none
  2574. fi
  2575. fi
  2576. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2577. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2578. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2579. if
  2580. test "x$enable_dependency_tracking" != xno \
  2581. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2582. am__fastdepCC_TRUE=
  2583. am__fastdepCC_FALSE='#'
  2584. else
  2585. am__fastdepCC_TRUE='#'
  2586. am__fastdepCC_FALSE=
  2587. fi
  2588. # -- Helper programs --
  2589. for ac_prog in gawk mawk nawk awk
  2590. do
  2591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2592. set dummy $ac_prog; ac_word=$2
  2593. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2594. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2595. if test "${ac_cv_prog_AWK+set}" = set; then
  2596. echo $ECHO_N "(cached) $ECHO_C" >&6
  2597. else
  2598. if test -n "$AWK"; then
  2599. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2608. ac_cv_prog_AWK="$ac_prog"
  2609. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. fi
  2615. fi
  2616. AWK=$ac_cv_prog_AWK
  2617. if test -n "$AWK"; then
  2618. echo "$as_me:$LINENO: result: $AWK" >&5
  2619. echo "${ECHO_T}$AWK" >&6
  2620. else
  2621. echo "$as_me:$LINENO: result: no" >&5
  2622. echo "${ECHO_T}no" >&6
  2623. fi
  2624. test -n "$AWK" && break
  2625. done
  2626. # Find a good install program. We prefer a C program (faster),
  2627. # so one script is as good as another. But avoid the broken or
  2628. # incompatible versions:
  2629. # SysV /etc/install, /usr/sbin/install
  2630. # SunOS /usr/etc/install
  2631. # IRIX /sbin/install
  2632. # AIX /bin/install
  2633. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2634. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2635. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2636. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2637. # OS/2's system install, which has a completely different semantic
  2638. # ./install, which can be erroneously created by make from ./install.sh.
  2639. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2640. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2641. if test -z "$INSTALL"; then
  2642. if test "${ac_cv_path_install+set}" = set; then
  2643. echo $ECHO_N "(cached) $ECHO_C" >&6
  2644. else
  2645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2646. for as_dir in $PATH
  2647. do
  2648. IFS=$as_save_IFS
  2649. test -z "$as_dir" && as_dir=.
  2650. # Account for people who put trailing slashes in PATH elements.
  2651. case $as_dir/ in
  2652. ./ | .// | /cC/* | \
  2653. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2654. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2655. /usr/ucb/* ) ;;
  2656. *)
  2657. # OSF1 and SCO ODT 3.0 have their own names for install.
  2658. # Don't use installbsd from OSF since it installs stuff as root
  2659. # by default.
  2660. for ac_prog in ginstall scoinst install; do
  2661. for ac_exec_ext in '' $ac_executable_extensions; do
  2662. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2663. if test $ac_prog = install &&
  2664. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2665. # AIX install. It has an incompatible calling convention.
  2666. :
  2667. elif test $ac_prog = install &&
  2668. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2669. # program-specific install script used by HP pwplus--don't use.
  2670. :
  2671. else
  2672. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2673. break 3
  2674. fi
  2675. fi
  2676. done
  2677. done
  2678. ;;
  2679. esac
  2680. done
  2681. fi
  2682. if test "${ac_cv_path_install+set}" = set; then
  2683. INSTALL=$ac_cv_path_install
  2684. else
  2685. # As a last resort, use the slow shell script. We don't cache a
  2686. # path for INSTALL within a source directory, because that will
  2687. # break other packages using the cache if that directory is
  2688. # removed, or if the path is relative.
  2689. INSTALL=$ac_install_sh
  2690. fi
  2691. fi
  2692. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2693. echo "${ECHO_T}$INSTALL" >&6
  2694. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2695. # It thinks the first close brace ends the variable substitution.
  2696. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2697. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2698. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2699. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2700. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2701. LN_S=$as_ln_s
  2702. if test "$LN_S" = "ln -s"; then
  2703. echo "$as_me:$LINENO: result: yes" >&5
  2704. echo "${ECHO_T}yes" >&6
  2705. else
  2706. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2707. echo "${ECHO_T}no, using $LN_S" >&6
  2708. fi
  2709. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2710. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2711. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2712. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2713. echo $ECHO_N "(cached) $ECHO_C" >&6
  2714. else
  2715. cat >conftest.make <<\_ACEOF
  2716. all:
  2717. @echo 'ac_maketemp="$(MAKE)"'
  2718. _ACEOF
  2719. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2720. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2721. if test -n "$ac_maketemp"; then
  2722. eval ac_cv_prog_make_${ac_make}_set=yes
  2723. else
  2724. eval ac_cv_prog_make_${ac_make}_set=no
  2725. fi
  2726. rm -f conftest.make
  2727. fi
  2728. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2729. echo "$as_me:$LINENO: result: yes" >&5
  2730. echo "${ECHO_T}yes" >&6
  2731. SET_MAKE=
  2732. else
  2733. echo "$as_me:$LINENO: result: no" >&5
  2734. echo "${ECHO_T}no" >&6
  2735. SET_MAKE="MAKE=${MAKE-make}"
  2736. fi
  2737. if test -n "$ac_tool_prefix"; then
  2738. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2739. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2740. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2742. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. if test -n "$RANLIB"; then
  2746. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2747. else
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2755. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2756. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. fi
  2762. fi
  2763. RANLIB=$ac_cv_prog_RANLIB
  2764. if test -n "$RANLIB"; then
  2765. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2766. echo "${ECHO_T}$RANLIB" >&6
  2767. else
  2768. echo "$as_me:$LINENO: result: no" >&5
  2769. echo "${ECHO_T}no" >&6
  2770. fi
  2771. fi
  2772. if test -z "$ac_cv_prog_RANLIB"; then
  2773. ac_ct_RANLIB=$RANLIB
  2774. # Extract the first word of "ranlib", so it can be a program name with args.
  2775. set dummy ranlib; ac_word=$2
  2776. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2777. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2778. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2779. echo $ECHO_N "(cached) $ECHO_C" >&6
  2780. else
  2781. if test -n "$ac_ct_RANLIB"; then
  2782. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2792. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2798. fi
  2799. fi
  2800. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2801. if test -n "$ac_ct_RANLIB"; then
  2802. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2803. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2804. else
  2805. echo "$as_me:$LINENO: result: no" >&5
  2806. echo "${ECHO_T}no" >&6
  2807. fi
  2808. RANLIB=$ac_ct_RANLIB
  2809. else
  2810. RANLIB="$ac_cv_prog_RANLIB"
  2811. fi
  2812. # -- Compiler Features --
  2813. echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  2814. echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  2815. if test "${am_cv_prog_cc_stdc+set}" = set; then
  2816. echo $ECHO_N "(cached) $ECHO_C" >&6
  2817. else
  2818. am_cv_prog_cc_stdc=no
  2819. ac_save_CC="$CC"
  2820. # Don't try gcc -ansi; that turns off useful extensions and
  2821. # breaks some systems' header files.
  2822. # AIX -qlanglvl=ansi
  2823. # Ultrix and OSF/1 -std1
  2824. # HP-UX 10.20 and later -Ae
  2825. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2826. # SVR4 -Xc -D__EXTENSIONS__
  2827. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2828. do
  2829. CC="$ac_save_CC $ac_arg"
  2830. cat >conftest.$ac_ext <<_ACEOF
  2831. /* confdefs.h. */
  2832. _ACEOF
  2833. cat confdefs.h >>conftest.$ac_ext
  2834. cat >>conftest.$ac_ext <<_ACEOF
  2835. /* end confdefs.h. */
  2836. #include <stdarg.h>
  2837. #include <stdio.h>
  2838. #include <sys/types.h>
  2839. #include <sys/stat.h>
  2840. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2841. struct buf { int x; };
  2842. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2843. static char *e (p, i)
  2844. char **p;
  2845. int i;
  2846. {
  2847. return p[i];
  2848. }
  2849. static char *f (char * (*g) (char **, int), char **p, ...)
  2850. {
  2851. char *s;
  2852. va_list v;
  2853. va_start (v,p);
  2854. s = g (p, va_arg (v,int));
  2855. va_end (v);
  2856. return s;
  2857. }
  2858. int test (int i, double x);
  2859. struct s1 {int (*f) (int a);};
  2860. struct s2 {int (*f) (double a);};
  2861. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2862. int argc;
  2863. char **argv;
  2864. int
  2865. main ()
  2866. {
  2867. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2868. ;
  2869. return 0;
  2870. }
  2871. _ACEOF
  2872. rm -f conftest.$ac_objext
  2873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2874. (eval $ac_compile) 2>conftest.er1
  2875. ac_status=$?
  2876. grep -v '^ *+' conftest.er1 >conftest.err
  2877. rm -f conftest.er1
  2878. cat conftest.err >&5
  2879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2880. (exit $ac_status); } &&
  2881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2883. (eval $ac_try) 2>&5
  2884. ac_status=$?
  2885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2886. (exit $ac_status); }; } &&
  2887. { ac_try='test -s conftest.$ac_objext'
  2888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2889. (eval $ac_try) 2>&5
  2890. ac_status=$?
  2891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892. (exit $ac_status); }; }; then
  2893. am_cv_prog_cc_stdc="$ac_arg"; break
  2894. else
  2895. echo "$as_me: failed program was:" >&5
  2896. sed 's/^/| /' conftest.$ac_ext >&5
  2897. fi
  2898. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2899. done
  2900. CC="$ac_save_CC"
  2901. fi
  2902. if test -z "$am_cv_prog_cc_stdc"; then
  2903. echo "$as_me:$LINENO: result: none needed" >&5
  2904. echo "${ECHO_T}none needed" >&6
  2905. else
  2906. echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  2907. echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
  2908. fi
  2909. case "x$am_cv_prog_cc_stdc" in
  2910. x|xno) ;;
  2911. *) CC="$CC $am_cv_prog_cc_stdc" ;;
  2912. esac
  2913. ac_ext=c
  2914. ac_cpp='$CPP $CPPFLAGS'
  2915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2918. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2919. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2920. # On Suns, sometimes $CPP names a directory.
  2921. if test -n "$CPP" && test -d "$CPP"; then
  2922. CPP=
  2923. fi
  2924. if test -z "$CPP"; then
  2925. if test "${ac_cv_prog_CPP+set}" = set; then
  2926. echo $ECHO_N "(cached) $ECHO_C" >&6
  2927. else
  2928. # Double quotes because CPP needs to be expanded
  2929. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2930. do
  2931. ac_preproc_ok=false
  2932. for ac_c_preproc_warn_flag in '' yes
  2933. do
  2934. # Use a header file that comes with gcc, so configuring glibc
  2935. # with a fresh cross-compiler works.
  2936. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2937. # <limits.h> exists even on freestanding compilers.
  2938. # On the NeXT, cc -E runs the code through the compiler's parser,
  2939. # not just through cpp. "Syntax error" is here to catch this case.
  2940. cat >conftest.$ac_ext <<_ACEOF
  2941. /* confdefs.h. */
  2942. _ACEOF
  2943. cat confdefs.h >>conftest.$ac_ext
  2944. cat >>conftest.$ac_ext <<_ACEOF
  2945. /* end confdefs.h. */
  2946. #ifdef __STDC__
  2947. # include <limits.h>
  2948. #else
  2949. # include <assert.h>
  2950. #endif
  2951. Syntax error
  2952. _ACEOF
  2953. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2954. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2955. ac_status=$?
  2956. grep -v '^ *+' conftest.er1 >conftest.err
  2957. rm -f conftest.er1
  2958. cat conftest.err >&5
  2959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2960. (exit $ac_status); } >/dev/null; then
  2961. if test -s conftest.err; then
  2962. ac_cpp_err=$ac_c_preproc_warn_flag
  2963. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2964. else
  2965. ac_cpp_err=
  2966. fi
  2967. else
  2968. ac_cpp_err=yes
  2969. fi
  2970. if test -z "$ac_cpp_err"; then
  2971. :
  2972. else
  2973. echo "$as_me: failed program was:" >&5
  2974. sed 's/^/| /' conftest.$ac_ext >&5
  2975. # Broken: fails on valid input.
  2976. continue
  2977. fi
  2978. rm -f conftest.err conftest.$ac_ext
  2979. # OK, works on sane cases. Now check whether non-existent headers
  2980. # can be detected and how.
  2981. cat >conftest.$ac_ext <<_ACEOF
  2982. /* confdefs.h. */
  2983. _ACEOF
  2984. cat confdefs.h >>conftest.$ac_ext
  2985. cat >>conftest.$ac_ext <<_ACEOF
  2986. /* end confdefs.h. */
  2987. #include <ac_nonexistent.h>
  2988. _ACEOF
  2989. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2990. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2991. ac_status=$?
  2992. grep -v '^ *+' conftest.er1 >conftest.err
  2993. rm -f conftest.er1
  2994. cat conftest.err >&5
  2995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); } >/dev/null; then
  2997. if test -s conftest.err; then
  2998. ac_cpp_err=$ac_c_preproc_warn_flag
  2999. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3000. else
  3001. ac_cpp_err=
  3002. fi
  3003. else
  3004. ac_cpp_err=yes
  3005. fi
  3006. if test -z "$ac_cpp_err"; then
  3007. # Broken: success on invalid input.
  3008. continue
  3009. else
  3010. echo "$as_me: failed program was:" >&5
  3011. sed 's/^/| /' conftest.$ac_ext >&5
  3012. # Passes both tests.
  3013. ac_preproc_ok=:
  3014. break
  3015. fi
  3016. rm -f conftest.err conftest.$ac_ext
  3017. done
  3018. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3019. rm -f conftest.err conftest.$ac_ext
  3020. if $ac_preproc_ok; then
  3021. break
  3022. fi
  3023. done
  3024. ac_cv_prog_CPP=$CPP
  3025. fi
  3026. CPP=$ac_cv_prog_CPP
  3027. else
  3028. ac_cv_prog_CPP=$CPP
  3029. fi
  3030. echo "$as_me:$LINENO: result: $CPP" >&5
  3031. echo "${ECHO_T}$CPP" >&6
  3032. ac_preproc_ok=false
  3033. for ac_c_preproc_warn_flag in '' yes
  3034. do
  3035. # Use a header file that comes with gcc, so configuring glibc
  3036. # with a fresh cross-compiler works.
  3037. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3038. # <limits.h> exists even on freestanding compilers.
  3039. # On the NeXT, cc -E runs the code through the compiler's parser,
  3040. # not just through cpp. "Syntax error" is here to catch this case.
  3041. cat >conftest.$ac_ext <<_ACEOF
  3042. /* confdefs.h. */
  3043. _ACEOF
  3044. cat confdefs.h >>conftest.$ac_ext
  3045. cat >>conftest.$ac_ext <<_ACEOF
  3046. /* end confdefs.h. */
  3047. #ifdef __STDC__
  3048. # include <limits.h>
  3049. #else
  3050. # include <assert.h>
  3051. #endif
  3052. Syntax error
  3053. _ACEOF
  3054. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3055. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3056. ac_status=$?
  3057. grep -v '^ *+' conftest.er1 >conftest.err
  3058. rm -f conftest.er1
  3059. cat conftest.err >&5
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); } >/dev/null; then
  3062. if test -s conftest.err; then
  3063. ac_cpp_err=$ac_c_preproc_warn_flag
  3064. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3065. else
  3066. ac_cpp_err=
  3067. fi
  3068. else
  3069. ac_cpp_err=yes
  3070. fi
  3071. if test -z "$ac_cpp_err"; then
  3072. :
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. # Broken: fails on valid input.
  3077. continue
  3078. fi
  3079. rm -f conftest.err conftest.$ac_ext
  3080. # OK, works on sane cases. Now check whether non-existent headers
  3081. # can be detected and how.
  3082. cat >conftest.$ac_ext <<_ACEOF
  3083. /* confdefs.h. */
  3084. _ACEOF
  3085. cat confdefs.h >>conftest.$ac_ext
  3086. cat >>conftest.$ac_ext <<_ACEOF
  3087. /* end confdefs.h. */
  3088. #include <ac_nonexistent.h>
  3089. _ACEOF
  3090. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3091. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3092. ac_status=$?
  3093. grep -v '^ *+' conftest.er1 >conftest.err
  3094. rm -f conftest.er1
  3095. cat conftest.err >&5
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); } >/dev/null; then
  3098. if test -s conftest.err; then
  3099. ac_cpp_err=$ac_c_preproc_warn_flag
  3100. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3101. else
  3102. ac_cpp_err=
  3103. fi
  3104. else
  3105. ac_cpp_err=yes
  3106. fi
  3107. if test -z "$ac_cpp_err"; then
  3108. # Broken: success on invalid input.
  3109. continue
  3110. else
  3111. echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. # Passes both tests.
  3114. ac_preproc_ok=:
  3115. break
  3116. fi
  3117. rm -f conftest.err conftest.$ac_ext
  3118. done
  3119. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3120. rm -f conftest.err conftest.$ac_ext
  3121. if $ac_preproc_ok; then
  3122. :
  3123. else
  3124. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3125. See \`config.log' for more details." >&5
  3126. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3127. See \`config.log' for more details." >&2;}
  3128. { (exit 1); exit 1; }; }
  3129. fi
  3130. ac_ext=c
  3131. ac_cpp='$CPP $CPPFLAGS'
  3132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3135. echo "$as_me:$LINENO: checking for egrep" >&5
  3136. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3137. if test "${ac_cv_prog_egrep+set}" = set; then
  3138. echo $ECHO_N "(cached) $ECHO_C" >&6
  3139. else
  3140. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3141. then ac_cv_prog_egrep='grep -E'
  3142. else ac_cv_prog_egrep='egrep'
  3143. fi
  3144. fi
  3145. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3146. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3147. EGREP=$ac_cv_prog_egrep
  3148. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3149. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3150. inttypes.h stdint.h unistd.h
  3151. do
  3152. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3153. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3154. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3155. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3156. echo $ECHO_N "(cached) $ECHO_C" >&6
  3157. else
  3158. cat >conftest.$ac_ext <<_ACEOF
  3159. /* confdefs.h. */
  3160. _ACEOF
  3161. cat confdefs.h >>conftest.$ac_ext
  3162. cat >>conftest.$ac_ext <<_ACEOF
  3163. /* end confdefs.h. */
  3164. $ac_includes_default
  3165. #include <$ac_header>
  3166. _ACEOF
  3167. rm -f conftest.$ac_objext
  3168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3169. (eval $ac_compile) 2>conftest.er1
  3170. ac_status=$?
  3171. grep -v '^ *+' conftest.er1 >conftest.err
  3172. rm -f conftest.er1
  3173. cat conftest.err >&5
  3174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3175. (exit $ac_status); } &&
  3176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3178. (eval $ac_try) 2>&5
  3179. ac_status=$?
  3180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3181. (exit $ac_status); }; } &&
  3182. { ac_try='test -s conftest.$ac_objext'
  3183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3184. (eval $ac_try) 2>&5
  3185. ac_status=$?
  3186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187. (exit $ac_status); }; }; then
  3188. eval "$as_ac_Header=yes"
  3189. else
  3190. echo "$as_me: failed program was:" >&5
  3191. sed 's/^/| /' conftest.$ac_ext >&5
  3192. eval "$as_ac_Header=no"
  3193. fi
  3194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3195. fi
  3196. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3197. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3198. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3199. cat >>confdefs.h <<_ACEOF
  3200. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3201. _ACEOF
  3202. fi
  3203. done
  3204. echo "$as_me:$LINENO: checking for function prototypes" >&5
  3205. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  3206. if test "$am_cv_prog_cc_stdc" != no; then
  3207. echo "$as_me:$LINENO: result: yes" >&5
  3208. echo "${ECHO_T}yes" >&6
  3209. cat >>confdefs.h <<\_ACEOF
  3210. #define PROTOTYPES 1
  3211. _ACEOF
  3212. U= ANSI2KNR=
  3213. else
  3214. echo "$as_me:$LINENO: result: no" >&5
  3215. echo "${ECHO_T}no" >&6
  3216. U=_ ANSI2KNR=./ansi2knr
  3217. fi
  3218. # Ensure some checks needed by ansi2knr itself.
  3219. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3220. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3221. if test "${ac_cv_header_stdc+set}" = set; then
  3222. echo $ECHO_N "(cached) $ECHO_C" >&6
  3223. else
  3224. cat >conftest.$ac_ext <<_ACEOF
  3225. /* confdefs.h. */
  3226. _ACEOF
  3227. cat confdefs.h >>conftest.$ac_ext
  3228. cat >>conftest.$ac_ext <<_ACEOF
  3229. /* end confdefs.h. */
  3230. #include <stdlib.h>
  3231. #include <stdarg.h>
  3232. #include <string.h>
  3233. #include <float.h>
  3234. int
  3235. main ()
  3236. {
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. rm -f conftest.$ac_objext
  3242. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3243. (eval $ac_compile) 2>conftest.er1
  3244. ac_status=$?
  3245. grep -v '^ *+' conftest.er1 >conftest.err
  3246. rm -f conftest.er1
  3247. cat conftest.err >&5
  3248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. (exit $ac_status); } &&
  3250. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3252. (eval $ac_try) 2>&5
  3253. ac_status=$?
  3254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3255. (exit $ac_status); }; } &&
  3256. { ac_try='test -s conftest.$ac_objext'
  3257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3258. (eval $ac_try) 2>&5
  3259. ac_status=$?
  3260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3261. (exit $ac_status); }; }; then
  3262. ac_cv_header_stdc=yes
  3263. else
  3264. echo "$as_me: failed program was:" >&5
  3265. sed 's/^/| /' conftest.$ac_ext >&5
  3266. ac_cv_header_stdc=no
  3267. fi
  3268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3269. if test $ac_cv_header_stdc = yes; then
  3270. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3271. cat >conftest.$ac_ext <<_ACEOF
  3272. /* confdefs.h. */
  3273. _ACEOF
  3274. cat confdefs.h >>conftest.$ac_ext
  3275. cat >>conftest.$ac_ext <<_ACEOF
  3276. /* end confdefs.h. */
  3277. #include <string.h>
  3278. _ACEOF
  3279. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3280. $EGREP "memchr" >/dev/null 2>&1; then
  3281. :
  3282. else
  3283. ac_cv_header_stdc=no
  3284. fi
  3285. rm -f conftest*
  3286. fi
  3287. if test $ac_cv_header_stdc = yes; then
  3288. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. #include <stdlib.h>
  3296. _ACEOF
  3297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3298. $EGREP "free" >/dev/null 2>&1; then
  3299. :
  3300. else
  3301. ac_cv_header_stdc=no
  3302. fi
  3303. rm -f conftest*
  3304. fi
  3305. if test $ac_cv_header_stdc = yes; then
  3306. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3307. if test "$cross_compiling" = yes; then
  3308. :
  3309. else
  3310. cat >conftest.$ac_ext <<_ACEOF
  3311. /* confdefs.h. */
  3312. _ACEOF
  3313. cat confdefs.h >>conftest.$ac_ext
  3314. cat >>conftest.$ac_ext <<_ACEOF
  3315. /* end confdefs.h. */
  3316. #include <ctype.h>
  3317. #if ((' ' & 0x0FF) == 0x020)
  3318. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3319. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3320. #else
  3321. # define ISLOWER(c) \
  3322. (('a' <= (c) && (c) <= 'i') \
  3323. || ('j' <= (c) && (c) <= 'r') \
  3324. || ('s' <= (c) && (c) <= 'z'))
  3325. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3326. #endif
  3327. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3328. int
  3329. main ()
  3330. {
  3331. int i;
  3332. for (i = 0; i < 256; i++)
  3333. if (XOR (islower (i), ISLOWER (i))
  3334. || toupper (i) != TOUPPER (i))
  3335. exit(2);
  3336. exit (0);
  3337. }
  3338. _ACEOF
  3339. rm -f conftest$ac_exeext
  3340. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3341. (eval $ac_link) 2>&5
  3342. ac_status=$?
  3343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3346. (eval $ac_try) 2>&5
  3347. ac_status=$?
  3348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3349. (exit $ac_status); }; }; then
  3350. :
  3351. else
  3352. echo "$as_me: program exited with status $ac_status" >&5
  3353. echo "$as_me: failed program was:" >&5
  3354. sed 's/^/| /' conftest.$ac_ext >&5
  3355. ( exit $ac_status )
  3356. ac_cv_header_stdc=no
  3357. fi
  3358. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3359. fi
  3360. fi
  3361. fi
  3362. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3363. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3364. if test $ac_cv_header_stdc = yes; then
  3365. cat >>confdefs.h <<\_ACEOF
  3366. #define STDC_HEADERS 1
  3367. _ACEOF
  3368. fi
  3369. for ac_header in string.h
  3370. do
  3371. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3372. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3373. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3375. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3376. echo $ECHO_N "(cached) $ECHO_C" >&6
  3377. fi
  3378. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3379. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3380. else
  3381. # Is the header compilable?
  3382. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3383. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3384. cat >conftest.$ac_ext <<_ACEOF
  3385. /* confdefs.h. */
  3386. _ACEOF
  3387. cat confdefs.h >>conftest.$ac_ext
  3388. cat >>conftest.$ac_ext <<_ACEOF
  3389. /* end confdefs.h. */
  3390. $ac_includes_default
  3391. #include <$ac_header>
  3392. _ACEOF
  3393. rm -f conftest.$ac_objext
  3394. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3395. (eval $ac_compile) 2>conftest.er1
  3396. ac_status=$?
  3397. grep -v '^ *+' conftest.er1 >conftest.err
  3398. rm -f conftest.er1
  3399. cat conftest.err >&5
  3400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3401. (exit $ac_status); } &&
  3402. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3404. (eval $ac_try) 2>&5
  3405. ac_status=$?
  3406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3407. (exit $ac_status); }; } &&
  3408. { ac_try='test -s conftest.$ac_objext'
  3409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3410. (eval $ac_try) 2>&5
  3411. ac_status=$?
  3412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3413. (exit $ac_status); }; }; then
  3414. ac_header_compiler=yes
  3415. else
  3416. echo "$as_me: failed program was:" >&5
  3417. sed 's/^/| /' conftest.$ac_ext >&5
  3418. ac_header_compiler=no
  3419. fi
  3420. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3421. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3422. echo "${ECHO_T}$ac_header_compiler" >&6
  3423. # Is the header present?
  3424. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3425. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3426. cat >conftest.$ac_ext <<_ACEOF
  3427. /* confdefs.h. */
  3428. _ACEOF
  3429. cat confdefs.h >>conftest.$ac_ext
  3430. cat >>conftest.$ac_ext <<_ACEOF
  3431. /* end confdefs.h. */
  3432. #include <$ac_header>
  3433. _ACEOF
  3434. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3435. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3436. ac_status=$?
  3437. grep -v '^ *+' conftest.er1 >conftest.err
  3438. rm -f conftest.er1
  3439. cat conftest.err >&5
  3440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3441. (exit $ac_status); } >/dev/null; then
  3442. if test -s conftest.err; then
  3443. ac_cpp_err=$ac_c_preproc_warn_flag
  3444. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3445. else
  3446. ac_cpp_err=
  3447. fi
  3448. else
  3449. ac_cpp_err=yes
  3450. fi
  3451. if test -z "$ac_cpp_err"; then
  3452. ac_header_preproc=yes
  3453. else
  3454. echo "$as_me: failed program was:" >&5
  3455. sed 's/^/| /' conftest.$ac_ext >&5
  3456. ac_header_preproc=no
  3457. fi
  3458. rm -f conftest.err conftest.$ac_ext
  3459. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3460. echo "${ECHO_T}$ac_header_preproc" >&6
  3461. # So? What about this header?
  3462. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3463. yes:no: )
  3464. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3465. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3466. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3467. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3468. ac_header_preproc=yes
  3469. ;;
  3470. no:yes:* )
  3471. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3472. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3473. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3474. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3475. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3476. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3477. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3478. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3479. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3480. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3481. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3482. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3483. (
  3484. cat <<\_ASBOX
  3485. ## --------------------------------- ##
  3486. ## Report this to the ngircd lists. ##
  3487. ## --------------------------------- ##
  3488. _ASBOX
  3489. ) |
  3490. sed "s/^/$as_me: WARNING: /" >&2
  3491. ;;
  3492. esac
  3493. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3494. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3495. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3496. echo $ECHO_N "(cached) $ECHO_C" >&6
  3497. else
  3498. eval "$as_ac_Header=\$ac_header_preproc"
  3499. fi
  3500. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3501. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3502. fi
  3503. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3504. cat >>confdefs.h <<_ACEOF
  3505. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3506. _ACEOF
  3507. fi
  3508. done
  3509. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3510. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3511. if test "${ac_cv_c_const+set}" = set; then
  3512. echo $ECHO_N "(cached) $ECHO_C" >&6
  3513. else
  3514. cat >conftest.$ac_ext <<_ACEOF
  3515. /* confdefs.h. */
  3516. _ACEOF
  3517. cat confdefs.h >>conftest.$ac_ext
  3518. cat >>conftest.$ac_ext <<_ACEOF
  3519. /* end confdefs.h. */
  3520. int
  3521. main ()
  3522. {
  3523. /* FIXME: Include the comments suggested by Paul. */
  3524. #ifndef __cplusplus
  3525. /* Ultrix mips cc rejects this. */
  3526. typedef int charset[2];
  3527. const charset x;
  3528. /* SunOS 4.1.1 cc rejects this. */
  3529. char const *const *ccp;
  3530. char **p;
  3531. /* NEC SVR4.0.2 mips cc rejects this. */
  3532. struct point {int x, y;};
  3533. static struct point const zero = {0,0};
  3534. /* AIX XL C 1.02.0.0 rejects this.
  3535. It does not let you subtract one const X* pointer from another in
  3536. an arm of an if-expression whose if-part is not a constant
  3537. expression */
  3538. const char *g = "string";
  3539. ccp = &g + (g ? g-g : 0);
  3540. /* HPUX 7.0 cc rejects these. */
  3541. ++ccp;
  3542. p = (char**) ccp;
  3543. ccp = (char const *const *) p;
  3544. { /* SCO 3.2v4 cc rejects this. */
  3545. char *t;
  3546. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3547. *t++ = 0;
  3548. }
  3549. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3550. int x[] = {25, 17};
  3551. const int *foo = &x[0];
  3552. ++foo;
  3553. }
  3554. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3555. typedef const int *iptr;
  3556. iptr p = 0;
  3557. ++p;
  3558. }
  3559. { /* AIX XL C 1.02.0.0 rejects this saying
  3560. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3561. struct s { int j; const int *ap[3]; };
  3562. struct s *b; b->j = 5;
  3563. }
  3564. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3565. const int foo = 10;
  3566. }
  3567. #endif
  3568. ;
  3569. return 0;
  3570. }
  3571. _ACEOF
  3572. rm -f conftest.$ac_objext
  3573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3574. (eval $ac_compile) 2>conftest.er1
  3575. ac_status=$?
  3576. grep -v '^ *+' conftest.er1 >conftest.err
  3577. rm -f conftest.er1
  3578. cat conftest.err >&5
  3579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580. (exit $ac_status); } &&
  3581. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3583. (eval $ac_try) 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }; } &&
  3587. { ac_try='test -s conftest.$ac_objext'
  3588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3589. (eval $ac_try) 2>&5
  3590. ac_status=$?
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); }; }; then
  3593. ac_cv_c_const=yes
  3594. else
  3595. echo "$as_me: failed program was:" >&5
  3596. sed 's/^/| /' conftest.$ac_ext >&5
  3597. ac_cv_c_const=no
  3598. fi
  3599. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3600. fi
  3601. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3602. echo "${ECHO_T}$ac_cv_c_const" >&6
  3603. if test $ac_cv_c_const = no; then
  3604. cat >>confdefs.h <<\_ACEOF
  3605. #define const
  3606. _ACEOF
  3607. fi
  3608. # -- Hard coded system and compiler dependencies/features/options ... --
  3609. if test "$GCC" = "yes"; then
  3610. # We are using the GNU C compiler. Good!
  3611. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  3612. fi
  3613. case "$target_os" in
  3614. hpux*)
  3615. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  3616. # (tested with HP/UX 11.11)
  3617. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  3618. ;;
  3619. esac
  3620. # Add additional CFLAGS, eventually specified on the command line:
  3621. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  3622. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  3623. # -- Headers --
  3624. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3625. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3626. if test "${ac_cv_header_stdc+set}" = set; then
  3627. echo $ECHO_N "(cached) $ECHO_C" >&6
  3628. else
  3629. cat >conftest.$ac_ext <<_ACEOF
  3630. /* confdefs.h. */
  3631. _ACEOF
  3632. cat confdefs.h >>conftest.$ac_ext
  3633. cat >>conftest.$ac_ext <<_ACEOF
  3634. /* end confdefs.h. */
  3635. #include <stdlib.h>
  3636. #include <stdarg.h>
  3637. #include <string.h>
  3638. #include <float.h>
  3639. int
  3640. main ()
  3641. {
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. rm -f conftest.$ac_objext
  3647. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3648. (eval $ac_compile) 2>conftest.er1
  3649. ac_status=$?
  3650. grep -v '^ *+' conftest.er1 >conftest.err
  3651. rm -f conftest.er1
  3652. cat conftest.err >&5
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); } &&
  3655. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; } &&
  3661. { ac_try='test -s conftest.$ac_objext'
  3662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3663. (eval $ac_try) 2>&5
  3664. ac_status=$?
  3665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3666. (exit $ac_status); }; }; then
  3667. ac_cv_header_stdc=yes
  3668. else
  3669. echo "$as_me: failed program was:" >&5
  3670. sed 's/^/| /' conftest.$ac_ext >&5
  3671. ac_cv_header_stdc=no
  3672. fi
  3673. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3674. if test $ac_cv_header_stdc = yes; then
  3675. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3676. cat >conftest.$ac_ext <<_ACEOF
  3677. /* confdefs.h. */
  3678. _ACEOF
  3679. cat confdefs.h >>conftest.$ac_ext
  3680. cat >>conftest.$ac_ext <<_ACEOF
  3681. /* end confdefs.h. */
  3682. #include <string.h>
  3683. _ACEOF
  3684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3685. $EGREP "memchr" >/dev/null 2>&1; then
  3686. :
  3687. else
  3688. ac_cv_header_stdc=no
  3689. fi
  3690. rm -f conftest*
  3691. fi
  3692. if test $ac_cv_header_stdc = yes; then
  3693. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3694. cat >conftest.$ac_ext <<_ACEOF
  3695. /* confdefs.h. */
  3696. _ACEOF
  3697. cat confdefs.h >>conftest.$ac_ext
  3698. cat >>conftest.$ac_ext <<_ACEOF
  3699. /* end confdefs.h. */
  3700. #include <stdlib.h>
  3701. _ACEOF
  3702. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3703. $EGREP "free" >/dev/null 2>&1; then
  3704. :
  3705. else
  3706. ac_cv_header_stdc=no
  3707. fi
  3708. rm -f conftest*
  3709. fi
  3710. if test $ac_cv_header_stdc = yes; then
  3711. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3712. if test "$cross_compiling" = yes; then
  3713. :
  3714. else
  3715. cat >conftest.$ac_ext <<_ACEOF
  3716. /* confdefs.h. */
  3717. _ACEOF
  3718. cat confdefs.h >>conftest.$ac_ext
  3719. cat >>conftest.$ac_ext <<_ACEOF
  3720. /* end confdefs.h. */
  3721. #include <ctype.h>
  3722. #if ((' ' & 0x0FF) == 0x020)
  3723. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3724. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3725. #else
  3726. # define ISLOWER(c) \
  3727. (('a' <= (c) && (c) <= 'i') \
  3728. || ('j' <= (c) && (c) <= 'r') \
  3729. || ('s' <= (c) && (c) <= 'z'))
  3730. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3731. #endif
  3732. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3733. int
  3734. main ()
  3735. {
  3736. int i;
  3737. for (i = 0; i < 256; i++)
  3738. if (XOR (islower (i), ISLOWER (i))
  3739. || toupper (i) != TOUPPER (i))
  3740. exit(2);
  3741. exit (0);
  3742. }
  3743. _ACEOF
  3744. rm -f conftest$ac_exeext
  3745. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3746. (eval $ac_link) 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3751. (eval $ac_try) 2>&5
  3752. ac_status=$?
  3753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3754. (exit $ac_status); }; }; then
  3755. :
  3756. else
  3757. echo "$as_me: program exited with status $ac_status" >&5
  3758. echo "$as_me: failed program was:" >&5
  3759. sed 's/^/| /' conftest.$ac_ext >&5
  3760. ( exit $ac_status )
  3761. ac_cv_header_stdc=no
  3762. fi
  3763. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3764. fi
  3765. fi
  3766. fi
  3767. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3768. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3769. if test $ac_cv_header_stdc = yes; then
  3770. cat >>confdefs.h <<\_ACEOF
  3771. #define STDC_HEADERS 1
  3772. _ACEOF
  3773. fi
  3774. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3775. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3776. if test "${ac_cv_header_time+set}" = set; then
  3777. echo $ECHO_N "(cached) $ECHO_C" >&6
  3778. else
  3779. cat >conftest.$ac_ext <<_ACEOF
  3780. /* confdefs.h. */
  3781. _ACEOF
  3782. cat confdefs.h >>conftest.$ac_ext
  3783. cat >>conftest.$ac_ext <<_ACEOF
  3784. /* end confdefs.h. */
  3785. #include <sys/types.h>
  3786. #include <sys/time.h>
  3787. #include <time.h>
  3788. int
  3789. main ()
  3790. {
  3791. if ((struct tm *) 0)
  3792. return 0;
  3793. ;
  3794. return 0;
  3795. }
  3796. _ACEOF
  3797. rm -f conftest.$ac_objext
  3798. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3799. (eval $ac_compile) 2>conftest.er1
  3800. ac_status=$?
  3801. grep -v '^ *+' conftest.er1 >conftest.err
  3802. rm -f conftest.er1
  3803. cat conftest.err >&5
  3804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3805. (exit $ac_status); } &&
  3806. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3808. (eval $ac_try) 2>&5
  3809. ac_status=$?
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); }; } &&
  3812. { ac_try='test -s conftest.$ac_objext'
  3813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3814. (eval $ac_try) 2>&5
  3815. ac_status=$?
  3816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. (exit $ac_status); }; }; then
  3818. ac_cv_header_time=yes
  3819. else
  3820. echo "$as_me: failed program was:" >&5
  3821. sed 's/^/| /' conftest.$ac_ext >&5
  3822. ac_cv_header_time=no
  3823. fi
  3824. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3825. fi
  3826. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3827. echo "${ECHO_T}$ac_cv_header_time" >&6
  3828. if test $ac_cv_header_time = yes; then
  3829. cat >>confdefs.h <<\_ACEOF
  3830. #define TIME_WITH_SYS_TIME 1
  3831. _ACEOF
  3832. fi
  3833. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3834. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3835. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3836. echo $ECHO_N "(cached) $ECHO_C" >&6
  3837. else
  3838. cat >conftest.$ac_ext <<_ACEOF
  3839. /* confdefs.h. */
  3840. _ACEOF
  3841. cat confdefs.h >>conftest.$ac_ext
  3842. cat >>conftest.$ac_ext <<_ACEOF
  3843. /* end confdefs.h. */
  3844. #include <sys/types.h>
  3845. #include <sys/wait.h>
  3846. #ifndef WEXITSTATUS
  3847. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3848. #endif
  3849. #ifndef WIFEXITED
  3850. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3851. #endif
  3852. int
  3853. main ()
  3854. {
  3855. int s;
  3856. wait (&s);
  3857. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3858. ;
  3859. return 0;
  3860. }
  3861. _ACEOF
  3862. rm -f conftest.$ac_objext
  3863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3864. (eval $ac_compile) 2>conftest.er1
  3865. ac_status=$?
  3866. grep -v '^ *+' conftest.er1 >conftest.err
  3867. rm -f conftest.er1
  3868. cat conftest.err >&5
  3869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. (exit $ac_status); } &&
  3871. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3873. (eval $ac_try) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; } &&
  3877. { ac_try='test -s conftest.$ac_objext'
  3878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3879. (eval $ac_try) 2>&5
  3880. ac_status=$?
  3881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3882. (exit $ac_status); }; }; then
  3883. ac_cv_header_sys_wait_h=yes
  3884. else
  3885. echo "$as_me: failed program was:" >&5
  3886. sed 's/^/| /' conftest.$ac_ext >&5
  3887. ac_cv_header_sys_wait_h=no
  3888. fi
  3889. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3890. fi
  3891. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3892. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3893. if test $ac_cv_header_sys_wait_h = yes; then
  3894. cat >>confdefs.h <<\_ACEOF
  3895. #define HAVE_SYS_WAIT_H 1
  3896. _ACEOF
  3897. fi
  3898. for ac_header in \
  3899. ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  3900. strings.h sys/socket.h sys/time.h unistd.h \
  3901. do
  3902. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3903. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3904. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3905. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3906. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. fi
  3909. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3910. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3911. else
  3912. # Is the header compilable?
  3913. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3915. cat >conftest.$ac_ext <<_ACEOF
  3916. /* confdefs.h. */
  3917. _ACEOF
  3918. cat confdefs.h >>conftest.$ac_ext
  3919. cat >>conftest.$ac_ext <<_ACEOF
  3920. /* end confdefs.h. */
  3921. $ac_includes_default
  3922. #include <$ac_header>
  3923. _ACEOF
  3924. rm -f conftest.$ac_objext
  3925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3926. (eval $ac_compile) 2>conftest.er1
  3927. ac_status=$?
  3928. grep -v '^ *+' conftest.er1 >conftest.err
  3929. rm -f conftest.er1
  3930. cat conftest.err >&5
  3931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3932. (exit $ac_status); } &&
  3933. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3935. (eval $ac_try) 2>&5
  3936. ac_status=$?
  3937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); }; } &&
  3939. { ac_try='test -s conftest.$ac_objext'
  3940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3941. (eval $ac_try) 2>&5
  3942. ac_status=$?
  3943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3944. (exit $ac_status); }; }; then
  3945. ac_header_compiler=yes
  3946. else
  3947. echo "$as_me: failed program was:" >&5
  3948. sed 's/^/| /' conftest.$ac_ext >&5
  3949. ac_header_compiler=no
  3950. fi
  3951. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3952. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3953. echo "${ECHO_T}$ac_header_compiler" >&6
  3954. # Is the header present?
  3955. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3956. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3957. cat >conftest.$ac_ext <<_ACEOF
  3958. /* confdefs.h. */
  3959. _ACEOF
  3960. cat confdefs.h >>conftest.$ac_ext
  3961. cat >>conftest.$ac_ext <<_ACEOF
  3962. /* end confdefs.h. */
  3963. #include <$ac_header>
  3964. _ACEOF
  3965. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3966. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3967. ac_status=$?
  3968. grep -v '^ *+' conftest.er1 >conftest.err
  3969. rm -f conftest.er1
  3970. cat conftest.err >&5
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); } >/dev/null; then
  3973. if test -s conftest.err; then
  3974. ac_cpp_err=$ac_c_preproc_warn_flag
  3975. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3976. else
  3977. ac_cpp_err=
  3978. fi
  3979. else
  3980. ac_cpp_err=yes
  3981. fi
  3982. if test -z "$ac_cpp_err"; then
  3983. ac_header_preproc=yes
  3984. else
  3985. echo "$as_me: failed program was:" >&5
  3986. sed 's/^/| /' conftest.$ac_ext >&5
  3987. ac_header_preproc=no
  3988. fi
  3989. rm -f conftest.err conftest.$ac_ext
  3990. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3991. echo "${ECHO_T}$ac_header_preproc" >&6
  3992. # So? What about this header?
  3993. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3994. yes:no: )
  3995. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3996. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3997. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3998. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3999. ac_header_preproc=yes
  4000. ;;
  4001. no:yes:* )
  4002. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4003. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4004. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4005. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4006. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4007. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4008. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4009. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4011. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4012. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4013. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4014. (
  4015. cat <<\_ASBOX
  4016. ## --------------------------------- ##
  4017. ## Report this to the ngircd lists. ##
  4018. ## --------------------------------- ##
  4019. _ASBOX
  4020. ) |
  4021. sed "s/^/$as_me: WARNING: /" >&2
  4022. ;;
  4023. esac
  4024. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4025. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4026. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4027. echo $ECHO_N "(cached) $ECHO_C" >&6
  4028. else
  4029. eval "$as_ac_Header=\$ac_header_preproc"
  4030. fi
  4031. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4032. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4033. fi
  4034. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4035. cat >>confdefs.h <<_ACEOF
  4036. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4037. _ACEOF
  4038. else
  4039. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4040. echo "$as_me: error: required C header missing!" >&2;}
  4041. { (exit 1); exit 1; }; }
  4042. fi
  4043. done
  4044. for ac_header in arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h
  4045. do
  4046. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4047. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4048. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4049. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4050. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4051. echo $ECHO_N "(cached) $ECHO_C" >&6
  4052. fi
  4053. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4054. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4055. else
  4056. # Is the header compilable?
  4057. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4058. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4059. cat >conftest.$ac_ext <<_ACEOF
  4060. /* confdefs.h. */
  4061. _ACEOF
  4062. cat confdefs.h >>conftest.$ac_ext
  4063. cat >>conftest.$ac_ext <<_ACEOF
  4064. /* end confdefs.h. */
  4065. $ac_includes_default
  4066. #include <$ac_header>
  4067. _ACEOF
  4068. rm -f conftest.$ac_objext
  4069. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4070. (eval $ac_compile) 2>conftest.er1
  4071. ac_status=$?
  4072. grep -v '^ *+' conftest.er1 >conftest.err
  4073. rm -f conftest.er1
  4074. cat conftest.err >&5
  4075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4076. (exit $ac_status); } &&
  4077. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4079. (eval $ac_try) 2>&5
  4080. ac_status=$?
  4081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4082. (exit $ac_status); }; } &&
  4083. { ac_try='test -s conftest.$ac_objext'
  4084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4085. (eval $ac_try) 2>&5
  4086. ac_status=$?
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); }; }; then
  4089. ac_header_compiler=yes
  4090. else
  4091. echo "$as_me: failed program was:" >&5
  4092. sed 's/^/| /' conftest.$ac_ext >&5
  4093. ac_header_compiler=no
  4094. fi
  4095. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4096. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4097. echo "${ECHO_T}$ac_header_compiler" >&6
  4098. # Is the header present?
  4099. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4100. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4101. cat >conftest.$ac_ext <<_ACEOF
  4102. /* confdefs.h. */
  4103. _ACEOF
  4104. cat confdefs.h >>conftest.$ac_ext
  4105. cat >>conftest.$ac_ext <<_ACEOF
  4106. /* end confdefs.h. */
  4107. #include <$ac_header>
  4108. _ACEOF
  4109. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4110. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4111. ac_status=$?
  4112. grep -v '^ *+' conftest.er1 >conftest.err
  4113. rm -f conftest.er1
  4114. cat conftest.err >&5
  4115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4116. (exit $ac_status); } >/dev/null; then
  4117. if test -s conftest.err; then
  4118. ac_cpp_err=$ac_c_preproc_warn_flag
  4119. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4120. else
  4121. ac_cpp_err=
  4122. fi
  4123. else
  4124. ac_cpp_err=yes
  4125. fi
  4126. if test -z "$ac_cpp_err"; then
  4127. ac_header_preproc=yes
  4128. else
  4129. echo "$as_me: failed program was:" >&5
  4130. sed 's/^/| /' conftest.$ac_ext >&5
  4131. ac_header_preproc=no
  4132. fi
  4133. rm -f conftest.err conftest.$ac_ext
  4134. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4135. echo "${ECHO_T}$ac_header_preproc" >&6
  4136. # So? What about this header?
  4137. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4138. yes:no: )
  4139. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4140. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4141. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4142. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4143. ac_header_preproc=yes
  4144. ;;
  4145. no:yes:* )
  4146. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4147. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4148. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4149. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4150. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4151. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4152. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4153. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4154. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4155. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4156. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4157. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4158. (
  4159. cat <<\_ASBOX
  4160. ## --------------------------------- ##
  4161. ## Report this to the ngircd lists. ##
  4162. ## --------------------------------- ##
  4163. _ASBOX
  4164. ) |
  4165. sed "s/^/$as_me: WARNING: /" >&2
  4166. ;;
  4167. esac
  4168. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4169. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4170. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4171. echo $ECHO_N "(cached) $ECHO_C" >&6
  4172. else
  4173. eval "$as_ac_Header=\$ac_header_preproc"
  4174. fi
  4175. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4176. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4177. fi
  4178. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4179. cat >>confdefs.h <<_ACEOF
  4180. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4181. _ACEOF
  4182. fi
  4183. done
  4184. # -- Datatypes --
  4185. echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  4186. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6
  4187. cat >conftest.$ac_ext <<_ACEOF
  4188. /* confdefs.h. */
  4189. _ACEOF
  4190. cat confdefs.h >>conftest.$ac_ext
  4191. cat >>conftest.$ac_ext <<_ACEOF
  4192. /* end confdefs.h. */
  4193. #include <sys/types.h>
  4194. #include <sys/socket.h>
  4195. int
  4196. main ()
  4197. {
  4198. socklen_t a, b;
  4199. a = 2; b = 4; a += b;
  4200. ;
  4201. return 0;
  4202. }
  4203. _ACEOF
  4204. rm -f conftest.$ac_objext
  4205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4206. (eval $ac_compile) 2>conftest.er1
  4207. ac_status=$?
  4208. grep -v '^ *+' conftest.er1 >conftest.err
  4209. rm -f conftest.er1
  4210. cat conftest.err >&5
  4211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4212. (exit $ac_status); } &&
  4213. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4215. (eval $ac_try) 2>&5
  4216. ac_status=$?
  4217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4218. (exit $ac_status); }; } &&
  4219. { ac_try='test -s conftest.$ac_objext'
  4220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4221. (eval $ac_try) 2>&5
  4222. ac_status=$?
  4223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224. (exit $ac_status); }; }; then
  4225. cat >>confdefs.h <<\_ACEOF
  4226. #define HAVE_socklen_t 1
  4227. _ACEOF
  4228. echo "$as_me:$LINENO: result: yes" >&5
  4229. echo "${ECHO_T}yes" >&6
  4230. else
  4231. echo "$as_me: failed program was:" >&5
  4232. sed 's/^/| /' conftest.$ac_ext >&5
  4233. echo "$as_me:$LINENO: result: no" >&5
  4234. echo "${ECHO_T}no" >&6
  4235. fi
  4236. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4237. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  4238. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4239. if test "${ac_cv_type_signal+set}" = set; then
  4240. echo $ECHO_N "(cached) $ECHO_C" >&6
  4241. else
  4242. cat >conftest.$ac_ext <<_ACEOF
  4243. /* confdefs.h. */
  4244. _ACEOF
  4245. cat confdefs.h >>conftest.$ac_ext
  4246. cat >>conftest.$ac_ext <<_ACEOF
  4247. /* end confdefs.h. */
  4248. #include <sys/types.h>
  4249. #include <signal.h>
  4250. #ifdef signal
  4251. # undef signal
  4252. #endif
  4253. #ifdef __cplusplus
  4254. extern "C" void (*signal (int, void (*)(int)))(int);
  4255. #else
  4256. void (*signal ()) ();
  4257. #endif
  4258. int
  4259. main ()
  4260. {
  4261. int i;
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. rm -f conftest.$ac_objext
  4267. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4268. (eval $ac_compile) 2>conftest.er1
  4269. ac_status=$?
  4270. grep -v '^ *+' conftest.er1 >conftest.err
  4271. rm -f conftest.er1
  4272. cat conftest.err >&5
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); } &&
  4275. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4277. (eval $ac_try) 2>&5
  4278. ac_status=$?
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); }; } &&
  4281. { ac_try='test -s conftest.$ac_objext'
  4282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4283. (eval $ac_try) 2>&5
  4284. ac_status=$?
  4285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4286. (exit $ac_status); }; }; then
  4287. ac_cv_type_signal=void
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. ac_cv_type_signal=int
  4292. fi
  4293. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4294. fi
  4295. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  4296. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4297. cat >>confdefs.h <<_ACEOF
  4298. #define RETSIGTYPE $ac_cv_type_signal
  4299. _ACEOF
  4300. echo "$as_me:$LINENO: checking for size_t" >&5
  4301. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4302. if test "${ac_cv_type_size_t+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. cat >conftest.$ac_ext <<_ACEOF
  4306. /* confdefs.h. */
  4307. _ACEOF
  4308. cat confdefs.h >>conftest.$ac_ext
  4309. cat >>conftest.$ac_ext <<_ACEOF
  4310. /* end confdefs.h. */
  4311. $ac_includes_default
  4312. int
  4313. main ()
  4314. {
  4315. if ((size_t *) 0)
  4316. return 0;
  4317. if (sizeof (size_t))
  4318. return 0;
  4319. ;
  4320. return 0;
  4321. }
  4322. _ACEOF
  4323. rm -f conftest.$ac_objext
  4324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4325. (eval $ac_compile) 2>conftest.er1
  4326. ac_status=$?
  4327. grep -v '^ *+' conftest.er1 >conftest.err
  4328. rm -f conftest.er1
  4329. cat conftest.err >&5
  4330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4331. (exit $ac_status); } &&
  4332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4334. (eval $ac_try) 2>&5
  4335. ac_status=$?
  4336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4337. (exit $ac_status); }; } &&
  4338. { ac_try='test -s conftest.$ac_objext'
  4339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4340. (eval $ac_try) 2>&5
  4341. ac_status=$?
  4342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343. (exit $ac_status); }; }; then
  4344. ac_cv_type_size_t=yes
  4345. else
  4346. echo "$as_me: failed program was:" >&5
  4347. sed 's/^/| /' conftest.$ac_ext >&5
  4348. ac_cv_type_size_t=no
  4349. fi
  4350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4351. fi
  4352. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4353. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4354. if test $ac_cv_type_size_t = yes; then
  4355. :
  4356. else
  4357. cat >>confdefs.h <<_ACEOF
  4358. #define size_t unsigned
  4359. _ACEOF
  4360. fi
  4361. # -- Libraries --
  4362. echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  4363. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6
  4364. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  4365. echo $ECHO_N "(cached) $ECHO_C" >&6
  4366. else
  4367. ac_check_lib_save_LIBS=$LIBS
  4368. LIBS="-lUTIL $LIBS"
  4369. cat >conftest.$ac_ext <<_ACEOF
  4370. /* confdefs.h. */
  4371. _ACEOF
  4372. cat confdefs.h >>conftest.$ac_ext
  4373. cat >>conftest.$ac_ext <<_ACEOF
  4374. /* end confdefs.h. */
  4375. /* Override any gcc2 internal prototype to avoid an error. */
  4376. #ifdef __cplusplus
  4377. extern "C"
  4378. #endif
  4379. /* We use char because int might match the return type of a gcc2
  4380. builtin and then its argument prototype would still apply. */
  4381. char memmove ();
  4382. int
  4383. main ()
  4384. {
  4385. memmove ();
  4386. ;
  4387. return 0;
  4388. }
  4389. _ACEOF
  4390. rm -f conftest.$ac_objext conftest$ac_exeext
  4391. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4392. (eval $ac_link) 2>conftest.er1
  4393. ac_status=$?
  4394. grep -v '^ *+' conftest.er1 >conftest.err
  4395. rm -f conftest.er1
  4396. cat conftest.err >&5
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); } &&
  4399. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4401. (eval $ac_try) 2>&5
  4402. ac_status=$?
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); }; } &&
  4405. { ac_try='test -s conftest$ac_exeext'
  4406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4407. (eval $ac_try) 2>&5
  4408. ac_status=$?
  4409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. (exit $ac_status); }; }; then
  4411. ac_cv_lib_UTIL_memmove=yes
  4412. else
  4413. echo "$as_me: failed program was:" >&5
  4414. sed 's/^/| /' conftest.$ac_ext >&5
  4415. ac_cv_lib_UTIL_memmove=no
  4416. fi
  4417. rm -f conftest.err conftest.$ac_objext \
  4418. conftest$ac_exeext conftest.$ac_ext
  4419. LIBS=$ac_check_lib_save_LIBS
  4420. fi
  4421. echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  4422. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6
  4423. if test $ac_cv_lib_UTIL_memmove = yes; then
  4424. cat >>confdefs.h <<_ACEOF
  4425. #define HAVE_LIBUTIL 1
  4426. _ACEOF
  4427. LIBS="-lUTIL $LIBS"
  4428. fi
  4429. echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  4430. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
  4431. if test "${ac_cv_lib_socket_bind+set}" = set; then
  4432. echo $ECHO_N "(cached) $ECHO_C" >&6
  4433. else
  4434. ac_check_lib_save_LIBS=$LIBS
  4435. LIBS="-lsocket $LIBS"
  4436. cat >conftest.$ac_ext <<_ACEOF
  4437. /* confdefs.h. */
  4438. _ACEOF
  4439. cat confdefs.h >>conftest.$ac_ext
  4440. cat >>conftest.$ac_ext <<_ACEOF
  4441. /* end confdefs.h. */
  4442. /* Override any gcc2 internal prototype to avoid an error. */
  4443. #ifdef __cplusplus
  4444. extern "C"
  4445. #endif
  4446. /* We use char because int might match the return type of a gcc2
  4447. builtin and then its argument prototype would still apply. */
  4448. char bind ();
  4449. int
  4450. main ()
  4451. {
  4452. bind ();
  4453. ;
  4454. return 0;
  4455. }
  4456. _ACEOF
  4457. rm -f conftest.$ac_objext conftest$ac_exeext
  4458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4459. (eval $ac_link) 2>conftest.er1
  4460. ac_status=$?
  4461. grep -v '^ *+' conftest.er1 >conftest.err
  4462. rm -f conftest.er1
  4463. cat conftest.err >&5
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); } &&
  4466. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4468. (eval $ac_try) 2>&5
  4469. ac_status=$?
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); }; } &&
  4472. { ac_try='test -s conftest$ac_exeext'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; }; then
  4478. ac_cv_lib_socket_bind=yes
  4479. else
  4480. echo "$as_me: failed program was:" >&5
  4481. sed 's/^/| /' conftest.$ac_ext >&5
  4482. ac_cv_lib_socket_bind=no
  4483. fi
  4484. rm -f conftest.err conftest.$ac_objext \
  4485. conftest$ac_exeext conftest.$ac_ext
  4486. LIBS=$ac_check_lib_save_LIBS
  4487. fi
  4488. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
  4489. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
  4490. if test $ac_cv_lib_socket_bind = yes; then
  4491. cat >>confdefs.h <<_ACEOF
  4492. #define HAVE_LIBSOCKET 1
  4493. _ACEOF
  4494. LIBS="-lsocket $LIBS"
  4495. fi
  4496. echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
  4497. echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
  4498. if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
  4499. echo $ECHO_N "(cached) $ECHO_C" >&6
  4500. else
  4501. ac_check_lib_save_LIBS=$LIBS
  4502. LIBS="-lnsl $LIBS"
  4503. cat >conftest.$ac_ext <<_ACEOF
  4504. /* confdefs.h. */
  4505. _ACEOF
  4506. cat confdefs.h >>conftest.$ac_ext
  4507. cat >>conftest.$ac_ext <<_ACEOF
  4508. /* end confdefs.h. */
  4509. /* Override any gcc2 internal prototype to avoid an error. */
  4510. #ifdef __cplusplus
  4511. extern "C"
  4512. #endif
  4513. /* We use char because int might match the return type of a gcc2
  4514. builtin and then its argument prototype would still apply. */
  4515. char gethostent ();
  4516. int
  4517. main ()
  4518. {
  4519. gethostent ();
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. rm -f conftest.$ac_objext conftest$ac_exeext
  4525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4526. (eval $ac_link) 2>conftest.er1
  4527. ac_status=$?
  4528. grep -v '^ *+' conftest.er1 >conftest.err
  4529. rm -f conftest.er1
  4530. cat conftest.err >&5
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); } &&
  4533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4535. (eval $ac_try) 2>&5
  4536. ac_status=$?
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); }; } &&
  4539. { ac_try='test -s conftest$ac_exeext'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; }; then
  4545. ac_cv_lib_nsl_gethostent=yes
  4546. else
  4547. echo "$as_me: failed program was:" >&5
  4548. sed 's/^/| /' conftest.$ac_ext >&5
  4549. ac_cv_lib_nsl_gethostent=no
  4550. fi
  4551. rm -f conftest.err conftest.$ac_objext \
  4552. conftest$ac_exeext conftest.$ac_ext
  4553. LIBS=$ac_check_lib_save_LIBS
  4554. fi
  4555. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
  4556. echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
  4557. if test $ac_cv_lib_nsl_gethostent = yes; then
  4558. cat >>confdefs.h <<_ACEOF
  4559. #define HAVE_LIBNSL 1
  4560. _ACEOF
  4561. LIBS="-lnsl $LIBS"
  4562. fi
  4563. # -- Functions --
  4564. echo "$as_me:$LINENO: checking for pid_t" >&5
  4565. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4566. if test "${ac_cv_type_pid_t+set}" = set; then
  4567. echo $ECHO_N "(cached) $ECHO_C" >&6
  4568. else
  4569. cat >conftest.$ac_ext <<_ACEOF
  4570. /* confdefs.h. */
  4571. _ACEOF
  4572. cat confdefs.h >>conftest.$ac_ext
  4573. cat >>conftest.$ac_ext <<_ACEOF
  4574. /* end confdefs.h. */
  4575. $ac_includes_default
  4576. int
  4577. main ()
  4578. {
  4579. if ((pid_t *) 0)
  4580. return 0;
  4581. if (sizeof (pid_t))
  4582. return 0;
  4583. ;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. rm -f conftest.$ac_objext
  4588. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4589. (eval $ac_compile) 2>conftest.er1
  4590. ac_status=$?
  4591. grep -v '^ *+' conftest.er1 >conftest.err
  4592. rm -f conftest.er1
  4593. cat conftest.err >&5
  4594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595. (exit $ac_status); } &&
  4596. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4598. (eval $ac_try) 2>&5
  4599. ac_status=$?
  4600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4601. (exit $ac_status); }; } &&
  4602. { ac_try='test -s conftest.$ac_objext'
  4603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4604. (eval $ac_try) 2>&5
  4605. ac_status=$?
  4606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4607. (exit $ac_status); }; }; then
  4608. ac_cv_type_pid_t=yes
  4609. else
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. ac_cv_type_pid_t=no
  4613. fi
  4614. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4615. fi
  4616. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4617. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4618. if test $ac_cv_type_pid_t = yes; then
  4619. :
  4620. else
  4621. cat >>confdefs.h <<_ACEOF
  4622. #define pid_t int
  4623. _ACEOF
  4624. fi
  4625. for ac_header in unistd.h vfork.h
  4626. do
  4627. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4628. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4629. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4630. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4631. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4632. echo $ECHO_N "(cached) $ECHO_C" >&6
  4633. fi
  4634. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4635. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4636. else
  4637. # Is the header compilable?
  4638. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4639. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4640. cat >conftest.$ac_ext <<_ACEOF
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. $ac_includes_default
  4647. #include <$ac_header>
  4648. _ACEOF
  4649. rm -f conftest.$ac_objext
  4650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4651. (eval $ac_compile) 2>conftest.er1
  4652. ac_status=$?
  4653. grep -v '^ *+' conftest.er1 >conftest.err
  4654. rm -f conftest.er1
  4655. cat conftest.err >&5
  4656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657. (exit $ac_status); } &&
  4658. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4660. (eval $ac_try) 2>&5
  4661. ac_status=$?
  4662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); }; } &&
  4664. { ac_try='test -s conftest.$ac_objext'
  4665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4666. (eval $ac_try) 2>&5
  4667. ac_status=$?
  4668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. (exit $ac_status); }; }; then
  4670. ac_header_compiler=yes
  4671. else
  4672. echo "$as_me: failed program was:" >&5
  4673. sed 's/^/| /' conftest.$ac_ext >&5
  4674. ac_header_compiler=no
  4675. fi
  4676. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4677. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4678. echo "${ECHO_T}$ac_header_compiler" >&6
  4679. # Is the header present?
  4680. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4681. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4682. cat >conftest.$ac_ext <<_ACEOF
  4683. /* confdefs.h. */
  4684. _ACEOF
  4685. cat confdefs.h >>conftest.$ac_ext
  4686. cat >>conftest.$ac_ext <<_ACEOF
  4687. /* end confdefs.h. */
  4688. #include <$ac_header>
  4689. _ACEOF
  4690. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4691. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4692. ac_status=$?
  4693. grep -v '^ *+' conftest.er1 >conftest.err
  4694. rm -f conftest.er1
  4695. cat conftest.err >&5
  4696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4697. (exit $ac_status); } >/dev/null; then
  4698. if test -s conftest.err; then
  4699. ac_cpp_err=$ac_c_preproc_warn_flag
  4700. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4701. else
  4702. ac_cpp_err=
  4703. fi
  4704. else
  4705. ac_cpp_err=yes
  4706. fi
  4707. if test -z "$ac_cpp_err"; then
  4708. ac_header_preproc=yes
  4709. else
  4710. echo "$as_me: failed program was:" >&5
  4711. sed 's/^/| /' conftest.$ac_ext >&5
  4712. ac_header_preproc=no
  4713. fi
  4714. rm -f conftest.err conftest.$ac_ext
  4715. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4716. echo "${ECHO_T}$ac_header_preproc" >&6
  4717. # So? What about this header?
  4718. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4719. yes:no: )
  4720. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4721. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4722. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4723. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4724. ac_header_preproc=yes
  4725. ;;
  4726. no:yes:* )
  4727. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4728. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4729. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4730. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4731. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4732. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4733. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4734. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4735. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4736. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4737. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4738. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4739. (
  4740. cat <<\_ASBOX
  4741. ## --------------------------------- ##
  4742. ## Report this to the ngircd lists. ##
  4743. ## --------------------------------- ##
  4744. _ASBOX
  4745. ) |
  4746. sed "s/^/$as_me: WARNING: /" >&2
  4747. ;;
  4748. esac
  4749. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4750. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4751. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4752. echo $ECHO_N "(cached) $ECHO_C" >&6
  4753. else
  4754. eval "$as_ac_Header=\$ac_header_preproc"
  4755. fi
  4756. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4757. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4758. fi
  4759. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4760. cat >>confdefs.h <<_ACEOF
  4761. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4762. _ACEOF
  4763. fi
  4764. done
  4765. for ac_func in fork vfork
  4766. do
  4767. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4768. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4769. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4770. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4771. echo $ECHO_N "(cached) $ECHO_C" >&6
  4772. else
  4773. cat >conftest.$ac_ext <<_ACEOF
  4774. /* confdefs.h. */
  4775. _ACEOF
  4776. cat confdefs.h >>conftest.$ac_ext
  4777. cat >>conftest.$ac_ext <<_ACEOF
  4778. /* end confdefs.h. */
  4779. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4781. #define $ac_func innocuous_$ac_func
  4782. /* System header to define __stub macros and hopefully few prototypes,
  4783. which can conflict with char $ac_func (); below.
  4784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4785. <limits.h> exists even on freestanding compilers. */
  4786. #ifdef __STDC__
  4787. # include <limits.h>
  4788. #else
  4789. # include <assert.h>
  4790. #endif
  4791. #undef $ac_func
  4792. /* Override any gcc2 internal prototype to avoid an error. */
  4793. #ifdef __cplusplus
  4794. extern "C"
  4795. {
  4796. #endif
  4797. /* We use char because int might match the return type of a gcc2
  4798. builtin and then its argument prototype would still apply. */
  4799. char $ac_func ();
  4800. /* The GNU C library defines this for functions which it implements
  4801. to always fail with ENOSYS. Some functions are actually named
  4802. something starting with __ and the normal name is an alias. */
  4803. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4804. choke me
  4805. #else
  4806. char (*f) () = $ac_func;
  4807. #endif
  4808. #ifdef __cplusplus
  4809. }
  4810. #endif
  4811. int
  4812. main ()
  4813. {
  4814. return f != $ac_func;
  4815. ;
  4816. return 0;
  4817. }
  4818. _ACEOF
  4819. rm -f conftest.$ac_objext conftest$ac_exeext
  4820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4821. (eval $ac_link) 2>conftest.er1
  4822. ac_status=$?
  4823. grep -v '^ *+' conftest.er1 >conftest.err
  4824. rm -f conftest.er1
  4825. cat conftest.err >&5
  4826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4827. (exit $ac_status); } &&
  4828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4830. (eval $ac_try) 2>&5
  4831. ac_status=$?
  4832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833. (exit $ac_status); }; } &&
  4834. { ac_try='test -s conftest$ac_exeext'
  4835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4836. (eval $ac_try) 2>&5
  4837. ac_status=$?
  4838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; }; then
  4840. eval "$as_ac_var=yes"
  4841. else
  4842. echo "$as_me: failed program was:" >&5
  4843. sed 's/^/| /' conftest.$ac_ext >&5
  4844. eval "$as_ac_var=no"
  4845. fi
  4846. rm -f conftest.err conftest.$ac_objext \
  4847. conftest$ac_exeext conftest.$ac_ext
  4848. fi
  4849. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4850. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4851. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4852. cat >>confdefs.h <<_ACEOF
  4853. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4854. _ACEOF
  4855. fi
  4856. done
  4857. if test "x$ac_cv_func_fork" = xyes; then
  4858. echo "$as_me:$LINENO: checking for working fork" >&5
  4859. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  4860. if test "${ac_cv_func_fork_works+set}" = set; then
  4861. echo $ECHO_N "(cached) $ECHO_C" >&6
  4862. else
  4863. if test "$cross_compiling" = yes; then
  4864. ac_cv_func_fork_works=cross
  4865. else
  4866. cat >conftest.$ac_ext <<_ACEOF
  4867. /* By Ruediger Kuhlmann. */
  4868. #include <sys/types.h>
  4869. #if HAVE_UNISTD_H
  4870. # include <unistd.h>
  4871. #endif
  4872. /* Some systems only have a dummy stub for fork() */
  4873. int main ()
  4874. {
  4875. if (fork() < 0)
  4876. exit (1);
  4877. exit (0);
  4878. }
  4879. _ACEOF
  4880. rm -f conftest$ac_exeext
  4881. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4882. (eval $ac_link) 2>&5
  4883. ac_status=$?
  4884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4885. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4887. (eval $ac_try) 2>&5
  4888. ac_status=$?
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); }; }; then
  4891. ac_cv_func_fork_works=yes
  4892. else
  4893. echo "$as_me: program exited with status $ac_status" >&5
  4894. echo "$as_me: failed program was:" >&5
  4895. sed 's/^/| /' conftest.$ac_ext >&5
  4896. ( exit $ac_status )
  4897. ac_cv_func_fork_works=no
  4898. fi
  4899. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4900. fi
  4901. fi
  4902. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  4903. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  4904. else
  4905. ac_cv_func_fork_works=$ac_cv_func_fork
  4906. fi
  4907. if test "x$ac_cv_func_fork_works" = xcross; then
  4908. case $host in
  4909. *-*-amigaos* | *-*-msdosdjgpp*)
  4910. # Override, as these systems have only a dummy fork() stub
  4911. ac_cv_func_fork_works=no
  4912. ;;
  4913. *)
  4914. ac_cv_func_fork_works=yes
  4915. ;;
  4916. esac
  4917. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  4918. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  4919. fi
  4920. ac_cv_func_vfork_works=$ac_cv_func_vfork
  4921. if test "x$ac_cv_func_vfork" = xyes; then
  4922. echo "$as_me:$LINENO: checking for working vfork" >&5
  4923. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  4924. if test "${ac_cv_func_vfork_works+set}" = set; then
  4925. echo $ECHO_N "(cached) $ECHO_C" >&6
  4926. else
  4927. if test "$cross_compiling" = yes; then
  4928. ac_cv_func_vfork_works=cross
  4929. else
  4930. cat >conftest.$ac_ext <<_ACEOF
  4931. /* confdefs.h. */
  4932. _ACEOF
  4933. cat confdefs.h >>conftest.$ac_ext
  4934. cat >>conftest.$ac_ext <<_ACEOF
  4935. /* end confdefs.h. */
  4936. /* Thanks to Paul Eggert for this test. */
  4937. #include <stdio.h>
  4938. #include <stdlib.h>
  4939. #include <sys/types.h>
  4940. #include <sys/stat.h>
  4941. #include <sys/wait.h>
  4942. #if HAVE_UNISTD_H
  4943. # include <unistd.h>
  4944. #endif
  4945. #if HAVE_VFORK_H
  4946. # include <vfork.h>
  4947. #endif
  4948. /* On some sparc systems, changes by the child to local and incoming
  4949. argument registers are propagated back to the parent. The compiler
  4950. is told about this with #include <vfork.h>, but some compilers
  4951. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  4952. static variable whose address is put into a register that is
  4953. clobbered by the vfork. */
  4954. static void
  4955. #ifdef __cplusplus
  4956. sparc_address_test (int arg)
  4957. # else
  4958. sparc_address_test (arg) int arg;
  4959. #endif
  4960. {
  4961. static pid_t child;
  4962. if (!child) {
  4963. child = vfork ();
  4964. if (child < 0) {
  4965. perror ("vfork");
  4966. _exit(2);
  4967. }
  4968. if (!child) {
  4969. arg = getpid();
  4970. write(-1, "", 0);
  4971. _exit (arg);
  4972. }
  4973. }
  4974. }
  4975. int
  4976. main ()
  4977. {
  4978. pid_t parent = getpid ();
  4979. pid_t child;
  4980. sparc_address_test (0);
  4981. child = vfork ();
  4982. if (child == 0) {
  4983. /* Here is another test for sparc vfork register problems. This
  4984. test uses lots of local variables, at least as many local
  4985. variables as main has allocated so far including compiler
  4986. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  4987. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  4988. reuse the register of parent for one of the local variables,
  4989. since it will think that parent can't possibly be used any more
  4990. in this routine. Assigning to the local variable will thus
  4991. munge parent in the parent process. */
  4992. pid_t
  4993. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  4994. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  4995. /* Convince the compiler that p..p7 are live; otherwise, it might
  4996. use the same hardware register for all 8 local variables. */
  4997. if (p != p1 || p != p2 || p != p3 || p != p4
  4998. || p != p5 || p != p6 || p != p7)
  4999. _exit(1);
  5000. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5001. from child file descriptors. If the child closes a descriptor
  5002. before it execs or exits, this munges the parent's descriptor
  5003. as well. Test for this by closing stdout in the child. */
  5004. _exit(close(fileno(stdout)) != 0);
  5005. } else {
  5006. int status;
  5007. struct stat st;
  5008. while (wait(&status) != child)
  5009. ;
  5010. exit(
  5011. /* Was there some problem with vforking? */
  5012. child < 0
  5013. /* Did the child fail? (This shouldn't happen.) */
  5014. || status
  5015. /* Did the vfork/compiler bug occur? */
  5016. || parent != getpid()
  5017. /* Did the file descriptor bug occur? */
  5018. || fstat(fileno(stdout), &st) != 0
  5019. );
  5020. }
  5021. }
  5022. _ACEOF
  5023. rm -f conftest$ac_exeext
  5024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5025. (eval $ac_link) 2>&5
  5026. ac_status=$?
  5027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5030. (eval $ac_try) 2>&5
  5031. ac_status=$?
  5032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033. (exit $ac_status); }; }; then
  5034. ac_cv_func_vfork_works=yes
  5035. else
  5036. echo "$as_me: program exited with status $ac_status" >&5
  5037. echo "$as_me: failed program was:" >&5
  5038. sed 's/^/| /' conftest.$ac_ext >&5
  5039. ( exit $ac_status )
  5040. ac_cv_func_vfork_works=no
  5041. fi
  5042. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5043. fi
  5044. fi
  5045. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5046. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  5047. fi;
  5048. if test "x$ac_cv_func_fork_works" = xcross; then
  5049. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5050. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5051. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5052. fi
  5053. if test "x$ac_cv_func_vfork_works" = xyes; then
  5054. cat >>confdefs.h <<\_ACEOF
  5055. #define HAVE_WORKING_VFORK 1
  5056. _ACEOF
  5057. else
  5058. cat >>confdefs.h <<\_ACEOF
  5059. #define vfork fork
  5060. _ACEOF
  5061. fi
  5062. if test "x$ac_cv_func_fork_works" = xyes; then
  5063. cat >>confdefs.h <<\_ACEOF
  5064. #define HAVE_WORKING_FORK 1
  5065. _ACEOF
  5066. fi
  5067. for ac_func in strftime
  5068. do
  5069. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5070. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5071. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5072. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5073. echo $ECHO_N "(cached) $ECHO_C" >&6
  5074. else
  5075. cat >conftest.$ac_ext <<_ACEOF
  5076. /* confdefs.h. */
  5077. _ACEOF
  5078. cat confdefs.h >>conftest.$ac_ext
  5079. cat >>conftest.$ac_ext <<_ACEOF
  5080. /* end confdefs.h. */
  5081. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5082. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5083. #define $ac_func innocuous_$ac_func
  5084. /* System header to define __stub macros and hopefully few prototypes,
  5085. which can conflict with char $ac_func (); below.
  5086. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5087. <limits.h> exists even on freestanding compilers. */
  5088. #ifdef __STDC__
  5089. # include <limits.h>
  5090. #else
  5091. # include <assert.h>
  5092. #endif
  5093. #undef $ac_func
  5094. /* Override any gcc2 internal prototype to avoid an error. */
  5095. #ifdef __cplusplus
  5096. extern "C"
  5097. {
  5098. #endif
  5099. /* We use char because int might match the return type of a gcc2
  5100. builtin and then its argument prototype would still apply. */
  5101. char $ac_func ();
  5102. /* The GNU C library defines this for functions which it implements
  5103. to always fail with ENOSYS. Some functions are actually named
  5104. something starting with __ and the normal name is an alias. */
  5105. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5106. choke me
  5107. #else
  5108. char (*f) () = $ac_func;
  5109. #endif
  5110. #ifdef __cplusplus
  5111. }
  5112. #endif
  5113. int
  5114. main ()
  5115. {
  5116. return f != $ac_func;
  5117. ;
  5118. return 0;
  5119. }
  5120. _ACEOF
  5121. rm -f conftest.$ac_objext conftest$ac_exeext
  5122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5123. (eval $ac_link) 2>conftest.er1
  5124. ac_status=$?
  5125. grep -v '^ *+' conftest.er1 >conftest.err
  5126. rm -f conftest.er1
  5127. cat conftest.err >&5
  5128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5129. (exit $ac_status); } &&
  5130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5132. (eval $ac_try) 2>&5
  5133. ac_status=$?
  5134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5135. (exit $ac_status); }; } &&
  5136. { ac_try='test -s conftest$ac_exeext'
  5137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5138. (eval $ac_try) 2>&5
  5139. ac_status=$?
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); }; }; then
  5142. eval "$as_ac_var=yes"
  5143. else
  5144. echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. eval "$as_ac_var=no"
  5147. fi
  5148. rm -f conftest.err conftest.$ac_objext \
  5149. conftest$ac_exeext conftest.$ac_ext
  5150. fi
  5151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5152. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5153. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5154. cat >>confdefs.h <<_ACEOF
  5155. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5156. _ACEOF
  5157. else
  5158. # strftime is in -lintl on SCO UNIX.
  5159. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  5160. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  5161. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  5162. echo $ECHO_N "(cached) $ECHO_C" >&6
  5163. else
  5164. ac_check_lib_save_LIBS=$LIBS
  5165. LIBS="-lintl $LIBS"
  5166. cat >conftest.$ac_ext <<_ACEOF
  5167. /* confdefs.h. */
  5168. _ACEOF
  5169. cat confdefs.h >>conftest.$ac_ext
  5170. cat >>conftest.$ac_ext <<_ACEOF
  5171. /* end confdefs.h. */
  5172. /* Override any gcc2 internal prototype to avoid an error. */
  5173. #ifdef __cplusplus
  5174. extern "C"
  5175. #endif
  5176. /* We use char because int might match the return type of a gcc2
  5177. builtin and then its argument prototype would still apply. */
  5178. char strftime ();
  5179. int
  5180. main ()
  5181. {
  5182. strftime ();
  5183. ;
  5184. return 0;
  5185. }
  5186. _ACEOF
  5187. rm -f conftest.$ac_objext conftest$ac_exeext
  5188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5189. (eval $ac_link) 2>conftest.er1
  5190. ac_status=$?
  5191. grep -v '^ *+' conftest.er1 >conftest.err
  5192. rm -f conftest.er1
  5193. cat conftest.err >&5
  5194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5195. (exit $ac_status); } &&
  5196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5198. (eval $ac_try) 2>&5
  5199. ac_status=$?
  5200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5201. (exit $ac_status); }; } &&
  5202. { ac_try='test -s conftest$ac_exeext'
  5203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5204. (eval $ac_try) 2>&5
  5205. ac_status=$?
  5206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5207. (exit $ac_status); }; }; then
  5208. ac_cv_lib_intl_strftime=yes
  5209. else
  5210. echo "$as_me: failed program was:" >&5
  5211. sed 's/^/| /' conftest.$ac_ext >&5
  5212. ac_cv_lib_intl_strftime=no
  5213. fi
  5214. rm -f conftest.err conftest.$ac_objext \
  5215. conftest$ac_exeext conftest.$ac_ext
  5216. LIBS=$ac_check_lib_save_LIBS
  5217. fi
  5218. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  5219. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  5220. if test $ac_cv_lib_intl_strftime = yes; then
  5221. cat >>confdefs.h <<\_ACEOF
  5222. #define HAVE_STRFTIME 1
  5223. _ACEOF
  5224. LIBS="-lintl $LIBS"
  5225. fi
  5226. fi
  5227. done
  5228. for ac_func in \
  5229. bind gethostbyaddr gethostbyname gethostname inet_ntoa malloc memmove \
  5230. memset realloc setsid setsockopt socket strcasecmp strchr strerror \
  5231. strstr waitpid
  5232. do
  5233. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5234. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5235. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5236. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5237. echo $ECHO_N "(cached) $ECHO_C" >&6
  5238. else
  5239. cat >conftest.$ac_ext <<_ACEOF
  5240. /* confdefs.h. */
  5241. _ACEOF
  5242. cat confdefs.h >>conftest.$ac_ext
  5243. cat >>conftest.$ac_ext <<_ACEOF
  5244. /* end confdefs.h. */
  5245. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5246. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5247. #define $ac_func innocuous_$ac_func
  5248. /* System header to define __stub macros and hopefully few prototypes,
  5249. which can conflict with char $ac_func (); below.
  5250. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5251. <limits.h> exists even on freestanding compilers. */
  5252. #ifdef __STDC__
  5253. # include <limits.h>
  5254. #else
  5255. # include <assert.h>
  5256. #endif
  5257. #undef $ac_func
  5258. /* Override any gcc2 internal prototype to avoid an error. */
  5259. #ifdef __cplusplus
  5260. extern "C"
  5261. {
  5262. #endif
  5263. /* We use char because int might match the return type of a gcc2
  5264. builtin and then its argument prototype would still apply. */
  5265. char $ac_func ();
  5266. /* The GNU C library defines this for functions which it implements
  5267. to always fail with ENOSYS. Some functions are actually named
  5268. something starting with __ and the normal name is an alias. */
  5269. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5270. choke me
  5271. #else
  5272. char (*f) () = $ac_func;
  5273. #endif
  5274. #ifdef __cplusplus
  5275. }
  5276. #endif
  5277. int
  5278. main ()
  5279. {
  5280. return f != $ac_func;
  5281. ;
  5282. return 0;
  5283. }
  5284. _ACEOF
  5285. rm -f conftest.$ac_objext conftest$ac_exeext
  5286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5287. (eval $ac_link) 2>conftest.er1
  5288. ac_status=$?
  5289. grep -v '^ *+' conftest.er1 >conftest.err
  5290. rm -f conftest.er1
  5291. cat conftest.err >&5
  5292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5293. (exit $ac_status); } &&
  5294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5296. (eval $ac_try) 2>&5
  5297. ac_status=$?
  5298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); }; } &&
  5300. { ac_try='test -s conftest$ac_exeext'
  5301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5302. (eval $ac_try) 2>&5
  5303. ac_status=$?
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); }; }; then
  5306. eval "$as_ac_var=yes"
  5307. else
  5308. echo "$as_me: failed program was:" >&5
  5309. sed 's/^/| /' conftest.$ac_ext >&5
  5310. eval "$as_ac_var=no"
  5311. fi
  5312. rm -f conftest.err conftest.$ac_objext \
  5313. conftest$ac_exeext conftest.$ac_ext
  5314. fi
  5315. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5316. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5317. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5318. cat >>confdefs.h <<_ACEOF
  5319. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5320. _ACEOF
  5321. else
  5322. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  5323. echo "$as_me: error: required function missing!" >&2;}
  5324. { (exit 1); exit 1; }; }
  5325. fi
  5326. done
  5327. for ac_func in inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat
  5328. do
  5329. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5330. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5331. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5332. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5333. echo $ECHO_N "(cached) $ECHO_C" >&6
  5334. else
  5335. cat >conftest.$ac_ext <<_ACEOF
  5336. /* confdefs.h. */
  5337. _ACEOF
  5338. cat confdefs.h >>conftest.$ac_ext
  5339. cat >>conftest.$ac_ext <<_ACEOF
  5340. /* end confdefs.h. */
  5341. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5342. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5343. #define $ac_func innocuous_$ac_func
  5344. /* System header to define __stub macros and hopefully few prototypes,
  5345. which can conflict with char $ac_func (); below.
  5346. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5347. <limits.h> exists even on freestanding compilers. */
  5348. #ifdef __STDC__
  5349. # include <limits.h>
  5350. #else
  5351. # include <assert.h>
  5352. #endif
  5353. #undef $ac_func
  5354. /* Override any gcc2 internal prototype to avoid an error. */
  5355. #ifdef __cplusplus
  5356. extern "C"
  5357. {
  5358. #endif
  5359. /* We use char because int might match the return type of a gcc2
  5360. builtin and then its argument prototype would still apply. */
  5361. char $ac_func ();
  5362. /* The GNU C library defines this for functions which it implements
  5363. to always fail with ENOSYS. Some functions are actually named
  5364. something starting with __ and the normal name is an alias. */
  5365. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5366. choke me
  5367. #else
  5368. char (*f) () = $ac_func;
  5369. #endif
  5370. #ifdef __cplusplus
  5371. }
  5372. #endif
  5373. int
  5374. main ()
  5375. {
  5376. return f != $ac_func;
  5377. ;
  5378. return 0;
  5379. }
  5380. _ACEOF
  5381. rm -f conftest.$ac_objext conftest$ac_exeext
  5382. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5383. (eval $ac_link) 2>conftest.er1
  5384. ac_status=$?
  5385. grep -v '^ *+' conftest.er1 >conftest.err
  5386. rm -f conftest.er1
  5387. cat conftest.err >&5
  5388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5389. (exit $ac_status); } &&
  5390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5392. (eval $ac_try) 2>&5
  5393. ac_status=$?
  5394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); }; } &&
  5396. { ac_try='test -s conftest$ac_exeext'
  5397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5398. (eval $ac_try) 2>&5
  5399. ac_status=$?
  5400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5401. (exit $ac_status); }; }; then
  5402. eval "$as_ac_var=yes"
  5403. else
  5404. echo "$as_me: failed program was:" >&5
  5405. sed 's/^/| /' conftest.$ac_ext >&5
  5406. eval "$as_ac_var=no"
  5407. fi
  5408. rm -f conftest.err conftest.$ac_objext \
  5409. conftest$ac_exeext conftest.$ac_ext
  5410. fi
  5411. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5412. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5413. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5414. cat >>confdefs.h <<_ACEOF
  5415. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5416. _ACEOF
  5417. fi
  5418. done
  5419. for ac_func in select
  5420. do
  5421. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5422. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5423. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5424. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5425. echo $ECHO_N "(cached) $ECHO_C" >&6
  5426. else
  5427. cat >conftest.$ac_ext <<_ACEOF
  5428. /* confdefs.h. */
  5429. _ACEOF
  5430. cat confdefs.h >>conftest.$ac_ext
  5431. cat >>conftest.$ac_ext <<_ACEOF
  5432. /* end confdefs.h. */
  5433. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5435. #define $ac_func innocuous_$ac_func
  5436. /* System header to define __stub macros and hopefully few prototypes,
  5437. which can conflict with char $ac_func (); below.
  5438. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5439. <limits.h> exists even on freestanding compilers. */
  5440. #ifdef __STDC__
  5441. # include <limits.h>
  5442. #else
  5443. # include <assert.h>
  5444. #endif
  5445. #undef $ac_func
  5446. /* Override any gcc2 internal prototype to avoid an error. */
  5447. #ifdef __cplusplus
  5448. extern "C"
  5449. {
  5450. #endif
  5451. /* We use char because int might match the return type of a gcc2
  5452. builtin and then its argument prototype would still apply. */
  5453. char $ac_func ();
  5454. /* The GNU C library defines this for functions which it implements
  5455. to always fail with ENOSYS. Some functions are actually named
  5456. something starting with __ and the normal name is an alias. */
  5457. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5458. choke me
  5459. #else
  5460. char (*f) () = $ac_func;
  5461. #endif
  5462. #ifdef __cplusplus
  5463. }
  5464. #endif
  5465. int
  5466. main ()
  5467. {
  5468. return f != $ac_func;
  5469. ;
  5470. return 0;
  5471. }
  5472. _ACEOF
  5473. rm -f conftest.$ac_objext conftest$ac_exeext
  5474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5475. (eval $ac_link) 2>conftest.er1
  5476. ac_status=$?
  5477. grep -v '^ *+' conftest.er1 >conftest.err
  5478. rm -f conftest.er1
  5479. cat conftest.err >&5
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); } &&
  5482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5484. (eval $ac_try) 2>&5
  5485. ac_status=$?
  5486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5487. (exit $ac_status); }; } &&
  5488. { ac_try='test -s conftest$ac_exeext'
  5489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5490. (eval $ac_try) 2>&5
  5491. ac_status=$?
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); }; }; then
  5494. eval "$as_ac_var=yes"
  5495. else
  5496. echo "$as_me: failed program was:" >&5
  5497. sed 's/^/| /' conftest.$ac_ext >&5
  5498. eval "$as_ac_var=no"
  5499. fi
  5500. rm -f conftest.err conftest.$ac_objext \
  5501. conftest$ac_exeext conftest.$ac_ext
  5502. fi
  5503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5504. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5505. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5506. cat >>confdefs.h <<_ACEOF
  5507. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5508. _ACEOF
  5509. for ac_header in sys/select.h
  5510. do
  5511. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5512. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5513. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5514. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5515. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5516. echo $ECHO_N "(cached) $ECHO_C" >&6
  5517. fi
  5518. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5519. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5520. else
  5521. # Is the header compilable?
  5522. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5523. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5524. cat >conftest.$ac_ext <<_ACEOF
  5525. /* confdefs.h. */
  5526. _ACEOF
  5527. cat confdefs.h >>conftest.$ac_ext
  5528. cat >>conftest.$ac_ext <<_ACEOF
  5529. /* end confdefs.h. */
  5530. $ac_includes_default
  5531. #include <$ac_header>
  5532. _ACEOF
  5533. rm -f conftest.$ac_objext
  5534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5535. (eval $ac_compile) 2>conftest.er1
  5536. ac_status=$?
  5537. grep -v '^ *+' conftest.er1 >conftest.err
  5538. rm -f conftest.er1
  5539. cat conftest.err >&5
  5540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5541. (exit $ac_status); } &&
  5542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5544. (eval $ac_try) 2>&5
  5545. ac_status=$?
  5546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547. (exit $ac_status); }; } &&
  5548. { ac_try='test -s conftest.$ac_objext'
  5549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5550. (eval $ac_try) 2>&5
  5551. ac_status=$?
  5552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5553. (exit $ac_status); }; }; then
  5554. ac_header_compiler=yes
  5555. else
  5556. echo "$as_me: failed program was:" >&5
  5557. sed 's/^/| /' conftest.$ac_ext >&5
  5558. ac_header_compiler=no
  5559. fi
  5560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5561. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5562. echo "${ECHO_T}$ac_header_compiler" >&6
  5563. # Is the header present?
  5564. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5565. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5566. cat >conftest.$ac_ext <<_ACEOF
  5567. /* confdefs.h. */
  5568. _ACEOF
  5569. cat confdefs.h >>conftest.$ac_ext
  5570. cat >>conftest.$ac_ext <<_ACEOF
  5571. /* end confdefs.h. */
  5572. #include <$ac_header>
  5573. _ACEOF
  5574. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5575. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5576. ac_status=$?
  5577. grep -v '^ *+' conftest.er1 >conftest.err
  5578. rm -f conftest.er1
  5579. cat conftest.err >&5
  5580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5581. (exit $ac_status); } >/dev/null; then
  5582. if test -s conftest.err; then
  5583. ac_cpp_err=$ac_c_preproc_warn_flag
  5584. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5585. else
  5586. ac_cpp_err=
  5587. fi
  5588. else
  5589. ac_cpp_err=yes
  5590. fi
  5591. if test -z "$ac_cpp_err"; then
  5592. ac_header_preproc=yes
  5593. else
  5594. echo "$as_me: failed program was:" >&5
  5595. sed 's/^/| /' conftest.$ac_ext >&5
  5596. ac_header_preproc=no
  5597. fi
  5598. rm -f conftest.err conftest.$ac_ext
  5599. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5600. echo "${ECHO_T}$ac_header_preproc" >&6
  5601. # So? What about this header?
  5602. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5603. yes:no: )
  5604. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5605. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5606. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5607. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5608. ac_header_preproc=yes
  5609. ;;
  5610. no:yes:* )
  5611. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5612. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5613. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5614. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5615. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5616. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5617. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5618. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5619. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5620. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5621. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5622. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5623. (
  5624. cat <<\_ASBOX
  5625. ## --------------------------------- ##
  5626. ## Report this to the ngircd lists. ##
  5627. ## --------------------------------- ##
  5628. _ASBOX
  5629. ) |
  5630. sed "s/^/$as_me: WARNING: /" >&2
  5631. ;;
  5632. esac
  5633. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5634. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5635. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5636. echo $ECHO_N "(cached) $ECHO_C" >&6
  5637. else
  5638. eval "$as_ac_Header=\$ac_header_preproc"
  5639. fi
  5640. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5641. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5642. fi
  5643. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5644. cat >>confdefs.h <<_ACEOF
  5645. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5646. _ACEOF
  5647. fi
  5648. done
  5649. else
  5650. { { echo "$as_me:$LINENO: error: required function select() is missing!" >&5
  5651. echo "$as_me: error: required function select() is missing!" >&2;}
  5652. { (exit 1); exit 1; }; }
  5653. fi
  5654. done
  5655. # -- Configuration options --
  5656. x_syslog_on=no
  5657. # Check whether --with-syslog or --without-syslog was given.
  5658. if test "${with_syslog+set}" = set; then
  5659. withval="$with_syslog"
  5660. if test "$withval" != "no"; then
  5661. if test "$withval" != "yes"; then
  5662. CFLAGS="-I$withval/include $CFLAGS"
  5663. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5664. LDFLAGS="-L$withval/lib $LDFLAGS"
  5665. fi
  5666. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5667. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5668. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5669. echo $ECHO_N "(cached) $ECHO_C" >&6
  5670. else
  5671. ac_check_lib_save_LIBS=$LIBS
  5672. LIBS="-lbe $LIBS"
  5673. cat >conftest.$ac_ext <<_ACEOF
  5674. /* confdefs.h. */
  5675. _ACEOF
  5676. cat confdefs.h >>conftest.$ac_ext
  5677. cat >>conftest.$ac_ext <<_ACEOF
  5678. /* end confdefs.h. */
  5679. /* Override any gcc2 internal prototype to avoid an error. */
  5680. #ifdef __cplusplus
  5681. extern "C"
  5682. #endif
  5683. /* We use char because int might match the return type of a gcc2
  5684. builtin and then its argument prototype would still apply. */
  5685. char syslog ();
  5686. int
  5687. main ()
  5688. {
  5689. syslog ();
  5690. ;
  5691. return 0;
  5692. }
  5693. _ACEOF
  5694. rm -f conftest.$ac_objext conftest$ac_exeext
  5695. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5696. (eval $ac_link) 2>conftest.er1
  5697. ac_status=$?
  5698. grep -v '^ *+' conftest.er1 >conftest.err
  5699. rm -f conftest.er1
  5700. cat conftest.err >&5
  5701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5702. (exit $ac_status); } &&
  5703. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5705. (eval $ac_try) 2>&5
  5706. ac_status=$?
  5707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5708. (exit $ac_status); }; } &&
  5709. { ac_try='test -s conftest$ac_exeext'
  5710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5711. (eval $ac_try) 2>&5
  5712. ac_status=$?
  5713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714. (exit $ac_status); }; }; then
  5715. ac_cv_lib_be_syslog=yes
  5716. else
  5717. echo "$as_me: failed program was:" >&5
  5718. sed 's/^/| /' conftest.$ac_ext >&5
  5719. ac_cv_lib_be_syslog=no
  5720. fi
  5721. rm -f conftest.err conftest.$ac_objext \
  5722. conftest$ac_exeext conftest.$ac_ext
  5723. LIBS=$ac_check_lib_save_LIBS
  5724. fi
  5725. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5726. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5727. if test $ac_cv_lib_be_syslog = yes; then
  5728. cat >>confdefs.h <<_ACEOF
  5729. #define HAVE_LIBBE 1
  5730. _ACEOF
  5731. LIBS="-lbe $LIBS"
  5732. fi
  5733. for ac_func in syslog
  5734. do
  5735. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5736. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5737. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5738. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5739. echo $ECHO_N "(cached) $ECHO_C" >&6
  5740. else
  5741. cat >conftest.$ac_ext <<_ACEOF
  5742. /* confdefs.h. */
  5743. _ACEOF
  5744. cat confdefs.h >>conftest.$ac_ext
  5745. cat >>conftest.$ac_ext <<_ACEOF
  5746. /* end confdefs.h. */
  5747. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5749. #define $ac_func innocuous_$ac_func
  5750. /* System header to define __stub macros and hopefully few prototypes,
  5751. which can conflict with char $ac_func (); below.
  5752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5753. <limits.h> exists even on freestanding compilers. */
  5754. #ifdef __STDC__
  5755. # include <limits.h>
  5756. #else
  5757. # include <assert.h>
  5758. #endif
  5759. #undef $ac_func
  5760. /* Override any gcc2 internal prototype to avoid an error. */
  5761. #ifdef __cplusplus
  5762. extern "C"
  5763. {
  5764. #endif
  5765. /* We use char because int might match the return type of a gcc2
  5766. builtin and then its argument prototype would still apply. */
  5767. char $ac_func ();
  5768. /* The GNU C library defines this for functions which it implements
  5769. to always fail with ENOSYS. Some functions are actually named
  5770. something starting with __ and the normal name is an alias. */
  5771. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5772. choke me
  5773. #else
  5774. char (*f) () = $ac_func;
  5775. #endif
  5776. #ifdef __cplusplus
  5777. }
  5778. #endif
  5779. int
  5780. main ()
  5781. {
  5782. return f != $ac_func;
  5783. ;
  5784. return 0;
  5785. }
  5786. _ACEOF
  5787. rm -f conftest.$ac_objext conftest$ac_exeext
  5788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5789. (eval $ac_link) 2>conftest.er1
  5790. ac_status=$?
  5791. grep -v '^ *+' conftest.er1 >conftest.err
  5792. rm -f conftest.er1
  5793. cat conftest.err >&5
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); } &&
  5796. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5798. (eval $ac_try) 2>&5
  5799. ac_status=$?
  5800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5801. (exit $ac_status); }; } &&
  5802. { ac_try='test -s conftest$ac_exeext'
  5803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5804. (eval $ac_try) 2>&5
  5805. ac_status=$?
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); }; }; then
  5808. eval "$as_ac_var=yes"
  5809. else
  5810. echo "$as_me: failed program was:" >&5
  5811. sed 's/^/| /' conftest.$ac_ext >&5
  5812. eval "$as_ac_var=no"
  5813. fi
  5814. rm -f conftest.err conftest.$ac_objext \
  5815. conftest$ac_exeext conftest.$ac_ext
  5816. fi
  5817. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5818. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5819. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5820. cat >>confdefs.h <<_ACEOF
  5821. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5822. _ACEOF
  5823. x_syslog_on=yes
  5824. else
  5825. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  5826. echo "$as_me: error: Can't enable syslog!" >&2;}
  5827. { (exit 1); exit 1; }; }
  5828. fi
  5829. done
  5830. fi
  5831. else
  5832. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5833. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5834. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5835. echo $ECHO_N "(cached) $ECHO_C" >&6
  5836. else
  5837. ac_check_lib_save_LIBS=$LIBS
  5838. LIBS="-lbe $LIBS"
  5839. cat >conftest.$ac_ext <<_ACEOF
  5840. /* confdefs.h. */
  5841. _ACEOF
  5842. cat confdefs.h >>conftest.$ac_ext
  5843. cat >>conftest.$ac_ext <<_ACEOF
  5844. /* end confdefs.h. */
  5845. /* Override any gcc2 internal prototype to avoid an error. */
  5846. #ifdef __cplusplus
  5847. extern "C"
  5848. #endif
  5849. /* We use char because int might match the return type of a gcc2
  5850. builtin and then its argument prototype would still apply. */
  5851. char syslog ();
  5852. int
  5853. main ()
  5854. {
  5855. syslog ();
  5856. ;
  5857. return 0;
  5858. }
  5859. _ACEOF
  5860. rm -f conftest.$ac_objext conftest$ac_exeext
  5861. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5862. (eval $ac_link) 2>conftest.er1
  5863. ac_status=$?
  5864. grep -v '^ *+' conftest.er1 >conftest.err
  5865. rm -f conftest.er1
  5866. cat conftest.err >&5
  5867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); } &&
  5869. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5871. (eval $ac_try) 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); }; } &&
  5875. { ac_try='test -s conftest$ac_exeext'
  5876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5877. (eval $ac_try) 2>&5
  5878. ac_status=$?
  5879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); }; }; then
  5881. ac_cv_lib_be_syslog=yes
  5882. else
  5883. echo "$as_me: failed program was:" >&5
  5884. sed 's/^/| /' conftest.$ac_ext >&5
  5885. ac_cv_lib_be_syslog=no
  5886. fi
  5887. rm -f conftest.err conftest.$ac_objext \
  5888. conftest$ac_exeext conftest.$ac_ext
  5889. LIBS=$ac_check_lib_save_LIBS
  5890. fi
  5891. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5892. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5893. if test $ac_cv_lib_be_syslog = yes; then
  5894. cat >>confdefs.h <<_ACEOF
  5895. #define HAVE_LIBBE 1
  5896. _ACEOF
  5897. LIBS="-lbe $LIBS"
  5898. fi
  5899. for ac_func in syslog
  5900. do
  5901. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5902. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5903. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5904. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5905. echo $ECHO_N "(cached) $ECHO_C" >&6
  5906. else
  5907. cat >conftest.$ac_ext <<_ACEOF
  5908. /* confdefs.h. */
  5909. _ACEOF
  5910. cat confdefs.h >>conftest.$ac_ext
  5911. cat >>conftest.$ac_ext <<_ACEOF
  5912. /* end confdefs.h. */
  5913. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5914. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5915. #define $ac_func innocuous_$ac_func
  5916. /* System header to define __stub macros and hopefully few prototypes,
  5917. which can conflict with char $ac_func (); below.
  5918. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5919. <limits.h> exists even on freestanding compilers. */
  5920. #ifdef __STDC__
  5921. # include <limits.h>
  5922. #else
  5923. # include <assert.h>
  5924. #endif
  5925. #undef $ac_func
  5926. /* Override any gcc2 internal prototype to avoid an error. */
  5927. #ifdef __cplusplus
  5928. extern "C"
  5929. {
  5930. #endif
  5931. /* We use char because int might match the return type of a gcc2
  5932. builtin and then its argument prototype would still apply. */
  5933. char $ac_func ();
  5934. /* The GNU C library defines this for functions which it implements
  5935. to always fail with ENOSYS. Some functions are actually named
  5936. something starting with __ and the normal name is an alias. */
  5937. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5938. choke me
  5939. #else
  5940. char (*f) () = $ac_func;
  5941. #endif
  5942. #ifdef __cplusplus
  5943. }
  5944. #endif
  5945. int
  5946. main ()
  5947. {
  5948. return f != $ac_func;
  5949. ;
  5950. return 0;
  5951. }
  5952. _ACEOF
  5953. rm -f conftest.$ac_objext conftest$ac_exeext
  5954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5955. (eval $ac_link) 2>conftest.er1
  5956. ac_status=$?
  5957. grep -v '^ *+' conftest.er1 >conftest.err
  5958. rm -f conftest.er1
  5959. cat conftest.err >&5
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); } &&
  5962. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5964. (eval $ac_try) 2>&5
  5965. ac_status=$?
  5966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5967. (exit $ac_status); }; } &&
  5968. { ac_try='test -s conftest$ac_exeext'
  5969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5970. (eval $ac_try) 2>&5
  5971. ac_status=$?
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); }; }; then
  5974. eval "$as_ac_var=yes"
  5975. else
  5976. echo "$as_me: failed program was:" >&5
  5977. sed 's/^/| /' conftest.$ac_ext >&5
  5978. eval "$as_ac_var=no"
  5979. fi
  5980. rm -f conftest.err conftest.$ac_objext \
  5981. conftest$ac_exeext conftest.$ac_ext
  5982. fi
  5983. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5984. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5985. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5986. cat >>confdefs.h <<_ACEOF
  5987. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5988. _ACEOF
  5989. x_syslog_on=yes
  5990. fi
  5991. done
  5992. fi;
  5993. if test "$x_syslog_on" = "yes"; then
  5994. cat >>confdefs.h <<\_ACEOF
  5995. #define SYSLOG 1
  5996. _ACEOF
  5997. for ac_header in syslog.h
  5998. do
  5999. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6000. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6001. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6002. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6003. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6004. echo $ECHO_N "(cached) $ECHO_C" >&6
  6005. fi
  6006. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6007. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6008. else
  6009. # Is the header compilable?
  6010. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6011. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6012. cat >conftest.$ac_ext <<_ACEOF
  6013. /* confdefs.h. */
  6014. _ACEOF
  6015. cat confdefs.h >>conftest.$ac_ext
  6016. cat >>conftest.$ac_ext <<_ACEOF
  6017. /* end confdefs.h. */
  6018. $ac_includes_default
  6019. #include <$ac_header>
  6020. _ACEOF
  6021. rm -f conftest.$ac_objext
  6022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6023. (eval $ac_compile) 2>conftest.er1
  6024. ac_status=$?
  6025. grep -v '^ *+' conftest.er1 >conftest.err
  6026. rm -f conftest.er1
  6027. cat conftest.err >&5
  6028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6029. (exit $ac_status); } &&
  6030. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6032. (eval $ac_try) 2>&5
  6033. ac_status=$?
  6034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6035. (exit $ac_status); }; } &&
  6036. { ac_try='test -s conftest.$ac_objext'
  6037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6038. (eval $ac_try) 2>&5
  6039. ac_status=$?
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); }; }; then
  6042. ac_header_compiler=yes
  6043. else
  6044. echo "$as_me: failed program was:" >&5
  6045. sed 's/^/| /' conftest.$ac_ext >&5
  6046. ac_header_compiler=no
  6047. fi
  6048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6050. echo "${ECHO_T}$ac_header_compiler" >&6
  6051. # Is the header present?
  6052. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6053. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6054. cat >conftest.$ac_ext <<_ACEOF
  6055. /* confdefs.h. */
  6056. _ACEOF
  6057. cat confdefs.h >>conftest.$ac_ext
  6058. cat >>conftest.$ac_ext <<_ACEOF
  6059. /* end confdefs.h. */
  6060. #include <$ac_header>
  6061. _ACEOF
  6062. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6063. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6064. ac_status=$?
  6065. grep -v '^ *+' conftest.er1 >conftest.err
  6066. rm -f conftest.er1
  6067. cat conftest.err >&5
  6068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); } >/dev/null; then
  6070. if test -s conftest.err; then
  6071. ac_cpp_err=$ac_c_preproc_warn_flag
  6072. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6073. else
  6074. ac_cpp_err=
  6075. fi
  6076. else
  6077. ac_cpp_err=yes
  6078. fi
  6079. if test -z "$ac_cpp_err"; then
  6080. ac_header_preproc=yes
  6081. else
  6082. echo "$as_me: failed program was:" >&5
  6083. sed 's/^/| /' conftest.$ac_ext >&5
  6084. ac_header_preproc=no
  6085. fi
  6086. rm -f conftest.err conftest.$ac_ext
  6087. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6088. echo "${ECHO_T}$ac_header_preproc" >&6
  6089. # So? What about this header?
  6090. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6091. yes:no: )
  6092. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6093. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6094. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6095. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6096. ac_header_preproc=yes
  6097. ;;
  6098. no:yes:* )
  6099. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6100. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6101. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6102. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6103. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6104. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6105. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6106. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6107. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6108. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6109. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6110. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6111. (
  6112. cat <<\_ASBOX
  6113. ## --------------------------------- ##
  6114. ## Report this to the ngircd lists. ##
  6115. ## --------------------------------- ##
  6116. _ASBOX
  6117. ) |
  6118. sed "s/^/$as_me: WARNING: /" >&2
  6119. ;;
  6120. esac
  6121. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6122. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6123. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6124. echo $ECHO_N "(cached) $ECHO_C" >&6
  6125. else
  6126. eval "$as_ac_Header=\$ac_header_preproc"
  6127. fi
  6128. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6129. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6130. fi
  6131. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6132. cat >>confdefs.h <<_ACEOF
  6133. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6134. _ACEOF
  6135. else
  6136. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6137. echo "$as_me: error: required C header missing!" >&2;}
  6138. { (exit 1); exit 1; }; }
  6139. fi
  6140. done
  6141. fi
  6142. x_zlib_on=no
  6143. # Check whether --with-zlib or --without-zlib was given.
  6144. if test "${with_zlib+set}" = set; then
  6145. withval="$with_zlib"
  6146. if test "$withval" != "no"; then
  6147. if test "$withval" != "yes"; then
  6148. CFLAGS="-I$withval/include $CFLAGS"
  6149. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6150. LDFLAGS="-L$withval/lib $LDFLAGS"
  6151. fi
  6152. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6153. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6154. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6155. echo $ECHO_N "(cached) $ECHO_C" >&6
  6156. else
  6157. ac_check_lib_save_LIBS=$LIBS
  6158. LIBS="-lz $LIBS"
  6159. cat >conftest.$ac_ext <<_ACEOF
  6160. /* confdefs.h. */
  6161. _ACEOF
  6162. cat confdefs.h >>conftest.$ac_ext
  6163. cat >>conftest.$ac_ext <<_ACEOF
  6164. /* end confdefs.h. */
  6165. /* Override any gcc2 internal prototype to avoid an error. */
  6166. #ifdef __cplusplus
  6167. extern "C"
  6168. #endif
  6169. /* We use char because int might match the return type of a gcc2
  6170. builtin and then its argument prototype would still apply. */
  6171. char deflate ();
  6172. int
  6173. main ()
  6174. {
  6175. deflate ();
  6176. ;
  6177. return 0;
  6178. }
  6179. _ACEOF
  6180. rm -f conftest.$ac_objext conftest$ac_exeext
  6181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6182. (eval $ac_link) 2>conftest.er1
  6183. ac_status=$?
  6184. grep -v '^ *+' conftest.er1 >conftest.err
  6185. rm -f conftest.er1
  6186. cat conftest.err >&5
  6187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6188. (exit $ac_status); } &&
  6189. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6191. (eval $ac_try) 2>&5
  6192. ac_status=$?
  6193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6194. (exit $ac_status); }; } &&
  6195. { ac_try='test -s conftest$ac_exeext'
  6196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6197. (eval $ac_try) 2>&5
  6198. ac_status=$?
  6199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6200. (exit $ac_status); }; }; then
  6201. ac_cv_lib_z_deflate=yes
  6202. else
  6203. echo "$as_me: failed program was:" >&5
  6204. sed 's/^/| /' conftest.$ac_ext >&5
  6205. ac_cv_lib_z_deflate=no
  6206. fi
  6207. rm -f conftest.err conftest.$ac_objext \
  6208. conftest$ac_exeext conftest.$ac_ext
  6209. LIBS=$ac_check_lib_save_LIBS
  6210. fi
  6211. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6212. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6213. if test $ac_cv_lib_z_deflate = yes; then
  6214. cat >>confdefs.h <<_ACEOF
  6215. #define HAVE_LIBZ 1
  6216. _ACEOF
  6217. LIBS="-lz $LIBS"
  6218. fi
  6219. for ac_func in deflate
  6220. do
  6221. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6222. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6223. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6224. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6225. echo $ECHO_N "(cached) $ECHO_C" >&6
  6226. else
  6227. cat >conftest.$ac_ext <<_ACEOF
  6228. /* confdefs.h. */
  6229. _ACEOF
  6230. cat confdefs.h >>conftest.$ac_ext
  6231. cat >>conftest.$ac_ext <<_ACEOF
  6232. /* end confdefs.h. */
  6233. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6234. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6235. #define $ac_func innocuous_$ac_func
  6236. /* System header to define __stub macros and hopefully few prototypes,
  6237. which can conflict with char $ac_func (); below.
  6238. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6239. <limits.h> exists even on freestanding compilers. */
  6240. #ifdef __STDC__
  6241. # include <limits.h>
  6242. #else
  6243. # include <assert.h>
  6244. #endif
  6245. #undef $ac_func
  6246. /* Override any gcc2 internal prototype to avoid an error. */
  6247. #ifdef __cplusplus
  6248. extern "C"
  6249. {
  6250. #endif
  6251. /* We use char because int might match the return type of a gcc2
  6252. builtin and then its argument prototype would still apply. */
  6253. char $ac_func ();
  6254. /* The GNU C library defines this for functions which it implements
  6255. to always fail with ENOSYS. Some functions are actually named
  6256. something starting with __ and the normal name is an alias. */
  6257. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6258. choke me
  6259. #else
  6260. char (*f) () = $ac_func;
  6261. #endif
  6262. #ifdef __cplusplus
  6263. }
  6264. #endif
  6265. int
  6266. main ()
  6267. {
  6268. return f != $ac_func;
  6269. ;
  6270. return 0;
  6271. }
  6272. _ACEOF
  6273. rm -f conftest.$ac_objext conftest$ac_exeext
  6274. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6275. (eval $ac_link) 2>conftest.er1
  6276. ac_status=$?
  6277. grep -v '^ *+' conftest.er1 >conftest.err
  6278. rm -f conftest.er1
  6279. cat conftest.err >&5
  6280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. (exit $ac_status); } &&
  6282. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6284. (eval $ac_try) 2>&5
  6285. ac_status=$?
  6286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. (exit $ac_status); }; } &&
  6288. { ac_try='test -s conftest$ac_exeext'
  6289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6290. (eval $ac_try) 2>&5
  6291. ac_status=$?
  6292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6293. (exit $ac_status); }; }; then
  6294. eval "$as_ac_var=yes"
  6295. else
  6296. echo "$as_me: failed program was:" >&5
  6297. sed 's/^/| /' conftest.$ac_ext >&5
  6298. eval "$as_ac_var=no"
  6299. fi
  6300. rm -f conftest.err conftest.$ac_objext \
  6301. conftest$ac_exeext conftest.$ac_ext
  6302. fi
  6303. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6304. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6305. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6306. cat >>confdefs.h <<_ACEOF
  6307. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6308. _ACEOF
  6309. x_zlib_on=yes
  6310. else
  6311. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6312. echo "$as_me: error: Can't enable zlib!" >&2;}
  6313. { (exit 1); exit 1; }; }
  6314. fi
  6315. done
  6316. fi
  6317. else
  6318. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6319. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6320. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6321. echo $ECHO_N "(cached) $ECHO_C" >&6
  6322. else
  6323. ac_check_lib_save_LIBS=$LIBS
  6324. LIBS="-lz $LIBS"
  6325. cat >conftest.$ac_ext <<_ACEOF
  6326. /* confdefs.h. */
  6327. _ACEOF
  6328. cat confdefs.h >>conftest.$ac_ext
  6329. cat >>conftest.$ac_ext <<_ACEOF
  6330. /* end confdefs.h. */
  6331. /* Override any gcc2 internal prototype to avoid an error. */
  6332. #ifdef __cplusplus
  6333. extern "C"
  6334. #endif
  6335. /* We use char because int might match the return type of a gcc2
  6336. builtin and then its argument prototype would still apply. */
  6337. char deflate ();
  6338. int
  6339. main ()
  6340. {
  6341. deflate ();
  6342. ;
  6343. return 0;
  6344. }
  6345. _ACEOF
  6346. rm -f conftest.$ac_objext conftest$ac_exeext
  6347. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6348. (eval $ac_link) 2>conftest.er1
  6349. ac_status=$?
  6350. grep -v '^ *+' conftest.er1 >conftest.err
  6351. rm -f conftest.er1
  6352. cat conftest.err >&5
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); } &&
  6355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; } &&
  6361. { ac_try='test -s conftest$ac_exeext'
  6362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6363. (eval $ac_try) 2>&5
  6364. ac_status=$?
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); }; }; then
  6367. ac_cv_lib_z_deflate=yes
  6368. else
  6369. echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. ac_cv_lib_z_deflate=no
  6372. fi
  6373. rm -f conftest.err conftest.$ac_objext \
  6374. conftest$ac_exeext conftest.$ac_ext
  6375. LIBS=$ac_check_lib_save_LIBS
  6376. fi
  6377. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6378. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6379. if test $ac_cv_lib_z_deflate = yes; then
  6380. cat >>confdefs.h <<_ACEOF
  6381. #define HAVE_LIBZ 1
  6382. _ACEOF
  6383. LIBS="-lz $LIBS"
  6384. fi
  6385. for ac_func in deflate
  6386. do
  6387. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6388. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6389. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6390. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6391. echo $ECHO_N "(cached) $ECHO_C" >&6
  6392. else
  6393. cat >conftest.$ac_ext <<_ACEOF
  6394. /* confdefs.h. */
  6395. _ACEOF
  6396. cat confdefs.h >>conftest.$ac_ext
  6397. cat >>conftest.$ac_ext <<_ACEOF
  6398. /* end confdefs.h. */
  6399. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6400. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6401. #define $ac_func innocuous_$ac_func
  6402. /* System header to define __stub macros and hopefully few prototypes,
  6403. which can conflict with char $ac_func (); below.
  6404. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6405. <limits.h> exists even on freestanding compilers. */
  6406. #ifdef __STDC__
  6407. # include <limits.h>
  6408. #else
  6409. # include <assert.h>
  6410. #endif
  6411. #undef $ac_func
  6412. /* Override any gcc2 internal prototype to avoid an error. */
  6413. #ifdef __cplusplus
  6414. extern "C"
  6415. {
  6416. #endif
  6417. /* We use char because int might match the return type of a gcc2
  6418. builtin and then its argument prototype would still apply. */
  6419. char $ac_func ();
  6420. /* The GNU C library defines this for functions which it implements
  6421. to always fail with ENOSYS. Some functions are actually named
  6422. something starting with __ and the normal name is an alias. */
  6423. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6424. choke me
  6425. #else
  6426. char (*f) () = $ac_func;
  6427. #endif
  6428. #ifdef __cplusplus
  6429. }
  6430. #endif
  6431. int
  6432. main ()
  6433. {
  6434. return f != $ac_func;
  6435. ;
  6436. return 0;
  6437. }
  6438. _ACEOF
  6439. rm -f conftest.$ac_objext conftest$ac_exeext
  6440. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6441. (eval $ac_link) 2>conftest.er1
  6442. ac_status=$?
  6443. grep -v '^ *+' conftest.er1 >conftest.err
  6444. rm -f conftest.er1
  6445. cat conftest.err >&5
  6446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. (exit $ac_status); } &&
  6448. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6450. (eval $ac_try) 2>&5
  6451. ac_status=$?
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); }; } &&
  6454. { ac_try='test -s conftest$ac_exeext'
  6455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6456. (eval $ac_try) 2>&5
  6457. ac_status=$?
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); }; }; then
  6460. eval "$as_ac_var=yes"
  6461. else
  6462. echo "$as_me: failed program was:" >&5
  6463. sed 's/^/| /' conftest.$ac_ext >&5
  6464. eval "$as_ac_var=no"
  6465. fi
  6466. rm -f conftest.err conftest.$ac_objext \
  6467. conftest$ac_exeext conftest.$ac_ext
  6468. fi
  6469. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6470. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6471. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6472. cat >>confdefs.h <<_ACEOF
  6473. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6474. _ACEOF
  6475. x_zlib_on=yes
  6476. fi
  6477. done
  6478. fi;
  6479. if test "$x_zlib_on" = "yes"; then
  6480. cat >>confdefs.h <<\_ACEOF
  6481. #define ZLIB 1
  6482. _ACEOF
  6483. for ac_header in zlib.h
  6484. do
  6485. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6486. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6487. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6488. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6489. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6490. echo $ECHO_N "(cached) $ECHO_C" >&6
  6491. fi
  6492. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6493. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6494. else
  6495. # Is the header compilable?
  6496. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6497. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. #include <$ac_header>
  6506. _ACEOF
  6507. rm -f conftest.$ac_objext
  6508. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6509. (eval $ac_compile) 2>conftest.er1
  6510. ac_status=$?
  6511. grep -v '^ *+' conftest.er1 >conftest.err
  6512. rm -f conftest.er1
  6513. cat conftest.err >&5
  6514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6515. (exit $ac_status); } &&
  6516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6518. (eval $ac_try) 2>&5
  6519. ac_status=$?
  6520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6521. (exit $ac_status); }; } &&
  6522. { ac_try='test -s conftest.$ac_objext'
  6523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6524. (eval $ac_try) 2>&5
  6525. ac_status=$?
  6526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6527. (exit $ac_status); }; }; then
  6528. ac_header_compiler=yes
  6529. else
  6530. echo "$as_me: failed program was:" >&5
  6531. sed 's/^/| /' conftest.$ac_ext >&5
  6532. ac_header_compiler=no
  6533. fi
  6534. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6535. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6536. echo "${ECHO_T}$ac_header_compiler" >&6
  6537. # Is the header present?
  6538. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6539. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6540. cat >conftest.$ac_ext <<_ACEOF
  6541. /* confdefs.h. */
  6542. _ACEOF
  6543. cat confdefs.h >>conftest.$ac_ext
  6544. cat >>conftest.$ac_ext <<_ACEOF
  6545. /* end confdefs.h. */
  6546. #include <$ac_header>
  6547. _ACEOF
  6548. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6549. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6550. ac_status=$?
  6551. grep -v '^ *+' conftest.er1 >conftest.err
  6552. rm -f conftest.er1
  6553. cat conftest.err >&5
  6554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); } >/dev/null; then
  6556. if test -s conftest.err; then
  6557. ac_cpp_err=$ac_c_preproc_warn_flag
  6558. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6559. else
  6560. ac_cpp_err=
  6561. fi
  6562. else
  6563. ac_cpp_err=yes
  6564. fi
  6565. if test -z "$ac_cpp_err"; then
  6566. ac_header_preproc=yes
  6567. else
  6568. echo "$as_me: failed program was:" >&5
  6569. sed 's/^/| /' conftest.$ac_ext >&5
  6570. ac_header_preproc=no
  6571. fi
  6572. rm -f conftest.err conftest.$ac_ext
  6573. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6574. echo "${ECHO_T}$ac_header_preproc" >&6
  6575. # So? What about this header?
  6576. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6577. yes:no: )
  6578. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6579. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6580. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6581. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6582. ac_header_preproc=yes
  6583. ;;
  6584. no:yes:* )
  6585. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6586. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6587. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6588. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6589. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6590. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6591. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6592. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6593. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6594. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6595. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6596. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6597. (
  6598. cat <<\_ASBOX
  6599. ## --------------------------------- ##
  6600. ## Report this to the ngircd lists. ##
  6601. ## --------------------------------- ##
  6602. _ASBOX
  6603. ) |
  6604. sed "s/^/$as_me: WARNING: /" >&2
  6605. ;;
  6606. esac
  6607. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6608. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6609. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6610. echo $ECHO_N "(cached) $ECHO_C" >&6
  6611. else
  6612. eval "$as_ac_Header=\$ac_header_preproc"
  6613. fi
  6614. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6615. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6616. fi
  6617. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6618. cat >>confdefs.h <<_ACEOF
  6619. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6620. _ACEOF
  6621. else
  6622. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6623. echo "$as_me: error: required C header missing!" >&2;}
  6624. { (exit 1); exit 1; }; }
  6625. fi
  6626. done
  6627. fi
  6628. x_tcpwrap_on=no
  6629. # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
  6630. if test "${with_tcp_wrappers+set}" = set; then
  6631. withval="$with_tcp_wrappers"
  6632. if test "$withval" != "no"; then
  6633. if test "$withval" != "yes"; then
  6634. CFLAGS="-I$withval/include $CFLAGS"
  6635. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6636. LDFLAGS="-L$withval/lib $LDFLAGS"
  6637. fi
  6638. echo "$as_me:$LINENO: checking for hosts_access" >&5
  6639. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6
  6640. LIBS="-lwrap $LIBS"
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. #include <tcpd.h>
  6648. int allow_severity = 0;
  6649. int deny_severity = 0;
  6650. int
  6651. main ()
  6652. {
  6653. tcpd_warn("link test");
  6654. ;
  6655. return 0;
  6656. }
  6657. _ACEOF
  6658. rm -f conftest.$ac_objext conftest$ac_exeext
  6659. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6660. (eval $ac_link) 2>conftest.er1
  6661. ac_status=$?
  6662. grep -v '^ *+' conftest.er1 >conftest.err
  6663. rm -f conftest.er1
  6664. cat conftest.err >&5
  6665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6666. (exit $ac_status); } &&
  6667. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6669. (eval $ac_try) 2>&5
  6670. ac_status=$?
  6671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672. (exit $ac_status); }; } &&
  6673. { ac_try='test -s conftest$ac_exeext'
  6674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6675. (eval $ac_try) 2>&5
  6676. ac_status=$?
  6677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); }; }; then
  6679. echo "$as_me:$LINENO: result: yes" >&5
  6680. echo "${ECHO_T}yes" >&6
  6681. cat >>confdefs.h <<\_ACEOF
  6682. #define TCPWRAP 1
  6683. _ACEOF
  6684. x_tcpwrap_on=yes
  6685. else
  6686. echo "$as_me: failed program was:" >&5
  6687. sed 's/^/| /' conftest.$ac_ext >&5
  6688. echo "$as_me:$LINENO: result: no" >&5
  6689. echo "${ECHO_T}no" >&6
  6690. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  6691. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  6692. { (exit 1); exit 1; }; }
  6693. fi
  6694. rm -f conftest.err conftest.$ac_objext \
  6695. conftest$ac_exeext conftest.$ac_ext
  6696. fi
  6697. fi;
  6698. x_rendezvous_on=no
  6699. # Check whether --with-rendezvous or --without-rendezvous was given.
  6700. if test "${with_rendezvous+set}" = set; then
  6701. withval="$with_rendezvous"
  6702. if test "$withval" != "no"; then
  6703. if test "$withval" != "yes"; then
  6704. CFLAGS="-I$withval/include $CFLAGS"
  6705. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6706. LDFLAGS="-L$withval/lib $LDFLAGS"
  6707. fi
  6708. for ac_func in DNSServiceRegistrationCreate
  6709. do
  6710. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6711. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6712. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6713. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6714. echo $ECHO_N "(cached) $ECHO_C" >&6
  6715. else
  6716. cat >conftest.$ac_ext <<_ACEOF
  6717. /* confdefs.h. */
  6718. _ACEOF
  6719. cat confdefs.h >>conftest.$ac_ext
  6720. cat >>conftest.$ac_ext <<_ACEOF
  6721. /* end confdefs.h. */
  6722. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6723. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6724. #define $ac_func innocuous_$ac_func
  6725. /* System header to define __stub macros and hopefully few prototypes,
  6726. which can conflict with char $ac_func (); below.
  6727. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6728. <limits.h> exists even on freestanding compilers. */
  6729. #ifdef __STDC__
  6730. # include <limits.h>
  6731. #else
  6732. # include <assert.h>
  6733. #endif
  6734. #undef $ac_func
  6735. /* Override any gcc2 internal prototype to avoid an error. */
  6736. #ifdef __cplusplus
  6737. extern "C"
  6738. {
  6739. #endif
  6740. /* We use char because int might match the return type of a gcc2
  6741. builtin and then its argument prototype would still apply. */
  6742. char $ac_func ();
  6743. /* The GNU C library defines this for functions which it implements
  6744. to always fail with ENOSYS. Some functions are actually named
  6745. something starting with __ and the normal name is an alias. */
  6746. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6747. choke me
  6748. #else
  6749. char (*f) () = $ac_func;
  6750. #endif
  6751. #ifdef __cplusplus
  6752. }
  6753. #endif
  6754. int
  6755. main ()
  6756. {
  6757. return f != $ac_func;
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. rm -f conftest.$ac_objext conftest$ac_exeext
  6763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6764. (eval $ac_link) 2>conftest.er1
  6765. ac_status=$?
  6766. grep -v '^ *+' conftest.er1 >conftest.err
  6767. rm -f conftest.er1
  6768. cat conftest.err >&5
  6769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6770. (exit $ac_status); } &&
  6771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6773. (eval $ac_try) 2>&5
  6774. ac_status=$?
  6775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6776. (exit $ac_status); }; } &&
  6777. { ac_try='test -s conftest$ac_exeext'
  6778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6779. (eval $ac_try) 2>&5
  6780. ac_status=$?
  6781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6782. (exit $ac_status); }; }; then
  6783. eval "$as_ac_var=yes"
  6784. else
  6785. echo "$as_me: failed program was:" >&5
  6786. sed 's/^/| /' conftest.$ac_ext >&5
  6787. eval "$as_ac_var=no"
  6788. fi
  6789. rm -f conftest.err conftest.$ac_objext \
  6790. conftest$ac_exeext conftest.$ac_ext
  6791. fi
  6792. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6793. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6794. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6795. cat >>confdefs.h <<_ACEOF
  6796. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6797. _ACEOF
  6798. x_rendezvous_on=osx
  6799. else
  6800. echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  6801. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6
  6802. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  6803. echo $ECHO_N "(cached) $ECHO_C" >&6
  6804. else
  6805. ac_check_lib_save_LIBS=$LIBS
  6806. LIBS="-lpthread $LIBS"
  6807. cat >conftest.$ac_ext <<_ACEOF
  6808. /* confdefs.h. */
  6809. _ACEOF
  6810. cat confdefs.h >>conftest.$ac_ext
  6811. cat >>conftest.$ac_ext <<_ACEOF
  6812. /* end confdefs.h. */
  6813. /* Override any gcc2 internal prototype to avoid an error. */
  6814. #ifdef __cplusplus
  6815. extern "C"
  6816. #endif
  6817. /* We use char because int might match the return type of a gcc2
  6818. builtin and then its argument prototype would still apply. */
  6819. char pthread_mutexattr_init ();
  6820. int
  6821. main ()
  6822. {
  6823. pthread_mutexattr_init ();
  6824. ;
  6825. return 0;
  6826. }
  6827. _ACEOF
  6828. rm -f conftest.$ac_objext conftest$ac_exeext
  6829. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6830. (eval $ac_link) 2>conftest.er1
  6831. ac_status=$?
  6832. grep -v '^ *+' conftest.er1 >conftest.err
  6833. rm -f conftest.er1
  6834. cat conftest.err >&5
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. (exit $ac_status); } &&
  6837. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6839. (eval $ac_try) 2>&5
  6840. ac_status=$?
  6841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6842. (exit $ac_status); }; } &&
  6843. { ac_try='test -s conftest$ac_exeext'
  6844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6845. (eval $ac_try) 2>&5
  6846. ac_status=$?
  6847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); }; }; then
  6849. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  6850. else
  6851. echo "$as_me: failed program was:" >&5
  6852. sed 's/^/| /' conftest.$ac_ext >&5
  6853. ac_cv_lib_pthread_pthread_mutexattr_init=no
  6854. fi
  6855. rm -f conftest.err conftest.$ac_objext \
  6856. conftest$ac_exeext conftest.$ac_ext
  6857. LIBS=$ac_check_lib_save_LIBS
  6858. fi
  6859. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  6860. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6
  6861. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  6862. cat >>confdefs.h <<_ACEOF
  6863. #define HAVE_LIBPTHREAD 1
  6864. _ACEOF
  6865. LIBS="-lpthread $LIBS"
  6866. fi
  6867. echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  6868. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6
  6869. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  6870. echo $ECHO_N "(cached) $ECHO_C" >&6
  6871. else
  6872. ac_check_lib_save_LIBS=$LIBS
  6873. LIBS="-lhowl $LIBS"
  6874. cat >conftest.$ac_ext <<_ACEOF
  6875. /* confdefs.h. */
  6876. _ACEOF
  6877. cat confdefs.h >>conftest.$ac_ext
  6878. cat >>conftest.$ac_ext <<_ACEOF
  6879. /* end confdefs.h. */
  6880. /* Override any gcc2 internal prototype to avoid an error. */
  6881. #ifdef __cplusplus
  6882. extern "C"
  6883. #endif
  6884. /* We use char because int might match the return type of a gcc2
  6885. builtin and then its argument prototype would still apply. */
  6886. char sw_discovery_init ();
  6887. int
  6888. main ()
  6889. {
  6890. sw_discovery_init ();
  6891. ;
  6892. return 0;
  6893. }
  6894. _ACEOF
  6895. rm -f conftest.$ac_objext conftest$ac_exeext
  6896. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6897. (eval $ac_link) 2>conftest.er1
  6898. ac_status=$?
  6899. grep -v '^ *+' conftest.er1 >conftest.err
  6900. rm -f conftest.er1
  6901. cat conftest.err >&5
  6902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6903. (exit $ac_status); } &&
  6904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6906. (eval $ac_try) 2>&5
  6907. ac_status=$?
  6908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6909. (exit $ac_status); }; } &&
  6910. { ac_try='test -s conftest$ac_exeext'
  6911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6912. (eval $ac_try) 2>&5
  6913. ac_status=$?
  6914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6915. (exit $ac_status); }; }; then
  6916. ac_cv_lib_howl_sw_discovery_init=yes
  6917. else
  6918. echo "$as_me: failed program was:" >&5
  6919. sed 's/^/| /' conftest.$ac_ext >&5
  6920. ac_cv_lib_howl_sw_discovery_init=no
  6921. fi
  6922. rm -f conftest.err conftest.$ac_objext \
  6923. conftest$ac_exeext conftest.$ac_ext
  6924. LIBS=$ac_check_lib_save_LIBS
  6925. fi
  6926. echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  6927. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6
  6928. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  6929. cat >>confdefs.h <<_ACEOF
  6930. #define HAVE_LIBHOWL 1
  6931. _ACEOF
  6932. LIBS="-lhowl $LIBS"
  6933. fi
  6934. for ac_func in sw_discovery_init
  6935. do
  6936. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6937. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6938. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6939. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6940. echo $ECHO_N "(cached) $ECHO_C" >&6
  6941. else
  6942. cat >conftest.$ac_ext <<_ACEOF
  6943. /* confdefs.h. */
  6944. _ACEOF
  6945. cat confdefs.h >>conftest.$ac_ext
  6946. cat >>conftest.$ac_ext <<_ACEOF
  6947. /* end confdefs.h. */
  6948. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6949. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6950. #define $ac_func innocuous_$ac_func
  6951. /* System header to define __stub macros and hopefully few prototypes,
  6952. which can conflict with char $ac_func (); below.
  6953. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6954. <limits.h> exists even on freestanding compilers. */
  6955. #ifdef __STDC__
  6956. # include <limits.h>
  6957. #else
  6958. # include <assert.h>
  6959. #endif
  6960. #undef $ac_func
  6961. /* Override any gcc2 internal prototype to avoid an error. */
  6962. #ifdef __cplusplus
  6963. extern "C"
  6964. {
  6965. #endif
  6966. /* We use char because int might match the return type of a gcc2
  6967. builtin and then its argument prototype would still apply. */
  6968. char $ac_func ();
  6969. /* The GNU C library defines this for functions which it implements
  6970. to always fail with ENOSYS. Some functions are actually named
  6971. something starting with __ and the normal name is an alias. */
  6972. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6973. choke me
  6974. #else
  6975. char (*f) () = $ac_func;
  6976. #endif
  6977. #ifdef __cplusplus
  6978. }
  6979. #endif
  6980. int
  6981. main ()
  6982. {
  6983. return f != $ac_func;
  6984. ;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. rm -f conftest.$ac_objext conftest$ac_exeext
  6989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6990. (eval $ac_link) 2>conftest.er1
  6991. ac_status=$?
  6992. grep -v '^ *+' conftest.er1 >conftest.err
  6993. rm -f conftest.er1
  6994. cat conftest.err >&5
  6995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6996. (exit $ac_status); } &&
  6997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6999. (eval $ac_try) 2>&5
  7000. ac_status=$?
  7001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7002. (exit $ac_status); }; } &&
  7003. { ac_try='test -s conftest$ac_exeext'
  7004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7005. (eval $ac_try) 2>&5
  7006. ac_status=$?
  7007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7008. (exit $ac_status); }; }; then
  7009. eval "$as_ac_var=yes"
  7010. else
  7011. echo "$as_me: failed program was:" >&5
  7012. sed 's/^/| /' conftest.$ac_ext >&5
  7013. eval "$as_ac_var=no"
  7014. fi
  7015. rm -f conftest.err conftest.$ac_objext \
  7016. conftest$ac_exeext conftest.$ac_ext
  7017. fi
  7018. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7019. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7020. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7021. cat >>confdefs.h <<_ACEOF
  7022. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7023. _ACEOF
  7024. \
  7025. x_rendezvous_on=howl
  7026. else
  7027. \
  7028. { { echo "$as_me:$LINENO: error: Can't enable Rendezvous!" >&5
  7029. echo "$as_me: error: Can't enable Rendezvous!" >&2;}
  7030. { (exit 1); exit 1; }; }
  7031. fi
  7032. done
  7033. fi
  7034. done
  7035. fi
  7036. fi;
  7037. if test "$x_rendezvous_on" = "osx"; then
  7038. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  7039. mach/port.h
  7040. do
  7041. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7042. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7043. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7044. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7045. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7046. echo $ECHO_N "(cached) $ECHO_C" >&6
  7047. fi
  7048. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7049. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7050. else
  7051. # Is the header compilable?
  7052. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7053. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7054. cat >conftest.$ac_ext <<_ACEOF
  7055. /* confdefs.h. */
  7056. _ACEOF
  7057. cat confdefs.h >>conftest.$ac_ext
  7058. cat >>conftest.$ac_ext <<_ACEOF
  7059. /* end confdefs.h. */
  7060. $ac_includes_default
  7061. #include <$ac_header>
  7062. _ACEOF
  7063. rm -f conftest.$ac_objext
  7064. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7065. (eval $ac_compile) 2>conftest.er1
  7066. ac_status=$?
  7067. grep -v '^ *+' conftest.er1 >conftest.err
  7068. rm -f conftest.er1
  7069. cat conftest.err >&5
  7070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7071. (exit $ac_status); } &&
  7072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7074. (eval $ac_try) 2>&5
  7075. ac_status=$?
  7076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7077. (exit $ac_status); }; } &&
  7078. { ac_try='test -s conftest.$ac_objext'
  7079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7080. (eval $ac_try) 2>&5
  7081. ac_status=$?
  7082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7083. (exit $ac_status); }; }; then
  7084. ac_header_compiler=yes
  7085. else
  7086. echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. ac_header_compiler=no
  7089. fi
  7090. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7091. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7092. echo "${ECHO_T}$ac_header_compiler" >&6
  7093. # Is the header present?
  7094. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7095. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7096. cat >conftest.$ac_ext <<_ACEOF
  7097. /* confdefs.h. */
  7098. _ACEOF
  7099. cat confdefs.h >>conftest.$ac_ext
  7100. cat >>conftest.$ac_ext <<_ACEOF
  7101. /* end confdefs.h. */
  7102. #include <$ac_header>
  7103. _ACEOF
  7104. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7105. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7106. ac_status=$?
  7107. grep -v '^ *+' conftest.er1 >conftest.err
  7108. rm -f conftest.er1
  7109. cat conftest.err >&5
  7110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7111. (exit $ac_status); } >/dev/null; then
  7112. if test -s conftest.err; then
  7113. ac_cpp_err=$ac_c_preproc_warn_flag
  7114. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7115. else
  7116. ac_cpp_err=
  7117. fi
  7118. else
  7119. ac_cpp_err=yes
  7120. fi
  7121. if test -z "$ac_cpp_err"; then
  7122. ac_header_preproc=yes
  7123. else
  7124. echo "$as_me: failed program was:" >&5
  7125. sed 's/^/| /' conftest.$ac_ext >&5
  7126. ac_header_preproc=no
  7127. fi
  7128. rm -f conftest.err conftest.$ac_ext
  7129. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7130. echo "${ECHO_T}$ac_header_preproc" >&6
  7131. # So? What about this header?
  7132. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7133. yes:no: )
  7134. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7135. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7137. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7138. ac_header_preproc=yes
  7139. ;;
  7140. no:yes:* )
  7141. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7142. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7143. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7144. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7145. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7146. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7147. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7148. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7149. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7150. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7151. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7152. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7153. (
  7154. cat <<\_ASBOX
  7155. ## --------------------------------- ##
  7156. ## Report this to the ngircd lists. ##
  7157. ## --------------------------------- ##
  7158. _ASBOX
  7159. ) |
  7160. sed "s/^/$as_me: WARNING: /" >&2
  7161. ;;
  7162. esac
  7163. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7164. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7165. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7166. echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. else
  7168. eval "$as_ac_Header=\$ac_header_preproc"
  7169. fi
  7170. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7171. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7172. fi
  7173. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7174. cat >>confdefs.h <<_ACEOF
  7175. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7176. _ACEOF
  7177. else
  7178. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7179. echo "$as_me: error: required C header missing!" >&2;}
  7180. { (exit 1); exit 1; }; }
  7181. fi
  7182. done
  7183. cat >>confdefs.h <<\_ACEOF
  7184. #define RENDEZVOUS 1
  7185. _ACEOF
  7186. fi
  7187. if test "$x_rendezvous_on" = "howl"; then
  7188. for dir in /usr/local/include /usr/local/include/howl* \
  7189. /usr/include /usr/include/howl*; do
  7190. test -d "$dir" || continue
  7191. echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  7192. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6
  7193. if test -f "$dir/rendezvous/rendezvous.h"; then
  7194. if test "$dir" != "/usr/local/include" -a \
  7195. "$dir" != "/usr/include"; then
  7196. CFLAGS="-I$dir $CFLAGS"
  7197. CPPFLAGS="-I$dir $CPPFLAGS"
  7198. fi
  7199. echo "$as_me:$LINENO: result: yes" >&5
  7200. echo "${ECHO_T}yes" >&6
  7201. break
  7202. else
  7203. echo "$as_me:$LINENO: result: no" >&5
  7204. echo "${ECHO_T}no" >&6
  7205. fi
  7206. done
  7207. for ac_header in rendezvous/rendezvous.h
  7208. do
  7209. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7210. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7211. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7212. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7213. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7214. echo $ECHO_N "(cached) $ECHO_C" >&6
  7215. fi
  7216. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7217. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7218. else
  7219. # Is the header compilable?
  7220. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7221. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7222. cat >conftest.$ac_ext <<_ACEOF
  7223. /* confdefs.h. */
  7224. _ACEOF
  7225. cat confdefs.h >>conftest.$ac_ext
  7226. cat >>conftest.$ac_ext <<_ACEOF
  7227. /* end confdefs.h. */
  7228. $ac_includes_default
  7229. #include <$ac_header>
  7230. _ACEOF
  7231. rm -f conftest.$ac_objext
  7232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7233. (eval $ac_compile) 2>conftest.er1
  7234. ac_status=$?
  7235. grep -v '^ *+' conftest.er1 >conftest.err
  7236. rm -f conftest.er1
  7237. cat conftest.err >&5
  7238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7239. (exit $ac_status); } &&
  7240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7242. (eval $ac_try) 2>&5
  7243. ac_status=$?
  7244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245. (exit $ac_status); }; } &&
  7246. { ac_try='test -s conftest.$ac_objext'
  7247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7248. (eval $ac_try) 2>&5
  7249. ac_status=$?
  7250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. (exit $ac_status); }; }; then
  7252. ac_header_compiler=yes
  7253. else
  7254. echo "$as_me: failed program was:" >&5
  7255. sed 's/^/| /' conftest.$ac_ext >&5
  7256. ac_header_compiler=no
  7257. fi
  7258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7259. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7260. echo "${ECHO_T}$ac_header_compiler" >&6
  7261. # Is the header present?
  7262. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7263. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7264. cat >conftest.$ac_ext <<_ACEOF
  7265. /* confdefs.h. */
  7266. _ACEOF
  7267. cat confdefs.h >>conftest.$ac_ext
  7268. cat >>conftest.$ac_ext <<_ACEOF
  7269. /* end confdefs.h. */
  7270. #include <$ac_header>
  7271. _ACEOF
  7272. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7273. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7274. ac_status=$?
  7275. grep -v '^ *+' conftest.er1 >conftest.err
  7276. rm -f conftest.er1
  7277. cat conftest.err >&5
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); } >/dev/null; then
  7280. if test -s conftest.err; then
  7281. ac_cpp_err=$ac_c_preproc_warn_flag
  7282. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7283. else
  7284. ac_cpp_err=
  7285. fi
  7286. else
  7287. ac_cpp_err=yes
  7288. fi
  7289. if test -z "$ac_cpp_err"; then
  7290. ac_header_preproc=yes
  7291. else
  7292. echo "$as_me: failed program was:" >&5
  7293. sed 's/^/| /' conftest.$ac_ext >&5
  7294. ac_header_preproc=no
  7295. fi
  7296. rm -f conftest.err conftest.$ac_ext
  7297. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7298. echo "${ECHO_T}$ac_header_preproc" >&6
  7299. # So? What about this header?
  7300. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7301. yes:no: )
  7302. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7303. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7304. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7305. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7306. ac_header_preproc=yes
  7307. ;;
  7308. no:yes:* )
  7309. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7310. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7311. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7312. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7313. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7314. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7315. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7316. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7317. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7318. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7319. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7320. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7321. (
  7322. cat <<\_ASBOX
  7323. ## --------------------------------- ##
  7324. ## Report this to the ngircd lists. ##
  7325. ## --------------------------------- ##
  7326. _ASBOX
  7327. ) |
  7328. sed "s/^/$as_me: WARNING: /" >&2
  7329. ;;
  7330. esac
  7331. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7332. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7333. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7334. echo $ECHO_N "(cached) $ECHO_C" >&6
  7335. else
  7336. eval "$as_ac_Header=\$ac_header_preproc"
  7337. fi
  7338. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7339. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7340. fi
  7341. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7342. cat >>confdefs.h <<_ACEOF
  7343. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7344. _ACEOF
  7345. else
  7346. \
  7347. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7348. echo "$as_me: error: required C header missing!" >&2;}
  7349. { (exit 1); exit 1; }; }
  7350. fi
  7351. done
  7352. cat >>confdefs.h <<\_ACEOF
  7353. #define RENDEZVOUS 1
  7354. _ACEOF
  7355. fi
  7356. x_identauth_on=no
  7357. # Check whether --with-ident or --without-ident was given.
  7358. if test "${with_ident+set}" = set; then
  7359. withval="$with_ident"
  7360. if test "$withval" != "no"; then
  7361. if test "$withval" != "yes"; then
  7362. CFLAGS="-I$withval/include $CFLAGS"
  7363. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7364. LDFLAGS="-L$withval/lib $LDFLAGS"
  7365. fi
  7366. echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  7367. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6
  7368. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  7369. echo $ECHO_N "(cached) $ECHO_C" >&6
  7370. else
  7371. ac_check_lib_save_LIBS=$LIBS
  7372. LIBS="-lident $LIBS"
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. /* Override any gcc2 internal prototype to avoid an error. */
  7380. #ifdef __cplusplus
  7381. extern "C"
  7382. #endif
  7383. /* We use char because int might match the return type of a gcc2
  7384. builtin and then its argument prototype would still apply. */
  7385. char ident_id ();
  7386. int
  7387. main ()
  7388. {
  7389. ident_id ();
  7390. ;
  7391. return 0;
  7392. }
  7393. _ACEOF
  7394. rm -f conftest.$ac_objext conftest$ac_exeext
  7395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7396. (eval $ac_link) 2>conftest.er1
  7397. ac_status=$?
  7398. grep -v '^ *+' conftest.er1 >conftest.err
  7399. rm -f conftest.er1
  7400. cat conftest.err >&5
  7401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7402. (exit $ac_status); } &&
  7403. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7405. (eval $ac_try) 2>&5
  7406. ac_status=$?
  7407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7408. (exit $ac_status); }; } &&
  7409. { ac_try='test -s conftest$ac_exeext'
  7410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7411. (eval $ac_try) 2>&5
  7412. ac_status=$?
  7413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414. (exit $ac_status); }; }; then
  7415. ac_cv_lib_ident_ident_id=yes
  7416. else
  7417. echo "$as_me: failed program was:" >&5
  7418. sed 's/^/| /' conftest.$ac_ext >&5
  7419. ac_cv_lib_ident_ident_id=no
  7420. fi
  7421. rm -f conftest.err conftest.$ac_objext \
  7422. conftest$ac_exeext conftest.$ac_ext
  7423. LIBS=$ac_check_lib_save_LIBS
  7424. fi
  7425. echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  7426. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6
  7427. if test $ac_cv_lib_ident_ident_id = yes; then
  7428. cat >>confdefs.h <<_ACEOF
  7429. #define HAVE_LIBIDENT 1
  7430. _ACEOF
  7431. LIBS="-lident $LIBS"
  7432. fi
  7433. for ac_func in ident_id
  7434. do
  7435. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7436. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7437. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7438. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7439. echo $ECHO_N "(cached) $ECHO_C" >&6
  7440. else
  7441. cat >conftest.$ac_ext <<_ACEOF
  7442. /* confdefs.h. */
  7443. _ACEOF
  7444. cat confdefs.h >>conftest.$ac_ext
  7445. cat >>conftest.$ac_ext <<_ACEOF
  7446. /* end confdefs.h. */
  7447. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7448. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7449. #define $ac_func innocuous_$ac_func
  7450. /* System header to define __stub macros and hopefully few prototypes,
  7451. which can conflict with char $ac_func (); below.
  7452. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7453. <limits.h> exists even on freestanding compilers. */
  7454. #ifdef __STDC__
  7455. # include <limits.h>
  7456. #else
  7457. # include <assert.h>
  7458. #endif
  7459. #undef $ac_func
  7460. /* Override any gcc2 internal prototype to avoid an error. */
  7461. #ifdef __cplusplus
  7462. extern "C"
  7463. {
  7464. #endif
  7465. /* We use char because int might match the return type of a gcc2
  7466. builtin and then its argument prototype would still apply. */
  7467. char $ac_func ();
  7468. /* The GNU C library defines this for functions which it implements
  7469. to always fail with ENOSYS. Some functions are actually named
  7470. something starting with __ and the normal name is an alias. */
  7471. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7472. choke me
  7473. #else
  7474. char (*f) () = $ac_func;
  7475. #endif
  7476. #ifdef __cplusplus
  7477. }
  7478. #endif
  7479. int
  7480. main ()
  7481. {
  7482. return f != $ac_func;
  7483. ;
  7484. return 0;
  7485. }
  7486. _ACEOF
  7487. rm -f conftest.$ac_objext conftest$ac_exeext
  7488. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7489. (eval $ac_link) 2>conftest.er1
  7490. ac_status=$?
  7491. grep -v '^ *+' conftest.er1 >conftest.err
  7492. rm -f conftest.er1
  7493. cat conftest.err >&5
  7494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7495. (exit $ac_status); } &&
  7496. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7498. (eval $ac_try) 2>&5
  7499. ac_status=$?
  7500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7501. (exit $ac_status); }; } &&
  7502. { ac_try='test -s conftest$ac_exeext'
  7503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7504. (eval $ac_try) 2>&5
  7505. ac_status=$?
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. (exit $ac_status); }; }; then
  7508. eval "$as_ac_var=yes"
  7509. else
  7510. echo "$as_me: failed program was:" >&5
  7511. sed 's/^/| /' conftest.$ac_ext >&5
  7512. eval "$as_ac_var=no"
  7513. fi
  7514. rm -f conftest.err conftest.$ac_objext \
  7515. conftest$ac_exeext conftest.$ac_ext
  7516. fi
  7517. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7518. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7519. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7520. cat >>confdefs.h <<_ACEOF
  7521. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7522. _ACEOF
  7523. x_identauth_on=yes
  7524. else
  7525. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  7526. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  7527. { (exit 1); exit 1; }; }
  7528. fi
  7529. done
  7530. fi
  7531. fi;
  7532. if test "$x_identauth_on" = "yes"; then
  7533. cat >>confdefs.h <<\_ACEOF
  7534. #define IDENTAUTH 1
  7535. _ACEOF
  7536. for ac_header in ident.h
  7537. do
  7538. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7539. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7540. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7541. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7542. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7543. echo $ECHO_N "(cached) $ECHO_C" >&6
  7544. fi
  7545. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7546. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7547. else
  7548. # Is the header compilable?
  7549. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7550. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7551. cat >conftest.$ac_ext <<_ACEOF
  7552. /* confdefs.h. */
  7553. _ACEOF
  7554. cat confdefs.h >>conftest.$ac_ext
  7555. cat >>conftest.$ac_ext <<_ACEOF
  7556. /* end confdefs.h. */
  7557. $ac_includes_default
  7558. #include <$ac_header>
  7559. _ACEOF
  7560. rm -f conftest.$ac_objext
  7561. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7562. (eval $ac_compile) 2>conftest.er1
  7563. ac_status=$?
  7564. grep -v '^ *+' conftest.er1 >conftest.err
  7565. rm -f conftest.er1
  7566. cat conftest.err >&5
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. (exit $ac_status); } &&
  7569. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7571. (eval $ac_try) 2>&5
  7572. ac_status=$?
  7573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. (exit $ac_status); }; } &&
  7575. { ac_try='test -s conftest.$ac_objext'
  7576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7577. (eval $ac_try) 2>&5
  7578. ac_status=$?
  7579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7580. (exit $ac_status); }; }; then
  7581. ac_header_compiler=yes
  7582. else
  7583. echo "$as_me: failed program was:" >&5
  7584. sed 's/^/| /' conftest.$ac_ext >&5
  7585. ac_header_compiler=no
  7586. fi
  7587. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7588. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7589. echo "${ECHO_T}$ac_header_compiler" >&6
  7590. # Is the header present?
  7591. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7592. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7593. cat >conftest.$ac_ext <<_ACEOF
  7594. /* confdefs.h. */
  7595. _ACEOF
  7596. cat confdefs.h >>conftest.$ac_ext
  7597. cat >>conftest.$ac_ext <<_ACEOF
  7598. /* end confdefs.h. */
  7599. #include <$ac_header>
  7600. _ACEOF
  7601. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7602. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7603. ac_status=$?
  7604. grep -v '^ *+' conftest.er1 >conftest.err
  7605. rm -f conftest.er1
  7606. cat conftest.err >&5
  7607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); } >/dev/null; then
  7609. if test -s conftest.err; then
  7610. ac_cpp_err=$ac_c_preproc_warn_flag
  7611. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7612. else
  7613. ac_cpp_err=
  7614. fi
  7615. else
  7616. ac_cpp_err=yes
  7617. fi
  7618. if test -z "$ac_cpp_err"; then
  7619. ac_header_preproc=yes
  7620. else
  7621. echo "$as_me: failed program was:" >&5
  7622. sed 's/^/| /' conftest.$ac_ext >&5
  7623. ac_header_preproc=no
  7624. fi
  7625. rm -f conftest.err conftest.$ac_ext
  7626. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7627. echo "${ECHO_T}$ac_header_preproc" >&6
  7628. # So? What about this header?
  7629. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7630. yes:no: )
  7631. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7632. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7633. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7634. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7635. ac_header_preproc=yes
  7636. ;;
  7637. no:yes:* )
  7638. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7639. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7640. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7641. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7642. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7643. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7644. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7645. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7646. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7647. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7648. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7649. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7650. (
  7651. cat <<\_ASBOX
  7652. ## --------------------------------- ##
  7653. ## Report this to the ngircd lists. ##
  7654. ## --------------------------------- ##
  7655. _ASBOX
  7656. ) |
  7657. sed "s/^/$as_me: WARNING: /" >&2
  7658. ;;
  7659. esac
  7660. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7662. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7663. echo $ECHO_N "(cached) $ECHO_C" >&6
  7664. else
  7665. eval "$as_ac_Header=\$ac_header_preproc"
  7666. fi
  7667. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7668. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7669. fi
  7670. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7671. cat >>confdefs.h <<_ACEOF
  7672. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7673. _ACEOF
  7674. else
  7675. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7676. echo "$as_me: error: required C header missing!" >&2;}
  7677. { (exit 1); exit 1; }; }
  7678. fi
  7679. done
  7680. fi
  7681. x_ircplus_on=yes
  7682. # Check whether --enable-ircplus or --disable-ircplus was given.
  7683. if test "${enable_ircplus+set}" = set; then
  7684. enableval="$enable_ircplus"
  7685. if test "$enableval" = "no"; then x_ircplus_on=no; fi
  7686. fi;
  7687. if test "$x_ircplus_on" = "yes"; then
  7688. cat >>confdefs.h <<\_ACEOF
  7689. #define IRCPLUS 1
  7690. _ACEOF
  7691. fi
  7692. x_sniffer_on=no; x_debug_on=no
  7693. # Check whether --enable-sniffer or --disable-sniffer was given.
  7694. if test "${enable_sniffer+set}" = set; then
  7695. enableval="$enable_sniffer"
  7696. if test "$enableval" = "yes"; then
  7697. cat >>confdefs.h <<\_ACEOF
  7698. #define SNIFFER 1
  7699. _ACEOF
  7700. x_sniffer_on=yes; x_debug_on=yes
  7701. fi
  7702. fi;
  7703. # Check whether --enable-debug or --disable-debug was given.
  7704. if test "${enable_debug+set}" = set; then
  7705. enableval="$enable_debug"
  7706. if test "$enableval" = "yes"; then x_debug_on=yes; fi
  7707. fi;
  7708. if test "$x_debug_on" = "yes"; then
  7709. cat >>confdefs.h <<\_ACEOF
  7710. #define DEBUG 1
  7711. _ACEOF
  7712. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  7713. fi
  7714. x_strict_rfc_on=no
  7715. # Check whether --enable-strict-rfc or --disable-strict-rfc was given.
  7716. if test "${enable_strict_rfc+set}" = set; then
  7717. enableval="$enable_strict_rfc"
  7718. if test "$enableval" = "yes"; then
  7719. cat >>confdefs.h <<\_ACEOF
  7720. #define STRICT_RFC 1
  7721. _ACEOF
  7722. x_strict_rfc_on=yes
  7723. fi
  7724. fi;
  7725. # -- Definitions --
  7726. cat >>confdefs.h <<_ACEOF
  7727. #define TARGET_CPU "$target_cpu"
  7728. _ACEOF
  7729. cat >>confdefs.h <<_ACEOF
  7730. #define TARGET_VENDOR "$target_vendor"
  7731. _ACEOF
  7732. cat >>confdefs.h <<_ACEOF
  7733. #define TARGET_OS "$target_os"
  7734. _ACEOF
  7735. # Add additional CFLAGS, eventually specified on the command line, but after
  7736. # running this configure script. Useful for "-Werror" for example.
  7737. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  7738. # -- Generate files --
  7739. ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/portab/Makefile src/tool/Makefile src/ngircd/Makefile src/testsuite/Makefile man/Makefile contrib/Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile"
  7740. cat >confcache <<\_ACEOF
  7741. # This file is a shell script that caches the results of configure
  7742. # tests run on this system so they can be shared between configure
  7743. # scripts and configure runs, see configure's option --config-cache.
  7744. # It is not useful on other systems. If it contains results you don't
  7745. # want to keep, you may remove or edit it.
  7746. #
  7747. # config.status only pays attention to the cache file if you give it
  7748. # the --recheck option to rerun configure.
  7749. #
  7750. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7751. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7752. # following values.
  7753. _ACEOF
  7754. # The following way of writing the cache mishandles newlines in values,
  7755. # but we know of no workaround that is simple, portable, and efficient.
  7756. # So, don't put newlines in cache variables' values.
  7757. # Ultrix sh set writes to stderr and can't be redirected directly,
  7758. # and sets the high bit in the cache file unless we assign to the vars.
  7759. {
  7760. (set) 2>&1 |
  7761. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7762. *ac_space=\ *)
  7763. # `set' does not quote correctly, so add quotes (double-quote
  7764. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7765. sed -n \
  7766. "s/'/'\\\\''/g;
  7767. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7768. ;;
  7769. *)
  7770. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7771. sed -n \
  7772. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7773. ;;
  7774. esac;
  7775. } |
  7776. sed '
  7777. t clear
  7778. : clear
  7779. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7780. t end
  7781. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7782. : end' >>confcache
  7783. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7784. if test -w $cache_file; then
  7785. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7786. cat confcache >$cache_file
  7787. else
  7788. echo "not updating unwritable cache $cache_file"
  7789. fi
  7790. fi
  7791. rm -f confcache
  7792. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7793. # Let make expand exec_prefix.
  7794. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7795. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7796. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7797. # trailing colons and then remove the whole line if VPATH becomes empty
  7798. # (actually we leave an empty line to preserve line numbers).
  7799. if test "x$srcdir" = x.; then
  7800. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7801. s/:*\$(srcdir):*/:/;
  7802. s/:*\${srcdir}:*/:/;
  7803. s/:*@srcdir@:*/:/;
  7804. s/^\([^=]*=[ ]*\):*/\1/;
  7805. s/:*$//;
  7806. s/^[^=]*=[ ]*$//;
  7807. }'
  7808. fi
  7809. DEFS=-DHAVE_CONFIG_H
  7810. ac_libobjs=
  7811. ac_ltlibobjs=
  7812. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7813. # 1. Remove the extension, and $U if already installed.
  7814. ac_i=`echo "$ac_i" |
  7815. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  7816. # 2. Add them.
  7817. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  7818. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  7819. done
  7820. LIBOBJS=$ac_libobjs
  7821. LTLIBOBJS=$ac_ltlibobjs
  7822. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  7823. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  7824. Usually this means the macro was only invoked conditionally." >&5
  7825. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  7826. Usually this means the macro was only invoked conditionally." >&2;}
  7827. { (exit 1); exit 1; }; }
  7828. fi
  7829. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  7830. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  7831. Usually this means the macro was only invoked conditionally." >&5
  7832. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  7833. Usually this means the macro was only invoked conditionally." >&2;}
  7834. { (exit 1); exit 1; }; }
  7835. fi
  7836. : ${CONFIG_STATUS=./config.status}
  7837. ac_clean_files_save=$ac_clean_files
  7838. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7839. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  7840. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7841. cat >$CONFIG_STATUS <<_ACEOF
  7842. #! $SHELL
  7843. # Generated by $as_me.
  7844. # Run this file to recreate the current configuration.
  7845. # Compiler output produced by configure, useful for debugging
  7846. # configure, is in config.log if it exists.
  7847. debug=false
  7848. ac_cs_recheck=false
  7849. ac_cs_silent=false
  7850. SHELL=\${CONFIG_SHELL-$SHELL}
  7851. _ACEOF
  7852. cat >>$CONFIG_STATUS <<\_ACEOF
  7853. ## --------------------- ##
  7854. ## M4sh Initialization. ##
  7855. ## --------------------- ##
  7856. # Be Bourne compatible
  7857. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7858. emulate sh
  7859. NULLCMD=:
  7860. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7861. # is contrary to our usage. Disable this feature.
  7862. alias -g '${1+"$@"}'='"$@"'
  7863. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  7864. set -o posix
  7865. fi
  7866. DUALCASE=1; export DUALCASE # for MKS sh
  7867. # Support unset when possible.
  7868. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7869. as_unset=unset
  7870. else
  7871. as_unset=false
  7872. fi
  7873. # Work around bugs in pre-3.0 UWIN ksh.
  7874. $as_unset ENV MAIL MAILPATH
  7875. PS1='$ '
  7876. PS2='> '
  7877. PS4='+ '
  7878. # NLS nuisances.
  7879. for as_var in \
  7880. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7881. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7882. LC_TELEPHONE LC_TIME
  7883. do
  7884. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7885. eval $as_var=C; export $as_var
  7886. else
  7887. $as_unset $as_var
  7888. fi
  7889. done
  7890. # Required to use basename.
  7891. if expr a : '\(a\)' >/dev/null 2>&1; then
  7892. as_expr=expr
  7893. else
  7894. as_expr=false
  7895. fi
  7896. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  7897. as_basename=basename
  7898. else
  7899. as_basename=false
  7900. fi
  7901. # Name of the executable.
  7902. as_me=`$as_basename "$0" ||
  7903. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7904. X"$0" : 'X\(//\)$' \| \
  7905. X"$0" : 'X\(/\)$' \| \
  7906. . : '\(.\)' 2>/dev/null ||
  7907. echo X/"$0" |
  7908. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7909. /^X\/\(\/\/\)$/{ s//\1/; q; }
  7910. /^X\/\(\/\).*/{ s//\1/; q; }
  7911. s/.*/./; q'`
  7912. # PATH needs CR, and LINENO needs CR and PATH.
  7913. # Avoid depending upon Character Ranges.
  7914. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7915. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7916. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7917. as_cr_digits='0123456789'
  7918. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7919. # The user is always right.
  7920. if test "${PATH_SEPARATOR+set}" != set; then
  7921. echo "#! /bin/sh" >conf$$.sh
  7922. echo "exit 0" >>conf$$.sh
  7923. chmod +x conf$$.sh
  7924. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7925. PATH_SEPARATOR=';'
  7926. else
  7927. PATH_SEPARATOR=:
  7928. fi
  7929. rm -f conf$$.sh
  7930. fi
  7931. as_lineno_1=$LINENO
  7932. as_lineno_2=$LINENO
  7933. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7934. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7935. test "x$as_lineno_3" = "x$as_lineno_2" || {
  7936. # Find who we are. Look in the path if we contain no path at all
  7937. # relative or not.
  7938. case $0 in
  7939. *[\\/]* ) as_myself=$0 ;;
  7940. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7941. for as_dir in $PATH
  7942. do
  7943. IFS=$as_save_IFS
  7944. test -z "$as_dir" && as_dir=.
  7945. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7946. done
  7947. ;;
  7948. esac
  7949. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7950. # in which case we are not to be found in the path.
  7951. if test "x$as_myself" = x; then
  7952. as_myself=$0
  7953. fi
  7954. if test ! -f "$as_myself"; then
  7955. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  7956. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  7957. { (exit 1); exit 1; }; }
  7958. fi
  7959. case $CONFIG_SHELL in
  7960. '')
  7961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7962. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7963. do
  7964. IFS=$as_save_IFS
  7965. test -z "$as_dir" && as_dir=.
  7966. for as_base in sh bash ksh sh5; do
  7967. case $as_dir in
  7968. /*)
  7969. if ("$as_dir/$as_base" -c '
  7970. as_lineno_1=$LINENO
  7971. as_lineno_2=$LINENO
  7972. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7973. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7974. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  7975. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  7976. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  7977. CONFIG_SHELL=$as_dir/$as_base
  7978. export CONFIG_SHELL
  7979. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  7980. fi;;
  7981. esac
  7982. done
  7983. done
  7984. ;;
  7985. esac
  7986. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  7987. # uniformly replaced by the line number. The first 'sed' inserts a
  7988. # line-number line before each line; the second 'sed' does the real
  7989. # work. The second script uses 'N' to pair each line-number line
  7990. # with the numbered line, and appends trailing '-' during
  7991. # substitution so that $LINENO is not a special case at line end.
  7992. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  7993. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  7994. sed '=' <$as_myself |
  7995. sed '
  7996. N
  7997. s,$,-,
  7998. : loop
  7999. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8000. t loop
  8001. s,-$,,
  8002. s,^['$as_cr_digits']*\n,,
  8003. ' >$as_me.lineno &&
  8004. chmod +x $as_me.lineno ||
  8005. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8006. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8007. { (exit 1); exit 1; }; }
  8008. # Don't try to exec as it changes $[0], causing all sort of problems
  8009. # (the dirname of $[0] is not the place where we might find the
  8010. # original and so on. Autoconf is especially sensible to this).
  8011. . ./$as_me.lineno
  8012. # Exit status is that of the last command.
  8013. exit
  8014. }
  8015. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8016. *c*,-n*) ECHO_N= ECHO_C='
  8017. ' ECHO_T=' ' ;;
  8018. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8019. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8020. esac
  8021. if expr a : '\(a\)' >/dev/null 2>&1; then
  8022. as_expr=expr
  8023. else
  8024. as_expr=false
  8025. fi
  8026. rm -f conf$$ conf$$.exe conf$$.file
  8027. echo >conf$$.file
  8028. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8029. # We could just check for DJGPP; but this test a) works b) is more generic
  8030. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8031. if test -f conf$$.exe; then
  8032. # Don't use ln at all; we don't have any links
  8033. as_ln_s='cp -p'
  8034. else
  8035. as_ln_s='ln -s'
  8036. fi
  8037. elif ln conf$$.file conf$$ 2>/dev/null; then
  8038. as_ln_s=ln
  8039. else
  8040. as_ln_s='cp -p'
  8041. fi
  8042. rm -f conf$$ conf$$.exe conf$$.file
  8043. if mkdir -p . 2>/dev/null; then
  8044. as_mkdir_p=:
  8045. else
  8046. test -d ./-p && rmdir ./-p
  8047. as_mkdir_p=false
  8048. fi
  8049. as_executable_p="test -f"
  8050. # Sed expression to map a string onto a valid CPP name.
  8051. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8052. # Sed expression to map a string onto a valid variable name.
  8053. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8054. # IFS
  8055. # We need space, tab and new line, in precisely that order.
  8056. as_nl='
  8057. '
  8058. IFS=" $as_nl"
  8059. # CDPATH.
  8060. $as_unset CDPATH
  8061. exec 6>&1
  8062. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  8063. # report actual input values of CONFIG_FILES etc. instead of their
  8064. # values after options handling. Logging --version etc. is OK.
  8065. exec 5>>config.log
  8066. {
  8067. echo
  8068. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8069. ## Running $as_me. ##
  8070. _ASBOX
  8071. } >&5
  8072. cat >&5 <<_CSEOF
  8073. This file was extended by ngircd $as_me 0.9.2, which was
  8074. generated by GNU Autoconf 2.59. Invocation command line was
  8075. CONFIG_FILES = $CONFIG_FILES
  8076. CONFIG_HEADERS = $CONFIG_HEADERS
  8077. CONFIG_LINKS = $CONFIG_LINKS
  8078. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8079. $ $0 $@
  8080. _CSEOF
  8081. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8082. echo >&5
  8083. _ACEOF
  8084. # Files that config.status was made for.
  8085. if test -n "$ac_config_files"; then
  8086. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8087. fi
  8088. if test -n "$ac_config_headers"; then
  8089. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8090. fi
  8091. if test -n "$ac_config_links"; then
  8092. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8093. fi
  8094. if test -n "$ac_config_commands"; then
  8095. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8096. fi
  8097. cat >>$CONFIG_STATUS <<\_ACEOF
  8098. ac_cs_usage="\
  8099. \`$as_me' instantiates files from templates according to the
  8100. current configuration.
  8101. Usage: $0 [OPTIONS] [FILE]...
  8102. -h, --help print this help, then exit
  8103. -V, --version print version number, then exit
  8104. -q, --quiet do not print progress messages
  8105. -d, --debug don't remove temporary files
  8106. --recheck update $as_me by reconfiguring in the same conditions
  8107. --file=FILE[:TEMPLATE]
  8108. instantiate the configuration file FILE
  8109. --header=FILE[:TEMPLATE]
  8110. instantiate the configuration header FILE
  8111. Configuration files:
  8112. $config_files
  8113. Configuration headers:
  8114. $config_headers
  8115. Configuration commands:
  8116. $config_commands
  8117. Report bugs to <bug-autoconf@gnu.org>."
  8118. _ACEOF
  8119. cat >>$CONFIG_STATUS <<_ACEOF
  8120. ac_cs_version="\\
  8121. ngircd config.status 0.9.2
  8122. configured by $0, generated by GNU Autoconf 2.59,
  8123. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8124. Copyright (C) 2003 Free Software Foundation, Inc.
  8125. This config.status script is free software; the Free Software Foundation
  8126. gives unlimited permission to copy, distribute and modify it."
  8127. srcdir=$srcdir
  8128. INSTALL="$INSTALL"
  8129. _ACEOF
  8130. cat >>$CONFIG_STATUS <<\_ACEOF
  8131. # If no file are specified by the user, then we need to provide default
  8132. # value. By we need to know if files were specified by the user.
  8133. ac_need_defaults=:
  8134. while test $# != 0
  8135. do
  8136. case $1 in
  8137. --*=*)
  8138. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8139. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8140. ac_shift=:
  8141. ;;
  8142. -*)
  8143. ac_option=$1
  8144. ac_optarg=$2
  8145. ac_shift=shift
  8146. ;;
  8147. *) # This is not an option, so the user has probably given explicit
  8148. # arguments.
  8149. ac_option=$1
  8150. ac_need_defaults=false;;
  8151. esac
  8152. case $ac_option in
  8153. # Handling of the options.
  8154. _ACEOF
  8155. cat >>$CONFIG_STATUS <<\_ACEOF
  8156. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8157. ac_cs_recheck=: ;;
  8158. --version | --vers* | -V )
  8159. echo "$ac_cs_version"; exit 0 ;;
  8160. --he | --h)
  8161. # Conflict between --help and --header
  8162. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8163. Try \`$0 --help' for more information." >&5
  8164. echo "$as_me: error: ambiguous option: $1
  8165. Try \`$0 --help' for more information." >&2;}
  8166. { (exit 1); exit 1; }; };;
  8167. --help | --hel | -h )
  8168. echo "$ac_cs_usage"; exit 0 ;;
  8169. --debug | --d* | -d )
  8170. debug=: ;;
  8171. --file | --fil | --fi | --f )
  8172. $ac_shift
  8173. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8174. ac_need_defaults=false;;
  8175. --header | --heade | --head | --hea )
  8176. $ac_shift
  8177. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8178. ac_need_defaults=false;;
  8179. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8180. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8181. ac_cs_silent=: ;;
  8182. # This is an error.
  8183. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8184. Try \`$0 --help' for more information." >&5
  8185. echo "$as_me: error: unrecognized option: $1
  8186. Try \`$0 --help' for more information." >&2;}
  8187. { (exit 1); exit 1; }; } ;;
  8188. *) ac_config_targets="$ac_config_targets $1" ;;
  8189. esac
  8190. shift
  8191. done
  8192. ac_configure_extra_args=
  8193. if $ac_cs_silent; then
  8194. exec 6>/dev/null
  8195. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8196. fi
  8197. _ACEOF
  8198. cat >>$CONFIG_STATUS <<_ACEOF
  8199. if \$ac_cs_recheck; then
  8200. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8201. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8202. fi
  8203. _ACEOF
  8204. cat >>$CONFIG_STATUS <<_ACEOF
  8205. #
  8206. # INIT-COMMANDS section.
  8207. #
  8208. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8209. _ACEOF
  8210. cat >>$CONFIG_STATUS <<\_ACEOF
  8211. for ac_config_target in $ac_config_targets
  8212. do
  8213. case "$ac_config_target" in
  8214. # Handling of arguments.
  8215. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8216. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  8217. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8218. "src/portab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  8219. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  8220. "src/ngircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  8221. "src/testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  8222. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  8223. "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  8224. "contrib/Debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  8225. "contrib/MacOSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  8226. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8227. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8228. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8229. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8230. { (exit 1); exit 1; }; };;
  8231. esac
  8232. done
  8233. # If the user did not use the arguments to specify the items to instantiate,
  8234. # then the envvar interface is used. Set only those that are not.
  8235. # We use the long form for the default assignment because of an extremely
  8236. # bizarre bug on SunOS 4.1.3.
  8237. if $ac_need_defaults; then
  8238. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8239. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8240. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8241. fi
  8242. # Have a temporary directory for convenience. Make it in the build tree
  8243. # simply because there is no reason to put it here, and in addition,
  8244. # creating and moving files from /tmp can sometimes cause problems.
  8245. # Create a temporary directory, and hook for its removal unless debugging.
  8246. $debug ||
  8247. {
  8248. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8249. trap '{ (exit 1); exit 1; }' 1 2 13 15
  8250. }
  8251. # Create a (secure) tmp directory for tmp files.
  8252. {
  8253. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8254. test -n "$tmp" && test -d "$tmp"
  8255. } ||
  8256. {
  8257. tmp=./confstat$$-$RANDOM
  8258. (umask 077 && mkdir $tmp)
  8259. } ||
  8260. {
  8261. echo "$me: cannot create a temporary directory in ." >&2
  8262. { (exit 1); exit 1; }
  8263. }
  8264. _ACEOF
  8265. cat >>$CONFIG_STATUS <<_ACEOF
  8266. #
  8267. # CONFIG_FILES section.
  8268. #
  8269. # No need to generate the scripts if there are no CONFIG_FILES.
  8270. # This happens for instance when ./config.status config.h
  8271. if test -n "\$CONFIG_FILES"; then
  8272. # Protect against being on the right side of a sed subst in config.status.
  8273. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8274. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8275. s,@SHELL@,$SHELL,;t t
  8276. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8277. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8278. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8279. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8280. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8281. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8282. s,@exec_prefix@,$exec_prefix,;t t
  8283. s,@prefix@,$prefix,;t t
  8284. s,@program_transform_name@,$program_transform_name,;t t
  8285. s,@bindir@,$bindir,;t t
  8286. s,@sbindir@,$sbindir,;t t
  8287. s,@libexecdir@,$libexecdir,;t t
  8288. s,@datadir@,$datadir,;t t
  8289. s,@sysconfdir@,$sysconfdir,;t t
  8290. s,@sharedstatedir@,$sharedstatedir,;t t
  8291. s,@localstatedir@,$localstatedir,;t t
  8292. s,@libdir@,$libdir,;t t
  8293. s,@includedir@,$includedir,;t t
  8294. s,@oldincludedir@,$oldincludedir,;t t
  8295. s,@infodir@,$infodir,;t t
  8296. s,@mandir@,$mandir,;t t
  8297. s,@build_alias@,$build_alias,;t t
  8298. s,@host_alias@,$host_alias,;t t
  8299. s,@target_alias@,$target_alias,;t t
  8300. s,@DEFS@,$DEFS,;t t
  8301. s,@ECHO_C@,$ECHO_C,;t t
  8302. s,@ECHO_N@,$ECHO_N,;t t
  8303. s,@ECHO_T@,$ECHO_T,;t t
  8304. s,@LIBS@,$LIBS,;t t
  8305. s,@build@,$build,;t t
  8306. s,@build_cpu@,$build_cpu,;t t
  8307. s,@build_vendor@,$build_vendor,;t t
  8308. s,@build_os@,$build_os,;t t
  8309. s,@host@,$host,;t t
  8310. s,@host_cpu@,$host_cpu,;t t
  8311. s,@host_vendor@,$host_vendor,;t t
  8312. s,@host_os@,$host_os,;t t
  8313. s,@target@,$target,;t t
  8314. s,@target_cpu@,$target_cpu,;t t
  8315. s,@target_vendor@,$target_vendor,;t t
  8316. s,@target_os@,$target_os,;t t
  8317. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8318. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8319. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8320. s,@CYGPATH_W@,$CYGPATH_W,;t t
  8321. s,@PACKAGE@,$PACKAGE,;t t
  8322. s,@VERSION@,$VERSION,;t t
  8323. s,@ACLOCAL@,$ACLOCAL,;t t
  8324. s,@AUTOCONF@,$AUTOCONF,;t t
  8325. s,@AUTOMAKE@,$AUTOMAKE,;t t
  8326. s,@AUTOHEADER@,$AUTOHEADER,;t t
  8327. s,@MAKEINFO@,$MAKEINFO,;t t
  8328. s,@AMTAR@,$AMTAR,;t t
  8329. s,@install_sh@,$install_sh,;t t
  8330. s,@STRIP@,$STRIP,;t t
  8331. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  8332. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  8333. s,@AWK@,$AWK,;t t
  8334. s,@SET_MAKE@,$SET_MAKE,;t t
  8335. s,@am__leading_dot@,$am__leading_dot,;t t
  8336. s,@CC@,$CC,;t t
  8337. s,@CFLAGS@,$CFLAGS,;t t
  8338. s,@LDFLAGS@,$LDFLAGS,;t t
  8339. s,@CPPFLAGS@,$CPPFLAGS,;t t
  8340. s,@ac_ct_CC@,$ac_ct_CC,;t t
  8341. s,@EXEEXT@,$EXEEXT,;t t
  8342. s,@OBJEXT@,$OBJEXT,;t t
  8343. s,@DEPDIR@,$DEPDIR,;t t
  8344. s,@am__include@,$am__include,;t t
  8345. s,@am__quote@,$am__quote,;t t
  8346. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  8347. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  8348. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  8349. s,@CCDEPMODE@,$CCDEPMODE,;t t
  8350. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  8351. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  8352. s,@LN_S@,$LN_S,;t t
  8353. s,@RANLIB@,$RANLIB,;t t
  8354. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  8355. s,@CPP@,$CPP,;t t
  8356. s,@EGREP@,$EGREP,;t t
  8357. s,@U@,$U,;t t
  8358. s,@ANSI2KNR@,$ANSI2KNR,;t t
  8359. s,@LIBOBJS@,$LIBOBJS,;t t
  8360. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8361. CEOF
  8362. _ACEOF
  8363. cat >>$CONFIG_STATUS <<\_ACEOF
  8364. # Split the substitutions into bite-sized pieces for seds with
  8365. # small command number limits, like on Digital OSF/1 and HP-UX.
  8366. ac_max_sed_lines=48
  8367. ac_sed_frag=1 # Number of current file.
  8368. ac_beg=1 # First line for current file.
  8369. ac_end=$ac_max_sed_lines # Line after last line for current file.
  8370. ac_more_lines=:
  8371. ac_sed_cmds=
  8372. while $ac_more_lines; do
  8373. if test $ac_beg -gt 1; then
  8374. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8375. else
  8376. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8377. fi
  8378. if test ! -s $tmp/subs.frag; then
  8379. ac_more_lines=false
  8380. else
  8381. # The purpose of the label and of the branching condition is to
  8382. # speed up the sed processing (if there are no `@' at all, there
  8383. # is no need to browse any of the substitutions).
  8384. # These are the two extra sed commands mentioned above.
  8385. (echo ':t
  8386. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8387. if test -z "$ac_sed_cmds"; then
  8388. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8389. else
  8390. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8391. fi
  8392. ac_sed_frag=`expr $ac_sed_frag + 1`
  8393. ac_beg=$ac_end
  8394. ac_end=`expr $ac_end + $ac_max_sed_lines`
  8395. fi
  8396. done
  8397. if test -z "$ac_sed_cmds"; then
  8398. ac_sed_cmds=cat
  8399. fi
  8400. fi # test -n "$CONFIG_FILES"
  8401. _ACEOF
  8402. cat >>$CONFIG_STATUS <<\_ACEOF
  8403. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8404. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8405. case $ac_file in
  8406. - | *:- | *:-:* ) # input from stdin
  8407. cat >$tmp/stdin
  8408. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8409. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8410. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8411. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8412. * ) ac_file_in=$ac_file.in ;;
  8413. esac
  8414. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8415. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8416. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8417. X"$ac_file" : 'X\(//\)[^/]' \| \
  8418. X"$ac_file" : 'X\(//\)$' \| \
  8419. X"$ac_file" : 'X\(/\)' \| \
  8420. . : '\(.\)' 2>/dev/null ||
  8421. echo X"$ac_file" |
  8422. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8423. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8424. /^X\(\/\/\)$/{ s//\1/; q; }
  8425. /^X\(\/\).*/{ s//\1/; q; }
  8426. s/.*/./; q'`
  8427. { if $as_mkdir_p; then
  8428. mkdir -p "$ac_dir"
  8429. else
  8430. as_dir="$ac_dir"
  8431. as_dirs=
  8432. while test ! -d "$as_dir"; do
  8433. as_dirs="$as_dir $as_dirs"
  8434. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8435. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8436. X"$as_dir" : 'X\(//\)[^/]' \| \
  8437. X"$as_dir" : 'X\(//\)$' \| \
  8438. X"$as_dir" : 'X\(/\)' \| \
  8439. . : '\(.\)' 2>/dev/null ||
  8440. echo X"$as_dir" |
  8441. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8442. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8443. /^X\(\/\/\)$/{ s//\1/; q; }
  8444. /^X\(\/\).*/{ s//\1/; q; }
  8445. s/.*/./; q'`
  8446. done
  8447. test ! -n "$as_dirs" || mkdir $as_dirs
  8448. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8449. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8450. { (exit 1); exit 1; }; }; }
  8451. ac_builddir=.
  8452. if test "$ac_dir" != .; then
  8453. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8454. # A "../" for each directory in $ac_dir_suffix.
  8455. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8456. else
  8457. ac_dir_suffix= ac_top_builddir=
  8458. fi
  8459. case $srcdir in
  8460. .) # No --srcdir option. We are building in place.
  8461. ac_srcdir=.
  8462. if test -z "$ac_top_builddir"; then
  8463. ac_top_srcdir=.
  8464. else
  8465. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8466. fi ;;
  8467. [\\/]* | ?:[\\/]* ) # Absolute path.
  8468. ac_srcdir=$srcdir$ac_dir_suffix;
  8469. ac_top_srcdir=$srcdir ;;
  8470. *) # Relative path.
  8471. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8472. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8473. esac
  8474. # Do not use `cd foo && pwd` to compute absolute paths, because
  8475. # the directories may not exist.
  8476. case `pwd` in
  8477. .) ac_abs_builddir="$ac_dir";;
  8478. *)
  8479. case "$ac_dir" in
  8480. .) ac_abs_builddir=`pwd`;;
  8481. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8482. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8483. esac;;
  8484. esac
  8485. case $ac_abs_builddir in
  8486. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8487. *)
  8488. case ${ac_top_builddir}. in
  8489. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8490. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8491. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8492. esac;;
  8493. esac
  8494. case $ac_abs_builddir in
  8495. .) ac_abs_srcdir=$ac_srcdir;;
  8496. *)
  8497. case $ac_srcdir in
  8498. .) ac_abs_srcdir=$ac_abs_builddir;;
  8499. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8500. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8501. esac;;
  8502. esac
  8503. case $ac_abs_builddir in
  8504. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8505. *)
  8506. case $ac_top_srcdir in
  8507. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8508. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8509. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8510. esac;;
  8511. esac
  8512. case $INSTALL in
  8513. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8514. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8515. esac
  8516. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8517. # use $as_me), people would be surprised to read:
  8518. # /* config.h. Generated by config.status. */
  8519. if test x"$ac_file" = x-; then
  8520. configure_input=
  8521. else
  8522. configure_input="$ac_file. "
  8523. fi
  8524. configure_input=$configure_input"Generated from `echo $ac_file_in |
  8525. sed 's,.*/,,'` by configure."
  8526. # First look for the input files in the build tree, otherwise in the
  8527. # src tree.
  8528. ac_file_inputs=`IFS=:
  8529. for f in $ac_file_in; do
  8530. case $f in
  8531. -) echo $tmp/stdin ;;
  8532. [\\/$]*)
  8533. # Absolute (can't be DOS-style, as IFS=:)
  8534. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8535. echo "$as_me: error: cannot find input file: $f" >&2;}
  8536. { (exit 1); exit 1; }; }
  8537. echo "$f";;
  8538. *) # Relative
  8539. if test -f "$f"; then
  8540. # Build tree
  8541. echo "$f"
  8542. elif test -f "$srcdir/$f"; then
  8543. # Source tree
  8544. echo "$srcdir/$f"
  8545. else
  8546. # /dev/null tree
  8547. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8548. echo "$as_me: error: cannot find input file: $f" >&2;}
  8549. { (exit 1); exit 1; }; }
  8550. fi;;
  8551. esac
  8552. done` || { (exit 1); exit 1; }
  8553. if test x"$ac_file" != x-; then
  8554. { echo "$as_me:$LINENO: creating $ac_file" >&5
  8555. echo "$as_me: creating $ac_file" >&6;}
  8556. rm -f "$ac_file"
  8557. fi
  8558. _ACEOF
  8559. cat >>$CONFIG_STATUS <<_ACEOF
  8560. sed "$ac_vpsub
  8561. $extrasub
  8562. _ACEOF
  8563. cat >>$CONFIG_STATUS <<\_ACEOF
  8564. :t
  8565. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8566. s,@configure_input@,$configure_input,;t t
  8567. s,@srcdir@,$ac_srcdir,;t t
  8568. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8569. s,@top_srcdir@,$ac_top_srcdir,;t t
  8570. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8571. s,@builddir@,$ac_builddir,;t t
  8572. s,@abs_builddir@,$ac_abs_builddir,;t t
  8573. s,@top_builddir@,$ac_top_builddir,;t t
  8574. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8575. s,@INSTALL@,$ac_INSTALL,;t t
  8576. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8577. rm -f $tmp/stdin
  8578. if test x"$ac_file" != x-; then
  8579. mv $tmp/out $ac_file
  8580. else
  8581. cat $tmp/out
  8582. rm -f $tmp/out
  8583. fi
  8584. done
  8585. _ACEOF
  8586. cat >>$CONFIG_STATUS <<\_ACEOF
  8587. #
  8588. # CONFIG_HEADER section.
  8589. #
  8590. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8591. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  8592. #
  8593. # ac_d sets the value in "#define NAME VALUE" lines.
  8594. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  8595. ac_dB='[ ].*$,\1#\2'
  8596. ac_dC=' '
  8597. ac_dD=',;t'
  8598. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8599. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  8600. ac_uB='$,\1#\2define\3'
  8601. ac_uC=' '
  8602. ac_uD=',;t'
  8603. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  8604. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8605. case $ac_file in
  8606. - | *:- | *:-:* ) # input from stdin
  8607. cat >$tmp/stdin
  8608. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8609. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8610. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8611. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8612. * ) ac_file_in=$ac_file.in ;;
  8613. esac
  8614. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  8615. echo "$as_me: creating $ac_file" >&6;}
  8616. # First look for the input files in the build tree, otherwise in the
  8617. # src tree.
  8618. ac_file_inputs=`IFS=:
  8619. for f in $ac_file_in; do
  8620. case $f in
  8621. -) echo $tmp/stdin ;;
  8622. [\\/$]*)
  8623. # Absolute (can't be DOS-style, as IFS=:)
  8624. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8625. echo "$as_me: error: cannot find input file: $f" >&2;}
  8626. { (exit 1); exit 1; }; }
  8627. # Do quote $f, to prevent DOS paths from being IFS'd.
  8628. echo "$f";;
  8629. *) # Relative
  8630. if test -f "$f"; then
  8631. # Build tree
  8632. echo "$f"
  8633. elif test -f "$srcdir/$f"; then
  8634. # Source tree
  8635. echo "$srcdir/$f"
  8636. else
  8637. # /dev/null tree
  8638. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8639. echo "$as_me: error: cannot find input file: $f" >&2;}
  8640. { (exit 1); exit 1; }; }
  8641. fi;;
  8642. esac
  8643. done` || { (exit 1); exit 1; }
  8644. # Remove the trailing spaces.
  8645. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  8646. _ACEOF
  8647. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  8648. # `conftest.undefs', that substitutes the proper values into
  8649. # config.h.in to produce config.h. The first handles `#define'
  8650. # templates, and the second `#undef' templates.
  8651. # And first: Protect against being on the right side of a sed subst in
  8652. # config.status. Protect against being in an unquoted here document
  8653. # in config.status.
  8654. rm -f conftest.defines conftest.undefs
  8655. # Using a here document instead of a string reduces the quoting nightmare.
  8656. # Putting comments in sed scripts is not portable.
  8657. #
  8658. # `end' is used to avoid that the second main sed command (meant for
  8659. # 0-ary CPP macros) applies to n-ary macro definitions.
  8660. # See the Autoconf documentation for `clear'.
  8661. cat >confdef2sed.sed <<\_ACEOF
  8662. s/[\\&,]/\\&/g
  8663. s,[\\$`],\\&,g
  8664. t clear
  8665. : clear
  8666. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  8667. t end
  8668. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  8669. : end
  8670. _ACEOF
  8671. # If some macros were called several times there might be several times
  8672. # the same #defines, which is useless. Nevertheless, we may not want to
  8673. # sort them, since we want the *last* AC-DEFINE to be honored.
  8674. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  8675. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  8676. rm -f confdef2sed.sed
  8677. # This sed command replaces #undef with comments. This is necessary, for
  8678. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8679. # on some systems where configure will not decide to define it.
  8680. cat >>conftest.undefs <<\_ACEOF
  8681. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  8682. _ACEOF
  8683. # Break up conftest.defines because some shells have a limit on the size
  8684. # of here documents, and old seds have small limits too (100 cmds).
  8685. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  8686. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  8687. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  8688. echo ' :' >>$CONFIG_STATUS
  8689. rm -f conftest.tail
  8690. while grep . conftest.defines >/dev/null
  8691. do
  8692. # Write a limited-size here document to $tmp/defines.sed.
  8693. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  8694. # Speed up: don't consider the non `#define' lines.
  8695. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  8696. # Work around the forget-to-reset-the-flag bug.
  8697. echo 't clr' >>$CONFIG_STATUS
  8698. echo ': clr' >>$CONFIG_STATUS
  8699. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  8700. echo 'CEOF
  8701. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  8702. rm -f $tmp/in
  8703. mv $tmp/out $tmp/in
  8704. ' >>$CONFIG_STATUS
  8705. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  8706. rm -f conftest.defines
  8707. mv conftest.tail conftest.defines
  8708. done
  8709. rm -f conftest.defines
  8710. echo ' fi # grep' >>$CONFIG_STATUS
  8711. echo >>$CONFIG_STATUS
  8712. # Break up conftest.undefs because some shells have a limit on the size
  8713. # of here documents, and old seds have small limits too (100 cmds).
  8714. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  8715. rm -f conftest.tail
  8716. while grep . conftest.undefs >/dev/null
  8717. do
  8718. # Write a limited-size here document to $tmp/undefs.sed.
  8719. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  8720. # Speed up: don't consider the non `#undef'
  8721. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  8722. # Work around the forget-to-reset-the-flag bug.
  8723. echo 't clr' >>$CONFIG_STATUS
  8724. echo ': clr' >>$CONFIG_STATUS
  8725. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  8726. echo 'CEOF
  8727. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  8728. rm -f $tmp/in
  8729. mv $tmp/out $tmp/in
  8730. ' >>$CONFIG_STATUS
  8731. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  8732. rm -f conftest.undefs
  8733. mv conftest.tail conftest.undefs
  8734. done
  8735. rm -f conftest.undefs
  8736. cat >>$CONFIG_STATUS <<\_ACEOF
  8737. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8738. # use $as_me), people would be surprised to read:
  8739. # /* config.h. Generated by config.status. */
  8740. if test x"$ac_file" = x-; then
  8741. echo "/* Generated by configure. */" >$tmp/config.h
  8742. else
  8743. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  8744. fi
  8745. cat $tmp/in >>$tmp/config.h
  8746. rm -f $tmp/in
  8747. if test x"$ac_file" != x-; then
  8748. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  8749. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  8750. echo "$as_me: $ac_file is unchanged" >&6;}
  8751. else
  8752. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8753. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8754. X"$ac_file" : 'X\(//\)[^/]' \| \
  8755. X"$ac_file" : 'X\(//\)$' \| \
  8756. X"$ac_file" : 'X\(/\)' \| \
  8757. . : '\(.\)' 2>/dev/null ||
  8758. echo X"$ac_file" |
  8759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8760. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8761. /^X\(\/\/\)$/{ s//\1/; q; }
  8762. /^X\(\/\).*/{ s//\1/; q; }
  8763. s/.*/./; q'`
  8764. { if $as_mkdir_p; then
  8765. mkdir -p "$ac_dir"
  8766. else
  8767. as_dir="$ac_dir"
  8768. as_dirs=
  8769. while test ! -d "$as_dir"; do
  8770. as_dirs="$as_dir $as_dirs"
  8771. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8772. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8773. X"$as_dir" : 'X\(//\)[^/]' \| \
  8774. X"$as_dir" : 'X\(//\)$' \| \
  8775. X"$as_dir" : 'X\(/\)' \| \
  8776. . : '\(.\)' 2>/dev/null ||
  8777. echo X"$as_dir" |
  8778. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8779. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8780. /^X\(\/\/\)$/{ s//\1/; q; }
  8781. /^X\(\/\).*/{ s//\1/; q; }
  8782. s/.*/./; q'`
  8783. done
  8784. test ! -n "$as_dirs" || mkdir $as_dirs
  8785. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8786. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8787. { (exit 1); exit 1; }; }; }
  8788. rm -f $ac_file
  8789. mv $tmp/config.h $ac_file
  8790. fi
  8791. else
  8792. cat $tmp/config.h
  8793. rm -f $tmp/config.h
  8794. fi
  8795. # Compute $ac_file's index in $config_headers.
  8796. _am_stamp_count=1
  8797. for _am_header in $config_headers :; do
  8798. case $_am_header in
  8799. $ac_file | $ac_file:* )
  8800. break ;;
  8801. * )
  8802. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8803. esac
  8804. done
  8805. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  8806. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8807. X$ac_file : 'X\(//\)[^/]' \| \
  8808. X$ac_file : 'X\(//\)$' \| \
  8809. X$ac_file : 'X\(/\)' \| \
  8810. . : '\(.\)' 2>/dev/null ||
  8811. echo X$ac_file |
  8812. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8813. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8814. /^X\(\/\/\)$/{ s//\1/; q; }
  8815. /^X\(\/\).*/{ s//\1/; q; }
  8816. s/.*/./; q'`/stamp-h$_am_stamp_count
  8817. done
  8818. _ACEOF
  8819. cat >>$CONFIG_STATUS <<\_ACEOF
  8820. #
  8821. # CONFIG_COMMANDS section.
  8822. #
  8823. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  8824. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  8825. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8826. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  8827. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8828. X"$ac_dest" : 'X\(//\)[^/]' \| \
  8829. X"$ac_dest" : 'X\(//\)$' \| \
  8830. X"$ac_dest" : 'X\(/\)' \| \
  8831. . : '\(.\)' 2>/dev/null ||
  8832. echo X"$ac_dest" |
  8833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8834. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8835. /^X\(\/\/\)$/{ s//\1/; q; }
  8836. /^X\(\/\).*/{ s//\1/; q; }
  8837. s/.*/./; q'`
  8838. { if $as_mkdir_p; then
  8839. mkdir -p "$ac_dir"
  8840. else
  8841. as_dir="$ac_dir"
  8842. as_dirs=
  8843. while test ! -d "$as_dir"; do
  8844. as_dirs="$as_dir $as_dirs"
  8845. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8846. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8847. X"$as_dir" : 'X\(//\)[^/]' \| \
  8848. X"$as_dir" : 'X\(//\)$' \| \
  8849. X"$as_dir" : 'X\(/\)' \| \
  8850. . : '\(.\)' 2>/dev/null ||
  8851. echo X"$as_dir" |
  8852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8853. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8854. /^X\(\/\/\)$/{ s//\1/; q; }
  8855. /^X\(\/\).*/{ s//\1/; q; }
  8856. s/.*/./; q'`
  8857. done
  8858. test ! -n "$as_dirs" || mkdir $as_dirs
  8859. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8860. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8861. { (exit 1); exit 1; }; }; }
  8862. ac_builddir=.
  8863. if test "$ac_dir" != .; then
  8864. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8865. # A "../" for each directory in $ac_dir_suffix.
  8866. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8867. else
  8868. ac_dir_suffix= ac_top_builddir=
  8869. fi
  8870. case $srcdir in
  8871. .) # No --srcdir option. We are building in place.
  8872. ac_srcdir=.
  8873. if test -z "$ac_top_builddir"; then
  8874. ac_top_srcdir=.
  8875. else
  8876. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8877. fi ;;
  8878. [\\/]* | ?:[\\/]* ) # Absolute path.
  8879. ac_srcdir=$srcdir$ac_dir_suffix;
  8880. ac_top_srcdir=$srcdir ;;
  8881. *) # Relative path.
  8882. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8883. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8884. esac
  8885. # Do not use `cd foo && pwd` to compute absolute paths, because
  8886. # the directories may not exist.
  8887. case `pwd` in
  8888. .) ac_abs_builddir="$ac_dir";;
  8889. *)
  8890. case "$ac_dir" in
  8891. .) ac_abs_builddir=`pwd`;;
  8892. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8893. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8894. esac;;
  8895. esac
  8896. case $ac_abs_builddir in
  8897. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8898. *)
  8899. case ${ac_top_builddir}. in
  8900. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8901. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8902. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8903. esac;;
  8904. esac
  8905. case $ac_abs_builddir in
  8906. .) ac_abs_srcdir=$ac_srcdir;;
  8907. *)
  8908. case $ac_srcdir in
  8909. .) ac_abs_srcdir=$ac_abs_builddir;;
  8910. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8911. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8912. esac;;
  8913. esac
  8914. case $ac_abs_builddir in
  8915. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8916. *)
  8917. case $ac_top_srcdir in
  8918. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8919. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8920. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8921. esac;;
  8922. esac
  8923. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  8924. echo "$as_me: executing $ac_dest commands" >&6;}
  8925. case $ac_dest in
  8926. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  8927. # Strip MF so we end up with the name of the file.
  8928. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8929. # Check whether this is an Automake generated Makefile or not.
  8930. # We used to match only the files named `Makefile.in', but
  8931. # some people rename them; so instead we look at the file content.
  8932. # Grep'ing the first line is not enough: some people post-process
  8933. # each Makefile.in and add a new line on top of each file to say so.
  8934. # So let's grep whole file.
  8935. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  8936. dirpart=`(dirname "$mf") 2>/dev/null ||
  8937. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8938. X"$mf" : 'X\(//\)[^/]' \| \
  8939. X"$mf" : 'X\(//\)$' \| \
  8940. X"$mf" : 'X\(/\)' \| \
  8941. . : '\(.\)' 2>/dev/null ||
  8942. echo X"$mf" |
  8943. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8944. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8945. /^X\(\/\/\)$/{ s//\1/; q; }
  8946. /^X\(\/\).*/{ s//\1/; q; }
  8947. s/.*/./; q'`
  8948. else
  8949. continue
  8950. fi
  8951. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  8952. # Extract the definition of DEP_FILES from the Makefile without
  8953. # running `make'.
  8954. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  8955. test -z "$DEPDIR" && continue
  8956. # When using ansi2knr, U may be empty or an underscore; expand it
  8957. U=`sed -n -e '/^U = / s///p' < "$mf"`
  8958. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  8959. # We invoke sed twice because it is the simplest approach to
  8960. # changing $(DEPDIR) to its actual value in the expansion.
  8961. for file in `sed -n -e '
  8962. /^DEP_FILES = .*\\\\$/ {
  8963. s/^DEP_FILES = //
  8964. :loop
  8965. s/\\\\$//
  8966. p
  8967. n
  8968. /\\\\$/ b loop
  8969. p
  8970. }
  8971. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  8972. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8973. # Make sure the directory exists.
  8974. test -f "$dirpart/$file" && continue
  8975. fdir=`(dirname "$file") 2>/dev/null ||
  8976. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8977. X"$file" : 'X\(//\)[^/]' \| \
  8978. X"$file" : 'X\(//\)$' \| \
  8979. X"$file" : 'X\(/\)' \| \
  8980. . : '\(.\)' 2>/dev/null ||
  8981. echo X"$file" |
  8982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8983. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8984. /^X\(\/\/\)$/{ s//\1/; q; }
  8985. /^X\(\/\).*/{ s//\1/; q; }
  8986. s/.*/./; q'`
  8987. { if $as_mkdir_p; then
  8988. mkdir -p $dirpart/$fdir
  8989. else
  8990. as_dir=$dirpart/$fdir
  8991. as_dirs=
  8992. while test ! -d "$as_dir"; do
  8993. as_dirs="$as_dir $as_dirs"
  8994. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8995. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8996. X"$as_dir" : 'X\(//\)[^/]' \| \
  8997. X"$as_dir" : 'X\(//\)$' \| \
  8998. X"$as_dir" : 'X\(/\)' \| \
  8999. . : '\(.\)' 2>/dev/null ||
  9000. echo X"$as_dir" |
  9001. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9002. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9003. /^X\(\/\/\)$/{ s//\1/; q; }
  9004. /^X\(\/\).*/{ s//\1/; q; }
  9005. s/.*/./; q'`
  9006. done
  9007. test ! -n "$as_dirs" || mkdir $as_dirs
  9008. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  9009. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  9010. { (exit 1); exit 1; }; }; }
  9011. # echo "creating $dirpart/$file"
  9012. echo '# dummy' > "$dirpart/$file"
  9013. done
  9014. done
  9015. ;;
  9016. esac
  9017. done
  9018. _ACEOF
  9019. cat >>$CONFIG_STATUS <<\_ACEOF
  9020. { (exit 0); exit 0; }
  9021. _ACEOF
  9022. chmod +x $CONFIG_STATUS
  9023. ac_clean_files=$ac_clean_files_save
  9024. # configure is writing to config.log, and then calls config.status.
  9025. # config.status does its own redirection, appending to config.log.
  9026. # Unfortunately, on DOS this fails, as config.log is still kept open
  9027. # by configure, so config.status won't be able to write to it; its
  9028. # output is simply discarded. So we exec the FD to /dev/null,
  9029. # effectively closing config.log, so it can be properly (re)opened and
  9030. # appended to by config.status. When coming back to configure, we
  9031. # need to make the FD available again.
  9032. if test "$no_create" != yes; then
  9033. ac_cs_success=:
  9034. ac_config_status_args=
  9035. test "$silent" = yes &&
  9036. ac_config_status_args="$ac_config_status_args --quiet"
  9037. exec 5>/dev/null
  9038. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9039. exec 5>>config.log
  9040. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9041. # would make configure fail if this is the last instruction.
  9042. $ac_cs_success || { (exit 1); exit 1; }
  9043. fi
  9044. type dpkg >/dev/null 2>&1
  9045. if test $? -eq 0; then
  9046. # Generate debian/ link if the dpkg command exists
  9047. # (read: if we are running on a debian compatible system)
  9048. echo "creating Debian-specific links ..."
  9049. test -f debian/rules || ln -s contrib/Debian debian
  9050. fi
  9051. # -- Result --
  9052. echo
  9053. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  9054. echo
  9055. # Someone please show me a better way :) [borrowed by OpenSSH]
  9056. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  9057. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  9058. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  9059. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  9060. D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
  9061. echo " Target: ${target}"
  9062. test "$target" != "$host" && echo " Host: ${host}"
  9063. echo " Compiler: ${CC}"
  9064. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  9065. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  9066. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  9067. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  9068. echo
  9069. echo " 'ngircd' binary: $S"
  9070. echo " Configuration file: $C"
  9071. echo " Manual pages: $M"
  9072. echo " Documentation: $D"
  9073. echo
  9074. echo $ECHO_N " Syslog support: $ECHO_C"
  9075. test "$x_syslog_on" = "yes" \
  9076. && echo $ECHO_N "yes $ECHO_C" \
  9077. || echo $ECHO_N "no $ECHO_C"
  9078. echo $ECHO_N " Enable debug code: $ECHO_C"
  9079. test "$x_debug_on" = "yes" \
  9080. && echo "yes" \
  9081. || echo "no"
  9082. echo $ECHO_N " zlib compression: $ECHO_C"
  9083. test "$x_zlib_on" = "yes" \
  9084. && echo $ECHO_N "yes $ECHO_C" \
  9085. || echo $ECHO_N "no $ECHO_C"
  9086. echo $ECHO_N " IRC sniffer: $ECHO_C"
  9087. test "$x_sniffer_on" = "yes" \
  9088. && echo "yes" \
  9089. || echo "no"
  9090. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  9091. test "$x_tcpwrap_on" = "yes" \
  9092. && echo $ECHO_N "yes $ECHO_C" \
  9093. || echo $ECHO_N "no $ECHO_C"
  9094. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  9095. test "$x_strict_rfc_on" = "yes" \
  9096. && echo "yes" \
  9097. || echo "no"
  9098. echo $ECHO_N " Rendezvous support: $ECHO_C"
  9099. test "$x_rendezvous_on" = "osx" -o "$x_rendezvous_on" = "howl" \
  9100. && echo $ECHO_N "yes $ECHO_C" \
  9101. || echo $ECHO_N "no $ECHO_C"
  9102. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  9103. test "$x_ircplus_on" = "yes" \
  9104. && echo "yes" \
  9105. || echo "no"
  9106. echo $ECHO_N " IDENT support: $ECHO_C"
  9107. test "$x_identauth_on" = "yes" \
  9108. && echo $ECHO_N "yes $ECHO_C" \
  9109. || echo $ECHO_N "no $ECHO_C"
  9110. echo; echo
  9111. # -eof-