configure 240 KB

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