1
0

configure 240 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for ngIRCd 22.
  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='22'
  509. PACKAGE_STRING='ngIRCd 22'
  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 22 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 22:";;
  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 22
  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 22, 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 " getnameinfo"
  2072. as_fn_append ac_func_list " inet_aton"
  2073. as_fn_append ac_func_list " sigaction"
  2074. as_fn_append ac_func_list " sigprocmask"
  2075. as_fn_append ac_func_list " snprintf"
  2076. as_fn_append ac_func_list " vsnprintf"
  2077. as_fn_append ac_func_list " strdup"
  2078. as_fn_append ac_func_list " strndup"
  2079. as_fn_append ac_func_list " strlcpy"
  2080. as_fn_append ac_func_list " strlcat"
  2081. as_fn_append ac_func_list " strtok_r"
  2082. as_fn_append ac_func_list " unsetenv"
  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='22'
  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. # -- Function Definitions --
  4506. # -- Hard coded system and compiler dependencies/features/options ... --
  4507. if test "$GCC" = "yes"; then
  4508. # We are using the GNU C compiler. Good!
  4509. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4510. ssp_cc=yes
  4511. # Use -fstack-protector-all for the test to enfoce the use of the
  4512. # guard variable
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
  4514. $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
  4515. ssp_old_cflags="$CFLAGS"
  4516. CFLAGS="$CFLAGS -fstack-protector-all"
  4517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4518. /* end confdefs.h. */
  4519. int
  4520. main ()
  4521. {
  4522. ;
  4523. return 0;
  4524. }
  4525. _ACEOF
  4526. if ac_fn_c_try_link "$LINENO"; then :
  4527. else
  4528. ssp_cc=no
  4529. fi
  4530. rm -f core conftest.err conftest.$ac_objext \
  4531. conftest$ac_exeext conftest.$ac_ext
  4532. echo $ssp_cc
  4533. CFLAGS="$ssp_old_cflags"
  4534. if test "X$ssp_cc" = "Xyes"; then
  4535. CFLAGS="$CFLAGS -fstack-protector"
  4536. $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
  4537. fi
  4538. fi
  4539. case "$host_os" in
  4540. hpux*)
  4541. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4542. # (tested with HP/UX 11.11)
  4543. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4544. ;;
  4545. esac
  4546. # Add additional CFLAGS, eventually specified on the command line:
  4547. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4548. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"' -DDOCDIR='\"\$(docdir)\"'"
  4549. # -- Headers --
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4551. $as_echo_n "checking for ANSI C header files... " >&6; }
  4552. if test "${ac_cv_header_stdc+set}" = set; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. #include <stdlib.h>
  4558. #include <stdarg.h>
  4559. #include <string.h>
  4560. #include <float.h>
  4561. int
  4562. main ()
  4563. {
  4564. ;
  4565. return 0;
  4566. }
  4567. _ACEOF
  4568. if ac_fn_c_try_compile "$LINENO"; then :
  4569. ac_cv_header_stdc=yes
  4570. else
  4571. ac_cv_header_stdc=no
  4572. fi
  4573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4574. if test $ac_cv_header_stdc = yes; then
  4575. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4577. /* end confdefs.h. */
  4578. #include <string.h>
  4579. _ACEOF
  4580. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4581. $EGREP "memchr" >/dev/null 2>&1; then :
  4582. else
  4583. ac_cv_header_stdc=no
  4584. fi
  4585. rm -f conftest*
  4586. fi
  4587. if test $ac_cv_header_stdc = yes; then
  4588. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4590. /* end confdefs.h. */
  4591. #include <stdlib.h>
  4592. _ACEOF
  4593. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4594. $EGREP "free" >/dev/null 2>&1; then :
  4595. else
  4596. ac_cv_header_stdc=no
  4597. fi
  4598. rm -f conftest*
  4599. fi
  4600. if test $ac_cv_header_stdc = yes; then
  4601. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4602. if test "$cross_compiling" = yes; then :
  4603. :
  4604. else
  4605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4606. /* end confdefs.h. */
  4607. #include <ctype.h>
  4608. #include <stdlib.h>
  4609. #if ((' ' & 0x0FF) == 0x020)
  4610. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4611. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4612. #else
  4613. # define ISLOWER(c) \
  4614. (('a' <= (c) && (c) <= 'i') \
  4615. || ('j' <= (c) && (c) <= 'r') \
  4616. || ('s' <= (c) && (c) <= 'z'))
  4617. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4618. #endif
  4619. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4620. int
  4621. main ()
  4622. {
  4623. int i;
  4624. for (i = 0; i < 256; i++)
  4625. if (XOR (islower (i), ISLOWER (i))
  4626. || toupper (i) != TOUPPER (i))
  4627. return 2;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. if ac_fn_c_try_run "$LINENO"; then :
  4632. else
  4633. ac_cv_header_stdc=no
  4634. fi
  4635. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4636. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4637. fi
  4638. fi
  4639. fi
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4641. $as_echo "$ac_cv_header_stdc" >&6; }
  4642. if test $ac_cv_header_stdc = yes; then
  4643. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4646. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4647. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4651. /* end confdefs.h. */
  4652. #include <sys/types.h>
  4653. #include <sys/wait.h>
  4654. #ifndef WEXITSTATUS
  4655. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4656. #endif
  4657. #ifndef WIFEXITED
  4658. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4659. #endif
  4660. int
  4661. main ()
  4662. {
  4663. int s;
  4664. wait (&s);
  4665. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. if ac_fn_c_try_compile "$LINENO"; then :
  4671. ac_cv_header_sys_wait_h=yes
  4672. else
  4673. ac_cv_header_sys_wait_h=no
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4678. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4679. if test $ac_cv_header_sys_wait_h = yes; then
  4680. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4683. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4684. if test "${ac_cv_header_time+set}" = set; then :
  4685. $as_echo_n "(cached) " >&6
  4686. else
  4687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4688. /* end confdefs.h. */
  4689. #include <sys/types.h>
  4690. #include <sys/time.h>
  4691. #include <time.h>
  4692. int
  4693. main ()
  4694. {
  4695. if ((struct tm *) 0)
  4696. return 0;
  4697. ;
  4698. return 0;
  4699. }
  4700. _ACEOF
  4701. if ac_fn_c_try_compile "$LINENO"; then :
  4702. ac_cv_header_time=yes
  4703. else
  4704. ac_cv_header_time=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4709. $as_echo "$ac_cv_header_time" >&6; }
  4710. if test $ac_cv_header_time = yes; then
  4711. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4712. fi
  4713. # Required header files
  4714. for ac_header in \
  4715. fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  4716. strings.h sys/socket.h sys/time.h sys/types.h unistd.h \
  4717. do :
  4718. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4719. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4720. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4721. cat >>confdefs.h <<_ACEOF
  4722. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4723. _ACEOF
  4724. else
  4725. as_fn_error $? "required C header missing!" "$LINENO" 5
  4726. fi
  4727. done
  4728. # Optional header files
  4729. for ac_header in $ac_header_list
  4730. do :
  4731. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4732. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4733. "
  4734. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4735. cat >>confdefs.h <<_ACEOF
  4736. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4737. _ACEOF
  4738. fi
  4739. done
  4740. # -- Datatypes --
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t exists" >&5
  4742. $as_echo_n "checking whether socklen_t exists... " >&6; }
  4743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end confdefs.h. */
  4745. #include <sys/types.h>
  4746. #include <sys/socket.h>
  4747. int
  4748. main ()
  4749. {
  4750. socklen_t a, b;
  4751. a = 2; b = 4; a += b;
  4752. ;
  4753. return 0;
  4754. }
  4755. _ACEOF
  4756. if ac_fn_c_try_compile "$LINENO"; then :
  4757. $as_echo "#define HAVE_socklen_t 1" >>confdefs.h
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4759. $as_echo "yes" >&6; }
  4760. else
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4762. $as_echo "no" >&6; }
  4763. fi
  4764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4765. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4766. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4767. else
  4768. cat >>confdefs.h <<_ACEOF
  4769. #define pid_t int
  4770. _ACEOF
  4771. fi
  4772. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4773. if test "x$ac_cv_type_size_t" = x""yes; then :
  4774. else
  4775. cat >>confdefs.h <<_ACEOF
  4776. #define size_t unsigned int
  4777. _ACEOF
  4778. fi
  4779. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  4780. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  4781. else
  4782. cat >>confdefs.h <<_ACEOF
  4783. #define ssize_t int
  4784. _ACEOF
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4787. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4788. if test "${ac_cv_type_uid_t+set}" = set; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4792. /* end confdefs.h. */
  4793. #include <sys/types.h>
  4794. _ACEOF
  4795. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4796. $EGREP "uid_t" >/dev/null 2>&1; then :
  4797. ac_cv_type_uid_t=yes
  4798. else
  4799. ac_cv_type_uid_t=no
  4800. fi
  4801. rm -f conftest*
  4802. fi
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4804. $as_echo "$ac_cv_type_uid_t" >&6; }
  4805. if test $ac_cv_type_uid_t = no; then
  4806. $as_echo "#define uid_t int" >>confdefs.h
  4807. $as_echo "#define gid_t int" >>confdefs.h
  4808. fi
  4809. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  4810. case $ac_cv_c_uint16_t in #(
  4811. no|yes) ;; #(
  4812. *)
  4813. cat >>confdefs.h <<_ACEOF
  4814. #define uint16_t $ac_cv_c_uint16_t
  4815. _ACEOF
  4816. ;;
  4817. esac
  4818. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4819. case $ac_cv_c_uint32_t in #(
  4820. no|yes) ;; #(
  4821. *)
  4822. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4823. cat >>confdefs.h <<_ACEOF
  4824. #define uint32_t $ac_cv_c_uint32_t
  4825. _ACEOF
  4826. ;;
  4827. esac
  4828. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4829. case $ac_cv_c_uint8_t in #(
  4830. no|yes) ;; #(
  4831. *)
  4832. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define uint8_t $ac_cv_c_uint8_t
  4835. _ACEOF
  4836. ;;
  4837. esac
  4838. ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <arpa/inet.h>
  4839. "
  4840. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  4841. $as_echo "#define HAVE_sockaddr_in_len 1" >>confdefs.h
  4842. fi
  4843. # -- Libraries --
  4844. # memmove: A/UX libUTIL
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmove" >&5
  4846. $as_echo_n "checking for library containing memmove... " >&6; }
  4847. if test "${ac_cv_search_memmove+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. ac_func_search_save_LIBS=$LIBS
  4851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4852. /* end confdefs.h. */
  4853. /* Override any GCC internal prototype to avoid an error.
  4854. Use char because int might match the return type of a GCC
  4855. builtin and then its argument prototype would still apply. */
  4856. #ifdef __cplusplus
  4857. extern "C"
  4858. #endif
  4859. char memmove ();
  4860. int
  4861. main ()
  4862. {
  4863. return memmove ();
  4864. ;
  4865. return 0;
  4866. }
  4867. _ACEOF
  4868. for ac_lib in '' UTIL; do
  4869. if test -z "$ac_lib"; then
  4870. ac_res="none required"
  4871. else
  4872. ac_res=-l$ac_lib
  4873. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4874. fi
  4875. if ac_fn_c_try_link "$LINENO"; then :
  4876. ac_cv_search_memmove=$ac_res
  4877. fi
  4878. rm -f core conftest.err conftest.$ac_objext \
  4879. conftest$ac_exeext
  4880. if test "${ac_cv_search_memmove+set}" = set; then :
  4881. break
  4882. fi
  4883. done
  4884. if test "${ac_cv_search_memmove+set}" = set; then :
  4885. else
  4886. ac_cv_search_memmove=no
  4887. fi
  4888. rm conftest.$ac_ext
  4889. LIBS=$ac_func_search_save_LIBS
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmove" >&5
  4892. $as_echo "$ac_cv_search_memmove" >&6; }
  4893. ac_res=$ac_cv_search_memmove
  4894. if test "$ac_res" != no; then :
  4895. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4896. else
  4897. as_fn_error $? "unable to find the memmove() function" "$LINENO" 5
  4898. fi
  4899. # gethostbyname: Solaris libnsl
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  4901. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  4902. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. ac_func_search_save_LIBS=$LIBS
  4906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4907. /* end confdefs.h. */
  4908. /* Override any GCC internal prototype to avoid an error.
  4909. Use char because int might match the return type of a GCC
  4910. builtin and then its argument prototype would still apply. */
  4911. #ifdef __cplusplus
  4912. extern "C"
  4913. #endif
  4914. char gethostbyname ();
  4915. int
  4916. main ()
  4917. {
  4918. return gethostbyname ();
  4919. ;
  4920. return 0;
  4921. }
  4922. _ACEOF
  4923. for ac_lib in '' bind nsl network; do
  4924. if test -z "$ac_lib"; then
  4925. ac_res="none required"
  4926. else
  4927. ac_res=-l$ac_lib
  4928. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4929. fi
  4930. if ac_fn_c_try_link "$LINENO"; then :
  4931. ac_cv_search_gethostbyname=$ac_res
  4932. fi
  4933. rm -f core conftest.err conftest.$ac_objext \
  4934. conftest$ac_exeext
  4935. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4936. break
  4937. fi
  4938. done
  4939. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4940. else
  4941. ac_cv_search_gethostbyname=no
  4942. fi
  4943. rm conftest.$ac_ext
  4944. LIBS=$ac_func_search_save_LIBS
  4945. fi
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  4947. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  4948. ac_res=$ac_cv_search_gethostbyname
  4949. if test "$ac_res" != no; then :
  4950. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4951. else
  4952. as_fn_error $? "unable to find the gethostbyname() function" "$LINENO" 5
  4953. fi
  4954. # bind: SVR4 libsocket
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
  4956. $as_echo_n "checking for library containing bind... " >&6; }
  4957. if test "${ac_cv_search_bind+set}" = set; then :
  4958. $as_echo_n "(cached) " >&6
  4959. else
  4960. ac_func_search_save_LIBS=$LIBS
  4961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4962. /* end confdefs.h. */
  4963. /* Override any GCC internal prototype to avoid an error.
  4964. Use char because int might match the return type of a GCC
  4965. builtin and then its argument prototype would still apply. */
  4966. #ifdef __cplusplus
  4967. extern "C"
  4968. #endif
  4969. char bind ();
  4970. int
  4971. main ()
  4972. {
  4973. return bind ();
  4974. ;
  4975. return 0;
  4976. }
  4977. _ACEOF
  4978. for ac_lib in '' socket network; do
  4979. if test -z "$ac_lib"; then
  4980. ac_res="none required"
  4981. else
  4982. ac_res=-l$ac_lib
  4983. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4984. fi
  4985. if ac_fn_c_try_link "$LINENO"; then :
  4986. ac_cv_search_bind=$ac_res
  4987. fi
  4988. rm -f core conftest.err conftest.$ac_objext \
  4989. conftest$ac_exeext
  4990. if test "${ac_cv_search_bind+set}" = set; then :
  4991. break
  4992. fi
  4993. done
  4994. if test "${ac_cv_search_bind+set}" = set; then :
  4995. else
  4996. ac_cv_search_bind=no
  4997. fi
  4998. rm conftest.$ac_ext
  4999. LIBS=$ac_func_search_save_LIBS
  5000. fi
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
  5002. $as_echo "$ac_cv_search_bind" >&6; }
  5003. ac_res=$ac_cv_search_bind
  5004. if test "$ac_res" != no; then :
  5005. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5006. else
  5007. as_fn_error $? "unable to find the bind() function" "$LINENO" 5
  5008. fi
  5009. # -- Functions --
  5010. for ac_header in vfork.h
  5011. do :
  5012. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5013. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5014. cat >>confdefs.h <<_ACEOF
  5015. #define HAVE_VFORK_H 1
  5016. _ACEOF
  5017. fi
  5018. done
  5019. for ac_func in fork vfork
  5020. do :
  5021. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5022. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5023. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5024. cat >>confdefs.h <<_ACEOF
  5025. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5026. _ACEOF
  5027. fi
  5028. done
  5029. if test "x$ac_cv_func_fork" = xyes; then
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5031. $as_echo_n "checking for working fork... " >&6; }
  5032. if test "${ac_cv_func_fork_works+set}" = set; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. if test "$cross_compiling" = yes; then :
  5036. ac_cv_func_fork_works=cross
  5037. else
  5038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5039. /* end confdefs.h. */
  5040. $ac_includes_default
  5041. int
  5042. main ()
  5043. {
  5044. /* By Ruediger Kuhlmann. */
  5045. return fork () < 0;
  5046. ;
  5047. return 0;
  5048. }
  5049. _ACEOF
  5050. if ac_fn_c_try_run "$LINENO"; then :
  5051. ac_cv_func_fork_works=yes
  5052. else
  5053. ac_cv_func_fork_works=no
  5054. fi
  5055. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5056. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5057. fi
  5058. fi
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5060. $as_echo "$ac_cv_func_fork_works" >&6; }
  5061. else
  5062. ac_cv_func_fork_works=$ac_cv_func_fork
  5063. fi
  5064. if test "x$ac_cv_func_fork_works" = xcross; then
  5065. case $host in
  5066. *-*-amigaos* | *-*-msdosdjgpp*)
  5067. # Override, as these systems have only a dummy fork() stub
  5068. ac_cv_func_fork_works=no
  5069. ;;
  5070. *)
  5071. ac_cv_func_fork_works=yes
  5072. ;;
  5073. esac
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5075. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5076. fi
  5077. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5078. if test "x$ac_cv_func_vfork" = xyes; then
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5080. $as_echo_n "checking for working vfork... " >&6; }
  5081. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. if test "$cross_compiling" = yes; then :
  5085. ac_cv_func_vfork_works=cross
  5086. else
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. /* Thanks to Paul Eggert for this test. */
  5090. $ac_includes_default
  5091. #include <sys/wait.h>
  5092. #ifdef HAVE_VFORK_H
  5093. # include <vfork.h>
  5094. #endif
  5095. /* On some sparc systems, changes by the child to local and incoming
  5096. argument registers are propagated back to the parent. The compiler
  5097. is told about this with #include <vfork.h>, but some compilers
  5098. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5099. static variable whose address is put into a register that is
  5100. clobbered by the vfork. */
  5101. static void
  5102. #ifdef __cplusplus
  5103. sparc_address_test (int arg)
  5104. # else
  5105. sparc_address_test (arg) int arg;
  5106. #endif
  5107. {
  5108. static pid_t child;
  5109. if (!child) {
  5110. child = vfork ();
  5111. if (child < 0) {
  5112. perror ("vfork");
  5113. _exit(2);
  5114. }
  5115. if (!child) {
  5116. arg = getpid();
  5117. write(-1, "", 0);
  5118. _exit (arg);
  5119. }
  5120. }
  5121. }
  5122. int
  5123. main ()
  5124. {
  5125. pid_t parent = getpid ();
  5126. pid_t child;
  5127. sparc_address_test (0);
  5128. child = vfork ();
  5129. if (child == 0) {
  5130. /* Here is another test for sparc vfork register problems. This
  5131. test uses lots of local variables, at least as many local
  5132. variables as main has allocated so far including compiler
  5133. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5134. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5135. reuse the register of parent for one of the local variables,
  5136. since it will think that parent can't possibly be used any more
  5137. in this routine. Assigning to the local variable will thus
  5138. munge parent in the parent process. */
  5139. pid_t
  5140. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5141. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5142. /* Convince the compiler that p..p7 are live; otherwise, it might
  5143. use the same hardware register for all 8 local variables. */
  5144. if (p != p1 || p != p2 || p != p3 || p != p4
  5145. || p != p5 || p != p6 || p != p7)
  5146. _exit(1);
  5147. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5148. from child file descriptors. If the child closes a descriptor
  5149. before it execs or exits, this munges the parent's descriptor
  5150. as well. Test for this by closing stdout in the child. */
  5151. _exit(close(fileno(stdout)) != 0);
  5152. } else {
  5153. int status;
  5154. struct stat st;
  5155. while (wait(&status) != child)
  5156. ;
  5157. return (
  5158. /* Was there some problem with vforking? */
  5159. child < 0
  5160. /* Did the child fail? (This shouldn't happen.) */
  5161. || status
  5162. /* Did the vfork/compiler bug occur? */
  5163. || parent != getpid()
  5164. /* Did the file descriptor bug occur? */
  5165. || fstat(fileno(stdout), &st) != 0
  5166. );
  5167. }
  5168. }
  5169. _ACEOF
  5170. if ac_fn_c_try_run "$LINENO"; then :
  5171. ac_cv_func_vfork_works=yes
  5172. else
  5173. ac_cv_func_vfork_works=no
  5174. fi
  5175. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5176. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5177. fi
  5178. fi
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5180. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5181. fi;
  5182. if test "x$ac_cv_func_fork_works" = xcross; then
  5183. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5185. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5186. fi
  5187. if test "x$ac_cv_func_vfork_works" = xyes; then
  5188. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5189. else
  5190. $as_echo "#define vfork fork" >>confdefs.h
  5191. fi
  5192. if test "x$ac_cv_func_fork_works" = xyes; then
  5193. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5194. fi
  5195. for ac_func in strftime
  5196. do :
  5197. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  5198. if test "x$ac_cv_func_strftime" = x""yes; then :
  5199. cat >>confdefs.h <<_ACEOF
  5200. #define HAVE_STRFTIME 1
  5201. _ACEOF
  5202. else
  5203. # strftime is in -lintl on SCO UNIX.
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  5205. $as_echo_n "checking for strftime in -lintl... " >&6; }
  5206. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. ac_check_lib_save_LIBS=$LIBS
  5210. LIBS="-lintl $LIBS"
  5211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5212. /* end confdefs.h. */
  5213. /* Override any GCC internal prototype to avoid an error.
  5214. Use char because int might match the return type of a GCC
  5215. builtin and then its argument prototype would still apply. */
  5216. #ifdef __cplusplus
  5217. extern "C"
  5218. #endif
  5219. char strftime ();
  5220. int
  5221. main ()
  5222. {
  5223. return strftime ();
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. if ac_fn_c_try_link "$LINENO"; then :
  5229. ac_cv_lib_intl_strftime=yes
  5230. else
  5231. ac_cv_lib_intl_strftime=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext \
  5234. conftest$ac_exeext conftest.$ac_ext
  5235. LIBS=$ac_check_lib_save_LIBS
  5236. fi
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  5238. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  5239. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  5240. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  5241. LIBS="-lintl $LIBS"
  5242. fi
  5243. fi
  5244. done
  5245. # Required functions
  5246. for ac_func in \
  5247. alarm dup2 endpwent gethostbyaddr gethostbyname gethostname \
  5248. gettimeofday inet_ntoa memmove memset setsid socket strcasecmp \
  5249. strchr strcspn strerror strncasecmp strrchr strspn strstr \
  5250. do :
  5251. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5252. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5253. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5254. cat >>confdefs.h <<_ACEOF
  5255. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5256. _ACEOF
  5257. else
  5258. as_fn_error $? "required function missing!" "$LINENO" 5
  5259. fi
  5260. done
  5261. # Optional functions
  5262. for ac_func in $ac_func_list
  5263. do :
  5264. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5265. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5266. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5267. cat >>confdefs.h <<_ACEOF
  5268. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5269. _ACEOF
  5270. fi
  5271. done
  5272. for ac_func in getaddrinfo
  5273. do :
  5274. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  5275. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  5276. cat >>confdefs.h <<_ACEOF
  5277. #define HAVE_GETADDRINFO 1
  5278. _ACEOF
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo() works" >&5
  5280. $as_echo_n "checking whether getaddrinfo() works... " >&6; }
  5281. if test "$cross_compiling" = yes; then :
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5283. $as_echo "no" >&6; }
  5284. else
  5285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5286. /* end confdefs.h. */
  5287. #include <stdio.h>
  5288. #include <sys/types.h>
  5289. #include <sys/socket.h>
  5290. #include <netdb.h>
  5291. int
  5292. main(int argc, char **argv)
  5293. {
  5294. struct addrinfo hints, *ai;
  5295. memset(&hints, 0, sizeof(hints));
  5296. hints.ai_flags = AI_PASSIVE;
  5297. hints.ai_socktype = SOCK_STREAM;
  5298. hints.ai_family = PF_UNSPEC;
  5299. if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
  5300. return 1;
  5301. return 0;
  5302. }
  5303. _ACEOF
  5304. if ac_fn_c_try_run "$LINENO"; then :
  5305. $as_echo "#define HAVE_WORKING_GETADDRINFO 1" >>confdefs.h
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5307. $as_echo "yes" >&6; }
  5308. else
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5310. $as_echo "no" >&6; }
  5311. fi
  5312. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5313. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5314. fi
  5315. fi
  5316. done
  5317. # -- Configuration options --
  5318. # use syslog?
  5319. x_syslog_on=no
  5320. # Check whether --with-syslog was given.
  5321. if test "${with_syslog+set}" = set; then :
  5322. withval=$with_syslog; if test "$withval" != "no"; then
  5323. if test "$withval" != "yes"; then
  5324. CFLAGS="-I$withval/include $CFLAGS"
  5325. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5326. LDFLAGS="-L$withval/lib $LDFLAGS"
  5327. fi
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5329. $as_echo_n "checking for library containing syslog... " >&6; }
  5330. if test "${ac_cv_search_syslog+set}" = set; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. ac_func_search_save_LIBS=$LIBS
  5334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5335. /* end confdefs.h. */
  5336. /* Override any GCC internal prototype to avoid an error.
  5337. Use char because int might match the return type of a GCC
  5338. builtin and then its argument prototype would still apply. */
  5339. #ifdef __cplusplus
  5340. extern "C"
  5341. #endif
  5342. char syslog ();
  5343. int
  5344. main ()
  5345. {
  5346. return syslog ();
  5347. ;
  5348. return 0;
  5349. }
  5350. _ACEOF
  5351. for ac_lib in '' be; do
  5352. if test -z "$ac_lib"; then
  5353. ac_res="none required"
  5354. else
  5355. ac_res=-l$ac_lib
  5356. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5357. fi
  5358. if ac_fn_c_try_link "$LINENO"; then :
  5359. ac_cv_search_syslog=$ac_res
  5360. fi
  5361. rm -f core conftest.err conftest.$ac_objext \
  5362. conftest$ac_exeext
  5363. if test "${ac_cv_search_syslog+set}" = set; then :
  5364. break
  5365. fi
  5366. done
  5367. if test "${ac_cv_search_syslog+set}" = set; then :
  5368. else
  5369. ac_cv_search_syslog=no
  5370. fi
  5371. rm conftest.$ac_ext
  5372. LIBS=$ac_func_search_save_LIBS
  5373. fi
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5375. $as_echo "$ac_cv_search_syslog" >&6; }
  5376. ac_res=$ac_cv_search_syslog
  5377. if test "$ac_res" != no; then :
  5378. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5379. x_syslog_on=yes
  5380. else
  5381. as_fn_error $? "Can't enable syslog!" "$LINENO" 5
  5382. fi
  5383. fi
  5384. else
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5386. $as_echo_n "checking for library containing syslog... " >&6; }
  5387. if test "${ac_cv_search_syslog+set}" = set; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. ac_func_search_save_LIBS=$LIBS
  5391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5392. /* end confdefs.h. */
  5393. /* Override any GCC internal prototype to avoid an error.
  5394. Use char because int might match the return type of a GCC
  5395. builtin and then its argument prototype would still apply. */
  5396. #ifdef __cplusplus
  5397. extern "C"
  5398. #endif
  5399. char syslog ();
  5400. int
  5401. main ()
  5402. {
  5403. return syslog ();
  5404. ;
  5405. return 0;
  5406. }
  5407. _ACEOF
  5408. for ac_lib in '' be; do
  5409. if test -z "$ac_lib"; then
  5410. ac_res="none required"
  5411. else
  5412. ac_res=-l$ac_lib
  5413. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5414. fi
  5415. if ac_fn_c_try_link "$LINENO"; then :
  5416. ac_cv_search_syslog=$ac_res
  5417. fi
  5418. rm -f core conftest.err conftest.$ac_objext \
  5419. conftest$ac_exeext
  5420. if test "${ac_cv_search_syslog+set}" = set; then :
  5421. break
  5422. fi
  5423. done
  5424. if test "${ac_cv_search_syslog+set}" = set; then :
  5425. else
  5426. ac_cv_search_syslog=no
  5427. fi
  5428. rm conftest.$ac_ext
  5429. LIBS=$ac_func_search_save_LIBS
  5430. fi
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5432. $as_echo "$ac_cv_search_syslog" >&6; }
  5433. ac_res=$ac_cv_search_syslog
  5434. if test "$ac_res" != no; then :
  5435. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5436. x_syslog_on=yes
  5437. fi
  5438. fi
  5439. if test "$x_syslog_on" = "yes"; then
  5440. $as_echo "#define SYSLOG 1" >>confdefs.h
  5441. for ac_header in syslog.h
  5442. do :
  5443. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  5444. if test "x$ac_cv_header_syslog_h" = x""yes; then :
  5445. cat >>confdefs.h <<_ACEOF
  5446. #define HAVE_SYSLOG_H 1
  5447. _ACEOF
  5448. else
  5449. as_fn_error $? "required C header missing!" "$LINENO" 5
  5450. fi
  5451. done
  5452. fi
  5453. # use zlib compression?
  5454. x_zlib_on=no
  5455. # Check whether --with-zlib was given.
  5456. if test "${with_zlib+set}" = set; then :
  5457. withval=$with_zlib; if test "$withval" != "no"; then
  5458. if test "$withval" != "yes"; then
  5459. CFLAGS="-I$withval/include $CFLAGS"
  5460. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5461. LDFLAGS="-L$withval/lib $LDFLAGS"
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5464. $as_echo_n "checking for deflate in -lz... " >&6; }
  5465. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5466. $as_echo_n "(cached) " >&6
  5467. else
  5468. ac_check_lib_save_LIBS=$LIBS
  5469. LIBS="-lz $LIBS"
  5470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5471. /* end confdefs.h. */
  5472. /* Override any GCC internal prototype to avoid an error.
  5473. Use char because int might match the return type of a GCC
  5474. builtin and then its argument prototype would still apply. */
  5475. #ifdef __cplusplus
  5476. extern "C"
  5477. #endif
  5478. char deflate ();
  5479. int
  5480. main ()
  5481. {
  5482. return deflate ();
  5483. ;
  5484. return 0;
  5485. }
  5486. _ACEOF
  5487. if ac_fn_c_try_link "$LINENO"; then :
  5488. ac_cv_lib_z_deflate=yes
  5489. else
  5490. ac_cv_lib_z_deflate=no
  5491. fi
  5492. rm -f core conftest.err conftest.$ac_objext \
  5493. conftest$ac_exeext conftest.$ac_ext
  5494. LIBS=$ac_check_lib_save_LIBS
  5495. fi
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5497. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5498. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5499. cat >>confdefs.h <<_ACEOF
  5500. #define HAVE_LIBZ 1
  5501. _ACEOF
  5502. LIBS="-lz $LIBS"
  5503. fi
  5504. for ac_func in deflate
  5505. do :
  5506. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5507. if test "x$ac_cv_func_deflate" = x""yes; then :
  5508. cat >>confdefs.h <<_ACEOF
  5509. #define HAVE_DEFLATE 1
  5510. _ACEOF
  5511. x_zlib_on=yes
  5512. else
  5513. as_fn_error $? "Can't enable zlib!" "$LINENO" 5
  5514. fi
  5515. done
  5516. fi
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5519. $as_echo_n "checking for deflate in -lz... " >&6; }
  5520. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. ac_check_lib_save_LIBS=$LIBS
  5524. LIBS="-lz $LIBS"
  5525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5526. /* end confdefs.h. */
  5527. /* Override any GCC internal prototype to avoid an error.
  5528. Use char because int might match the return type of a GCC
  5529. builtin and then its argument prototype would still apply. */
  5530. #ifdef __cplusplus
  5531. extern "C"
  5532. #endif
  5533. char deflate ();
  5534. int
  5535. main ()
  5536. {
  5537. return deflate ();
  5538. ;
  5539. return 0;
  5540. }
  5541. _ACEOF
  5542. if ac_fn_c_try_link "$LINENO"; then :
  5543. ac_cv_lib_z_deflate=yes
  5544. else
  5545. ac_cv_lib_z_deflate=no
  5546. fi
  5547. rm -f core conftest.err conftest.$ac_objext \
  5548. conftest$ac_exeext conftest.$ac_ext
  5549. LIBS=$ac_check_lib_save_LIBS
  5550. fi
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5552. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5553. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5554. cat >>confdefs.h <<_ACEOF
  5555. #define HAVE_LIBZ 1
  5556. _ACEOF
  5557. LIBS="-lz $LIBS"
  5558. fi
  5559. for ac_func in deflate
  5560. do :
  5561. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5562. if test "x$ac_cv_func_deflate" = x""yes; then :
  5563. cat >>confdefs.h <<_ACEOF
  5564. #define HAVE_DEFLATE 1
  5565. _ACEOF
  5566. x_zlib_on=yes
  5567. fi
  5568. done
  5569. fi
  5570. if test "$x_zlib_on" = "yes"; then
  5571. $as_echo "#define ZLIB 1" >>confdefs.h
  5572. for ac_header in zlib.h
  5573. do :
  5574. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5575. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5576. cat >>confdefs.h <<_ACEOF
  5577. #define HAVE_ZLIB_H 1
  5578. _ACEOF
  5579. else
  5580. as_fn_error $? "required C header missing!" "$LINENO" 5
  5581. fi
  5582. done
  5583. fi
  5584. # detect which IO API to use:
  5585. x_io_backend=none
  5586. # Check whether --with-select was given.
  5587. if test "${with_select+set}" = set; then :
  5588. withval=$with_select; if test "$withval" != "no"; then
  5589. if test "$withval" != "yes"; then
  5590. CFLAGS="-I$withval/include $CFLAGS"
  5591. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5592. LDFLAGS="-L$withval/lib $LDFLAGS"
  5593. fi
  5594. for ac_func in select
  5595. do :
  5596. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5597. if test "x$ac_cv_func_select" = x""yes; then :
  5598. cat >>confdefs.h <<_ACEOF
  5599. #define HAVE_SELECT 1
  5600. _ACEOF
  5601. x_io_select=yes
  5602. else
  5603. as_fn_error $? "Can't enable select IO support!" "$LINENO" 5
  5604. fi
  5605. done
  5606. fi
  5607. else
  5608. for ac_func in select
  5609. do :
  5610. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5611. if test "x$ac_cv_func_select" = x""yes; then :
  5612. cat >>confdefs.h <<_ACEOF
  5613. #define HAVE_SELECT 1
  5614. _ACEOF
  5615. x_io_select=yes
  5616. fi
  5617. done
  5618. fi
  5619. # Check whether --with-poll was given.
  5620. if test "${with_poll+set}" = set; then :
  5621. withval=$with_poll; if test "$withval" != "no"; then
  5622. if test "$withval" != "yes"; then
  5623. CFLAGS="-I$withval/include $CFLAGS"
  5624. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5625. LDFLAGS="-L$withval/lib $LDFLAGS"
  5626. fi
  5627. for ac_func in poll
  5628. do :
  5629. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5630. if test "x$ac_cv_func_poll" = x""yes; then :
  5631. cat >>confdefs.h <<_ACEOF
  5632. #define HAVE_POLL 1
  5633. _ACEOF
  5634. for ac_header in poll.h
  5635. do :
  5636. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5637. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5638. cat >>confdefs.h <<_ACEOF
  5639. #define HAVE_POLL_H 1
  5640. _ACEOF
  5641. x_io_backend=poll\(\)
  5642. else
  5643. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5644. fi
  5645. done
  5646. else
  5647. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5648. fi
  5649. done
  5650. fi
  5651. else
  5652. for ac_func in poll
  5653. do :
  5654. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5655. if test "x$ac_cv_func_poll" = x""yes; then :
  5656. cat >>confdefs.h <<_ACEOF
  5657. #define HAVE_POLL 1
  5658. _ACEOF
  5659. for ac_header in poll.h
  5660. do :
  5661. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5662. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5663. cat >>confdefs.h <<_ACEOF
  5664. #define HAVE_POLL_H 1
  5665. _ACEOF
  5666. x_io_backend=poll\(\)
  5667. fi
  5668. done
  5669. fi
  5670. done
  5671. fi
  5672. # Check whether --with-devpoll was given.
  5673. if test "${with_devpoll+set}" = set; then :
  5674. withval=$with_devpoll; if test "$withval" != "no"; then
  5675. if test "$withval" != "yes"; then
  5676. CFLAGS="-I$withval/include $CFLAGS"
  5677. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5678. LDFLAGS="-L$withval/lib $LDFLAGS"
  5679. fi
  5680. for ac_header in sys/devpoll.h
  5681. do :
  5682. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5683. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5684. cat >>confdefs.h <<_ACEOF
  5685. #define HAVE_SYS_DEVPOLL_H 1
  5686. _ACEOF
  5687. else
  5688. as_fn_error $? "required C header missing!" "$LINENO" 5
  5689. fi
  5690. done
  5691. fi
  5692. else
  5693. for ac_header in sys/devpoll.h
  5694. do :
  5695. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5696. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5697. cat >>confdefs.h <<_ACEOF
  5698. #define HAVE_SYS_DEVPOLL_H 1
  5699. _ACEOF
  5700. x_io_backend=/dev/poll
  5701. fi
  5702. done
  5703. fi
  5704. # Check whether --with-epoll was given.
  5705. if test "${with_epoll+set}" = set; then :
  5706. withval=$with_epoll; if test "$withval" != "no"; then
  5707. if test "$withval" != "yes"; then
  5708. CFLAGS="-I$withval/include $CFLAGS"
  5709. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5710. LDFLAGS="-L$withval/lib $LDFLAGS"
  5711. fi
  5712. for ac_func in epoll_create
  5713. do :
  5714. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5715. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5716. cat >>confdefs.h <<_ACEOF
  5717. #define HAVE_EPOLL_CREATE 1
  5718. _ACEOF
  5719. x_io_epoll=yes
  5720. else
  5721. as_fn_error $? "Can't enable epoll IO support!" "$LINENO" 5
  5722. fi
  5723. done
  5724. fi
  5725. else
  5726. for ac_func in epoll_create
  5727. do :
  5728. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5729. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5730. cat >>confdefs.h <<_ACEOF
  5731. #define HAVE_EPOLL_CREATE 1
  5732. _ACEOF
  5733. x_io_epoll=yes
  5734. fi
  5735. done
  5736. fi
  5737. # Check whether --with-kqueue was given.
  5738. if test "${with_kqueue+set}" = set; then :
  5739. withval=$with_kqueue; if test "$withval" != "no"; then
  5740. if test "$withval" != "yes"; then
  5741. CFLAGS="-I$withval/include $CFLAGS"
  5742. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5743. LDFLAGS="-L$withval/lib $LDFLAGS"
  5744. fi
  5745. for ac_func in kqueue
  5746. do :
  5747. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5748. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5749. cat >>confdefs.h <<_ACEOF
  5750. #define HAVE_KQUEUE 1
  5751. _ACEOF
  5752. x_io_backend=kqueue\(\)
  5753. else
  5754. as_fn_error $? "Can't enable kqueue IO support!" "$LINENO" 5
  5755. fi
  5756. done
  5757. fi
  5758. else
  5759. for ac_func in kqueue
  5760. do :
  5761. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5762. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5763. cat >>confdefs.h <<_ACEOF
  5764. #define HAVE_KQUEUE 1
  5765. _ACEOF
  5766. x_io_backend=kqueue\(\)
  5767. fi
  5768. done
  5769. fi
  5770. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  5771. # when epoll() and select() are available, we'll use both!
  5772. x_io_backend="epoll(), select()"
  5773. else
  5774. if test "$x_io_epoll" = "yes"; then
  5775. # we prefere epoll() if it is available
  5776. x_io_backend="epoll()"
  5777. else
  5778. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  5779. # we'll use select, when available and no "better"
  5780. # interface has been detected ...
  5781. x_io_backend="select()"
  5782. fi
  5783. fi
  5784. fi
  5785. if test "$x_io_backend" = "none"; then
  5786. as_fn_error $? "No useable IO API activated/found!?" "$LINENO" 5
  5787. fi
  5788. # use SSL?
  5789. # Check whether --with-openssl was given.
  5790. if test "${with_openssl+set}" = set; then :
  5791. withval=$with_openssl; if test "$withval" != "no"; then
  5792. if test "$withval" != "yes"; then
  5793. CFLAGS="-I$withval/include $CFLAGS"
  5794. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5795. LDFLAGS="-L$withval/lib $LDFLAGS"
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_s_mem in -lcrypto" >&5
  5798. $as_echo_n "checking for BIO_s_mem in -lcrypto... " >&6; }
  5799. if test "${ac_cv_lib_crypto_BIO_s_mem+set}" = set; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. ac_check_lib_save_LIBS=$LIBS
  5803. LIBS="-lcrypto $LIBS"
  5804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5805. /* end confdefs.h. */
  5806. /* Override any GCC internal prototype to avoid an error.
  5807. Use char because int might match the return type of a GCC
  5808. builtin and then its argument prototype would still apply. */
  5809. #ifdef __cplusplus
  5810. extern "C"
  5811. #endif
  5812. char BIO_s_mem ();
  5813. int
  5814. main ()
  5815. {
  5816. return BIO_s_mem ();
  5817. ;
  5818. return 0;
  5819. }
  5820. _ACEOF
  5821. if ac_fn_c_try_link "$LINENO"; then :
  5822. ac_cv_lib_crypto_BIO_s_mem=yes
  5823. else
  5824. ac_cv_lib_crypto_BIO_s_mem=no
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext \
  5827. conftest$ac_exeext conftest.$ac_ext
  5828. LIBS=$ac_check_lib_save_LIBS
  5829. fi
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  5831. $as_echo "$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  5832. if test "x$ac_cv_lib_crypto_BIO_s_mem" = x""yes; then :
  5833. cat >>confdefs.h <<_ACEOF
  5834. #define HAVE_LIBCRYPTO 1
  5835. _ACEOF
  5836. LIBS="-lcrypto $LIBS"
  5837. fi
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  5839. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  5840. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. ac_check_lib_save_LIBS=$LIBS
  5844. LIBS="-lssl $LIBS"
  5845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5846. /* end confdefs.h. */
  5847. /* Override any GCC internal prototype to avoid an error.
  5848. Use char because int might match the return type of a GCC
  5849. builtin and then its argument prototype would still apply. */
  5850. #ifdef __cplusplus
  5851. extern "C"
  5852. #endif
  5853. char SSL_library_init ();
  5854. int
  5855. main ()
  5856. {
  5857. return SSL_library_init ();
  5858. ;
  5859. return 0;
  5860. }
  5861. _ACEOF
  5862. if ac_fn_c_try_link "$LINENO"; then :
  5863. ac_cv_lib_ssl_SSL_library_init=yes
  5864. else
  5865. ac_cv_lib_ssl_SSL_library_init=no
  5866. fi
  5867. rm -f core conftest.err conftest.$ac_objext \
  5868. conftest$ac_exeext conftest.$ac_ext
  5869. LIBS=$ac_check_lib_save_LIBS
  5870. fi
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5872. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5873. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  5874. cat >>confdefs.h <<_ACEOF
  5875. #define HAVE_LIBSSL 1
  5876. _ACEOF
  5877. LIBS="-lssl $LIBS"
  5878. fi
  5879. for ac_func in SSL_library_init
  5880. do :
  5881. ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init"
  5882. if test "x$ac_cv_func_SSL_library_init" = x""yes; then :
  5883. cat >>confdefs.h <<_ACEOF
  5884. #define HAVE_SSL_LIBRARY_INIT 1
  5885. _ACEOF
  5886. x_ssl_openssl=yes
  5887. else
  5888. as_fn_error $? "Can't enable openssl" "$LINENO" 5
  5889. fi
  5890. done
  5891. fi
  5892. fi
  5893. # Check whether --with-gnutls was given.
  5894. if test "${with_gnutls+set}" = set; then :
  5895. withval=$with_gnutls; if test "$withval" != "no"; then
  5896. if test "$withval" != "yes"; then
  5897. CFLAGS="-I$withval/include $CFLAGS"
  5898. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5899. LDFLAGS="-L$withval/lib $LDFLAGS"
  5900. fi
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
  5902. $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
  5903. if test "${ac_cv_lib_gnutls_gnutls_global_init+set}" = set; then :
  5904. $as_echo_n "(cached) " >&6
  5905. else
  5906. ac_check_lib_save_LIBS=$LIBS
  5907. LIBS="-lgnutls $LIBS"
  5908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5909. /* end confdefs.h. */
  5910. /* Override any GCC internal prototype to avoid an error.
  5911. Use char because int might match the return type of a GCC
  5912. builtin and then its argument prototype would still apply. */
  5913. #ifdef __cplusplus
  5914. extern "C"
  5915. #endif
  5916. char gnutls_global_init ();
  5917. int
  5918. main ()
  5919. {
  5920. return gnutls_global_init ();
  5921. ;
  5922. return 0;
  5923. }
  5924. _ACEOF
  5925. if ac_fn_c_try_link "$LINENO"; then :
  5926. ac_cv_lib_gnutls_gnutls_global_init=yes
  5927. else
  5928. ac_cv_lib_gnutls_gnutls_global_init=no
  5929. fi
  5930. rm -f core conftest.err conftest.$ac_objext \
  5931. conftest$ac_exeext conftest.$ac_ext
  5932. LIBS=$ac_check_lib_save_LIBS
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  5935. $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  5936. if test "x$ac_cv_lib_gnutls_gnutls_global_init" = x""yes; then :
  5937. cat >>confdefs.h <<_ACEOF
  5938. #define HAVE_LIBGNUTLS 1
  5939. _ACEOF
  5940. LIBS="-lgnutls $LIBS"
  5941. fi
  5942. for ac_func in gnutls_global_init
  5943. do :
  5944. ac_fn_c_check_func "$LINENO" "gnutls_global_init" "ac_cv_func_gnutls_global_init"
  5945. if test "x$ac_cv_func_gnutls_global_init" = x""yes; then :
  5946. cat >>confdefs.h <<_ACEOF
  5947. #define HAVE_GNUTLS_GLOBAL_INIT 1
  5948. _ACEOF
  5949. x_ssl_gnutls=yes
  5950. else
  5951. as_fn_error $? "Can't enable gnutls" "$LINENO" 5
  5952. fi
  5953. done
  5954. fi
  5955. fi
  5956. x_ssl_lib="no"
  5957. if test "$x_ssl_gnutls" = "yes"; then
  5958. if test "$x_ssl_openssl" = "yes";then
  5959. as_fn_error $? "Cannot enable both gnutls and openssl" "$LINENO" 5
  5960. fi
  5961. x_ssl_lib=gnutls
  5962. fi
  5963. if test "$x_ssl_openssl" = "yes"; then
  5964. x_ssl_lib=openssl
  5965. fi
  5966. # use TCP wrappers?
  5967. x_tcpwrap_on=no
  5968. # Check whether --with-tcp-wrappers was given.
  5969. if test "${with_tcp_wrappers+set}" = set; then :
  5970. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  5971. if test "$withval" != "yes"; then
  5972. CFLAGS="-I$withval/include $CFLAGS"
  5973. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5974. LDFLAGS="-L$withval/lib $LDFLAGS"
  5975. fi
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access" >&5
  5977. $as_echo_n "checking for hosts_access... " >&6; }
  5978. saved_LIBS="$LIBS"
  5979. LIBS="-lwrap $LIBS"
  5980. LIBS_END="-lwrap $LIBS_END"
  5981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5982. /* end confdefs.h. */
  5983. #include <sys/types.h>
  5984. #include <sys/socket.h>
  5985. #include <tcpd.h>
  5986. int allow_severity = 0;
  5987. int deny_severity = 0;
  5988. int
  5989. main ()
  5990. {
  5991. tcpd_warn("link test");
  5992. ;
  5993. return 0;
  5994. }
  5995. _ACEOF
  5996. if ac_fn_c_try_link "$LINENO"; then :
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5998. $as_echo "yes" >&6; }
  5999. $as_echo "#define TCPWRAP 1" >>confdefs.h
  6000. x_tcpwrap_on=yes
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. as_fn_error $? "Can't enable TCP wrappers!" "$LINENO" 5
  6005. fi
  6006. rm -f core conftest.err conftest.$ac_objext \
  6007. conftest$ac_exeext conftest.$ac_ext
  6008. LIBS="$saved_LIBS"
  6009. fi
  6010. fi
  6011. # do IDENT requests using libident?
  6012. x_identauth_on=no
  6013. # Check whether --with-ident was given.
  6014. if test "${with_ident+set}" = set; then :
  6015. withval=$with_ident; if test "$withval" != "no"; then
  6016. if test "$withval" != "yes"; then
  6017. CFLAGS="-I$withval/include $CFLAGS"
  6018. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6019. LDFLAGS="-L$withval/lib $LDFLAGS"
  6020. fi
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
  6022. $as_echo_n "checking for ident_id in -lident... " >&6; }
  6023. if test "${ac_cv_lib_ident_ident_id+set}" = set; then :
  6024. $as_echo_n "(cached) " >&6
  6025. else
  6026. ac_check_lib_save_LIBS=$LIBS
  6027. LIBS="-lident $LIBS"
  6028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end confdefs.h. */
  6030. /* Override any GCC internal prototype to avoid an error.
  6031. Use char because int might match the return type of a GCC
  6032. builtin and then its argument prototype would still apply. */
  6033. #ifdef __cplusplus
  6034. extern "C"
  6035. #endif
  6036. char ident_id ();
  6037. int
  6038. main ()
  6039. {
  6040. return ident_id ();
  6041. ;
  6042. return 0;
  6043. }
  6044. _ACEOF
  6045. if ac_fn_c_try_link "$LINENO"; then :
  6046. ac_cv_lib_ident_ident_id=yes
  6047. else
  6048. ac_cv_lib_ident_ident_id=no
  6049. fi
  6050. rm -f core conftest.err conftest.$ac_objext \
  6051. conftest$ac_exeext conftest.$ac_ext
  6052. LIBS=$ac_check_lib_save_LIBS
  6053. fi
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
  6055. $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
  6056. if test "x$ac_cv_lib_ident_ident_id" = x""yes; then :
  6057. cat >>confdefs.h <<_ACEOF
  6058. #define HAVE_LIBIDENT 1
  6059. _ACEOF
  6060. LIBS="-lident $LIBS"
  6061. fi
  6062. for ac_func in ident_id
  6063. do :
  6064. ac_fn_c_check_func "$LINENO" "ident_id" "ac_cv_func_ident_id"
  6065. if test "x$ac_cv_func_ident_id" = x""yes; then :
  6066. cat >>confdefs.h <<_ACEOF
  6067. #define HAVE_IDENT_ID 1
  6068. _ACEOF
  6069. x_identauth_on=yes
  6070. else
  6071. as_fn_error $? "Can't enable IDENT support!" "$LINENO" 5
  6072. fi
  6073. done
  6074. fi
  6075. fi
  6076. if test "$x_identauth_on" = "yes"; then
  6077. $as_echo "#define IDENTAUTH 1" >>confdefs.h
  6078. for ac_header in ident.h
  6079. do :
  6080. ac_fn_c_check_header_mongrel "$LINENO" "ident.h" "ac_cv_header_ident_h" "$ac_includes_default"
  6081. if test "x$ac_cv_header_ident_h" = x""yes; then :
  6082. cat >>confdefs.h <<_ACEOF
  6083. #define HAVE_IDENT_H 1
  6084. _ACEOF
  6085. else
  6086. as_fn_error $? "required C header missing!" "$LINENO" 5
  6087. fi
  6088. done
  6089. fi
  6090. # compile in PAM support?
  6091. x_pam_on=no
  6092. # Check whether --with-pam was given.
  6093. if test "${with_pam+set}" = set; then :
  6094. withval=$with_pam; if test "$withval" != "no"; then
  6095. if test "$withval" != "yes"; then
  6096. CFLAGS="-I$withval/include $CFLAGS"
  6097. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6098. LDFLAGS="-L$withval/lib $LDFLAGS"
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
  6101. $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
  6102. if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. ac_check_lib_save_LIBS=$LIBS
  6106. LIBS="-lpam $LIBS"
  6107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end confdefs.h. */
  6109. /* Override any GCC internal prototype to avoid an error.
  6110. Use char because int might match the return type of a GCC
  6111. builtin and then its argument prototype would still apply. */
  6112. #ifdef __cplusplus
  6113. extern "C"
  6114. #endif
  6115. char pam_authenticate ();
  6116. int
  6117. main ()
  6118. {
  6119. return pam_authenticate ();
  6120. ;
  6121. return 0;
  6122. }
  6123. _ACEOF
  6124. if ac_fn_c_try_link "$LINENO"; then :
  6125. ac_cv_lib_pam_pam_authenticate=yes
  6126. else
  6127. ac_cv_lib_pam_pam_authenticate=no
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext \
  6130. conftest$ac_exeext conftest.$ac_ext
  6131. LIBS=$ac_check_lib_save_LIBS
  6132. fi
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
  6134. $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
  6135. if test "x$ac_cv_lib_pam_pam_authenticate" = x""yes; then :
  6136. cat >>confdefs.h <<_ACEOF
  6137. #define HAVE_LIBPAM 1
  6138. _ACEOF
  6139. LIBS="-lpam $LIBS"
  6140. fi
  6141. for ac_func in pam_authenticate
  6142. do :
  6143. ac_fn_c_check_func "$LINENO" "pam_authenticate" "ac_cv_func_pam_authenticate"
  6144. if test "x$ac_cv_func_pam_authenticate" = x""yes; then :
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define HAVE_PAM_AUTHENTICATE 1
  6147. _ACEOF
  6148. x_pam_on=yes
  6149. else
  6150. as_fn_error $? "Can't enable PAM support!" "$LINENO" 5
  6151. fi
  6152. done
  6153. fi
  6154. fi
  6155. if test "$x_pam_on" = "yes"; then
  6156. $as_echo "#define PAM 1" >>confdefs.h
  6157. for ac_header in security/pam_appl.h
  6158. do :
  6159. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  6160. if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
  6161. cat >>confdefs.h <<_ACEOF
  6162. #define HAVE_SECURITY_PAM_APPL_H 1
  6163. _ACEOF
  6164. pam_ok=yes
  6165. fi
  6166. done
  6167. if test "$pam_ok" != "yes"; then
  6168. for ac_header in pam/pam_appl.h
  6169. do :
  6170. ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
  6171. if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
  6172. cat >>confdefs.h <<_ACEOF
  6173. #define HAVE_PAM_PAM_APPL_H 1
  6174. _ACEOF
  6175. pam_ok=yes
  6176. else
  6177. as_fn_error $? "required C header missing!" "$LINENO" 5
  6178. fi
  6179. done
  6180. fi
  6181. fi
  6182. # compile in IRC+ protocol support?
  6183. x_ircplus_on=yes
  6184. # Check whether --enable-ircplus was given.
  6185. if test "${enable_ircplus+set}" = set; then :
  6186. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  6187. fi
  6188. if test "$x_ircplus_on" = "yes"; then
  6189. $as_echo "#define IRCPLUS 1" >>confdefs.h
  6190. # Compile in iconv support?
  6191. # We only check for it when IRC+ is enabled, because the IRC+ command
  6192. # CHARCONV is the only function depending on it.
  6193. x_iconv_on=no
  6194. # Check whether --with-iconv was given.
  6195. if test "${with_iconv+set}" = set; then :
  6196. withval=$with_iconv; if test "$withval" != "no"; then
  6197. if test "$withval" != "yes"; then
  6198. CFLAGS="-I$withval/include $CFLAGS"
  6199. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6200. LDFLAGS="-L$withval/lib $LDFLAGS"
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  6203. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  6204. if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. ac_check_lib_save_LIBS=$LIBS
  6208. LIBS="-liconv $LIBS"
  6209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6210. /* end confdefs.h. */
  6211. /* Override any GCC internal prototype to avoid an error.
  6212. Use char because int might match the return type of a GCC
  6213. builtin and then its argument prototype would still apply. */
  6214. #ifdef __cplusplus
  6215. extern "C"
  6216. #endif
  6217. char iconv_open ();
  6218. int
  6219. main ()
  6220. {
  6221. return iconv_open ();
  6222. ;
  6223. return 0;
  6224. }
  6225. _ACEOF
  6226. if ac_fn_c_try_link "$LINENO"; then :
  6227. ac_cv_lib_iconv_iconv_open=yes
  6228. else
  6229. ac_cv_lib_iconv_iconv_open=no
  6230. fi
  6231. rm -f core conftest.err conftest.$ac_objext \
  6232. conftest$ac_exeext conftest.$ac_ext
  6233. LIBS=$ac_check_lib_save_LIBS
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  6236. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  6237. if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
  6238. cat >>confdefs.h <<_ACEOF
  6239. #define HAVE_LIBICONV 1
  6240. _ACEOF
  6241. LIBS="-liconv $LIBS"
  6242. fi
  6243. for ac_func in iconv_open
  6244. do :
  6245. ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
  6246. if test "x$ac_cv_func_iconv_open" = x""yes; then :
  6247. cat >>confdefs.h <<_ACEOF
  6248. #define HAVE_ICONV_OPEN 1
  6249. _ACEOF
  6250. x_iconv_on=yes
  6251. fi
  6252. done
  6253. if test "$x_iconv_on" != "yes"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
  6255. $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
  6256. if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. ac_check_lib_save_LIBS=$LIBS
  6260. LIBS="-liconv $LIBS"
  6261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6262. /* end confdefs.h. */
  6263. /* Override any GCC internal prototype to avoid an error.
  6264. Use char because int might match the return type of a GCC
  6265. builtin and then its argument prototype would still apply. */
  6266. #ifdef __cplusplus
  6267. extern "C"
  6268. #endif
  6269. char libiconv_open ();
  6270. int
  6271. main ()
  6272. {
  6273. return libiconv_open ();
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. if ac_fn_c_try_link "$LINENO"; then :
  6279. ac_cv_lib_iconv_libiconv_open=yes
  6280. else
  6281. ac_cv_lib_iconv_libiconv_open=no
  6282. fi
  6283. rm -f core conftest.err conftest.$ac_objext \
  6284. conftest$ac_exeext conftest.$ac_ext
  6285. LIBS=$ac_check_lib_save_LIBS
  6286. fi
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
  6288. $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
  6289. if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then :
  6290. cat >>confdefs.h <<_ACEOF
  6291. #define HAVE_LIBICONV 1
  6292. _ACEOF
  6293. LIBS="-liconv $LIBS"
  6294. fi
  6295. for ac_func in libiconv_open
  6296. do :
  6297. ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
  6298. if test "x$ac_cv_func_libiconv_open" = x""yes; then :
  6299. cat >>confdefs.h <<_ACEOF
  6300. #define HAVE_LIBICONV_OPEN 1
  6301. _ACEOF
  6302. x_iconv_on=yes
  6303. fi
  6304. done
  6305. fi
  6306. if test "$x_iconv_on" != "yes"; then
  6307. as_fn_error $? "Can't enable libiconv support!" "$LINENO" 5
  6308. fi
  6309. fi
  6310. fi
  6311. if test "$x_iconv_on" = "yes"; then
  6312. $as_echo "#define ICONV 1" >>confdefs.h
  6313. fi
  6314. fi
  6315. # enable support for IPv6?
  6316. x_ipv6_on=no
  6317. # Check whether --enable-ipv6 was given.
  6318. if test "${enable_ipv6+set}" = set; then :
  6319. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  6320. fi
  6321. if test "$x_ipv6_on" = "yes"; then
  6322. # getaddrinfo() and getnameinfo() are optional when not compiling
  6323. # with IPv6 support, but are required for IPv6 to work!
  6324. for ac_func in \
  6325. getaddrinfo getnameinfo \
  6326. do :
  6327. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6328. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6329. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6330. cat >>confdefs.h <<_ACEOF
  6331. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6332. _ACEOF
  6333. else
  6334. as_fn_error $? "required function missing for IPv6 support!" "$LINENO" 5
  6335. fi
  6336. done
  6337. $as_echo "#define WANT_IPV6 1" >>confdefs.h
  6338. fi
  6339. # compile in IRC "sniffer"?
  6340. x_sniffer_on=no; x_debug_on=no
  6341. # Check whether --enable-sniffer was given.
  6342. if test "${enable_sniffer+set}" = set; then :
  6343. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  6344. $as_echo "#define SNIFFER 1" >>confdefs.h
  6345. x_sniffer_on=yes; x_debug_on=yes
  6346. fi
  6347. fi
  6348. # enable additional debugging code?
  6349. # Check whether --enable-debug was given.
  6350. if test "${enable_debug+set}" = set; then :
  6351. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  6352. fi
  6353. if test "$x_debug_on" = "yes"; then
  6354. $as_echo "#define DEBUG 1" >>confdefs.h
  6355. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  6356. for ac_func in mtrace
  6357. do :
  6358. ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
  6359. if test "x$ac_cv_func_mtrace" = x""yes; then :
  6360. cat >>confdefs.h <<_ACEOF
  6361. #define HAVE_MTRACE 1
  6362. _ACEOF
  6363. fi
  6364. done
  6365. fi
  6366. # enable "strict RFC rules"?
  6367. x_strict_rfc_on=no
  6368. # Check whether --enable-strict-rfc was given.
  6369. if test "${enable_strict_rfc+set}" = set; then :
  6370. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  6371. $as_echo "#define STRICT_RFC 1" >>confdefs.h
  6372. x_strict_rfc_on=yes
  6373. fi
  6374. fi
  6375. # -- Definitions --
  6376. cat >>confdefs.h <<_ACEOF
  6377. #define HOST_CPU "$host_cpu"
  6378. _ACEOF
  6379. cat >>confdefs.h <<_ACEOF
  6380. #define HOST_VENDOR "$host_vendor"
  6381. _ACEOF
  6382. cat >>confdefs.h <<_ACEOF
  6383. #define HOST_OS "$host_os"
  6384. _ACEOF
  6385. # Add additional CFLAGS, LDFLAGS and LIBS which were specified on the command
  6386. # line or by some tests from above, but after running this script. Useful for
  6387. # adding "-Werror", for example:
  6388. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  6389. test -n "$LDFLAGS_END" && LDFLAGS="$LDFLAGS $LDFLAGS_END"
  6390. test -n "$LIBS_END" && LIBS="$LIBS $LIBS_END"
  6391. # -- Generate files --
  6392. 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"
  6393. cat >confcache <<\_ACEOF
  6394. # This file is a shell script that caches the results of configure
  6395. # tests run on this system so they can be shared between configure
  6396. # scripts and configure runs, see configure's option --config-cache.
  6397. # It is not useful on other systems. If it contains results you don't
  6398. # want to keep, you may remove or edit it.
  6399. #
  6400. # config.status only pays attention to the cache file if you give it
  6401. # the --recheck option to rerun configure.
  6402. #
  6403. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6404. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6405. # following values.
  6406. _ACEOF
  6407. # The following way of writing the cache mishandles newlines in values,
  6408. # but we know of no workaround that is simple, portable, and efficient.
  6409. # So, we kill variables containing newlines.
  6410. # Ultrix sh set writes to stderr and can't be redirected directly,
  6411. # and sets the high bit in the cache file unless we assign to the vars.
  6412. (
  6413. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6414. eval ac_val=\$$ac_var
  6415. case $ac_val in #(
  6416. *${as_nl}*)
  6417. case $ac_var in #(
  6418. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6419. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6420. esac
  6421. case $ac_var in #(
  6422. _ | IFS | as_nl) ;; #(
  6423. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6424. *) { eval $ac_var=; unset $ac_var;} ;;
  6425. esac ;;
  6426. esac
  6427. done
  6428. (set) 2>&1 |
  6429. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6430. *${as_nl}ac_space=\ *)
  6431. # `set' does not quote correctly, so add quotes: double-quote
  6432. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6433. sed -n \
  6434. "s/'/'\\\\''/g;
  6435. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6436. ;; #(
  6437. *)
  6438. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6439. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6440. ;;
  6441. esac |
  6442. sort
  6443. ) |
  6444. sed '
  6445. /^ac_cv_env_/b end
  6446. t clear
  6447. :clear
  6448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6449. t end
  6450. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6451. :end' >>confcache
  6452. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6453. if test -w "$cache_file"; then
  6454. test "x$cache_file" != "x/dev/null" &&
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6456. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6457. cat confcache >$cache_file
  6458. else
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6460. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6461. fi
  6462. fi
  6463. rm -f confcache
  6464. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6465. # Let make expand exec_prefix.
  6466. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6467. DEFS=-DHAVE_CONFIG_H
  6468. ac_libobjs=
  6469. ac_ltlibobjs=
  6470. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6471. # 1. Remove the extension, and $U if already installed.
  6472. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6473. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6474. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6475. # will be set to the directory where LIBOBJS objects are built.
  6476. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6477. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6478. done
  6479. LIBOBJS=$ac_libobjs
  6480. LTLIBOBJS=$ac_ltlibobjs
  6481. if test -n "$EXEEXT"; then
  6482. am__EXEEXT_TRUE=
  6483. am__EXEEXT_FALSE='#'
  6484. else
  6485. am__EXEEXT_TRUE='#'
  6486. am__EXEEXT_FALSE=
  6487. fi
  6488. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6489. as_fn_error $? "conditional \"AMDEP\" was never defined.
  6490. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6491. fi
  6492. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6493. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6494. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6495. fi
  6496. : ${CONFIG_STATUS=./config.status}
  6497. ac_write_fail=0
  6498. ac_clean_files_save=$ac_clean_files
  6499. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6501. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6502. as_write_fail=0
  6503. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6504. #! $SHELL
  6505. # Generated by $as_me.
  6506. # Run this file to recreate the current configuration.
  6507. # Compiler output produced by configure, useful for debugging
  6508. # configure, is in config.log if it exists.
  6509. debug=false
  6510. ac_cs_recheck=false
  6511. ac_cs_silent=false
  6512. SHELL=\${CONFIG_SHELL-$SHELL}
  6513. export SHELL
  6514. _ASEOF
  6515. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6516. ## -------------------- ##
  6517. ## M4sh Initialization. ##
  6518. ## -------------------- ##
  6519. # Be more Bourne compatible
  6520. DUALCASE=1; export DUALCASE # for MKS sh
  6521. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6522. emulate sh
  6523. NULLCMD=:
  6524. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6525. # is contrary to our usage. Disable this feature.
  6526. alias -g '${1+"$@"}'='"$@"'
  6527. setopt NO_GLOB_SUBST
  6528. else
  6529. case `(set -o) 2>/dev/null` in #(
  6530. *posix*) :
  6531. set -o posix ;; #(
  6532. *) :
  6533. ;;
  6534. esac
  6535. fi
  6536. as_nl='
  6537. '
  6538. export as_nl
  6539. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6540. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6541. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6542. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6543. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6544. # but without wasting forks for bash or zsh.
  6545. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6546. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6547. as_echo='print -r --'
  6548. as_echo_n='print -rn --'
  6549. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6550. as_echo='printf %s\n'
  6551. as_echo_n='printf %s'
  6552. else
  6553. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6554. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6555. as_echo_n='/usr/ucb/echo -n'
  6556. else
  6557. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6558. as_echo_n_body='eval
  6559. arg=$1;
  6560. case $arg in #(
  6561. *"$as_nl"*)
  6562. expr "X$arg" : "X\\(.*\\)$as_nl";
  6563. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6564. esac;
  6565. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6566. '
  6567. export as_echo_n_body
  6568. as_echo_n='sh -c $as_echo_n_body as_echo'
  6569. fi
  6570. export as_echo_body
  6571. as_echo='sh -c $as_echo_body as_echo'
  6572. fi
  6573. # The user is always right.
  6574. if test "${PATH_SEPARATOR+set}" != set; then
  6575. PATH_SEPARATOR=:
  6576. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6577. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6578. PATH_SEPARATOR=';'
  6579. }
  6580. fi
  6581. # IFS
  6582. # We need space, tab and new line, in precisely that order. Quoting is
  6583. # there to prevent editors from complaining about space-tab.
  6584. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6585. # splitting by setting IFS to empty value.)
  6586. IFS=" "" $as_nl"
  6587. # Find who we are. Look in the path if we contain no directory separator.
  6588. case $0 in #((
  6589. *[\\/]* ) as_myself=$0 ;;
  6590. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6591. for as_dir in $PATH
  6592. do
  6593. IFS=$as_save_IFS
  6594. test -z "$as_dir" && as_dir=.
  6595. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6596. done
  6597. IFS=$as_save_IFS
  6598. ;;
  6599. esac
  6600. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6601. # in which case we are not to be found in the path.
  6602. if test "x$as_myself" = x; then
  6603. as_myself=$0
  6604. fi
  6605. if test ! -f "$as_myself"; then
  6606. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6607. exit 1
  6608. fi
  6609. # Unset variables that we do not need and which cause bugs (e.g. in
  6610. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6611. # suppresses any "Segmentation fault" message there. '((' could
  6612. # trigger a bug in pdksh 5.2.14.
  6613. for as_var in BASH_ENV ENV MAIL MAILPATH
  6614. do eval test x\${$as_var+set} = xset \
  6615. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6616. done
  6617. PS1='$ '
  6618. PS2='> '
  6619. PS4='+ '
  6620. # NLS nuisances.
  6621. LC_ALL=C
  6622. export LC_ALL
  6623. LANGUAGE=C
  6624. export LANGUAGE
  6625. # CDPATH.
  6626. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6627. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6628. # ----------------------------------------
  6629. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6630. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6631. # script with STATUS, using 1 if that was 0.
  6632. as_fn_error ()
  6633. {
  6634. as_status=$1; test $as_status -eq 0 && as_status=1
  6635. if test "$4"; then
  6636. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6638. fi
  6639. $as_echo "$as_me: error: $2" >&2
  6640. as_fn_exit $as_status
  6641. } # as_fn_error
  6642. # as_fn_set_status STATUS
  6643. # -----------------------
  6644. # Set $? to STATUS, without forking.
  6645. as_fn_set_status ()
  6646. {
  6647. return $1
  6648. } # as_fn_set_status
  6649. # as_fn_exit STATUS
  6650. # -----------------
  6651. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6652. as_fn_exit ()
  6653. {
  6654. set +e
  6655. as_fn_set_status $1
  6656. exit $1
  6657. } # as_fn_exit
  6658. # as_fn_unset VAR
  6659. # ---------------
  6660. # Portably unset VAR.
  6661. as_fn_unset ()
  6662. {
  6663. { eval $1=; unset $1;}
  6664. }
  6665. as_unset=as_fn_unset
  6666. # as_fn_append VAR VALUE
  6667. # ----------------------
  6668. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6669. # advantage of any shell optimizations that allow amortized linear growth over
  6670. # repeated appends, instead of the typical quadratic growth present in naive
  6671. # implementations.
  6672. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6673. eval 'as_fn_append ()
  6674. {
  6675. eval $1+=\$2
  6676. }'
  6677. else
  6678. as_fn_append ()
  6679. {
  6680. eval $1=\$$1\$2
  6681. }
  6682. fi # as_fn_append
  6683. # as_fn_arith ARG...
  6684. # ------------------
  6685. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6686. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6687. # must be portable across $(()) and expr.
  6688. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6689. eval 'as_fn_arith ()
  6690. {
  6691. as_val=$(( $* ))
  6692. }'
  6693. else
  6694. as_fn_arith ()
  6695. {
  6696. as_val=`expr "$@" || test $? -eq 1`
  6697. }
  6698. fi # as_fn_arith
  6699. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6700. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6701. as_expr=expr
  6702. else
  6703. as_expr=false
  6704. fi
  6705. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6706. as_basename=basename
  6707. else
  6708. as_basename=false
  6709. fi
  6710. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6711. as_dirname=dirname
  6712. else
  6713. as_dirname=false
  6714. fi
  6715. as_me=`$as_basename -- "$0" ||
  6716. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6717. X"$0" : 'X\(//\)$' \| \
  6718. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6719. $as_echo X/"$0" |
  6720. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6721. s//\1/
  6722. q
  6723. }
  6724. /^X\/\(\/\/\)$/{
  6725. s//\1/
  6726. q
  6727. }
  6728. /^X\/\(\/\).*/{
  6729. s//\1/
  6730. q
  6731. }
  6732. s/.*/./; q'`
  6733. # Avoid depending upon Character Ranges.
  6734. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6735. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6736. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6737. as_cr_digits='0123456789'
  6738. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6739. ECHO_C= ECHO_N= ECHO_T=
  6740. case `echo -n x` in #(((((
  6741. -n*)
  6742. case `echo 'xy\c'` in
  6743. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6744. xy) ECHO_C='\c';;
  6745. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6746. ECHO_T=' ';;
  6747. esac;;
  6748. *)
  6749. ECHO_N='-n';;
  6750. esac
  6751. rm -f conf$$ conf$$.exe conf$$.file
  6752. if test -d conf$$.dir; then
  6753. rm -f conf$$.dir/conf$$.file
  6754. else
  6755. rm -f conf$$.dir
  6756. mkdir conf$$.dir 2>/dev/null
  6757. fi
  6758. if (echo >conf$$.file) 2>/dev/null; then
  6759. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6760. as_ln_s='ln -s'
  6761. # ... but there are two gotchas:
  6762. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6763. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6764. # In both cases, we have to default to `cp -p'.
  6765. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6766. as_ln_s='cp -p'
  6767. elif ln conf$$.file conf$$ 2>/dev/null; then
  6768. as_ln_s=ln
  6769. else
  6770. as_ln_s='cp -p'
  6771. fi
  6772. else
  6773. as_ln_s='cp -p'
  6774. fi
  6775. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6776. rmdir conf$$.dir 2>/dev/null
  6777. # as_fn_mkdir_p
  6778. # -------------
  6779. # Create "$as_dir" as a directory, including parents if necessary.
  6780. as_fn_mkdir_p ()
  6781. {
  6782. case $as_dir in #(
  6783. -*) as_dir=./$as_dir;;
  6784. esac
  6785. test -d "$as_dir" || eval $as_mkdir_p || {
  6786. as_dirs=
  6787. while :; do
  6788. case $as_dir in #(
  6789. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6790. *) as_qdir=$as_dir;;
  6791. esac
  6792. as_dirs="'$as_qdir' $as_dirs"
  6793. as_dir=`$as_dirname -- "$as_dir" ||
  6794. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6795. X"$as_dir" : 'X\(//\)[^/]' \| \
  6796. X"$as_dir" : 'X\(//\)$' \| \
  6797. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6798. $as_echo X"$as_dir" |
  6799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6800. s//\1/
  6801. q
  6802. }
  6803. /^X\(\/\/\)[^/].*/{
  6804. s//\1/
  6805. q
  6806. }
  6807. /^X\(\/\/\)$/{
  6808. s//\1/
  6809. q
  6810. }
  6811. /^X\(\/\).*/{
  6812. s//\1/
  6813. q
  6814. }
  6815. s/.*/./; q'`
  6816. test -d "$as_dir" && break
  6817. done
  6818. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6819. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6820. } # as_fn_mkdir_p
  6821. if mkdir -p . 2>/dev/null; then
  6822. as_mkdir_p='mkdir -p "$as_dir"'
  6823. else
  6824. test -d ./-p && rmdir ./-p
  6825. as_mkdir_p=false
  6826. fi
  6827. if test -x / >/dev/null 2>&1; then
  6828. as_test_x='test -x'
  6829. else
  6830. if ls -dL / >/dev/null 2>&1; then
  6831. as_ls_L_option=L
  6832. else
  6833. as_ls_L_option=
  6834. fi
  6835. as_test_x='
  6836. eval sh -c '\''
  6837. if test -d "$1"; then
  6838. test -d "$1/.";
  6839. else
  6840. case $1 in #(
  6841. -*)set "./$1";;
  6842. esac;
  6843. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6844. ???[sx]*):;;*)false;;esac;fi
  6845. '\'' sh
  6846. '
  6847. fi
  6848. as_executable_p=$as_test_x
  6849. # Sed expression to map a string onto a valid CPP name.
  6850. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6851. # Sed expression to map a string onto a valid variable name.
  6852. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6853. exec 6>&1
  6854. ## ----------------------------------- ##
  6855. ## Main body of $CONFIG_STATUS script. ##
  6856. ## ----------------------------------- ##
  6857. _ASEOF
  6858. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6859. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6860. # Save the log message, to keep $0 and so on meaningful, and to
  6861. # report actual input values of CONFIG_FILES etc. instead of their
  6862. # values after options handling.
  6863. ac_log="
  6864. This file was extended by ngIRCd $as_me 22, which was
  6865. generated by GNU Autoconf 2.67. Invocation command line was
  6866. CONFIG_FILES = $CONFIG_FILES
  6867. CONFIG_HEADERS = $CONFIG_HEADERS
  6868. CONFIG_LINKS = $CONFIG_LINKS
  6869. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6870. $ $0 $@
  6871. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6872. "
  6873. _ACEOF
  6874. case $ac_config_files in *"
  6875. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6876. esac
  6877. case $ac_config_headers in *"
  6878. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6879. esac
  6880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6881. # Files that config.status was made for.
  6882. config_files="$ac_config_files"
  6883. config_headers="$ac_config_headers"
  6884. config_commands="$ac_config_commands"
  6885. _ACEOF
  6886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6887. ac_cs_usage="\
  6888. \`$as_me' instantiates files and other configuration actions
  6889. from templates according to the current configuration. Unless the files
  6890. and actions are specified as TAGs, all are instantiated by default.
  6891. Usage: $0 [OPTION]... [TAG]...
  6892. -h, --help print this help, then exit
  6893. -V, --version print version number and configuration settings, then exit
  6894. --config print configuration, then exit
  6895. -q, --quiet, --silent
  6896. do not print progress messages
  6897. -d, --debug don't remove temporary files
  6898. --recheck update $as_me by reconfiguring in the same conditions
  6899. --file=FILE[:TEMPLATE]
  6900. instantiate the configuration file FILE
  6901. --header=FILE[:TEMPLATE]
  6902. instantiate the configuration header FILE
  6903. Configuration files:
  6904. $config_files
  6905. Configuration headers:
  6906. $config_headers
  6907. Configuration commands:
  6908. $config_commands
  6909. Report bugs to <ngircd-ml@ngircd.barton.de>.
  6910. ngIRCd home page: <http://ngircd.barton.de/>."
  6911. _ACEOF
  6912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6913. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6914. ac_cs_version="\\
  6915. ngIRCd config.status 22
  6916. configured by $0, generated by GNU Autoconf 2.67,
  6917. with options \\"\$ac_cs_config\\"
  6918. Copyright (C) 2010 Free Software Foundation, Inc.
  6919. This config.status script is free software; the Free Software Foundation
  6920. gives unlimited permission to copy, distribute and modify it."
  6921. ac_pwd='$ac_pwd'
  6922. srcdir='$srcdir'
  6923. INSTALL='$INSTALL'
  6924. MKDIR_P='$MKDIR_P'
  6925. AWK='$AWK'
  6926. test -n "\$AWK" || AWK=awk
  6927. _ACEOF
  6928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6929. # The default lists apply if the user does not specify any file.
  6930. ac_need_defaults=:
  6931. while test $# != 0
  6932. do
  6933. case $1 in
  6934. --*=?*)
  6935. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6936. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6937. ac_shift=:
  6938. ;;
  6939. --*=)
  6940. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6941. ac_optarg=
  6942. ac_shift=:
  6943. ;;
  6944. *)
  6945. ac_option=$1
  6946. ac_optarg=$2
  6947. ac_shift=shift
  6948. ;;
  6949. esac
  6950. case $ac_option in
  6951. # Handling of the options.
  6952. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6953. ac_cs_recheck=: ;;
  6954. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6955. $as_echo "$ac_cs_version"; exit ;;
  6956. --config | --confi | --conf | --con | --co | --c )
  6957. $as_echo "$ac_cs_config"; exit ;;
  6958. --debug | --debu | --deb | --de | --d | -d )
  6959. debug=: ;;
  6960. --file | --fil | --fi | --f )
  6961. $ac_shift
  6962. case $ac_optarg in
  6963. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6964. '') as_fn_error $? "missing file argument" ;;
  6965. esac
  6966. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6967. ac_need_defaults=false;;
  6968. --header | --heade | --head | --hea )
  6969. $ac_shift
  6970. case $ac_optarg in
  6971. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6972. esac
  6973. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6974. ac_need_defaults=false;;
  6975. --he | --h)
  6976. # Conflict between --help and --header
  6977. as_fn_error $? "ambiguous option: \`$1'
  6978. Try \`$0 --help' for more information.";;
  6979. --help | --hel | -h )
  6980. $as_echo "$ac_cs_usage"; exit ;;
  6981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6982. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6983. ac_cs_silent=: ;;
  6984. # This is an error.
  6985. -*) as_fn_error $? "unrecognized option: \`$1'
  6986. Try \`$0 --help' for more information." ;;
  6987. *) as_fn_append ac_config_targets " $1"
  6988. ac_need_defaults=false ;;
  6989. esac
  6990. shift
  6991. done
  6992. ac_configure_extra_args=
  6993. if $ac_cs_silent; then
  6994. exec 6>/dev/null
  6995. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6996. fi
  6997. _ACEOF
  6998. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6999. if \$ac_cs_recheck; then
  7000. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7001. shift
  7002. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7003. CONFIG_SHELL='$SHELL'
  7004. export CONFIG_SHELL
  7005. exec "\$@"
  7006. fi
  7007. _ACEOF
  7008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7009. exec 5>>config.log
  7010. {
  7011. echo
  7012. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7013. ## Running $as_me. ##
  7014. _ASBOX
  7015. $as_echo "$ac_log"
  7016. } >&5
  7017. _ACEOF
  7018. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7019. #
  7020. # INIT-COMMANDS
  7021. #
  7022. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  7023. _ACEOF
  7024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7025. # Handling of arguments.
  7026. for ac_config_target in $ac_config_targets
  7027. do
  7028. case $ac_config_target in
  7029. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  7030. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  7031. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7032. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  7033. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  7034. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  7035. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  7036. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  7037. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  7038. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  7039. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  7040. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  7041. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7042. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  7043. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  7044. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  7045. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  7046. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  7047. esac
  7048. done
  7049. # If the user did not use the arguments to specify the items to instantiate,
  7050. # then the envvar interface is used. Set only those that are not.
  7051. # We use the long form for the default assignment because of an extremely
  7052. # bizarre bug on SunOS 4.1.3.
  7053. if $ac_need_defaults; then
  7054. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7055. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7056. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7057. fi
  7058. # Have a temporary directory for convenience. Make it in the build tree
  7059. # simply because there is no reason against having it here, and in addition,
  7060. # creating and moving files from /tmp can sometimes cause problems.
  7061. # Hook for its removal unless debugging.
  7062. # Note that there is a small window in which the directory will not be cleaned:
  7063. # after its creation but before its name has been assigned to `$tmp'.
  7064. $debug ||
  7065. {
  7066. tmp=
  7067. trap 'exit_status=$?
  7068. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7069. ' 0
  7070. trap 'as_fn_exit 1' 1 2 13 15
  7071. }
  7072. # Create a (secure) tmp directory for tmp files.
  7073. {
  7074. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7075. test -n "$tmp" && test -d "$tmp"
  7076. } ||
  7077. {
  7078. tmp=./conf$$-$RANDOM
  7079. (umask 077 && mkdir "$tmp")
  7080. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7081. # Set up the scripts for CONFIG_FILES section.
  7082. # No need to generate them if there are no CONFIG_FILES.
  7083. # This happens for instance with `./config.status config.h'.
  7084. if test -n "$CONFIG_FILES"; then
  7085. ac_cr=`echo X | tr X '\015'`
  7086. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7087. # But we know of no other shell where ac_cr would be empty at this
  7088. # point, so we can use a bashism as a fallback.
  7089. if test "x$ac_cr" = x; then
  7090. eval ac_cr=\$\'\\r\'
  7091. fi
  7092. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7093. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7094. ac_cs_awk_cr='\\r'
  7095. else
  7096. ac_cs_awk_cr=$ac_cr
  7097. fi
  7098. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7099. _ACEOF
  7100. {
  7101. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7102. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7103. echo "_ACEOF"
  7104. } >conf$$subs.sh ||
  7105. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7106. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7107. ac_delim='%!_!# '
  7108. for ac_last_try in false false false false false :; do
  7109. . ./conf$$subs.sh ||
  7110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7111. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7112. if test $ac_delim_n = $ac_delim_num; then
  7113. break
  7114. elif $ac_last_try; then
  7115. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7116. else
  7117. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7118. fi
  7119. done
  7120. rm -f conf$$subs.sh
  7121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7122. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7123. _ACEOF
  7124. sed -n '
  7125. h
  7126. s/^/S["/; s/!.*/"]=/
  7127. p
  7128. g
  7129. s/^[^!]*!//
  7130. :repl
  7131. t repl
  7132. s/'"$ac_delim"'$//
  7133. t delim
  7134. :nl
  7135. h
  7136. s/\(.\{148\}\)..*/\1/
  7137. t more1
  7138. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7139. p
  7140. n
  7141. b repl
  7142. :more1
  7143. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7144. p
  7145. g
  7146. s/.\{148\}//
  7147. t nl
  7148. :delim
  7149. h
  7150. s/\(.\{148\}\)..*/\1/
  7151. t more2
  7152. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7153. p
  7154. b
  7155. :more2
  7156. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7157. p
  7158. g
  7159. s/.\{148\}//
  7160. t delim
  7161. ' <conf$$subs.awk | sed '
  7162. /^[^""]/{
  7163. N
  7164. s/\n//
  7165. }
  7166. ' >>$CONFIG_STATUS || ac_write_fail=1
  7167. rm -f conf$$subs.awk
  7168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7169. _ACAWK
  7170. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7171. for (key in S) S_is_set[key] = 1
  7172. FS = ""
  7173. }
  7174. {
  7175. line = $ 0
  7176. nfields = split(line, field, "@")
  7177. substed = 0
  7178. len = length(field[1])
  7179. for (i = 2; i < nfields; i++) {
  7180. key = field[i]
  7181. keylen = length(key)
  7182. if (S_is_set[key]) {
  7183. value = S[key]
  7184. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7185. len += length(value) + length(field[++i])
  7186. substed = 1
  7187. } else
  7188. len += 1 + keylen
  7189. }
  7190. print line
  7191. }
  7192. _ACAWK
  7193. _ACEOF
  7194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7195. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7196. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7197. else
  7198. cat
  7199. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7200. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7201. _ACEOF
  7202. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7203. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7204. # trailing colons and then remove the whole line if VPATH becomes empty
  7205. # (actually we leave an empty line to preserve line numbers).
  7206. if test "x$srcdir" = x.; then
  7207. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7208. h
  7209. s///
  7210. s/^/:/
  7211. s/[ ]*$/:/
  7212. s/:\$(srcdir):/:/g
  7213. s/:\${srcdir}:/:/g
  7214. s/:@srcdir@:/:/g
  7215. s/^:*//
  7216. s/:*$//
  7217. x
  7218. s/\(=[ ]*\).*/\1/
  7219. G
  7220. s/\n//
  7221. s/^[^=]*=[ ]*$//
  7222. }'
  7223. fi
  7224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7225. fi # test -n "$CONFIG_FILES"
  7226. # Set up the scripts for CONFIG_HEADERS section.
  7227. # No need to generate them if there are no CONFIG_HEADERS.
  7228. # This happens for instance with `./config.status Makefile'.
  7229. if test -n "$CONFIG_HEADERS"; then
  7230. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7231. BEGIN {
  7232. _ACEOF
  7233. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7234. # here-document in config.status, that substitutes the proper values into
  7235. # config.h.in to produce config.h.
  7236. # Create a delimiter string that does not exist in confdefs.h, to ease
  7237. # handling of long lines.
  7238. ac_delim='%!_!# '
  7239. for ac_last_try in false false :; do
  7240. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7241. if test -z "$ac_t"; then
  7242. break
  7243. elif $ac_last_try; then
  7244. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7245. else
  7246. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7247. fi
  7248. done
  7249. # For the awk script, D is an array of macro values keyed by name,
  7250. # likewise P contains macro parameters if any. Preserve backslash
  7251. # newline sequences.
  7252. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7253. sed -n '
  7254. s/.\{148\}/&'"$ac_delim"'/g
  7255. t rset
  7256. :rset
  7257. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7258. t def
  7259. d
  7260. :def
  7261. s/\\$//
  7262. t bsnl
  7263. s/["\\]/\\&/g
  7264. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7265. D["\1"]=" \3"/p
  7266. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7267. d
  7268. :bsnl
  7269. s/["\\]/\\&/g
  7270. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7271. D["\1"]=" \3\\\\\\n"\\/p
  7272. t cont
  7273. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7274. t cont
  7275. d
  7276. :cont
  7277. n
  7278. s/.\{148\}/&'"$ac_delim"'/g
  7279. t clear
  7280. :clear
  7281. s/\\$//
  7282. t bsnlc
  7283. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7284. d
  7285. :bsnlc
  7286. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7287. b cont
  7288. ' <confdefs.h | sed '
  7289. s/'"$ac_delim"'/"\\\
  7290. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7292. for (key in D) D_is_set[key] = 1
  7293. FS = ""
  7294. }
  7295. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7296. line = \$ 0
  7297. split(line, arg, " ")
  7298. if (arg[1] == "#") {
  7299. defundef = arg[2]
  7300. mac1 = arg[3]
  7301. } else {
  7302. defundef = substr(arg[1], 2)
  7303. mac1 = arg[2]
  7304. }
  7305. split(mac1, mac2, "(") #)
  7306. macro = mac2[1]
  7307. prefix = substr(line, 1, index(line, defundef) - 1)
  7308. if (D_is_set[macro]) {
  7309. # Preserve the white space surrounding the "#".
  7310. print prefix "define", macro P[macro] D[macro]
  7311. next
  7312. } else {
  7313. # Replace #undef with comments. This is necessary, for example,
  7314. # in the case of _POSIX_SOURCE, which is predefined and required
  7315. # on some systems where configure will not decide to define it.
  7316. if (defundef == "undef") {
  7317. print "/*", prefix defundef, macro, "*/"
  7318. next
  7319. }
  7320. }
  7321. }
  7322. { print }
  7323. _ACAWK
  7324. _ACEOF
  7325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7326. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7327. fi # test -n "$CONFIG_HEADERS"
  7328. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7329. shift
  7330. for ac_tag
  7331. do
  7332. case $ac_tag in
  7333. :[FHLC]) ac_mode=$ac_tag; continue;;
  7334. esac
  7335. case $ac_mode$ac_tag in
  7336. :[FHL]*:*);;
  7337. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  7338. :[FH]-) ac_tag=-:-;;
  7339. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7340. esac
  7341. ac_save_IFS=$IFS
  7342. IFS=:
  7343. set x $ac_tag
  7344. IFS=$ac_save_IFS
  7345. shift
  7346. ac_file=$1
  7347. shift
  7348. case $ac_mode in
  7349. :L) ac_source=$1;;
  7350. :[FH])
  7351. ac_file_inputs=
  7352. for ac_f
  7353. do
  7354. case $ac_f in
  7355. -) ac_f="$tmp/stdin";;
  7356. *) # Look for the file first in the build tree, then in the source tree
  7357. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7358. # because $ac_f cannot contain `:'.
  7359. test -f "$ac_f" ||
  7360. case $ac_f in
  7361. [\\/$]*) false;;
  7362. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7363. esac ||
  7364. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  7365. esac
  7366. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7367. as_fn_append ac_file_inputs " '$ac_f'"
  7368. done
  7369. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7370. # use $as_me), people would be surprised to read:
  7371. # /* config.h. Generated by config.status. */
  7372. configure_input='Generated from '`
  7373. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7374. `' by configure.'
  7375. if test x"$ac_file" != x-; then
  7376. configure_input="$ac_file. $configure_input"
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7378. $as_echo "$as_me: creating $ac_file" >&6;}
  7379. fi
  7380. # Neutralize special characters interpreted by sed in replacement strings.
  7381. case $configure_input in #(
  7382. *\&* | *\|* | *\\* )
  7383. ac_sed_conf_input=`$as_echo "$configure_input" |
  7384. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7385. *) ac_sed_conf_input=$configure_input;;
  7386. esac
  7387. case $ac_tag in
  7388. *:-:* | *:-) cat >"$tmp/stdin" \
  7389. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7390. esac
  7391. ;;
  7392. esac
  7393. ac_dir=`$as_dirname -- "$ac_file" ||
  7394. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7395. X"$ac_file" : 'X\(//\)[^/]' \| \
  7396. X"$ac_file" : 'X\(//\)$' \| \
  7397. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7398. $as_echo X"$ac_file" |
  7399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7400. s//\1/
  7401. q
  7402. }
  7403. /^X\(\/\/\)[^/].*/{
  7404. s//\1/
  7405. q
  7406. }
  7407. /^X\(\/\/\)$/{
  7408. s//\1/
  7409. q
  7410. }
  7411. /^X\(\/\).*/{
  7412. s//\1/
  7413. q
  7414. }
  7415. s/.*/./; q'`
  7416. as_dir="$ac_dir"; as_fn_mkdir_p
  7417. ac_builddir=.
  7418. case "$ac_dir" in
  7419. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7420. *)
  7421. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7422. # A ".." for each directory in $ac_dir_suffix.
  7423. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7424. case $ac_top_builddir_sub in
  7425. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7426. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7427. esac ;;
  7428. esac
  7429. ac_abs_top_builddir=$ac_pwd
  7430. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7431. # for backward compatibility:
  7432. ac_top_builddir=$ac_top_build_prefix
  7433. case $srcdir in
  7434. .) # We are building in place.
  7435. ac_srcdir=.
  7436. ac_top_srcdir=$ac_top_builddir_sub
  7437. ac_abs_top_srcdir=$ac_pwd ;;
  7438. [\\/]* | ?:[\\/]* ) # Absolute name.
  7439. ac_srcdir=$srcdir$ac_dir_suffix;
  7440. ac_top_srcdir=$srcdir
  7441. ac_abs_top_srcdir=$srcdir ;;
  7442. *) # Relative name.
  7443. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7444. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7445. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7446. esac
  7447. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7448. case $ac_mode in
  7449. :F)
  7450. #
  7451. # CONFIG_FILE
  7452. #
  7453. case $INSTALL in
  7454. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7455. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7456. esac
  7457. ac_MKDIR_P=$MKDIR_P
  7458. case $MKDIR_P in
  7459. [\\/$]* | ?:[\\/]* ) ;;
  7460. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  7461. esac
  7462. _ACEOF
  7463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7464. # If the template does not know about datarootdir, expand it.
  7465. # FIXME: This hack should be removed a few years after 2.60.
  7466. ac_datarootdir_hack=; ac_datarootdir_seen=
  7467. ac_sed_dataroot='
  7468. /datarootdir/ {
  7469. p
  7470. q
  7471. }
  7472. /@datadir@/p
  7473. /@docdir@/p
  7474. /@infodir@/p
  7475. /@localedir@/p
  7476. /@mandir@/p'
  7477. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7478. *datarootdir*) ac_datarootdir_seen=yes;;
  7479. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7481. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7482. _ACEOF
  7483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7484. ac_datarootdir_hack='
  7485. s&@datadir@&$datadir&g
  7486. s&@docdir@&$docdir&g
  7487. s&@infodir@&$infodir&g
  7488. s&@localedir@&$localedir&g
  7489. s&@mandir@&$mandir&g
  7490. s&\\\${datarootdir}&$datarootdir&g' ;;
  7491. esac
  7492. _ACEOF
  7493. # Neutralize VPATH when `$srcdir' = `.'.
  7494. # Shell code in configure.ac might set extrasub.
  7495. # FIXME: do we really want to maintain this feature?
  7496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7497. ac_sed_extra="$ac_vpsub
  7498. $extrasub
  7499. _ACEOF
  7500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7501. :t
  7502. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7503. s|@configure_input@|$ac_sed_conf_input|;t t
  7504. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7505. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7506. s&@srcdir@&$ac_srcdir&;t t
  7507. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7508. s&@top_srcdir@&$ac_top_srcdir&;t t
  7509. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7510. s&@builddir@&$ac_builddir&;t t
  7511. s&@abs_builddir@&$ac_abs_builddir&;t t
  7512. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7513. s&@INSTALL@&$ac_INSTALL&;t t
  7514. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7515. $ac_datarootdir_hack
  7516. "
  7517. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7518. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7519. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7520. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7521. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7523. which seems to be undefined. Please make sure it is defined" >&5
  7524. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7525. which seems to be undefined. Please make sure it is defined" >&2;}
  7526. rm -f "$tmp/stdin"
  7527. case $ac_file in
  7528. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7529. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7530. esac \
  7531. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7532. ;;
  7533. :H)
  7534. #
  7535. # CONFIG_HEADER
  7536. #
  7537. if test x"$ac_file" != x-; then
  7538. {
  7539. $as_echo "/* $configure_input */" \
  7540. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7541. } >"$tmp/config.h" \
  7542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7543. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7545. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7546. else
  7547. rm -f "$ac_file"
  7548. mv "$tmp/config.h" "$ac_file" \
  7549. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7550. fi
  7551. else
  7552. $as_echo "/* $configure_input */" \
  7553. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7554. || as_fn_error $? "could not create -" "$LINENO" 5
  7555. fi
  7556. # Compute "$ac_file"'s index in $config_headers.
  7557. _am_arg="$ac_file"
  7558. _am_stamp_count=1
  7559. for _am_header in $config_headers :; do
  7560. case $_am_header in
  7561. $_am_arg | $_am_arg:* )
  7562. break ;;
  7563. * )
  7564. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7565. esac
  7566. done
  7567. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7568. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7569. X"$_am_arg" : 'X\(//\)[^/]' \| \
  7570. X"$_am_arg" : 'X\(//\)$' \| \
  7571. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7572. $as_echo X"$_am_arg" |
  7573. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7574. s//\1/
  7575. q
  7576. }
  7577. /^X\(\/\/\)[^/].*/{
  7578. s//\1/
  7579. q
  7580. }
  7581. /^X\(\/\/\)$/{
  7582. s//\1/
  7583. q
  7584. }
  7585. /^X\(\/\).*/{
  7586. s//\1/
  7587. q
  7588. }
  7589. s/.*/./; q'`/stamp-h$_am_stamp_count
  7590. ;;
  7591. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7592. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7593. ;;
  7594. esac
  7595. case $ac_file$ac_mode in
  7596. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  7597. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7598. # are listed without --file. Let's play safe and only enable the eval
  7599. # if we detect the quoting.
  7600. case $CONFIG_FILES in
  7601. *\'*) eval set x "$CONFIG_FILES" ;;
  7602. *) set x $CONFIG_FILES ;;
  7603. esac
  7604. shift
  7605. for mf
  7606. do
  7607. # Strip MF so we end up with the name of the file.
  7608. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7609. # Check whether this is an Automake generated Makefile or not.
  7610. # We used to match only the files named `Makefile.in', but
  7611. # some people rename them; so instead we look at the file content.
  7612. # Grep'ing the first line is not enough: some people post-process
  7613. # each Makefile.in and add a new line on top of each file to say so.
  7614. # Grep'ing the whole file is not good either: AIX grep has a line
  7615. # limit of 2048, but all sed's we know have understand at least 4000.
  7616. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7617. dirpart=`$as_dirname -- "$mf" ||
  7618. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7619. X"$mf" : 'X\(//\)[^/]' \| \
  7620. X"$mf" : 'X\(//\)$' \| \
  7621. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7622. $as_echo X"$mf" |
  7623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7624. s//\1/
  7625. q
  7626. }
  7627. /^X\(\/\/\)[^/].*/{
  7628. s//\1/
  7629. q
  7630. }
  7631. /^X\(\/\/\)$/{
  7632. s//\1/
  7633. q
  7634. }
  7635. /^X\(\/\).*/{
  7636. s//\1/
  7637. q
  7638. }
  7639. s/.*/./; q'`
  7640. else
  7641. continue
  7642. fi
  7643. # Extract the definition of DEPDIR, am__include, and am__quote
  7644. # from the Makefile without running `make'.
  7645. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7646. test -z "$DEPDIR" && continue
  7647. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7648. test -z "am__include" && continue
  7649. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7650. # When using ansi2knr, U may be empty or an underscore; expand it
  7651. U=`sed -n 's/^U = //p' < "$mf"`
  7652. # Find all dependency output files, they are included files with
  7653. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7654. # simplest approach to changing $(DEPDIR) to its actual value in the
  7655. # expansion.
  7656. for file in `sed -n "
  7657. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7658. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7659. # Make sure the directory exists.
  7660. test -f "$dirpart/$file" && continue
  7661. fdir=`$as_dirname -- "$file" ||
  7662. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7663. X"$file" : 'X\(//\)[^/]' \| \
  7664. X"$file" : 'X\(//\)$' \| \
  7665. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  7666. $as_echo X"$file" |
  7667. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7668. s//\1/
  7669. q
  7670. }
  7671. /^X\(\/\/\)[^/].*/{
  7672. s//\1/
  7673. q
  7674. }
  7675. /^X\(\/\/\)$/{
  7676. s//\1/
  7677. q
  7678. }
  7679. /^X\(\/\).*/{
  7680. s//\1/
  7681. q
  7682. }
  7683. s/.*/./; q'`
  7684. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  7685. # echo "creating $dirpart/$file"
  7686. echo '# dummy' > "$dirpart/$file"
  7687. done
  7688. done
  7689. }
  7690. ;;
  7691. esac
  7692. done # for ac_tag
  7693. as_fn_exit 0
  7694. _ACEOF
  7695. ac_clean_files=$ac_clean_files_save
  7696. test $ac_write_fail = 0 ||
  7697. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7698. # configure is writing to config.log, and then calls config.status.
  7699. # config.status does its own redirection, appending to config.log.
  7700. # Unfortunately, on DOS this fails, as config.log is still kept open
  7701. # by configure, so config.status won't be able to write to it; its
  7702. # output is simply discarded. So we exec the FD to /dev/null,
  7703. # effectively closing config.log, so it can be properly (re)opened and
  7704. # appended to by config.status. When coming back to configure, we
  7705. # need to make the FD available again.
  7706. if test "$no_create" != yes; then
  7707. ac_cs_success=:
  7708. ac_config_status_args=
  7709. test "$silent" = yes &&
  7710. ac_config_status_args="$ac_config_status_args --quiet"
  7711. exec 5>/dev/null
  7712. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7713. exec 5>>config.log
  7714. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7715. # would make configure fail if this is the last instruction.
  7716. $ac_cs_success || as_fn_exit 1
  7717. fi
  7718. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7720. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7721. fi
  7722. type dpkg >/dev/null 2>&1
  7723. if test $? -eq 0; then
  7724. # Generate debian/ link if the dpkg command exists
  7725. # (read: if we are running on a debian compatible system)
  7726. echo "creating Debian-specific links ..."
  7727. if test ! -f debian/rules -a -f contrib/Debian/rules; then
  7728. ln -s contrib/Debian debian
  7729. fi
  7730. fi
  7731. # -- Result --
  7732. echo
  7733. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  7734. echo
  7735. # Someone please show me a better way :) [borrowed by OpenSSH]
  7736. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  7737. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  7738. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  7739. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  7740. D=`eval echo ${docdir}` ; D=`eval echo ${D}`
  7741. echo " Host: ${host}"
  7742. echo " Compiler: ${CC}"
  7743. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  7744. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  7745. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  7746. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  7747. echo
  7748. echo " 'ngircd' binary: $S"
  7749. echo " Configuration file: $C"
  7750. echo " Manual pages: $M"
  7751. echo " Documentation: $D"
  7752. echo
  7753. echo $ECHO_N " Syslog support: $ECHO_C"
  7754. test "$x_syslog_on" = "yes" \
  7755. && echo $ECHO_N "yes $ECHO_C" \
  7756. || echo $ECHO_N "no $ECHO_C"
  7757. echo $ECHO_N " Enable debug code: $ECHO_C"
  7758. test "$x_debug_on" = "yes" \
  7759. && echo "yes" \
  7760. || echo "no"
  7761. echo $ECHO_N " zlib compression: $ECHO_C"
  7762. test "$x_zlib_on" = "yes" \
  7763. && echo $ECHO_N "yes $ECHO_C" \
  7764. || echo $ECHO_N "no $ECHO_C"
  7765. echo $ECHO_N " IRC sniffer: $ECHO_C"
  7766. test "$x_sniffer_on" = "yes" \
  7767. && echo "yes" \
  7768. || echo "no"
  7769. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  7770. test "$x_tcpwrap_on" = "yes" \
  7771. && echo $ECHO_N "yes $ECHO_C" \
  7772. || echo $ECHO_N "no $ECHO_C"
  7773. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  7774. test "$x_strict_rfc_on" = "yes" \
  7775. && echo "yes" \
  7776. || echo "no"
  7777. echo $ECHO_N " IDENT support: $ECHO_C"
  7778. test "$x_identauth_on" = "yes" \
  7779. && echo $ECHO_N "yes $ECHO_C" \
  7780. || echo $ECHO_N "no $ECHO_C"
  7781. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  7782. test "$x_ircplus_on" = "yes" \
  7783. && echo "yes" \
  7784. || echo "no"
  7785. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  7786. test "$x_ipv6_on" = "yes" \
  7787. && echo $ECHO_N "yes $ECHO_C" \
  7788. || echo $ECHO_N "no $ECHO_C"
  7789. echo $ECHO_N " I/O backend: $ECHO_C"
  7790. echo "$x_io_backend"
  7791. echo $ECHO_N " PAM support: $ECHO_C"
  7792. test "$x_pam_on" = "yes" \
  7793. && echo $ECHO_N "yes $ECHO_C" \
  7794. || echo $ECHO_N "no $ECHO_C"
  7795. echo $ECHO_N " SSL support: $ECHO_C"
  7796. echo "$x_ssl_lib"
  7797. echo $ECHO_N " libiconv support: $ECHO_C"
  7798. echo "$x_iconv_on"
  7799. echo
  7800. if ! grep "^AUTOMAKE_OPTIONS = [a-z .\-]*/portab/ansi2knr" src/ngircd/Makefile.am >/dev/null 2>&1; then
  7801. echo "WARNING:"
  7802. echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
  7803. echo "therefore don't use it to generate \"official\" distribution archives!"
  7804. echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"
  7805. echo
  7806. fi
  7807. # -eof-