configure 246 KB

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