1
0

configure 260 KB

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